/* The Better Whisk — Extracted Component Stylesheet (lib/components.css) */

/* ---- Design System Core UI Primitives ---- */
.tbw-badge {
  display: inline-flex; align-items: center; gap: 0.4em;
  font-family: var(--font-serif); font-size: 0.8125rem; font-weight: var(--weight-medium);
  line-height: 1; letter-spacing: 0.02em; white-space: nowrap;
  padding: 0.42em 0.95em; border-radius: var(--radius-pill); border: 1px solid transparent;
}
.tbw-badge--italic { font-style: italic; font-family: var(--font-accent); font-size: 0.875rem; }
.tbw-badge--blush { background: var(--rose-100); color: var(--rose-700); }
.tbw-badge--gold { background: var(--gold-100); color: var(--gold-700); }
.tbw-badge--neutral { background: var(--cream-150); color: var(--cocoa-600); }
.tbw-badge--ink { background: var(--espresso-900); color: var(--cream-50); }
.tbw-badge--outline { background: transparent; border-color: var(--gold-400); color: var(--gold-700); }

.tbw-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  font-family: var(--font-serif); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; border-radius: 5px ; cursor: pointer;
  line-height: 1.2; text-align: center; vertical-align: middle;
  transition: background 0.25s var(--ease-out), color 0.25s var(--ease-out), border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
  border: 1.5px solid transparent; white-space: nowrap; box-sizing: border-box;
}
.tbw-btn--sm { font-size: 0.8rem; padding: 0.55rem 1.25rem; min-height: 38px; }
.tbw-btn--md { font-size: 0.875rem; padding: 0.75rem 1.6rem; min-height: 46px; }
.tbw-btn--lg { font-size: 0.92rem; padding: 0.85rem 1.85rem; min-height: 50px; }
.tbw-btn--block { display: flex; width: 100%; justify-content: center; text-align: center; }
.tbw-btn--solid {padding : 20px 10px ; background: var(--gold-500); color: #fff; border-color: var(--gold-500); box-shadow: var(--shadow-sm); }
.tbw-btn--solid:hover { background: var(--gold-600); border-color: var(--gold-600); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.tbw-btn--outline { padding : 20px 10px ; background: transparent; color: var(--gold-700); border-color: var(--gold-400); }
.tbw-btn--outline:hover { background: var(--gold-500); color: #fff; border-color: var(--gold-500); transform: translateY(-1px); }
.tbw-btn--soft { background: var(--cream-200); color: var(--espresso-900); }
.tbw-btn--soft:hover { background: var(--gold-100); color: var(--gold-700); transform: translateY(-1px); }
.tbw-btn--text { background: transparent; color: var(--gold-600); padding-inline: 0; min-height: auto; border-radius: 0; border: 0; }
.tbw-btn--text:hover { color: var(--gold-700); text-decoration: underline; }

.tbw-card {
  background: var(--surface-card, var(--warm-white)); border: 1px solid var(--cream-200);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-card); transition: box-shadow 0.35s var(--ease-out), transform 0.35s var(--ease-out);
  overflow: hidden; display: flex; flex-direction: column;
}
.tbw-card--interactive:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.tbw-card--padded { padding: clamp(1.4rem, 3vw, 2.2rem); }

.tbw-prod-card {
  background: var(--surface-card, var(--warm-white)); border: 1px solid var(--cream-200);
  border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-card);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex; flex-direction: column; height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
  -webkit-font-smoothing: antialiased;
}
.tbw-prod-card:hover { transform: translate3d(0, -6px, 0); box-shadow: var(--shadow-xl); }
.tbw-prod-card__img-wrap { position: relative; aspect-ratio: 4/3.4; overflow: hidden; background: var(--rose-100); transform: translateZ(0); }
.tbw-prod-card__img { 
  width: 100%; height: 100%; object-fit: cover; 
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.tbw-prod-card:hover .tbw-prod-card__img { transform: scale(1.06); }
.tbw-prod-card__badge { position: absolute; top: 1rem; left: 1rem; z-index: 2; }
[dir="rtl"] .tbw-prod-card__badge { left: auto; right: 1rem; }
.tbw-prod-card__body { 
  padding: 1.4rem 1.4rem 1.6rem; 
  display: flex; flex-direction: column; flex: 1; gap: 0.6rem;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.tbw-prod-card__title { 
  font-family: var(--font-display); font-weight: 700; font-size: 1.28rem; 
  color: var(--text-heading); margin: 0; line-height: 1.18;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.tbw-prod-card__desc { 
  font-family: var(--font-serif); font-size: 0.92rem; 
  color: var(--text-body); margin: 0; line-height: 1.5; flex: 1;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.tbw-quote {
  background: var(--surface-card, var(--warm-white)); border: 1px solid var(--cream-200);
  border-radius: var(--radius-xl); padding: clamp(1.8rem, 4vw, 2.8rem); box-shadow: var(--shadow-card);
  position: relative; text-align: center;
}
.tbw-quote__text { font-family: var(--font-accent); font-style: italic; font-size: clamp(1.15rem, 2.2vw, 1.45rem); line-height: 1.4; color: var(--espresso-900); margin: 0 0 1.2rem; }
.tbw-quote__author { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--gold-700); margin: 0; }

.tbw-tagline-pill {
  display: inline-block;
  background: #F9EBEF;
  border: 1px solid #F3D5DD;
  border-radius: 999px;
  padding: 0.75rem 2.2rem;
  margin-top: 1.5rem;
  font-family: var(--font-accent);
  font-style: italic;
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  color: #AA5263;
  text-align: center;
}

/* ---- PhotoStack 3D Album Stack (lib/photostack.jsx) ---- */
.pstack-wrap { perspective: 1600px; width: 100%; display: grid; place-items: center; }
.pstack {
  position: relative; transform-style: preserve-3d;
  transition: transform .5s var(--ease-out); cursor: pointer;
}
.pcard {
  position: absolute; top: 0; left: 0; transform-style: preserve-3d;
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--warm-white); border: 1px solid var(--cream-200);
  box-shadow: var(--shadow-card);
  transition: transform .66s var(--ease-out), box-shadow .5s var(--ease-out), opacity .5s ease;
  will-change: transform;
}
.pcard__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcard__sheen {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(150deg, rgba(255,255,255,.32), transparent 38%, transparent 70%, rgba(42,29,22,.10));
  mix-blend-mode: soft-light;
}
.pcard__cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem 1.3rem 1.1rem;
  background: linear-gradient(to top, rgba(42,29,22,.62), rgba(42,29,22,.18) 60%, transparent);
  color: var(--cream-50); transform: translateZ(1px);
}
.pcard__cap .k {
  font-family: var(--font-serif); text-transform: uppercase; letter-spacing: .22em;
  font-size: .68rem; color: var(--gold-300); display: block; margin-bottom: .25rem;
}
.pcard__cap .t { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; line-height: 1.12; }
.pstack__hint {
  position: absolute; left: 50%; bottom: -3rem; transform: translateX(-50%);
  font-family: var(--font-accent); font-style: italic; color: var(--rose-600);
  font-size: 1.26rem; font-weight: 600; letter-spacing: .01em;
  white-space: nowrap; opacity: 1; pointer-events: none;
  transition: opacity .4s; display: inline-flex; align-items: center; gap: .55rem;
}
.pstack__hint svg { width: 22px; height: 22px; }
.pstack-wrap:hover .pstack__hint { opacity: 0; }

/* ---- Sections (lib/sections.jsx) ---- */
.prod-grid { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: clamp(1.2rem, 2.5vw, 2rem); }
@media (max-width: 1080px) { .prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .prod-grid { grid-template-columns: minmax(0, 1fr); } }
.prod-grid .tilt { height: 100%; }
.prod-title-link { color: inherit; text-decoration: none; transition: color .25s; }
.prod-title-link:hover { color: var(--gold-700); }

.rev-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2.5vw, 2rem); }
@media (max-width: 900px) { .rev-row { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }
.rev-card {
  background: #FFFFFF !important;
  border: 1px solid #EFE6DC;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(74, 59, 50, 0.05);
  padding: clamp(1.8rem, 3.5vw, 2.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.2rem;
  transition: transform .4s var(--ease-out), box-shadow .4s;
}
.rev-card:hover { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(74, 59, 50, 0.1); }
.rev-card__stars {
  color: #C86D74;
  font-size: 1.25rem;
  letter-spacing: 0.22em;
  text-align: center;
  user-select: none;
}
.rev-card__text {
  font-family: var(--font-accent, Georgia, serif);
  font-style: italic;
  font-size: 1.06rem;
  line-height: 1.65;
  color: #4A3B32;
  margin: 0;
  text-align: center;
}
.rev-card__by {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .25rem;
  margin-top: auto;
}
.rev-card__name {
  font-family: var(--font-display, Georgia, serif);
  font-weight: 700;
  color: #2B1810;
  font-size: 1.15rem;
}
.rev-card__loc {
  font-family: var(--font-serif, Georgia, serif);
  color: #8C7B70;
  font-size: .92rem;
  letter-spacing: .02em;
}

.mq { overflow: hidden; border-block: 1px solid var(--cream-200); background: var(--cream-50); padding-block: 1.1rem; }
.mq__track { display: inline-flex; white-space: nowrap; animation: mqMove 38s linear infinite; }
.mq:hover .mq__track { animation-play-state: paused; }
.mq__item {
  display: inline-flex; align-items: center; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.1rem, 2vw, 1.6rem); color: var(--espresso-800); padding-inline: 1.4rem;
}
.mq__dot { color: var(--gold-500); margin-inline-start: 2.8rem; font-size: .7em; }
@keyframes mqMove { to { transform: translateX(-50%); } }
[dir="rtl"] .mq__track { animation-direction: reverse; }
@media (prefers-reduced-motion: reduce) { .mq__track { animation: none; } }

/* ---- Shopping Cart Drawer (lib/cart.jsx) ---- */
.nav__cart {
  position: relative; display: inline-grid; place-items: center; width: 38px; height: 38px;
  border: 0; background: transparent; color: var(--espresso-800); cursor: pointer; border-radius: 999px;
  transition: background .25s, color .25s, transform .25s var(--ease-out);
}
.nav__cart svg { width: 21px; height: 21px; }
.nav__cart:hover { background: var(--gold-100); color: var(--gold-700); }
.nav__cart.pop { animation: cartPop .45s var(--ease-out); }
@keyframes cartPop { 0%{transform:scale(1);} 35%{transform:scale(1.22);} 100%{transform:scale(1);} }
.nav__cart-badge {
  position: absolute; top: -2px; inset-inline-end: -2px; min-width: 18px; height: 18px;
  padding: 0 5px; border-radius: 999px; background: var(--rose-500); color: #fff;
  font-family: var(--font-serif); font-weight: 600; font-size: 11px; line-height: 18px; text-align: center;
  box-shadow: 0 0 0 2px var(--surface-page, #FCF8F3);
}
html[data-theme="dark"] .nav__cart-badge { box-shadow: 0 0 0 2px #211A14; }
html[data-theme="dark"] .nav__cart { color: var(--espresso-800); }

.addcart {
  display: flex; flex-direction: row; align-items: center; justify-content: space-between;
  gap: .6rem; min-width: 0; padding-top: var(--space-4); border-top: 1px solid var(--cream-200);
}
.addcart--block { flex-direction: column; align-items: stretch; gap: .7rem; }
.addcart__price {
  flex: 0 1 auto; min-width: 0; display: flex; align-items: baseline; gap: .3rem;
  font-family: var(--font-display); font-weight: 700; color: var(--text-heading);
  font-size: 1.14rem; white-space: nowrap;
}
.addcart__price em {
  font-family: var(--font-serif); font-style: normal; font-weight: 400;
  font-size: .78rem; color: var(--taupe-400); letter-spacing: .02em; white-space: nowrap;
}
.addcart__btn { white-space: nowrap; flex: 0 0 auto; max-width: 100%; }
.addcart--compact .addcart__btn { padding-inline: 1.15rem; letter-spacing: .12em; }
.addcart--block .addcart__btn { width: 100%; padding-inline: var(--space-6); }
.addcart__btn.is-added { background: var(--gold-500); border-color: var(--gold-500); color: #fff; }
[dir="rtl"] .addcart__price { font-family: var(--font-arabic-display); }

.cart-root { position: fixed; inset: 0; z-index: 100000; visibility: hidden; pointer-events: none; }
.cart-root.open { visibility: visible; pointer-events: auto; }
.cart-scrim {
  position: absolute; inset: 0; background: rgba(28,18,12,.42); backdrop-filter: blur(3px);
  opacity: 0; transition: opacity .45s var(--ease-out);
}
.cart-root.open .cart-scrim { opacity: 1; }
.cart-panel {
  position: absolute; inset-block: 0; inset-inline-end: 0; width: min(440px, 100vw);
  display: flex; flex-direction: column; background: var(--cream-50); border-inline-start: 1px solid var(--cream-200);
  box-shadow: var(--shadow-xl); transform: translateX(100%); transition: transform .5s var(--ease-out);
  max-height: 100vh; z-index: 100001;
}
#cart-drawer-content { display: flex; flex-direction: column; flex: 1; overflow-y: auto; min-height: 0; }
[dir="rtl"] .cart-panel { transform: translateX(-100%); }
.cart-root.open .cart-panel { transform: none; }
@media (prefers-reduced-motion: reduce) { .cart-panel, .cart-scrim { transition: none; } }

/* Hide DYK floating widget when cart is open */
body.cart-open .dyk,
.dyk.cart-hide {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.cart-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
  padding: clamp(1.4rem, 4vw, 2rem) clamp(1.4rem, 4vw, 2rem) 1.1rem; border-bottom: 1px solid var(--cream-200);
}
.cart-head__eyebrow {
  font-family: var(--font-serif); text-transform: uppercase; letter-spacing: .26em;
  font-size: .7rem; color: var(--taupe-400); margin: 0 0 .35rem;
}
.cart-head__title {
  font-family: var(--font-display); font-weight: 700; color: var(--espresso-900);
  font-size: clamp(1.5rem, 4vw, 1.85rem); margin: 0; line-height: 1.05;
}
[dir="rtl"] .cart-head__title { font-family: var(--font-arabic-display); }
.cart-close {
  flex: none; width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--cream-200);
  background: var(--warm-white); color: var(--espresso-800); cursor: pointer; display: grid; place-items: center;
  transition: background .25s, color .25s, transform .25s;
}
.cart-close svg { width: 17px; height: 17px; }
.cart-close:hover { background: var(--gold-100); color: var(--gold-700); transform: rotate(90deg); }

.cart-list { list-style: none; margin: 0; padding: .6rem clamp(1.1rem, 3.5vw, 1.6rem); overflow-y: auto; flex: 1; }
.cart-item {
  display: grid; grid-template-columns: 66px 1fr auto; gap: 1rem; align-items: start;
  padding: 1.05rem 0; border-bottom: 1px solid var(--cream-200);
}
.cart-item:last-child { border-bottom: 0; }
.cart-item__thumb {
  width: 66px; height: 66px; border-radius: var(--radius-md); overflow: hidden;
  background: var(--rose-100); box-shadow: var(--shadow-sm);
}
.cart-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__name { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; color: var(--text-heading); margin: 0; line-height: 1.2; }
[dir="rtl"] .cart-item__name { font-family: var(--font-arabic-display); }
.cart-item__price { font-family: var(--font-serif); color: var(--taupe-400); font-size: .82rem; margin: .2rem 0 .6rem; }
.cart-item__price span { opacity: .8; }
.cart-item__row { display: flex; align-items: center; gap: .8rem; }
.cart-item__rm {
  background: none; border: 0; cursor: pointer; font-family: var(--font-serif);
  font-size: .82rem; color: var(--taupe-400); text-decoration: underline; text-underline-offset: 3px;
  transition: color .25s; padding: 0;
}
.cart-item__rm:hover { color: var(--rose-500); }
.cart-item__line { font-family: var(--font-display); font-weight: 700; color: var(--text-heading); font-size: 1.02rem; white-space: nowrap; }

.cart-step {
  display: inline-flex; align-items: center; border: 1px solid var(--cream-300);
  border-radius: 999px; overflow: hidden; background: var(--warm-white);
}
.cart-step__btn {
  width: 28px; height: 28px; border: 0; background: transparent; cursor: pointer;
  color: var(--espresso-800); font-size: 1.1rem; line-height: 1; display: grid; place-items: center;
  font-family: var(--font-serif); transition: background .2s, color .2s;
}
.cart-step__btn:hover { background: var(--gold-100); color: var(--gold-700); }
.cart-step__n { min-width: 26px; text-align: center; font-family: var(--font-serif); font-weight: 600; font-size: .95rem; color: var(--espresso-900); }

.cart-foot {
  padding: 1.1rem clamp(1.4rem, 4vw, 2rem) clamp(1.8rem, 4vw, 2.5rem);
  border-top: 1px solid var(--cream-200);
  background: var(--cream-100);
}
.cart-give { font-family: var(--font-accent); font-style: italic; color: var(--rose-500); font-size: .95rem; text-align: center; margin: 0 0 .9rem; }
.cart-gift { display: block; margin: 0 0 1rem; }
.cart-gift > span {
  display: block; font-family: var(--font-serif); font-size: .78rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--taupe-400); margin-bottom: .4rem;
}
[dir="rtl"] .cart-gift > span { letter-spacing: 0; text-transform: none; font-family: var(--font-arabic-body); }
.cart-gift__input {
  width: 100%; box-sizing: border-box; font-family: var(--font-serif); font-size: .95rem;
  color: var(--espresso-900); background: var(--warm-white); border: 1px solid var(--cream-300);
  border-radius: var(--radius-sm, 8px); padding: .6rem .8rem; transition: border-color .25s, box-shadow .25s;
}
.cart-gift__input:focus { outline: none; border-color: var(--gold-500); box-shadow: var(--shadow-ring-gold); }
.cart-gift__input::placeholder { color: var(--taupe-400); font-style: italic; }
[dir="rtl"] .cart-give { font-family: var(--font-arabic-body); font-style: normal; }
.cart-sub { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1rem; }
.cart-sub span:first-child { font-family: var(--font-serif); text-transform: uppercase; letter-spacing: .2em; font-size: .78rem; color: var(--taupe-400); }
.cart-sub__amt { font-family: var(--font-display); font-weight: 800; font-size: 1.55rem; color: var(--espresso-900); }
[dir="rtl"] .cart-sub span:first-child { letter-spacing: 0; text-transform: none; font-family: var(--font-arabic-body); }
.cart-checkout { gap: .55rem; }
.cart-wa-ic { display: inline-grid; place-items: center; }
.cart-wa-ic svg { width: 19px; height: 19px; }
.cart-foot__links { display: flex; align-items: center; justify-content: space-between; margin-top: 1rem; }
.cart-link {
  background: none; border: 0; cursor: pointer; font-family: var(--font-serif); font-size: .88rem;
  color: var(--gold-700); letter-spacing: .03em; transition: color .25s; padding: 0;
}
.cart-link:hover { color: var(--espresso-900); }
.cart-link--mute { color: var(--taupe-400); }
.cart-link--mute:hover { color: var(--rose-500); }

/* ---- Luxury Cart Checkout Form Styles ---- */
.cart-form-container {
  padding: 1.2rem clamp(1.2rem, 3.5vw, 1.8rem) 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.cart-form-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.2rem;
  border-bottom: 1px solid var(--cream-200);
  padding-bottom: 0.8rem;
}
.cart-form-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--espresso-900);
  margin: 0;
}
.cart-form-desc {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  color: var(--cocoa-500);
  line-height: 1.5;
  margin: 0 0 0.4rem;
}
.cart-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.cart-form-label {
  font-family: var(--font-serif);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--taupe-400);
  font-weight: 600;
}
[dir="rtl"] .cart-form-label {
  letter-spacing: 0;
  text-transform: none;
  font-family: var(--font-arabic-body);
}
.cart-form-input {
  width: 100%;
  box-sizing: border-box;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--espresso-900);
  background: var(--warm-white);
  border: 1px solid var(--cream-300);
  border-radius: var(--radius-md, 10px);
  padding: 0.72rem 0.95rem;
  transition: all 0.25s var(--ease-out);
}
.cart-form-input:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(198, 146, 20, 0.15);
  background: #FFFFFF;
}
.cart-form-input::placeholder {
  color: var(--taupe-400);
  font-style: italic;
  font-size: 0.9rem;
}
.cart-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
@media (max-width: 400px) {
  .cart-form-grid {
    grid-template-columns: 1fr;
  }
}
.cart-btn-wa {
  background: #25D366 !important;
  border-color: #25D366 !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.25) !important;
}
.cart-btn-wa:hover {
  background: #20BA5A !important;
  border-color: #20BA5A !important;
  transform: translateY(-1px);
}
.cart-btn-email {
  background: var(--espresso-900) !important;
  border-color: var(--espresso-900) !important;
  color: #FFFFFF !important;
  box-shadow: var(--shadow-md) !important;
}
.cart-btn-email:hover {
  background: var(--espresso-800) !important;
  border-color: var(--espresso-800) !important;
  transform: translateY(-1px);
}

