/* Kill the native WebKit "×" clear button on <input type="search">.
   Browsers position it inconsistently — often floating in the middle of
   wide inputs — and it clashes with our own icons/autocomplete UI. */
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration{-webkit-appearance:none;appearance:none;display:none}
input[type="search"]{-webkit-appearance:none;appearance:none}

/* ============================================================
   FONTS
   ============================================================ */

/* Inter — Latin (headings + body English). Only weights 300–700 are used
   in customer-facing pages; 100/200/800/900 pruned to save bandwidth. */
@font-face{font-family:'Inter';src:url('../fonts/Inter/Inter-Light.woff2') format('woff2'),url('../fonts/Inter/Inter-Light.ttf') format('truetype');font-weight:300;font-style:normal;font-display:swap}
@font-face{font-family:'Inter';src:url('../fonts/Inter/Inter-Regular.woff2') format('woff2'),url('../fonts/Inter/Inter-Regular.ttf') format('truetype');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:'Inter';src:url('../fonts/Inter/Inter-Medium.woff2') format('woff2'),url('../fonts/Inter/Inter-Medium.ttf') format('truetype');font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:'Inter';src:url('../fonts/Inter/Inter-SemiBold.woff2') format('woff2'),url('../fonts/Inter/Inter-SemiBold.ttf') format('truetype');font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:'Inter';src:url('../fonts/Inter/Inter-Bold.woff2') format('woff2'),url('../fonts/Inter/Inter-Bold.ttf') format('truetype');font-weight:700;font-style:normal;font-display:swap}

