/* --- Global Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f9f9f9;
    color: #333;
}

/* --- Header & Navbar --- */

#header {
    background-color: #0F2537;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-container img {
    border-radius: 50%;
    object-fit: cover;
}

#logo-name {
    font-size: 24px;
    font-weight: bold;
    color: #fcfcfc;
    letter-spacing: 1px;
}

.navbar .nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.navbar .nav-links a {
    text-decoration: none;
    color: #fdf9f9;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar .nav-links a:hover {
    color: #000;
}

/* --- Dropdown Menu --- */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff; /* Dropdown box ka background white */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    min-width: 180px;
    border-radius: 4px;
    z-index: 10;
    padding: 10px 0;
}

.dropdown-content a {
    display: block;
    padding: 8px 15px;
    color: #333333 !important; /* Text color ko dark kar dein taaki saaf dikhe */
    white-space: nowrap;
    text-decoration: none;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
    color: #000000 !important;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* --- Nav Actions --- */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-box {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
}

.search-box input {
    padding: 6px 10px;
    border: none;
    outline: none;
    font-size: 14px;
}

.search-box button {
    background: #eee;
    border: none;
    padding: 6px 10px;
    cursor: pointer;
}

.theme-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
}

.cart-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    background: #f1f1f1;
    padding: 6px 12px;
    border-radius: 4px;
    transition: background 0.3s;
}

.cart-link:hover {
    background: #e2e2e2;
}

/* --- Page Header --- */
.page-header {
    background-color: #eaeaea;
    padding: 30px 20px;
    text-align: center;
    margin-bottom: 20px;
}

.page-header h2 {
    font-size: 28px;
    margin-bottom: 5px;
}

.page-header p {
    color: #666;
    font-size: 14px;
}

/* Footer Section Styling */
.footer {
  background-color: #0f172a;
  color: #f8fafc;
  padding: 40px 8% 20px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 30px;
}

.footer-about, .footer-links, .footer-contact {
  flex: 1;
  min-width: 220px;
}

.footer-about h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: #38bdf8;
}

.footer-about p {
  color: #94a3b8;
  line-height: 1.5;
}

.footer-links h4, .footer-contact h4 {
  font-size: 18px;
  margin-bottom: 15px;
  border-bottom: 2px solid #38bdf8;
  display: inline-block;
  padding-bottom: 5px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links ul li a:hover {
  color: #ffffff;
}

.footer-contact p {
  color: #94a3b8;
  margin-bottom: 8px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #334155;
  color: #64748b;
  font-size: 14px;
}

/* --- Cart Page Styles --- */
.cart-container {
    padding: 40px 20px;
    max-width: 1100px;
    margin: auto;
}

.cart-grid {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.cart-items {
    flex: 2;
    min-width: 300px;
}

.cart-items table {
    width: 100%;
    border-collapse: collapse;
}

.cart-items th {
    padding: 10px;
    border-bottom: 2px solid #ddd;
    text-align: left;
}

.cart-items td {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.cart-product-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-product-info img {
    border-radius: 5px;
}

.cart-items input[type="number"] {
    width: 50px;
    padding: 5px;
}

.remove-btn {
    background: red;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 3px;
}

.cart-summary {
    flex: 1;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    min-width: 250px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.cart-summary hr {
    margin: 10px 0;
    border: 0;
    border-top: 1px solid #ddd;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 20px;
}

.checkout-btn {
    width: 100%;
    background: #000;
    color: #fff;
    padding: 12px;
    border: none;
    font-size: 1em;
    cursor: pointer;
    border-radius: 4px;
}