:root {
  --ivory: #fdfaf6;
  --warm-white: #f9f5ef;
  --sand: #ede5d8;
  --clay: #c8a882;
  --bark: #7a5230;
  --dark: #1e140a;
  --muted: #7a6a58;
  --green: #3d6142;
  --radius: 14px;
  --shadow-sm: 0 2px 12px rgba(30,20,10,.07);
  --shadow-md: 0 8px 32px rgba(30,20,10,.11);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--ivory);
  color: var(--dark);
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 300;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

.container {
  max-width: 1160px; margin: 0 auto;
  padding: 0 max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}

/* ── HEADER ── */
header {
  background: #fff;
  border-bottom: 1px solid var(--sand);
  padding: 20px 0;
  position: sticky; top: 0; z-index: 100;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex; align-items: center; gap: 16px;
}
.brand-logo {
  width: 52px; height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--sand);
}
.brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 22px; font-weight: 600;
  color: var(--dark); letter-spacing: .01em;
}
.brand-sub {
  font-size: 11px; color: var(--muted);
  letter-spacing: .12em; text-transform: uppercase;
  margin-top: 1px;
}

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, #fdf6ee 0%, #f5ede0 100%);
  padding: 56px 0 48px;
  text-align: center;
  border-bottom: 1px solid var(--sand);
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 500; line-height: 1.15;
  color: var(--dark); margin-bottom: 14px;
}
.hero p {
  font-size: 16px; color: var(--muted);
  max-width: 480px; margin: 0 auto;
}

/* ── SHOP LAYOUT ── */
.shop-wrap {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  padding: 48px 0 80px;
  align-items: start;
}

.section-label {
  font-family: 'Playfair Display', serif;
  font-size: 26px; font-weight: 500;
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--sand);
}

/* ── PRODUCT GRID ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}

.product-card {
  background: #fff;
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.product-img-wrap {
  width: 100%; aspect-ratio: 1;
  overflow: hidden; background: var(--warm-white);
}
.product-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .4s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.05); }

.product-info { padding: 16px 18px 18px; }
.product-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 18px; font-weight: 500;
  color: var(--dark); margin-bottom: 4px;
}
.product-sub { font-size: 12px; color: var(--muted); margin-bottom: 14px; }

.product-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.price {
  font-family: 'Playfair Display', serif;
  font-size: 20px; color: var(--bark); font-weight: 500;
}

.add-btn {
  background: var(--bark); color: #fff;
  border: none; border-radius: 8px;
  padding: 10px 16px;
  min-height: 44px;
  font-family: 'Inter', sans-serif;
  font-size: 12px; font-weight: 500;
  letter-spacing: .05em; cursor: pointer;
  transition: background .2s ease;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.add-btn:hover { background: var(--dark); }
.add-btn.added { background: var(--green); }

/* ── CART ── */
.cart-col { position: sticky; top: 88px; }

.cart-box {
  background: #fff;
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.cart-box h2 {
  font-family: 'Playfair Display', serif;
  font-size: 22px; font-weight: 500;
  margin-bottom: 20px; padding-bottom: 14px;
  border-bottom: 1px solid var(--sand);
}
.cart-empty { color: var(--muted); font-size: 13px; padding: 8px 0; }

.cart-row {
  display: flex; justify-content: space-between;
  align-items: flex-start; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--warm-white);
  font-size: 13px;
}
.cart-row strong { font-weight: 500; display: block; margin-bottom: 2px; }
.cart-row-sub { font-size: 11px; color: var(--muted); }

.qty-ctrl { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.qty-ctrl button {
  width: 28px; height: 28px;
  border-radius: 6px; border: 1px solid var(--sand);
  background: var(--warm-white); color: var(--bark);
  font-size: 16px; cursor: pointer; line-height: 1;
  display: grid; place-items: center;
  transition: background .15s;
}
.qty-ctrl button:hover { background: var(--sand); }
.qty-ctrl span { font-size: 14px; font-weight: 500; min-width: 18px; text-align: center; }

.cart-total-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 18px; padding-top: 14px;
  border-top: 1px solid var(--sand);
  font-size: 15px; font-weight: 500;
}
#cart-total {
  font-family: 'Playfair Display', serif;
  font-size: 22px; color: var(--bark);
}

.checkout-btn {
  width: 100%; margin-top: 16px;
  background: var(--bark); color: #fff;
  border: none; border-radius: 10px;
  padding: 16px 20px;
  min-height: 52px;
  font-family: 'Inter', sans-serif;
  font-size: 15px; font-weight: 500;
  letter-spacing: .05em; cursor: pointer;
  transition: background .2s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.checkout-btn:hover:not(:disabled) { background: var(--dark); }
.checkout-btn:disabled { opacity: .4; cursor: not-allowed; }

.secure-note, .shipping-note {
  text-align: center; font-size: 11px;
  color: var(--muted); margin-top: 10px;
  letter-spacing: .04em;
}

/* ── TRUST BAR ── */
.trust-bar {
  background: var(--warm-white);
  border-top: 1px solid var(--sand);
  padding: 24px 0;
}
.trust-inner {
  display: flex; justify-content: center;
  flex-wrap: wrap; gap: 32px;
}
.trust-item {
  font-size: 13px; color: var(--muted);
  letter-spacing: .06em;
}

/* ── FOOTER ── */
footer {
  background: #fff; border-top: 1px solid var(--sand);
  padding: 24px 0; text-align: center;
  font-size: 12px; color: var(--muted);
  letter-spacing: .06em;
}

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  .shop-wrap { grid-template-columns: 1fr; }
  .cart-col { position: static; }
}
@media (max-width: 500px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .product-info { padding: 12px 14px 14px; }
  .product-info h3 { font-size: 15px; }
  .hero { padding: 36px 0 32px; }
}