.cart-empty {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: .55rem; padding: 2rem clamp(1.4rem, 5vw, 2.4rem);
}
.cart-empty__glyph {
  width: 64px; height: 64px; border-radius: 999px; display: grid; place-items: center;
  background: var(--gold-100); color: var(--rose-500); margin-bottom: .6rem;
}
.cart-empty__glyph svg { width: 28px; height: 28px; }
.cart-empty__title { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--espresso-900); margin: 0; }
.cart-empty__sub { font-family: var(--font-serif); color: var(--cocoa-500); font-size: .98rem; max-width: 30ch; margin: 0 0 1rem; }

/* ---- Engagement & DYK Corner (lib/engage.jsx) ---- */
.sprog { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 9999; pointer-events: none; }
.sprog__bar { height: 100%; background: linear-gradient(90deg, var(--gold-400), var(--rose-500)); transform-origin: 0 50%; transform: scaleX(0); will-change: transform; }

.ach-toasts { position: fixed; bottom: 1.6rem; inset-inline-start: 1.6rem; z-index: 9800; display: flex; flex-direction: column; gap: .6rem; pointer-events: none; }
.ach-toast {
  display: inline-flex; align-items: center; gap: .8rem; padding: .75rem 1.15rem; border-radius: var(--radius-pill);
  background: var(--espresso-900); color: var(--cream-50); box-shadow: var(--shadow-xl); border: 1px solid var(--gold-500);
  animation: toastIn .45s var(--ease-out); pointer-events: auto;
}
@keyframes toastIn { from { opacity: 0; transform: translateY(12px) scale(.94); } to { opacity: 1; transform: none; } }
.ach-toast__medal { width: 28px; height: 28px; border-radius: 999px; background: var(--gold-500); color: var(--espresso-900); display: grid; place-items: center; }
.ach-toast__medal svg { width: 16px; height: 16px; }
.ach-toast__txt { display: flex; flex-direction: column; line-height: 1.15; }
.ach-toast__txt em { font-family: var(--font-serif); font-size: .68rem; text-transform: uppercase; letter-spacing: .18em; color: var(--gold-300); font-style: normal; }
.ach-toast__txt b { font-family: var(--font-display); font-size: .95rem; font-weight: 700; color: #fff; }

.dyk { position: fixed; bottom: 2rem; inset-inline-end: 2rem; z-index: 9500; }
.dyk__pill {
  padding : 20px 10px ;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.65rem; border-radius: 999px;
  background: var(--warm-white); border: 1.5px solid var(--gold-400); box-shadow: 0 6px 20px rgba(42,29,22,0.12); color: var(--gold-700);
  font-family: var(--font-serif); font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; cursor: pointer;
  line-height: 1; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.dyk__pill:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(42,29,22,0.18); border-color: var(--gold-600); }
.dyk__pill-badge { width: 20px; height: 20px; object-fit: contain; flex-shrink: 0; display: block; }
.dyk__card {
  width: min(340px, 86vw); background: var(--warm-white); border: 1px solid var(--cream-200); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl); padding: 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .8rem;
  animation: dykPop .35s var(--ease-out);
}
@keyframes dykPop { from { opacity: 0; transform: translateY(16px) scale(.95); } to { opacity: 1; transform: none; } }
.dyk__head { display: flex; align-items: center; gap: .5rem; }
.dyk__spark { color: var(--gold-500); font-size: 1rem; }
.dyk__label { font-family: var(--font-serif); font-size: .75rem; text-transform: uppercase; letter-spacing: .2em; color: var(--taupe-400); flex: 1; }
.dyk__x { background: none; border: 0; font-size: 1.3rem; color: var(--taupe-400); cursor: pointer; padding: 0; line-height: 1; }
.dyk__fact { font-family: var(--font-serif); font-size: .95rem; line-height: 1.5; color: var(--espresso-900); margin: 0; }
.dyk__row { display: flex; align-items: center; justify-content: space-between; margin-top: .2rem; }
.dyk__btn { background: var(--cream-150); border: 0; border-radius: 999px; padding: .4rem .9rem; font-family: var(--font-serif); font-size: .8rem; color: var(--espresso-900); cursor: pointer; }
.dyk__link { font-family: var(--font-serif); font-size: .8rem; color: var(--gold-700); text-decoration: none; }
.dyk__medals { border-top: 1px solid var(--cream-200); padding-top: .7rem; }
.dyk__medals-label { font-family: var(--font-serif); font-size: .72rem; color: var(--taupe-400); margin: 0 0 .4rem; }
.dyk__medal-row { display: flex; gap: .4rem; }
.medal { width: 24px; height: 24px; border-radius: 999px; background: var(--cream-200); color: var(--taupe-400); display: grid; place-items: center; opacity: .45; }
.medal--on { background: var(--gold-500); color: var(--espresso-900); opacity: 1; }
.medal svg { width: 13px; height: 13px; }

