/* ================= HEADER STYLES ================= */
:root {
  --brand-navy: #1d3557;
  --brand-medium-blue: #a8dadc;
  --brand-light-blue: #f1faee;
  --brand-red-accent: #e63946;
  --bg-cream: #fdfdfb;
  --text-dark: #2c3e50;
}

/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.7;
  color: var(--text-dark);
  background-color: var(--bg-cream);
}

  /* --- HEADER SPECIFIC STYLES --- */
    header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 2rem;
        background-color:  #0a2342;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        position: sticky;
        top: 0;
        z-index: 1000;
    }

    header .logo {
        height: 50px; /* Adjust as needed */
    }

    header nav ul {
        list-style: none;
        display: flex;
        gap: 1.5rem;
    }

    header nav ul li a {
        text-decoration: none;
        color: white;
        font-weight: 500;
        transition: color 0.3s ease;
    }

    header nav ul li a:hover {
        color: var(--brand-navy);
    }

    .nav-right {
        display: flex;
        align-items: center;
        gap: 1.5rem;
    }

    .dropdown {
       position: relative;
       cursor: pointer;
    }

    .dropdown-toggle {
        cursor: pointer;
        font-weight: 500;
        color: white;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .dropdown-toggle i {
        font-size: 1.2rem;
    }

    .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  display: none;
  min-width: 150px;
  z-index: 10;
}

    .dropdown-menu a {
        color: var(--text-dark);
        padding: 12px 16px;
        text-decoration: none;
        display: block;
        text-align: left;
    }

    .dropdown-menu a:hover {
        background-color: var(--brand-light-blue);
    }

    .dropdown:hover .dropdown-menu {
        display: block;
    }

    .cart-container {
        position: relative;
        cursor: pointer;
        font-size: 1.2rem;
    }

    .cart-count {
        background-color: var(--brand-red-accent);
        color: white;
        border-radius: 50%;
        padding: 0.2rem 0.5rem;
        font-size: 0.8rem;
        position: absolute;
        top: -10px;
        right: -10px;
        line-height: 1;
    }

    .cart-dropdown {
        display: none;
        position: absolute;
        background-color: #fff;
        min-width: 250px;
        box-shadow: 0 8px 16px 0px rgba(0,0,0,0.2);
        z-index: 1;
        border-radius: 8px;
        padding: 1rem;
        right: 0; /* Align to the right of the cart icon */
        top: 100%;
        margin-top: 10px;
        max-height: 300px; /* Limit height for scroll */
        overflow-y: auto;
    }

    .cart-dropdown h4 {
        margin-bottom: 1rem;
        color: var(--brand-navy);
        border-bottom: 1px solid var(--brand-medium-blue);
        padding-bottom: 0.5rem;
    }

    #cart-items {
        font-size: 0.9rem;
    }

    .cart-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 0.5rem;
        padding-bottom: 0.5rem;
        border-bottom: 1px dashed var(--brand-light-blue);
    }

    .cart-item:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }

    .cart-item-info span {
        display: block;
    }

    .cart-item-name {
        font-weight: 500;
        color: var(--text-dark);
    }

    .cart-item-qty-price {
        color: #777;
        font-size: 0.85rem;
    }

    .cart-container:hover .cart-dropdown {
        display: block;
    }

 /* Footer Styles */
/* This is the NEW, corrected code */
.footer {
  background-color:  #0a2342;
  border-top: 2px solid #000;
  padding: 40px 20px 20px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: rgb(255, 255, 255);
  box-shadow: inset 0 5px 10px rgba(0,0,0,0.1);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap; /* Allow wrapping for responsiveness */
  justify-content: space-between;
  gap: 40px; /* Space between sections */
}

.footer-section {
  flex: 1 1 250px; /* Allow sections to grow equally */
  min-width: 220px; /* Minimum width for each section */
}

.footer-section h4 {
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 15px;
  color: #ffffff;
  border-bottom: 2px solid #b7c3c9;
  padding-bottom: 6px;
}

.footer-section a {
  display: block;
  margin: 8px 0;
  text-decoration: none;
  color: #d7e7ee;
  font-size: 16px;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: #577ca3;
  text-decoration: underline;
}

.social p {
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 12px;
  color: #fcfcfc;
}

.social .icons {
  display: flex;
  gap: 15px;
}

.social .icons a img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.social .icons a:hover img {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(0,0,0,0.35);
}

/* Optional copyright line */
.footer-bottom {
  text-align: center;
  margin-top: 25px;
  font-size: 14px;
  color: #405221;
  font-style: italic;
}

/* Responsive */
@media (max-width: 600px) {
  .footer-container {
    flex-direction: column; /* Stack sections vertically on small screens */
    gap: 25px; /* Space between stacked sections */
  }
  .footer-bottom {
    text-align: center;
    padding: 15px 0;
    background-color: #27301B;  /* darker shade for contrast */
    color: white;
    font-size: 14px;
    border-top: 1px solid #48521C; /* subtle top border */
  }
}

