/* Shared styles for every Besa Goods page: tokens, header, buttons, product
   cards, footer, language visibility, cookie banner. Page-specific styles stay
   inline in each page.
   Look: "heritage with crystal accents" — the original warm palette, serif
   headings, a faint kilim lattice, and prism-tinted hairlines and glows. */
:root {
  /* original palette */
  --cream:     #FAF7F2;
  --parchment: #F2EAD8;
  --warm-tan:  #E8D5B0;
  --bark:      #C4935A;
  --earth:     #8B5E2A;
  --forest:    #2D4A1E;
  --moss:      #4A6A2E;
  --sage:      #7A9A5C;
  --gold:      #C49A3C;
  --gold2:     #DDB94E;
  --charcoal:  #1E1A14;
  --ink:       #2C2416;
  --muted:     #6E5E48;
  --light:     #6A5B44;   /* darkened from #8C7B62 so small text passes WCAG AA on parchment */
  --border:    rgba(139,94,42,0.15);
  --border2:   rgba(139,94,42,0.30);

  /* crystal tints */
  --ice:           #DCEFF5;
  --ice-deep:      #4E8EA3;
  --mint:          #C4E9DD;
  --teal:          #226A61;
  --amethyst:      #D8CCEC;
  --amethyst-deep: #6A5596;
  --gold-pale:     #F5E7BF;
  --prism:      linear-gradient(100deg, var(--gold2) 0%, var(--ice-deep) 35%, var(--amethyst-deep) 65%, var(--gold) 100%);
  --prism-soft: linear-gradient(140deg, var(--gold-pale), var(--ice), var(--amethyst), var(--gold-pale));
  --facet: polygon(7% 0, 93% 0, 100% 7%, 100% 93%, 93% 100%, 7% 100%, 0 93%, 0 7%);
  --diamond: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);

  /* Albanian kilim lattice (diamond, inner diamond, hooked ticks) and zigzag edge */
  --folk: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%238B5E2A' stroke-width='1' opacity='.09'%3E%3Cpath d='M28 4 52 28 28 52 4 28Z'/%3E%3Cpath d='M28 16 40 28 28 40 16 28Z'/%3E%3Cpath d='M28 4v6M28 46v6M4 28h6M46 28h6M22 10l6-6 6 6M22 46l6 6 6-6'/%3E%3C/g%3E%3C/svg%3E");
  --folk-gold: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23DDB94E' stroke-width='1' opacity='.08'%3E%3Cpath d='M28 4 52 28 28 52 4 28Z'/%3E%3Cpath d='M28 16 40 28 28 40 16 28Z'/%3E%3Cpath d='M28 4v6M28 46v6M4 28h6M46 28h6M22 10l6-6 6 6M22 46l6 6 6-6'/%3E%3C/g%3E%3C/svg%3E");
  --zigzag: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='10' viewBox='0 0 24 10'%3E%3Cpath d='M0 9 6 1l6 8 6-8 6 8' fill='none' stroke='%23DDB94E' stroke-width='1.2' opacity='.55'/%3E%3C/svg%3E");

  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:  'Poppins', system-ui, -apple-system, sans-serif;
  --header-h: 64px;
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; scroll-padding-top:calc(var(--header-h) + 16px); }
body {
  background:var(--cream) var(--folk); color:var(--ink);
  font-family:var(--sans); font-weight:300;
  overflow-x:hidden; line-height:1.5;
}
img { max-width:100%; display:block; }
a { color:inherit; }
:focus-visible { outline:2px solid var(--teal); outline-offset:2px; }

/* Serif display type. Cormorant ships old-style figures; use lining ones so
   "1,200m" never reads as "1,2oom". */
body { font-variant-numeric:lining-nums; }

.skip-link {
  position:absolute; left:-9999px; top:8px; z-index:200;
  background:var(--forest); color:#fff; padding:8px 14px; border-radius:6px;
}
.skip-link:focus { left:8px; }

.visually-hidden {
  position:absolute !important; width:1px; height:1px; overflow:hidden;
  clip:rect(0 0 0 0); white-space:nowrap;
}

