/* ============================================================
   EZTHET — Design System
   L'art de vivre se déguste.
   Éditorial chic · chaleureux · moderne & audacieux
   ============================================================ */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,500&family=Schibsted+Grotesk:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500&display=swap');

/* ============================================================
   TOKENS
   ============================================================ */
:root {
  /* Type — grotesque moderne, titres en bas-de-casse */
  --serif: 'Schibsted Grotesk', system-ui, -apple-system, sans-serif;   /* display */
  --sans:  'Hanken Grotesk', system-ui, -apple-system, sans-serif;      /* texte & ui */

  /* Palette — Or & Noir : blanc chaud · noir · or doré */
  --paper:        oklch(0.974 0.008 85);   /* blanc chaud / ivoire */
  --paper-2:      oklch(0.950 0.011 84);
  --paper-3:      oklch(0.916 0.014 82);
  --ink:          oklch(0.175 0.008 70);   /* noir chaud */
  --ink-soft:     oklch(0.395 0.011 72);
  --ink-faint:    oklch(0.560 0.012 76);
  --wine:         oklch(0.595 0.094 76);   /* or bronze (primaire/accent) */
  --wine-deep:    oklch(0.500 0.085 73);
  --terracotta:   oklch(0.715 0.115 72);   /* ambre doré (accent chaud) */
  --gold:         oklch(0.760 0.108 84);   /* or */
  --gold-soft:    oklch(0.850 0.075 86);
  --line:         oklch(0.175 0.008 70 / 0.14);
  --line-strong:  oklch(0.175 0.008 70 / 0.30);

  /* Surfaces dérivées */
  --card:         var(--paper);
  --on-paper:     var(--ink);

  /* Espace */
  --gutter: clamp(20px, 5vw, 80px);
  --section: clamp(64px, 9vw, 150px);
  --maxw: 1500px;

  /* Divers */
  --radius: 100px;        /* boutons pilule */
  --radius-card: 0px;     /* médias & cartes — angles vifs (à tester) */
  --shadow: 0 30px 80px -42px oklch(0.175 0.010 70 / 0.42);
}

/* ---------- Variante : Nuit dorée (noir profond, or, dramatique) ---------- */
[data-mood="nuit"] {
  --paper:      oklch(0.165 0.006 70);
  --paper-2:    oklch(0.205 0.008 72);
  --paper-3:    oklch(0.250 0.010 74);
  --ink:        oklch(0.955 0.010 88);
  --ink-soft:   oklch(0.82 0.012 84);
  --ink-faint:  oklch(0.66 0.012 80);
  --wine:       oklch(0.78 0.105 84);
  --wine-deep:  oklch(0.70 0.095 82);
  --terracotta: oklch(0.80 0.105 78);
  --gold:       oklch(0.82 0.100 84);
  --gold-soft:  oklch(0.88 0.070 86);
  --line:       oklch(0.955 0.010 88 / 0.16);
  --line-strong:oklch(0.955 0.010 88 / 0.30);
  --shadow: 0 30px 90px -40px oklch(0 0 0 / 0.7);
}

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

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

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background 0.6s ease, color 0.6s ease;
}

img, svg, image-slot { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul, ol { list-style: none; }

/* subtle paper grain over everything */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9999;
  opacity: 0.5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
}
[data-mood="nuit"] body::after,
body[data-mood="nuit"]::after { mix-blend-mode: screen; opacity: 0.35; }
html.no-grain body::after { display: none; }

/* ============================================================
   TYPOGRAPHIE
   ============================================================ */
.serif { font-family: var(--serif); }
.display {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-transform: lowercase;
  text-wrap: balance;
}
.display-xl { font-size: clamp(3.4rem, 11vw, 11rem); }
.display-l  { font-size: clamp(2.8rem, 7.5vw, 6.4rem); }
.display-m  { font-size: clamp(2.2rem, 4.6vw, 4rem); }
.display-s  { font-size: clamp(1.7rem, 3vw, 2.7rem); }

.italic { font-family: var(--sans); font-weight: 500; font-style: italic; letter-spacing: -0.005em; }
.wine-text { color: var(--wine); }
.terra-text { color: var(--terracotta); }

/* Eyebrow / label */
.eyebrow {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.eyebrow.on-dark { color: var(--gold-soft); }

.lead {
  font-family: var(--sans);
  font-size: clamp(1.15rem, 1.7vw, 1.5rem);
  line-height: 1.5;
  color: var(--ink-soft);
  font-weight: 400;
}
.body {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-soft);
  font-weight: 300;
  max-width: 56ch;
}
.fineprint {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 500;
}

