:root {
  --bg: #f8f4ec;
  --paper: #fffdf8;
  --paper-2: #f1eadf;
  --ink: #17130f;
  --muted: #756c61;
  --line: rgba(45, 34, 20, .13);
  --gold: #b88943;
  --gold-dark: #8d662f;
  --gold-soft: #ead8b7;
  --black: #11100e;
  --success: #219653;
  --danger: #c34444;
  --shadow-sm: 0 10px 30px rgba(43, 32, 19, .08);
  --shadow-md: 0 24px 70px rgba(43, 32, 19, .14);
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 34px;
  --font-ui: 'Plus Jakarta Sans', sans-serif;
  --font-display: 'DM Serif Display', serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; overflow-x: hidden; scroll-padding-top: 110px; }
body {
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  font-family: var(--font-ui);
  background:
    radial-gradient(circle at 8% 4%, rgba(184, 137, 67, .11), transparent 25rem),
    radial-gradient(circle at 95% 40%, rgba(184, 137, 67, .08), transparent 22rem),
    var(--bg);
}
body.locked { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hidden { display: none !important; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes floatLogo { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-9px) rotate(1.5deg); } }
@keyframes pulseDot { 0%,100% { transform: translateY(0); opacity: .35; } 50% { transform: translateY(-7px); opacity: 1; } }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 20px); } to { opacity: 1; transform: translate(-50%, 0); } }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.visible { opacity: 1; transform: none; }
.delay { transition-delay: .12s; }

.top-note {
  min-height: 34px;
  padding: 8px 14px;
  display: grid;
  place-items: center;
  color: #f8f1e5;
  background: var(--black);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .045em;
  text-align: center;
}

.shop-header {
  position: sticky;
  top: 10px;
  z-index: 900;
  width: min(1220px, calc(100% - 24px));
  margin: 10px auto 22px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 253, 248, .88);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(20px) saturate(130%);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand img { width: 48px; height: 48px; object-fit: contain; flex: 0 0 auto; }
