/* ============================================================
   KOKA PEARLS — Site chrome (header, nav, drawers, footer)
   ============================================================ */

/* ---------- Announcement bar ---------- */
.announce {
  background: var(--sapphire-900); color: var(--pearl-100);
  font-size: var(--fs-2xs); letter-spacing: var(--tracking-wide); text-transform: uppercase; font-weight: 500;
  text-align: center; padding: 9px 16px; position: relative; z-index: 60;
}
.announce strong { color: #fff; font-weight: 700; }
.announce .sep { color: var(--sapphire-500); padding-inline: 12px; }
@media (max-width: 640px){ .announce .sep + span, .announce span:last-child { display:none } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--pearl-050); transition: box-shadow .3s, background .3s; }
.site-header.is-stuck { box-shadow: var(--sh-2); background: rgba(251,249,245,0.92); backdrop-filter: blur(12px); }
.header-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--s-4); padding-block: var(--s-3); }
.header-nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.header-nav a { font-size: var(--fs-xs); font-weight: 600; letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--ink-700); position: relative; padding: 6px 0; transition: color .25s; }
.header-nav a:hover, .header-nav a.is-active { color: var(--sapphire-700); }
.header-nav a.is-active::after { content:""; position:absolute; left:50%; bottom:-2px; transform:translateX(-50%); width:4px; height:4px; background:var(--gold-500); border-radius:50%; }
.header-logo { justify-self: center; }
/* per-context logo sizing (the .koka default is 64px — far too big for chrome) */
.header-logo .koka { font-size: 18px; gap: 0.5em; }
/* small size makes the em-based frame look thin — thicken it a touch (keep top/bottom heavier) */
.header-logo .koka__sq { border-width: 0.135em; border-top-width: 0.22em; border-bottom-width: 0.22em; }
/* the swash is just a faint highlight tucked right under "Pearls", not a bold underline */
.header-logo .koka__pearls { gap: 0.015em; }
.header-logo .koka__swash { height: 1px; min-height: 1px; width: 1.6em; opacity: 0.65; }
.footer-brand .koka { font-size: 24px; }
#navDrawer .drawer__head .koka { font-size: 17px; }
.header-actions { justify-self: stretch; width: 100%; display: flex; align-items: center; gap: var(--s-4); }
.header-actions__end { display: flex; align-items: center; gap: var(--s-3); margin-left: auto; }
/* search bar that fills the gap to the right of the logo */
.header-search {
  display: flex; align-items: center; gap: 9px; flex: 1; min-width: 0; max-width: 340px;
  background: var(--pearl-100); border: 1.5px solid var(--pearl-200); border-radius: var(--r-pill);
  padding: 9px 15px; transition: border-color .2s, background .2s, box-shadow .2s;
}
.header-search:focus-within { border-color: var(--sapphire-400); background: #fff; box-shadow: var(--sh-1); }
.header-search__ico { display: grid; color: var(--greige-500); flex: none; }
.header-search__ico svg { width: 18px; height: 18px; stroke-width: 1.6; }
.header-search input { border: none; background: none; outline: none; font: inherit; font-size: 14px; width: 100%; color: var(--ink-900); }
.header-search input::placeholder { color: var(--greige-400); }
.header-actions__end .header-search-icon { display: grid; } /* search entry point (opens the search popup) */
@media (max-width: 980px){
  .header-search { display: none; }      /* collapse to the icon on phones */
  .header-actions__end .header-search-icon { display: grid; }
}
.icon-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-800,#11162C); position: relative; transition: background .25s, color .25s; }
.icon-btn:hover { background: var(--pearl-150); color: var(--sapphire-700); }
.icon-btn svg { width: 21px; height: 21px; stroke-width: 1.4; }
.icon-btn .count {
  position: absolute; top: 3px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px;
  background: var(--sapphire-700); color: #fff; border-radius: 999px;
  font-family: var(--font-sans); font-size: 10px; font-weight: 700; display: grid; place-items: center; line-height: 1;
}
.icon-btn .count:empty, .icon-btn .count[data-n="0"] { display: none; }

/* language toggle */
.lang, .curr { display: inline-flex; align-items: center; gap: 2px; background: var(--pearl-150); border-radius: var(--r-pill); padding: 3px; }
.lang button, .curr button { font-size: 11px; font-weight: 700; letter-spacing: 0.05em; padding: 5px 9px; border-radius: var(--r-pill); color: var(--greige-500); transition: all .25s; }
.lang button.is-active, .curr button.is-active { background: var(--pearl-000); color: var(--sapphire-700); box-shadow: var(--sh-1); }

.menu-toggle { display: none; }

/* ---------- Mega search bar ---------- */
.search-pop { position: absolute; inset-inline: 0; top: 100%; background: var(--pearl-050); box-shadow: var(--sh-3); padding: var(--s-6) 0; transform: translateY(-12px); opacity: 0; pointer-events: none; transition: all .3s var(--ease); border-top: 1px solid var(--pearl-200); }
.search-pop.is-open { transform: none; opacity: 1; pointer-events: auto; }
.search-pop form { display: flex; gap: var(--s-3); align-items: center; }
.search-pop .input { flex: 1; font-size: 1.1rem; padding: 16px 18px; }
.search-sugg { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s-4); }
.search-sugg a { font-size: var(--fs-sm); color: var(--ink-500); padding: 6px 14px; border-radius: var(--r-pill); background: var(--pearl-100); transition: all .25s; }
.search-sugg a:hover { background: var(--sapphire-700); color: #fff; }

/* ---------- Drawer (cart / mobile nav) ---------- */
.scrim { position: fixed; inset: 0; background: rgba(11,20,56,0.45); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .35s; z-index: 90; }
.scrim.is-open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; bottom: 0; right: 0; width: min(440px, 92vw);
  background: var(--pearl-050); z-index: 100; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .42s var(--ease); box-shadow: var(--sh-3);
}
.drawer.is-open { transform: none; }
.drawer--left { right: auto; left: 0; transform: translateX(-100%); }
.drawer--left.is-open { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: var(--s-5) var(--s-5) var(--s-4); border-bottom: 1px solid var(--pearl-200); }
.drawer__head h3 { font-size: 1.4rem; }
.drawer__body { flex: 1; overflow-y: auto; padding: var(--s-5); }
.drawer__foot { border-top: 1px solid var(--pearl-200); padding: var(--s-5); background: var(--pearl-100); }