/* ---- Mood Quiz (lib/quiz.jsx) ---- */
.quiz { background: var(--warm-white); border: 1px solid var(--cream-200); border-radius: var(--radius-xl); padding: clamp(1.6rem, 4vw, 2.5rem); box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 1rem; max-width: 620px; margin-inline: auto; }
.quiz__meta { font-family: var(--font-serif); font-size: .78rem; text-transform: uppercase; letter-spacing: .2em; color: var(--taupe-400); margin: 0; }
.quiz__bar { height: 4px; background: var(--cream-200); border-radius: 999px; overflow: hidden; }
.quiz__bar span { display: block; height: 100%; background: var(--gold-500); transition: width .4s var(--ease-out); }
.quiz__q { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.25rem, 3vw, 1.65rem); color: var(--espresso-900); margin: 0; line-height: 1.2; }
.quiz__opts { display: flex; flex-direction: column; gap: .65rem; }
.quiz__opt { background: var(--cream-50); border: 1px solid var(--cream-200); border-radius: var(--radius-md); padding: .9rem 1.2rem; text-align: start; font-family: var(--font-serif); font-size: 1rem; color: var(--espresso-900); cursor: pointer; transition: background .25s, border-color .25s, transform .25s; }
.quiz__opt:hover { background: var(--gold-100); border-color: var(--gold-400); transform: translateX(4px); }
[dir="rtl"] .quiz__opt:hover { transform: translateX(-4px); }

.quiz--result { text-align: center; align-items: center; }
.quiz__sparks { color: var(--gold-500); font-size: 1.2rem; letter-spacing: .3em; }
.quiz__pic { width: 140px; height: 140px; border-radius: 999px; overflow: hidden; margin: 0 auto; box-shadow: var(--shadow-md); background: var(--rose-100); }
.quiz__pic img { width: 100%; height: 100%; object-fit: cover; }
.quiz__name { font-family: var(--font-display); font-weight: 700; font-size: 1.8rem; color: var(--espresso-900); margin: .2rem 0; }
.quiz__rule { width: 60px; height: 2px; background: var(--gold-500); border-radius: 999px; margin: 0 auto; }
.quiz__blurb { font-family: var(--font-serif); font-size: 1.05rem; line-height: 1.6; color: var(--cocoa-500); max-width: 44ch; margin: 0 auto; }
.quiz__acts { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-top: .6rem; }
.quiz__again { background: none; border: 0; font-family: var(--font-serif); font-size: .9rem; color: var(--taupe-400); cursor: pointer; text-decoration: underline; }
.quiz__again:hover { color: var(--gold-700); }
