/* ============================================================
   تراث فلسطين | Turath Palestine
   Premium Palestinian Heritage E-Commerce Styles
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  --ivory: #faf6ee;
  --cream: #f3ead8;
  --beige-card: #fbf5e9;
  --olive: #4b5a2e;
  --olive-dark: #36421f;
  --olive-light: #6f8043;
  --burgundy: #8a1c2b;
  --burgundy-dark: #6e1422;
  --gold: #c9a24a;
  --gold-light: #e0c074;
  --charcoal: #232020;
  --text: #2b2826;
  --muted: #7c7368;
  --line: #e3d8c2;
  --white: #ffffff;

  --shadow-sm: 0 2px 8px rgba(60, 45, 20, 0.08);
  --shadow-md: 0 8px 24px rgba(60, 45, 20, 0.12);
  --shadow-lg: 0 18px 50px rgba(54, 40, 18, 0.18);

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;

  --header-h: 78px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1240px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Tajawal', 'Segoe UI', sans-serif;
  background: var(--ivory);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

:focus-visible {
  outline: 3px solid var(--olive-light);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 50px;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
  text-align: center;
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, var(--burgundy), var(--burgundy-dark));
  color: var(--white);
  box-shadow: 0 8px 20px rgba(138, 28, 43, 0.28);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(138, 28, 43, 0.4); }
.btn-outline {
  background: transparent;
  color: var(--charcoal);
  border: 2px solid var(--olive);
}
.btn-outline:hover { background: var(--olive); color: var(--white); transform: translateY(-3px); }
.btn-ghost { background: transparent; color: var(--burgundy); border: 1.5px solid var(--line); }
.btn-ghost:hover { background: var(--cream); }
.btn-block { width: 100%; margin-top: 12px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 238, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 18px;
}

/* Brand */
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 46px; height: 46px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 40%, var(--gold-light), var(--gold));
  position: relative;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
  overflow: hidden;
}
.brand-mark-img { width: 32px; height: 32px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-family: 'Amiri', serif; font-size: 1.4rem; font-weight: 700; color: var(--olive-dark); }
.brand-sub { font-size: 0.7rem; letter-spacing: 1.5px; color: var(--gold); text-transform: uppercase; }

/* Nav */
.main-nav { flex: 1; display: flex; justify-content: center; }
.nav-list { display: flex; gap: 6px; }
.nav-link {
  padding: 9px 16px;
  border-radius: 50px;
  font-weight: 500;
  color: var(--charcoal);
  transition: all 0.25s var(--ease);
  font-size: 0.97rem;
}
.nav-link:hover, .nav-link.active { background: var(--cream); color: var(--burgundy); }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 12px; }
.currency-select select {
  padding: 9px 14px;
  border-radius: 50px;
  border: 1.5px solid var(--line);
  background: var(--white);
  color: var(--charcoal);
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.25s;
}
.currency-select select:hover { border-color: var(--gold); }

.cart-btn {
  position: relative;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--olive-dark);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.25s var(--ease), background 0.25s;
}
.cart-btn:hover { transform: scale(1.08); background: var(--olive); }
.cart-count {
  position: absolute;
  top: -4px; left: -4px;
  min-width: 22px; height: 22px;
  padding: 0 5px;
  background: var(--burgundy);
  color: var(--white);
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--ivory);
}
.cart-count.hidden { display: none; }

/* Mobile menu toggle */
.menu-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.menu-toggle span {
  width: 24px; height: 2.5px; background: var(--olive-dark); border-radius: 3px;
  transition: all 0.3s var(--ease);
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: 70px 0 80px;
  background:
    linear-gradient(120deg, rgba(110,20,34,0.82) 0%, rgba(54,66,31,0.86) 100%),
    url("assets/images/hero-bg.jpg") center center / cover no-repeat;
  overflow: hidden;
}
/* Overlay layer for extra depth / text contrast */
.hero-bg-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 85% 15%, rgba(201,162,74,0.18), transparent 55%),
    linear-gradient(180deg, transparent 60%, rgba(35,32,32,0.35));
  z-index: 1;
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 50px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-block;
  padding: 7px 18px;
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(4px);
  color: var(--gold-light);
  border: 1px solid rgba(224,192,116,0.35);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.hero-title {
  font-family: 'Amiri', serif;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--white);
  text-shadow: 0 2px 18px rgba(0,0,0,0.35);
  margin-bottom: 20px;
}
.hero-subtitle { font-size: 1.12rem; color: rgba(255,255,255,0.9); max-width: 540px; margin-bottom: 32px; }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-trust { display: flex; gap: 22px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 600; color: rgba(255,255,255,0.92); }
.trust-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,74,0.25); }