/* ── LANGUAGE VISIBILITY ──
   Every translated string exists as siblings with class en / sq / de.
   <html lang> decides which one shows. .lang-fallback is set by besa.js on an
   .en element that has no sibling in the active language. */
html[lang="sq"] .en:not(.lang-fallback),
html[lang="de"] .en:not(.lang-fallback),
html:not([lang="sq"]) .sq,
html:not([lang="de"]) .de { display:none !important; }

/* ── HEADER ── */
.site-header {
  position:sticky; top:0; z-index:100;
  background:rgba(250,247,242,0.8);
  backdrop-filter:blur(14px) saturate(1.2); -webkit-backdrop-filter:blur(14px) saturate(1.2);
}
.site-header::after {
  content:''; position:absolute; left:0; right:0; bottom:0; height:1px;
  background:var(--prism); opacity:0.55;
}
.header-row {
  max-width:1200px; margin:0 auto; height:var(--header-h);
  display:flex; align-items:center; justify-content:space-between; gap:1rem;
  padding:0 1.5rem;
}
.nav-logo { display:flex; align-items:center; gap:10px; text-decoration:none; flex-shrink:0; }
/* Crystal logo mark: the star sits in a faceted hexagon */
.logo-eagle {
  width:34px; height:34px; position:relative;
  display:flex; align-items:center; justify-content:center;
  clip-path:polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background:linear-gradient(145deg, #3A5F28 0%, var(--forest) 55%, var(--teal) 100%);
}
.logo-eagle::before {
  content:''; position:absolute; inset:0;
  clip-path:polygon(50% 0, 100% 25%, 50% 50%, 0 25%);
  background:rgba(255,255,255,0.12);
}
.logo-eagle svg { position:relative; }
.logo-eagle path { fill:var(--gold-pale); opacity:1; }
.logo-name {
  font-family:var(--serif); font-size:1.35rem; font-weight:700;
  color:var(--forest); letter-spacing:0.01em; line-height:1;
}
.logo-name span { font-style:italic; font-weight:600; color:var(--earth); }

.nav-links { display:flex; gap:1.6rem; list-style:none; }
.nav-links a {
  font-size:0.72rem; font-weight:500; letter-spacing:0.12em; text-transform:uppercase;
  color:var(--muted); text-decoration:none; transition:color 0.2s; white-space:nowrap;
}
.nav-links a:hover { color:var(--forest); }

.header-actions { display:flex; align-items:center; gap:0.75rem; }
.lang-toggle { display:flex; gap:4px; }
.lang-btn {
  min-width:36px; min-height:32px; padding:4px 9px;
  font-size:0.68rem; font-weight:500; letter-spacing:0.08em;
  background:none; border:1px solid var(--border2); border-radius:999px;
  color:var(--muted); cursor:pointer; font-family:inherit; transition:all 0.2s;
}
a.lang-btn { display:inline-flex; align-items:center; justify-content:center; text-decoration:none; }
.lang-btn[aria-pressed="true"], .lang-btn[aria-current="page"] { background:var(--forest); color:#fff; border-color:var(--forest); }

/* ── BUTTONS ── */
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:6px;
  font-family:inherit; font-size:0.74rem; font-weight:600; letter-spacing:0.1em;
  text-transform:uppercase; text-decoration:none; cursor:pointer;
  padding:12px 22px; min-height:46px; border-radius:999px; border:1.5px solid transparent;
  transition:background 0.2s, box-shadow 0.2s, color 0.2s;
}
.btn-primary {
  color:#fff; background:linear-gradient(180deg, #3A5F28 0%, var(--forest) 100%);
  box-shadow:inset 0 1px 0 rgba(245,231,191,0.35), 0 6px 18px rgba(45,74,30,0.2);
}
.btn-primary:hover { background:linear-gradient(180deg, #44702F 0%, #33551F 100%); }
.btn-outline {
  color:var(--forest);
  background:linear-gradient(var(--cream), var(--cream)) padding-box, var(--prism) border-box;
}
.btn-outline:hover { background:linear-gradient(#fff, #fff) padding-box, var(--prism) border-box; }
.btn-amazon {
  color:var(--charcoal); background:linear-gradient(180deg, #E2C35E, var(--gold));
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.45);
}
.btn-amazon:hover { background:linear-gradient(180deg, #EACF72, #CDA544); }
.btn-sm { padding:8px 16px; min-height:40px; font-size:0.64rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity:0.5; cursor:not-allowed; }

.header-cta { padding:8px 18px; min-height:38px; font-size:0.68rem; }

/* Mobile: links become a second, horizontally scrollable row */
@media (max-width:900px) {
  :root { --header-h:100px; }
  .header-row { height:auto; flex-wrap:wrap; gap:0; padding:0 1rem; }
  .header-row > .nav-logo, .header-row > .header-actions { height:56px; }
  .header-nav { order:3; width:calc(100% + 2rem); margin:0 -1rem; }
  .site-header .nav-links {
    gap:1.25rem; overflow-x:auto; padding:0 1rem; height:44px; align-items:center;
    border-top:1px solid var(--border); scrollbar-width:none;
  }
  .site-header .nav-links::-webkit-scrollbar { display:none; }
  .header-cta { display:none; }
  .logo-name { font-size:1.22rem; }
}

/* ── PRODUCT CARDS (home shop grid + essentials) ── */
.products { display:grid; grid-template-columns:repeat(3,1fr); gap:1.25rem; }
.product {
  position:relative; border-radius:18px; overflow:hidden;
  display:flex; flex-direction:column;
  border:1.5px solid transparent;
  background:linear-gradient(#fff, #fff) padding-box, var(--prism-soft) border-box;
  box-shadow:0 4px 18px rgba(45,74,30,0.06);
  transition:box-shadow 0.35s, transform 0.35s;
}
.product:hover { transform:translateY(-4px); box-shadow:0 16px 40px rgba(78,142,163,0.16), 0 4px 14px rgba(45,74,30,0.08); }
.product[hidden] { display:none; }
.product-media { position:relative; aspect-ratio:1/1; overflow:hidden; background:var(--parchment); }
.product-media img { width:100%; height:100%; object-fit:cover; transition:transform 0.5s; }
.product:hover .product-media img { transform:scale(1.04); }
.product-badge {
  position:absolute; top:12px; left:12px;
  font-size:0.58rem; font-weight:600; letter-spacing:0.14em; text-transform:uppercase;
  padding:5px 11px; border-radius:999px; color:#fff; background:var(--forest);
}
.badge-bark { background:var(--earth); }
.badge-earth { background:#6E4A21; }
.badge-gold { background:var(--gold-pale); color:var(--earth); }
.badge-dark { background:var(--charcoal); }
.product-body { position:relative; overflow:hidden; padding:1.1rem 1.15rem 1.25rem; display:flex; flex-direction:column; flex:1; }
/* Hover shine: sweeps across the text area only, never over the photo */
.product-body::after {
  content:''; position:absolute; top:-50%; left:-60%; width:40%; height:200%;
  transform:rotate(20deg); opacity:0; pointer-events:none;
  background:linear-gradient(90deg, transparent, rgba(220,239,245,0.9), rgba(216,204,236,0.6), transparent);
}
.product:hover .product-body::after { animation:besa-shine 1.1s ease forwards; }
@keyframes besa-shine { 0% { opacity:0; left:-60%; } 20% { opacity:1; } 100% { opacity:0; left:130%; } }
.product-body > * { position:relative; z-index:1; }
.product-meta { font-size:0.6rem; font-weight:600; letter-spacing:0.14em; text-transform:uppercase; color:var(--earth); margin-bottom:5px; }
.product-name {
  font-family:var(--serif); font-size:1.3rem; font-weight:700; color:var(--forest);
  line-height:1.15; margin-bottom:0.5rem; flex:1;
}
.product-desc { font-size:0.8rem; color:var(--muted); line-height:1.65; margin-bottom:0.75rem; }
.product-price { font-size:1.05rem; font-weight:600; color:var(--ink); margin-bottom:0.9rem; }
.price-note { font-size:0.68rem; font-weight:300; color:var(--light); }
.product .btn { width:100%; }
@media (max-width:900px) {
  .products { grid-template-columns:1fr 1fr; gap:0.75rem; }
}
@media (max-width:560px) {
  .product { border-radius:16px; }
  .product-body { padding:0.85rem 0.8rem 1rem; }
  .product-name { font-size:1.08rem; }
  .product-desc { font-size:0.74rem; }
  .product-price { font-size:0.95rem; }
  .product .btn { padding:9px 8px; font-size:0.58rem; letter-spacing:0.06em; white-space:nowrap; }
  .product-badge { top:8px; left:8px; font-size:0.5rem; padding:4px 8px; }
}

/* ── FOOTER ── */
.site-footer {
  position:relative; background:var(--charcoal); color:rgba(250,247,242,0.72);
  padding:2.75rem 1.5rem 6rem; font-size:0.78rem;
}
.site-footer::before {
  content:''; position:absolute; top:0; left:0; right:0; height:10px;
  background:var(--zigzag) repeat-x;
}
.footer-inner {
  max-width:1200px; margin:0 auto;
  display:flex; flex-wrap:wrap; justify-content:space-between; gap:1.5rem 2rem;
}
.footer-logo { font-family:var(--serif); font-size:1.4rem; font-weight:700; color:#fff; letter-spacing:0.01em; }
.footer-logo span { font-style:italic; font-weight:600; color:var(--bark); }
.footer-tagline { font-family:var(--serif); font-size:1.02rem; font-style:italic; font-weight:600; color:rgba(250,247,242,0.65); margin-top:4px; }
.footer-links { display:flex; flex-wrap:wrap; gap:0.75rem 1.5rem; list-style:none; align-items:center; }
.footer-links a, .footer-links button {
  font:inherit; font-size:0.68rem; letter-spacing:0.12em; text-transform:uppercase;
  color:rgba(250,247,242,0.72); text-decoration:none; background:none; border:none; cursor:pointer;
  min-height:32px; display:inline-flex; align-items:center; padding:0;
}
.footer-links a:hover, .footer-links button:hover { color:#fff; }
.footer-legal {
  max-width:1200px; margin:1.5rem auto 0; padding-top:1.25rem;
  border-top:1px solid rgba(250,247,242,0.12);
  font-size:0.7rem; line-height:1.7; color:rgba(250,247,242,0.6);
}
@media (min-width:901px) { .site-footer { padding-bottom:2.5rem; } }

/* ── AFFILIATE DISCLOSURE ── */
/* Visible note placed right above the products */
.aff-note {
  display:flex; align-items:center; justify-content:center; gap:8px;
  width:fit-content; max-width:100%; margin:0 auto 1.25rem; padding:8px 14px;
  border-radius:999px; background:var(--gold-pale); color:var(--ink);
  border:1px solid rgba(139,94,42,0.35);
  font-size:0.78rem; font-weight:500; line-height:1.4; text-align:center;
}
.aff-note svg { flex-shrink:0; color:var(--earth); }
.aff-wrap { max-width:1200px; margin:0 auto; padding:0 1.5rem; }
.disclosure {
  max-width:760px; margin:1.5rem auto 0; text-align:center;
  font-size:0.72rem; line-height:1.7; color:var(--muted);
}

/* ── COOKIE BANNER ── */
.cookie-banner {
  position:fixed; z-index:300; left:16px; right:16px; bottom:16px;
  max-width:560px; margin:0 auto; color:var(--ink);
  border:1.5px solid transparent; border-radius:16px;
  background:linear-gradient(rgba(255,255,255,0.94), rgba(255,255,255,0.94)) padding-box, var(--prism) border-box;
  backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px);
  box-shadow:0 12px 40px rgba(30,26,20,0.18);
  padding:1rem 1.1rem; font-size:0.8rem; line-height:1.6;
}
.cookie-banner[hidden] { display:none; }
.cookie-banner p { margin-bottom:0.75rem; }
.cookie-banner a { color:var(--teal); font-weight:500; }
.cookie-actions { display:flex; gap:8px; flex-wrap:wrap; }
.cookie-actions .btn { flex:1; min-width:120px; padding:10px 16px; }
body.cookie-open .sticky-cta { display:none; }
@media (max-width:540px) {
  .cookie-banner { left:8px; right:8px; bottom:8px; padding:0.85rem; font-size:0.76rem; }
}

@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  *, *::before, *::after { animation:none !important; transition:none !important; }
  .product:hover, .product:hover .product-media img { transform:none; }
}

/* ── GIFT IDEAS (generated section, see _data/products.json) ──
   Festive but in the same language: deep forest band, gold kilim lattice,
   sparse gold folk stars. Cards stay white so photos stay clear. */
.folk-star { display:inline-block; vertical-align:-2px; color:var(--gold2); flex-shrink:0; }
.nav-links a.nav-gifts { display:inline-flex; align-items:center; gap:5px; color:var(--earth); font-weight:600; }
.nav-links a.nav-gifts .folk-star { color:var(--gold); }

.gift-teaser { position:relative; background:linear-gradient(90deg, #F7EDD3, var(--gold-pale) 50%, #F7EDD3); }
.gift-teaser::after { content:''; position:absolute; left:0; right:0; bottom:0; height:1px; background:var(--prism); opacity:.6; }
.gift-teaser-inner { max-width:1200px; margin:0 auto; padding:0.7rem 1.5rem; display:flex; align-items:center; justify-content:center; gap:12px; flex-wrap:wrap; text-align:center; }
.gift-teaser p { font-size:0.84rem; color:var(--ink); }
.gift-teaser strong { font-family:var(--serif); font-size:1.15rem; font-weight:700; color:var(--forest); margin-right:4px; }
.gift-teaser .folk-star { color:var(--earth); width:16px; height:16px; }
.gift-teaser-btn { color:var(--forest); background:linear-gradient(#fff,#fff) padding-box, var(--prism) border-box; min-height:36px; padding:6px 16px; }

.gifts {
  position:relative; color:#fff; overflow:hidden;
  background:
    radial-gradient(40rem 22rem at 12% 0%, rgba(221,185,78,.18), transparent 60%),
    radial-gradient(36rem 22rem at 90% 100%, rgba(78,142,163,.20), transparent 60%),
    var(--folk-gold), linear-gradient(180deg, #24401A, var(--forest) 40%, #22391A);
}
.gifts::before { content:''; position:absolute; top:0; left:0; right:0; height:10px; background:var(--zigzag) repeat-x; }
/* sparse folk stars, decorative only */
.gifts::after {
  content:''; position:absolute; inset:0; pointer-events:none; opacity:.55;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='220' viewBox='0 0 260 220'%3E%3Cg fill='%23DDB94E'%3E%3Cpath transform='translate(30 40) scale(.5)' d='M12 1l2.6 6.3L21 4.6l-2.7 6.4L24 12l-5.7 1 2.7 6.4-6.4-2.7L12 23l-2.6-6.3L3 19.4l2.7-6.4L0 12l5.7-1L3 4.6l6.4 2.7Z' opacity='.6'/%3E%3Cpath transform='translate(190 120) scale(.35)' d='M12 1l2.6 6.3L21 4.6l-2.7 6.4L24 12l-5.7 1 2.7 6.4-6.4-2.7L12 23l-2.6-6.3L3 19.4l2.7-6.4L0 12l5.7-1L3 4.6l6.4 2.7Z' opacity='.45'/%3E%3Ccircle cx='120' cy='30' r='1.4' opacity='.7'/%3E%3Ccircle cx='60' cy='170' r='1.1' opacity='.6'/%3E%3Ccircle cx='230' cy='40' r='1' opacity='.5'/%3E%3C/g%3E%3C/svg%3E");
  background-size:260px 220px;
}
.gifts .section-inner { position:relative; z-index:1; }
.gifts .section-eyebrow { color:var(--gold-pale); display:flex; align-items:center; justify-content:center; gap:8px; }
.gifts .section-title { color:#fff; }
.gifts .section-title em { color:var(--gold2); }
.gifts .section-sub { color:rgba(255,255,255,.82); }
.gift-grid { grid-template-columns:repeat(auto-fit, minmax(220px, 268px)); justify-content:center; }
.gift-note { font-size:0.74rem; line-height:1.5; color:var(--muted); margin:-0.4rem 0 0.8rem; }
.gifts .aff-note { margin-bottom:1.75rem; }
@media (max-width:620px) { .gift-grid { grid-template-columns:1fr 1fr; } }
@media (max-width:560px) {
  .gift-teaser strong { display:block; margin:0 0 2px; }
}
