/* Extras on top of app.css (the old site's compiled stylesheet, unchanged).
   These stand in for the framer-motion animations of the React build. */

/* Fade-up on scroll: add data-reveal (optional data-reveal-delay="0.1"). */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(var(--reveal-y, 24px));
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.js [data-reveal="fade"] { --reveal-y: 0px; }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* Mobile menu open/close */
.mobile-menu { animation: aa-menu-in 0.3s ease-in-out; }
@keyframes aa-menu-in { from { opacity: 0; max-height: 0; } to { opacity: 1; max-height: 40rem; } }

/* Cart drawer */
.aa-overlay { animation: aa-fade-in 0.25s ease-out; }
.aa-drawer { animation: aa-slide-in 0.35s ease-out; }
.aa-overlay.is-closing { animation: aa-fade-out 0.25s ease-in forwards; }
.aa-drawer.is-closing { animation: aa-slide-out 0.3s ease-in forwards; }
@keyframes aa-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes aa-fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes aa-slide-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes aa-slide-out { from { transform: translateX(0); } to { transform: translateX(100%); } }

/* Modals (product quick view etc.) */
.aa-modal { animation: aa-pop-in 0.3s ease-out; }
@keyframes aa-pop-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }

/* Toasts */
.aa-toast { animation: aa-toast-in 0.25s ease-out; }
.aa-toast.is-closing { animation: aa-toast-out 0.2s ease-in forwards; }
@keyframes aa-toast-in { from { opacity: 0; transform: translateY(100%); } to { opacity: 1; transform: none; } }
@keyframes aa-toast-out { to { opacity: 0; transform: translateX(-100%); } }

/* Lock page scroll while a drawer or modal is open */
body.aa-lock { overflow: hidden; }

[hidden] { display: none !important; }

/* Slide in from the left (old framer-motion x: -32 → 0). */
.js [data-reveal="left"] { transform: translateX(-32px); }

/* Buy 1 Free 1 badges and admin switch (classes not in the old stylesheet) */
.ml-2 { margin-left: 0.5rem; }
.\!mb-1 { margin-bottom: 0.25rem !important; }


/* ── Admin login ───────────────────────────────────────────────────────────
   Same colours and fonts as the rest of the site, dressed like a jewellery
   house: double gold frame, underlined fields, gold-to-espresso button. */