.brand span { display: flex; flex-direction: column; min-width: 0; }
.brand strong { font-family: var(--font-display); font-size: 1.1rem; letter-spacing: .08em; white-space: nowrap; }
.brand small { margin-top: -2px; color: var(--gold-dark); font-size: .56rem; font-weight: 800; letter-spacing: .28em; }
.desktop-nav { display: none; align-items: center; gap: 4px; }
.desktop-nav a { padding: 10px 13px; color: var(--muted); border-radius: 999px; text-decoration: none; font-size: .82rem; font-weight: 700; transition: .25s; }
.desktop-nav a:hover { color: var(--ink); background: var(--paper-2); }
.header-actions { display: flex; align-items: center; gap: 7px; }
.icon-btn {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  transition: transform .2s, border-color .2s, color .2s, background .2s;
}
.icon-btn:hover { transform: translateY(-2px); color: var(--gold-dark); border-color: rgba(184,137,67,.45); }
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn span {
  position: absolute;
  top: -5px;
  right: -4px;
  min-width: 19px;
  height: 19px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--black);
  border: 2px solid var(--paper);
  border-radius: 999px;
  font-size: .6rem;
  font-weight: 800;
}
.cart-btn { color: #fff; border-color: var(--black); background: var(--black); }
.cart-btn:hover { color: #fff; background: var(--gold-dark); border-color: var(--gold-dark); }
.cart-btn span { color: var(--black); background: #fff; }

main { width: 100%; }
.hero {
  position: relative;
  isolation: isolate;
  width: min(1220px, calc(100% - 24px));
  min-height: 580px;
  margin: 0 auto 28px;
  padding: 42px 24px;
  display: grid;
  align-items: center;
  gap: 34px;
  overflow: hidden;
  border: 1px solid rgba(184,137,67,.18);
  border-radius: var(--radius-lg);
  background: linear-gradient(130deg, #fffdf8 0%, #f6efe3 56%, #ead7b4 100%);
  box-shadow: var(--shadow-md);
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 420px;
  height: 420px;
  right: -180px;
  top: -160px;
  border: 1px solid rgba(141,102,47,.17);
  border-radius: 50%;
  box-shadow: inset 0 0 0 38px rgba(255,255,255,.16), inset 0 0 0 80px rgba(184,137,67,.06);
}
.hero-copy { max-width: 680px; }
.eyebrow, .section-title > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-dark);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 17px 0;
  font-family: var(--font-display);
  font-size: clamp(3.3rem, 12vw, 6.2rem);
  font-weight: 400;
  letter-spacing: -.04em;
  line-height: .92;
}
.hero h1 em { color: var(--gold-dark); font-weight: 400; }
.hero p { max-width: 620px; color: var(--muted); font-size: 1rem; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.btn {
  min-height: 50px;
  padding: 0 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  font-size: .86rem;
  font-weight: 800;
  transition: transform .22s, box-shadow .22s, background .22s, color .22s, border-color .22s;
}
.btn:hover { transform: translateY(-2px); }
.btn-dark { color: #fff; background: var(--black); box-shadow: 0 14px 28px rgba(17,16,14,.17); }
.btn-light { color: var(--ink); border-color: var(--line); background: rgba(255,255,255,.45); }
.btn-gold { color: #fff; background: linear-gradient(135deg, var(--gold), var(--gold-dark)); box-shadow: 0 14px 28px rgba(141,102,47,.22); }
.btn.full { width: 100%; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 32px; color: var(--muted); font-size: .76rem; font-weight: 700; }
.hero-visual {
  position: relative;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero-circle {
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(78vw, 390px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(141,102,47,.22);
  box-shadow: inset 0 0 0 22px rgba(255,255,255,.22), inset 0 0 0 52px rgba(184,137,67,.07), 0 30px 80px rgba(101,71,29,.14);
}
.hero-visual img { position: relative; z-index: 2; width: min(52vw, 245px); filter: drop-shadow(0 24px 35px rgba(54,38,16,.2)); animation: floatLogo 6s ease-in-out infinite; }
.hero-visual strong { position: relative; z-index: 2; margin-top: 18px; font-family: var(--font-display); font-size: clamp(2.1rem, 8vw, 3.5rem); letter-spacing: .12em; }
.hero-visual small { position: relative; z-index: 2; color: var(--gold-dark); font-size: .68rem; font-weight: 800; letter-spacing: .35em; }

.benefits {
  width: min(1160px, calc(100% - 24px));
  margin: 0 auto 66px;
  padding: 12px;
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255,253,248,.74);
  box-shadow: var(--shadow-sm);
}
.benefits article { padding: 18px; display: flex; align-items: flex-start; gap: 14px; border-radius: 18px; transition: background .22s, transform .22s; }
.benefits article:hover { transform: translateY(-2px); background: var(--paper-2); }
.benefits b { color: var(--gold-dark); font-family: var(--font-display); font-size: 1.45rem; font-weight: 400; }
.benefits div { display: flex; flex-direction: column; gap: 4px; }
.benefits strong { font-size: .9rem; }
.benefits span { color: var(--muted); font-size: .77rem; line-height: 1.5; }

.catalog-section {
  width: 100%;
  padding: 66px 12px 82px;
  background: #fff;
}
.section-title { max-width: 700px; margin: 0 auto 28px; text-align: center; }
.section-title h2 { margin: 10px 0 8px; font-family: var(--font-display); font-size: clamp(2.25rem, 9vw, 4rem); font-weight: 400; line-height: 1; }
.section-title p { color: var(--muted); font-size: .9rem; line-height: 1.7; }
.catalog-tools {
  max-width: 860px;
  margin: 0 auto 18px;
  padding: 9px;
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}
.search-box { position: relative; display: block; }
.search-box svg { position: absolute; top: 50%; left: 16px; width: 18px; height: 18px; transform: translateY(-50%); color: var(--gold-dark); }
.search-box input, .catalog-tools select {
  width: 100%;
  height: 50px;
  color: var(--ink);
  border: 1px solid transparent;
  border-radius: 14px;
  background: var(--paper-2);
  outline: none;
}
.search-box input { padding: 0 16px 0 45px; }
.catalog-tools select { padding: 0 15px; font-weight: 700; appearance: none; }
.search-box input:focus, .catalog-tools select:focus { border-color: rgba(184,137,67,.5); background: #fff; box-shadow: 0 0 0 4px rgba(184,137,67,.1); }
.category-buttons {
  max-width: 1120px;
  margin: 0 auto 24px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scrollbar-width: none;
}
.category-buttons::-webkit-scrollbar { display: none; }
.category-buttons button { flex: 0 0 auto; padding: 10px 15px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: .78rem; font-weight: 700; transition: .22s; }
.category-buttons button.active, .category-buttons button:hover { color: #fff; border-color: var(--black); background: var(--black); }
.product-grid {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.product-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(45,34,20,.09);
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(43,32,19,.07);
  animation: fadeUp .55s both;
  transition: transform .25s, box-shadow .25s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 20px 48px rgba(43,32,19,.13); }
.product-image-wrap { position: relative; aspect-ratio: .78; overflow: hidden; background: var(--paper-2); cursor: pointer; }
.product-image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.product-card:hover .product-image-wrap img { transform: scale(1.045); }
.card-heart {
  position: absolute;
  z-index: 3;
  top: 9px;
  right: 9px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--ink);
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 50%;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(10px);
}
.card-heart.active { color: #fff; background: var(--black); }
.card-heart svg { width: 17px; height: 17px; }
.card-badge { position: absolute; z-index: 2; top: 10px; left: 10px; padding: 7px 9px; color: #fff; border-radius: 999px; background: var(--gold-dark); font-size: .61rem; font-weight: 800; letter-spacing: .08em; }
.stock-badge { position: absolute; left: 10px; bottom: 10px; padding: 7px 9px; color: #fff; border-radius: 999px; background: rgba(17,16,14,.82); font-size: .61rem; font-weight: 800; backdrop-filter: blur(8px); }
.product-info { padding: 12px; }
.product-category { color: var(--gold-dark); font-size: .61rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.product-name { min-height: 42px; margin: 6px 0; font-size: .84rem; font-weight: 800; line-height: 1.4; cursor: pointer; }
.price-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.product-price { font-size: .91rem; font-weight: 800; }
.old-price { color: #a69b8d; font-size: .72rem; text-decoration: line-through; }
.card-btn { width: 100%; min-height: 40px; margin-top: 10px; color: #fff; border: 0; border-radius: 12px; background: var(--black); font-size: .74rem; font-weight: 800; transition: .22s; }
.card-btn:hover { background: var(--gold-dark); }
.card-btn:disabled { opacity: .45; cursor: not-allowed; }
.catalog-loader { min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--muted); }
.catalog-loader > span { width: 8px; height: 8px; display: inline-block; margin: 0 2px; border-radius: 50%; background: var(--gold-dark); animation: pulseDot 1s ease-in-out infinite; }
.catalog-loader > span:nth-child(2) { animation-delay: .15s; }
.catalog-loader > span:nth-child(3) { animation-delay: .3s; }
.catalog-loader p { margin-top: 6px; font-size: .8rem; }
.empty-state { max-width: 600px; margin: 40px auto; padding: 34px; text-align: center; border: 1px dashed var(--line); border-radius: 22px; background: var(--paper); }
.empty-state strong { font-family: var(--font-display); font-size: 1.7rem; font-weight: 400; }
.empty-state p { margin-top: 7px; color: var(--muted); font-size: .85rem; }

.contact-section, .tracking-section {
  width: min(1160px, calc(100% - 24px));
  margin: 72px auto;
  padding: 28px;
  display: grid;
  gap: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, var(--paper), #efe4d1);
  box-shadow: var(--shadow-md);
}
.contact-section h2, .tracking-section h2 { margin: 10px 0; font-family: var(--font-display); font-size: clamp(2.15rem, 8vw, 3.7rem); font-weight: 400; line-height: 1.03; }
.contact-section p, .tracking-section p { color: var(--muted); font-size: .9rem; line-height: 1.7; }
.contact-cards { display: grid; gap: 10px; }
.contact-cards a { padding: 18px; display: flex; flex-direction: column; gap: 5px; text-decoration: none; border: 1px solid rgba(45,34,20,.1); border-radius: 17px; background: rgba(255,255,255,.65); transition: .22s; }
.contact-cards a:hover { transform: translateY(-2px); border-color: rgba(184,137,67,.45); }
.contact-cards small { color: var(--gold-dark); font-size: .67rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.contact-cards strong { overflow-wrap: anywhere; font-size: .86rem; }
.tracking-section { background: var(--black); color: #fff; }
.tracking-section p { color: #cfc6b8; }
.tracking-section .eyebrow { color: #d8b979; }
.tracking-section form { padding: 18px; display: grid; gap: 12px; border: 1px solid rgba(255,255,255,.1); border-radius: 20px; background: rgba(255,255,255,.055); }
label { display: flex; flex-direction: column; gap: 7px; color: inherit; font-size: .76rem; font-weight: 700; }
input, select, textarea { width: 100%; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; background: #fff; outline: none; }
input, select { min-height: 48px; padding: 0 13px; }
textarea { padding: 13px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: rgba(184,137,67,.65); box-shadow: 0 0 0 4px rgba(184,137,67,.11); }
.tracking-result { padding: 14px; border-radius: 13px; background: rgba(255,255,255,.09); font-size: .82rem; line-height: 1.65; }

footer {
  padding: 38px 18px 110px;
  color: #f5eee3;
  background: #0e0d0b;
}
.footer-brand { display: flex; align-items: center; gap: 13px; }
.footer-brand img { width: 62px; height: 62px; object-fit: contain; }
.footer-brand strong { font-family: var(--font-display); letter-spacing: .08em; }
.footer-brand p { margin-top: 5px; color: #aaa095; font-size: .76rem; }
.footer-links { margin: 24px 0; display: flex; flex-wrap: wrap; gap: 15px; }
.footer-links a { color: #cfc4b7; text-decoration: none; font-size: .78rem; font-weight: 700; }
.powered { width: fit-content; display: flex; align-items: center; gap: 9px; color: #b7ada0; text-decoration: none; font-size: .72rem; }
.powered img { width: 64px; height: 28px; object-fit: contain; object-position: left center; }
.copyright { margin-top: 24px; color: #766e65; font-size: .7rem; }

.mobile-nav {
  position: fixed;
  z-index: 950;
  left: 10px;
  right: 10px;
  bottom: max(10px, env(safe-area-inset-bottom));
  min-height: 66px;
  padding: 7px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 22px;
  background: rgba(17,16,14,.94);
  box-shadow: 0 18px 44px rgba(0,0,0,.28);
  backdrop-filter: blur(18px);
}
.mobile-nav a, .mobile-nav button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #d9d0c4; border: 0; border-radius: 15px; background: transparent; text-decoration: none; font-size: .61rem; font-weight: 700; }
.mobile-nav svg { width: 19px; height: 19px; }
.mobile-nav b { position: absolute; top: 2px; right: 13%; min-width: 17px; height: 17px; padding: 0 4px; display: grid; place-items: center; color: #111; border-radius: 999px; background: #e1bd77; font-size: .55rem; }

.overlay {
  position: fixed;
  z-index: 1200;
  inset: 0;
  padding: 14px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(10,9,8,.66);
  backdrop-filter: blur(8px);
  animation: fadeIn .2s both;
}
.modal {
  position: relative;
  width: min(760px, 100%);
  max-height: 92dvh;
  overflow: auto;
  border-radius: 28px 28px 18px 18px;
  background: var(--paper);
  box-shadow: 0 36px 100px rgba(0,0,0,.34);
  animation: slideUp .3s cubic-bezier(.2,.7,.2,1) both;
}
.close-modal {
  z-index: 5;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  font-size: 1.45rem;
  line-height: 1;
}
.product-modal > .close-modal, .checkout-modal > .close-modal { position: sticky; top: 12px; float: right; margin: 12px 12px -54px 0; }
.modal-head { padding: 22px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border-bottom: 1px solid var(--line); }
.modal-head span { color: var(--gold-dark); font-size: .68rem; font-weight: 800; letter-spacing: .12em; }
.modal-head h2 { font-family: var(--font-display); font-size: 1.9rem; font-weight: 400; }
.product-detail { display: grid; }
.product-gallery { padding: 12px; }
.main-product-image { aspect-ratio: .86; overflow: hidden; border-radius: 20px; background: var(--paper-2); }
.main-product-image img { width: 100%; height: 100%; object-fit: cover; }
.thumbnail-row { margin-top: 9px; display: flex; gap: 8px; overflow-x: auto; }
.thumbnail-row button { flex: 0 0 62px; height: 74px; overflow: hidden; border: 2px solid transparent; border-radius: 10px; background: var(--paper-2); }
.thumbnail-row button.active { border-color: var(--gold-dark); }
.thumbnail-row img { width: 100%; height: 100%; object-fit: cover; }
.product-copy { padding: 22px; }
.product-copy .category { color: var(--gold-dark); font-size: .68rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.product-copy h2 { margin: 8px 0; font-family: var(--font-display); font-size: clamp(2.1rem, 9vw, 3.4rem); font-weight: 400; line-height: 1; }
.product-copy .detail-price { margin: 13px 0; display: flex; align-items: center; gap: 9px; font-size: 1.05rem; font-weight: 800; }
.product-copy > p { color: var(--muted); font-size: .86rem; line-height: 1.7; }
.option-group { margin-top: 18px; }
.option-group > span { display: block; margin-bottom: 8px; font-size: .72rem; font-weight: 800; }
.option-list { display: flex; flex-wrap: wrap; gap: 8px; }
.option-list button { min-width: 44px; min-height: 40px; padding: 0 13px; color: var(--ink); border: 1px solid var(--line); border-radius: 11px; background: #fff; font-size: .74rem; font-weight: 700; }
.option-list button.active { color: #fff; border-color: var(--black); background: var(--black); }
.detail-actions { margin-top: 22px; display: grid; grid-template-columns: 105px 1fr; gap: 9px; }
.quantity-control { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.quantity-control button { height: 48px; border: 0; background: transparent; font-size: 1.1rem; }
.quantity-control span { text-align: center; font-size: .8rem; font-weight: 800; }
.detail-note { margin-top: 12px; color: var(--muted); font-size: .7rem; }
.list-modal { padding-bottom: 18px; }
.favorite-items, .cart-items { padding: 12px 16px; display: grid; gap: 10px; }
.favorite-row, .cart-row { padding: 10px; display: grid; grid-template-columns: 66px 1fr auto; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.favorite-row img, .cart-row img { width: 66px; height: 78px; object-fit: cover; border-radius: 10px; background: var(--paper-2); }
.favorite-row strong, .cart-row strong { display: block; font-size: .77rem; line-height: 1.4; }
.favorite-row small, .cart-row small { display: block; margin-top: 4px; color: var(--muted); font-size: .65rem; }
.row-actions { display: flex; align-items: center; gap: 5px; }
.row-actions button { min-width: 32px; height: 32px; padding: 0 8px; color: var(--ink); border: 1px solid var(--line); border-radius: 9px; background: var(--paper); font-size: .72rem; }
.row-actions button.danger { color: var(--danger); }
.drawer-backdrop { position: fixed; z-index: 1090; inset: 0; background: rgba(10,9,8,.58); backdrop-filter: blur(6px); }
.cart-drawer {
  position: fixed;
  z-index: 1100;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 90dvh;
  transform: translateY(105%);
  display: flex;
  flex-direction: column;
  border-radius: 28px 28px 0 0;
  background: var(--paper);
  box-shadow: 0 -28px 80px rgba(0,0,0,.25);
  transition: transform .32s cubic-bezier(.2,.7,.2,1);
}
.cart-drawer.open { transform: translateY(0); }
.drawer-handle { width: 50px; height: 5px; margin: 9px auto -2px; border-radius: 999px; background: #d8cfc1; }
.cart-items { overflow: auto; }
.cart-bottom { margin-top: auto; padding: 16px; border-top: 1px solid var(--line); background: var(--paper); }
.cart-bottom > div { margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; }
.cart-bottom span { color: var(--muted); font-size: .78rem; }
.cart-bottom strong { font-size: 1.1rem; }
.checkout-modal { padding: 28px 18px; }
.checkout-modal h2 { margin: 9px 0; font-family: var(--font-display); font-size: 2.45rem; font-weight: 400; }
.checkout-modal > p { margin-bottom: 20px; color: var(--muted); font-size: .82rem; line-height: 1.6; }
.checkout-modal form { display: grid; gap: 13px; }
.form-grid { display: grid; gap: 12px; }
.checkout-summary { padding: 14px; display: grid; gap: 7px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper-2); font-size: .78rem; }
.checkout-summary div { display: flex; justify-content: space-between; gap: 12px; }
.success-box { padding: 22px; border-radius: 18px; color: #155b31; background: #e7f7ed; line-height: 1.65; }
.toast {
  position: fixed;
  z-index: 1600;
  left: 50%;
  bottom: 92px;
  min-width: min(330px, calc(100% - 30px));
  max-width: 520px;
  padding: 13px 18px;
  display: none;
  color: #fff;
  border-radius: 999px;
  background: var(--black);
  box-shadow: 0 16px 40px rgba(0,0,0,.24);
  text-align: center;
  font-size: .76rem;
  font-weight: 700;
}
.toast.show { display: block; animation: toastIn .24s both; }

@media (min-width: 720px) {
  .shop-header { padding: 11px 16px; }
  .brand img { width: 56px; height: 56px; }
  .brand strong { font-size: 1.3rem; }
  .desktop-nav { display: flex; }
  .hero { min-height: 620px; padding: 64px; grid-template-columns: 1.1fr .9fr; }
  .benefits { grid-template-columns: repeat(3, 1fr); }
  .benefits article + article { border-left: 1px solid var(--line); }
  .catalog-tools { grid-template-columns: 1.4fr .8fr; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .product-info { padding: 16px; }
  .product-name { font-size: .94rem; }
  .contact-section, .tracking-section { padding: 48px; grid-template-columns: .9fr 1.1fr; align-items: center; }
  .contact-cards { grid-template-columns: repeat(3, 1fr); }
  .tracking-section form { padding: 24px; }
  footer { padding: 48px max(28px, calc((100% - 1160px)/2)) 55px; }
  .mobile-nav { display: none; }
  .overlay { align-items: center; padding: 30px; }
  .modal { border-radius: 28px; }
  .product-modal { width: min(980px, 100%); }
  .product-detail { grid-template-columns: 1fr 1fr; }
  .product-gallery { padding: 18px; }
  .product-copy { padding: 44px 36px 30px; }
  .cart-drawer { top: 0; left: auto; width: min(450px, 100%); max-height: none; border-radius: 28px 0 0 28px; transform: translateX(105%); }
  .cart-drawer.open { transform: translateX(0); }
  .drawer-handle { display: none; }
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .toast { bottom: 28px; }
}

@media (min-width: 1050px) {
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 420px) {
  .brand span { display: none; }
  .shop-header { width: calc(100% - 16px); margin-top: 8px; }
  .hero { width: calc(100% - 16px); padding: 35px 18px; border-radius: 27px; }
  .hero h1 { font-size: 3.15rem; }
  .benefits { width: calc(100% - 16px); }
  .product-grid { gap: 9px; }
  .product-info { padding: 10px; }
  .product-name { min-height: 40px; font-size: .78rem; }
  .card-btn { min-height: 38px; }
  .contact-section, .tracking-section { width: calc(100% - 16px); padding: 22px; }
  .overlay { padding: 8px; }
  .modal { border-radius: 24px 24px 15px 15px; }
}


/* ESPACE CLIENT — MES COMMANDES */
.orders-section {
  width: min(1160px, calc(100% - 24px));
  margin: 22px auto;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.orders-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.orders-heading h2 { margin: 7px 0 5px; font-family: var(--font-display); font-size: clamp(2rem, 7vw, 3rem); font-weight: 400; }
.orders-heading p { color: var(--muted); font-size: .8rem; line-height: 1.6; }
.my-orders-list { display: grid; gap: 12px; }
.customer-order-card { padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper-2); animation: cardIn .35s both; }
.customer-order-top, .customer-order-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.customer-order-top > div { min-width: 0; }
.customer-order-top span, .customer-order-top small { display: block; color: var(--muted); font-size: .66rem; }
.customer-order-top strong { display: block; margin: 3px 0; font-size: .88rem; overflow-wrap: anywhere; }
.customer-order-status { flex: 0 0 auto; padding: 7px 10px; border-radius: 999px; color: #755116; background: #f4e5c7; font-size: .65rem; }
.customer-order-status.confirmed, .customer-order-status.preparing { color: #175a7c; background: #dff2fb; }
.customer-order-status.shipped { color: #5d3b93; background: #eee5fb; }
.customer-order-status.delivered { color: #176238; background: #e0f5e9; }
.customer-order-status.cancelled { color: #8c2727; background: #fde5e5; }
.customer-order-items { margin: 14px 0; padding: 12px; display: grid; gap: 5px; border-radius: 13px; background: #fff; }
.customer-order-items span { color: var(--muted); font-size: .7rem; line-height: 1.45; }
.customer-order-bottom strong { font-size: .9rem; }
.customer-order-bottom button { min-height: 38px; padding: 0 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: #fff; font-size: .7rem; font-weight: 800; }
.customer-order-bottom button:disabled { opacity: .55; }
.mobile-orders-link { position: relative; }
.mobile-orders-link b { position: absolute; top: 4px; right: 10px; min-width: 17px; height: 17px; padding: 0 4px; display: grid; place-items: center; color: #fff; border-radius: 999px; background: var(--gold); font-size: .55rem; }

@media (max-width: 719px) {
  .orders-section { width: calc(100% - 16px); padding: 22px 15px; border-radius: 25px; }
  .orders-heading { align-items: stretch; flex-direction: column; }
  .orders-heading .btn { width: 100%; }
  .mobile-nav { grid-template-columns: repeat(5, 1fr); }
  .mobile-nav a, .mobile-nav button { min-width: 0; padding-left: 2px; padding-right: 2px; }
  .mobile-nav span { font-size: .55rem; }
}


/* MODE SOMBRE V4.4 */
:root[data-theme="dark"] {
  --bg: #0d0d0c;
  --paper: #171613;
  --paper-2: #211f1a;
  --ink: #f8f3e9;
  --muted: #aaa195;
  --line: rgba(255,255,255,.11);
  --gold: #d2a55f;
  --gold-dark: #e1b970;
  --gold-soft: #47391f;
  --black: #f6efe4;
  --shadow-sm: 0 12px 34px rgba(0,0,0,.28);
  --shadow-md: 0 28px 90px rgba(0,0,0,.42);
  color-scheme: dark;
}
:root[data-theme="dark"] body { background: radial-gradient(circle at 5% 3%, rgba(210,165,95,.12), transparent 25rem), radial-gradient(circle at 95% 45%, rgba(210,165,95,.07), transparent 26rem), var(--bg); }
:root[data-theme="dark"] .shop-header,
:root[data-theme="dark"] .product-card,
:root[data-theme="dark"] .modal,
:root[data-theme="dark"] .cart-drawer,
:root[data-theme="dark"] .contact-section,
:root[data-theme="dark"] .orders-section,
:root[data-theme="dark"] .tracking-section,
:root[data-theme="dark"] .benefits,
:root[data-theme="dark"] footer { background-color: var(--paper); }
:root[data-theme="dark"] input,
:root[data-theme="dark"] textarea,
:root[data-theme="dark"] select { color: var(--ink); background: #11110f; border-color: var(--line); }
:root[data-theme="dark"] .btn-dark { color:#11100e; background:#f6efe4; }
:root[data-theme="dark"] .btn-light { color:var(--ink); background:rgba(255,255,255,.06); }
.theme-toggle .theme-moon { display:none; font-size:1.25rem; }
.theme-toggle .theme-sun { font-size:1rem; }
:root[data-theme="dark"] .theme-toggle .theme-sun { display:none; }
:root[data-theme="dark"] .theme-toggle .theme-moon { display:inline; }

/* CORRECTION THÈMES V4.5 — composants cohérents en clair et sombre */
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="light"] .shop-header { background: rgba(255,253,248,.92); }
:root[data-theme="light"] .hero { background: linear-gradient(130deg,#fffdf8 0%,#f6efe3 56%,#ead7b4 100%); }
:root[data-theme="light"] .benefits,
:root[data-theme="light"] .product-card,
:root[data-theme="light"] .contact-section,
:root[data-theme="light"] .orders-section,
:root[data-theme="light"] .modal,
:root[data-theme="light"] .cart-drawer,
:root[data-theme="light"] footer { background: var(--paper); }
:root[data-theme="light"] input,
:root[data-theme="light"] select,
:root[data-theme="light"] textarea,
:root[data-theme="light"] .category-buttons button,
:root[data-theme="light"] .option-list button,
:root[data-theme="light"] .quantity-control,
:root[data-theme="light"] .favorite-row,
:root[data-theme="light"] .cart-row,
:root[data-theme="light"] .customer-order-items,
:root[data-theme="light"] .customer-order-bottom button { background: #fff; color: var(--ink); }

:root[data-theme="dark"] .shop-header { background: rgba(23,22,19,.92); }
:root[data-theme="dark"] .hero { background: linear-gradient(130deg,#171613 0%,#211f1a 58%,#342a19 100%); }
:root[data-theme="dark"] .benefits,
:root[data-theme="dark"] .product-card,
:root[data-theme="dark"] .contact-section,
:root[data-theme="dark"] .orders-section,
:root[data-theme="dark"] .modal,
:root[data-theme="dark"] .cart-drawer,
:root[data-theme="dark"] footer { background: var(--paper); color: var(--ink); }
:root[data-theme="dark"] .catalog-section { background: transparent; }
:root[data-theme="dark"] .catalog-tools,
:root[data-theme="dark"] .hero-visual,
:root[data-theme="dark"] .contact-cards a { background: rgba(255,255,255,.045); border-color: var(--line); }
:root[data-theme="dark"] input,
:root[data-theme="dark"] select,
:root[data-theme="dark"] textarea,
:root[data-theme="dark"] .category-buttons button,
:root[data-theme="dark"] .option-list button,
:root[data-theme="dark"] .quantity-control,
:root[data-theme="dark"] .favorite-row,
:root[data-theme="dark"] .cart-row,
:root[data-theme="dark"] .customer-order-items,
:root[data-theme="dark"] .customer-order-bottom button { background: var(--paper-2); color: var(--ink); border-color: var(--line); }
:root[data-theme="dark"] .search-box input:focus,
:root[data-theme="dark"] .catalog-tools select:focus { background: var(--paper-2); }
:root[data-theme="dark"] .card-heart { color: var(--ink); background: rgba(23,22,19,.88); border-color: var(--line); }
:root[data-theme="dark"] .category-buttons button.active,
:root[data-theme="dark"] .category-buttons button:hover,
:root[data-theme="dark"] .option-list button.active,
:root[data-theme="dark"] .card-btn,
:root[data-theme="dark"] .cart-btn { color: #11100e; background: #f6efe4; border-color: #f6efe4; }
:root[data-theme="dark"] .cart-btn span { color: #f6efe4; background: #11100e; }
:root[data-theme="dark"] .tracking-section { color: #f8f3e9; background: #11100e; }
:root[data-theme="dark"] .mobile-nav { background: rgba(23,22,19,.96); border-color: var(--line); }

.theme-toggle { transition: transform .2s ease, background-color .25s ease, color .25s ease, border-color .25s ease; }
.theme-toggle:active { transform: scale(.92); }
:root[data-theme="light"] .theme-toggle .theme-sun { display:none; }
:root[data-theme="light"] .theme-toggle .theme-moon { display:inline; }
:root[data-theme="dark"] .theme-toggle .theme-sun { display:inline; }
:root[data-theme="dark"] .theme-toggle .theme-moon { display:none; }