/* Hero visual */
.hero-visual {
  position: relative;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-card {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 200px;
  animation: float 6s ease-in-out infinite;
}
.hero-card-1 { top: 10px; right: 30px; transform: rotate(-6deg); z-index: 3; }
.hero-card-2 { bottom: 30px; left: 0; transform: rotate(5deg); z-index: 2; animation-delay: -2s; width: 170px; }
.hero-card-3 { top: 60px; left: 40px; transform: rotate(-3deg); z-index: 1; animation-delay: -4s; width: 160px; }
.hero-card-label { font-weight: 700; color: var(--olive-dark); text-align: center; font-size: 0.95rem; }
.hero-card-img { width: 100%; height: 120px; object-fit: cover; border-radius: var(--radius-sm); }
/* Hero buttons on dark image */
.hero .btn-outline { color: var(--white); border-color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.08); }
.hero .btn-outline:hover { background: var(--white); color: var(--olive-dark); }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50% { transform: translateY(-14px) rotate(var(--r, 0deg)); }
}
.hero-card-1 { --r: -6deg; }
.hero-card-2 { --r: 5deg; }
.hero-card-3 { --r: -3deg; }

/* Olive branch decorative */
.hero-olive-branch {
  position: absolute;
  width: 100%; height: 100%;
  pointer-events: none;
}
.hero-olive-branch::before {
  content: "";
  position: absolute;
  bottom: -20px; right: -10px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(111,128,67,0.18), transparent 70%);
  border-radius: 50%;
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section { padding: 80px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 50px; }
.section-eyebrow {
  display: inline-block;
  color: var(--burgundy);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1px;
  margin-bottom: 10px;
  position: relative;
  padding: 0 26px;
}
.section-eyebrow::before, .section-eyebrow::after {
  content: "✦";
  color: var(--gold);
  position: absolute;
  top: 50%; transform: translateY(-50%);
  font-size: 0.8rem;
}
.section-eyebrow::before { right: 0; }
.section-eyebrow::after { left: 0; }
.section-title {
  font-family: 'Amiri', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--olive-dark);
  margin-bottom: 12px;
  font-weight: 700;
}
.section-desc { color: var(--muted); font-size: 1.05rem; }

/* ============================================================
   CATEGORIES
   ============================================================ */
.categories-section { background: var(--ivory); }
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 18px;
}
.category-card {
  position: relative;
  min-height: 190px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
  overflow: hidden;
  background: var(--beige-card);
  display: flex;
  align-items: flex-end;
  background-blend-mode: normal;
}
.category-card .cat-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
  z-index: 0;
}
.category-card .cat-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(35,32,32,0.86) 8%, rgba(54,66,31,0.42) 55%, rgba(54,66,31,0.12) 100%);
  transition: background 0.35s var(--ease);
}
.category-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.category-card:hover .cat-img { transform: scale(1.08); }
.category-card.active { box-shadow: 0 0 0 3px var(--gold), var(--shadow-md); border-color: var(--gold); }
.category-card.active .cat-overlay { background: linear-gradient(to top, rgba(110,20,34,0.88) 8%, rgba(54,66,31,0.5) 60%, rgba(54,66,31,0.2) 100%); }
.cat-icon {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 3;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.35s var(--ease);
}
.category-card.active .cat-icon { background: var(--gold); }
.cat-title {
  position: relative;
  z-index: 3;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0,0,0,0.55);
  transition: color 0.35s;
}

/* "All products" card — solid heritage gradient (no photo) */
.category-all {
  background: linear-gradient(135deg, var(--olive-dark), var(--olive));
  align-items: center;
  justify-content: center;
  text-align: center;
}
.category-all .cat-icon { position: static; background: rgba(255,255,255,0.16); color: var(--gold-light); margin-bottom: 12px; }
.category-all .cat-title { text-shadow: none; color: var(--white); }

/* ============================================================
   PRODUCTS
   ============================================================ */