.aa-login-page {
  background:
    radial-gradient(58rem 36rem at 50% 44%, hsl(var(--card)) 0%, hsl(var(--card) / 0) 72%),
    linear-gradient(180deg, hsl(var(--background)) 0%, hsl(var(--secondary)) 100%);
}
.aa-login-card {
  position: relative;
  padding: 3.5rem 3.25rem 3.25rem;
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--primary) / 0.45);
  box-shadow: 0 1px 2px hsl(var(--espresso) / 0.05), 0 36px 72px -32px hsl(var(--espresso) / 0.28);
}
.aa-login-card::before {
  content: "";
  position: absolute;
  inset: 0.625rem;
  border: 1px solid hsl(var(--primary) / 0.22);
  pointer-events: none;
}
.aa-login-logo { display: block; height: 5rem; width: auto; margin: 0 auto 1.75rem; }
.aa-login-eyebrow {
  margin-bottom: 0.75rem;
  text-align: center;
  text-indent: 0.42em; /* balances the trailing letter-spacing */
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: hsl(38 46% 40%);
}
.aa-login-title { text-align: center; font-size: 1.7rem; line-height: 1.25; letter-spacing: 0.015em; }
.aa-login-rule {
  position: relative;
  display: block;
  width: 7.5rem;
  height: 1px;
  margin: 1.4rem auto 2.5rem;
  background: linear-gradient(90deg, transparent, hsl(var(--primary) / 0.75), transparent);
}
.aa-login-rule::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--primary));
  transform: translate(-50%, -50%) rotate(45deg);
}
.aa-login-form > * + * { margin-top: 1.75rem; }
.aa-login-field label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}
.aa-login-field input {
  width: 100%;
  padding: 0.6rem 0 0.65rem;
  border: 0;
  border-bottom: 1px solid hsl(var(--primary) / 0.5);
  border-radius: 0;
  outline: none;
  background: transparent;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: hsl(var(--foreground));
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.aa-login-field input:focus {
  border-bottom-color: hsl(var(--primary));
  box-shadow: 0 1px 0 0 hsl(var(--primary));
}
.aa-login-field input[type="password"] { font-family: Verdana, Arial, sans-serif; letter-spacing: 0.14em; }
/* Keep the saved-password fill from painting the field blue or yellow */
.aa-login-field input:-webkit-autofill,
.aa-login-field input:-webkit-autofill:hover,
.aa-login-field input:-webkit-autofill:focus {
  -webkit-text-fill-color: hsl(var(--foreground));
  -webkit-box-shadow: 0 0 0 1000px hsl(var(--card)) inset;
  caret-color: hsl(var(--foreground));
}
.aa-login-form .aa-login-btn {
  margin-top: 2.5rem;
  padding-block: 1.05rem;
  letter-spacing: 0.34em;
  background-color: hsl(var(--primary));
  background-image: linear-gradient(112deg, hsl(var(--gold-light)) 0%, hsl(var(--gold)) 16%, hsl(38 46% 43%) 41%, hsl(var(--espresso)) 54%, hsl(var(--espresso)) 100%);
  background-size: 240% 100%;
  background-position: 0% 0%;
  box-shadow: 0 12px 22px -16px hsl(38 46% 30% / 0.5);
  transition: background-position 0.6s cubic-bezier(0.22, 1, 0.36, 1), color 0.3s ease, box-shadow 0.3s ease;
}
.aa-login-form .aa-login-btn:hover:not(:disabled),
.aa-login-form .aa-login-btn:focus-visible {
  background-position: 100% 0%;
  color: hsl(var(--gold-light));
  box-shadow: 0 12px 22px -16px hsl(var(--espresso) / 0.5);
}
.aa-login-form .aa-login-btn:focus-visible { outline: 1px solid hsl(var(--primary)); outline-offset: 3px; }
.aa-login-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.5rem;
  color: hsl(var(--muted-foreground));
  transition: color 0.3s ease;
}
.aa-login-close:hover { color: hsl(var(--primary)); }
.aa-login-close:focus-visible { outline: 1px solid hsl(var(--primary)); outline-offset: -2px; }
@media (max-width: 480px) {
  .aa-login-card { padding: 3rem 2rem 2.5rem; }
  .aa-login-title { font-size: 1.5rem; }
}

/* Home hero slider: 11.11 sale banner + main hero, auto-slides every 4 s */
.aa-hero-slide { transition: transform 0.9s cubic-bezier(0.65, 0, 0.35, 1); }
.aa-hero-slide[data-pos="next"] { transform: translateX(100%); }
.aa-hero-slide[data-pos="prev"] { transform: translateX(-100%); }
.aa-hero-slide.no-anim { transition: none; }
@media (prefers-reduced-motion: reduce) { .aa-hero-slide { transition: none; } }
.aa-hero-sale {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  overflow: hidden;
  padding-top: var(--aa-head, 7rem);
  background: #3a0710;
}
.aa-hero-sale-blur {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.15);
  filter: blur(28px) brightness(0.6);
}
/* Wide banner on landscape screens, tall banner on portrait (picked in home.php).
   Fills the hero edge to edge when the shape is close; otherwise shows the whole
   banner over the blurred copy so nothing is cut off. */
.aa-hero-sale-inner { position: relative; display: block; height: 100%; container-type: size; }
.aa-hero-sale-inner picture { display: block; width: 100%; height: 100%; }
.aa-hero-sale-img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: 50% 50%; }
@container (min-aspect-ratio: 2/1) and (max-aspect-ratio: 29/10) { .aa-hero-sale-img { object-fit: cover; } }
@container (min-aspect-ratio: 9/20) and (max-aspect-ratio: 7/10) { .aa-hero-sale-img { object-fit: cover; } }
.aa-hero-dots {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  z-index: 20;
  display: flex;
  gap: 0.25rem;
  transform: translateX(-50%);
}
.aa-hero-dots button { position: relative; width: 1.75rem; height: 1.75rem; }
.aa-hero-dots button::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: rgb(255 255 255 / 0.5);
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, background-color 0.3s ease;
}
.aa-hero-dots button[aria-current="true"]::after { width: 1.25rem; background: hsl(var(--primary)); }
.aa-hero-dots button:focus-visible { outline: 1px solid hsl(var(--primary)); outline-offset: 2px; }

