/* ===== Custom Properties ===== */
:root {
  --color-navy: #1B2A4A;
  --color-navy-light: #253A5E;
  --color-navy-dark: #111D35;
  --color-coral: #FF6B35;
  --color-coral-hover: #E85A25;
  --color-coral-light: #FFF0EB;
  --color-teal: #2EC4B6;
  --color-teal-light: #E8FAF8;
  --color-bg: #F8F9FA;
  --color-white: #FFFFFF;
  --color-text: #2D3748;
  --color-text-light: #64748B;
  --color-border: #E2E8F0;
  --color-badge-amber: #D97706;
  --color-badge-amber-bg: #FEF3C7;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.12), 0 4px 8px rgba(0,0,0,0.06);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --nav-height: 64px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 20px);
}

body {
  font-family: var(--font-main);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226,232,240,0.6);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 24px;
  transition: box-shadow 0.3s;
}

.navbar.scrolled { box-shadow: var(--shadow-md); }

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-navy);
  white-space: nowrap;
  letter-spacing: -0.02em;
}

.nav-logo span { color: var(--color-coral); }

.nav-links { display: flex; gap: 2px; list-style: none; }

.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--color-text-light);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-links a:hover { background: var(--color-teal-light); color: var(--color-navy); }
.nav-links a.active { background: var(--color-navy); color: var(--color-white); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--color-navy);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  margin-top: var(--nav-height);
}

.hero-image {
  width: 100%;
  height: 60vh;
  object-fit: cover;
  display: block;
}


/* ===== Search Controls (sticky) ===== */
.search-controls {
  position: sticky;
  top: var(--nav-height);
  z-index: 900;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  padding: 20px 24px 16px;
}

.search-controls__inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* Search bar */
.search-bar {
  position: relative;
  max-width: 560px;
  margin: 0 auto 14px;
}

.search-bar__icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--color-text-light);
  pointer-events: none;
}

.search-bar input {
  width: 100%;
  padding: 13px 44px 13px 48px;
  border: 2px solid var(--color-border);
  border-radius: 50px;
  font-size: 0.95rem;
  font-family: var(--font-main);
  color: var(--color-text);
  background: var(--color-white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-bar input::placeholder { color: var(--color-text-light); }

.search-bar input:focus {
  outline: none;
  border-color: var(--color-teal);
  box-shadow: 0 0 0 3px rgba(46,196,182,0.12);
}

.search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  background: var(--color-bg);
  border: none;
  border-radius: 50%;
  font-size: 1.1rem;
  color: var(--color-text-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s, background 0.15s;
}

.search-clear.visible { opacity: 1; pointer-events: all; }
.search-clear:hover { background: var(--color-border); color: var(--color-text); }

/* Gender chips */
.gender-chips {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 12px;
}

.gender-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 20px;
  background: var(--color-white);
  border: 2px solid var(--color-border);
  border-radius: 50px;
  font-size: 0.84rem;
  font-weight: 600;
  font-family: var(--font-main);
  color: var(--color-text);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.gender-chip:hover { border-color: var(--color-coral); background: var(--color-coral-light); }

.gender-chip.active {
  background: var(--color-coral);
  color: var(--color-white);
  border-color: var(--color-coral);
}

/* Category chips */
.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 2px 0 4px;
  justify-content: center;
}

.category-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 16px;
  background: var(--color-white);
  border: 2px solid var(--color-border);
  border-radius: 50px;
  font-size: 0.84rem;
  font-weight: 600;
  font-family: var(--font-main);
  color: var(--color-text);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.category-chip:hover { border-color: var(--color-teal); background: var(--color-teal-light); }

.category-chip.active {
  background: var(--color-navy);
  color: var(--color-white);
  border-color: var(--color-navy);
}

.chip-count { opacity: 0.6; font-size: 0.78rem; }

/* ===== Carousel Sections ===== */
.carousel-section {
  padding: 40px 0 48px;
  border-bottom: 1px solid var(--color-border);
}

.carousel-section:nth-child(even of :not([hidden])) {
  background: var(--color-white);
}

.carousel-section[hidden] { display: none; }

.carousel-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 24px;
  margin-bottom: 20px;
}

.carousel-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.carousel-title h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-navy);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.carousel-title .carousel-count {
  font-size: 0.84rem;
  color: var(--color-text-light);
  margin-top: 2px;
}

/* Grid wrapper + track */
.carousel-wrapper {
  padding: 0 24px;
}

.carousel-track {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

/* ===== Product Card ===== */
.product-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-teal);
}

.carousel-section:nth-child(even of :not([hidden])) .product-card {
  background: var(--color-bg);
}

.product-card__image {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #F1F5F9, #E2E8F0);
  overflow: hidden;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__placeholder {
  font-size: 3rem;
  opacity: 0.3;
}

.product-card__badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 10px;
  background: var(--color-badge-amber-bg);
  color: var(--color-badge-amber);
  border: 1px solid rgba(217,119,6,0.2);
  border-radius: 50px;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.product-card__body {
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card__title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 4px;
  line-height: 1.3;
}

.product-card__price {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-coral);
  margin-bottom: 6px;
}

.product-card__preview {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--color-text-light);
  flex: 1;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Product Card Actions */
.product-card__image-link { display: block; }

.product-card__actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.product-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: var(--radius-xs);
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--font-main);
  text-decoration: none;
  transition: all 0.2s;
  flex: 1;
  text-align: center;
}