/* cart line */
.cart-line { display: grid; grid-template-columns: 76px 1fr auto; gap: var(--s-4); padding-block: var(--s-4); border-bottom: 1px solid var(--pearl-200); }
.cart-line__img { aspect-ratio: 4/5; border-radius: var(--r-sm); overflow: hidden; background: var(--pearl-100); }
.cart-line__img img { width: 100%; height: 100%; object-fit: cover; }
.cart-line h4 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }
.cart-line .meta { font-size: var(--fs-xs); color: var(--greige-500); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--pearl-200); border-radius: var(--r-pill); background: #fff; }
.qty button { width: 30px; height: 30px; display: grid; place-items: center; color: var(--ink-700); }
.qty button:hover { color: var(--sapphire-700); }
.qty span { min-width: 26px; text-align: center; font-size: var(--fs-sm); font-weight: 600; }
.cart-line__remove { font-size: var(--fs-xs); color: var(--greige-500); margin-top: 6px; text-decoration: underline; text-underline-offset: 2px; }
.cart-line__remove:hover { color: var(--danger-600); }
.cart-empty { text-align: center; padding: var(--s-8) var(--s-4); color: var(--greige-500); }
.cart-empty svg { width: 54px; height: 54px; margin: 0 auto var(--s-4); color: var(--platinum-300); stroke-width: 1; }

.summary-row { display: flex; justify-content: space-between; font-size: var(--fs-sm); padding-block: 6px; }
.summary-row.total { font-size: 1.05rem; font-weight: 700; border-top: 1px solid var(--pearl-200); margin-top: 8px; padding-top: 14px; }

/* mobile nav list */
.mnav { display: flex; flex-direction: column; }
.mnav a { font-family: var(--font-display); font-size: 1.7rem; font-weight: 500; padding: var(--s-3) 0; border-bottom: 1px solid var(--pearl-200); color: var(--ink-900); display: flex; justify-content: space-between; align-items: center; }
.mnav a svg { width: 18px; height: 18px; color: var(--greige-400); }

