/* ZEBRANO — Nécessaire-inspired clean e-commerce */

:root {
  --ink:       #1a1510;
  --ink-mid:   #2a1f14;
  --ink-light: #2e2318;
  --sand:      #e8ddd0;
  --gold:      #8a7055;
  --gold-warm: #a08060;
  --bg:        #F8F4EC;
  --white:     #f7f2eb;
  --border:    rgba(26, 21, 16, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

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

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

ul { list-style: none; }

/* ── Typography ── */
h1, h2, h3, h4 {
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold);
}

/* ── Layout ── */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 5rem 0;
}

/* ── Header ── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(217, 204, 186, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo img {
  height: 32px;
  width: auto;
  display: block;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 2.5rem;
}

.nav a {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  transition: color 0.25s ease;
}

.nav a:hover {
  color: var(--gold);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.cart-btn {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.cart-count {
  background: var(--ink);
  color: var(--sand);
  font-size: 0.65rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Hero ── */
.hero {
  padding: 8rem 0 6rem;
  text-align: center;
  background-image: url("../images/bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(217, 204, 186, 0.55);
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 400;
  margin: 1.2rem 0 1.5rem;
  max-width: 16ch;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  font-size: 1rem;
  max-width: 42ch;
  margin: 0 auto 2.5rem;
  color: var(--ink-mid);
  font-weight: 300;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.2rem;
  font-family: inherit;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--ink);
  color: var(--sand);
}

.btn-primary:hover {
  background: var(--ink-mid);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--sand);
}

/* ── Product Grid ── */
.products-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
}

.products-header h2 {
  font-size: 1.8rem;
  font-weight: 400;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2.5rem 1.8rem;
}

.product-card {
  group: product;
}

.product-image {
  aspect-ratio: 4/5;
  background: var(--sand);
  overflow: hidden;
  margin-bottom: 1.1rem;
  position: relative;
}

.product-image img,
.product-image .placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-image img,
.product-card:hover .product-image .placeholder {
  transform: scale(1.04);
}

.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #e8ddd0, #d4c7b5);
  color: var(--gold);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.product-name {
  font-size: 0.95rem;
  font-weight: 500;
}

.product-price {
  font-size: 0.9rem;
  color: var(--ink-mid);
  font-weight: 400;
}

.product-tag {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}


/* ── Category Grid ── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.8rem;
}

.category-card {
  display: block;
  transition: transform 0.3s ease;
}

.category-card:hover {
  transform: translateY(-4px);
}

.category-image {
  aspect-ratio: 4/3;
  background: var(--sand);
  overflow: hidden;
  margin-bottom: 1rem;
}

.category-image .placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #e8ddd0, #d4c7b5);
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
}

.category-info h3 {
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.category-info p {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

/* ── Product Detail ── */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding: 4rem 0 6rem;
  align-items: start;
}

.product-gallery {
  position: sticky;
  top: 100px;
}

.main-image {
  aspect-ratio: 4/5;
  background: var(--sand);
  margin-bottom: 1rem;
}

.thumb-row {
  display: flex;
  gap: 0.8rem;
}

.thumb {
  width: 72px;
  height: 90px;
  background: var(--sand);
  cursor: pointer;
  border: 1px solid transparent;
  transition: border-color 0.2s;
}

.thumb.active,
.thumb:hover {
  border-color: var(--ink);
}

.product-content h1 {
  font-size: 2rem;
  font-weight: 400;
  margin: 0.8rem 0 0.6rem;
}

.product-content .price {
  font-size: 1.25rem;
  margin-bottom: 1.8rem;
  color: var(--ink-mid);
}

.product-description {
  font-size: 0.95rem;
  color: var(--ink-mid);
  margin-bottom: 2rem;
  line-height: 1.7;
  max-width: 48ch;
}

.product-meta {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.4rem 0;
  margin-bottom: 2rem;
  display: grid;
  gap: 0.7rem;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
}

.meta-label {
  color: var(--ink-light);
  letter-spacing: 0.05em;
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

.qty-control {
  display: flex;
  border: 1px solid var(--border);
}

.qty-btn {
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--ink);
}

.qty-value {
  width: 48px;
  text-align: center;
  line-height: 40px;
  font-size: 0.9rem;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

.add-to-cart {
  width: 100%;
  max-width: 320px;
}

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 4rem 0 2.5rem;
  margin-top: 4rem;
  background: #d9ccba;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--ink-mid);
  max-width: 28ch;
  margin-top: 1rem;
  font-weight: 300;
}

.footer h4 {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  font-weight: 600;
}

.footer-links a {
  display: block;
  font-size: 0.85rem;
  color: var(--ink-mid);
  margin-bottom: 0.6rem;
  transition: color 0.2s;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--ink-light);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .product-detail {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .product-gallery {
    position: static;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .nav {
    display: none;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 1.25rem;
  }
  .hero {
    padding: 5rem 0 4rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}