/* Section index numbers */
.idx {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--terracotta);
}

/* ============================================================
   LAYOUT
   ============================================================ */
.shell { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.divider { height: 1px; background: var(--line); border: 0; }
.rule-gold { height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); border: 0; }

.flow > * + * { margin-top: 1.1rem; }

.grid { display: grid; gap: clamp(20px, 3vw, 48px); }
.grid > * { min-width: 0; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0;
  text-transform: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  padding: 0.95em 1.7em;
  line-height: 1;
  border-radius: var(--radius);
  transition: all 0.35s cubic-bezier(0.2,0.7,0.2,1);
  cursor: pointer;
  white-space: nowrap;
}
.btn .arrow { transition: transform 0.35s cubic-bezier(0.2,0.7,0.2,1); }
.btn:hover .arrow { transform: translateX(5px); }

.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--wine); color: var(--ink); }

.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--wine); color: var(--ink); }

.btn-outline { border: 1px solid var(--line-strong); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.btn-ghost { padding-inline: 0; }
.btn-ghost .ul { position: relative; }
.btn-ghost .ul::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: currentColor; transform: scaleX(1); transform-origin: left; transition: transform 0.4s ease;
}
.btn-ghost:hover .ul::after { transform: scaleX(0); transform-origin: right; }

/* link with arrow underline */
.link-arrow {
  font-family: var(--sans); font-weight: 600; font-size: 0.85rem;
  letter-spacing: 0; text-transform: none;
  display: inline-flex; align-items: center; gap: 0.5em;
  padding-bottom: 0.4em; border-bottom: 1px solid var(--line-strong);
  transition: gap 0.3s ease, border-color 0.3s ease;
}
.link-arrow:hover { gap: 0.9em; border-color: var(--wine); color: var(--wine); }

/* ============================================================
   PHOTO PLACEHOLDERS & IMAGE SLOTS
   ============================================================ */
image-slot {
  --slot-bg: var(--paper-3);
  width: 100%; height: 100%;
  /* Lumière dorée chaleureuse quand l'emplacement est vide */
  background:
    radial-gradient(120% 90% at 30% 12%, oklch(0.82 0.07 84 / 0.55), transparent 55%),
    radial-gradient(100% 80% at 85% 100%, oklch(0.55 0.06 70 / 0.30), transparent 60%),
    linear-gradient(160deg, var(--paper-2), var(--paper-3));
}
/* warm fallback look for empty slots */
.ph {
  position: relative; overflow: hidden; border-radius: var(--radius-card);
  background:
    repeating-linear-gradient(135deg,
      oklch(0.70 0.09 82 / 0.10) 0 2px,
      transparent 2px 16px),
    linear-gradient(160deg, var(--paper-3), var(--paper-2));
  display: grid; place-items: center; text-align: center;
}
.ph .ph-label {
  font-family: var(--sans); font-weight: 600;
  font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-faint);
  padding: 0.6em 1em; border-radius: 100px; border: 1px solid var(--line);
  background: oklch(0.97 0.01 115 / 0.55); backdrop-filter: blur(2px);
}

/* ============================================================
   HEADER
   ============================================================ */
.topbar {
  background: var(--ink); color: var(--paper);
  font-family: var(--sans); font-weight: 400;
  font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase;
  text-align: center; padding: 0.7em 1em;
}
.topbar .tb-track { display: inline-flex; gap: 3em; align-items: center; }
.topbar .dot { display: inline-block; width: 20px; height: 1px; background: currentColor; color: var(--gold-soft); opacity: 0.55; vertical-align: middle; margin: 0 0.2em; }
.bo-link { color: var(--wine); }
.mm-admin { color: var(--wine) !important; }

.site-header {
  position: sticky; top: 0; z-index: 200;
  background: oklch(0.968 0.016 110 / 0.82);
  backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid var(--line);
  transition: background 0.5s ease;
}
[data-mood="nuit"] .site-header { background: oklch(0.165 0.006 70 / 0.85); }

.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; height: 78px;
}
.brand {
  font-family: var(--serif); font-weight: 700;
  font-size: 1.5rem; letter-spacing: 0.16em; text-transform: uppercase;
  padding-left: 0.16em;
  line-height: 1;
}
.nav-links { display: flex; gap: 2.2rem; align-items: center; }
.nav-links a {
  font-family: var(--sans); font-weight: 600;
  font-size: 0.74rem; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--ink-soft); position: relative; padding-block: 0.4em;
  transition: color 0.3s ease;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--wine); transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.2,0.7,0.2,1);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--ink); }