/* ── Form fields, whole site + admin (9 Nov 2026) ─────────────────────────
   White fields with a fine gold edge, warm readable text, soft gold focus
   glow. ":root :where(...)" sits just above Tailwind's utility classes but
   below component styles such as the admin login card. */
:root :where(
  input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="range"]):not([type="color"]):not([type="submit"]):not([type="button"]):not([type="reset"]),
  textarea, select, .aa-select-btn
) {
  border: 1px solid hsl(var(--primary) / 0.38);
  border-radius: 4px;
  background-color: #fff;
  color: hsl(var(--foreground));
  font-family: Jost, sans-serif;
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  box-shadow: inset 0 1px 2px hsl(var(--espresso) / 0.04);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}
:root :where(input, textarea)::placeholder { color: hsl(var(--muted-foreground) / 0.8); font-weight: 300; opacity: 1; }
:root :where(input:hover:not(:disabled):not(:focus), textarea:hover:not(:disabled):not(:focus), select:hover:not(:disabled):not(:focus), .aa-select-btn:hover:not(:disabled):not(:focus-visible)) { border-color: hsl(var(--primary) / 0.6); }
:root :where(input:focus, textarea:focus, select:focus, .aa-select-btn:focus-visible),
.aa-select[data-open="true"] .aa-select-btn {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.13);
}
:root :where(input:disabled, textarea:disabled, select:disabled, .aa-select-btn:disabled) {
  background-color: hsl(var(--secondary) / 0.45);
  color: hsl(var(--muted-foreground));
  cursor: not-allowed;
}
:root :where(input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus) {
  -webkit-text-fill-color: hsl(var(--foreground));
  -webkit-box-shadow: 0 0 0 1000px #fff inset;
  caret-color: hsl(var(--foreground));
}
/* Native select (shown only for a moment before the gold dropdown takes over) */
:root :where(select) {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 2.6rem !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23b8954f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}
/* Numbers without the grey spinner arrows */
:root :where(input[type="number"]) { -moz-appearance: textfield; appearance: textfield; }
:root :where(input[type="number"])::-webkit-inner-spin-button,
:root :where(input[type="number"])::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
/* Date: gold calendar icon */
:root :where(input[type="date"]) { color-scheme: light; }
:root :where(input[type="date"])::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.75;
  filter: invert(58%) sepia(38%) saturate(520%) hue-rotate(2deg) brightness(92%);
}
/* Checkbox: gold box with a white tick */
:root :where(input[type="checkbox"]) {
  -webkit-appearance: none;
  appearance: none;
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
  border: 1px solid hsl(var(--primary) / 0.6);
  border-radius: 4px;
  background: #fff center / 0.8rem no-repeat;
  cursor: pointer;
  vertical-align: middle;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
:root :where(input[type="checkbox"]:checked) {
  border-color: hsl(36 44% 42%);
  background-color: hsl(var(--primary));
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
:root :where(input[type="checkbox"]:focus-visible) { outline: none; box-shadow: 0 0 0 3px hsl(var(--primary) / 0.18); }
:root :where(input[type="checkbox"]:disabled) { opacity: 0.5; cursor: not-allowed; }
/* Admin login card keeps its own underline-only fields */
.aa-login-field input { border-radius: 0; box-shadow: none; }
::selection { background: hsl(var(--primary) / 0.22); }

/* Checkout extras */
[data-checkout] label { font-weight: 500; color: hsl(var(--foreground)); }
[data-checkout] [data-voucher-input] { font-size: 0.85rem; letter-spacing: 0.12em; }
[data-checkout] [data-voucher-input]::placeholder { letter-spacing: 0.18em; }
[data-checkout] [data-voucher-apply] { border-radius: 4px; }

/* ── Gold dropdown (assets/js/aa-fields.js turns every <select> into this) ── */
.aa-select { position: relative; display: inline-block; vertical-align: middle; }
.aa-select.is-block { display: block; }
.aa-select-native { position: absolute !important; left: 0; bottom: 0; width: 1px !important; height: 1px !important; padding: 0 !important; opacity: 0; pointer-events: none; }
.aa-select-btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  line-height: 1.25rem;
  text-align: left;
  cursor: pointer;
}
:where(.aa-select-btn) { padding: 0.75rem 1rem; }
.aa-select-btn.uppercase { font-size: 0.68rem; font-weight: 500; }
.aa-select-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aa-select-btn[data-empty="true"] .aa-select-value { color: hsl(var(--muted-foreground) / 0.85); font-weight: 300; }
.aa-select-chev { flex-shrink: 0; color: hsl(var(--primary)); transition: transform 0.3s ease; }
.aa-select[data-open="true"] .aa-select-chev { transform: rotate(180deg); }
.aa-select-list {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  z-index: 60;
  min-width: 100%;
  width: max-content;
  max-width: min(24rem, 92vw);
  max-height: 18rem;
  overflow-y: auto;
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  border: 1px solid hsl(var(--primary) / 0.45);
  border-radius: 6px;
  background: hsl(var(--card));
  box-shadow: 0 22px 44px -20px hsl(var(--espresso) / 0.4), 0 2px 6px -2px hsl(var(--espresso) / 0.08);
  scrollbar-width: thin;
  scrollbar-color: hsl(var(--primary) / 0.5) transparent;
  animation: aa-select-in 0.18s ease-out;
}
.aa-select.is-block .aa-select-list { width: 100%; max-width: none; }
.aa-select-list:focus { outline: none; }
.aa-select[data-up="true"] .aa-select-list { top: auto; bottom: calc(100% + 6px); }
@keyframes aa-select-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .aa-select-list { animation: none; } }
.aa-select-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0.8rem;
  border-radius: 4px;
  color: hsl(var(--foreground));
  font-family: Jost, sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  white-space: nowrap;
  cursor: pointer;
}
.aa-select-list li[data-empty] { color: hsl(var(--muted-foreground)); font-weight: 300; }
.aa-select-list li[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }
.aa-select-list li[data-active="true"] { background: hsl(var(--secondary) / 0.75); }
.aa-select-list li[aria-selected="true"] { color: hsl(var(--primary)); font-weight: 500; }
.aa-select-list li[aria-selected="true"]::after {
  content: "";
  flex-shrink: 0;
  width: 0.4rem;
  height: 0.75rem;
  margin-right: 0.2rem;
  border: solid hsl(var(--primary));
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg) translateY(-2px);
}