/* AbarLow — Persian/Arabic (RTL text). Same trimming rationale. */
@font-face{font-family:'AbarLow';src:url('../fonts/Abar/AbarLow-Light.woff2') format('woff2');font-weight:300;font-style:normal;font-display:swap}
@font-face{font-family:'AbarLow';src:url('../fonts/Abar/AbarLow-Regular.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:'AbarLow';src:url('../fonts/Abar/AbarLow-Medium.woff2') format('woff2');font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:'AbarLow';src:url('../fonts/Abar/AbarLow-SemiBold.woff2') format('woff2');font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:'AbarLow';src:url('../fonts/Abar/AbarLow-Bold.woff2') format('woff2');font-weight:700;font-style:normal;font-display:swap}

/* ============================================================
   RESET + BASE TYPOGRAPHY + CONTENT PROTECTION
   ============================================================ */

*{box-sizing:border-box;margin:0;padding:0}
html,body{background:#ffffff;color:#0a0d16;font-family:'Inter','AbarLow',system-ui,sans-serif;-webkit-font-smoothing:antialiased;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}
input,textarea{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto}
img,svg{-webkit-user-drag:none;user-drag:none;-webkit-touch-callout:none}
img{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
::selection{background:#0e8c84;color:#fff}
input::placeholder{color:#9ca0aa;opacity:1}

/* Animations */
@keyframes spin{to{transform:rotate(360deg)}}
@keyframes fadeUp{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:translateY(0)}}

/* ========== CATEGORIES MEGA-MENU (shared across index/store/product) ========== */
/* "Soon" badge for nav items that aren't wired yet (e.g. Studio) — small,
   muted, uppercase pill sitting to the right of the label. The link itself
   is fully un-clickable so users don't wonder why nothing happens on tap. */
.nav-soon{display:inline-block;font-size:8.5px;font-weight:700;color:#9ca0aa;background:rgba(10,13,22,.06);padding:2px 6px;border-radius:999px;margin-left:6px;text-transform:uppercase;letter-spacing:.08em;vertical-align:middle;position:relative;top:-1px;line-height:1.35}
.is-soon{pointer-events:none;opacity:.6;cursor:default}
.drawer-link.is-soon{opacity:.55}
.drawer-link.is-soon .nav-soon{background:rgba(10,13,22,.05);color:#9ca0aa}

.cat-nav-item{cursor:pointer;background:none;border:0;padding:0;font-family:inherit;transition:color .25s ease,text-shadow .25s ease}
.cat-nav-item:hover{color:#0e8c84 !important}
/* Use text-shadow to simulate weight-700 without changing glyph metrics —
   otherwise the button widens when it becomes active and shifts every
   sibling nav item sideways. */
.cat-nav-item.is-active{color:#0e8c84 !important;text-shadow:0.4px 0 0 currentColor,-0.4px 0 0 currentColor}
/* When hovered, drop the pseudo-bold text-shadow so the hover color doesn't
   look like it's applied twice (green outline layered on top of green fill).
   !important beats the more-specific `.store-header nav .cat-nav-item.is-active`
   rule shipped by store.css / product.css. */
.cat-nav-item.is-active:hover{text-shadow:none !important}
.cat-mega{position:absolute;top:100%;left:0;right:0;background:transparent;padding:14px clamp(24px,4vw,60px) 20px;pointer-events:none;opacity:0;transform:translateY(-8px);transition:opacity .25s ease,transform .25s ease;z-index:29}
.cat-mega[data-open="true"]{opacity:1;transform:translateY(0);pointer-events:auto}
.cat-mega__inner{position:relative;max-width:1240px;margin:0 auto;background:#fff;border:1px solid rgba(10,13,22,.06);border-radius:20px;box-shadow:0 30px 60px -20px rgba(10,13,22,.18),0 8px 24px -8px rgba(10,13,22,.08);padding:clamp(20px,2.4vw,32px);display:grid;grid-template-columns:1.55fr 1fr;gap:clamp(20px,2vw,28px);overflow:hidden}
.cat-mega__close{display:none}
.cat-mega__inner>div:nth-of-type(2){background:#f9f9f9;padding:clamp(20px,2.4vw,32px);margin:calc(-1 * clamp(20px,2.4vw,32px)) calc(-1 * clamp(20px,2.4vw,32px)) calc(-1 * clamp(20px,2.4vw,32px)) 0}
.cat-mega__col-title{font-family:'Inter','AbarLow',system-ui,sans-serif;font-weight:600;font-size:15px;color:#0e8c84;letter-spacing:-.01em;margin-bottom:18px}
.cat-mega__coll-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}
.cat-mega__coll-head .cat-mega__col-title{margin-bottom:0}
.cat-mega__viewall{font-size:12.5px;font-weight:600;color:#535862;text-decoration:none;letter-spacing:-.005em;display:inline-flex;align-items:center;gap:4px;transition:color .2s ease}
.cat-mega__viewall:hover{color:#0e8c84}
.cat-mega__viewall svg{width:12px;height:12px}
.cat-mega__types{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:repeat(4,auto);grid-auto-flow:column;gap:3px}
.cat-type{display:flex;align-items:flex-start;gap:14px;padding:18px 16px;border-radius:12px;text-decoration:none;color:inherit;transition:background .2s ease}
.cat-type:hover,.cat-type.is-active{background:#efefef}
.cat-type__icon{width:22px;height:22px;flex-shrink:0;margin-top:2px;object-fit:contain}
.cat-type__body{min-width:0}
.cat-type__name{font-family:'Inter','AbarLow',system-ui,sans-serif;font-weight:600;font-size:14px;color:#0a0d16;letter-spacing:-.01em;margin:0 0 4px}
.cat-type__desc{font-size:12.5px;color:#5b6070;line-height:1.45;letter-spacing:-.005em;margin:0}
.cat-mega__colls{display:flex;flex-direction:column;gap:14px;transform:translateY(2px)}
.cat-coll{display:flex;gap:16px;text-decoration:none;color:inherit;padding:10px;border-radius:12px;transition:background .2s ease}
.cat-coll:hover{background:#ececec}
.cat-coll__img{flex:0 0 44%;aspect-ratio:176/99;border-radius:10px;overflow:hidden;background:#f5f5f7}
.cat-coll__img img{width:100%;height:100%;object-fit:cover;display:block}
.cat-coll__body{min-width:0;display:flex;flex-direction:column;justify-content:center;gap:4px}
.cat-coll__name{font-family:'Inter','AbarLow',system-ui,sans-serif;font-weight:600;font-size:14px;color:#0a0d16;margin:0;letter-spacing:-.01em}
.cat-coll__desc{font-size:12.5px;color:#5b6070;line-height:1.4;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.cat-coll__link{font-size:12.5px;font-weight:600;color:#0e8c84;display:inline-flex;align-items:center;gap:3px;margin-top:2px}
.cat-coll__link svg{width:10px;height:10px}
@media(max-width:900px){
  .cat-mega{padding:10px 12px 16px}
  .cat-mega__inner{grid-template-columns:1fr;gap:14px;padding:16px;padding-top:52px;max-height:calc(100vh - 90px);overflow-y:auto;-webkit-overflow-scrolling:touch}
  .cat-mega__close{display:flex;position:absolute;top:14px;right:14px;width:28px;height:28px;padding:0;background:none;border:0;color:#5b6070;align-items:center;justify-content:center;cursor:pointer;z-index:2;transition:color .2s ease}
  .cat-mega__close:hover{color:#0a0d16}
  .cat-mega__close:active{transform:scale(.9)}
  .cat-mega__inner>div:nth-of-type(2){margin:0;padding:14px;border-radius:12px}
  .cat-mega__types{grid-template-columns:1fr;grid-template-rows:auto;grid-auto-flow:row;gap:4px}
  .cat-mega__col-title{font-size:13px;margin-bottom:10px}
  .cat-mega__coll-head{margin-bottom:12px}
  .cat-type{padding:10px 12px;gap:10px}
  .cat-type__name{font-size:13px;margin-bottom:2px}
  .cat-type__desc{font-size:11px;line-height:1.35}
  .cat-type__icon{width:20px;height:20px}
  .cat-mega__colls{gap:8px;transform:none}
  .cat-coll{padding:6px;gap:10px}
  .cat-coll__img{flex:0 0 38%;aspect-ratio:176/99;border-radius:8px}
  .cat-coll__name{font-size:12.5px;margin-bottom:1px}
  .cat-coll__desc{font-size:10.5px;line-height:1.3;-webkit-line-clamp:2}
  .cat-coll__link{font-size:10.5px;margin-top:1px}
  .cat-mega__viewall{font-size:11px}
}
@media(max-width:520px){
  .cat-mega__inner{padding:14px;gap:12px}
  .cat-mega__inner>div:nth-of-type(2){padding:12px}
  .cat-mega__coll-head{margin-bottom:10px}
  .cat-type{padding:8px 10px;gap:10px}
  .cat-type__name{font-size:12.5px}
  .cat-type__desc{font-size:10.5px}
  .cat-mega__colls{gap:6px}
  .cat-coll{padding:5px;gap:8px}
  .cat-coll__img{flex:0 0 36%}
  .cat-coll__name{font-size:12px}
  .cat-coll__desc{font-size:10px;line-height:1.25}
  .cat-coll__link{font-size:10px}
}

/* ============================================================
   CART DRAWER + ACCOUNT POPOVER (customer-facing pages)
   ============================================================ */

/* ---- Cart badge on the header cart icon ----
   Delivered via ::after keyed to body CSS variables (same technique as the
   menu-btn badge) so it survives React re-renders on index.html — the
   header there sits inside an <x-dc> tree that would otherwise revert any
   direct DOM mutations we made to a <span> child. */
.hdr-btn{position:relative;display:inline-flex}
.hdr-btn[data-open-cart]::after{
  content: var(--cart-count-text, "");
  display: var(--cart-badge-display, none);
  position:absolute;
  top:4px;
  right:4px;
  min-width:12px;
  height:15px;
  padding:0 3px;
  background:#e93a4a;
  color:#fff;
  border-radius:999px;
  font-size:9px;
  font-weight:700;
  align-items:center;
  justify-content:center;
  line-height:1;
  box-shadow:0 0 0 1.5px #fff;
  font-family:'Inter',system-ui,sans-serif;
  letter-spacing:-.02em;
  pointer-events:none;
}
/* Legacy span-based badge (kept for any pages that still use the pattern) */
.cart-badge{position:absolute;top:4px;right:4px;min-width:12px;height:15px;padding:0 3px;background:#e93a4a;color:#fff;border-radius:999px;font-size:9px;font-weight:700;display:flex;align-items:center;justify-content:center;line-height:1;box-shadow:0 0 0 1.5px #fff;font-family:'Inter',system-ui,sans-serif;letter-spacing:-.02em;pointer-events:none;transform:scale(1);transition:transform .25s cubic-bezier(.34,1.56,.64,1)}
.cart-badge[hidden]{display:none}
.cart-badge.pulse{transform:scale(1.25)}

/* Cart badge on the mobile hamburger button, delivered via ::after so it
   lives OUTSIDE React's virtual DOM (on index.html the menu-btn is inside
   an <x-dc> React tree, and any <span> child would be reverted to its
   virtual-DOM state on every re-mount — bfcache restore, state change,
   etc). CSS variables on <body> drive the value + visibility, and React
   can't touch body-level attributes, so the badge always reflects the
   real cart count. */
.menu-btn::after{
  content: var(--cart-count-text, "");
  display: var(--cart-badge-display, none);
  position:absolute;
  top:-2px;
  right:-2px;
  min-width:12px;
  height:15px;
  padding:0 3px;
  background:#e93a4a;
  color:#fff;
  border-radius:999px;
  font-size:9px;
  font-weight:700;
  align-items:center;
  justify-content:center;
  line-height:1;
  box-shadow:0 0 0 1.5px #fff;
  font-family:'Inter',system-ui,sans-serif;
  letter-spacing:-.02em;
  pointer-events:none;
}

/* Drop the border under the LAST drawer nav link (Studio) so it doesn't
   double up against the border-top of the drawer-signout / sign-in slot
   sitting right below it. */
.drawer > a.drawer-link:last-of-type{border-bottom:0}

/* ---- Cart drawer ----
   Two-stage motion: content fades in as the panel translates, and a subtle
   overshoot easing keeps the slide feeling springy instead of "dry". */
/* Same 100vh trap as .drawer: the checkout button sits in a bottom-anchored
   footer, so on a phone it fell below the visible area. */
.cart-drawer{position:fixed;top:0;right:0;width:420px;max-width:100vw;height:100vh;height:100dvh;background:#fff;z-index:1001;display:flex;flex-direction:column;transform:translateX(100%);opacity:.6;transition:transform .5s cubic-bezier(.16,1,.3,1),opacity .35s ease;box-shadow:-30px 0 80px -30px rgba(10,13,22,.28);will-change:transform,opacity;visibility:hidden}
.cart-drawer[data-open="true"]{transform:translateX(0);opacity:1;visibility:visible;transition:transform .55s cubic-bezier(.16,1,.3,1),opacity .3s ease .05s}
.cart-drawer__head{padding:22px 24px 18px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid rgba(10,13,22,.06)}
.cart-drawer__title{display:flex;align-items:baseline;gap:10px}
.cart-drawer__title h3{font-family:'Inter','AbarLow',system-ui,sans-serif;font-weight:600;font-size:17px;color:#0a0d16;letter-spacing:-.01em;margin:0}
.cart-drawer__count{font-size:12.5px;color:#5b6070;font-weight:500}
.cart-drawer__close{width:34px;height:34px;background:none;border:0;color:#5b6070;cursor:pointer;padding:0;display:flex;align-items:center;justify-content:center;border-radius:8px;transition:color .2s ease,background .2s ease}
.cart-drawer__close:hover{color:#0a0d16;background:#f5f5f7}
.cart-drawer__body{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:8px 24px}
.cart-drawer__footer{padding:20px 24px calc(26px + env(safe-area-inset-bottom, 0px));border-top:1px solid rgba(10,13,22,.06);background:#fff}
.cart-drawer__footer[hidden]{display:none}

/* ---- Cart item ---- */
.cart-item{display:grid;grid-template-columns:60px 1fr auto;gap:14px;padding:14px 0;border-bottom:1px solid rgba(10,13,22,.04);align-items:center}
.cart-item:last-child{border-bottom:0}
.cart-item__img{width:60px;height:60px;background:#fafafb;border:1px solid rgba(10,13,22,.06);border-radius:10px;display:flex;align-items:center;justify-content:center;padding:0;overflow:hidden}
.cart-item__img img{max-width:100%;max-height:100%;object-fit:contain}
.cart-item__info{min-width:0}
.cart-item__title{font-size:13px;font-weight:500;color:#0a0d16;line-height:1.4;letter-spacing:-.005em;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;margin:0}
.cart-item__meta{display:flex;align-items:center;gap:8px;margin-top:6px}
.cart-item__price{font-size:13.5px;font-weight:700;color:#0a0d16;letter-spacing:-.005em}
.cart-item__qty{font-size:11.5px;color:#5b6070;background:#f5f5f7;padding:2px 8px;border-radius:999px;font-weight:500}
.cart-item__remove{background:none;border:0;color:#9ca0aa;cursor:pointer;padding:8px;border-radius:8px;display:flex;transition:color .2s ease,background .2s ease}
.cart-item__remove:hover{color:#e93a4a;background:#fdf2f4}

/* ---- Empty cart state ---- */
.cart-empty{text-align:center;padding:60px 20px 40px;color:#5b6070}
.cart-empty__icon{margin:0 auto 20px;color:#dcdee3;display:flex;justify-content:center}
.cart-empty__title{font-family:'Inter','AbarLow',system-ui,sans-serif;font-weight:600;font-size:16px;color:#0a0d16;margin:0 0 8px;letter-spacing:-.01em}
.cart-empty__text{font-size:13px;line-height:1.55;margin:0 0 26px;letter-spacing:-.005em}
.cart-empty__cta{display:inline-flex;align-items:center;gap:8px;background:#0e8c84;color:#fff;padding:11px 24px;border-radius:10px;font-size:13.5px;font-weight:600;text-decoration:none;transition:background .2s ease,transform .1s ease;font-family:inherit}
.cart-empty__cta:hover{background:#0d7a72}
.cart-empty__cta:active{transform:translateY(1px)}

/* ---- Cart footer (subtotal + checkout) ---- */
.cart-drawer__row{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:16px}
.cart-drawer__row-label{font-size:13px;color:#5b6070;font-weight:500}
.cart-drawer__row-amount{font-size:20px;color:#0a0d16;font-weight:700;letter-spacing:-.01em;font-family:'Inter','AbarLow',system-ui,sans-serif}
.cart-drawer__note{font-size:11.5px;color:#9ca0aa;text-align:center;margin:0 0 12px;letter-spacing:-.005em}
.cart-drawer__checkout{width:100%;background:#0a0d16;color:#fff;padding:14px 20px;font-size:14px;font-weight:600;border-radius:10px;border:0;cursor:pointer;transition:background .2s ease,transform .1s ease;font-family:inherit;display:flex;align-items:center;justify-content:center;gap:8px}
.cart-drawer__checkout:hover{background:#1a1f2b}
.cart-drawer__checkout:active{transform:translateY(1px)}

/* ---- Shared backdrop for drawer + popover ---- */
.overlay-backdrop{position:fixed;inset:0;background:rgba(10,13,22,.42);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px);z-index:1000;opacity:0;pointer-events:none;transition:opacity .4s cubic-bezier(.4,0,.2,1)}
.overlay-backdrop[data-open="true"]{opacity:1;pointer-events:auto}

/* ---- Account popover ---- */
.account-popover{position:fixed;background:#fff;border:1px solid rgba(10,13,22,.06);border-radius:14px;box-shadow:0 24px 60px -20px rgba(10,13,22,.18),0 8px 24px -8px rgba(10,13,22,.08);z-index:1002;width:264px;max-width:calc(100vw - 24px);padding:0;opacity:0;transform:translateY(-6px) scale(.98);transform-origin:top right;pointer-events:none;transition:opacity .22s ease,transform .22s ease;overflow:hidden}
.account-popover[data-open="true"]{opacity:1;transform:translateY(0) scale(1);pointer-events:auto}

/* Guest state — no logo, more generous spacing to let content breathe */
.account-guest{padding:22px 20px 18px}
.account-guest__title{font-family:'Inter','AbarLow',system-ui,sans-serif;font-weight:600;font-size:15px;color:#0a0d16;margin:0 0 8px;letter-spacing:-.01em;text-align:center}
.account-guest__desc{font-size:12.5px;color:#5b6070;line-height:1.55;margin:0 0 22px;letter-spacing:-.005em;text-align:center;padding:0 4px}
.account-guest__signin{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;background:#0a0d16;color:#fff;padding:11px;font-size:13px;font-weight:600;border-radius:9px;border:0;cursor:pointer;text-align:center;margin-bottom:10px;text-decoration:none;transition:background .2s ease,transform .1s ease;font-family:inherit}
.account-guest__signin:hover{background:#1a1f2b}
.account-guest__signin:active{transform:translateY(1px)}
.account-guest__signin svg{width:13px;height:13px}
.account-guest__google{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;background:#fff;color:#0a0d16;padding:10px;font-size:12.5px;font-weight:500;border:1px solid rgba(10,13,22,.12);border-radius:9px;cursor:pointer;text-decoration:none;transition:background .2s ease,border-color .2s ease;font-family:inherit;margin-bottom:18px}
.account-guest__google:hover{background:#fafafb;border-color:rgba(10,13,22,.22)}
.account-guest__google svg{width:14px;height:14px;flex-shrink:0}
.account-guest__create{display:block;text-align:center;font-size:12px;color:#5b6070;text-decoration:none;transition:color .2s ease;padding-top:14px;border-top:1px solid rgba(10,13,22,.06)}
.account-guest__create:hover{color:#0a0d16}
.account-guest__create strong{color:#0e8c84;font-weight:600}

/* User state */
.account-user__head{display:flex;align-items:center;gap:12px;padding:18px 20px 8px;background:#fff}
.account-user__avatar{width:42px;height:42px;border-radius:50%;background:linear-gradient(135deg,#0e8c84,#3edcc7);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:15px;flex-shrink:0;letter-spacing:-.01em}
.account-user__id{min-width:0}
.account-user__name{font-family:'Inter','AbarLow',system-ui,sans-serif;font-size:13.5px;font-weight:600;color:#0a0d16;line-height:1.2;letter-spacing:-.005em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.account-user__email{font-size:11.5px;color:#5b6070;margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;letter-spacing:-.005em}
.account-user__role{display:inline-block;font-size:10px;font-weight:700;color:#0a6b64;background:#e6f4f3;padding:2px 8px;border-radius:999px;margin-top:4px;text-transform:uppercase;letter-spacing:.06em}

/* Subscription card between user head and menu */
.account-sub-card{margin:4px 14px 16px;padding:14px 14px 12px;background:linear-gradient(135deg,#f5faf9 0%,#fafefe 100%);border:1px solid rgba(14,140,132,.14);border-radius:12px}
.account-sub-card--loading{color:#9ca0aa;font-size:11.5px;text-align:center;padding:18px 14px;background:#fafbfc;border-color:rgba(10,13,22,.06)}
.account-sub-card__head{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:10px}
.account-sub-card__title{font-family:'Inter','AbarLow',system-ui,sans-serif;font-size:12.5px;font-weight:600;color:#0a0d16;letter-spacing:-.01em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.account-sub-card__pill{display:inline-flex;align-items:center;gap:4px;background:#e6f4f3;color:#0a6b64;font-size:9.5px;font-weight:700;padding:2px 7px;border-radius:999px;text-transform:uppercase;letter-spacing:.06em;flex-shrink:0}
.account-sub-card__pill::before{content:'';width:4px;height:4px;background:#0a6b64;border-radius:50%}

/* Prominent "X downloads left" stat */
.account-sub-card__stat{display:flex;align-items:baseline;gap:5px;margin-bottom:9px}
.account-sub-card__big{font-family:'Inter','AbarLow',system-ui,sans-serif;font-size:22px;font-weight:600;color:#0e8c84;line-height:1;letter-spacing:-.03em}
.account-sub-card__big-lbl{font-size:11.5px;color:#5b6070;font-weight:500;letter-spacing:-.005em}

.account-sub-card__bar{background:rgba(14,140,132,.12);border-radius:999px;height:5px;overflow:hidden;margin-bottom:8px}
.account-sub-card__bar-fill{background:linear-gradient(90deg,#0e8c84 0%,#3edcc7 100%);height:100%;border-radius:999px;transition:width .5s cubic-bezier(.2,.9,.3,1.05)}

.account-sub-card__foot{display:flex;justify-content:space-between;align-items:center;font-size:10.5px;color:#7a7f8b;letter-spacing:-.005em;gap:8px}
.account-sub-card__foot-item{display:inline-flex;align-items:center;gap:4px;flex-shrink:0}
.account-sub-card__foot-item svg{width:10px;height:10px;color:#9ca0aa}

/* Empty state — cleaner, more inviting */
.account-sub-card--empty{background:linear-gradient(135deg,#fafbfc 0%,#fff 100%);border-color:rgba(10,13,22,.08);padding:14px}
.account-sub-card--empty .account-sub-card__title{margin-bottom:4px;font-size:13px;display:flex;align-items:center;gap:7px}
.account-sub-card--empty .account-sub-card__title svg{width:14px;height:14px;color:#0e8c84;flex-shrink:0}
.account-sub-card__sub{font-size:11.5px;color:#5b6070;line-height:1.5;margin-bottom:12px;letter-spacing:-.005em}
.account-sub-card__cta{display:inline-flex;align-items:center;justify-content:center;gap:5px;background:#0e8c84;color:#fff;padding:8px 14px;border-radius:8px;font-size:11.5px;font-weight:600;text-decoration:none;letter-spacing:-.005em;transition:background .18s ease;width:100%;box-sizing:border-box}
.account-sub-card__cta:hover{background:#0d7a72}
.account-sub-card__cta svg{width:11px;height:11px}

/* Mobile drawer variant — balanced top/bottom breathing room */
.drawer-account__menu-wrap .account-sub-card{margin:14px 12px 14px}

.account-menu{padding:6px 8px 10px;border-top:1px solid rgba(10,13,22,.05)}
.account-menu__item{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:8px;color:#0a0d16;font-size:13px;text-decoration:none;transition:background .2s ease;background:none;border:0;width:100%;text-align:left;font-family:inherit;cursor:pointer}
.account-menu__item:hover{background:#f5f5f7}
.account-menu__item svg{width:16px;height:16px;color:#5b6070;flex-shrink:0}
.account-menu__divider{border-top:1px solid rgba(10,13,22,.05);margin:6px 4px}
.account-menu__item--signout{color:#e93a4a}
.account-menu__item--signout:hover{background:#fdf2f4}
.account-menu__item--signout svg{color:#e93a4a}

/* ---- Toast ---- */
.tw-toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%) translateY(20px);background:#0a0d16;color:#fff;padding:12px 18px;border-radius:10px;font-size:13.5px;font-weight:500;box-shadow:0 12px 32px rgba(10,13,22,.25);z-index:1003;opacity:0;transition:opacity .3s ease,transform .3s ease;pointer-events:none;display:flex;align-items:center;gap:10px;font-family:inherit}
.tw-toast.show{transform:translateX(-50%) translateY(0);opacity:1}
.tw-toast svg{color:#3edcc7}

/* ---- Responsive ---- */
@media(max-width:480px){
  .cart-drawer{width:100%}
  .account-popover{min-width:0;left:12px !important;right:12px !important;max-width:none}
}

body.overlay-open{overflow:hidden}

/* ============================================================
   MOBILE DRAWER — ACCOUNT SECTION (top of drawer)
   Renders a guest sign-in card OR the user's account menu right at the top
   of the mobile drawer, so users never have to hunt for account features.
   Populated dynamically by common.js from `accountUser`.
   ============================================================ */
.drawer-account{padding-bottom:14px;margin:0 0 10px;border-bottom:1px solid rgba(10,13,22,.08)}
.drawer-account:empty{display:none;padding:0;margin:0;border:0}

/* ---- Guest state (Account label + sign-in card) ---- */
.drawer-account__label{font-family:'Inter','AbarLow',system-ui,sans-serif;font-size:10.5px;font-weight:700;color:#9ca0aa;text-transform:uppercase;letter-spacing:.12em;margin:0 0 10px;padding:0 4px}
.drawer-account__guest-card{background:linear-gradient(135deg,#f7faf9 0%,#fff 100%);border:1px solid rgba(10,13,22,.06);border-radius:12px;padding:14px 14px 12px}
.drawer-account__guest-text{font-size:12px;color:#5b6070;line-height:1.55;margin:0 0 12px;letter-spacing:-.005em}
.drawer-account__guest-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.drawer-account__guest-btn{display:flex;align-items:center;justify-content:center;padding:10px 8px;border-radius:9px;font-size:12.5px;font-weight:600;text-decoration:none;font-family:inherit;border:0;cursor:pointer;transition:background .2s ease,transform .1s ease,border-color .2s ease}
.drawer-account__guest-btn--primary{background:#0a0d16;color:#fff}
.drawer-account__guest-btn--primary:hover{background:#1a1f2b}
.drawer-account__guest-btn--primary:active{transform:translateY(1px)}
.drawer-account__guest-btn--secondary{background:#fff;color:#0a0d16;border:1px solid rgba(10,13,22,.14)}
.drawer-account__guest-btn--secondary:hover{background:#fafafb;border-color:rgba(10,13,22,.24)}

/* ---- User (signed-in) state ---- */
.drawer-account__user{display:flex;align-items:center;gap:12px;padding:12px 10px;background:linear-gradient(135deg,#fafafb,#fff);border:1px solid rgba(10,13,22,.05);border-radius:12px;margin:0;cursor:pointer;user-select:none;transition:background .25s ease,border-color .25s ease}
.drawer-account__user:hover,.drawer-account__user:focus-visible{background:linear-gradient(135deg,#f5f7f7,#fafafb);border-color:rgba(10,13,22,.08);outline:none}
.drawer-account__toggle-chev{margin-left:auto;color:#5b6070;display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:transform .35s cubic-bezier(.22,.65,.2,1),color .25s ease}
.drawer-account__toggle-chev svg{width:16px;height:16px}
.drawer-account[data-open="true"] .drawer-account__toggle-chev{transform:rotate(180deg);color:#0e8c84}

/* Collapsible menu wrap — same grid-template-rows trick used by
   .concept-item and .acc-item elsewhere so height animates smoothly
   without knowing content size in advance. */
.drawer-account__menu-wrap{display:grid;grid-template-rows:0fr;transition:grid-template-rows .4s cubic-bezier(.22,.65,.2,1),opacity .3s ease,margin-top .3s ease;opacity:0;margin-top:0}
.drawer-account[data-open="true"] .drawer-account__menu-wrap{grid-template-rows:1fr;opacity:1;margin-top:8px}
.drawer-account__menu-wrap>div{overflow:hidden;min-height:0}
.drawer-account__avatar{width:42px;height:42px;border-radius:50%;background:linear-gradient(135deg,#0e8c84,#3edcc7);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:15px;letter-spacing:-.01em;flex-shrink:0}
.drawer-account__id{min-width:0;flex:1}
.drawer-account__name{font-family:'Inter','AbarLow',system-ui,sans-serif;font-size:13.5px;font-weight:600;color:#0a0d16;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;letter-spacing:-.005em}
.drawer-account__email{font-size:11.5px;color:#5b6070;margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;letter-spacing:-.005em}
.drawer-account__role{display:inline-block;font-size:9.5px;font-weight:700;color:#0a6b64;background:#e6f4f3;padding:1px 7px;border-radius:999px;margin-top:4px;text-transform:uppercase;letter-spacing:.06em}
.drawer-account__menu{display:flex;flex-direction:column;gap:1px}
.drawer-account__item{display:flex;align-items:center;gap:12px;padding:10px 10px;border-radius:9px;color:#0a0d16;font-size:13px;font-weight:500;text-decoration:none;transition:background .2s ease,padding-left .25s ease,color .2s ease;letter-spacing:-.005em;background:none;border:0;width:100%;text-align:left;font-family:inherit;cursor:pointer}
.drawer-account__item:hover,.drawer-account__item:active{background:#f5f5f7;padding-left:14px;color:#0e8c84}
.drawer-account__item svg{width:16px;height:16px;color:#5b6070;flex-shrink:0;transition:color .2s ease}
.drawer-account__item:hover svg{color:#0e8c84}
.drawer-account__item-count{margin-left:auto;font-size:10.5px;font-weight:700;color:#0a6b64;background:#e6f4f3;padding:2px 8px;border-radius:999px;font-family:inherit}
.drawer-account__item-chev{margin-left:auto;color:#c9ccd3;display:flex;transition:transform .25s ease,color .2s ease}
.drawer-account__item-chev svg{width:11px;height:11px;color:inherit}
.drawer-account__item:hover .drawer-account__item-chev{color:#0e8c84;transform:translateX(2px)}
.drawer-account__item--signout{color:#e93a4a;margin-top:6px;padding-top:12px;border-top:1px solid rgba(10,13,22,.06);border-radius:0}
.drawer-account__item--signout:hover,.drawer-account__item--signout:active{background:#fdf2f4;color:#e93a4a;padding-left:14px}
.drawer-account__item--signout svg{color:#e93a4a}
.drawer-account__item--signout:hover svg{color:#e93a4a}

/* ---- Bottom-of-drawer slot for Sign out (logged in) OR Sign-in card
   (guest). margin-top:auto pushes it toward the bottom of the flex
   column, and margin-bottom lifts it up a touch so it isn't glued to
   the very edge of the screen. */
.drawer-signout{margin-top:auto;margin-bottom:0;padding-top:16px;border-top:1px solid rgba(10,13,22,.08)}
.drawer-signout:empty{display:none;padding:0;border:0;margin:0}
.drawer-signout button{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;padding:12px 10px;background:#fff;color:#e93a4a;border:1px solid rgba(233,58,74,.24);border-radius:10px;font-size:13px;font-weight:600;font-family:inherit;letter-spacing:-.005em;cursor:pointer;transition:background .2s ease,border-color .2s ease,transform .1s ease}
.drawer-signout button:hover{background:#fdf2f4;border-color:rgba(233,58,74,.42)}
.drawer-signout button:active{transform:translateY(1px)}
.drawer-signout button svg{width:15px;height:15px;color:currentColor;flex-shrink:0}

/* ---- Guest Cart summary at the top of the mobile drawer.
   Appears when a guest has added items to cart — closes the loop between
   the red hamburger badge and the actual cart contents so the guest can
   check out directly. */
.drawer-cart-card{background:linear-gradient(135deg,#fafafb,#fff);border:1px solid rgba(10,13,22,.08);border-radius:12px;padding:14px}
.drawer-cart-card__head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}
.drawer-cart-card__label{font-family:'Inter','AbarLow',system-ui,sans-serif;font-size:10.5px;font-weight:700;color:#9ca0aa;text-transform:uppercase;letter-spacing:.12em;margin:0 0 2px}
.drawer-cart-card__count{font-size:14px;font-weight:600;color:#0a0d16;letter-spacing:-.005em}
.drawer-cart-card__amount{font-family:'Inter','AbarLow',system-ui,sans-serif;font-size:16px;font-weight:700;color:#0a0d16;letter-spacing:-.01em;white-space:nowrap}
.drawer-cart-card__checkout{display:flex;align-items:center;justify-content:center;gap:6px;background:#0a0d16;color:#fff;padding:11px;border-radius:9px;font-size:13px;font-weight:600;text-decoration:none;font-family:inherit;transition:background .2s ease}
.drawer-cart-card__checkout:hover{background:#1a1f2b}
.drawer-cart-card__checkout svg{width:12px;height:12px}

/* ============================================================
   WISHLIST BUTTON (only on product single page — .product-image-card)
   ============================================================ */
.wishlist-btn{position:absolute;top:14px;left:14px;width:38px;height:38px;padding:0;border-radius:50%;background:rgba(255,255,255,.92);border:1px solid rgba(10,13,22,.06);color:#9ca0aa;cursor:pointer;display:flex;align-items:center;justify-content:center;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);transition:color .2s ease,background .2s ease,transform .12s ease,box-shadow .2s ease;z-index:4;box-shadow:0 2px 8px rgba(10,13,22,.06)}
.wishlist-btn:hover{color:#e93a4a;background:#fff;box-shadow:0 4px 12px rgba(10,13,22,.1)}
.wishlist-btn:active{transform:scale(.9)}
.wishlist-btn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:fill .2s ease}
.wishlist-btn.is-saved{color:#e93a4a}
.wishlist-btn.is-saved svg{fill:currentColor}
.wishlist-btn.pop{animation:wishPop .32s cubic-bezier(.34,1.56,.64,1)}
@keyframes wishPop{0%{transform:scale(1)}45%{transform:scale(1.28)}100%{transform:scale(1)}}

@media(max-width:520px){
  .wishlist-btn{width:32px;height:32px;top:10px;left:10px}
  .wishlist-btn svg{width:15px;height:15px}
}

/* ========== "ALL ASSETS" CATEGORY DROPDOWN (home hero) ========== */
.assets-dd{position:fixed;background:#fff;border:1px solid rgba(10,13,22,.08);border-radius:14px;
  box-shadow:0 24px 60px -18px rgba(10,13,22,.28),0 8px 24px -10px rgba(10,13,22,.10);
  z-index:1003;width:290px;padding:6px;opacity:0;transform:translateY(-6px) scale(.98);
  transform-origin:top left;pointer-events:none;transition:opacity .2s ease,transform .2s ease;
  font-family:'Inter','AbarLow',system-ui,sans-serif}
.assets-dd[data-open="true"]{opacity:1;transform:translateY(0) scale(1);pointer-events:auto}
/* Opened upward: grow from the bottom edge so the motion still reads as
   coming out of the trigger. */
.assets-dd.is-above{transform-origin:bottom left;transform:translateY(6px) scale(.98)}
.assets-dd.is-above[data-open="true"]{transform:translateY(0) scale(1)}
.assets-dd__head{font-size:10.5px;font-weight:700;color:#9ca0aa;letter-spacing:.14em;
  text-transform:uppercase;padding:10px 12px 6px}
.assets-dd__item{display:flex;align-items:center;gap:11px;padding:9px 12px;border-radius:10px;
  cursor:pointer;text-decoration:none;color:#0a0d16;font-size:13.5px;font-weight:500;
  letter-spacing:-.005em;transition:background .15s ease;border:0;background:none;
  width:100%;text-align:left;font-family:inherit}
.assets-dd__item:hover,.assets-dd__item.is-focus{background:#f4f7f9}
.assets-dd__item img{width:28px;height:28px;border-radius:50%;flex-shrink:0;display:block}
.assets-dd__item-all{width:28px;height:28px;border-radius:50%;flex-shrink:0;display:flex;
  align-items:center;justify-content:center;background:#eef2f6;color:#09416F}
.assets-dd__item-all svg{width:15px;height:15px}
.assets-dd__divider{height:1px;background:rgba(10,13,22,.06);margin:5px 8px}
/* Phones: the panel opens inside the hero, where there is little room below
   the search bar. Tightening the rows lets all six categories fit at once —
   place() then only has to flip or scroll in the rare case they still don't. */
@media(max-width:560px){
  .assets-dd{width:calc(100vw - 32px);padding:5px;overflow-y:auto;-webkit-overflow-scrolling:touch}
  .assets-dd__head{font-size:9.5px;padding:7px 10px 5px;letter-spacing:.12em}
  .assets-dd__item{padding:6px 10px;gap:9px;font-size:13.5px}
  .assets-dd__item img,.assets-dd__item-all{width:22px;height:22px}
  .assets-dd__item-all svg{width:12px;height:12px}
  .assets-dd__divider{margin:3px 8px}
}
/* Chevron on the "All Assets" chip flips while the dropdown is open. The JS
   already toggles aria-expanded, so the state is driven straight off that. */
[data-open-assets] svg{transition:transform .4s cubic-bezier(.2,.9,.3,1.1)}
[data-open-assets][aria-expanded="true"] svg{transform:rotate(180deg)}