.nav-tools { display: flex; align-items: center; gap: 1.3rem; }
.icon-btn {
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 50%; transition: background 0.3s ease, color 0.3s ease;
  position: relative; color: var(--ink);
}
.icon-btn:hover { background: var(--paper-3); }
.icon-btn svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.4; }
.cart-count {
  position: absolute; top: 2px; right: 2px;
  background: var(--terracotta); color: oklch(0.22 0.03 50);
  font-family: var(--sans); font-size: 0.6rem; font-weight: 700;
  min-width: 17px; height: 17px; border-radius: 9px; padding: 0 4px;
  display: grid; place-items: center; letter-spacing: 0;
}
.burger { display: none; }

/* ============================================================
   PRODUCT CARD
   ============================================================ */
.prod {
  position: relative; display: flex; flex-direction: column; height: 100%;
  background: var(--card);
}
.prod-media {
  position: relative; aspect-ratio: 3 / 4; overflow: hidden;
  border-radius: var(--radius-card);
  background:
    radial-gradient(120% 90% at 50% 8%, oklch(0.98 0.015 115 / 0.8), transparent 60%),
    linear-gradient(170deg, var(--paper-2), var(--paper-3));
  display: grid; place-items: center;
  border: 1px solid var(--line);
  transition: border-color 0.4s ease, background 0.4s ease;
}
.prod:hover .prod-media { border-color: var(--line-strong); }
.prod-media .bottle { position: absolute; top: 50%; left: 50%; height: 82%; transform: translate(-50%, -50%); transition: transform 0.6s cubic-bezier(0.2,0.7,0.2,1); }
.prod:hover .prod-media .bottle { transform: translate(-50%, -50%) translateY(-8px) scale(1.02); }
/* Vraie photo produit — centrée h/v dans le cadre */
.prod-media .prod-photo {
  position: absolute; top: 50%; left: 50%;
  max-width: 78%; max-height: 84%; width: auto; height: auto;
  object-fit: contain; object-position: center;
  mix-blend-mode: multiply;
  transform: translate(-50%, -50%);
  transition: transform 0.6s cubic-bezier(0.2,0.7,0.2,1);
}
.prod:hover .prod-media .prod-photo { transform: translate(-50%, -50%) translateY(-8px) scale(1.03); }
.prod-price .old { color: var(--ink-faint); text-decoration: line-through; font-weight: 500; font-size: 0.82em; margin-right: 0.45em; }
.prod-tag {
  position: absolute; top: 14px; left: 14px;
  font-family: var(--sans); font-weight: 600;
  font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--ink); color: var(--paper); padding: 0.5em 0.9em;
  border-radius: 100px; white-space: nowrap;
}
.prod-tag.terra { background: var(--terracotta); color: oklch(0.22 0.03 50); }
.prod-fav {
  position: absolute; top: 10px; right: 10px; width: 38px; height: 38px;
  display: grid; place-items: center; color: var(--ink-soft);
  opacity: 0; transform: translateY(-4px); transition: all 0.35s ease;
}
.prod:hover .prod-fav { opacity: 1; transform: translateY(0); }
.prod-fav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.prod-body { padding: 1.1rem 0.2rem 0.4rem; display: flex; flex-direction: column; gap: 0.3rem; flex: 1 1 auto; }
.prod-region { font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; }
.prod-name { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; }
.prod-meta { font-family: var(--sans); font-size: 0.82rem; color: var(--ink-faint); font-weight: 400; }
.prod-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 0.6rem 0.8rem; flex-wrap: wrap; margin-top: auto; padding-top: 0.9rem; }
.prod-price-wrap { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.prod-price { font-family: var(--sans); font-size: 1.15rem; font-weight: 700; line-height: 1.1; white-space: nowrap; }
.prod-price .per { font-size: 0.6em; font-weight: 500; color: var(--ink-faint); letter-spacing: 0.02em; }
.prod-price .cur { font-size: 0.9rem; }
.prod-price-case { font-family: var(--sans); font-size: 0.72rem; font-weight: 500; color: var(--ink-faint); white-space: nowrap; }
.prod-add {
  font-family: var(--sans); font-weight: 600; font-size: 0.78rem;
  letter-spacing: 0; text-transform: none;
  white-space: nowrap; flex-shrink: 0; align-self: flex-end;
  padding: 0.6em 1.15em; border-radius: 100px; border: 1px solid var(--line-strong);
  transition: all 0.3s ease;
}
.prod-add:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* A drawn "bottle" silhouette is acceptable per primitives — kept abstract */
.bottle {
  width: 76px; aspect-ratio: 76 / 300;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--ink); color: var(--paper); padding-block: clamp(56px, 7vw, 100px) 2.5rem; }
