* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #8B1A1A;
  --primary-dark: #6B1010;
  --gold: #B8962E;
  --gold-light: #D4AF37;
  --cream: #FAF7F2;
  --warm-bg: #F5F0EA;
  --text: #2D2A26;
  --text-light: #7A756E;
  --bg: #fff;
  --border: #E8E3DC;
  --font-body: 'Inter', sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* Top bar */
.top-bar {
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 10px 16px;
  font-size: 12px;
  letter-spacing: 0.5px;
  font-weight: 400;
}

/* Header — Nalli style: centered logo */
.header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 14px 32px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 100;
}

.header-left { display: flex; align-items: center; gap: 20px; }
.header-center { text-align: center; }
.header-right { display: flex; align-items: center; justify-content: flex-end; gap: 18px; }

.logo {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 1px;
}

.header-icon {
  font-size: 22px;
  color: var(--text);
  position: relative;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}
.header-icon:hover { color: var(--primary); }
.header-icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.5; }

.cart-count {
  position: absolute;
  top: 0; right: -2px;
  background: var(--primary);
  color: #fff;
  font-size: 9px;
  font-weight: 600;
  width: 16px; height: 16px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 36px;
  padding: 0 32px;
  border-bottom: 1px solid var(--border);
}
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 14px 0;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0; right: 0;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.3s;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after { transform: scaleX(1); }

/* Hero — full viewport, Nalli-style with centered bottom text and gold border */
.hero {
  position: relative;
  height: 90vh;
  min-height: 500px;
  max-height: 800px;
  overflow: hidden;
  background: #1a1a1a;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.hero-frame {
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  pointer-events: none;
  z-index: 2;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.15) 40%, transparent 70%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 60px 40px;
  color: #fff;
  text-align: center;
  z-index: 3;
}
.hero-overlay h1 {
  font-family: var(--font-heading);
  font-size: 52px;
  font-weight: 400;
  letter-spacing: 3px;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.hero-overlay p {
  font-size: 15px;
  margin-bottom: 28px;
  opacity: 0.85;
  letter-spacing: 1px;
  font-weight: 300;
}

.btn-hero {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  color: #fff;
  padding: 14px 44px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.4);
  transition: all 0.3s;
}
.btn-hero:hover {
  background: #fff;
  color: var(--text);
  border-color: #fff;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s;
}
.hero-arrow:hover { background: rgba(255,255,255,0.25); }
.hero-arrow.prev { left: 20px; }
.hero-arrow.next { right: 20px; }

.hero-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 10px;
  z-index: 5;
}
.hero-dots span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: all 0.3s;
}
.hero-dots span.active { background: #fff; transform: scale(1.3); }

/* Sections */
.section {
  padding: 64px 48px;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}
.section-header h2 {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 400;
  letter-spacing: 0.5px;
}
.view-all {
  font-size: 13px;
  color: var(--primary);
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: opacity 0.2s;
}
.view-all:hover { opacity: 0.7; }
.section-sub {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 32px;
  letter-spacing: 0.2px;
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.product-card {
  cursor: pointer;
  position: relative;
  transition: transform 0.3s;
}
.product-card:hover { transform: translateY(-3px); }
.product-card .card-image {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: var(--cream);
}
.product-card .card-image img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  transition: transform 0.5s;
}
.product-card:hover .card-image img { transform: scale(1.04); }

.card-actions {
  position: absolute;
  top: 10px; right: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transform: translateX(8px);
  transition: all 0.3s;
}
.product-card:hover .card-actions {
  opacity: 1;
  transform: translateX(0);
}
.card-action-btn {
  width: 34px; height: 34px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: all 0.2s;
  cursor: pointer;
}
.card-action-btn:hover { background: var(--primary); color: #fff; }

.product-card h3 {
  font-size: 14px;
  font-weight: 400;
  margin: 12px 0 4px;
  line-height: 1.5;
  color: var(--text);
}
.product-price {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.product-price .original {
  text-decoration: line-through;
  color: var(--text-light);
  font-weight: 400;
  font-size: 13px;
  margin-left: 6px;
}

/* Category grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}
.category-card {
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s;
}
.category-card:hover { transform: translateY(-4px); }
.category-card .cat-image {
  position: relative;
  overflow: hidden;
  border-radius: 50%;
  aspect-ratio: 1;
  margin-bottom: 12px;
  background: var(--cream);
}
.category-card .cat-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.category-card:hover .cat-image img { transform: scale(1.08); }
.category-card p {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* Price range grid */
.price-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.price-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s;
}
.price-card:hover { transform: translateY(-4px); }
.price-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.5s;
}
.price-card:hover img { transform: scale(1.06); }
.price-card .price-label {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff;
  padding: 28px 12px 14px;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  letter-spacing: 0.3px;
}

/* Promo banner */
.promo-banner {
  padding: 0 48px;
  margin-bottom: 0;
}
.promo-inner {
  background: var(--warm-bg);
  border-radius: 8px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 320px;
}
.promo-inner img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.promo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px;
}
.promo-text h2 {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 400;
  margin-bottom: 12px;
}
.promo-text p {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 24px;
  line-height: 1.6;
}
.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 13px 36px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: background 0.3s;
  align-self: flex-start;
  width: auto;
  border: none;
}
.btn-primary:hover { background: var(--primary-dark); }

/* Features strip */
.features-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.feature-item {
  text-align: center;
  padding: 28px 16px;
  border-right: 1px solid var(--border);
}
.feature-item:last-child { border-right: none; }
.feature-item .icon { font-size: 24px; margin-bottom: 8px; }
.feature-item h4 { font-size: 13px; font-weight: 500; margin-bottom: 2px; }
.feature-item p { font-size: 12px; color: var(--text-light); }

/* Footer */
.footer {
  background: #1C1917;
  color: #A8A29E;
  padding: 56px 48px 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer h4 {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}
.footer a {
  display: block;
  font-size: 13px;
  color: #A8A29E;
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer a:hover { color: #fff; }
.footer-desc {
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 20px;
}
.footer-contact p {
  font-size: 13px;
  margin-bottom: 4px;
}
.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 20px;
  text-align: center;
  font-size: 12px;
  color: #666;
  letter-spacing: 0.3px;
}

/* Search bar */
.search-bar {
  padding: 14px 48px;
  border-bottom: 1px solid var(--border);
  display: none;
  background: #fff;
}
.search-bar.show { display: block; }
.search-bar input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
}
.search-bar input:focus { outline: none; border-color: var(--primary); }

/* Mobile menu */
.menu-btn { display: none; }

/* Responsive */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .price-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .header { grid-template-columns: auto 1fr auto; padding: 12px 16px; }
  .menu-btn { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    gap: 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    z-index: 99;
  }
  .nav-links.show { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav-links a::after { display: none; }
  .logo { font-size: 24px; }
  .hero { height: 70vh; min-height: 400px; }
  .hero-overlay h1 { font-size: 32px; letter-spacing: 2px; }
  .hero-overlay { padding: 40px 24px; }
  .hero-arrow { display: none; }
  .section { padding: 40px 16px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .category-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .price-grid { grid-template-columns: repeat(2, 1fr); }
  .footer { padding: 40px 16px 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .features-strip { grid-template-columns: repeat(2, 1fr); }
  .feature-item:nth-child(2) { border-right: none; }
  .promo-banner { padding: 0 16px; }
  .promo-inner { grid-template-columns: 1fr; }
  .promo-text { padding: 32px 24px; }
  .search-bar { padding: 12px 16px; }
  .card-actions { opacity: 1; transform: translateX(0); }
}
