/* Premium storefront refresh and desktop key-inventory layout. */
:root {
  --premium-ink: #eaf1f8;
  --premium-muted: #9aabbe;
  --premium-line: rgba(155, 177, 202, .17);
  --premium-panel: #111d2c;
  --premium-panel-soft: #172538;
  --premium-cyan: #63d5d0;
  --premium-mint: #9ce5d1;
  --premium-radius: 20px;
  --premium-shadow: 0 20px 55px rgba(0, 0, 0, .16);
}

body:not(.admin-view) {
  color: var(--premium-ink);
  background: #0a1321;
  font-size: 16px;
  line-height: 1.55;
}

body:not(.admin-view) button,
body:not(.admin-view) input,
body:not(.admin-view) select,
body:not(.admin-view) textarea { font: inherit; }

body:not(.admin-view) .flash-strip {
  min-height: 38px;
  padding: 6px 20px;
  background: linear-gradient(90deg, #10283c, #152840 48%, #18243b);
  color: #d9e9f4;
  font-size: 13px;
  letter-spacing: .01em;
}

body:not(.admin-view) .flash-count { color: #adc2d4; font-size: 12px; }
body:not(.admin-view) .promo-code { border-radius: 999px; padding: 5px 12px; font-size: 12px; }

body:not(.admin-view) .utility-bar {
  min-height: 44px;
  height: auto;
  padding: 7px clamp(18px, 5vw, 84px);
  background: #0d1827;
  border-color: var(--premium-line);
  color: #b2c0cf;
  font-size: 12px;
}

body:not(.admin-view) .utility-actions { gap: 14px; }
body:not(.admin-view) .support-link { color: #b6c7d8; font-size: 12px; }
body:not(.admin-view) .review-trigger { gap: 8px; }
body:not(.admin-view) .review-trigger b { font-size: 12px; }
body:not(.admin-view) .review-trigger small { font-size: 10px; }
body:not(.admin-view) .select-wrap select,
body:not(.admin-view) .lang-toggle,
body:not(.admin-view) .theme-toggle { min-height: 32px; font-size: 12px; }
body:not(.admin-view) .theme-toggle { border-radius: 999px; padding: 5px 10px; }

body:not(.admin-view) .main-header {
  min-height: 88px;
  height: auto;
  padding: 14px clamp(18px, 5vw, 84px);
  gap: 30px;
  background: rgba(14, 25, 40, .96);
  border-color: var(--premium-line);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .09);
}

body:not(.admin-view) .brand { gap: 12px; flex: 0 0 auto; }
body:not(.admin-view) .brand-icon { width: 49px; height: 49px; }
body:not(.admin-view) .brand-name { font-size: 16px; line-height: 1.05; letter-spacing: .055em; }
body:not(.admin-view) .brand-name em { font-size: 12px; }
body:not(.admin-view) .brand-name small { margin-top: 6px; font-size: 10px; letter-spacing: 0; }
body:not(.admin-view) .search-box {
  width: min(38vw, 520px);
  height: 46px;
  border-radius: 14px;
  background: #0a1524;
  border: 1px solid rgba(155, 177, 202, .19);
}
body:not(.admin-view) .search-box input { font-size: 14px; }
body:not(.admin-view) .search-box kbd { font-size: 11px; }
body:not(.admin-view) .header-actions { gap: 15px; }
body:not(.admin-view) .header-action { gap: 7px; padding: 8px 4px; font-size: 13px; }
body:not(.admin-view) .action-icon { font-size: 19px; }
body:not(.admin-view) .cart-button { min-height: 46px; gap: 10px; padding: 6px 14px; border-radius: 14px; }
body:not(.admin-view) .cart-copy b { font-size: 13px; }
body:not(.admin-view) .cart-copy small { font-size: 10px; }
body:not(.admin-view) .category-nav {
  height: 54px;
  padding: 0 clamp(18px, 5vw, 84px);
  gap: 30px;
  background: #0d1827;
  border-color: var(--premium-line);
}
body:not(.admin-view) .nav-cat,
body:not(.admin-view) .nav-special { font-size: 13px; }

body:not(.admin-view) #storePage { padding-bottom: 38px; }
body:not(.admin-view) .hero-wrap {
  width: min(1420px, calc(100% - 64px));
  min-height: 490px;
  margin: 34px auto 26px;
  padding: 66px clamp(34px, 6vw, 90px);
  border: 1px solid rgba(125, 193, 201, .18);
  border-radius: 30px;
  background:
    radial-gradient(ellipse at 76% 15%, rgba(63, 163, 177, .2), transparent 34%),
    radial-gradient(ellipse at 95% 92%, rgba(110, 94, 181, .2), transparent 37%),
    linear-gradient(112deg, #111e30 5%, #13283b 58%, #1a2740 100%);
  box-shadow: 0 28px 70px rgba(0, 0, 0, .19);
}
body:not(.admin-view) .hero-wrap:after {
  background: linear-gradient(90deg, rgba(13, 25, 41, .13), transparent 74%);
}
body:not(.admin-view) .hero-glow { opacity: .6; }
body:not(.admin-view) .hero-copy { width: min(50%, 620px); max-width: 620px; }
body:not(.admin-view) .eyebrow { gap: 10px; font-size: 13px; letter-spacing: .04em; }
body:not(.admin-view) .eyebrow-dot { width: 8px; height: 8px; }
body:not(.admin-view) .hero-copy h1 { margin: 20px 0 14px; font-size: clamp(42px, 4vw, 62px); line-height: 1.18; letter-spacing: -.035em; }
body:not(.admin-view) .hero-copy p { max-width: 540px; font-size: 17px; line-height: 1.8; color: #bccada; }
body:not(.admin-view) .hero-ctas { gap: 20px; margin-top: 26px; }
body:not(.admin-view) .button-primary { min-height: 48px; padding: 12px 20px; border-radius: 13px; font-size: 14px; font-weight: 700; }
body:not(.admin-view) .button-quiet { font-size: 13px; }
body:not(.admin-view) .hero-proof { gap: 12px; margin-top: 26px; font-size: 12px; color: #bdccda; }
body:not(.admin-view) .proof-avatars i { width: 31px; height: 31px; font-size: 8px; }
body:not(.admin-view) .hero-art { right: auto; left: auto; inset-inline-end: 4%; width: 42%; transform: scale(.96); transform-origin: center; }
body:not(.admin-view) .art-card { border-radius: 19px; box-shadow: 0 24px 58px rgba(0, 0, 0, .33); }
body:not(.admin-view) .art-front { border-color: rgba(158, 214, 221, .32); }
body:not(.admin-view) .floating-chip { padding: 11px 15px; border-radius: 12px; font-size: 12px; }
body:not(.admin-view) .hero-discount { padding: 14px 18px; border-radius: 15px; }
body:not(.admin-view) .hero-controls { bottom: 22px; inset-inline-end: 34px; gap: 10px; }
body:not(.admin-view) .hero-controls button { width: 33px; height: 33px; border-radius: 50%; }

body:not(.admin-view) .trust-strip {
  width: min(1420px, calc(100% - 64px));
  margin: 0 auto 24px;
  padding: 20px 26px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  border: 1px solid var(--premium-line);
  border-radius: 20px;
  background: var(--premium-panel);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .09);
}
body:not(.admin-view) .trust-strip article { gap: 12px; padding: 3px 14px; border-inline-end: 1px solid var(--premium-line); }
body:not(.admin-view) .trust-strip article:last-child { border: 0; }
body:not(.admin-view) .trust-icon { width: 42px; height: 42px; border-radius: 13px; font-size: 20px; }
body:not(.admin-view) .trust-strip b { font-size: 13px; }
body:not(.admin-view) .trust-strip small { margin-top: 3px; font-size: 11px; }

body:not(.admin-view) .program-strip {
  width: min(1420px, calc(100% - 64px));
  min-height: 96px;
  margin: 0 auto;
  padding: 19px 27px;
  border: 1px solid rgba(105, 189, 192, .2);
  border-radius: 18px;
  background: linear-gradient(110deg, rgba(25, 52, 66, .9), rgba(22, 35, 55, .96));
}
body:not(.admin-view) .program-copy { gap: 15px; }
body:not(.admin-view) .program-copy b { font-size: 15px; }
body:not(.admin-view) .program-copy small { margin-top: 4px; font-size: 11px; }
body:not(.admin-view) .program-link { font-size: 12px; }
body:not(.admin-view) .program-icon { width: 42px; height: 42px; border-radius: 13px; font-size: 21px; }
body:not(.admin-view) .live-tag { padding: 6px 10px; border-radius: 8px; font-size: 10px; }

body:not(.admin-view) .products-section {
  width: min(1420px, calc(100% - 64px));
  margin: 68px auto 0;
}
body:not(.admin-view) .section-heading { align-items: end; gap: 24px; margin-bottom: 24px; }
body:not(.admin-view) .section-kicker { font-size: 11px; letter-spacing: .14em; }
body:not(.admin-view) .section-heading h2 { margin: 7px 0 0; font-size: clamp(27px, 2.4vw, 35px); line-height: 1.3; }
body:not(.admin-view) .section-heading h2 span { font-size: .7em; }
body:not(.admin-view) .product-sort { gap: 12px; font-size: 12px; }
body:not(.admin-view) .product-sort select { min-height: 40px; padding: 0 12px; border-radius: 10px; font-size: 12px; }
body:not(.admin-view) .category-pills { gap: 10px; margin-bottom: 20px; }
body:not(.admin-view) .category-pill { min-height: 38px; padding: 8px 16px; border-radius: 999px; font-size: 12px; }
body:not(.admin-view) .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
body:not(.admin-view) .product-card {
  min-width: 0;
  border: 1px solid var(--premium-line);
  border-radius: 20px;
  background: var(--premium-panel);
  box-shadow: 0 14px 36px rgba(0, 0, 0, .11);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
body:not(.admin-view) .product-card:hover { transform: translateY(-5px); border-color: rgba(99, 213, 208, .42); box-shadow: 0 22px 45px rgba(0, 0, 0, .2); }
body:not(.admin-view) .product-media { height: 210px; border-radius: 19px 19px 0 0; }
body:not(.admin-view) .product-visual { width: 128px; height: 148px; border-radius: 18px; }
body:not(.admin-view) .product-visual .visual-icon { font-size: 56px; }
body:not(.admin-view) .product-visual>span { font-size: 11px; }
body:not(.admin-view) .product-info { padding: 19px; }
body:not(.admin-view) .product-info h3 { min-height: 48px; margin: 0 0 7px; font-size: 16px; line-height: 1.5; }
body:not(.admin-view) .product-meta { gap: 7px; font-size: 11px; }
body:not(.admin-view) .variant-label { margin: 10px 0 14px; font-size: 11px; }
body:not(.admin-view) .price-row { align-items: center; gap: 8px; }
body:not(.admin-view) .price-row strong { font-size: 20px; }
body:not(.admin-view) .price-row del { font-size: 11px; }
body:not(.admin-view) .add-button { width: 42px; height: 42px; border-radius: 13px; font-size: 20px; }
body:not(.admin-view) .type-badge { padding: 6px 9px; border-radius: 8px; font-size: 10px; }
body:not(.admin-view) .discount-badge { padding: 6px 9px; border-radius: 9px; font-size: 11px; }
body:not(.admin-view) .region-badge { bottom: 15px; font-size: 10px; }

body:not(.admin-view) .newsletter {
  width: min(1420px, calc(100% - 64px));
  margin: 70px auto 54px;
  padding: 36px 44px;
  border: 1px solid rgba(109, 190, 190, .24);
  border-radius: 22px;
  background: radial-gradient(ellipse at 10% 0, rgba(77, 178, 184, .15), transparent 42%), linear-gradient(115deg, #132b3d, #17253b);
}
body:not(.admin-view) .newsletter-icon { font-size: 26px; }
body:not(.admin-view) .newsletter h2 { margin: 4px 0; font-size: 25px; }
body:not(.admin-view) .newsletter p { font-size: 13px; }
body:not(.admin-view) .newsletter form { width: min(48%, 540px); height: 48px; border-radius: 12px; }
body:not(.admin-view) .newsletter input { padding: 0 14px; font-size: 13px; }
body:not(.admin-view) .newsletter form .button-primary { min-height: 40px; margin: 4px; padding: 8px 15px; font-size: 12px; }

body:not(.admin-view) .site-footer {
  padding: 50px clamp(18px, 5vw, 84px) 0;
  border-top: 1px solid var(--premium-line);
  background: #080f1b;
}
body:not(.admin-view) .footer-main { width: min(1420px, 100%); margin: auto; grid-template-columns: 1.35fr .8fr 1fr 1.2fr; gap: 48px; }
body:not(.admin-view) .footer-brand-block .brand { margin-bottom: 18px; }
body:not(.admin-view) .footer-brand-block p { max-width: 330px; font-size: 13px; line-height: 1.9; }
body:not(.admin-view) .footer-social { gap: 9px; margin-top: 17px; }
body:not(.admin-view) .footer-social a { width: 35px; height: 35px; border-radius: 11px; font-size: 14px; }
body:not(.admin-view) .footer-col { align-content: start; gap: 12px; }
body:not(.admin-view) .footer-col>b { margin-bottom: 5px; font-size: 14px; }
body:not(.admin-view) .footer-col>a { font-size: 12px; }
body:not(.admin-view) .payment-marks { gap: 7px; }
body:not(.admin-view) .pay-mark { min-height: 30px; padding: 5px 8px; border-radius: 7px; font-size: 10px; }
body:not(.admin-view) .secure-payment-note { margin-top: 12px; font-size: 11px; line-height: 1.7; }
body:not(.admin-view) .fx-note { margin-top: 10px; font-size: 10px; }
body:not(.admin-view) .footer-bottom { width: min(1420px, 100%); min-height: 60px; margin: 38px auto 0; padding: 15px 0; border-color: var(--premium-line); font-size: 11px; }
body:not(.admin-view) .whatsapp-float { bottom: 22px; border-radius: 999px; }

/* Customer workspace and invoice preview */
body:not(.admin-view) .account-dashboard { width: min(1320px, calc(100% - 48px)); margin: 44px auto 70px; }
body:not(.admin-view) .account-panel,
body:not(.admin-view) .login-form,
body:not(.admin-view) .login-visual { border-radius: 20px; }
body:not(.admin-view) .account-panel { padding: 27px; }
body:not(.admin-view) .panel-heading h2 { font-size: 22px; }
body:not(.admin-view) .orders-table { overflow-x: auto; }
body:not(.admin-view) .table-head,
body:not(.admin-view) .table-row { min-height: 62px; font-size: 13px; }
body:not(.admin-view) .invoice-link { min-height: 37px; padding: 7px 11px; border: 1px solid rgba(99, 213, 208, .3); border-radius: 10px; color: var(--premium-cyan); background: rgba(99, 213, 208, .08); font-size: 12px; font-weight: 700; cursor: pointer; }
body:not(.admin-view) .invoice-link:disabled { opacity: .52; cursor: not-allowed; }

.invoice-print {
  width: min(760px, calc(100vw - 36px));
  max-width: 760px;
  padding: 40px;
  overflow: auto;
  color: #172538;
  background: #fff;
  border: 1px solid #e2e8ef;
  border-radius: 18px;
  box-shadow: 0 22px 60px rgba(9, 20, 34, .16);
  font-family: "DM Sans", "Tajawal", sans-serif;
}
.invoice-print[dir="rtl"] { font-family: "Tajawal", "DM Sans", sans-serif; }
.invoice-print-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding-bottom: 26px; border-bottom: 1px solid #e6ebf1; }
.invoice-brand { display: flex; align-items: center; gap: 13px; }
.invoice-brand img { display: block; width: 54px; height: 54px; }
.invoice-brand span { display: grid; gap: 5px; }
.invoice-brand b { color: #172c45; font: 800 15px/1.2 "DM Sans", sans-serif; letter-spacing: .05em; }
.invoice-brand small { color: #718096; font-size: 11px; }
.invoice-title { display: grid; gap: 4px; text-align: end; }
.invoice-title>span { color: #55808d; font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.invoice-title h2 { margin: 0; color: #122840; font-size: 27px; line-height: 1.2; }
.invoice-title>b { color: #52657a; font: 700 12px "DM Sans", sans-serif; }
.invoice-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 21px 0; }
.invoice-meta>div { display: grid; gap: 5px; min-width: 0; }
.invoice-meta small,.invoice-billto>div>span { color: #8b99aa; font: 800 9px "DM Sans", sans-serif; letter-spacing: .09em; }
.invoice-meta b { color: #263b52; font-size: 12px; overflow-wrap: anywhere; }
.invoice-status-mark { color: #14866f!important; }
.invoice-billto { display: flex; justify-content: space-between; gap: 24px; padding: 19px 20px; border: 1px solid #e8edf2; border-radius: 12px; background: #f8fafc; }
.invoice-billto>div { display: grid; gap: 5px; min-width: 0; }
.invoice-billto>div:last-child { text-align: end; }
.invoice-billto b { color: #26394f; font-size: 13px; }
.invoice-billto small { color: #738297; font-size: 11px; overflow-wrap: anywhere; }
.invoice-items-wrap { margin-top: 24px; overflow-x: auto; }
.invoice-items { width: 100%; border-collapse: collapse; color: #31445b; }
.invoice-items th { padding: 11px 9px; color: #8694a5; border-bottom: 1px solid #e5eaf0; font: 800 9px "DM Sans", sans-serif; letter-spacing: .06em; text-align: start; }
.invoice-items td { padding: 14px 9px; border-bottom: 1px solid #edf0f4; font-size: 11px; white-space: nowrap; }
.invoice-items td:first-child { white-space: normal; }
.invoice-items td:first-child b,.invoice-items td:first-child small { display: block; }
.invoice-items td:first-child b { color: #243a52; font-size: 12px; }
.invoice-items td:first-child small { margin-top: 3px; color: #8996a5; font-size: 9px; }
.invoice-total-area { display: flex; justify-content: flex-end; padding: 17px 0 22px; }
.invoice-total-lines { width: min(300px, 100%); }
.invoice-total-lines p { display: flex; justify-content: space-between; gap: 20px; margin: 0; padding: 7px 0; color: #738197; font-size: 11px; }
.invoice-total-lines p b { color: #32475d; white-space: nowrap; }
.invoice-total-lines .invoice-grand-total { margin-top: 7px; padding-top: 13px; border-top: 1px solid #dfe6ed; color: #24394e; font-size: 12px; font-weight: 800; }
.invoice-total-lines .invoice-grand-total b { color: #0a8a7c; font-size: 18px; }
.invoice-void-note { display: grid; gap: 3px; margin-bottom: 17px; padding: 11px 13px; border: 1px solid #f1cdd1; border-radius: 10px; color: #aa3f4a; background: #fff7f7; font-size: 11px; }
.invoice-footer { display: flex; align-items: end; justify-content: space-between; gap: 18px; padding-top: 18px; border-top: 1px solid #e7ecf1; }
.invoice-footer>div { display: grid; gap: 5px; }
.invoice-footer b { color: #334b60; font-size: 11px; }
.invoice-footer small,.invoice-footer>span { color: #8996a6; font-size: 9px; }
.invoice-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 25px; padding-top: 19px; border-top: 1px solid #e7ecf1; }
.invoice-download-button,.invoice-close-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 43px; padding: 10px 16px; border-radius: 10px; font-size: 12px; font-weight: 700; cursor: pointer; }
.invoice-download-button { border: 0; color: #fff; background: #117d7c; box-shadow: 0 7px 16px rgba(17, 125, 124, .18); }
.invoice-download-button:hover { background: #0e6e70; }
.invoice-download-button>span { font-size: 18px; }
.invoice-close-button { border: 1px solid #dfe6ed; color: #53677c; background: #fff; }
.invoice-actions>small { flex: 1 1 100%; color: #8391a1; font-size: 10px; }

/* Key inventory: balanced desktop card, full width paste area, clear upload action. */
body.admin-view .inventory-panel { display: grid; gap: 24px; }
body.admin-view .inventory-stats { gap: 13px; }
body.admin-view .inventory-stats>article { min-height: 94px; padding: 18px 20px; border-radius: 15px; }
body.admin-view .inventory-stats>article small { font-size: 12px; }
body.admin-view .inventory-stats>article b { margin-top: 8px; font-size: 23px; }
body.admin-view .inventory-entry-card {
  width: min(1120px, 100%);
  margin-inline: auto;
  padding: 28px 32px 30px;
  border: 1px solid rgba(145, 173, 203, .2);
  border-radius: 21px;
  background:
    radial-gradient(ellipse at 92% 0, rgba(39, 127, 136, .13), transparent 42%),
    linear-gradient(145deg, #142335, #101c2a 70%);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .14);
}
body.admin-view .inventory-entry-intro { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 25px; }
body.admin-view .inventory-entry-icon { display: grid; place-items: center; flex: 0 0 46px; width: 46px; height: 46px; border: 1px solid rgba(99, 213, 208, .24); border-radius: 14px; color: #77dfd4; background: rgba(69, 174, 171, .12); font-size: 22px; }
body.admin-view .inventory-entry-intro .section-kicker { color: #8aafbd; font-size: 10px; letter-spacing: .13em; }
body.admin-view .inventory-entry-intro h3 { margin: 4px 0 5px; color: #f1f6fa; font-size: 22px; line-height: 1.35; }
body.admin-view .inventory-entry-intro p { max-width: 670px; margin: 0; color: #a9b8c8; font-size: 13px; line-height: 1.7; }
body.admin-view #liveInventoryForm.serial-drop {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 20px 24px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
body.admin-view #liveInventoryForm.serial-drop>label { display: flex; flex-direction: column; align-items: stretch; gap: 9px; min-width: 0; margin: 0; color: #e0e9f1; text-align: start; font-size: 13px; font-weight: 700; }
body.admin-view #liveInventoryForm .inventory-product-field { grid-column: 1; }
body.admin-view #liveInventoryForm .inventory-file-field { grid-column: 2; }
body.admin-view #liveInventoryForm .inventory-keys-field { grid-column: 1 / -1; }
body.admin-view #liveInventoryForm.serial-drop select,
body.admin-view #liveInventoryForm.serial-drop textarea {
  display: block;
  width: 100%;
  max-width: none;
  min-height: 48px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #33465c;
  border-radius: 11px;
  color: #edf4fa;
  background: #0d1928;
  outline: 0;
  font-size: 13px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .13);
  transition: border-color .2s ease, box-shadow .2s ease;
}
body.admin-view #liveInventoryForm.serial-drop select:focus,
body.admin-view #liveInventoryForm.serial-drop textarea:focus { border-color: #59c7c4; box-shadow: 0 0 0 3px rgba(89, 199, 196, .13); }
body.admin-view #liveInventoryForm.serial-drop textarea { min-height: 190px; resize: vertical; line-height: 1.8; font: 13px/1.8 ui-monospace, SFMono-Regular, Menlo, monospace; }
body.admin-view #liveInventoryForm.serial-drop textarea::placeholder { color: #718298; }
body.admin-view #liveInventoryForm.serial-drop label>small { color: #90a2b5; font-size: 11px; font-weight: 400; }
body.admin-view #liveInventoryForm .inventory-field-label { display: flex; align-items: center; gap: 8px; }
body.admin-view #liveInventoryForm .inventory-field-label em { padding: 3px 7px; border: 1px solid rgba(134, 163, 191, .2); border-radius: 999px; color: #9fb0c2; font-size: 9px; font-style: normal; letter-spacing: .06em; }
body.admin-view #liveInventoryForm .inventory-file-drop { display: flex; align-items: center; gap: 13px; min-height: 74px; padding: 12px 14px; border: 1px dashed #476177; border-radius: 12px; background: rgba(7, 19, 32, .52); transition: border-color .2s ease, background .2s ease; }
body.admin-view #liveInventoryForm .inventory-file-drop:hover { border-color: #68d4ce; background: rgba(31, 93, 99, .14); }
body.admin-view #liveInventoryForm .inventory-upload-icon { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 11px; color: #76d8d0; background: rgba(79, 188, 185, .13); font-size: 23px; }
body.admin-view #liveInventoryForm .inventory-file-drop>span:nth-child(2) { display: grid; gap: 4px; min-width: 0; }
body.admin-view #liveInventoryForm .inventory-file-drop b { color: #e5eef5; font-size: 12px; }
body.admin-view #liveInventoryForm .inventory-file-drop small { color: #91a2b4; font-size: 10px; }
body.admin-view #liveInventoryForm .inventory-file-drop input[type="file"] { width: min(250px, 42%); max-width: 100%; margin-inline-start: auto; color: #adbccd; font-size: 10px; }
body.admin-view #liveInventoryForm .inventory-file-drop input[type="file"]::file-selector-button { min-height: 33px; margin-inline-end: 8px; padding: 6px 10px; border: 1px solid #3e5a6c; border-radius: 8px; color: #d7e5ed; background: #1b3041; font-size: 10px; cursor: pointer; }
body.admin-view #liveInventoryForm .inventory-form-footer { display: flex; grid-column: 1 / -1; align-items: center; justify-content: space-between; gap: 18px; padding-top: 18px; border-top: 1px solid rgba(147, 173, 198, .15); }
body.admin-view #liveInventoryForm .inventory-form-footer .auth-status { margin: 0; color: #9fb1c2; font-size: 11px; line-height: 1.7; }
body.admin-view #liveInventoryForm .inventory-form-footer .admin-primary { display: inline-flex; align-items: center; justify-content: center; gap: 10px; flex: 0 0 auto; min-height: 46px; margin: 0; padding: 11px 19px; border: 0; border-radius: 11px; color: #fff; background: linear-gradient(135deg, #158d8b, #267d91); box-shadow: 0 8px 20px rgba(14, 127, 133, .18); font-size: 13px; font-weight: 700; }
body.admin-view #liveInventoryForm .inventory-form-footer .admin-primary:hover { filter: brightness(1.1); transform: translateY(-1px); }
body.admin-view .admin-live-grid { gap: 12px; }
body.admin-view .admin-live-grid>.admin-panel { min-height: 80px; gap: 7px; padding: 16px 18px; border: 1px solid #e0e7ee; border-radius: 14px; background: #fff; }
body.admin-view .admin-live-grid>.admin-panel b { color: #34475c; font-size: 13px; }
body.admin-view .admin-live-grid>.admin-panel small { color: #74859a; font-size: 11px; line-height: 1.65; }
body.admin-view .preview-inventory-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 20px 24px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
body.admin-view .preview-inventory-form>label { display: flex; flex-direction: column; align-items: stretch; gap: 9px; min-width: 0; margin: 0; color: #e0e9f1; text-align: start; font-size: 13px; font-weight: 700; }
body.admin-view .preview-inventory-form .inventory-product-field { grid-column: 1; }
body.admin-view .preview-inventory-form .inventory-file-field { grid-column: 2; }
body.admin-view .preview-inventory-form .inventory-keys-field { grid-column: 1 / -1; }
body.admin-view .preview-inventory-form select,
body.admin-view .preview-inventory-form textarea { display: block; width: 100%; max-width: none; min-height: 48px; margin: 0; padding: 12px 14px; border: 1px solid #33465c; border-radius: 11px; color: #edf4fa; background: #0d1928; outline: 0; font-size: 13px; }
body.admin-view .preview-inventory-form textarea { min-height: 190px; resize: vertical; line-height: 1.8; font: 13px/1.8 ui-monospace, SFMono-Regular, Menlo, monospace; }
body.admin-view .preview-inventory-form label>small { color: #90a2b5; font-size: 11px; font-weight: 400; }
body.admin-view .preview-inventory-form .inventory-field-label { display: flex; align-items: center; gap: 8px; }
body.admin-view .preview-inventory-form .inventory-field-label em { padding: 3px 7px; border: 1px solid rgba(134, 163, 191, .2); border-radius: 999px; color: #9fb0c2; font-size: 9px; font-style: normal; }
body.admin-view .preview-inventory-form .inventory-file-drop { display: flex; align-items: center; gap: 13px; min-height: 74px; padding: 12px 14px; border: 1px dashed #476177; border-radius: 12px; background: rgba(7, 19, 32, .52); }
body.admin-view .preview-inventory-form .inventory-upload-icon { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 11px; color: #76d8d0; background: rgba(79, 188, 185, .13); font-size: 23px; }
body.admin-view .preview-inventory-form .inventory-file-drop>span:nth-child(2) { display: grid; gap: 4px; min-width: 0; }
body.admin-view .preview-inventory-form .inventory-file-drop b { color: #e5eef5; font-size: 12px; }
body.admin-view .preview-inventory-form .inventory-file-drop small { color: #91a2b4; font-size: 10px; }
body.admin-view .preview-inventory-form .inventory-file-drop input[type="file"] { width: min(250px, 42%); max-width: 100%; margin-inline-start: auto; color: #adbccd; font-size: 10px; }
body.admin-view .preview-inventory-form .inventory-file-drop input[type="file"]::file-selector-button { min-height: 33px; margin-inline-end: 8px; padding: 6px 10px; border: 1px solid #3e5a6c; border-radius: 8px; color: #d7e5ed; background: #1b3041; font-size: 10px; cursor: pointer; }
body.admin-view .preview-inventory-form .inventory-form-footer { display: flex; grid-column: 1 / -1; align-items: center; justify-content: space-between; gap: 18px; padding-top: 18px; border-top: 1px solid rgba(147, 173, 198, .15); }
body.admin-view .preview-inventory-form .inventory-form-footer .auth-status { margin: 0; color: #9fb1c2; font-size: 11px; line-height: 1.7; }
body.admin-view .preview-inventory-form .inventory-form-footer .admin-primary { display: inline-flex; align-items: center; justify-content: center; gap: 10px; flex: 0 0 auto; min-height: 46px; margin: 0; padding: 11px 19px; border: 0; border-radius: 11px; color: #fff; background: linear-gradient(135deg, #158d8b, #267d91); box-shadow: 0 8px 20px rgba(14, 127, 133, .18); font-size: 13px; font-weight: 700; }

body[data-theme="light"]:not(.admin-view) { color: #25384e; background: #f3f6fa; }
body[data-theme="light"]:not(.admin-view) .flash-strip { color: #29475c; background: linear-gradient(90deg, #e4f1f3, #eef1f9 54%, #edf2fa); }
body[data-theme="light"]:not(.admin-view) .flash-count,
body[data-theme="light"]:not(.admin-view) .support-link { color: #617489; }
body[data-theme="light"]:not(.admin-view) .utility-bar,
body[data-theme="light"]:not(.admin-view) .category-nav { color: #617489; background: #fff; border-color: #e2e8ef; }
body[data-theme="light"]:not(.admin-view) .main-header { background: rgba(255, 255, 255, .96); border-color: #e2e8ef; }
body[data-theme="light"]:not(.admin-view) .brand-name { color: #1d3045; }
body[data-theme="light"]:not(.admin-view) .brand-name small { color: #6a7a8c; }
body[data-theme="light"]:not(.admin-view) .search-box { border-color: #dce4ec; background: #f7f9fb; }
body[data-theme="light"]:not(.admin-view) .search-box input { color: #26394e; }
body[data-theme="light"]:not(.admin-view) .header-action { color: #43586e; }
body[data-theme="light"]:not(.admin-view) .category-nav .nav-cat { color: #53697e; }
body[data-theme="light"]:not(.admin-view) .hero-wrap { background: radial-gradient(ellipse at 80% 10%, rgba(98, 207, 203, .18), transparent 36%), linear-gradient(112deg, #f9fcff, #eaf4f5 60%, #edf0fa); border-color: #d6e5e9; box-shadow: 0 25px 65px rgba(31, 56, 77, .12); }
body[data-theme="light"]:not(.admin-view) .hero-wrap:after { background: linear-gradient(90deg, rgba(247, 251, 253, .08), transparent 74%); }
body[data-theme="light"]:not(.admin-view) .hero-copy h1 { color: #18334b; }
body[data-theme="light"]:not(.admin-view) .hero-copy p { color: #5e7387; }
body[data-theme="light"]:not(.admin-view) .eyebrow,
body[data-theme="light"]:not(.admin-view) .hero-proof { color: #587387; }
body[data-theme="light"]:not(.admin-view) .button-quiet { color: #3a6376; }
body[data-theme="light"]:not(.admin-view) .trust-strip,
body[data-theme="light"]:not(.admin-view) .product-card { color: #293c52; background: #fff; border-color: #e2e8ee; box-shadow: 0 14px 36px rgba(30, 52, 75, .07); }
body[data-theme="light"]:not(.admin-view) .trust-strip b,
body[data-theme="light"]:not(.admin-view) .section-heading h2,
body[data-theme="light"]:not(.admin-view) .product-info h3 { color: #22374e; }
body[data-theme="light"]:not(.admin-view) .trust-strip small,
body[data-theme="light"]:not(.admin-view) .product-meta,
body[data-theme="light"]:not(.admin-view) .variant-label { color: #748498; }
body[data-theme="light"]:not(.admin-view) .program-strip { color: #294156; border-color: #d8e7e9; background: linear-gradient(110deg, #ebf7f6, #edf1f8); }
body[data-theme="light"]:not(.admin-view) .program-copy b { color: #26465a; }
body[data-theme="light"]:not(.admin-view) .program-copy small { color: #6c8291; }
body[data-theme="light"]:not(.admin-view) .product-sort,
body[data-theme="light"]:not(.admin-view) .product-sort select,
body[data-theme="light"]:not(.admin-view) .category-pill { color: #5b7085; }
body[data-theme="light"]:not(.admin-view) .product-sort select,
body[data-theme="light"]:not(.admin-view) .category-pill { border-color: #dfe6ed; background: #fff; }
body[data-theme="light"]:not(.admin-view) .newsletter { color: #294258; border-color: #d6e6e9; background: radial-gradient(ellipse at 10% 0, rgba(77, 178, 184, .13), transparent 42%), linear-gradient(115deg, #eaf5f5, #edf1f8); }
body[data-theme="light"]:not(.admin-view) .newsletter h2 { color: #223c52; }
body[data-theme="light"]:not(.admin-view) .newsletter p { color: #62778a; }
body[data-theme="light"]:not(.admin-view) .site-footer { color: #dce7ef; background: #101c2b; }
body[data-theme="light"]:not(.admin-view) .footer-col>a,
body[data-theme="light"]:not(.admin-view) .footer-brand-block p { color: #a8b8c7; }

@media (max-width: 1100px) {
  body:not(.admin-view) .main-header { gap: 18px; }
  body:not(.admin-view) .header-actions { gap: 9px; }
  body:not(.admin-view) .hero-wrap { min-height: 455px; padding-inline: 48px; }
  body:not(.admin-view) .hero-art { width: 41%; transform: scale(.88); }
  body:not(.admin-view) .trust-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body:not(.admin-view) .trust-strip article:nth-child(2) { border: 0; }
  body:not(.admin-view) .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body:not(.admin-view) .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
}

@media (max-width: 900px) and (min-width: 721px) {
  body:not(.admin-view) .main-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 18px; padding-block: 12px; }
  body:not(.admin-view) .search-box { grid-column: 1 / -1; grid-row: 2; width: 100%; max-width: none; }
  body:not(.admin-view) .header-actions { grid-column: 2; grid-row: 1; }
  body:not(.admin-view) .hero-wrap { min-height: 430px; padding-inline: 34px; }
  body:not(.admin-view) .hero-copy h1 { font-size: 40px; }
  body:not(.admin-view) .hero-copy p { font-size: 14px; }
}

@media (max-width: 720px) {
  body:not(.admin-view) .flash-strip { min-height: 36px; padding-inline: 8px; font-size: 10px; }
  body:not(.admin-view) .flash-count { font-size: 9px; }
  body:not(.admin-view) .promo-code { font-size: 9px; }
  body:not(.admin-view) .utility-bar { min-height: 38px; padding: 6px 12px; }
  body:not(.admin-view) .main-header { min-height: 70px; padding: 10px 14px; gap: 8px; }
  body:not(.admin-view) .brand { gap: 8px; }
  body:not(.admin-view) .brand-icon { width: 37px; height: 37px; }
  body:not(.admin-view) .brand-name { font-size: 11px; }
  body:not(.admin-view) .brand-name small { font-size: 8px; }
  body:not(.admin-view) .header-actions { gap: 6px; }
  body:not(.admin-view) .header-action { padding: 4px 2px; }
  body:not(.admin-view) .cart-button { min-height: 35px; padding: 5px 8px; }
  body:not(.admin-view) .category-nav { height: 45px; padding: 0 13px; gap: 17px; }
  body:not(.admin-view) .nav-cat,
  body:not(.admin-view) .nav-special { font-size: 10px; }
  body:not(.admin-view) .hero-wrap { width: calc(100% - 24px); min-height: 545px; margin: 14px auto 13px; padding: 28px 22px; border-radius: 22px; align-items: flex-start; }
  body:not(.admin-view) .hero-wrap:after { background: linear-gradient(180deg, rgba(10, 19, 33, .98), rgba(10, 19, 33, .78) 48%, transparent 100%); }
  body[data-theme="light"]:not(.admin-view) .hero-wrap:after { background: linear-gradient(180deg, rgba(248, 252, 253, .98), rgba(248, 252, 253, .8) 48%, transparent 100%); }
  body:not(.admin-view) .hero-copy { width: 100%; max-width: none; }
  body:not(.admin-view) .hero-copy h1 { margin-top: 13px; font-size: clamp(32px, 9vw, 42px); }
  body:not(.admin-view) .hero-copy p { max-width: 100%; font-size: 13px; line-height: 1.7; }
  body:not(.admin-view) .hero-ctas { gap: 13px; margin-top: 16px; }
  body:not(.admin-view) .button-primary { min-height: 43px; padding: 10px 14px; font-size: 12px; }
  body:not(.admin-view) .hero-proof { flex-wrap: wrap; gap: 8px; margin-top: 15px; font-size: 9px; }
  body:not(.admin-view) .proof-avatars i { width: 26px; height: 26px; font-size: 7px; }
  body:not(.admin-view) .hero-art { top: auto; bottom: -35px; left: 0!important; right: 0!important; inset-inline-end: 0!important; width: 100%; height: 260px; transform: scale(.78); transform-origin: top center; }
  body:not(.admin-view) .hero-controls { bottom: 10px; inset-inline-end: 13px; }
  body:not(.admin-view) .trust-strip { width: calc(100% - 24px); margin: 0 auto 13px; grid-template-columns: 1fr 1fr; gap: 6px; padding: 11px; border-radius: 15px; }
  body:not(.admin-view) .trust-strip article { gap: 7px; padding: 5px; border: 0; }
  body:not(.admin-view) .trust-icon { width: 31px; height: 31px; border-radius: 10px; font-size: 15px; }
  body:not(.admin-view) .trust-strip b { font-size: 9px; }
  body:not(.admin-view) .trust-strip small { font-size: 8px; }
  body:not(.admin-view) .program-strip { width: calc(100% - 24px); min-height: 0; margin: 0 auto; padding: 12px; border-radius: 14px; }
  body:not(.admin-view) .program-copy { gap: 9px; }
  body:not(.admin-view) .program-copy b { font-size: 11px; }
  body:not(.admin-view) .program-copy small { font-size: 8px; }
  body:not(.admin-view) .program-link { font-size: 8px; }
  body:not(.admin-view) .program-icon { width: 32px; height: 32px; font-size: 16px; }
  body:not(.admin-view) .products-section { width: calc(100% - 26px); margin: 42px auto 0; }
  body:not(.admin-view) .section-heading { align-items: start; gap: 8px; margin-bottom: 17px; }
  body:not(.admin-view) .section-heading h2 { font-size: 22px; }
  body:not(.admin-view) .section-heading h2 span { display: block; margin-top: 2px; font-size: 14px; }
  body:not(.admin-view) .product-sort { align-items: flex-end; gap: 5px; font-size: 9px; }
  body:not(.admin-view) .product-sort select { min-height: 34px; max-width: 133px; padding-inline: 7px; font-size: 9px; }
  body:not(.admin-view) .category-pills { gap: 7px; margin-bottom: 12px; }
  body:not(.admin-view) .category-pill { min-height: 32px; padding: 6px 11px; font-size: 9px; }
  body:not(.admin-view) .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  body:not(.admin-view) .product-media { height: 148px; }
  body:not(.admin-view) .product-visual { width: 84px; height: 104px; border-radius: 13px; }
  body:not(.admin-view) .product-visual .visual-icon { font-size: 39px; }
  body:not(.admin-view) .product-info { padding: 10px; }
  body:not(.admin-view) .product-info h3 { min-height: 38px; font-size: 12px; }
  body:not(.admin-view) .product-meta,
  body:not(.admin-view) .variant-label { font-size: 9px; }
  body:not(.admin-view) .price-row strong { font-size: 15px; }
  body:not(.admin-view) .price-row del { font-size: 8px; }
  body:not(.admin-view) .add-button { width: 30px; height: 30px; border-radius: 9px; font-size: 16px; }
  body:not(.admin-view) .type-badge { padding: 5px 7px; font-size: 7px; }
  body:not(.admin-view) .discount-badge { padding: 4px 6px; font-size: 8px; }
  body:not(.admin-view) .newsletter { width: calc(100% - 26px); margin: 42px auto 34px; padding: 21px; border-radius: 17px; }
  body:not(.admin-view) .newsletter h2 { font-size: 17px; }
  body:not(.admin-view) .newsletter p { font-size: 10px; }
  body:not(.admin-view) .newsletter form { width: 100%; height: 40px; margin-top: 14px; }
  body:not(.admin-view) .newsletter form .button-primary { min-height: 32px; font-size: 9px; }
  body:not(.admin-view) .newsletter input { font-size: 10px; }
  body:not(.admin-view) .site-footer { padding: 28px 15px 0; }
  body:not(.admin-view) .footer-main { grid-template-columns: 1fr 1fr; gap: 23px 14px; }
  body:not(.admin-view) .footer-main>div:first-child,
  body:not(.admin-view) .footer-payments { grid-column: 1 / -1; }
  body:not(.admin-view) .footer-brand-block p { font-size: 10px; }
  body:not(.admin-view) .footer-col { gap: 8px; }
  body:not(.admin-view) .footer-col>b { font-size: 11px; }
  body:not(.admin-view) .footer-col>a { font-size: 9px; }
  body:not(.admin-view) .payment-marks { gap: 6px; }
  body:not(.admin-view) .pay-mark { font-size: 9px; }
  body:not(.admin-view) .secure-payment-note { font-size: 9px; }
  body:not(.admin-view) .footer-bottom { min-height: 52px; margin-top: 25px; font-size: 8px; }
  body:not(.admin-view) .account-dashboard { width: calc(100% - 24px); margin: 25px auto 45px; }
  body:not(.admin-view) .account-content { min-width: 0; grid-template-columns: minmax(0, 1fr); }
  body:not(.admin-view) .account-content > .account-panel { min-width: 0; max-width: 100%; }
  body:not(.admin-view) .orders-table { width: 100%; max-width: 100%; }
  body.admin-view .admin-two-col { grid-template-columns: minmax(0, 1fr); min-width: 0; }
  body.admin-view .admin-two-col > .admin-panel { min-width: 0; max-width: 100%; }
  body:not(.admin-view) .account-panel { padding: 13px; }
  body:not(.admin-view) .panel-heading h2 { font-size: 17px; }
  body:not(.admin-view) .invoice-link { min-height: 34px; padding: 6px 8px; font-size: 10px; }
  .invoice-print { width: calc(100vw - 24px); max-height: calc(100vh - 38px); padding: 23px 17px; border-radius: 14px; }
  .invoice-print-head { gap: 12px; padding-bottom: 19px; }
  .invoice-brand { gap: 8px; }
  .invoice-brand img { width: 40px; height: 40px; }
  .invoice-brand b { font-size: 10px; }
  .invoice-brand small { font-size: 9px; }
  .invoice-title h2 { font-size: 20px; }
  .invoice-title>span { font-size: 7px; }
  .invoice-title>b { font-size: 9px; }
  .invoice-meta { gap: 7px; padding: 15px 0; }
  .invoice-meta small,.invoice-billto>div>span { font-size: 7px; }
  .invoice-meta b,.invoice-billto b { font-size: 9px; }
  .invoice-billto { gap: 10px; padding: 12px; }
  .invoice-billto small { font-size: 8px; }
  .invoice-items th { padding: 8px 5px; font-size: 7px; }
  .invoice-items td { padding: 10px 5px; font-size: 8px; }
  .invoice-items td:first-child b { font-size: 9px; }
  .invoice-items td:first-child small { font-size: 7px; }
  .invoice-total-lines p { font-size: 9px; }
  .invoice-total-lines .invoice-grand-total b { font-size: 15px; }
  .invoice-footer { align-items: flex-start; flex-direction: column; gap: 8px; }
  .invoice-actions { gap: 7px; margin-top: 17px; padding-top: 13px; }
  .invoice-download-button,.invoice-close-button { min-height: 39px; padding: 8px 10px; font-size: 10px; }
  .invoice-actions>small { font-size: 8px; }

  body.admin-view .inventory-panel { gap: 16px; }
  body.admin-view .inventory-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  body.admin-view .inventory-stats>article { min-height: 70px; padding: 11px 12px; }
  body.admin-view .inventory-stats>article small { font-size: 9px; }
  body.admin-view .inventory-stats>article b { margin-top: 3px; font-size: 17px; }
  body.admin-view .inventory-entry-card { padding: 18px 15px; border-radius: 16px; }
  body.admin-view .inventory-entry-intro { gap: 10px; margin-bottom: 17px; }
  body.admin-view .inventory-entry-icon { flex-basis: 38px; width: 38px; height: 38px; border-radius: 11px; font-size: 18px; }
  body.admin-view .inventory-entry-intro h3 { font-size: 17px; }
  body.admin-view .inventory-entry-intro p { font-size: 10px; }
  body.admin-view #liveInventoryForm.serial-drop { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  body.admin-view #liveInventoryForm .inventory-product-field,
  body.admin-view #liveInventoryForm .inventory-file-field,
  body.admin-view #liveInventoryForm .inventory-keys-field,
  body.admin-view #liveInventoryForm .inventory-form-footer { grid-column: 1; }
  body.admin-view #liveInventoryForm.serial-drop>label { gap: 7px; font-size: 11px; }
  body.admin-view #liveInventoryForm.serial-drop select { min-height: 43px; padding: 10px; font-size: 11px; }
  body.admin-view #liveInventoryForm.serial-drop textarea { min-height: 155px; padding: 10px; font-size: 11px; }
  body.admin-view #liveInventoryForm .inventory-file-drop { flex-wrap: wrap; min-height: 68px; padding: 10px; }
  body.admin-view #liveInventoryForm .inventory-file-drop input[type="file"] { width: auto; max-width: 100%; flex: 1 1 170px; font-size: 9px; }
  body.admin-view #liveInventoryForm .inventory-form-footer { align-items: stretch; flex-direction: column; gap: 12px; padding-top: 14px; }
  body.admin-view #liveInventoryForm .inventory-form-footer .auth-status { font-size: 9px; }
  body.admin-view #liveInventoryForm .inventory-form-footer .admin-primary { width: 100%; min-height: 43px; font-size: 11px; }
  body.admin-view .preview-inventory-form { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  body.admin-view .preview-inventory-form .inventory-product-field,
  body.admin-view .preview-inventory-form .inventory-file-field,
  body.admin-view .preview-inventory-form .inventory-keys-field,
  body.admin-view .preview-inventory-form .inventory-form-footer { grid-column: 1; }
  body.admin-view .preview-inventory-form>label { gap: 7px; font-size: 11px; }
  body.admin-view .preview-inventory-form select { min-height: 43px; padding: 10px; font-size: 11px; }
  body.admin-view .preview-inventory-form textarea { min-height: 155px; padding: 10px; font-size: 11px; }
  body.admin-view .preview-inventory-form .inventory-file-drop { flex-wrap: wrap; min-height: 68px; padding: 10px; }
  body.admin-view .preview-inventory-form .inventory-file-drop input[type="file"] { width: auto; max-width: 100%; flex: 1 1 170px; font-size: 9px; }
  body.admin-view .preview-inventory-form .inventory-form-footer { align-items: stretch; flex-direction: column; gap: 12px; padding-top: 14px; }
  body.admin-view .preview-inventory-form .inventory-form-footer .auth-status { font-size: 9px; }
  body.admin-view .preview-inventory-form .inventory-form-footer .admin-primary { width: 100%; min-height: 43px; font-size: 11px; }
  body.admin-view .admin-live-grid>.admin-panel { min-height: 68px; padding: 12px; }
  body.admin-view .admin-live-grid>.admin-panel b { font-size: 11px; }
  body.admin-view .admin-live-grid>.admin-panel small { font-size: 9px; }
}

@media print {
  body * { visibility: hidden !important; }
  .invoice-print,.invoice-print * { visibility: visible !important; }
  #modalBackdrop { position: static !important; display: block !important; inset: auto !important; padding: 0 !important; background: #fff !important; }
  #modalCard { position: static !important; width: 100% !important; max-width: none !important; max-height: none !important; margin: 0 !important; padding: 0 !important; overflow: visible !important; border: 0 !important; border-radius: 0 !important; background: #fff !important; box-shadow: none !important; transform: none !important; }
  #modalCard .modal-close,.invoice-actions,.no-print { display: none !important; }
  .invoice-print { position: relative !important; inset: auto !important; width: 100% !important; max-width: none !important; margin: 0 auto !important; padding: 12mm !important; overflow: visible !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; color: #172538 !important; background: #fff !important; }
  .invoice-print * { color-adjust: exact; print-color-adjust: exact; }
  .invoice-items tr,.invoice-meta,.invoice-billto,.invoice-total-area,.invoice-footer { break-inside: avoid; }
  @page { size: A4; margin: 8mm; }
}

/* Keep the storefront header in normal document flow on laptop and tablet widths.
   The search row expands the header, so it can never sit on top of categories. */
@media (max-width: 1320px) and (min-width: 721px) {
  body:not(.admin-view) .main-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    height: auto;
    min-height: 0;
    padding-block: 12px;
    gap: 10px clamp(12px, 2vw, 24px);
  }

  body:not(.admin-view) .brand {
    order: 1;
    min-width: 0;
    flex: 0 1 auto;
  }

  body:not(.admin-view) .header-actions {
    order: 2;
    min-width: 0;
    flex: 0 1 auto;
    margin-inline-start: auto;
  }

  body:not(.admin-view) .search-box {
    order: 3;
    flex: 1 0 100%;
    width: 100%;
    max-width: none;
    margin: 0;
  }
}

body.admin-view .store-analytics-panel {
  margin: 18px 0 22px;
  padding: clamp(16px, 2vw, 25px);
  border: 1px solid rgba(100, 197, 204, .19);
  border-radius: 19px;
  color: #e8f1fb;
  background: radial-gradient(ellipse at 95% 0, rgba(24, 177, 183, .12), transparent 36%), linear-gradient(145deg, #101e2c, #0b1420 68%);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .13);
}
body.admin-view .traffic-heading,
body.admin-view .traffic-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
body.admin-view .traffic-heading h3 { margin: 5px 0 4px; color: #f2f7fd; font-size: clamp(18px, 2vw, 24px); }
body.admin-view .traffic-heading p { margin: 0; color: #92a5b9; font-size: 12px; }
body.admin-view .traffic-heading .section-kicker { color: #55d8d2; font-size: 9px; letter-spacing: .12em; }
body.admin-view .traffic-window { flex: 0 0 auto; padding: 7px 11px; border: 1px solid rgba(117, 158, 184, .19); border-radius: 999px; color: #b4c8d9; background: rgba(255,255,255,.035); font-size: 10px; }
body.admin-view .traffic-metrics { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; margin-top: 19px; }
body.admin-view .traffic-metrics article { min-width: 0; padding: 14px; border: 1px solid rgba(126, 160, 183, .14); border-radius: 13px; background: rgba(255,255,255,.035); }
body.admin-view .traffic-metrics small,
body.admin-view .traffic-metrics span { display: block; color: #94a8bb; font-size: 10px; }
body.admin-view .traffic-metrics article>b { display: block; margin: 7px 0 3px; color: #f3f8ff; font: 700 25px/1.1 var(--latin); direction: ltr; text-align: start; }
body.admin-view .traffic-metrics article:nth-child(3)>b { color: #63dfd6; }
body.admin-view .traffic-detail-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 11px; margin-top: 11px; }
body.admin-view .traffic-detail-card,
body.admin-view .traffic-journey-card { min-width: 0; padding: 16px; border: 1px solid rgba(126, 160, 183, .14); border-radius: 14px; background: rgba(255,255,255,.027); }
body.admin-view .traffic-card-heading { align-items: center; margin-bottom: 13px; }
body.admin-view .traffic-card-heading h4 { margin: 0; color: #eaf2fb; font-size: 13px; }
body.admin-view .traffic-card-heading small { display: block; margin-top: 4px; color: #8094a9; font-size: 10px; }
body.admin-view .traffic-card-heading>span { color: #62d4d2; font-size: 14px; }
body.admin-view .traffic-bars { display: grid; gap: 13px; }
body.admin-view .traffic-bar-row { display: grid; grid-template-columns: minmax(82px, .72fr) minmax(60px, 1.5fr) auto auto; align-items: center; gap: 10px; color: #c7d5e1; font-size: 10px; }
body.admin-view .traffic-bar-row>i,
body.admin-view .traffic-country-row>i { display: block; height: 7px; overflow: hidden; border-radius: 10px; background: rgba(145, 166, 185, .13); }
body.admin-view .traffic-bar-row>i>b,
body.admin-view .traffic-country-row>i>b { display: block; height: 100%; min-width: 3px; border-radius: inherit; background: linear-gradient(90deg, #28c7cb, #7a86ff); }
body.admin-view .traffic-bar-row strong { color: #edf4fb; font: 600 10px var(--latin); direction: ltr; white-space: nowrap; }
body.admin-view .traffic-bar-row strong small { color: #8297aa; font: 9px var(--font); }
body.admin-view .traffic-bar-row em { color: #69dab1; font-size: 9px; font-style: normal; white-space: nowrap; }
body.admin-view .traffic-country-row { display: grid; grid-template-columns: 18px minmax(75px, .8fr) minmax(55px, 1fr) 24px; align-items: center; gap: 9px; padding: 8px 0; border-bottom: 1px solid rgba(126,160,183,.1); color: #d9e5ef; font-size: 10px; }
body.admin-view .traffic-country-row:last-child { border-bottom: 0; }
body.admin-view .traffic-country-row strong { color: #eaf2fb; font: 600 10px var(--latin); }
body.admin-view .country-bullet { color: #4ed6d0; }
body.admin-view .traffic-privacy-note { display: block; margin-top: 12px; color: #8197a9; font-size: 9px; line-height: 1.6; }
body.admin-view .traffic-empty { margin: 10px 0; color: #8ea1b3; font-size: 11px; line-height: 1.7; }
body.admin-view .traffic-journey-card { margin-top: 11px; padding-bottom: 7px; }
body.admin-view .traffic-table-wrap { overflow-x: auto; }
body.admin-view .traffic-journey-card table { width: 100%; min-width: 610px; border-collapse: collapse; }
body.admin-view .traffic-journey-card th { padding: 9px 8px; border-bottom: 1px solid rgba(126,160,183,.16); color: #8297aa; font-size: 9px; font-weight: 500; text-align: start; white-space: nowrap; }
body.admin-view .traffic-journey-card td { padding: 10px 8px; border-bottom: 1px solid rgba(126,160,183,.09); color: #c6d5e1; font-size: 10px; white-space: nowrap; }
body.admin-view .traffic-journey-card td>b { color: #67ddd5; font: 700 11px var(--latin); }
body.admin-view .traffic-journey-card .source-chip { color: #b9d2e1; background: rgba(122,153,179,.12); }
body.admin-view[data-theme="light"] .store-analytics-panel { color: #293e51; border-color: #dce8eb; background: radial-gradient(ellipse at 95% 0, rgba(24, 177, 183, .09), transparent 36%), linear-gradient(145deg, #f7fbfb, #f2f6fa 68%); }
body.admin-view[data-theme="light"] .traffic-heading h3,
body.admin-view[data-theme="light"] .traffic-card-heading h4,
body.admin-view[data-theme="light"] .traffic-metrics article>b,
body.admin-view[data-theme="light"] .traffic-country-row strong,
body.admin-view[data-theme="light"] .traffic-bar-row strong { color: #243a4d; }
body.admin-view[data-theme="light"] .traffic-heading p,
body.admin-view[data-theme="light"] .traffic-metrics small,
body.admin-view[data-theme="light"] .traffic-metrics span,
body.admin-view[data-theme="light"] .traffic-card-heading small,
body.admin-view[data-theme="light"] .traffic-empty { color: #6b7f91; }
body.admin-view[data-theme="light"] .traffic-metrics article,
body.admin-view[data-theme="light"] .traffic-detail-card,
body.admin-view[data-theme="light"] .traffic-journey-card { border-color: #e0e8ed; background: rgba(255,255,255,.76); }
body.admin-view[data-theme="light"] .traffic-journey-card td { color: #51677b; border-color: #e7edf1; }
body.admin-view[data-theme="light"] .traffic-journey-card th { color: #778a9a; border-color: #e2eaf0; }
@media (max-width: 900px) {
  body.admin-view .traffic-metrics { grid-template-columns: repeat(2, minmax(0,1fr)); }
  body.admin-view .traffic-detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body.admin-view .store-analytics-panel { padding: 14px; border-radius: 15px; }
  body.admin-view .traffic-heading { display: block; }
  body.admin-view .traffic-window { display: inline-flex; margin-top: 10px; }
  body.admin-view .traffic-metrics { gap: 7px; }
  body.admin-view .traffic-metrics article { padding: 10px; }
  body.admin-view .traffic-metrics article>b { font-size: 20px; }
  body.admin-view .traffic-metrics small,
  body.admin-view .traffic-metrics span { font-size: 9px; }
  body.admin-view .traffic-detail-card,
  body.admin-view .traffic-journey-card { padding: 12px; }
  body.admin-view .traffic-bar-row { grid-template-columns: minmax(65px,.8fr) minmax(45px,1fr) auto; gap: 7px; }
  body.admin-view .traffic-bar-row em { display: none; }
}
.invoice-brand img{width:120px;height:auto;max-height:60px;object-fit:contain;object-position:center}

/* Additional analytics panel and accessible cart icon */
body.admin-view .traffic-detail-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body.admin-view .device-bar-row { grid-template-columns: minmax(66px,.7fr) minmax(45px,1fr) auto auto; gap: 7px; }
body.admin-view .device-bar-row em { color: #8dc7ff; font: 600 9px var(--latin); }
body.admin-view .admin-table-panel table { min-width: 850px; }
body:not(.admin-view) .cart-glyph { display: grid; place-items: center; width: 24px; height: 24px; flex: 0 0 24px; color: #1684ff; transform: none; }
body:not(.admin-view) .cart-glyph svg { display:block; width:22px; height:22px; overflow:visible; }
body:not(.admin-view) .cart-button:hover .cart-glyph svg { transform: translateY(-1px); }
body[data-theme="dark"]:not(.admin-view) .cart-glyph { color: #70d8f4; }
@media (max-width: 1100px) { body.admin-view .traffic-detail-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } body.admin-view .traffic-detail-card:last-child { grid-column: 1 / -1; } }
@media (max-width: 900px) { body.admin-view .traffic-detail-grid { grid-template-columns: 1fr; } body.admin-view .traffic-detail-card:last-child { grid-column:auto; } }