.products-section { background: linear-gradient(180deg, var(--ivory), var(--cream)); }
.products-toolbar {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
  justify-content: space-between;
}
.search-box { position: relative; flex: 1; min-width: 240px; max-width: 360px; }
.search-box input {
  width: 100%;
  padding: 12px 44px 12px 18px;
  border: 1.5px solid var(--line);
  border-radius: 50px;
  background: var(--white);
  transition: border-color 0.25s;
}
.search-box input:focus { border-color: var(--olive-light); outline: none; }
.search-icon {
  position: absolute;
  top: 50%; right: 16px;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 1.2rem;
}
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 8px 16px;
  border-radius: 50px;
  background: var(--white);
  border: 1.5px solid var(--line);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--charcoal);
  transition: all 0.25s;
  cursor: pointer;
}
.chip:hover { border-color: var(--gold); }
.chip.active { background: var(--burgundy); color: var(--white); border-color: var(--burgundy); }

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 26px;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s var(--ease);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  animation: fadeUp 0.5s var(--ease) both;
}
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.product-visual { height: 180px; position: relative; overflow: hidden; }
.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease);
  background: var(--cream);
}
.product-card:hover .product-img { transform: scale(1.06); }
.product-badge {
  position: absolute;
  top: 14px; right: 14px;
  background: var(--gold);
  color: var(--charcoal);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 50px;
  z-index: 2;
  box-shadow: var(--shadow-sm);
}
.product-info { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.product-cat {
  font-size: 0.75rem;
  color: var(--burgundy);
  font-weight: 700;
  margin-bottom: 6px;
}
.product-name {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--olive-dark);
  margin-bottom: 8px;
}
.product-desc {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 16px;
  flex: 1;
  line-height: 1.6;
}
.product-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.product-price { font-size: 1.3rem; font-weight: 800; color: var(--burgundy); }
.add-btn {
  background: var(--olive-dark);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
}
.add-btn:hover { background: var(--burgundy); transform: scale(1.05); }
.empty-products { text-align: center; padding: 50px; color: var(--muted); font-size: 1.1rem; }
.currency-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 30px;
  font-style: italic;
}

/* ---------- CSS Product Visuals ---------- */
.vc {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
/* Tatreez pattern (red/gold embroidery) */
.vc-tatreez {
  background: var(--burgundy-dark);
  background-image:
    repeating-linear-gradient(45deg, var(--gold) 0 6px, transparent 6px 12px),
    repeating-linear-gradient(-45deg, var(--gold) 0 6px, transparent 6px 12px);
  background-blend-mode: overlay;
  position: relative;
}
.vc-tatreez::before {
  content: "✦ ✦ ✦";
  position: absolute;
  color: var(--gold-light);
  font-size: 1.5rem;
  letter-spacing: 8px;
  z-index: 2;
}
.vc-tatreez::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle, var(--gold-light) 1.5px, transparent 1.5px);
  background-size: 18px 18px;
  opacity: 0.5;
}
.vc-tatreez .vc-icon { color: var(--gold-light); font-size: 1.8rem; z-index: 2; }

/* Keffiyeh pattern (black/white geometric) */
.vc-keffiyeh {
  background: var(--white);
  background-image:
    linear-gradient(45deg, var(--charcoal) 25%, transparent 25%, transparent 75%, var(--charcoal) 75%),
    linear-gradient(45deg, var(--charcoal) 25%, transparent 25%, transparent 75%, var(--charcoal) 75%);
  background-size: 22px 22px;
  background-position: 0 0, 11px 11px;
}
.vc-keffiyeh::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, var(--charcoal) 2px, transparent 2px);
  background-size: 16px 16px;
  opacity: 0.6;
}

/* Olive wood gradient */
.vc-olive {
  background: linear-gradient(135deg, #c8a86a, #8a6a3a 50%, #6b4f2a);
  position: relative;
}
.vc-olive::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(0,0,0,0.12) 0 2px, transparent 2px 8px),
    repeating-linear-gradient(180deg, rgba(255,255,255,0.05) 0 3px, transparent 3px 12px);
}
.vc-olive::after {
  content: "❦";
  position: absolute;
  color: var(--gold-light);
  font-size: 2.2rem;
  z-index: 2;
}