.site-footer a { color: oklch(0.88 0.02 115); transition: color 0.3s ease; }
.site-footer a:hover { color: var(--gold-soft); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: clamp(28px, 4vw, 64px); }
.footer-col h4 { font-family: var(--sans); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 1.3rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.8rem; }
.footer-col a { font-family: var(--sans); font-size: 0.95rem; font-weight: 400; letter-spacing: 0; }
.footer-brand { font-family: var(--serif); font-weight: 700; font-size: 2.2rem; letter-spacing: 0.14em; text-transform: uppercase; padding-left: 0.14em; }

/* ============================================================
   REVEAL ANIMATIONS
   Robust: content is visible by default. It is only hidden
   (to animate in) once JS adds .reveal-on to <html> AND the
   user allows motion — so no-JS, reduced-motion, print and
   capture contexts always show content.
   ============================================================ */
html.reveal-on .reveal { opacity: 0; transform: translateY(26px); }
@media (prefers-reduced-motion: no-preference) {
  html.reveal-on .reveal {
    transition: opacity 1s cubic-bezier(0.2,0.7,0.2,1), transform 1s cubic-bezier(0.2,0.7,0.2,1);
  }
}
html.reveal-on .reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
  html.reveal-on .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   MOBILE MENU
   ============================================================ */
.mobile-menu {
  position: fixed; inset: 0; z-index: 300;
  background: var(--paper); padding: var(--gutter);
  display: flex; flex-direction: column; overflow-y: auto;
  transform: translateY(-100%); visibility: hidden;
  transition: transform 0.5s cubic-bezier(0.2,0.7,0.2,1), visibility 0s linear 0.5s;
}
.mobile-menu.open { transform: none; visibility: visible; transition: transform 0.5s cubic-bezier(0.2,0.7,0.2,1); }
.mm-close { position: absolute; top: 18px; right: var(--gutter); }
.mm-links { display: flex; flex-direction: column; gap: 0.4rem; margin-top: 4rem; }
.mm-links a {
  font-family: var(--serif); font-size: clamp(2rem, 9vw, 3rem); font-weight: 500;
  padding-block: 0.3rem; border-bottom: 1px solid var(--line);
}

/* ============================================================
   TOAST
   ============================================================ */
.ez-toast {
  position: fixed; bottom: 28px; left: 50%; transform: translate(-50%, 120%);
  z-index: 500; background: var(--ink); color: var(--paper);
  font-family: var(--sans); font-weight: 500; font-size: 0.78rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 1.1em 1.8em; box-shadow: var(--shadow);
  transition: transform 0.45s cubic-bezier(0.2,0.7,0.2,1); white-space: nowrap;
}
.ez-toast.show { transform: translate(-50%, 0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .burger { display: grid; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .topbar { display: none; }
}

/* ============================================================
   RECHERCHE LIVE (overlay header)
   ============================================================ */
.ez-search { position: fixed; inset: 0; z-index: 400; visibility: hidden; opacity: 0; transition: opacity 0.3s ease, visibility 0s linear 0.3s; }
.ez-search.open { visibility: visible; opacity: 1; transition: opacity 0.3s ease; }
.ez-search-backdrop { position: absolute; inset: 0; background: oklch(0.16 0.01 70 / 0.5); backdrop-filter: blur(6px); }
.ez-search-panel { position: relative; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); max-height: 92vh; overflow-y: auto; transform: translateY(-20px); transition: transform 0.42s cubic-bezier(0.2,0.7,0.2,1); }
.ez-search.open .ez-search-panel { transform: none; }
.ez-search-inner { padding-block: clamp(1.3rem, 3vw, 2.2rem) clamp(2rem, 4vw, 3.2rem); }
.ez-search-bar { display: flex; align-items: center; gap: 1rem; border-bottom: 1px solid var(--line-strong); padding-bottom: 1rem; }
.ez-search-loop { display: grid; place-items: center; color: var(--ink-faint); flex-shrink: 0; }
.ez-search-loop svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.4; }
.ez-search-input { flex: 1; min-width: 0; border: none; background: none; outline: none; font-family: var(--serif); font-weight: 600; font-size: clamp(1.5rem, 3.4vw, 2.6rem); letter-spacing: -0.02em; color: var(--ink); }
.ez-search-input::placeholder { color: var(--ink-faint); }
.ez-search-input::-webkit-search-cancel-button { -webkit-appearance: none; }
.ez-search-close { flex-shrink: 0; }
.ez-search-meta { margin-top: 1rem; font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); font-weight: 500; }
.ez-search-suggest { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.2rem; }
.ez-search-results { margin-top: 1.6rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 2.2vw, 32px); }
.ez-search-empty { margin-top: 2rem; color: var(--ink-faint); font-family: var(--sans); }
.ez-search-empty .display { color: var(--ink); margin-bottom: 0.5rem; }

