/* ----------------------------------------------------------
   GLOBAL RESET
---------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Poppins", system-ui, sans-serif;
  color: #222;
  background-color: #f5f9fc; /* slight blue background */
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.icon-button {
  border: none;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  color: inherit;
}

/* ----------------------------------------------------------
   TOP BAR
---------------------------------------------------------- */
.top-bar {
  background-color: #0f1a2b;        /* deep navy */
  color: #eaf6ff;                   /* light blue */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.35rem 5vw;
  font-size: 0.85rem;
}

.top-links,
.account-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.top-links a,
.account-links a {
  opacity: 0.9;
}

.top-links a:hover,
.account-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* ----------------------------------------------------------
   MAIN HEADER (logo + search)
---------------------------------------------------------- */
.main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 5vw;
  background-color: #ffffff;
  border-bottom: 2px solid #5ab4ff; /* blue accent */
}

.logo {
  margin: 0;
  font-size: 1.8rem;
  letter-spacing: 0.06em;
  color: #0f1a2b;
}

.search-area {
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
  flex: 1;
  max-width: 720px;
  margin-left: 3rem;
}

.search-input-wrapper {
  position: relative;
  flex: 1;
}

.search-input-wrapper input {
  width: 100%;
  padding: 0.65rem 0.75rem 0.65rem 2.2rem;
  border-radius: 999px;
  border: 1px solid #b6e4ff;
  font-size: 0.95rem;
  background-color: #ffffff;
}

.search-input-wrapper input:focus {
  outline: none;
  border-color: #3a9ad9;
  box-shadow: 0 0 0 2px rgba(58, 154, 217, 0.25);
}

.search-icon {
  position: absolute;
  left: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: #6d8cab;
}

/* Promo button */
.promo-button {
  border-radius: 999px;
  border: none;
  padding: 0.65rem 1.25rem;
  background: linear-gradient(135deg, #7cd3ff, #3a9ad9);
  color: #001a2c;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.promo-button:hover {
  filter: brightness(0.97);
}

/* ----------------------------------------------------------
   CATEGORY NAV
---------------------------------------------------------- */
.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 0.75rem 5vw 1rem;
  background-color: #ffffff;
  border-bottom: 2px solid #b6e4ff;
  font-size: 0.95rem;
}

.category-nav a {
  color: #0f1a2b;
}

.category-nav a:hover {
  color: #3a9ad9;  /* blue accent */
}

/* ----------------------------------------------------------
   PAGE LAYOUT
---------------------------------------------------------- */
.page-layout {
  padding: 1.5rem 5vw 3rem;
}

/* ----------------------------------------------------------
   PRODUCT GRID
---------------------------------------------------------- */
.product-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.product-card {
  background-color: #ffffff;
  border-radius: 0.5rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0, 57, 99, 0.08); /* soft blue shadow */
  border: 1px solid #d9efff;                    /* subtle blue border */
}

.product-card img {
  border-radius: 0.35rem;
  margin-bottom: 0.75rem;
}

.product-card h2 {
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
  color: #0f1a2b;
}

.product-card .description {
  font-size: 0.9rem;
  color: #4c5f73;
  flex: 1;
  margin-bottom: 0.75rem;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.price {
  font-weight: 600;
  font-size: 1rem;
  color: #0f1a2b;
}

.add-to-cart {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: none;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  background-color: #3a9ad9;
  color: #ffffff;
  cursor: pointer;
  font-size: 0.9rem;
}

.add-to-cart:hover {
  background-color: #2179b8;
}

/* ----------------------------------------------------------
   FOOTER (updated to one aligned row + blue theme)
---------------------------------------------------------- */
.site-footer {
  background-color: #0f1a2b;            /* deep navy */
  color: #eaf6ff;                       /* soft light blue */
  padding: 2.5rem 5vw;
  display: flex;                        /* INLINE ROW */
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
  border-top: 4px solid #5ab4ff;        /* sky-blue accent */
}

.footer-column {
  flex: 1;
  min-width: 180px;
}

.site-footer h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: #bce6ff;                       /* lighter blue */
  font-weight: 600;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li + li {
  margin-top: 0.45rem;
}

.site-footer a {
  color: #d9f2ff;
  font-size: 0.92rem;
}

.site-footer a:hover {
  color: #5ab4ff;                       /* sky blue */
}

/* ----------------------------------------------------------
   RESPONSIVE BEHAVIOR
---------------------------------------------------------- */
.menu-button {
  display: none;
}

@media (max-width: 768px) {
  .top-links {
    display: none; /* hide text links */
  }

  .menu-button {
    display: inline-flex; /* show menu icon */
  }

  .main-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .search-area {
    margin-left: 0;
    width: 100%;
  }

  .category-nav {
    font-size: 0.85rem;
    gap: 0.9rem;
  }

  .site-footer {
    flex-direction: column;   /* stack on mobile */
    gap: 2rem;
  }
}