/* Soap block illustration */
.vc-soap {
  background: linear-gradient(160deg, #efe7d3, #d9cba8);
}
.vc-soap::before {
  content: "";
  width: 60%; height: 55%;
  background: linear-gradient(160deg, #f7f1e0, #e3d4ac);
  border-radius: 8px;
  box-shadow: inset 0 -6px 12px rgba(0,0,0,0.1), var(--shadow-sm);
  position: relative;
}
.vc-soap::after {
  content: "زيت";
  position: absolute;
  color: var(--olive);
  font-family: 'Amiri', serif;
  font-weight: 700;
  font-size: 1.1rem;
}

/* Pottery / ceramic cup */
.vc-pottery {
  background: linear-gradient(160deg, #d9a36a, #b5732e);
}
.vc-pottery::before {
  content: "";
  width: 70px; height: 80px;
  background: linear-gradient(160deg, #e8b87a, #c47d35);
  border-radius: 8px 8px 30px 30px;
  box-shadow: inset 0 -8px 14px rgba(0,0,0,0.18);
  position: relative;
}
.vc-pottery::after {
  content: "";
  position: absolute;
  width: 24px; height: 30px;
  border: 5px solid #b5732e;
  border-left: none;
  border-radius: 0 30px 30px 0;
  top: 50%; transform: translateY(-50%);
  left: calc(50% + 30px);
}

/* Food (olive oil / zaatar) */
.vc-food {
  background: linear-gradient(135deg, var(--olive-dark), var(--olive));
}
.vc-food::before {
  content: "";
  width: 55px; height: 95px;
  background: linear-gradient(160deg, #5a6b30, #3a4820);
  border-radius: 14px 14px 8px 8px;
  box-shadow: inset 4px 0 8px rgba(0,0,0,0.2);
}
.vc-food::after {
  content: "🌿";
  position: absolute;
  font-size: 1.8rem;
  top: 40%; right: 32%;
}

/* Gift box */
.vc-gift {
  background: linear-gradient(135deg, var(--burgundy), var(--burgundy-dark));
}
.vc-gift::before {
  content: "";
  width: 90px; height: 70px;
  background: linear-gradient(160deg, var(--gold-light), var(--gold));
  border-radius: 6px;
  box-shadow: var(--shadow-md);
  position: relative;
}
.vc-gift::after {
  content: "🎀";
  position: absolute;
  font-size: 1.8rem;
  top: 28%;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-section { background: var(--ivory); }
.about-wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 50px; align-items: center; }
.about-text .section-eyebrow,
.about-text .section-title { text-align: right; padding-right: 0; }
.about-text .section-eyebrow::before { display: none; }
.about-desc { font-size: 1.1rem; color: var(--muted); line-height: 1.9; }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.feature-card {
  background: var(--beige-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: all 0.35s var(--ease);
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.feature-icon {
  display: inline-flex;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--white);
  align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}
.feature-card h3 { font-size: 1.1rem; color: var(--olive-dark); margin-bottom: 8px; font-weight: 700; }
.feature-card p { font-size: 0.9rem; color: var(--muted); }

/* ============================================================
   CHECKOUT
   ============================================================ */
.checkout-section { background: linear-gradient(180deg, var(--cream), var(--ivory)); }
.checkout-wrap { display: grid; grid-template-columns: 1.3fr 0.9fr; gap: 36px; align-items: start; }
.checkout-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--charcoal);
  font-size: 0.93rem;
}
.req { color: var(--burgundy); }
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--ivory);
  transition: border-color 0.25s, background 0.25s;
  color: var(--charcoal);
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--olive-light); background: var(--white); outline: none; }
.form-group input.invalid,
.form-group textarea.invalid { border-color: var(--burgundy); background: #fdf3f4; }
.error-msg { display: block; color: var(--burgundy); font-size: 0.82rem; margin-top: 5px; min-height: 16px; font-weight: 500; }
.secure-note {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(74,90,46,0.08);
  border: 1px solid rgba(74,90,46,0.2);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.88rem;
  color: var(--olive-dark);
  margin-top: 6px;
}
.secure-note .shield { font-size: 1.2rem; }

/* Order summary */
.order-summary {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  position: sticky;
  top: calc(var(--header-h) + 16px);
}
.summary-title { font-family: 'Amiri', serif; font-size: 1.4rem; color: var(--olive-dark); margin-bottom: 18px; padding-bottom: 14px; border-bottom: 2px solid var(--cream); }
.summary-items { margin-bottom: 16px; }
.summary-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.9rem;
  border-bottom: 1px dashed var(--line);
}
.summary-item-name { color: var(--charcoal); }
.summary-item-qty { color: var(--muted); font-size: 0.82rem; }
.summary-totals { padding-top: 8px; }
.summary-line { display: flex; justify-content: space-between; padding: 7px 0; font-size: 0.95rem; color: var(--charcoal); }
.summary-total { border-top: 2px solid var(--cream); margin-top: 6px; padding-top: 14px; font-size: 1.2rem; font-weight: 800; color: var(--burgundy); }
.summary-empty { text-align: center; color: var(--muted); padding: 20px 0; font-size: 0.9rem; }

/* ============================================================
   CART DRAWER
   ============================================================ */
.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(35,32,32,0.5);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease);
  z-index: 200;
}
.cart-overlay.open { opacity: 1; visibility: visible; }
.cart-drawer {
  position: fixed;
  top: 0; right: 0;
  width: 420px;
  max-width: 90vw;
  height: 100%;
  background: var(--ivory);
  z-index: 201;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 40px rgba(0,0,0,0.2);
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
}
.cart-drawer.open { transform: translateX(0); }
.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  background: var(--olive-dark);
  color: var(--white);
}
.cart-header h3 { font-family: 'Amiri', serif; font-size: 1.4rem; }
.cart-close { color: var(--white); font-size: 2rem; line-height: 1; width: 36px; height: 36px; border-radius: 50%; transition: background 0.2s; }
.cart-close:hover { background: rgba(255,255,255,0.15); }
.cart-body { flex: 1; overflow-y: auto; padding: 18px 20px; }
.cart-empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.cart-empty-icon { font-size: 3rem; margin-bottom: 16px; opacity: 0.5; }