/* ---------- Footer ---------- */
.site-footer { background: var(--sapphire-900); color: var(--pearl-200); padding-block: var(--s-9) var(--s-6); margin-top: auto; }
.site-footer a { color: var(--pearl-200); transition: color .25s; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: var(--s-7); }
.footer-brand .koka { margin-bottom: var(--s-4); }
.footer-brand p { font-size: var(--fs-sm); color: var(--sapphire-200); line-height: 1.7; max-width: 30ch; }
.footer-col h5 { font-family: var(--font-sans); font-size: var(--fs-xs); font-weight: 700; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--gold-400); margin-bottom: var(--s-4); }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: var(--fs-sm); color: var(--pearl-200); }
.newsletter p { font-size: var(--fs-sm); color: var(--sapphire-200); margin-bottom: var(--s-4); }
.newsletter form { display: flex; gap: 8px; }
.newsletter .input { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.18); color: #fff; }
.newsletter .input::placeholder { color: var(--sapphire-200); }
.footer-social { display: flex; gap: 10px; margin-top: var(--s-5); }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,0.07); transition: all .3s; }
.footer-social a:hover { background: var(--gold-foil); color: #3a2c10; transform: translateY(-2px); }
.footer-social svg { width: 19px; height: 19px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-8); padding-top: var(--s-5); border-top: 1px solid rgba(255,255,255,0.1); font-size: var(--fs-xs); color: var(--sapphire-200); }
.footer-pay { display: flex; align-items: center; gap: 10px; }
.footer-pay .badge--cod { background: rgba(231,241,237,0.12); color: #B9E6D3; box-shadow: inset 0 0 0 1px rgba(185,230,211,0.3); }

/* ---------- WhatsApp float ---------- */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 80; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.wa-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; box-shadow: var(--sh-3); transition: transform .3s; color: #fff; }
.wa-btn:hover { transform: scale(1.08); }
.wa-btn--wa { background: #25D366; }
.wa-btn--ig { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.wa-btn svg { width: 22px; height: 22px; }

/* ---------- Cookie notice ---------- */
.cookie { position: fixed; left: 22px; bottom: 22px; z-index: 85; max-width: 380px; background: var(--pearl-000); border: 1px solid var(--pearl-200); border-radius: var(--r-md); box-shadow: var(--sh-3); padding: var(--s-4) var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); }
.cookie p { font-size: var(--fs-sm); color: var(--ink-700); line-height: 1.55; }
.cookie p a { color: var(--sapphire-700); text-decoration: underline; text-underline-offset: 2px; }
.cookie__btns { display: flex; gap: var(--s-2); }
@media (max-width: 560px){ .cookie { left: 12px; right: 12px; bottom: 12px; max-width: none; } }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.toast { background: var(--ink-900); color: var(--pearl-050); padding: 13px 22px; border-radius: var(--r-pill); font-size: var(--fs-sm); box-shadow: var(--sh-3); display: flex; align-items: center; gap: 10px; opacity: 0; transform: translateY(16px); animation: toastIn .4s var(--ease) forwards; }
.toast svg { width: 18px; height: 18px; color: var(--gold-400); }
@keyframes toastIn { to { opacity: 1; transform: none; } }

/* ---------- Breadcrumb ---------- */
.crumbs { display: flex; align-items: center; gap: 8px; font-size: var(--fs-xs); color: var(--greige-500); text-transform: uppercase; letter-spacing: var(--tracking-wide); }
.crumbs a:hover { color: var(--sapphire-700); }
.crumbs .sep { color: var(--platinum-300); }

/* ---------- Mobile header ---------- */
@media (max-width: 940px) {
  .header-nav.main { display: none; }
  .menu-toggle { display: grid; }
  .header-bar { grid-template-columns: auto 1fr auto; }
  .header-actions .lang, .header-actions .curr { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s-6); }
  .footer-brand, .newsletter { grid-column: 1 / -1; }
}
@media (max-width: 560px){
  .footer-grid { grid-template-columns: 1fr; }
  .header-actions .desk-only { display:none; }
}
