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

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #faf7f3;
  color: #1f2933;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.site-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 1.1rem;
}

.brand span {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #6b7280;
}

.main-nav {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
}

.main-nav a {
  position: relative;
  padding-bottom: 2px;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #111827;
  transition: width 0.2s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 16px 40px;
}

.hero {
  padding: 72px 16px 40px;
  text-align: center;
}

.hero-title {
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-size: 0.98rem;
  color: #4b5563;
  max-width: 480px;
  margin: 0 auto 1.2rem;
}

.btn-primary {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  background: #111827;
  color: #f9fafb;
  font-size: 0.9rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
}

.hero-image {
  max-width: 480px;
  margin: 28px auto 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15,23,42,0.18);
}

.section-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.section-subtitle {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 1.2rem;
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.product-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 12px 12px 14px;
  box-shadow: 0 10px 30px rgba(15,23,42,0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.product-card img {
  border-radius: 12px;
  margin-bottom: 10px;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.product-card h3 {
  font-size: 0.98rem;
  margin: 4px 0;
}

.product-price {
  font-weight: 700;
  font-size: 0.95rem;
  margin-top: 2px;
}

.product-link {
  margin-top: 8px;
  font-size: 0.82rem;
  color: #111827;
  opacity: 0.8;
}

.site-footer {
  border-top: 1px solid #e5e7eb;
  text-align: center;
  padding: 18px 12px 24px;
  font-size: 0.8rem;
  color: #6b7280;
  background: #f9fafb;
  margin-top: 20px;
}

@media (max-width: 640px) {
  .site-header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}



/* --- Nav dropdowns --- */
.main-nav {
  display:flex;
  gap:16px;
  align-items:center;
  flex-wrap:wrap;
}
.nav-dropdown {
  position:relative;
}
.nav-dropdown-toggle {
  background:none;
  border:none;
  font:inherit;
  padding:0;
  cursor:pointer;
}
.nav-dropdown-menu {
  position:absolute;
  top:120%;
  left:0;
  background:#ffffff;
  box-shadow:0 4px 16px rgba(0,0,0,0.12);
  border-radius:10px;
  min-width:190px;
  padding:6px 0;
  opacity:0;
  visibility:hidden;
  transform:translateY(-6px);
  transition:opacity .18s ease, transform .18s ease;
  z-index:2000;
}
.nav-dropdown-menu a {
  display:block;
  padding:8px 14px;
  font-size:14px;
  color:#111;
  text-decoration:none;
}
.nav-dropdown-menu a:hover {
  background:#f3f3f3;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}

/* --- Hero slider --- */
.hero-slider {
  position:relative;
  overflow:hidden;
  border-radius:16px;
}
.hero-slide {
  position:absolute;
  inset:0;
  opacity:0;
  transition:opacity .6s ease;
}
.hero-slide.active {
  opacity:1;
  position:relative;
}
.hero-slide img {
  width:100%;
  display:block;
  border-radius:16px;
}
.hero-dots {
  display:flex;
  gap:6px;
  justify-content:center;
  margin-top:10px;
}
.hero-dot {
  width:8px;
  height:8px;
  border-radius:999px;
  border:1px solid #111;
  background:transparent;
  cursor:pointer;
}
.hero-dot.active {
  background:#111;
}




.cart-link {
  position: relative;
}

.cart-count-badge {
  display: none;
  position: absolute;
  top: -6px;
  right: -10px;
  min-width: 16px;
  padding: 2px 5px;
  border-radius: 999px;
  background: #e11d48;
  color: #fff;
  font-size: 11px;
  line-height: 1;
  text-align: center;
}

.wishlist-heart {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid #111827;
  background: rgba(255,255,255,0.92);
  color: #111827;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.wishlist-heart.active {
  background: #111827;
  color: #ffffff;
}