.cart-item {
  display: flex;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 14px;
  animation: fadeUp 0.3s var(--ease) both;
}
.cart-item-visual { width: 64px; height: 64px; border-radius: var(--radius-sm); flex-shrink: 0; object-fit: cover; display: block; background: var(--cream); }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-weight: 700; color: var(--olive-dark); font-size: 0.95rem; margin-bottom: 4px; }
.cart-item-price { color: var(--burgundy); font-weight: 700; font-size: 0.9rem; }
.qty-controls { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.qty-btn {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--cream);
  color: var(--charcoal);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.qty-btn:hover { background: var(--gold-light); }
.qty-val { font-weight: 700; min-width: 24px; text-align: center; }
.cart-item-remove {
  color: var(--burgundy);
  font-size: 0.8rem;
  margin-top: 8px;
  font-weight: 600;
}
.cart-item-remove:hover { text-decoration: underline; }

.cart-footer { padding: 20px 24px; background: var(--white); border-top: 1px solid var(--line); }
.cart-line { display: flex; justify-content: space-between; padding: 5px 0; font-size: 0.93rem; color: var(--charcoal); }
.cart-total { font-size: 1.2rem; font-weight: 800; color: var(--burgundy); border-top: 2px solid var(--cream); margin-top: 6px; padding-top: 12px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--charcoal); color: #d9d2c6; padding-top: 56px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1fr;
  gap: 36px;
  padding-bottom: 40px;
}
.footer-brand-mark { width: 48px; height: 48px; padding: 6px; object-fit: contain; border-radius: 12px; background: radial-gradient(circle at 50% 40%, var(--gold-light), var(--gold)); margin-bottom: 12px; box-shadow: var(--shadow-sm); display: block; }
.footer-brand-col .brand-name { display: block; font-family: 'Amiri', serif; font-size: 1.5rem; color: var(--gold-light); margin-bottom: 2px; }
.footer-brand-col .brand-sub { color: var(--muted); font-size: 0.78rem; letter-spacing: 1.5px; }
.footer-brand-col p { margin-top: 12px; font-size: 0.9rem; line-height: 1.8; color: #b3aa9b; }
.footer-col h4 { color: var(--white); margin-bottom: 16px; font-size: 1.05rem; font-weight: 700; }
.footer-col ul li { margin-bottom: 10px; font-size: 0.9rem; }
.footer-col ul li a { color: #b3aa9b; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--gold-light); }
.footer-contact li { color: #b3aa9b; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; text-align: center; font-size: 0.85rem; color: #9c9486; }
.footer-bottom .container { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.footer-credits { color: #8a8273; font-size: 0.78rem; transition: color 0.2s; }
.footer-credits:hover { color: var(--gold-light); }

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(35,32,32,0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease);
  z-index: 300;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 460px;
  width: 100%;
  padding: 36px 32px 30px;
  text-align: center;
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.35s var(--ease);
  box-shadow: var(--shadow-lg);
  max-height: 90vh;
  overflow-y: auto;
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }
.modal-close {
  position: absolute;
  top: 14px; left: 16px;
  font-size: 1.8rem;
  color: var(--muted);
  width: 36px; height: 36px;
  line-height: 1;
  border-radius: 50%;
  transition: background 0.2s;
}
.modal-close:hover { background: var(--cream); color: var(--charcoal); }
.modal-icon {
  width: 72px; height: 72px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(74,90,46,0.15), rgba(201,162,74,0.2));
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem;
}
.modal-title {
  font-family: 'Amiri', serif;
  font-size: 1.5rem;
  color: var(--olive-dark);
  margin-bottom: 12px;
}
.modal-body { color: var(--muted); font-size: 0.95rem; line-height: 1.8; margin-bottom: 8px; }
.modal-body .modal-receipt {
  background: var(--cream);
  border-radius: var(--radius-sm);
  padding: 18px;
  margin: 18px 0;
  text-align: right;
}
.modal-receipt .receipt-line { display: flex; justify-content: space-between; padding: 6px 0; font-size: 0.9rem; border-bottom: 1px dashed var(--line); }
.modal-receipt .receipt-line:last-child { border-bottom: none; }
.modal-receipt .receipt-label { color: var(--muted); }
.modal-receipt .receipt-val { font-weight: 700; color: var(--olive-dark); }
.modal-actions { display: flex; gap: 12px; margin-top: 20px; }
.modal-actions .btn { flex: 1; }
.btn-secondary { background: var(--cream); color: var(--charcoal); }
.btn-secondary:hover { background: var(--line); }

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  bottom: 30px;
  right: 50%;
  transform: translate(50%, 120px);
  background: var(--olive-dark);
  color: var(--white);
  padding: 14px 26px;
  border-radius: 50px;
  box-shadow: var(--shadow-lg);
  font-weight: 600;
  font-size: 0.92rem;
  z-index: 400;
  opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 90vw;
}
.toast.show { transform: translate(50%, 0); opacity: 1; }
.toast::before { content: "✓"; background: var(--gold); color: var(--charcoal); width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 800; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-buttons, .hero-trust { justify-content: center; }
  .hero-visual { height: 340px; order: -1; }
  .about-wrap { grid-template-columns: 1fr; }
  .checkout-wrap { grid-template-columns: 1fr; }
  .order-summary { position: static; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .main-nav {
    position: fixed;
    top: 0; right: 0;
    width: 280px; max-width: 85vw;
    height: 100vh;
    background: var(--ivory);
    box-shadow: -8px 0 30px rgba(0,0,0,0.15);
    flex-direction: column;
    justify-content: flex-start;
    padding: 90px 24px 24px;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    z-index: 99;
  }
  .main-nav.open { transform: translateX(0); }
  .nav-list { flex-direction: column; width: 100%; gap: 4px; }
  .nav-link { display: block; padding: 14px 16px; font-size: 1.05rem; }
  .menu-toggle { display: flex; z-index: 100; }
  .currency-select select { padding: 8px 10px; font-size: 0.85rem; }
  .brand-sub { display: none; }
  .section { padding: 56px 0; }
  .form-row { grid-template-columns: 1fr; }
  .about-features { grid-template-columns: 1fr; }
  .products-toolbar { flex-direction: column; align-items: stretch; }
  .search-box { max-width: 100%; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 480px) {
  .hero { padding: 40px 0 50px; }
  .hero-card { width: 150px; }
  .hero-card-1 { right: 10px; }
  .hero-visual { height: 300px; }
  .checkout-form { padding: 22px; }
  .modal { padding: 28px 20px 22px; }
  .modal-actions { flex-direction: column; }
  .btn { padding: 12px 24px; font-size: 0.95rem; }
}
