/* CUFE Intl Store: shared business theme. Load after functional component styles.
   Product reveal timing, media geometry, carousel logic and hidden states stay
   owned by their components. Uses local fonts and assets only. */
:root {
  --page:#f4f7fb;
  --bg:#f4f7fb;
  --surface:#ffffff;
  --surface-soft:#f1f5fa;
  --surface-raised:#ffffff;
  --field:#f8fafc;
  --ink:#142c46;
  --muted:#5a6c81;
  --line:#dce5ef;
  --red:#235da9;
  --red-dark:#194a8b;
  --accent-text:#235da9;
  --accent-soft:#eaf2fc;
  --gold-text:#235da9;
  --gold-soft:#eaf2fc;
  --focus:#2866b7;
  --store-accent:#235da9;
  --store-secondary:#647c97;
  --store-tint:#eff5fd;
  --store-edge:#bdcfe5;
  --store-shadow:0 4px 20px #19385e06;
  --store-shadow-raised:0 12px 32px #19385e12;
  --store-primary:linear-gradient(115deg,#2866b7,#235da9);
  --store-highlight:linear-gradient(90deg,#2765b5,#8eb5e5);
  --store-danger:#b52e44;
  --pack-bg:#ffffff;
  --pack-ink:#142c46;
  --pack-muted:#5a6c81;
  --pack-line:#dce5ef;
  --pack-gold:#235da9;
  --pack-fade:linear-gradient(180deg,#ffffff00,#fffffff0 70%,#fff);
  --notice-accent:#235da9;
  --notice-soft:#eaf2fc;
}
:root[data-theme="dark"] {
  --page:#0e1724;
  --bg:#0e1724;
  --surface:#162335;
  --surface-soft:#1b2a3f;
  --surface-raised:#1c2c42;
  --field:#111e30;
  --ink:#edf4fd;
  --muted:#a6b8ce;
  --line:#2d405a;
  --red:#2867b7;
  --red-dark:#225a9f;
  --accent-text:#a1c9ff;
  --accent-soft:#203b5c;
  --gold-text:#a1c9ff;
  --gold-soft:#203b5c;
  --focus:#8fbfff;
  --store-accent:#a1c9ff;
  --store-secondary:#a6b8ce;
  --store-tint:#1c304a;
  --store-edge:#405c7c;
  --store-shadow:0 4px 20px #00000012;
  --store-shadow-raised:0 14px 36px #0000002b;
  --store-primary:linear-gradient(115deg,#2867b7,#235da9);
  --store-highlight:linear-gradient(90deg,#79a9e6,#accbf2);
  --store-danger:#ff9caf;
  --pack-bg:#162335;
  --pack-ink:#edf4fd;
  --pack-muted:#a6b8ce;
  --pack-line:#2d405a;
  --pack-gold:#a1c9ff;
  --pack-fade:linear-gradient(180deg,#16233500,#162335ed 68%,#162335);
  --notice-accent:#a1c9ff;
  --notice-soft:#203b5c;
}
body.market-store,
body.admin-workspace {
  background-color:var(--page);
  background-image:none;
}
:is(.market-store,.admin-login,.admin-workspace) button,
:is(.market-store,.admin-login,.admin-workspace) a {
  -webkit-tap-highlight-color:#2866b720;
}
:is(.market-store,.admin-login,.admin-workspace) :is(input,textarea,select) {
  accent-color:var(--store-accent);
}
:is(.market-store,.admin-login,.admin-workspace) :is(button,a,input,textarea,select):focus-visible {
  outline:2px solid var(--focus);
  outline-offset:3px;
}
:is(.market-store,.admin-login,.admin-workspace) :is(.error,.ticket-error,.delivery-error,.delivery-admin-error,.ticket-over-limit,.delivery-danger,.ticket-danger) {
  color:var(--store-danger);
}
/* The existing character-limit warning uses !important for all themes. */
:is(.market-store,.admin-workspace) .ticket-over-limit { color:var(--store-danger)!important; }
/* Storefront: an ordered header, generous whitespace and clear buying actions. */
.market-store .wrap { max-width:1380px; }
.market-store .topbar {
  height:auto;
  background:var(--surface-soft);
  border-bottom:1px solid var(--line);
  font-size:11px;
}
.market-store .topbar .wrap { min-height:42px; }
.market-store .topbar .topbar-right { gap:14px; }
.market-store .theme-picker svg,
.market-store .language-picker svg { color:var(--store-accent); }
.market-store .topbar select { border-radius:5px;font-size:11px; }
.market-store>header {
  background:var(--surface);
  border-bottom:1px solid var(--line);
  box-shadow:0 7px 25px #07111c08;
}
.market-store .header-main {
  gap:18px;
  height:auto;
  min-height:112px;
  padding-block:22px;
}
.market-store .header-main>.brand { flex-shrink:0; }
.market-store .header-main .brand-cufe>img {
  filter:drop-shadow(0 3px 6px #2866b714);
}
.market-store .search-wrap { min-width:170px;max-width:none; }
.market-store #search {
  min-height:48px;
  padding:4px;
  border:1px solid var(--store-edge);
  border-radius:9px;
  background:var(--field);
  transition:border-color .2s,box-shadow .2s;
}
.market-store #search:focus-within {
  border-color:var(--focus);
  box-shadow:0 0 0 3px var(--accent-soft);
}
.market-store #search input { font-size:13px;padding-inline:12px; }
.market-store #search button {
  background:var(--store-primary);
  border-radius:5px;
  padding-inline:22px;
  letter-spacing:.03em;
}
.market-store .hot-words { gap:12px;margin-top:8px;font-size:11px; }
.market-store .hot-words button { font-size:11px; }
.market-store .notice-trigger {
  width:36px;
  min-height:42px;
  border-radius:8px;
  color:var(--muted);
  background:var(--surface-soft);
}
.market-store .notice-trigger-label { display:none; }
.market-store .notice-trigger>b { background:var(--red);inset-inline-end:-4px; }
.market-store .header-main .header-actions {
  display:flex;
  gap:7px;
  align-items:stretch;
  flex-shrink:0;
  margin-inline-start:0;
}
.market-store .header-main .header-actions>button {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  margin:0;
  padding:11px 12px;
  min-height:46px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--surface-soft);
  color:var(--ink);
  font-size:12px;
  line-height:1.45;
  white-space:normal;
  overflow-wrap:anywhere;
  transition:background .2s,border-color .2s;
}
.market-store .header-main .header-actions>button:hover {
  background:var(--accent-soft);
  border-color:var(--store-edge);
}
.market-store .header-main .header-actions>button>svg { width:17px;height:17px;flex:0 0 17px; }
.market-store .header-main .header-actions>.delivery-entry { color:var(--store-accent);max-width:120px; }
.market-store .header-main .header-actions>.membership-entry {
  color:var(--store-accent);
  background:var(--accent-soft);
  max-width:130px;
}
.market-store .header-main .header-actions>.cart-trigger { max-width:170px; }
.market-store .header-main .cart-trigger b { background:var(--red);min-width:19px;font-size:10px; }
.market-store .nav { gap:24px;min-height:48px;height:auto;align-items:stretch; }
.market-store .nav>button,
.market-store .category-nav>button { padding-block:13px;font-size:13px; }
.market-store .nav .all-category {
  width:210px;
  background:var(--store-primary);
  border-radius:7px 7px 0 0;
  color:#fff;
  padding-inline:19px;
}
.market-store .nav>button.active::after,
.market-store .category-nav>button.active::after {
  inset-inline:6px;
  height:2px;
  background:var(--store-highlight);
}
.market-store .nav>button.active,
.market-store .category-nav>button.active { color:var(--store-accent); }
.market-store .showcase { gap:18px;margin-top:24px; }
.market-store :is(.categories,.campaign,.welcome-card,.store-note,.service-strip) {
  border:1px solid var(--line);
  border-radius:12px;
  box-shadow:var(--store-shadow);
}
.market-store .categories { padding:23px 16px; }
.market-store .categories h2 { font-size:13px;letter-spacing:.01em; }
.market-store .categories h2 span { color:var(--store-accent);font-size:8px;letter-spacing:1.4px; }
.market-store .category-button { padding:12px 6px;font-size:13px;border-color:var(--line); }
.market-store .category-button.active,
.market-store .category-button:hover { background:var(--accent-soft);border-radius:6px;color:var(--store-accent); }
.market-store .category-button .category-symbol { color:var(--store-accent); }
.market-store .aside-bottom p { font-size:17px;line-height:1.7; }
.market-store .aside-bottom>span { color:var(--store-secondary);font-size:8px; }
.market-store .campaign:not(.custom-hero) { background:#e6edf4; }
.market-store .campaign:not(.custom-hero)::after {
  background:linear-gradient(90deg,#e9f0f8f5 0%,#e4edf5e8 34%,#e2ecf646 74%,#e2ecf608 100%);
}
.market-store .campaign-copy { padding:38px 30px; }
.market-store .campaign h1 { font-weight:800;letter-spacing:.01em;line-height:1.45; }
.market-store .campaign .eyebrow { color:var(--store-accent);font-size:9px;letter-spacing:1.9px; }
.market-store .campaign p,
.market-store .campaign-bottom { color:#52687e; }
.market-store .campaign-bottom { font-size:9px;letter-spacing:1.2px; }
.market-store .campaign.custom-hero>.campaign-copy {
  background:linear-gradient(115deg,var(--surface),var(--surface-soft));
  padding:25px 28px;
  border-top:1px solid var(--line);
}
.market-store .campaign .dark-button {
  background:var(--store-primary);
  color:#fff;
  border:1px solid #ffffff12;
  border-radius:6px;
  font-weight:650;
}
.market-store .campaign .dark-button:hover { background:var(--red-dark); }
.market-store .welcome-card { padding:18px 14px; }
.market-store .welcome-card h2 { font-size:15px;margin-block:6px 9px; }
.market-store .welcome-card button { border-color:var(--store-edge);border-radius:6px;background:var(--accent-soft);color:var(--store-accent); }
.market-store .showcase .store-note {
  background:linear-gradient(130deg,#193c66,#153354);
  color:#edf4fd;
  border-color:#315477;
}
.market-store .showcase .store-note p { color:#b6c5d8; }
.market-store .store-note .eyebrow { color:#9cc7e2;font-size:8px; }
.market-store .store-note h3 { font-size:15px;line-height:1.6; }
.market-store .store-note a { color:#d2e6ff;font-weight:600;text-underline-offset:4px; }
.market-store .store-note a:hover { text-decoration:underline; }
.market-store .service-strip { margin-block:22px 40px;padding-block:22px; }
.market-store .service-strip>div>span {
  font-family:ui-monospace,SFMono-Regular,Consolas,monospace;
  font-style:normal;
  font-size:24px;
  font-weight:500;
  color:var(--store-accent);
  letter-spacing:-.05em;
}
.market-store .service-strip b { font-size:13px; }
.market-store .service-strip small { font-size:10px; }
.market-store .section-title { padding-inline-start:13px;border-inline-start:3px solid var(--store-accent); }
.market-store .section-title .eyebrow { color:var(--store-accent);font-size:9px; }
.market-store .section-title h2 { font-size:25px;line-height:1.4; }
.market-store .section-title h2 span { font-size:12px; }
.market-store .filter-bar { border:0;padding:10px 12px 5px;background:var(--surface);border-radius:10px;margin-bottom:19px; }
.market-store .filter-bar #filter-tabs { gap:6px; }
.market-store .filter-tab { border-radius:6px;padding:9px 17px;font-size:12px; }
.market-store .filter-tab:hover { background:var(--accent-soft);color:var(--store-accent); }
.market-store .filter-tab.active,
.market-store .filter-tab.active:hover { background:var(--store-primary);color:#fff; }
.market-store .filter-bar label { margin-bottom:5px;font-size:11px; }
.market-store .filter-bar select { padding-block:9px;background:var(--field);border-radius:6px; }
.market-store .currency-note { font-size:11px;margin-bottom:19px; }
.market-store .demo-note { border:1px solid var(--line);border-radius:7px; }
.market-store .product-grid { gap:20px; }
.market-store .product-card {
  border-color:var(--pack-line);
  border-radius:12px;
  box-shadow:var(--store-shadow);
  transition:transform .38s cubic-bezier(.22,.61,.36,1),box-shadow .38s,border-color .38s;
}
.market-store .product-card:hover { border-color:var(--store-edge);box-shadow:var(--store-shadow-raised); }
.market-store .pack-card:hover { transform:translateY(-3px); }
.market-store .pack-brand { letter-spacing:.65px; }
.market-store .pack-copy .product-name { font-weight:700;letter-spacing:.01em; }
.market-store .pack-ribbon { box-shadow:inset 0 1px #ffffff38; }
.market-store .pack-footer { border-top:1px solid var(--pack-line); }
.market-store .pack-pricing .price { font-variant-numeric:tabular-nums; }
.market-store .pack-actions { background:var(--pack-bg); }
.market-store .pack-actions>button { min-height:51px;font-weight:650; }
.market-store .pack-actions>button:first-child { background:var(--store-primary);color:#fff; }
.market-store .pack-actions>button:first-child:hover:not(:disabled) { background:var(--red-dark);color:#fff; }
.market-store .pack-actions>button+button { color:var(--store-accent); }
.market-store .pack-actions>button+button:hover:not(:disabled) { background:var(--accent-soft); }
.market-store .product-badge { border:1px solid var(--line); }
.market-store .announcement { border-radius:9px;box-shadow:var(--store-shadow);padding-block:16px; }
.market-store .notice-important { --notice-accent:var(--store-danger);--notice-soft:#fff0f2; }
.market-store .announcement-symbol { border-radius:8px; }
.market-store .notice-item { border-radius:9px; }
.market-store .endnote { margin-block:46px;color:var(--muted);font-size:11px;letter-spacing:.04em; }
.market-store>footer { border-top:1px solid var(--line);background:var(--surface); }
.market-store .footer-inner { padding-block:28px;gap:20px; }
.market-store .footer-inner .brand b { font-size:21px;letter-spacing:.04em; }
.market-store .footer-inner p,
.market-store .footer-inner small { font-size:11px; }
.market-store .ticket-entry { color:var(--store-accent);border-radius:7px;min-height:40px;background:var(--surface-soft); }
.market-store .back-top { border:1px solid var(--line);border-radius:8px;color:var(--store-accent);box-shadow:var(--store-shadow); }
/* Dialogs retain their content and native modal semantics. */
:is(.market-store,.admin-workspace) dialog {
  border:1px solid var(--store-edge);
  border-radius:14px;
  box-shadow:0 28px 100px #02081566;
}
:is(.market-store,.admin-workspace) dialog::backdrop {
  background:#040a14b3;
  backdrop-filter:blur(7px);
}
.market-store :is(.primary-button,.ticket-primary,.delivery-primary) {
  background:var(--store-primary);
  color:#fff;
  border-radius:7px;
}
.market-store :is(.primary-button,.ticket-primary,.delivery-primary):hover:not(:disabled) {
  background:var(--red-dark);
  color:#fff;
}
.market-store :is(.close,.close-static,.ticket-close,.delivery-close) {
  color:var(--muted);
  border-radius:8px;
  background:var(--surface-soft);
}
.market-store :is(.dialog-heading,.ticket-heading,.delivery-heading) { padding-bottom:18px;border-bottom:1px solid var(--line); }
.market-store :is(.ticket-eyebrow,.delivery-eyebrow) { color:var(--store-accent); }
.market-store .delivery-seal { background:var(--accent-soft);color:var(--store-accent);border-radius:13px; }
.market-store .delivery-file { border-radius:9px; }
.market-store .delivery-download { color:var(--store-accent);border-radius:6px; }
.market-store .cart-total strong { color:var(--gold-text);font-variant-numeric:tabular-nums; }
.market-store .cart-bottom { border-top:1px solid var(--line);padding-top:20px; }
.market-store .ticket-tabs { border-radius:8px; }
.market-store .ticket-tabs button[aria-selected=true] { background:var(--accent-soft);color:var(--store-accent);box-shadow:none; }
.market-store .ticket-receipt { border-color:var(--store-edge);background:var(--accent-soft); }
.market-store .ticket-receipt h3 { color:var(--store-accent); }
.market-store .toast,
.admin-workspace .toast { background:var(--surface-raised);color:var(--ink);border:1px solid var(--store-edge);border-radius:9px;box-shadow:var(--store-shadow-raised); }
/* Merchant studio: consistent controls and a calm, structured workspace. */
.admin-login .login-view {
  background:linear-gradient(150deg,var(--surface),var(--page) 55%,var(--store-tint));
  padding-block:95px 40px;
}
.admin-login .login-brand { margin-bottom:25px; }
.admin-login .login-brand b { font-size:31px;letter-spacing:.04em; }
.admin-login .login-brand p { color:var(--store-accent);letter-spacing:.16em;font-size:10px; }
.admin-login .login-brand>img { filter:drop-shadow(0 7px 15px #2866b718); }
.admin-login .login-card {
  border-color:var(--store-edge);
  border-radius:15px;
  box-shadow:var(--store-shadow-raised);
  position:relative;
  background:var(--surface);
}
.admin-login .login-card::before {
  content:"";
  position:absolute;
  top:0;
  inset-inline:28px;
  height:2px;
  background:var(--store-highlight);
}
.admin-login .login-card h1 { font-size:28px;font-weight:750;letter-spacing:.02em; }
.admin-login .login-card .eyebrow { color:var(--store-accent); }
.admin-login .login-card input:not([type=checkbox]) { padding-block:14px;border-radius:7px; }
.admin-login .login-card>small { line-height:1.8; }
.admin-login .primary,
.admin-workspace .primary {
  background:var(--store-primary);
  color:#fff;
  border-radius:7px;
  box-shadow:0 3px 10px #1026380d;
}
.admin-login .primary:hover,
.admin-workspace .primary:hover { background:var(--red-dark); }
.admin-workspace .sidebar {
  background:#153354;
  border-inline-end:1px solid #2c4b70;
  color:#b2c1d5;
  padding:30px 18px;
}
.admin-workspace .sidebar .brand { color:#f1f5fc;gap:9px; }
.admin-workspace .sidebar .brand b { font-size:21px;letter-spacing:.03em; }
.admin-workspace .sidebar .brand small { color:#92b7d1;font-size:7px;letter-spacing:1.7px; }
.admin-workspace .side-label { color:#7e94b0;font-size:9px;letter-spacing:.15em;margin-top:37px; }
.admin-workspace .sidebar>button,
.admin-workspace .sidebar>a:not(.brand) { border:1px solid transparent;border-radius:7px;line-height:1.55; }
.admin-workspace .sidebar>button:hover,
.admin-workspace .sidebar>a:not(.brand):hover { background:#23466e;color:#edf4fd; }
.admin-workspace .sidebar .side-active {
  background:#28517f;
  border-color:#406993;
  color:#fff;
  box-shadow:inset 3px 0 #b8d5ff;
}
.admin-workspace .side-footer { border-color:#2d3c53;padding-inline:12px; }
.admin-workspace .side-footer>span { color:#90bdd8;font-size:8px; }
.admin-workspace .side-footer p { color:#ccd6e4;font-size:13px; }
.admin-workspace .side-footer button { color:#a8b9cf; }
.admin-workspace .workspace { padding:37px 35px 60px;max-width:1740px; }
.admin-workspace .workspace>header { padding-bottom:27px;border-bottom:1px solid var(--line);margin-bottom:25px; }
.admin-workspace .workspace h1 { font-size:29px;font-weight:750;letter-spacing:.01em; }
.admin-workspace .workspace .eyebrow { color:var(--store-accent);font-size:9px; }
.admin-workspace .workspace header p { line-height:1.8; }
.admin-workspace .workspace-tabs { width:100%;border-radius:10px;padding:6px;gap:5px;margin-bottom:26px;box-shadow:var(--store-shadow); }
.admin-workspace .workspace-tabs button { border-radius:6px;font-size:12px;padding:11px 17px; }
.admin-workspace .workspace-tabs button.selected { background:var(--accent-soft);color:var(--store-accent);box-shadow:inset 0 -2px var(--store-accent); }
.admin-workspace .stats { gap:15px;margin-bottom:25px; }
.admin-workspace .stats>div { border-radius:10px;position:relative;box-shadow:var(--store-shadow);padding:23px; }
.admin-workspace .stats>div::before { content:"";position:absolute;top:0;inset-inline:22px;height:2px;background:var(--store-highlight);opacity:.7; }
.admin-workspace .stats strong { font-variant-numeric:tabular-nums;font-size:34px;color:var(--ink);font-weight:650; }
.admin-workspace :is(.inventory,.settings-card,.ticket-admin-inbox,.ticket-admin-detail,.delivery-pack-list,.delivery-editor) {
  border-color:var(--line);
  border-radius:11px;
  box-shadow:var(--store-shadow);
}
.admin-workspace .settings-card { padding:25px; }
.admin-workspace .settings-card h2 { font-size:20px;letter-spacing:.01em; }
.admin-workspace .inventory-tools { padding:20px;gap:12px;background:var(--surface); }
.admin-workspace .tabs button { border-radius:6px;font-size:12px;padding:9px 13px; }
.admin-workspace .tabs .selected { color:var(--store-accent);background:var(--accent-soft);font-weight:650; }
.admin-workspace :is(.secondary,.ticket-button,.delivery-button) { border-color:var(--line);border-radius:6px;background:var(--surface-soft); }
.admin-workspace .secondary:hover { border-color:var(--store-edge);color:var(--store-accent); }
.admin-workspace :is(.inventory-tools>input,.settings-fields input,.settings-fields select,.settings-fields textarea,.editor-body input:not([type=checkbox]),.editor-body select,.editor-body textarea,.delivery-editor input:not([type=file])) { border-radius:7px; }
.admin-workspace .inventory-tools>input { background:var(--field);font-size:12px; }
.admin-workspace th { font-weight:650;font-size:11px;padding-block:15px; }
.admin-workspace td { padding-block:20px; }
.admin-workspace tbody tr:hover { background:var(--surface-soft); }
.admin-workspace .table-product img { border:1px solid var(--line);border-radius:7px; }
.admin-workspace .row-actions button:first-child { color:var(--store-accent); }
.admin-workspace .row-actions button { min-height:30px; }
.admin-workspace .editor-header { background:var(--surface);padding-block:23px; }
.admin-workspace .editor-header h2 { font-size:23px;letter-spacing:.01em; }
.admin-workspace .editor-body h3 span { background:var(--accent-soft);color:var(--store-accent);border-radius:6px; }
.admin-workspace .cover-preview { background:var(--surface-soft);border-color:var(--store-edge);border-radius:9px; }
.admin-workspace .cover-preview>span,
.admin-workspace .cover-preview p { color:var(--muted); }
.admin-workspace .identity-preview { border-radius:7px; }
.admin-workspace .editor-footer { background:var(--surface);box-shadow:0 -7px 20px #07101b08; }
.admin-workspace .image-card,
.admin-workspace .video-card,
.admin-workspace .hero-image-card { border-radius:8px; }
.admin-workspace .hero-image-card.selected { border-color:var(--store-accent);box-shadow:0 0 0 1px var(--store-accent); }
.admin-workspace .notice-row { padding-block:24px; }
.admin-workspace .notification-preview { border-radius:9px; }
.admin-workspace .ticket-admin,
.admin-workspace .ticket-dialog { --ticket-accent:var(--store-accent); }
.admin-workspace .ticket-primary { background:var(--store-primary);color:#fff;border-color:transparent; }
.admin-workspace .ticket-primary:hover:not(:disabled) { background:var(--red-dark);color:#fff; }
.admin-workspace .ticket-inbox-item.selected,
.admin-workspace .delivery-pack-item.selected { background:var(--accent-soft);box-shadow:inset 3px 0 var(--store-accent); }
.admin-workspace .delivery-kicker,
.admin-workspace .delivery-small,
.admin-workspace .delivery-pack-icon,
.admin-workspace .delivery-file-icon { color:var(--store-accent); }
.admin-workspace .delivery-upload { background:var(--accent-soft);border-radius:9px; }
.admin-workspace .delivery-list-heading { background:var(--surface-soft); }
.admin-workspace .delivery-admin-toolbar h2 { letter-spacing:.01em;font-weight:750; }
/* Dark mode and right-to-left layouts share the same blue identity. */
:root[data-theme="dark"] .market-store .campaign:not(.custom-hero) { background:#142538; }
:root[data-theme="dark"] .market-store .campaign:not(.custom-hero)::after {
  background:linear-gradient(90deg,#0c1a2bee 0%,#13243be3 36%,#11273c75 72%,#0d1b3026 100%);
}
:root[data-theme="dark"] .market-store .campaign p,
:root[data-theme="dark"] .market-store .campaign-bottom { color:#b4c5d9; }
:root[data-theme="dark"] .market-store .service-strip>div>span { color:var(--store-accent); }
:root[data-theme="dark"] .market-store .notice-important { --notice-soft:#352330; }
:root[data-theme="dark"] .admin-workspace .sidebar {
  background:#153354;
  border-color:#2b3d56;
  color:#b2c1d5;
}
:root[data-theme="dark"] .admin-workspace .sidebar .side-active {
  background:#28517f;
  color:#fff;
}
:root[dir="rtl"] .market-store .campaign:not(.custom-hero)::after {
  background:linear-gradient(270deg,#e9f0f8f5 0%,#e4edf5e8 34%,#e2ecf646 74%,#e2ecf608 100%);
}
:root[dir="rtl"][data-theme="dark"] .market-store .campaign:not(.custom-hero)::after {
  background:linear-gradient(270deg,#0c1a2bee 0%,#13243be3 36%,#11273c75 72%,#0d1b3026 100%);
}
:root[dir="rtl"] .admin-workspace .sidebar .side-active,
:root[dir="rtl"] .admin-workspace .ticket-inbox-item.selected,
:root[dir="rtl"] .admin-workspace .delivery-pack-item.selected { box-shadow:inset -3px 0 var(--store-accent); }
:root[dir="rtl"] .market-store .pack-brand { letter-spacing:0; }
@media (min-width:1500px) {
  .market-store .nav .all-category { width:220px; }
  .market-store .header-main { gap:22px; }
}
@media (max-width:1180px) and (min-width:761px) {
  .market-store .header-main {
    display:grid;
    grid-template-columns:minmax(0,1fr) 36px auto;
    gap:16px 18px;
    padding-block:19px;
  }
  .market-store .header-main>.brand { grid-column:1;grid-row:1; }
  .market-store .header-main>.notice-trigger { grid-column:2;grid-row:1; }
  .market-store .header-main>.header-actions { grid-column:3;grid-row:1; }
  .market-store .header-main>.search-wrap { grid-column:1/-1;grid-row:2;min-width:0; }
  .market-store .hot-words { margin-top:7px; }
  .market-store .header-main .header-actions>button { padding:10px;font-size:12px; }
  .market-store .header-main .brand-cufe .brand-wordmark { font-size:27px; }
  .market-store .header-main .brand-cufe>img { width:48px;height:48px; }
}
@media (max-width:1100px) {
  .market-store .nav .all-category { width:180px; }
  .admin-workspace .workspace { padding:30px 24px 50px; }
  .admin-workspace .sidebar { padding-inline:13px; }
  .admin-workspace .sidebar .brand b { font-size:18px; }
  .admin-workspace .stats>div { padding:20px 18px; }
}
@media (max-width:760px) {
  html { scroll-padding-top:260px; }
  .market-store .wrap { width:calc(100% - 28px); }
  .market-store .topbar .wrap { min-height:40px;padding-block:5px; }
  .market-store .topbar .topbar-right { gap:8px; }
  .market-store .topbar .theme-picker select { max-width:125px; }
  .market-store .topbar .language-picker select { max-width:145px; }
  .market-store .header-main {
    display:grid;
    grid-template-columns:minmax(0,1fr) 36px;
    gap:12px 10px;
    min-height:0;
    padding-block:14px 12px;
  }
  .market-store .header-main>.brand { grid-column:1;grid-row:1;min-width:0; }
  .market-store .header-main>.notice-trigger { grid-column:2;grid-row:1;margin:0; }
  .market-store .header-main>.search-wrap { grid-column:1/-1;grid-row:3;min-width:0; }
  .market-store .header-main>.header-actions {
    grid-column:1/-1;
    grid-row:2;
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:7px;
    width:100%;
    min-width:0;
  }
  .market-store .header-main .header-actions>button {
    min-width:0;
    max-width:none;
    min-height:44px;
    padding:9px 6px;
    font-size:11px;
    gap:5px;
    border-radius:7px;
  }
  .market-store .header-main .header-actions>button>span { min-width:0;overflow-wrap:anywhere; }
  .market-store .header-main .header-actions>button>svg { width:15px;height:15px;flex-basis:15px; }
  .market-store .header-main .cart-trigger b { min-width:17px;font-size:9px;padding:1px 4px; }
  .market-store #search { min-height:43px;border-radius:7px;padding:3px; }
  .market-store #search input { font-size:13px;padding-inline:9px; }
  .market-store #search button { font-size:12px;padding-inline:21px; }
  .market-store .hot-words { margin-top:7px;font-size:10px;gap:12px;padding-bottom:2px; }
  .market-store .hot-words button { font-size:10px; }
  .market-store .nav { min-height:40px;gap:23px; }
  .market-store .nav>button,
  .market-store .category-nav>button { font-size:12px;padding-block:11px; }
  .market-store .showcase { margin-top:16px; }
  .market-store .campaign:not(.custom-hero) { min-height:315px; }
  .market-store .campaign-copy { padding:29px 22px 53px;max-width:91%; }
  .market-store .campaign h1 { font-size:26px;margin-top:16px; }
  .market-store .campaign .eyebrow { font-size:8px;letter-spacing:1.2px; }
  .market-store .campaign p { font-size:11px; }
  .market-store .campaign.custom-hero>.campaign-copy { padding:20px; }
  .market-store .campaign.custom-hero h1 { font-size:22px; }
  .market-store .service-strip { margin-block:17px 31px;padding:17px 8px;row-gap:19px; }
  .market-store .service-strip>div { justify-content:flex-start;gap:9px;padding-inline:8px; }
  .market-store .service-strip>div>span { font-size:19px; }
  .market-store .service-strip b { font-size:11px; }
  .market-store .service-strip small { font-size:9px; }
  .market-store .section-title { padding-inline-start:10px;margin-bottom:17px; }
  .market-store .section-title h2 { font-size:22px; }
  .market-store .section-title .eyebrow { font-size:8px; }
  .market-store .filter-bar { padding:8px 8px 4px;gap:8px; }
  .market-store .filter-tab { font-size:11px;padding:8px 13px; }
  .market-store .filter-bar label { gap:9px; }
  .market-store .filter-bar select { font-size:11px;padding-block:7px; }
  .market-store .currency-note { font-size:10px;margin-bottom:14px; }
  .market-store .product-grid { grid-template-columns:repeat(2,minmax(0,1fr));gap:11px; }
  .market-store .product-card { border-radius:9px; }
  .market-store .pack-brand { letter-spacing:0; }
  .market-store .pack-copy .product-name { letter-spacing:0; }
  .market-store .pack-actions>button { min-height:49px; }
  .market-store .announcement { margin-top:16px;padding:12px; }
  .market-store .endnote { margin-block:34px;font-size:10px; }
  .market-store .footer-inner { padding-block:23px;gap:13px; }
  .market-store .footer-inner .brand b { font-size:19px; }
  .market-store .footer-inner p { font-size:10px; }
  .market-store .footer-inner small { font-size:10px; }
  .market-store :is(.dialog-heading,.ticket-heading,.delivery-heading) { padding-bottom:15px; }
  .admin-workspace .sidebar { padding:15px 17px;gap:14px;min-height:76px; }
  .admin-workspace .sidebar .brand b { font-size:19px; }
  .admin-workspace .sidebar>a:not(.brand) { border:0;line-height:1.6; }
  .admin-workspace .workspace { padding:25px 15px 40px; }
  .admin-workspace .workspace>header { padding-bottom:21px;margin-bottom:20px; }
  .admin-workspace .workspace h1 { font-size:26px; }
  .admin-workspace .workspace-tabs { gap:4px;padding:5px;margin-bottom:22px; }
  .admin-workspace .workspace-tabs button { font-size:11px;padding:10px 12px; }
  .admin-workspace .workspace-actions { gap:9px; }
  .admin-workspace .workspace-actions .language-picker select { max-width:142px; }
  .admin-workspace .workspace-actions .theme-picker select { max-width:133px; }
  .admin-workspace .workspace-actions .primary { margin-top:3px; }
  .admin-workspace .stats { gap:10px;margin-bottom:20px; }
  .admin-workspace .stats>div { padding:19px 16px; }
  .admin-workspace .stats>div::before { inset-inline:16px; }
  .admin-workspace .stats strong { font-size:29px; }
  .admin-workspace .settings-card { padding:19px; }
  .admin-workspace .settings-card h2 { font-size:19px; }
  .admin-workspace .inventory-tools { padding:16px; }
  .admin-workspace .tabs button { font-size:11px;padding:9px 10px; }
  .admin-workspace .editor-header { padding:21px 20px; }
  .admin-workspace .editor-header h2 { font-size:21px; }
  .admin-workspace .notice-row { padding-block:19px; }
  .admin-login .login-card { padding:28px 24px; }
  .admin-login .login-brand b { font-size:28px; }
  .admin-login .login-brand p { font-size:8px; }
}
@media (max-width:360px) {
  .market-store .wrap { width:calc(100% - 22px); }
  .market-store .header-main .header-actions { gap:5px; }
  .market-store .header-main .header-actions>button { font-size:10px;padding-inline:4px;gap:4px; }
  .market-store .header-main .header-actions>button>svg { width:14px;height:14px;flex-basis:14px; }
  .market-store .topbar .theme-picker select { max-width:118px; }
  .market-store .topbar .language-picker select { max-width:137px; }
  .market-store .product-grid { gap:9px; }
  .market-store .service-strip>div { padding-inline:5px;gap:6px; }
  .market-store .service-strip small { font-size:8px; }
}
@media (hover:none) {
  .market-store .product-card:hover { transform:none;box-shadow:var(--store-shadow); }
}
@media (prefers-reduced-motion:reduce) {
  :root:not([data-motion="on"]) .market-store .product-card,
  :root:not([data-motion="on"]) .market-store #search,
  :root:not([data-motion="on"]) .market-store .header-main .header-actions>button { transition:none; }
}
@media (forced-colors:active) {
  .market-store .header-main .header-actions>button,
  .market-store #search button,
  .market-store .pack-actions>button,
  .admin-workspace .primary,
  .admin-login .primary { border:1px solid ButtonText; }
}


/* Finishing details shared with the membership and homepage-media components. */
.market-store .detail-price { background:var(--accent-soft);border:1px solid var(--line); }
.market-store .outline-button { border-color:var(--store-edge);color:var(--store-accent); }
.market-store .outline-button:hover { background:var(--accent-soft); }
.market-store .demo-note { background:var(--surface-soft);color:var(--muted); }
.market-store .footer-inner { flex-wrap:wrap; }
.market-store>footer { padding-block:0; }
.market-store .site-registration {
  margin:0 auto;
  padding:0 14px 24px;
  text-align:center;
  font-size:12px;
  line-height:1.8;
  color:var(--muted);
  overflow-wrap:anywhere;
}
.market-store .site-registration a { color:var(--muted);text-underline-offset:4px; }
.market-store .site-registration a:hover { color:var(--store-accent);text-decoration:underline; }
.market-store .footer-inner>.site-registration { flex:1 0 100%;padding:0;margin-top:0; }
.market-store :is(.members-dialog,.members-card) { --members-accent:var(--store-accent); }
.admin-workspace .hero-preview video { display:block;max-width:100%;aspect-ratio:16/9;object-fit:contain;background:#101d2e; }
@media (prefers-reduced-motion:reduce) {
  :root:not([data-motion="on"]) .market-store .product-card:hover { transform:none; }
}

.admin-workspace #hero-video-preview { display:block;width:100%;aspect-ratio:16/9;object-fit:contain;background:#101b2d;margin:12px 0;border-radius:8px; }
.admin-workspace #hero-video-preview[hidden] { display:none; }

/* v1.0.20: preserve the ringless glossy emblem on every surface. */
:is(.market-store,.admin-login,.admin-workspace) img.store-logo {
  object-fit:contain;
  object-position:center;
  flex-shrink:0;
  background:transparent;
  filter:drop-shadow(0 2px 4px rgb(15 60 120 / .16));
}
.market-store .header-main .brand-cufe>img.store-logo {
  background:transparent;
}
.market-store .welcome-card>img.store-logo { width:64px;height:64px; }
.market-store .footer-inner .brand>img.store-logo { width:42px;height:42px;flex:0 0 auto; }
.admin-workspace .sidebar .brand>img.store-logo { width:48px;height:48px;flex:0 0 auto; }
@media (max-width:1100px) {
  .admin-workspace .sidebar .brand>img.store-logo { width:40px;height:40px; }
}

/* B station homepage media: one native preview, ordered lightweight rows. */
.admin-workspace .hero-video-editor .hero-preview-meta{gap:12px;flex-wrap:wrap;margin-block:12px;color:var(--muted)}
.admin-workspace .hero-video-list{display:grid;gap:8px;margin-block:12px}
.admin-workspace .hero-video-row{display:flex;align-items:center;gap:8px;padding:7px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.admin-workspace .hero-video-row.selected{border-color:var(--accent-text);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--accent-text) 30%,transparent)}
.admin-workspace .hero-video-select{display:flex;align-items:center;gap:10px;flex:1;min-width:0;text-align:start;padding:7px;background:transparent;border:0;color:var(--ink);cursor:pointer}
.admin-workspace .hero-video-select>span:not(.hero-video-number){overflow-wrap:anywhere}
.admin-workspace .hero-video-number{display:grid;place-items:center;flex:0 0 30px;min-height:30px;border-radius:9px;background:var(--surface-soft);color:var(--accent-text);font-weight:700}
.admin-workspace .hero-video-select small{margin-inline-start:auto;color:var(--muted);font-size:11px}
.admin-workspace .hero-video-actions{display:flex;gap:4px;flex-shrink:0}
.admin-workspace .hero-video-actions button{min-width:36px;min-height:36px;padding:6px;border-radius:8px;border:1px solid var(--line);background:var(--surface-soft);color:var(--ink);cursor:pointer}
.admin-workspace .hero-video-actions button:disabled{opacity:.35;cursor:default}
.admin-workspace .hero-video-select:focus-visible,.admin-workspace .hero-video-actions button:focus-visible{outline:2px solid var(--accent-text);outline-offset:2px}
@media(max-width:420px){.admin-workspace .hero-video-select{gap:6px;padding:4px}.admin-workspace .hero-video-select small{display:none}.admin-workspace .hero-video-actions button{min-width:32px}.admin-workspace .hero-video-row{gap:4px;padding:5px}}