.product-card__btn--buy {
  background: var(--color-coral);
  color: var(--color-white);
}

.product-card__btn--buy:hover {
  background: var(--color-coral-hover);
  transform: translateY(-1px);
}

.product-card__btn--details {
  background: var(--color-white);
  color: var(--color-navy);
  border: 2px solid var(--color-border);
}

.product-card__btn--details:hover {
  border-color: var(--color-teal);
  color: var(--color-teal);
  background: var(--color-teal-light);
}


/* ===== No Results ===== */
.no-results {
  text-align: center;
  padding: 80px 24px;
  max-width: 400px;
  margin: 0 auto;
}

.no-results[hidden] { display: none; }
.no-results-icon { font-size: 3.5rem; margin-bottom: 16px; opacity: 0.35; }

.no-results h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 6px;
}

.no-results p { font-size: 0.95rem; color: var(--color-text-light); }

/* ===== Subscribe Section ===== */
.subscribe-section {
  padding: 80px 24px;
  background: linear-gradient(135deg, var(--color-coral) 0%, #FF9A6C 50%, #FFB347 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.subscribe-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 30% 0%, rgba(255,255,255,0.15) 0%, transparent 60%);
  pointer-events: none;
}

.subscribe-inner {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
}

.subscribe-inner h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.subscribe-inner > p {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  margin-bottom: 28px;
  line-height: 1.5;
}

.subscribe-form {
  display: flex;
  gap: 12px;
  max-width: 460px;
  margin: 0 auto 14px;
}

.subscribe-form input[type="email"] {
  flex: 1;
  padding: 14px 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.15);
  color: var(--color-white);
  font-size: 0.95rem;
  font-family: var(--font-main);
  backdrop-filter: blur(8px);
  transition: border-color 0.2s, background 0.2s;
}

.subscribe-form input[type="email"]::placeholder { color: rgba(255,255,255,0.6); }

.subscribe-form input[type="email"]:focus {
  outline: none;
  border-color: var(--color-white);
  background: rgba(255,255,255,0.25);
}

.subscribe-form button {
  padding: 14px 28px;
  background: var(--color-navy);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--font-main);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.subscribe-form button:hover {
  background: var(--color-navy-dark);
  transform: translateY(-1px);
}

.subscribe-note { font-size: 0.78rem; color: rgba(255,255,255,0.55); }

/* ===== Footer ===== */
.footer {
  background: var(--color-navy-dark);
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
  line-height: 1.7;
}

.footer a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.15s;
}

.footer a:hover { color: var(--color-white); }

.footer__main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 24px 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer__brand p {
  margin: 12px 0 20px;
  font-size: 0.84rem;
  line-height: 1.6;
  opacity: 0.7;
}

.footer__logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: -0.02em;
}

.footer__logo span { color: var(--color-coral); }

.footer__social {
  display: flex;
  gap: 14px;
  margin-top: 4px;
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  transition: background 0.2s, transform 0.2s;
}

.footer__social a:hover {
  background: var(--color-coral);
  transform: translateY(-2px);
}

.footer__social svg {
  width: 18px;
  height: 18px;
  fill: var(--color-white);
}

.footer__heading {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-white);
  margin-bottom: 16px;
}

.footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__list li { margin-bottom: 10px; }

.footer__list a { font-size: 0.86rem; }

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.86rem;
}

.footer__contact-item svg {
  width: 16px;
  height: 16px;
  fill: var(--color-coral);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__copyright {
  font-size: 0.76rem;
  opacity: 0.4;
}

.footer__disclaimer {
  font-size: 0.76rem;
  opacity: 0.45;
  max-width: 480px;
  text-align: right;
}

@media (max-width: 900px) {
  .footer__main {
    grid-template-columns: 1fr 1fr;
    gap: 36px 32px;
    padding: 44px 24px 32px;
  }
}

@media (max-width: 540px) {
  .footer__main {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 36px 20px 28px;
  }
  .footer__bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
    padding: 16px 20px;
  }
  .footer__disclaimer { text-align: center; }
}

/* ===== Back to Top ===== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--color-navy);
  color: var(--color-white);
  border: none;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.visible { opacity: 1; visibility: visible; }

.back-to-top:hover {
  transform: translateY(-3px);
  background: var(--color-coral);
  box-shadow: 0 6px 20px rgba(255,107,53,0.35);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 16px 24px;
    gap: 4px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    transform: translateY(-120%);
    transition: transform 0.3s ease;
    z-index: 999;
  }

  .nav-links.active { transform: translateY(0); }
  .nav-links a { padding: 12px 16px; font-size: 0.95rem; }
  .hamburger { display: flex; }

}

@media (max-width: 640px) {
  .hero-image { height: 40vh; }

  .search-controls { padding: 14px 16px 12px; }
  .search-bar input { padding: 11px 40px 11px 44px; font-size: 0.9rem; }
  .search-bar__icon { left: 14px; width: 18px; height: 18px; }
  .category-chip { font-size: 0.8rem; padding: 7px 12px; }

  .carousel-section { padding: 28px 0 36px; }
  .carousel-header { padding: 0 16px; margin-bottom: 16px; }
  .carousel-wrapper { padding: 0 16px; }
  .carousel-track { gap: 14px; }

  .subscribe-form { flex-direction: column; }
  .subscribe-form button { width: 100%; }

  .back-to-top { bottom: 20px; right: 20px; width: 42px; height: 42px; }
}