/* Header (design A, 9 Nov 2026): larger trimmed logo, clearer menu, slimmer gold Login */
[data-header-bar] { border-bottom-color: hsl(var(--primary) / 0.25) !important; }
.aa-logo { display: block; flex-shrink: 0; }
.aa-logo img { display: block; width: auto; height: 70px; transition: height 0.3s ease; }
[data-header-bar].shadow-sm .aa-logo img { height: 58px; }
@media (max-width: 1023px) {
  .aa-logo img { height: 50px; }
  [data-header-bar].shadow-sm .aa-logo img { height: 46px; }
}
.aa-nav { gap: 2.1rem; margin-left: auto; }
.aa-nav-link {
  position: relative;
  padding: 0.35rem 0;
  white-space: nowrap;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: hsl(var(--foreground));
  transition: color 0.3s ease;
}
.aa-nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 1px;
  background: hsl(var(--primary));
  transition: width 0.35s ease, left 0.35s ease;
}
.aa-nav-link:hover, .aa-nav-link.is-active { color: hsl(var(--primary)); }
.aa-nav-link:hover::after, .aa-nav-link.is-active::after { left: 0; width: 100%; }
.aa-nav [data-cart-open] { color: hsl(var(--foreground)); margin-left: 0.3rem; }
.aa-nav [data-cart-open]:hover { color: hsl(var(--primary)); }
.aa-nav-div { width: 1px; height: 22px; margin: 0 -0.8rem; background: hsl(var(--primary) / 0.35); }
.btn-gold.aa-login { min-height: 40px; padding: 0.7rem 1.6rem; gap: 0.55rem; font-size: 0.7rem; font-weight: 500; letter-spacing: 0.24em; }
.btn-gold.aa-login {
  border-radius: 4px;
  background-color: hsl(var(--primary));
  background-image: none;
  box-shadow: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.btn-gold.aa-login:hover,
.btn-gold.aa-login:focus-visible { background-color: hsl(var(--espresso)); color: hsl(var(--gold-light)); }
.btn-gold.aa-login:focus-visible { outline: 1px solid hsl(var(--primary)); outline-offset: 3px; }
@media (max-width: 1279px) {
  .aa-nav { gap: 1.6rem; }
  .aa-nav-link { font-size: 0.74rem; letter-spacing: 0.16em; }
  .aa-nav-div { margin: 0 -0.5rem; }
}
.mobile-menu a.py-3 { font-size: 0.85rem; font-weight: 500; }
.mobile-menu a.py-3.text-foreground\/80 { color: hsl(var(--foreground)); }

/* One rounded shape for every button (matches the fields and the Login button) */
.btn-gold, .btn-ghost-light, .btn-ghost-dark,
:is(button, a).border.uppercase:not(.aa-select-btn) { border-radius: 4px; }

/* Bars that stick under the header follow its real height (it shrinks on scroll) */
@media (min-width: 768px) {
  [class*="md:top-[118px]"] { top: var(--aa-header-h, 118px); }
}

/* Footer (9 Nov 2026): deep espresso with soft depth, gold hairlines, icon socials */
.aa-footer {
  position: relative;
  background: radial-gradient(120% 70% at 50% 0%, hsl(24 22% 23%) 0%, hsl(24 22% 18%) 55%, hsl(24 24% 14%) 100%);
  border-top: 1px solid hsl(var(--primary) / 0.45);
}
.aa-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 4px;
  height: 1px;
  background: linear-gradient(90deg, transparent, hsl(var(--primary) / 0.25) 20%, hsl(var(--primary) / 0.25) 80%, transparent);
}
.aa-footer-mark { filter: drop-shadow(0 4px 14px hsl(var(--primary) / 0.25)); }
.aa-footer-h { position: relative; margin-bottom: 1.6rem; padding-bottom: 0.85rem; }
.aa-footer-h::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 1.75rem;
  height: 1px;
  background: hsl(var(--primary));
}
.aa-footer-link {
  position: relative;
  display: inline-block;
  color: hsl(38 30% 90% / 0.78);
  transition: color 0.3s ease, transform 0.3s ease;
}
.aa-footer-link:hover { color: hsl(var(--gold-light)); transform: translateX(3px); }
.aa-ficon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-top: -0.3rem;
  border: 1px solid hsl(var(--primary) / 0.4);
  border-radius: 9999px;
  color: hsl(var(--gold-light));
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.aa-footer-contact { display: flex; align-items: center; gap: 0.9rem; color: hsl(38 30% 90% / 0.85); transition: color 0.3s ease; }
.aa-footer-contact .aa-ficon { margin-top: 0; }
.aa-footer-contact:hover { color: hsl(var(--gold-light)); }
.aa-footer-contact:hover .aa-ficon { background: hsl(var(--primary)); border-color: hsl(var(--primary)); color: hsl(var(--espresso)); }
.aa-footer-follow {
  margin: 1.9rem 0 0.9rem;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: hsl(38 30% 90% / 0.5);
}
.aa-social { display: flex; gap: 0.7rem; }
.aa-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid hsl(var(--primary) / 0.5);
  border-radius: 9999px;
  color: hsl(var(--gold-light));
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.aa-social a:hover,
.aa-social a:focus-visible {
  background: hsl(var(--primary));
  border-color: hsl(var(--primary));
  color: hsl(var(--espresso));
  transform: translateY(-2px);
  outline: none;
}
.aa-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 2rem;
  margin-top: 3.5rem;
  padding-top: 1.6rem;
  border-top: 1px solid hsl(var(--primary) / 0.2);
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.03em;
  color: hsl(38 30% 90% / 0.5);
}
.aa-footer-made { display: inline-flex; align-items: center; gap: 0.6rem; }
.aa-footer-made span {
  width: 7px;
  height: 7px;
  border-radius: 9999px;
  background: radial-gradient(circle at 32% 28%, #fffdf6 0%, #e9d9b4 45%, #b99351 100%);
}
@media (max-width: 639px) {
  .aa-footer-bottom { flex-direction: column; text-align: center; }
}
.aa-footer li.flex { gap: 0.95rem; }

/* ── Product pop-up, design A "photo swatches" (15 Nov 2026) ─────────────────
   Markup is built by renderModal() in assets/js/shop.js. Photo side stays fixed,
   details scroll, quantity + Add to cart stay visible at the bottom. Phones get a
   bottom sheet. Old pop-up: shop.js.bak-20261115-popup / site.css.bak-20261115-popup */
.aa-pm {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  width: 100%;
  max-width: 940px;
  height: min(640px, 90vh);
  overflow: hidden;
  background: hsl(var(--background));
  border-radius: 4px;
  box-shadow: 0 30px 80px rgb(43 33 26 / 0.35);
}
.aa-pm-grab { display: none; }
.aa-pm-close { position: absolute; right: 0.9rem; top: 0.9rem; z-index: 3; padding: 0.4rem; color: hsl(var(--foreground) / 0.7); transition: color 0.3s; }
.aa-pm-close:hover { color: hsl(var(--primary)); }
.aa-pm-media { --pm-pad: 2.1rem; position: relative; min-height: 0; overflow: hidden; background: hsl(var(--secondary) / 0.7); }
/* pinned to fixed edges: iPhone Safari ignored max-height: 100% while a new photo loaded and showed it full size */
.aa-pm-img { position: absolute; top: var(--pm-pad); left: var(--pm-pad); width: calc(100% - 2 * var(--pm-pad)); height: calc(100% - 2 * var(--pm-pad)); max-width: none; object-fit: contain; }
.aa-pm-info { display: flex; flex-direction: column; min-height: 0; }
.aa-pm-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 2.75rem 2.5rem 1.25rem; scrollbar-width: thin; scrollbar-color: hsl(var(--border)) transparent; }
.aa-pm-title { margin-top: 0.6rem; font-size: 1.875rem; line-height: 1.25; }
.aa-pm-price { margin-top: 0.7rem; font-size: 1.05rem; font-weight: 400; letter-spacing: 0.08em; color: hsl(var(--primary)); }
.aa-pm-desc { margin-top: 1.4rem; }
.aa-pm-lead { margin: 1.1rem 0 0.5rem; font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.22em; color: hsl(var(--muted-foreground)); }
.aa-pm-desc > :first-child { margin-top: 0; }
.aa-pm-dl { display: grid; grid-template-columns: auto 1fr; border-top: 1px solid hsl(var(--border)); }
.aa-pm-dl dt, .aa-pm-dl dd { margin: 0; padding: 0.5rem 0; border-bottom: 1px solid hsl(var(--border)); font-size: 0.82rem; }
.aa-pm-dl dt { padding-right: 1.1rem; color: hsl(var(--muted-foreground)); }
.aa-pm-dl dd { font-weight: 400; }
.aa-pm-ul { margin: 0.25rem 0 0; padding-left: 1.1rem; list-style: disc; font-size: 0.82rem; line-height: 1.7; color: hsl(var(--muted-foreground)); }
.aa-pm-note { margin-top: 0.6rem; font-size: 0.78rem; line-height: 1.6; color: hsl(var(--muted-foreground)); }
.aa-pm-dhead { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin: 1.6rem 0 0.4rem; }
.aa-pm-dhead span:first-child { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.22em; font-weight: 400; color: hsl(var(--foreground)); }
.aa-pm-dhead span:last-child, .aa-pm-chosen { font-size: 0.75rem; color: hsl(var(--muted-foreground)); }
.aa-pm-chosen { margin-bottom: 0.75rem; }
.aa-pm-chosen b { font-weight: 400; color: hsl(var(--foreground)); letter-spacing: 0.04em; }
.aa-pm-low { color: hsl(var(--primary)); }
.aa-pm-sw { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.5rem; }
.aa-pm-sw button {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  padding: 0;
  border: 1px solid hsl(var(--border));
  border-radius: 4px;
  background: #fff;
  text-transform: none;
  letter-spacing: normal;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.aa-pm-sw button:hover { border-color: hsl(var(--primary)); }
.aa-pm-sw button.is-on { border-color: hsl(var(--primary)); box-shadow: 0 0 0 2px hsl(var(--background)), 0 0 0 3.5px hsl(var(--primary)); }
.aa-pm-sw img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; transform: scale(1.22); opacity: 0; transition: opacity 0.2s; }
/* centred on the piece by focusSwatch() in shop.js (width/left/top set inline) */
.aa-pm-sw img.is-focused { position: absolute; height: auto; max-width: none; object-fit: fill; transform: none; }
.aa-pm-sw img.is-ready { opacity: 1; }
.aa-pm-sw button span { display: flex; align-items: center; justify-content: center; height: 100%; padding: 2px; font-size: 0.55rem; line-height: 1.2; text-align: center; word-break: break-all; }
.aa-pm-sw button:disabled { cursor: not-allowed; }
.aa-pm-sw button:disabled img { opacity: 0.35; filter: grayscale(1); }
.aa-pm-sw button:disabled::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top right, transparent calc(50% - 0.6px), hsl(var(--muted-foreground)) 50%, transparent calc(50% + 0.6px));
}
.aa-pm-foot { padding: 1rem 2.5rem 1.15rem; border-top: 1px solid hsl(var(--border)); background: hsl(var(--background)); }
.aa-pm-buy { display: flex; align-items: center; gap: 0.85rem; }
.aa-pm-qty { display: flex; flex: none; align-items: center; border: 1px solid hsl(var(--border)); border-radius: 4px; }
.aa-pm-qty button { padding: 0.7rem 0.85rem; color: hsl(var(--foreground) / 0.7); }
.aa-pm-qty button:hover { color: hsl(var(--primary)); }
.aa-pm-qty button:disabled { opacity: 0.3; }
.aa-pm-qty span { width: 2rem; text-align: center; font-size: 0.875rem; }
.aa-pm-add { flex: 1; min-width: 0; padding-left: 0.8rem; padding-right: 0.8rem; white-space: nowrap; letter-spacing: 0.18em; }
.aa-pm-add:disabled { cursor: not-allowed; opacity: 0.5; }
.aa-pm-small { margin-top: 0.6rem; text-align: center; font-size: 0.72rem; color: hsl(var(--muted-foreground)); }
/* while the pop-up is open the page behind does not scroll (set by lockPage() in shop.js) */
html.aa-pm-lock, html.aa-pm-lock body { overflow: hidden; }
html.aa-pm-lock { overscroll-behavior: none; }
.aa-pm-overlay { overscroll-behavior: contain; }
/* the floating WhatsApp button would sit on top of the pop-up (it covered Add to cart on phones) */
body:has([data-panel].aa-pm) a[aria-label="Chat with Adiba Ayu on WhatsApp"] { opacity: 0; visibility: hidden; pointer-events: none; }
@media (max-width: 700px) {
  .aa-pm-overlay { padding: 0; align-items: flex-end; }
  .aa-pm {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    height: 94vh;
    height: 94dvh;
    max-width: none;
    border-radius: 16px 16px 0 0;
  }
  .aa-pm-media { --pm-pad: 1.1rem; height: 34vh; }
  /* grab bar: the sheet can be swiped down to close (shop.js phone gestures) */
  .aa-pm-grab { display: block; position: absolute; top: 8px; left: 50%; z-index: 3; width: 42px; height: 4px; margin-left: -21px; border-radius: 9999px; background: hsl(var(--foreground) / 0.22); }
  .aa-pm-media { padding-top: 0.6rem; }
  .aa-pm-scroll { padding: 1.4rem 1.25rem 0.9rem; }
  .aa-pm-title { font-size: 1.55rem; }
  .aa-pm-foot { padding: 0.75rem 1.25rem max(1rem, env(safe-area-inset-bottom)); }
  .aa-pm-secure { display: none; }
  .aa-pm-add { gap: 0.4rem; padding-left: 0.6rem; padding-right: 0.6rem; letter-spacing: 0.1em; font-size: 0.68rem; }
}
@media (max-width: 359px) {
  .aa-pm-add svg { display: none; }
}