/* ============================================================
   PARTAGER À UN AMI — onglet flottant + volet droite
   ============================================================ */
.ez-share { position: fixed; inset: 0; z-index: 360; pointer-events: none; }
.ez-share-tab {
  position: fixed; right: 0; top: 50%; transform: translateY(-50%);
  z-index: 361; pointer-events: auto;
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  background: var(--ink); color: var(--paper); border-radius: 12px 0 0 12px;
  padding: 0.9rem 0.55rem; box-shadow: -6px 0 22px -10px oklch(0 0 0 / 0.5);
  transition: background 0.25s ease, padding 0.25s ease;
}
.ez-share-tab:hover { background: var(--wine); color: var(--ink); padding-right: 0.75rem; }
.ez-share-tab svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.ez-share-tab span { font-family: var(--sans); font-weight: 600; font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; writing-mode: vertical-rl; }
.ez-share.open .ez-share-tab { opacity: 0; pointer-events: none; }

.ez-share-backdrop { position: absolute; inset: 0; background: oklch(0.16 0.01 70 / 0.4); opacity: 0; transition: opacity 0.35s ease; }
.ez-share.open .ez-share-backdrop { opacity: 1; pointer-events: auto; }

.ez-share-panel {
  position: fixed; top: 0; right: 0; height: 100%; width: min(380px, 88vw);
  z-index: 362; pointer-events: auto; background: var(--paper);
  border-left: 1px solid var(--line); box-shadow: -30px 0 80px -40px oklch(0 0 0 / 0.6);
  padding: clamp(1.8rem, 4vw, 2.6rem); transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
  display: flex; flex-direction: column; justify-content: center;
}
.ez-share.open .ez-share-panel { transform: none; }
.ez-share-close { position: absolute; top: 1.2rem; right: 1.2rem; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: var(--ink-soft); transition: background 0.25s ease; }
.ez-share-close:hover { background: var(--paper-3); }
.ez-share-close svg { width: 20px; height: 20px; }
.ez-share-panel .eyebrow { color: var(--wine); display: block; }
.ez-share-title { font-size: clamp(1.7rem, 4vw, 2.2rem); font-weight: 600; margin: 0.7rem 0 0.6rem; line-height: 1.05; }
.ez-share-text { font-family: var(--sans); font-size: 0.92rem; line-height: 1.6; color: var(--ink-soft); margin-bottom: 1.6rem; }
.ez-share-actions { display: flex; flex-direction: column; gap: 0.7rem; }
.ez-share-opt {
  display: flex; align-items: center; gap: 0.9rem; text-align: left;
  border: 1px solid var(--line-strong); border-radius: 14px; padding: 0.85rem 1rem;
  transition: all 0.25s cubic-bezier(0.2, 0.7, 0.2, 1); background: none; color: var(--ink);
}
.ez-share-opt:hover { border-color: var(--ink); transform: translateX(-3px); }
.ez-share-opt .ic { width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px; display: grid; place-items: center; background: var(--paper-2); }
.ez-share-opt .ic svg { width: 21px; height: 21px; }
.ez-share-opt.wa .ic { background: oklch(0.62 0.16 150 / 0.16); color: oklch(0.5 0.15 150); }
.ez-share-opt.wa .ic svg { fill: currentColor; stroke: none; }
.ez-share-opt.sms .ic { color: var(--terracotta); }
.ez-share-opt.mail .ic { color: var(--wine); }
.ez-share-opt.copy .ic { color: var(--ink-soft); }
.ez-share-opt b { font-family: var(--serif); font-size: 1.05rem; font-weight: 600; display: block; }
.ez-share-opt small { font-family: var(--sans); font-size: 0.78rem; color: var(--ink-faint); }
@media (max-width: 560px) {
  .ez-share-tab { padding: 0.7rem 0.45rem; }
  .ez-share-tab span { font-size: 0.55rem; }
}
@media (max-width: 1000px) { .ez-search-results { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px) { .ez-search-results { grid-template-columns: repeat(2, 1fr); } }
