/* SYNDICATE — unified storefront design */
.product-variant-stock-summary{display:block;flex-basis:100%;color:#b7b9aa;font-size:12px;line-height:1.45}
*{box-sizing:border-box}
:root{color-scheme:dark;--accent:#c6ff00;--bg:#090a08;--panel:#131510;--line:#292d23;--text:#f5f6ef;--muted:#a0a497}
html{scroll-behavior:smooth;scroll-padding-top:16px}
body{margin:0;background:var(--bg);color:var(--text);font:14px/1.5 Arial,Helvetica,sans-serif}
header{position:relative;padding:25px 18px 20px;background:radial-gradient(ellipse at 85% 10%,#303b1b 0,transparent 48%),linear-gradient(135deg,#181a14,#090a08 72%);border-bottom:2px solid var(--accent);overflow:hidden}
h1{margin:0;color:var(--accent);font-size:clamp(42px,11vw,76px);font-weight:1000;font-style:italic;letter-spacing:-3px;line-height:.95}
header p{margin:10px 0 0;color:#d7dacd;font-size:9px;font-weight:800;letter-spacing:3px}
nav,.cats{display:flex;flex-wrap:wrap;gap:7px;margin-top:17px}
button{cursor:pointer;background:#1b1d17;color:var(--text);border:1px solid #383c30;border-radius:5px;padding:10px 12px;font:700 11px Arial,sans-serif;transition:background .15s,border-color .15s}
button:hover{border-color:var(--accent)}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
main{width:100%;max-width:1120px;margin:0 auto;padding:18px 12px 30px}
.hero{position:relative;min-height:300px;margin:0 0 28px;padding:24px 18px;background:radial-gradient(ellipse at 85% 70%,#35451b 0,transparent 43%),linear-gradient(145deg,#20221b,#0b0c09 70%);border:1px solid #34392a;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;overflow:hidden}
.hero:after{content:"S";position:absolute;right:-8px;top:18px;font-size:clamp(150px,42vw,250px);font-weight:1000;font-style:italic;line-height:1;color:#ffffff08;pointer-events:none}
.hero-tag{position:relative;z-index:1;color:var(--accent);font-size:9px;font-weight:900;letter-spacing:2px}
.hero-title{position:relative;z-index:1;font-size:clamp(54px,14vw,90px);font-weight:1000;letter-spacing:-4px;line-height:.82;margin:22px 0;text-transform:uppercase}
.hero-title i{color:var(--accent);font-style:normal}
.hero p{position:relative;z-index:1;color:#b8bbad;font-size:9px;letter-spacing:2px}
.hero-cta{position:relative;z-index:1;display:inline-block;margin-top:12px;padding:13px 15px;background:var(--accent);color:#090a08;text-decoration:none;font-size:10px;font-weight:1000;letter-spacing:.6px;border-radius:4px}
h2{color:var(--text);font-size:clamp(22px,6vw,32px);font-weight:1000;letter-spacing:-1px;text-transform:uppercase;margin:8px 0 15px}
#heading:before{content:"01 / ";color:var(--accent);font-size:.55em;letter-spacing:1px}
.cats{margin-top:0;margin-bottom:18px;gap:7px}
.cats button{padding:9px 10px;font-size:10px;letter-spacing:.2px}
.cats button.active{background:var(--accent);color:#090a08;border-color:var(--accent)}
.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:16px;align-items:stretch}
.card{position:relative;display:flex;flex-direction:column;min-width:0;padding:6px;background:linear-gradient(145deg,#171912,#10110e);border:1px solid #292d23;border-radius:7px;overflow:hidden;transition:border-color .18s,transform .18s}
.card:hover{border-color:#748e28}
.pic{position:relative;width:100%;height:clamp(145px,49vw,230px);flex-shrink:0;background:#1b1d17;display:flex;align-items:center;justify-content:center;overflow:hidden;border-radius:4px;color:var(--accent);font-size:0}
.pic img{position:relative;z-index:1;display:block;width:100%;height:100%;object-fit:contain;background:#141510}
.pic.syndicate-placeholder:not(:has(img)){background:radial-gradient(ellipse at center,#29351a,#10110e 72%)}
.pic.syndicate-placeholder:not(:has(img)) .placeholder-mark,.pic.syndicate-placeholder:not(:has(img)) .placeholder-brand{display:none}
.pic.syndicate-placeholder:not(:has(img)):before{content:"S";position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:var(--accent);font-size:clamp(56px,17vw,88px);font-weight:1000;font-style:italic;text-shadow:3px 3px 0 #ffffff12}
.pic.syndicate-placeholder:not(:has(img)):after{content:"SYNDICATE";position:absolute;bottom:12px;left:0;right:0;text-align:center;color:var(--accent);font-size:8px;font-weight:900;letter-spacing:3px}
.card h3{font-size:11px;line-height:1.4;min-height:32px;margin:11px 3px 5px;text-transform:uppercase;font-weight:900;letter-spacing:.2px;overflow-wrap:anywhere}
.price{color:var(--accent);font-weight:1000;font-size:clamp(18px,5vw,23px);letter-spacing:-.5px;margin:7px 3px}
.small{color:var(--muted);font-size:10px;margin:5px 3px}
.add{width:100%;margin-top:auto;padding:12px 4px;background:var(--accent);color:#090a08;border:1px solid var(--accent);border-radius:4px;font-weight:1000;font-size:10px;letter-spacing:.3px;text-transform:uppercase}
.add:hover{background:#dcff6b;color:#090a08}
input,select,textarea{max-width:100%;background:#10120f!important;color:var(--text)!important;border:1px solid #42473c!important;border-radius:4px!important;padding:10px!important}
#status{text-align:center;color:var(--muted);padding:16px 8px;font-size:12px}
footer{text-align:center;color:#858b7d;padding:25px 12px;border-top:1px solid var(--line);font-size:9px;letter-spacing:3px}
section[id^=admin]{border-radius:7px!important;overflow-wrap:anywhere}
#adminOrdersPanel,#adminProductsPanel{color:var(--text);line-height:1.6}
#adminProductsPanel input,#adminProductsPanel select{width:100%;margin:4px 0}
#adminProductsPanel>div{padding:12px 0;border-bottom:1px solid var(--line)}
@media(min-width:650px){
  header{padding:30px 28px 24px}
  main{padding:26px 22px 40px}
  .hero{min-height:380px;padding:35px}
  .hero-title{font-size:clamp(90px,12vw,120px)}
  .grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
  .pic{height:260px}
  .card{padding:8px}
  .card h3{font-size:12px}
}
@media(min-width:950px){
  .grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
  .pic{height:270px}
  .hero{min-height:430px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}


/* Separate admin screen */
#adminToolbar{display:none}
body.admin-mode{background:var(--bg);min-height:100vh}
body.admin-mode #adminToolbar{display:flex;position:sticky;top:0;z-index:1000;flex-direction:column;gap:14px;padding:16px;background:#11130e;border-bottom:2px solid var(--accent)}
body.admin-mode #adminToolbar strong{color:var(--accent);font-size:20px;letter-spacing:1px}
body.admin-mode .admin-tabs{display:flex;gap:10px}
body.admin-mode .admin-tabs button{flex:1}
body.admin-mode>header,body.admin-mode>footer{display:none!important}
body.admin-mode main{padding:12px;max-width:900px}
body.admin-mode #adminOrdersPanel,body.admin-mode #adminProductsPanel{display:block!important;margin:0;padding:16px;background:var(--panel);border:1px solid var(--line);border-top:2px solid var(--accent);border-radius:8px;overflow-wrap:anywhere}
body.admin-mode #adminOrdersPanel button,body.admin-mode #adminProductsPanel button{margin:4px 4px 4px 0}
body.admin-mode #adminOrdersPanel select,body.admin-mode #adminProductsPanel input,body.admin-mode #adminProductsPanel select{width:100%;box-sizing:border-box;margin:5px 0}

/* SYNDICATE — compact storefront */
header {
  padding: 15px 14px 13px;
}

h1 {
  font-size: clamp(34px, 9vw, 48px);
  letter-spacing: -2px;
}

header p {
  margin-top: 5px;
  font-size: 8px;
  letter-spacing: 2px;
}

nav {
  margin-top: 10px;
  gap: 6px;
}

nav button {
  padding: 8px 10px;
}

main {
  padding: 12px 10px 24px;
}

.hero {
  min-height: 0;
  margin-bottom: 20px;
  padding: 17px 15px;
  border-radius: 8px;
}

.hero:after {
  top: 4px;
  font-size: clamp(110px, 30vw, 170px);
}

.hero-title {
  font-size: clamp(38px, 10vw, 56px);
  line-height: .9;
  letter-spacing: -2px;
  margin: 12px 0;
}

.hero p {
  margin: 5px 0;
}

.hero-cta {
  margin-top: 8px;
  padding: 10px 12px;
}

h2 {
  font-size: 22px;
  margin-bottom: 10px;
}

.cats {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}

.cats::-webkit-scrollbar {
  display: none;
}

.cats button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.pic {
  height: clamp(130px, 43vw, 190px);
}

.card {
  padding: 5px;
  border-radius: 7px;
}

.card h3 {
  font-size: 11px;
  min-height: 30px;
  margin: 8px 3px 4px;
}

.price {
  font-size: 19px;
  margin: 5px 3px;
}

.small {
  font-size: 10px;
}

.add {
  padding: 11px 3px;
  font-size: 10px;
}

@media (min-width: 650px) {
  .hero {
    padding: 24px;
  }

  .hero-title {
    font-size: 70px;
  }

  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 950px) {
  .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}


/* SYNDICATE — Moncler-inspired full-screen navigation */
.menu-open {
  position:absolute;
  right:14px;
  top:14px;
  z-index:2;
  width:42px;
  height:42px;
  padding:0;
  border:1px solid #42483a;
  border-radius:50%;
  background:#11130e;
  color:var(--accent);
  font-size:22px;
}
#storeMenu {
  display:none;
  position:fixed;
  inset:0;
  z-index:5000;
  overflow-y:auto;
  padding:24px 22px 30px;
  background:#090a08;
  color:var(--text);
}
#storeMenu.is-open {display:flex;flex-direction:column}
body.menu-open {overflow:hidden}
.menu-top {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:8px 0 40px;
}
.menu-logo {font-size:27px;font-weight:1000;letter-spacing:-1.5px;font-style:italic}
.menu-logo span {color:var(--accent)}
.menu-close {
  width:44px;height:44px;padding:0;
  border-radius:50%;font-size:32px;font-weight:400;
  background:#1b1d17;color:var(--text);
}
.menu-links {display:flex;flex-direction:column;flex:1}
.menu-link {
  display:flex;align-items:center;justify-content:space-between;
  width:100%;min-height:67px;padding:15px 2px;
  border:0;border-bottom:1px solid #292d23;border-radius:0;
  background:transparent;text-align:left;
  font-size:clamp(20px,6vw,27px);font-weight:400;letter-spacing:-.4px;
}
.menu-link.selected {color:var(--accent)}
.menu-arrow {font-size:32px;font-weight:300;color:var(--accent);line-height:1}
.menu-bottom {
  display:flex;flex-wrap:wrap;gap:8px;
  padding-top:30px;
}
.menu-bottom button {flex:1 1 40%;min-height:44px}
.menu-foot {
  margin-top:28px;padding-top:17px;
  border-top:1px solid #292d23;
  color:#85897c;font-size:9px;letter-spacing:2px;
}
@media(min-width:650px) {
  #storeMenu {padding:32px 8vw}
  .menu-link {min-height:74px;font-size:28px}
}


/* Clean shop home: products first */
.visually-hidden {
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  padding:0!important;
  margin:-1px!important;
  overflow:hidden!important;
  clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;
  border:0!important;
}
.hero { display:none!important; }
#cats { margin-top:4px!important; }
#products { margin-top:14px!important; }

/* Categories are available through the full-screen menu */
#cats {
  display: none !important;
}

/* Calvin Klein-inspired Syndicate header */
.store-header {
  min-height:104px;
  padding:16px 18px;
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:8px;
  background:#090a08;
  border-bottom:1px solid #292d23;
  overflow:visible;
}
.store-header-side {display:flex;align-items:center;gap:8px}
.store-header-right {justify-content:flex-end}
.store-header .header-icon {
  width:42px;height:44px;padding:8px 4px;
  display:flex;align-items:center;justify-content:center;
  background:transparent;border:0;border-radius:4px;
  color:var(--text);font-size:26px;font-weight:400;
}
.store-header .header-icon svg {
  width:29px;height:29px;fill:none;stroke:currentColor;
  stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;
}
.store-header .store-logo {
  margin:0;color:var(--text);
  font-size:clamp(20px,5.5vw,29px);
  font-weight:800;font-style:normal;letter-spacing:-1.5px;
  line-height:1;white-space:nowrap;
}
.store-header .store-logo span {color:var(--accent)}
#storeSearchWrap {display:none;padding:12px 16px;background:#090a08}
#storeSearchWrap.search-open {display:block}
#storeSearch {width:100%;font-size:16px}
.store-header nav {display:none}
@media(max-width:370px) {
  .store-header {padding:12px 8px;gap:2px}
  .store-header-side {gap:0}
  .store-header .header-icon {width:36px}
  .store-header .store-logo {font-size:19px;letter-spacing:-1px}
}

/* Syndicate home showcase */
#homeIntro {padding:12px 0 4px}
.home-kicker {
  color:var(--accent);font-size:9px;font-weight:900;
  letter-spacing:2px;margin:5px 0 8px
}
#homeHeadline {
  font-size:clamp(26px,7vw,34px);letter-spacing:-1px;
  margin:0 0 7px;text-transform:uppercase
}
#homeSub {color:var(--muted);font-size:13px;margin:0 0 20px}
#homeCategoryTiles {
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  gap:9px;margin:16px 0 25px
}
.home-tile {
  min-width:0;min-height:91px;padding:12px;
  display:grid;grid-template-columns:1fr auto;
  grid-template-rows:1fr auto;gap:8px;
  align-items:center;text-align:left;
  background:linear-gradient(145deg,#171912,#10110e);
  border:1px solid #292d23;border-radius:7px;
  color:var(--text);font-size:14px;font-weight:800
}
.home-tile .tile-icon {
  grid-column:1 / -1;color:var(--accent);font-size:25px;
  line-height:1
}
.home-tile b {color:var(--accent);font-size:18px}
.home-section-heading {
  display:flex;align-items:flex-end;justify-content:space-between;
  gap:10px;margin:5px 0 8px
}
.home-section-heading h2 {
  font-size:25px;margin:3px 0 0;letter-spacing:-.7px
}
.home-count {color:var(--muted);font-size:10px;letter-spacing:1px;padding-bottom:5px}
#products {margin-top:10px}
#status:empty {display:none}
@media(min-width:650px) {
  #homeCategoryTiles {grid-template-columns:repeat(4,minmax(0,1fr))}
  .home-tile {min-height:115px}
}

/* SYNDICATE polish pass — spacing, icons, product cards */
.store-header {
  min-height: 96px;
  padding-top: max(18px, env(safe-area-inset-top));
  padding-bottom: 14px;
  background: #090a08;
}

.store-header .store-logo {
  font-size: clamp(19px, 5vw, 27px);
  letter-spacing: -1.2px;
}

.store-header .header-icon {
  width: 38px;
  height: 42px;
}

main {
  padding-top: 14px;
}

#homeIntro {
  padding-top: 8px;
}

#homeHeadline {
  max-width: 100%;
  font-size: clamp(25px, 6.5vw, 32px);
  line-height: 1.08;
  letter-spacing: -1.1px;
}

#homeSub {
  max-width: 320px;
  line-height: 1.45;
  margin-bottom: 16px;
}

#homeCategoryTiles {
  gap: 8px;
  margin: 0;
}

.home-tile {
  min-height: 82px;
  padding: 11px;
  grid-template-columns: 1fr auto;
  gap: 6px;
  font-size: 13px;
}

.home-tile .tile-icon {
  font-size: 22px;
}

.home-tile b {
  font-size: 17px;
}

.home-section-heading {
  margin-top: 0;
  margin-bottom: 8px;
}

.home-section-heading h2 {
  font-size: 23px;
}

.grid {
  gap: 9px;
}

.card {
  padding: 5px;
  border-radius: 7px;
}

.pic {
  height: clamp(125px, 40vw, 180px);
}

.pic img {
  object-fit: contain;
  background: #141510;
}

.card h3 {
  font-size: 11px;
  line-height: 1.35;
  min-height: 30px;
  margin: 8px 3px 4px;
}

.price {
  font-size: 18px;
  margin: 5px 3px;
}

.add {
  min-height: 42px;
  padding: 10px 3px;
  font-size: 10px;
}

@media (max-width: 380px) {
  .store-header {
    padding-left: 8px;
    padding-right: 8px;
  }

  .store-header .header-icon {
    width: 34px;
  }

  #homeCategoryTiles {
    gap: 7px;
  }

  .home-tile {
    min-height: 76px;
    padding: 9px;
  }
}

/* Syndicate category icons */
.home-tile .tile-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  font-size: 0;
  color: var(--accent);
  position: relative;
}

.home-tile .tile-icon::before {
  content: "";
  display: block;
  width: 23px;
  height: 23px;
  background: var(--accent);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.home-tile .tile-icon:has(svg) {
  font-size: 25px;
}


/* Fix category icon placeholders */
.home-tile .tile-icon::before {
  content: none !important;
}

.home-tile .tile-icon {
  font-size: 0 !important;
  width: 30px;
  height: 30px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 25px 25px;
}

.home-tile:nth-child(1) .tile-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b7ff00' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
}
.home-tile:nth-child(2) .tile-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b7ff00' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 5l4-2 4 2 5 4-3 4-3-2v10H9V11l-3 2-3-4 5-4z'/%3E%3C/svg%3E");
}
.home-tile:nth-child(3) .tile-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b7ff00' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='7' y='2' width='10' height='20' rx='2'/%3E%3Cpath d='M10 5h4M11 18.5h2'/%3E%3C/svg%3E");
}
.home-tile:nth-child(4) .tile-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b7ff00' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8h16l-1.5 12h-13L4 8z'/%3E%3Cpath d='M9 8V6a3 3 0 0 1 6 0v2'/%3E%3C/svg%3E");
}

/* SYNDICATE ADMIN REDESIGN */
body.admin-mode {
  --admin-bg: #090a08;
  --admin-panel: #12140f;
  --admin-border: #292d24;
  --admin-green: #b7ff32;
  background: var(--admin-bg) !important;
  color: #f4f5ef;
  font-family: Inter, system-ui, sans-serif;
}

body.admin-mode #adminToolbar {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap;
  gap: 18px !important;
  padding: 20px max(20px, calc((100% - 1160px) / 2)) !important;
  background: rgba(12, 14, 10, .97) !important;
  border-bottom: 1px solid var(--admin-border) !important;
  box-shadow: 0 8px 30px #0005;
}

body.admin-mode #adminToolbar strong {
  color: var(--admin-green) !important;
  font-size: 17px !important;
  font-weight: 850;
  letter-spacing: 2px !important;
}

body.admin-mode #adminToolbar button,
body.admin-mode #adminOrdersPanel button,
body.admin-mode #adminProductsPanel button {
  min-height: 40px;
  padding: 10px 15px;
  border: 1px solid var(--admin-border);
  border-radius: 9px;
  background: #1a1d16;
  color: #f4f5ef;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  transition: background .18s, border-color .18s, transform .18s;
}

body.admin-mode #adminToolbar button:hover,
body.admin-mode #adminOrdersPanel button:hover,
body.admin-mode #adminProductsPanel button:hover {
  border-color: var(--admin-green);
  background: #22291a;
}

body.admin-mode #adminToolbar button:first-child {
  border-color: #414638;
}

body.admin-mode .admin-tabs {
  display: flex !important;
  gap: 8px !important;
}

body.admin-mode .admin-tabs button {
  flex: initial !important;
  min-width: 105px;
}

body.admin-mode .admin-tabs button:focus,
body.admin-mode #adminToolbar button:focus {
  outline: 2px solid var(--admin-green);
  outline-offset: 2px;
}

body.admin-mode main {
  width: min(1160px, calc(100% - 36px));
  max-width: 1160px !important;
  margin: 28px auto !important;
  padding: 0 !important;
}

body.admin-mode #adminOrdersPanel,
body.admin-mode #adminProductsPanel {
  box-sizing: border-box;
  padding: 26px !important;
  margin: 0 !important;
  background: var(--admin-panel) !important;
  border: 1px solid var(--admin-border) !important;
  border-top: 1px solid var(--admin-border) !important;
  border-radius: 16px !important;
  box-shadow: 0 18px 50px #0003;
  color: #f4f5ef !important;
}

body.admin-mode #adminOrdersPanel h2,
body.admin-mode #adminProductsPanel h2 {
  margin: 0 0 24px;
  color: #f4f5ef;
  font-size: clamp(23px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: -.8px;
}

body.admin-mode #adminOrdersPanel > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 155px auto;
  align-items: center;
  gap: 12px;
  margin: 10px 0;
  padding: 18px !important;
  border: 1px solid var(--admin-border) !important;
  border-radius: 12px;
  background: #0d0f0b;
  line-height: 1.7 !important;
}

body.admin-mode #adminOrdersPanel select,
body.admin-mode #adminProductsPanel input,
body.admin-mode #adminProductsPanel select {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 42px;
  margin: 4px 0 !important;
  padding: 10px 12px;
  border: 1px solid #34392d;
  border-radius: 8px;
  background: #0b0d09;
  color: #f4f5ef;
  font: inherit;
  font-size: 13px;
}

body.admin-mode #adminOrdersPanel select:focus,
body.admin-mode #adminProductsPanel input:focus,
body.admin-mode #adminProductsPanel select:focus {
  outline: 1px solid var(--admin-green);
  border-color: var(--admin-green);
}

body.admin-mode #adminOrdersPanel button,
body.admin-mode #adminProductsPanel button {
  white-space: nowrap;
}

body.admin-mode #adminOrdersPanel button {
  background: var(--admin-green);
  border-color: var(--admin-green);
  color: #10130b;
}

body.admin-mode #adminProductsPanel > button {
  margin-bottom: 18px;
  background: var(--admin-green);
  border-color: var(--admin-green);
  color: #10130b;
}

body.admin-mode #adminProductsPanel > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  margin: 12px 0;
  padding: 18px !important;
  border: 1px solid var(--admin-border) !important;
  border-radius: 12px;
  background: #0d0f0b;
}

body.admin-mode #adminProductsPanel > div p {
  grid-column: 1 / -1;
  margin: 0 0 4px;
  color: var(--admin-green);
  font-weight: 750;
}

body.admin-mode #adminProductsPanel > div button {
  justify-self: start;
}

body.admin-mode #adminProductsPanel input[type="file"] {
  display: none !important;
}

@media (max-width: 700px) {
  body.admin-mode #adminToolbar {
    padding: 14px 16px !important;
    gap: 12px !important;
  }

  body.admin-mode #adminToolbar strong {
    width: 100%;
    font-size: 15px !important;
  }

  body.admin-mode #adminToolbar > button {
    flex: 1;
  }

  body.admin-mode .admin-tabs {
    width: 100%;
  }

  body.admin-mode .admin-tabs button {
    flex: 1 !important;
    min-width: 0;
  }

  body.admin-mode main {
    width: calc(100% - 24px);
    margin: 16px auto !important;
  }

  body.admin-mode #adminOrdersPanel,
  body.admin-mode #adminProductsPanel {
    padding: 16px !important;
    border-radius: 12px !important;
  }

  body.admin-mode #adminOrdersPanel > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
    padding: 14px !important;
  }

  body.admin-mode #adminProductsPanel > div {
    grid-template-columns: minmax(0, 1fr);
    padding: 14px !important;
  }

  body.admin-mode #adminProductsPanel > div p {
    grid-column: auto;
  }

  body.admin-mode #adminProductsPanel > div button {
    width: 100%;
  }
}


/* SYNDICATE DASHBOARD */
body.admin-mode #adminDashboardPanel {
  box-sizing: border-box;
  padding: 26px !important;
  margin: 0 !important;
  background: #12140f;
  border: 1px solid #292d24;
  border-radius: 16px;
  color: #f4f5ef;
  box-shadow: 0 18px 50px #0003;
}
body.admin-mode #adminDashboardPanel h2 {
  margin: 0 0 6px;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -.8px;
}
.admin-muted { color: #9a9e91; margin: 0 0 24px; }
.admin-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.admin-kpis article {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 18px;
  background: #0b0d09;
  border: 1px solid #292d24;
  border-radius: 12px;
}
.admin-kpis article span { color: #b6b9ad; font-size: 13px; }
.admin-kpis article strong { color: #b7ff32; font-size: clamp(23px, 3vw, 34px); overflow-wrap: anywhere; }
.admin-kpis article small { color: #858a7c; font-size: 11px; }
.admin-dash-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.admin-dash-columns > section {
  min-width: 0;
  padding: 18px;
  background: #0b0d09;
  border: 1px solid #292d24;
  border-radius: 12px;
}
.admin-dash-columns h3 { margin: 0 0 14px; font-size: 17px; }
.admin-dash-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px 0;
  border-bottom: 1px solid #24271f;
  overflow-wrap: anywhere;
}
.admin-dash-row strong { font-size: 13px; color: #f4f5ef; }
.admin-dash-row span { font-size: 12px; color: #b7ff32; }
.admin-dash-row small { color: #9a9e91; }
body.admin-mode .admin-dash-columns button {
  margin-top: 14px;
  color: #10130b;
  background: #b7ff32;
  border: 0;
  border-radius: 8px;
  padding: 11px 14px;
  font-weight: 750;
}
.admin-dash-error { color: #ff9b8f; }
@media (max-width: 700px) {
  body.admin-mode #adminDashboardPanel { padding: 16px !important; }
  .admin-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .admin-kpis article { padding: 13px; gap: 8px; }
  .admin-dash-columns { grid-template-columns: minmax(0, 1fr); }
}


/* SYNDICATE full dashboard v2 */
body.admin-mode main{max-width:1440px!important;margin:0 auto!important;padding:24px!important}
body.admin-mode #adminDashboardPanel{display:block!important;padding:8px 0 30px!important}
.dash-heading,.dash-chart-head{display:flex;align-items:center;justify-content:space-between;gap:16px}
.dash-heading h2{margin:4px 0;font-size:clamp(25px,3vw,34px)}
.dash-heading .admin-muted,.dash-chart-head .admin-muted{margin:5px 0;color:#999f91}
.dash-heading button,.dash-ranges button{border:1px solid #30382a;background:#11140e;color:#e9efdf;border-radius:9px;padding:10px 14px;cursor:pointer}
.dash-heading button:disabled{opacity:.65}
.dash-load-error:not([hidden]){display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0;padding:12px 14px;border:1px solid #704139;border-radius:10px;background:#241613;color:#ffd0c8;font-size:13px;line-height:1.45}
.dash-load-error button{flex:0 0 auto;min-height:40px;padding:9px 12px;border:1px solid #b7ff32;border-radius:8px;background:#b7ff32;color:#10130b;font:inherit;font-weight:800;cursor:pointer}
.dash-load-error button:disabled{opacity:.65}
.dash-ranges{display:flex;gap:6px;flex-wrap:wrap}
.dash-ranges button.active{background:#b7ff32;color:#10130b;border-color:#b7ff32;font-weight:800}
.dash-chart-card{margin:18px 0;padding:22px;background:#10120e;border:1px solid #292f24;border-radius:16px}
.dash-chart-head h3{margin:0;font-size:18px}
.dash-chart{min-height:180px;margin-top:20px}
.dash-bars{display:grid;grid-template-columns:repeat(30,minmax(0,1fr));gap:5px;align-items:end;min-height:160px}
.dash-bar-col{min-width:0;display:flex;flex-direction:column;align-items:center;gap:7px;height:160px}
.dash-bar-value{font-size:9px;color:#b7ff32;white-space:nowrap;overflow:hidden;max-width:100%}
.dash-bar-track{height:110px;width:100%;display:flex;align-items:end;background:#191d15;border-radius:5px 5px 2px 2px;overflow:hidden}
.dash-bar{width:100%;min-height:0;background:linear-gradient(180deg,#d0ff73,#8acb20);border-radius:5px 5px 0 0;transition:height .25s}
.dash-bar-col small{font-size:9px;color:#929889;white-space:nowrap}
.dash-chart-total{display:flex;justify-content:space-between;gap:12px;margin-top:18px;padding-top:14px;border-top:1px solid #2b3026;color:#a7ad9d}
.dash-chart-total strong{color:#b7ff32;font-size:20px}
body.admin-mode .admin-dash-columns{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:16px}
body.admin-mode .admin-dash-columns>section{min-width:0;background:#10120e;border:1px solid #292f24;border-radius:16px;padding:20px}
body.admin-mode .admin-dash-columns button{background:#b7ff32;color:#10130b;border:0;border-radius:9px;padding:11px 14px;font-weight:800}
body.admin-mode #adminToolbar{flex-direction:row;align-items:center;flex-wrap:wrap;padding:14px 24px}
body.admin-mode #adminToolbar .admin-tabs{margin-left:auto}
@media(max-width:700px){
 body.admin-mode main{padding:14px!important}
 .dash-heading,.dash-chart-head{align-items:flex-start;flex-direction:column}
 .dash-ranges{width:100%}
 .dash-ranges button{flex:1;padding:9px 6px}
 .dash-chart-card{padding:14px}
 .dash-bars{gap:2px}
 .dash-bar-value{font-size:7px}
 .dash-bar-col small{font-size:8px}
 body.admin-mode .admin-dash-columns{grid-template-columns:minmax(0,1fr)}
 body.admin-mode #adminToolbar{align-items:stretch;flex-direction:column;padding:12px}
 body.admin-mode #adminToolbar .admin-tabs{margin-left:0}
 .dash-load-error:not([hidden]){align-items:stretch;flex-direction:column}
 .dash-load-error button{width:100%}
}


/* SYNDICATE order management v1 */
body.admin-mode #adminOrdersPanel{display:block!important;padding:22px!important;margin:20px auto!important;max-width:1440px;background:#0d0f0b!important;border:1px solid #292f24!important;border-radius:18px}
.orders-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px}
.orders-heading h2{margin:5px 0 0;font-size:clamp(25px,3vw,34px);color:#f4f5ef}
.orders-heading .admin-muted{margin:5px 0;color:#999f91}
body.admin-mode #adminOrdersPanel .orders-heading button,body.admin-mode #adminOrdersPanel .order-actions button{background:#b7ff32;color:#10130b;border:1px solid #b7ff32;border-radius:9px;padding:11px 14px;font-weight:800;cursor:pointer}
body.admin-mode #adminOrdersPanel button:disabled{opacity:.6;cursor:wait}
.orders-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px}
.orders-stats article{display:flex;flex-direction:column;gap:8px;padding:16px;background:#141710;border:1px solid #292f24;border-radius:13px}
.orders-stats span{font-size:12px;color:#a5aa9b}
.orders-stats strong{font-size:25px;color:#b7ff32}
.orders-tools{display:grid;grid-template-columns:minmax(0,1fr) minmax(170px,240px);gap:10px;margin-bottom:16px}
body.admin-mode #adminOrdersPanel .orders-tools input,body.admin-mode #adminOrdersPanel .orders-tools select,body.admin-mode #adminOrdersPanel .order-actions select{width:100%;min-width:0;box-sizing:border-box;background:#171a14;color:#f4f5ef;border:1px solid #343b2d;border-radius:10px;padding:12px}
.orders-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.order-card{min-width:0;padding:16px;background:#12150f;border:1px solid #292f24;border-radius:14px}
.order-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;padding-bottom:13px;border-bottom:1px solid #292f24}
.order-card-head>strong:first-child{overflow-wrap:anywhere;color:#f4f5ef}
.order-total{color:#b7ff32;white-space:nowrap}
.order-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:14px 0}
.order-details>div{display:flex;flex-direction:column;gap:4px;min-width:0}
.order-details small{color:#929888;font-size:11px}
.order-details span{color:#e6e9df;font-size:13px;overflow-wrap:anywhere}
.order-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}
body.admin-mode #adminOrdersPanel .order-actions button{white-space:nowrap}
@media(max-width:700px){
 body.admin-mode #adminOrdersPanel{padding:14px!important;margin:12px 0!important}
 .orders-heading{align-items:flex-start}
 .orders-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .orders-stats article{padding:12px}
 .orders-stats strong{font-size:22px}
 .orders-tools{grid-template-columns:minmax(0,1fr)}
 .orders-list{grid-template-columns:minmax(0,1fr)}
 .order-card{padding:13px}
 .order-actions{grid-template-columns:minmax(0,1fr)}
 .order-actions button{width:100%}
}


/* SYNDICATE inventory management v1 */
body.admin-mode #adminProductsPanel{display:block!important;box-sizing:border-box;width:100%;max-width:1440px;margin:20px auto!important;padding:22px!important;background:#0d0f0b!important;border:1px solid #292f24!important;border-radius:18px;color:#f4f5ef}
.products-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:22px}
.products-heading h2{margin:5px 0;font-size:clamp(25px,3vw,34px);color:#f4f5ef}
.products-heading .admin-muted{margin:5px 0;color:#999f91}
body.admin-mode #adminProductsPanel .products-heading button,body.admin-mode #adminProductsPanel .products-add-row button,body.admin-mode #adminProductsPanel .product-save{background:#b7ff32;color:#10130b;border:1px solid #b7ff32;border-radius:9px;padding:11px 14px;font-weight:800;cursor:pointer}
body.admin-mode #adminProductsPanel button:disabled{opacity:.6;cursor:wait}
.products-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:18px}
.products-stats article{display:flex;flex-direction:column;gap:8px;padding:15px;background:#141710;border:1px solid #292f24;border-radius:13px}
.products-stats span{font-size:12px;color:#a5aa9b}
.products-stats strong{font-size:25px;color:#b7ff32}
.products-tools{display:grid;grid-template-columns:minmax(0,1fr) minmax(150px,.6fr) minmax(150px,.6fr);gap:10px;margin-bottom:14px}
body.admin-mode #adminProductsPanel .products-tools input,body.admin-mode #adminProductsPanel .products-tools select,body.admin-mode #adminProductsPanel .product-field input,body.admin-mode #adminProductsPanel .product-field select{width:100%;min-width:0;box-sizing:border-box;min-height:42px;margin:0!important;padding:10px 12px;border:1px solid #343b2d;border-radius:8px;background:#171a14;color:#f4f5ef;font:inherit;font-size:13px}
.products-add-row{display:flex;justify-content:flex-end;margin-bottom:16px}
.products-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.product-card{min-width:0;padding:16px;background:#12150f;border:1px solid #292f24;border-radius:14px}
.product-card-top{display:flex;align-items:center;gap:12px;margin-bottom:16px}
.product-thumb{width:72px;height:72px;flex:0 0 72px;object-fit:cover;border-radius:10px;background:#20241b;border:1px solid #343b2d}
.product-no-photo{display:grid;place-items:center;text-align:center;color:#929888;font-size:11px}
.product-identity{display:flex;flex-direction:column;gap:6px;min-width:0}
.product-identity strong{overflow-wrap:anywhere;color:#b7ff32}
.product-identity small{color:#929888}
.product-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.product-field{display:flex;flex-direction:column;gap:6px;min-width:0}
.product-field>span{font-size:11px;color:#a5aa9b}
.product-photo-preview{margin-top:10px}
.product-photo-preview img{width:100%;max-height:180px;object-fit:contain;border-radius:9px;background:#090b08}
.product-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:14px}
body.admin-mode #adminProductsPanel .product-actions button{border-radius:9px;padding:10px 12px;font-weight:750;cursor:pointer}
body.admin-mode #adminProductsPanel .product-secondary{background:#1a2014;color:#d9e6ca;border:1px solid #39442d}
@media(max-width:700px){
 body.admin-mode #adminProductsPanel{padding:14px!important;margin:12px 0!important}
 .products-heading{align-items:flex-start}
 .products-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .products-stats article{padding:12px}
 .products-stats strong{font-size:22px}
 .products-tools{grid-template-columns:minmax(0,1fr)}
 .products-grid{grid-template-columns:minmax(0,1fr)}
 .product-card{padding:13px}
 .products-add-row button{width:100%}
 .product-actions{flex-direction:column}
 .product-actions button{width:100%}
}


/* Syndicate finance panel */
.finance-ranges{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}
.finance-ranges button{border:1px solid #343a36;background:#171a18;color:#eee;border-radius:12px;padding:10px 14px}
.finance-ranges button.active{background:#b8ff32;color:#10140b;border-color:#b8ff32}
.finance-form-card,.finance-history{margin-top:16px;padding:18px;border:1px solid #303630;border-radius:18px;background:#141714}
.finance-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.finance-form label{display:flex;flex-direction:column;gap:7px;font-size:13px;color:#b9c0b8}
.finance-form input,.finance-form select{box-sizing:border-box;width:100%;min-width:0;background:#0d100e;color:#fff;border:1px solid #3a4239;border-radius:10px;padding:12px;font:inherit}
.finance-form button[type=submit]{grid-column:1/-1;background:#b8ff32;color:#10140b;border:0;border-radius:12px;padding:13px;font-weight:700}
.finance-form button:disabled{opacity:.6}
.finance-row{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:13px 0;border-bottom:1px solid #2b302b}
.finance-row:last-child{border-bottom:0}
.finance-row small{display:block;color:#a4aca3;margin-top:5px;overflow-wrap:anywhere}
@media(max-width:560px){.finance-form{grid-template-columns:1fr}.finance-form button[type=submit]{grid-column:auto}.finance-form-card,.finance-history{padding:13px}}


/* Sales analytics */
.an-month-values{display:flex;flex-direction:column;align-items:flex-end;gap:4px;text-align:right}
.an-month-values small{color:#a4aca3;font-size:12px}

/* SYNDICATE ANALYTICS PANEL FIX */
body.admin-mode #adminAnalyticsPanel {
  display: block !important;
  box-sizing: border-box;
  width: 100%;
  max-width: 1440px;
  min-height: 300px;
  margin: 20px auto !important;
  padding: 24px !important;
  color: #f4f5ef !important;
  background: #0d0f0b !important;
  border: 1px solid #292f24 !important;
  border-radius: 18px !important;
  overflow-wrap: anywhere;
}

body.admin-mode #adminAnalyticsPanel h2,
body.admin-mode #adminAnalyticsPanel h3 {
  color: #f4f5ef;
}

body.admin-mode #adminAnalyticsPanel p,
body.admin-mode #adminAnalyticsPanel span,
body.admin-mode #adminAnalyticsPanel small {
  overflow-wrap: anywhere;
}

body.admin-mode #adminAnalyticsPanel .admin-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

body.admin-mode #adminAnalyticsPanel .admin-kpis article {
  min-width: 0;
  padding: 16px;
  background: #12140f;
  border: 1px solid #292d24;
  border-radius: 12px;
}

body.admin-mode #adminAnalyticsPanel .admin-kpis strong {
  color: #b7ff32;
  overflow-wrap: anywhere;
}

@media (max-width: 700px) {
  body.admin-mode #adminAnalyticsPanel {
    padding: 14px !important;
    margin: 12px auto !important;
  }

  body.admin-mode #adminAnalyticsPanel .admin-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body.admin-mode #adminAnalyticsPanel .admin-kpis article {
    padding: 11px;
  }
}

@media (max-width: 560px) {
  body.admin-mode #adminAnalyticsPanel .finance-row {
    align-items: flex-start;
    gap: 8px;
  }

  body.admin-mode #adminAnalyticsPanel .finance-row > div:first-child {
    min-width: 0;
  }

  body.admin-mode #adminAnalyticsPanel .an-month-values {
    max-width: 46%;
    flex-shrink: 0;
  }
}

/* Financial analytics use the existing V21 dashboard surfaces and palette. */
body.admin-mode #adminAnalyticsPanel .analytics-filters {
  grid-template-columns:repeat(4,minmax(0,1fr));
  align-items:end;
  margin-top:16px;
}
body.admin-mode #adminAnalyticsPanel .analytics-filters button[type="submit"] {
  grid-column:auto;
  min-height:42px;
  padding:11px 14px;
  border:1px solid #b7ff32;
  border-radius:10px;
  background:#b7ff32;
  color:#10130b;
  font:inherit;
  font-weight:750;
}
body.admin-mode #adminAnalyticsPanel .analytics-legend {
  display:flex;
  flex-wrap:wrap;
  gap:10px 18px;
  margin:0 0 10px;
  color:#b7b9ae;
  font-size:11px;
}
body.admin-mode #adminAnalyticsPanel .analytics-legend span {display:flex;align-items:center;gap:7px}
body.admin-mode #adminAnalyticsPanel .analytics-legend i {width:9px;height:9px;border-radius:50%;background:var(--legend-color)}
body.admin-mode #adminAnalyticsPanel .analytics-chart {width:100%;min-width:0;overflow:hidden}
body.admin-mode #adminAnalyticsPanel .analytics-chart svg {display:block;width:100%;height:auto;min-height:150px;max-height:300px}
body.admin-mode #adminAnalyticsPanel .analytics-chart .an-grid {stroke:#30342b;stroke-width:1}
body.admin-mode #adminAnalyticsPanel .analytics-chart .an-axis {fill:#92968a;font:10px system-ui,sans-serif}
@media(max-width:700px) {
  body.admin-mode #adminAnalyticsPanel .analytics-filters {grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding:13px}
  body.admin-mode #adminAnalyticsPanel .analytics-filters button[type="submit"] {grid-column:1/-1}
}
@media(max-width:430px) {
  body.admin-mode #adminAnalyticsPanel .analytics-chart svg {min-height:130px}
  body.admin-mode #adminAnalyticsPanel .analytics-legend {gap:8px 12px;font-size:10px}
}

body.admin-mode #adminStockHistoryPanel {
  display:block!important;
  box-sizing:border-box;
  width:100%;
  max-width:1440px;
  margin:20px auto!important;
  padding:22px!important;
  background:#0d0f0b!important;
  border:1px solid #292f24!important;
  border-radius:18px;
  color:#f4f5ef;
}
body.admin-mode #adminStockHistoryPanel button {
  background:#b7ff32;
  color:#10130b;
  border:1px solid #b7ff32;
  border-radius:9px;
  padding:11px 14px;
  font-weight:800;
  cursor:pointer;
}
body.admin-mode #adminStockHistoryPanel input,
body.admin-mode #adminStockHistoryPanel select {
  box-sizing:border-box;
  min-height:42px;
  padding:10px 12px;
  background:#171a14;
  color:#f4f5ef;
  border:1px solid #343b2d;
  border-radius:9px;
}

/* Hide products while stock history is open */
body.admin-mode.stock-history-active #adminProductsPanel {
  display: none !important;
}


/* Admin audit log */
body.admin-mode #adminAuditPanel {
  display: block !important;
  box-sizing: border-box;
  width: 100%;
  max-width: 1440px;
  margin: 20px auto !important;
  padding: 24px !important;
  color: #f4f5ef !important;
  background: #0d0f0b !important;
  border: 1px solid #292f24 !important;
  border-radius: 18px !important;
  overflow-wrap: anywhere;
}
@media (max-width: 700px) {
  body.admin-mode #adminAuditPanel {
    margin: 12px auto !important;
    padding: 14px !important;
  }
}


/* Admin mobile navigation refresh */
@media (max-width: 700px) {
  body.admin-mode #adminToolbar {
    gap: 10px !important;
    padding: 10px 12px !important;
    overflow: hidden;
  }

  body.admin-mode .admin-tabs {
    box-sizing: border-box;
    width: calc(100% + 24px) !important;
    margin: 0 -12px !important;
    padding: 0 12px 4px;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #59634c #11140e;
  }

  body.admin-mode .admin-tabs button {
    flex: 0 0 auto !important;
    min-width: max-content !important;
    white-space: nowrap;
  }

  body.admin-mode #adminDashboardPanel .admin-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body.admin-mode #adminDashboardPanel .admin-kpis article {
    min-width: 0;
    padding: 11px;
    gap: 7px;
  }

  body.admin-mode #adminDashboardPanel .admin-kpis article span {
    font-size: 12px;
    line-height: 1.25;
  }

  body.admin-mode #adminDashboardPanel .admin-kpis article strong {
    font-size: clamp(20px, 6vw, 26px);
    line-height: 1.05;
  }

  body.admin-mode #adminDashboardPanel .admin-kpis article small {
    font-size: 10px;
    line-height: 1.25;
  }

  body.admin-mode #adminDashboardPanel .admin-kpis article:last-child {
    grid-column: 1 / -1;
  }
}


/* Admin orders mobile polish */
@media (max-width: 700px) {
  body.admin-mode #adminOrdersPanel {
    padding: 16px 12px !important;
  }

  body.admin-mode #adminOrdersPanel .orders-heading {
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
  }

  body.admin-mode #adminOrdersPanel .orders-heading button {
    flex: 0 0 auto;
    min-height: 44px;
  }

  body.admin-mode #adminOrdersPanel .orders-stats article {
    min-width: 0;
    gap: 5px;
    padding: 11px;
  }

  body.admin-mode #adminOrdersPanel .orders-stats span {
    font-size: 11px;
    line-height: 1.25;
  }

  body.admin-mode #adminOrdersPanel .orders-stats strong {
    font-size: 21px;
    line-height: 1.1;
  }

  body.admin-mode #adminOrdersPanel .order-card {
    padding: 14px;
    border-radius: 16px;
  }

  body.admin-mode #adminOrdersPanel .order-card-head {
    align-items: center;
    gap: 8px;
  }

  body.admin-mode #adminOrdersPanel .order-card-head > strong:first-child,
  body.admin-mode #adminOrdersPanel .order-total {
    font-size: 14px;
    line-height: 1.35;
  }

  body.admin-mode #adminOrdersPanel .order-details {
    gap: 10px 8px;
    padding: 12px 0;
  }

  body.admin-mode #adminOrdersPanel .order-details span {
    line-height: 1.4;
  }

  body.admin-mode #adminOrdersPanel .order-actions {
    gap: 9px;
    padding-top: 12px;
    border-top: 1px solid #292f24;
  }

  body.admin-mode #adminOrdersPanel .order-actions select,
  body.admin-mode #adminOrdersPanel .order-actions button {
    min-height: 46px;
  }
}


/* Compact admin orders with paging */
body.admin-mode #adminOrdersPanel .orders-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 10px 0;
}
body.admin-mode #adminOrdersPanel .orders-pagination:empty {
  display: none;
}
body.admin-mode #adminOrdersPanel .orders-pagination button,
body.admin-mode #adminOrdersPanel .order-expand {
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid #343b2d;
  border-radius: 10px;
  background: #171a14;
  color: #f4f5ef;
  font-weight: 700;
}
body.admin-mode #adminOrdersPanel .orders-pagination button:disabled {
  opacity: .45;
}
body.admin-mode #adminOrdersPanel .orders-pagination span {
  color: #c5cabb;
  font-size: 12px;
  text-align: center;
}
body.admin-mode #adminOrdersPanel .order-card-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 9px;
  min-width: 0;
}
body.admin-mode #adminOrdersPanel .order-status-badge {
  padding: 3px 8px;
  border: 1px solid #46513b;
  border-radius: 999px;
  color: #c9f58c;
  font-size: 11px;
  line-height: 1.25;
}
body.admin-mode #adminOrdersPanel .order-expand {
  width: 100%;
  margin-top: 10px;
  color: #b7ff32;
  text-align: left;
}
body.admin-mode #adminOrdersPanel .order-card-extra[hidden] {
  display: none !important;
}
body.admin-mode #adminOrdersPanel .order-card-extra:not([hidden]) {
  padding-top: 10px;
}


/* Admin order archive switch */
body.admin-mode #adminOrdersPanel .orders-view-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 14px;
}
body.admin-mode #adminOrdersPanel .orders-view-tabs button {
  min-width: 0;
  min-height: 44px;
  padding: 10px;
  border: 1px solid #343b2d;
  border-radius: 11px;
  background: #171a14;
  color: #c5cabb;
  font-weight: 800;
}
body.admin-mode #adminOrdersPanel .orders-view-tabs button.active {
  border-color: #b7ff32;
  background: #b7ff32;
  color: #10130b;
}


/* Compact admin product cards */
body.admin-mode #adminProductsPanel .product-card-top {
  margin-bottom: 10px;
}
body.admin-mode #adminProductsPanel .product-quick-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 10px;
}
body.admin-mode #adminProductsPanel .product-quick-summary > strong {
  color: #f4f5ef;
  font-size: 15px;
}
body.admin-mode #adminProductsPanel .product-stock-badge {
  padding: 4px 9px;
  border: 1px solid #46513b;
  border-radius: 999px;
  color: #c9f58c;
  font-size: 12px;
  white-space: nowrap;
}
body.admin-mode #adminProductsPanel .product-stock-badge.low {
  border-color: #743b32;
  color: #ff9c8d;
}
body.admin-mode #adminProductsPanel .product-expand {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #46513b;
  border-radius: 10px;
  background: #1a2014;
  color: #b7ff32;
  font-weight: 800;
  text-align: left;
}
body.admin-mode #adminProductsPanel .product-edit-details[hidden] {
  display: none !important;
}
body.admin-mode #adminProductsPanel .product-edit-details:not([hidden]) {
  padding-top: 12px;
}


/* Finance screen compact controls */
body.admin-mode #adminFinancePanel .finance-form-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
body.admin-mode #adminFinancePanel .finance-form-head h3 {
  margin: 0;
}
body.admin-mode #adminFinancePanel .finance-form-head button,
body.admin-mode #adminFinancePanel .finance-history-switch button {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #39442d;
  border-radius: 10px;
  background: #1a2014;
  color: #d9e6ca;
  font-weight: 750;
}
body.admin-mode #adminFinancePanel .finance-form[hidden],
body.admin-mode #adminFinancePanel .finance-history[hidden] {
  display: none !important;
}
body.admin-mode #adminFinancePanel .finance-history-switch {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0 0;
}
.finance-return-restock{flex-direction:row!important;align-items:center;gap:10px!important}
.finance-return-restock input{width:20px!important;height:20px;accent-color:#b8ff32}
body.admin-mode #adminFinancePanel .finance-history-switch button.active {
  border-color: #b8ff32;
  background: #b8ff32;
  color: #10140b;
}
@media (max-width: 560px) {
  body.admin-mode #adminFinancePanel .finance-form-head {
    align-items: flex-start;
  }
  body.admin-mode #adminFinancePanel .finance-form-head button {
    white-space: nowrap;
  }
}


/* Syndicate storefront product cards v2 */
#products {
  gap: 12px;
}
#products .card {
  padding: 8px;
  border: 1px solid #2c3025;
  border-radius: 12px;
  background: linear-gradient(155deg, #171912, #0f100d 78%);
  box-shadow: 0 8px 22px #00000024;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
#products .pic {
  height: auto;
  aspect-ratio: 4 / 5;
  border: 1px solid #292d23;
  border-radius: 9px;
  background: radial-gradient(ellipse at center, #1b1d17, #11120f 78%);
}
#products .pic img {
  box-sizing: border-box;
  padding: 5px;
  object-fit: contain;
}
#products .card h3 {
  min-height: 38px;
  margin: 11px 5px 4px;
  font-size: clamp(12px, 3.4vw, 15px);
  line-height: 1.3;
  letter-spacing: .35px;
}
#products .price {
  margin: 6px 5px;
  font-size: clamp(19px, 5.2vw, 24px);
  letter-spacing: -.4px;
}
#products .small {
  min-height: 16px;
  margin: 3px 5px 10px;
  font-size: 11px;
}
#products .add {
  min-height: 44px;
  padding: 11px 6px;
  border-radius: 8px;
  font-size: 11px;
  letter-spacing: .55px;
}
@media (hover: hover) {
  #products .card:hover {
    transform: translateY(-2px);
    border-color: #687b31;
    box-shadow: 0 12px 26px #00000042;
  }
}
@media (max-width: 380px) {
  #products {
    gap: 9px;
  }
  #products .card {
    padding: 6px;
  }
}


/* Product description fields in admin */
body.admin-mode #adminProductsPanel .product-field textarea {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 88px;
  padding: 10px 12px;
  border: 1px solid #343b2d;
  border-radius: 8px;
  background: #171a14;
  color: #f4f5ef;
  font: inherit;
  font-size: 13px;
  resize: vertical;
}


/* Product detail modal with clothing variants */
#products .card { cursor: pointer; }
.product-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  padding-top: max(14px, env(safe-area-inset-top));
  padding-bottom: max(14px, env(safe-area-inset-bottom));
  background: #050605d9;
  backdrop-filter: blur(8px);
}
.product-modal-dialog {
  position: relative;
  box-sizing: border-box;
  width: min(100%, 520px);
  max-height: 92dvh;
  overflow-y: auto;
  padding: 16px;
  border: 1px solid #414633;
  border-radius: 20px;
  background: linear-gradient(155deg, #171912, #0d0e0b 80%);
  box-shadow: 0 24px 80px #000a;
}
.product-modal-close {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 1px solid #ffffff40;
  border-radius: 50%;
  background: #080908cc;
  color: #fff;
  font-size: 25px;
}
.product-modal-photo {
  display: grid;
  place-items: center;
  width: 100%;
  height: min(42dvh, 420px);
  overflow: hidden;
  border: 1px solid #292d23;
  border-radius: 14px;
  background: radial-gradient(ellipse at center, #20231a, #10110e 78%);
  color: #b7ff32;
  font-size: 64px;
  font-weight: 900;
}
.product-modal-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  box-sizing: border-box;
}
.product-modal-title {
  margin: 15px 0 4px;
  color: #f4f5ef;
  font-size: clamp(21px, 5vw, 28px);
  line-height: 1.2;
}
.product-modal-price {
  display: block;
  margin: 8px 0;
  color: #b7ff32;
  font-size: 23px;
}
.product-modal-description {
  color: #c3c8bb;
  line-height: 1.5;
  white-space: pre-line;
}
.product-modal-stock {
  color: #9ca491;
  font-size: 13px;
}
.product-modal-choice {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 12px 0;
  color: #d9dfd0;
  font-size: 13px;
}
.product-modal-choice select {
  box-sizing: border-box;
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #414633;
  border-radius: 10px;
  background: #10120e;
  color: #f4f5ef;
  font: inherit;
}
.product-modal-add {
  width: 100%;
  min-height: 48px;
  margin-top: 10px;
  padding: 12px;
  border: 0;
  border-radius: 10px;
  background: #b7ff32;
  color: #10130b;
  font-size: 14px;
  font-weight: 900;
}

/* Product editor full page and size inventory */

/* Product editor full page and size inventory */
body.admin-mode #adminProductsPanel .product-edit-details:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 10050;
  box-sizing: border-box;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  padding: max(16px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
  background: #0d0f0b;
}
body.admin-mode #adminProductsPanel .product-edit-page-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -4px -4px 16px;
  padding: 12px 4px;
  background: #0d0f0b;
  border-bottom: 1px solid #292f24;
}
body.admin-mode #adminProductsPanel .product-edit-back {
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid #46513b;
  border-radius: 10px;
  background: #1a2014;
  color: #c9f58c;
}
body.admin-mode #adminProductsPanel .product-size-stock-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #46513b;
  border-radius: 12px;
  background: #12150f;
}
body.admin-mode #adminProductsPanel .product-size-stock-panel[hidden] {
  display: none !important;
}
body.admin-mode #adminProductsPanel .product-size-stock-rows {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(95px, 1fr));
  gap: 9px;
}
body.admin-mode #adminProductsPanel .product-size-stock-row {
  display: grid;
  gap: 6px;
  color: #f4f5ef;
  font-weight: 700;
}
body.admin-mode #adminProductsPanel .product-size-stock-row input {
  box-sizing: border-box;
  width: 100%;
  min-height: 42px;
  padding: 8px;
  border: 1px solid #393f31;
  border-radius: 8px;
  background: #090a08;
  color: #fff;
}
body.admin-mode #adminProductsPanel .product-edit-details input[readonly] {
  opacity: .75;
}


/* SYNDICATE editorial storefront refresh */
:root{--accent:#fff;--bg:#080808;--panel:#111;--line:#272727;--text:#f5f5f5;--muted:#9b9b9b}
body{background:#080808;color:#f5f5f5;font-family:Arial,Helvetica,sans-serif}
.store-header{position:sticky;top:0;z-index:100;background:rgba(8,8,8,.96);backdrop-filter:blur(18px);min-height:68px;padding:10px clamp(14px,4vw,56px);display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid #252525}
.store-logo{color:#fff;text-decoration:none;font-size:20px;font-weight:800;letter-spacing:2px;white-space:nowrap}
.primary-nav{display:flex;align-items:center;gap:clamp(12px,2.5vw,32px);margin:0}
.primary-nav button,.language-switch button{padding:8px 2px;border:0;background:none;color:#bcbcbc;font-size:12px;letter-spacing:.3px}
.primary-nav button:hover,.language-switch button.selected{color:#fff}
.store-header-side{gap:10px}.store-header .header-icon{width:34px;height:38px;color:#eee}.store-header .header-icon svg{width:21px;height:21px}
.store-header-right{align-items:center}.language-switch{display:flex;align-items:center;gap:5px;color:#555}.language-switch button{font-size:11px}.admin-entry{padding:7px 9px;font-size:10px}
#storeSearchWrap{position:sticky;top:68px;z-index:90;background:#0a0a0a;padding:12px clamp(14px,4vw,56px)}
main{max-width:1440px;padding:20px clamp(14px,4vw,56px) 42px}
.hero-banner{position:relative;isolation:isolate;min-height:clamp(390px,52vw,650px);display:flex;align-items:flex-end;overflow:hidden;margin:0 0 56px;padding:clamp(26px,6vw,76px);border:1px solid #272727;border-radius:18px;background:linear-gradient(115deg,#171717,#080808 68%)}
.hero-image{position:absolute;z-index:-2;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 38%;opacity:.68}
.hero-shade{position:absolute;z-index:-1;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.82),rgba(0,0,0,.2) 76%),linear-gradient(0deg,rgba(0,0,0,.62),transparent 70%)}
.hero-copy{max-width:600px}.home-kicker{color:#aaa;font-size:10px;letter-spacing:2.2px;font-weight:700}
#homeHeadline{max-width:680px;margin:17px 0 14px;font-size:clamp(48px,9vw,112px);line-height:.92;letter-spacing:-.065em;color:#fff;text-transform:uppercase}
#homeSub{max-width:430px;margin:0;color:#d0d0d0;font-size:clamp(14px,1.5vw,18px);line-height:1.6}
.hero-cta{display:inline-flex;align-items:center;gap:25px;margin-top:28px;padding:14px 18px;border:1px solid #fff;border-radius:30px;background:#fff;color:#090909;font-size:12px;font-weight:700;cursor:pointer}
.hero-cta span{font-size:17px}.home-categories-section,.popular-section{margin:0 0 56px}
.home-section-heading{display:flex;align-items:end;justify-content:space-between;margin:0 0 20px}.home-section-heading h2{margin:6px 0 0;font-size:clamp(24px,4vw,34px);letter-spacing:-1px;text-transform:none}
.home-category-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.home-tile{position:relative;display:block;isolation:isolate;aspect-ratio:1.62/1;min-height:0;overflow:hidden;padding:0;border:0;border-radius:12px;background:#151515;text-align:left}
.home-tile img{position:absolute;z-index:0;inset:0;width:100%;height:100%;object-fit:contain;transition:none}
.home-tile-clothes img{object-position:52% 45%}
.home-tile-watches img{object-position:50% 50%}
.home-tile-electronics img{object-position:48% 48%}
.home-tile-underwear img{object-position:52% 44%}
.home-tile-accessories img{object-position:48% 47%}
.home-tile-other img{object-position:50% 50%}
.text-link{padding:8px 0;border:0;background:none;color:#ddd;font-size:12px}.grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-top:20px}
.card{padding:8px;border:1px solid #242424;border-radius:12px;background:#101010}.card:hover{border-color:#555;transform:translateY(-2px)}
.pic{height:clamp(210px,27vw,340px);border-radius:8px;background:#171717}.pic img{object-fit:cover;background:#171717}.pic.syndicate-placeholder:not(:has(img)):before{color:#555}.pic.syndicate-placeholder:not(:has(img)):after{color:#777}
.card h3{min-height:36px;margin:13px 5px 4px;color:#eee;font-size:12px;letter-spacing:.35px}.price{margin:6px 5px 12px;color:#fff;font-size:17px}.add{min-height:42px;margin-top:auto;border:1px solid #444;border-radius:7px;background:#1a1a1a;color:#fff;font-size:10px;letter-spacing:.6px}.add:hover{background:#fff;color:#080808}
#cats{display:none!important}.benefits-strip{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0 0}.benefits-strip article{display:flex;align-items:center;gap:14px;padding:20px;border:1px solid #252525;border-radius:12px;background:#101010}.benefit-icon{display:grid;place-items:center;width:38px;height:38px;border:1px solid #444;border-radius:50%;color:#fff;font-size:17px}.benefits-strip strong,.benefits-strip small{display:block}.benefits-strip strong{font-size:13px}.benefits-strip small{margin-top:4px;color:#999;font-size:11px}
#allProductsLink{display:inline-flex;align-items:center;gap:4px}
#allProductsLink .catalog-link-icon{width:14px;height:14px;flex:none;fill:none;stroke:#fff;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.benefit-icon .delivery-truck-icon{width:19px;height:19px;fill:none;stroke:#fff;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
footer{margin-top:35px;border-color:#242424;color:#777}
@media(max-width:760px){.store-header{flex-wrap:wrap;gap:7px 12px;padding:10px 14px}.store-logo{font-size:17px}.primary-nav{order:3;width:100%;justify-content:center;gap:clamp(18px,8vw,42px);overflow:auto}.primary-nav button{font-size:11px;white-space:nowrap}.store-header-right{gap:4px}.store-header .header-icon{width:31px}.language-switch{gap:3px}.language-switch button{font-size:10px}#storeSearchWrap{top:100px}.hero-banner{min-height:440px;margin-bottom:38px;padding:24px;border-radius:13px}.hero-image{object-position:58% center;opacity:.55}.hero-shade{background:linear-gradient(0deg,rgba(0,0,0,.82),rgba(0,0,0,.1) 95%)}#homeHeadline{font-size:clamp(43px,13vw,72px)}.home-categories-section,.popular-section{margin-bottom:40px}.home-category-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.home-tile{border-radius:10px}.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.pic{height:clamp(165px,53vw,270px)}.card{padding:6px}.card h3{font-size:11px}.add{font-size:9px;padding:10px 3px}.benefits-strip{gap:8px}.benefits-strip article{align-items:flex-start;padding:13px 10px;gap:9px}.benefit-icon{width:30px;height:30px;flex:0 0 30px}.benefits-strip strong{font-size:11px}.benefits-strip small{font-size:10px}}
@media(max-width:390px){.store-header{padding-left:9px;padding-right:9px}.store-logo{font-size:15px;letter-spacing:1px}.store-header-right{gap:1px}.store-header .header-icon{width:28px}.language-switch button{padding:7px 0}.hero-banner{min-height:400px}.benefits-strip article{padding:11px 8px}.benefits-strip strong{font-size:10px}}
@media(prefers-reduced-motion:reduce){.home-tile img,.card{transition:none}}

/* Home page layout refinements */
.hero-banner{min-height:clamp(430px,43vw,600px);border:0;border-radius:4px;background:#141414}
.hero-image{object-position:center 42%;opacity:.84}
.hero-shade{background:linear-gradient(90deg,rgba(0,0,0,.76),rgba(0,0,0,.08) 76%),linear-gradient(0deg,rgba(0,0,0,.52),transparent 58%)}
.home-category-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.home-tile{border-radius:4px}
#products{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
#products .card{padding:7px;border-radius:5px}
#products .pic{height:clamp(160px,17vw,220px);border-radius:3px}
#products .card h3{min-height:34px;font-size:11px}
#products .price{font-size:15px}
#products .add{min-height:38px}
.benefits-strip{grid-template-columns:repeat(4,minmax(0,1fr));margin-top:20px}
.benefits-strip article{min-width:0;padding:18px 14px;border-radius:5px}
.benefits-strip strong{line-height:1.35}
@media(max-width:760px){
 .store-header{display:grid;grid-template-columns:1fr auto;align-items:center;gap:0 8px;padding:10px 14px}
 .store-logo{grid-column:1;grid-row:1;font-size:17px}
 .store-header-right{grid-column:2;grid-row:1;justify-content:flex-end;gap:3px}
 .primary-nav{grid-column:1/-1;grid-row:2;width:100%;margin-top:7px;justify-content:space-around;gap:12px}
 .primary-nav button{padding:7px 2px}
 #storeSearchWrap{top:94px}
 .hero-banner{min-height:460px;margin-bottom:34px;padding:22px}
 .hero-image{object-position:62% center;opacity:.78}
 .hero-shade{background:linear-gradient(0deg,rgba(0,0,0,.86),rgba(0,0,0,.05) 92%),linear-gradient(90deg,rgba(0,0,0,.18),transparent)}
 #homeHeadline{font-size:clamp(42px,12vw,66px)}
 .home-category-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 #products{display:grid;grid-auto-columns:minmax(155px,42vw);grid-auto-flow:column;grid-template-columns:none;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;padding:2px 0 10px}
 #products .card{scroll-snap-align:start}
 #products .pic{height:clamp(145px,42vw,190px)}
 .benefits-strip{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .benefits-strip article{padding:13px 10px;gap:9px}
}
@media(max-width:390px){
 .hero-banner{min-height:410px;padding:18px}
 #products{grid-auto-columns:45vw}
 .benefits-strip article{padding:11px 8px}
}

/* Reliable image layering and compact mobile first screen */
.hero-banner{isolation:isolate;background:#111}
.hero-image{z-index:0;display:block;opacity:.88}
.hero-shade{z-index:1}
.hero-copy{position:relative;z-index:2;width:min(100%,620px)}
#homeHeadline{max-width:10ch;font-size:clamp(38px,6.2vw,76px);line-height:.98;letter-spacing:-.045em;text-wrap:balance;overflow-wrap:normal}
.home-category-grid{margin-top:0}
@media(max-width:760px){
 .hero-banner{min-height:clamp(330px,92vw,390px);margin-bottom:24px;padding:20px}
 .hero-image{object-position:64% center;opacity:.9}
 .hero-shade{background:linear-gradient(0deg,rgba(0,0,0,.8),rgba(0,0,0,.03) 100%),linear-gradient(90deg,rgba(0,0,0,.48),transparent 90%)}
 #homeHeadline{max-width:9ch;margin:12px 0 10px;font-size:clamp(37px,10.2vw,53px);line-height:.98;letter-spacing:-.04em}
 #homeSub{max-width:30ch;font-size:14px;line-height:1.45}
 .hero-cta{margin-top:17px;padding:12px 15px}
 .home-categories-section{margin-bottom:20px}
 .home-section-heading{margin-bottom:13px}
}
@media(max-width:390px){
 .hero-banner{min-height:330px;padding:16px}
 #homeHeadline{font-size:clamp(35px,9.5vw,42px)}
}

/* Product photos stay complete and cards fit the phone viewport */
#products .pic img{object-fit:contain!important;padding:8px;background:#f0f0ee}
.home-tile-no-image{background:linear-gradient(145deg,#1b1b1b,#0d0d0d)}
@media(max-width:760px){
 #products{box-sizing:border-box;width:100%;min-width:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-columns:auto;grid-auto-flow:row;gap:10px;overflow:visible;overscroll-behavior-x:auto;scroll-snap-type:none;padding:2px 0 10px}
 #products .card{box-sizing:border-box;width:100%;min-width:0;scroll-snap-align:none;padding:6px}
 #products .pic{box-sizing:border-box;width:100%;min-width:0;aspect-ratio:4/5;height:auto}
 #products .pic img{max-width:100%;height:100%;padding:6px}
 #products .card h3{min-width:0;overflow-wrap:anywhere;font-size:clamp(11px,3.2vw,13px)}
 #products .price{font-size:clamp(16px,4.8vw,20px)}
 #products .add{box-sizing:border-box;width:100%;min-width:0;padding:10px 4px;white-space:normal;overflow-wrap:anywhere;line-height:1.25;font-size:clamp(9px,2.8vw,11px)}
 .home-tile-no-image img{display:none}
}

/* Mobile admin workspace: fixed navigation, one independently scrolling section. */
@media (max-width: 700px) {
  body.admin-mode { height: 100dvh; min-height: 0; overflow: hidden; overscroll-behavior: none; }
  body.admin-mode #adminToolbar {
    position: fixed !important; inset: 0 0 auto; z-index: 11000;
    box-sizing: border-box; display: flex !important; flex-direction: column !important;
    align-items: stretch !important; gap: 9px !important;
    padding: calc(7px + env(safe-area-inset-top, 0px)) max(10px, env(safe-area-inset-right, 0px)) 8px max(10px, env(safe-area-inset-left, 0px)) !important;
  }
  body.admin-mode .admin-toolbar-head { display:flex; align-items:center; gap:8px; min-width:0; }
  body.admin-mode .admin-toolbar-head strong { width:auto !important; flex:1; font-size:12px !important; letter-spacing:1px !important; text-align:center; }
  body.admin-mode .admin-toolbar-head button { min-height:36px !important; padding:7px 9px !important; font-size:11px !important; white-space:nowrap; }
  body.admin-mode .admin-tabs { display:grid !important; width:100%; grid-template-columns:repeat(5,minmax(0,1fr)); gap:5px !important; }
  body.admin-mode .admin-tabs button { min-width:0 !important; min-height:36px !important; padding:6px 2px !important; font-size:10px !important; line-height:1.1; white-space:normal; overflow-wrap:anywhere; }
  body.admin-mode .admin-tabs button.active { border-color:var(--admin-green) !important; background:var(--admin-green) !important; color:#10130b !important; }
  body.admin-mode #adminViewport {
    position:fixed; inset:calc(137px + env(safe-area-inset-top, 0px)) 0 0;
    box-sizing:border-box; overflow-x:hidden; overflow-y:auto; overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch; padding:0 max(10px, env(safe-area-inset-right, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)) max(10px, env(safe-area-inset-left, 0px));
  }
  body.admin-mode #adminViewport main { box-sizing:border-box; width:100%; max-width:none !important; margin:10px 0 !important; padding:0 !important; }
  body.admin-mode #adminViewport > #adminDashboardPanel,
  body.admin-mode #adminViewport > #adminOrdersPanel,
  body.admin-mode #adminViewport > #adminProductsPanel,
  body.admin-mode #adminViewport > #adminFinancePanel,
  body.admin-mode #adminViewport > #adminAnalyticsPanel,
  body.admin-mode #adminViewport > #adminPromoPanel,
  body.admin-mode #adminViewport > #adminCrmPanel,
  body.admin-mode #adminViewport > #adminAuditPanel,
  body.admin-mode #adminViewport > #adminBannerPanel,
  body.admin-mode #adminViewport > #adminStockHistoryPanel { box-sizing:border-box; width:100%; min-width:0; margin:0 0 12px !important; padding:14px !important; border-radius:12px !important; }
  body.admin-mode #adminViewport :is(table, .finance-table-wrap, .table-wrap) { max-width:100%; }
  body.admin-mode #adminViewport :is(input,select,textarea) { box-sizing:border-box; max-width:100%; min-width:0; font-size:16px !important; }
  body.admin-mode #adminViewport :is(button,a) { max-width:100%; overflow-wrap:anywhere; }
  body.admin-mode .admin-banner-layout { display:grid; grid-template-columns:minmax(0,1fr); gap:16px; }
  body.admin-mode .admin-banner-fields { display:grid; gap:12px; min-width:0; }
  body.admin-mode .admin-banner-fields label { display:grid; gap:6px; color:#dce0d4; font-size:13px; }
  body.admin-mode .admin-banner-fields fieldset { display:grid; gap:10px; min-width:0; padding:12px; border:1px solid var(--admin-border); border-radius:10px; }
  body.admin-mode .admin-banner-fields legend { padding:0 5px; color:var(--admin-green); font-weight:700; }
  body.admin-mode .admin-banner-fields :is(input,textarea) { width:100%; padding:10px; border:1px solid #34392d; border-radius:8px; background:#0b0d09; color:#f4f5ef; }
  body.admin-mode .admin-banner-image-field input { padding:8px !important; }
  body.admin-mode .admin-banner-image-field small { color:#9a9e91; }
  body.admin-mode .admin-banner-actions { display:grid; gap:8px; }
  body.admin-mode .admin-banner-actions button { min-height:44px; border:1px solid var(--admin-green); border-radius:8px; background:var(--admin-green); color:#10130b; font-weight:750; }
  body.admin-mode .admin-banner-preview-tools { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:10px; }
  body.admin-mode .admin-banner-preview-tools div { display:flex; gap:6px; }
  body.admin-mode .admin-banner-preview { box-sizing:border-box; width:100%; min-height:260px; margin:0; padding:16px; overflow:hidden; }
  body.admin-mode .admin-banner-preview h2 { font-size:clamp(25px,8vw,42px); }
  body.admin-mode.product-editor-open #adminViewport { overflow:hidden; }
}

/* Keep the existing hero artwork and copy; constrain only the mobile title box. */
@media (max-width: 700px) {
  #homeIntro { box-sizing:border-box; width:100%; min-width:0; padding:clamp(12px,4vw,18px); overflow:hidden; }
  #homeIntro .hero-copy { box-sizing:border-box; width:min(100%, 620px); min-width:0; }
  #homeIntro .home-kicker { max-width:100%; font-size:clamp(8px,2.5vw,10px); letter-spacing:clamp(1px,.45vw,1.7px); overflow-wrap:anywhere; }
  #homeIntro #homeHeadline { box-sizing:border-box; width:100%; max-width:none; margin:clamp(9px,3vw,13px) 0 9px; font-size:clamp(30px,9.2vw,40px); line-height:1.02; letter-spacing:-.045em; text-wrap:initial; overflow-wrap:normal; }
  #homeIntro #homeHeadline .hero-title-line { display:block; }
  #homeIntro #homeHeadline .hero-title-first { white-space:nowrap; }
  #homeIntro #homeSub { max-width:30ch; font-size:clamp(12px,3.8vw,14px); line-height:1.4; overflow-wrap:anywhere; }
  #homeIntro .hero-cta { max-width:100%; margin-top:14px; padding:11px 13px; white-space:normal; }
}
@media (max-width: 360px) {
  #homeIntro { min-height:310px; padding:12px; }
  #homeIntro #homeHeadline { max-width:none; font-size:30px; line-height:1.02; }
  #homeIntro .home-kicker { letter-spacing:1px; }
}

/* Browser profile and administrator sign-in */
.auth-page{min-height:100vh;background:#090909;color:#f5f5f5}
.auth-header{height:68px;padding:12px clamp(16px,4vw,56px);display:flex;align-items:center;background:#090909;border-bottom:1px solid #252525}
.auth-header .store-logo{color:#fff;text-decoration:none;font-size:19px;font-weight:800;letter-spacing:2px}
.auth-header .language-switch{margin-left:auto}
.auth-main{width:min(100% - 32px,460px);margin:clamp(42px,10vh,110px) auto;padding:0}
.auth-card{padding:clamp(22px,6vw,36px);border:1px solid #292929;border-radius:8px;background:#101010}
.auth-kicker{color:#999;font-size:10px;font-weight:700;letter-spacing:2px}
.auth-card h1{margin:12px 0;color:#fff;font-size:clamp(26px,7vw,34px);font-style:normal;letter-spacing:-.5px;line-height:1.15}
.auth-card p{color:#aaa;line-height:1.5}
.auth-card form{display:grid;gap:16px;margin-top:24px}
.auth-field{display:grid;gap:7px;color:#ccc;font-size:12px}
.auth-field input{box-sizing:border-box;width:100%;height:46px;padding:0 12px;border:1px solid #3a3a3a;border-radius:5px;background:#090909;color:#fff;font:inherit}
.auth-field input:focus{border-color:#aaa;outline:2px solid #fff;outline-offset:2px}
.auth-primary,.auth-secondary{box-sizing:border-box;display:inline-flex;min-height:46px;align-items:center;justify-content:center;padding:12px 16px;border:1px solid #fff;border-radius:5px;background:#fff;color:#090909;text-decoration:none;font:700 13px Arial,Helvetica,sans-serif;cursor:pointer}
.auth-secondary{margin-top:12px;border-color:#444;background:#151515;color:#fff}
.auth-primary:disabled,.auth-secondary:disabled{opacity:.55;cursor:wait}
.auth-status{min-height:20px;margin:12px 0;color:#f3b4b4!important;font-size:12px}
.auth-back{display:inline-block;margin-top:12px;color:#aaa;text-decoration:none;font-size:12px}
.auth-back:hover{color:#fff}
.auth-card [hidden]{display:none!important}

/* Premium buyer profile, scoped to its existing standalone page. */
body.profile-page .auth-main{width:min(100% - 32px,720px)}
body.profile-page .auth-card{display:grid;gap:16px}
body.profile-page .auth-card>h1{margin:0}
body.profile-page .auth-card>p{margin:0}
.profile-dashboard{display:grid;gap:12px;margin-top:4px}
.profile-panel{min-width:0;padding:18px;border:1px solid #292929;border-radius:8px;background:#151515}
.profile-member{display:grid;gap:9px}
.profile-section-label,.profile-orders>span>small{color:#999;font-size:10px;font-weight:700;letter-spacing:2px}
.profile-member-name{min-width:0;color:#fff;font-size:clamp(20px,5vw,28px);font-weight:700;line-height:1.2;overflow-wrap:anywhere}
.profile-verified{width:max-content;max-width:100%;padding:5px 9px;border:1px solid #292d23;border-radius:4px;color:#c6ff00;font-size:11px;line-height:1.3}
.profile-orders{display:flex;min-height:72px;align-items:center;justify-content:space-between;gap:16px;color:#fff;text-decoration:none;transition:border-color .15s,background .15s}
.profile-orders:hover,.profile-orders:focus-visible{border-color:#c6ff00;background:#151515}
.profile-orders>span:first-child{display:grid;gap:7px;min-width:0}
.profile-orders>span>strong{font-size:16px;line-height:1.25}
.profile-orders-arrow{flex:none;color:#c6ff00;font-size:24px;line-height:1}
.profile-form{display:grid;gap:12px;margin:0!important}
.profile-section-title{margin:0 0 16px;color:#f5f5f5;font-size:14px;font-weight:700;letter-spacing:.3px}
.profile-fields{display:grid;gap:16px}
.profile-email-note{margin:0;color:#999;font-size:11px;line-height:1.45}
.profile-address-panel{display:grid;gap:4px}
.profile-address-panel .profile-section-title{margin-bottom:12px}
.profile-security{display:grid;gap:0}
.profile-security .profile-section-title{margin-bottom:12px}
.profile-security .auth-secondary{width:100%;margin:0}
@media(min-width:600px){
  .profile-panel{padding:22px}
  .profile-fields{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:18px}
  .profile-email-note{grid-column:1/-1}
}
@media(max-width:360px){
  .profile-panel{padding:15px}
  .profile-dashboard{gap:10px}
}

/* Product editor — ported from admin-reference.html and the supplied mobile screens */
body.product-editor-open{overflow:hidden}
.product-editor-overlay{position:fixed;z-index:5000;left:0;right:0;top:var(--product-editor-viewport-top,0px);box-sizing:border-box;height:var(--product-editor-viewport-height,100dvh);display:flex;align-items:center;justify-content:center;padding:24px;background:rgba(0,0,0,.76);overscroll-behavior:contain;overflow:hidden}
.product-editor{box-sizing:border-box;display:flex;flex-direction:column;width:min(100%,760px);max-height:94dvh;min-height:0;overflow:hidden;padding:20px 22px 0;background:#131313;color:#fff;border:1px solid #232323;border-radius:14px;overscroll-behavior:contain;font-family:Montserrat,system-ui,sans-serif;font-size:15px;line-height:1.5}
.product-editor-scroll{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;scroll-padding-bottom:24px;touch-action:pan-y}
.product-editor-header{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 24px;padding:0;background:none;border:0}
.product-editor h2{margin:0;color:#f7f7f7;font-size:clamp(23px,5vw,30px);font-weight:600;letter-spacing:-.5px;line-height:1.2;text-transform:none}
.product-editor-close{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;padding:0!important;border:1px solid #292929!important;border-radius:10px!important;background:#121212!important;color:#f3f3f3!important;font:400 24px/1 Arial,sans-serif!important}
.product-editor-section{margin:0;padding:22px 0 24px;border-bottom:1px solid #292929}
.product-editor-section:first-of-type{padding-top:0}
.product-editor-section h3{margin:0 0 18px;color:#d1d1d1;font-size:17px;font-weight:650;letter-spacing:0;line-height:1.3}
.product-editor-section h3 span{font-weight:500}
.product-photo-gallery{display:flex;gap:10px;flex-wrap:wrap;min-height:84px}
.product-photo-thumb,.product-photo-add-tile{position:relative;flex:0 0 84px;width:84px;height:84px;overflow:hidden;border:1px solid #232323;border-radius:10px;background:#0a0a0a}
.product-photo-thumb img{display:block;width:100%;height:100%;object-fit:cover}
.product-photo-thumb img.broken{opacity:.25}
.product-photo-thumb.is-main{border-color:#fff}
.product-photo-main{position:absolute;left:3px;right:24px;bottom:3px;min-height:19px;padding:2px 4px!important;overflow:hidden;border:0!important;border-radius:5px!important;background:rgba(0,0,0,.76)!important;color:#fff!important;font-size:9px!important;line-height:1.2!important;text-overflow:ellipsis;white-space:nowrap}
.product-photo-main:disabled{background:#fff!important;color:#090909!important}
.product-photo-remove{position:absolute;top:3px;right:3px;width:22px;height:22px;min-height:22px!important;padding:0!important;border:0!important;border-radius:50%!important;background:rgba(0,0,0,.78)!important;color:#fff!important;font:16px/1 Arial,sans-serif!important}
.product-photo-add-tile{display:grid;place-items:center;padding:0!important;border:1px dashed #555!important;color:#aaa!important;font:300 30px/1 Arial,sans-serif!important}
.product-photo-tools{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:12px}
.product-photo-add{min-height:38px;padding:8px 12px!important;border:1px solid #333!important;border-radius:10px!important;background:#0a0a0a!important;color:#eee!important;font-size:12px!important;font-weight:600!important}
.product-editor-muted,.product-editor-note{color:#909090;font-size:12px;line-height:1.45}
.product-editor-message{min-height:16px;color:#aaa;font-size:11px}
.product-editor-photo-url{margin-top:16px}
.product-editor-fields{display:grid;grid-template-columns:minmax(0,1fr);gap:15px 12px}
.product-editor-grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.product-editor-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.product-editor-field{display:flex;flex-direction:column;gap:7px;min-width:0;color:#999;font-size:13px;line-height:1.35}
.product-editor-field>span{display:block;color:#999}
.product-editor input:not([type="checkbox"]),.product-editor select,.product-editor textarea{box-sizing:border-box;width:100%;max-width:100%;min-width:0;min-height:40px;margin:0!important;padding:10px 12px!important;border:1px solid #282828!important;border-radius:10px!important;background:#0a0a0a!important;color:#f3f3f3!important;font-family:inherit!important;font-size:15px!important;font-weight:400!important;line-height:1.4!important;box-shadow:none!important}
.product-editor textarea{min-height:86px;resize:vertical}
.product-editor input::placeholder,.product-editor textarea::placeholder{color:#6f6f6f}
.product-editor input:focus,.product-editor select:focus,.product-editor textarea:focus,.product-editor button:focus-visible{outline:2px solid #fff;outline-offset:2px;border-color:#777!important}
.product-editor input[readonly]{color:#777!important}
.product-editor-fields.product-editor-finance-inputs{align-items:end;gap:14px 12px}
.product-editor-field-wide{grid-column:1/-1}
.product-editor-target-margin{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:10px;grid-column:1/-1}
.product-editor-target-margin-error{display:none;grid-column:1/-1;margin:2px 0 0;color:#ef8d7b;font-size:12px;line-height:1.35}
.product-editor-target-margin-error.is-visible:not([hidden]){display:block}
.product-editor .product-editor-target-margin-error[hidden]{display:none!important}
.product-editor-calculate{min-height:44px;padding:10px 12px!important;border:1px solid #292929!important;border-radius:10px!important;background:#151515!important;color:#f4f4f4!important;font-family:inherit!important;font-size:13px!important;font-weight:600!important;line-height:1.25!important;white-space:normal}
.product-editor-note{margin:12px 0 0}
.product-editor-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:18px}
.product-editor-metric{display:flex;flex-direction:column;justify-content:center;gap:8px;min-width:0;min-height:76px;padding:12px;border:1px solid #232323;border-radius:10px;background:#0a0a0a}
.product-editor-metric span{color:#999;font-size:12px;line-height:1.35}
.product-editor-metric strong{color:#f3f3f3;font-size:18px;font-weight:600;line-height:1.2;overflow-wrap:anywhere}
.product-editor-metric strong.positive{color:#35d49b}
.product-editor-metric strong.negative{color:#f07474}
.product-size-chips{display:flex;flex-wrap:wrap;gap:8px;margin:2px 0 4px}
.product-size-chip{display:grid;place-items:center;min-width:44px;height:44px;padding:0 12px!important;border:1px solid #2b2b2b!important;border-radius:999px!important;background:#121212!important;color:#c8c8c8!important;font-family:inherit!important;font-size:15px!important;font-weight:500!important;line-height:1!important}
.product-size-chip.selected{border-color:#8b8b8b!important;background:#202020!important;color:#fff!important}
.product-editor-size-stock-rows{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:5px}
.product-editor-size-stock-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 10px;border:1px solid #282828;border-radius:10px;background:#090909;color:#ddd}
.product-editor-size-stock-row input{width:82px;min-height:36px;text-align:center}
.product-editor-stock-warning{min-height:18px;margin-top:12px;color:#ef8d7b;font-size:13px}
.product-modal-price-line{display:flex;align-items:baseline;gap:10px}
.product-modal-price-line .product-modal-price{margin:8px 0}
.product-old-price{color:#898989;font-size:.72em;font-weight:500;text-decoration:line-through}
.product-editor-visibility{display:flex;align-items:center;gap:10px;margin-top:14px;color:#ddd;font-size:13px}
.product-editor-visibility input{width:20px;height:20px;margin:0;accent-color:#fff}
.product-editor-actions{position:relative;z-index:8;display:grid;flex:0 0 auto;grid-template-columns:1fr;gap:9px;margin:0 -22px;padding:12px 22px calc(12px + env(safe-area-inset-bottom,0px));background:linear-gradient(180deg,rgba(19,19,19,.96),#131313 18%);border:0;color:inherit;font-size:initial;letter-spacing:normal;text-align:initial}
.product-editor-action-secondary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.product-editor-actions button{min-height:46px;padding:12px!important;border-radius:12px!important;font-family:inherit!important;font-size:14px!important;font-weight:600!important;line-height:1.2!important}
.product-editor-cancel{border:1px solid #303030!important;background:#171717!important;color:#ddd!important}
.product-editor-duplicate{border:1px solid #303030!important;background:#171717!important;color:#ddd!important}
.product-editor-delete{border:1px solid #5a1f1d!important;background:#171717!important;color:#ff7b77!important}
.product-editor-save{min-height:50px!important;border:1px solid #f3f3f3!important;background:#f3f3f3!important;color:#111!important;font-size:15px!important;font-weight:750!important}
.product-editor-save:disabled{opacity:.65}
.product-editor-status{grid-column:1/-1;min-height:17px;color:#a7a7a7;font-size:12px;line-height:1.4;text-align:right}
.product-editor-status[data-state="loading"]{color:#d0d0d0}
.product-editor-status[data-state="success"]{color:#35d49b}
.product-editor-status[data-state="error"]{color:#ef8d7b}
.product-editor-help{color:#858585;font-size:11px;line-height:1.4}
.product-color-chips{display:flex;flex-wrap:wrap;gap:8px;margin:2px 0 4px}
.product-color-chip{display:inline-flex;align-items:center;gap:7px;min-height:37px;padding:7px 11px!important;border:1px solid #2b2b2b!important;border-radius:999px!important;background:#121212!important;color:#c8c8c8!important;font-family:inherit!important;font-size:12px!important;font-weight:500!important;line-height:1.2!important}
.product-color-chip.selected{border-color:#858585!important;background:#202020!important;color:#fff!important}
.product-color-swatch{width:13px;height:13px;flex:0 0 13px;border:1px solid #777;border-radius:50%;background:#555}
.product-color-swatch.custom{background:#6c6c6c}
.product-card-actions{display:flex;gap:8px;margin-top:11px}
.product-card-edit{width:100%;padding:10px 12px!important;border:1px solid #343434!important;border-radius:9px!important;background:#171717!important;color:#e7e7e7!important;font-family:inherit!important;font-size:12px!important;font-weight:600!important;line-height:1.2!important}
.product-card-restock{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:9px;color:#999;font-size:11px}
.product-card-restock .product-secondary{padding:7px 10px!important;border:1px solid #343434!important;border-radius:7px!important;background:#151515!important;color:#ddd!important}
.product-card-warning{width:100%;color:#e18a7a}
@media(max-width:700px){
.product-editor-overlay{display:block;top:var(--product-editor-viewport-top,0px);height:var(--product-editor-viewport-height,100dvh);padding:0;background:#121212}
 .product-editor{width:100%;height:100%;max-height:none;padding:calc(22px + env(safe-area-inset-top,0px)) 21px 0;border:0;border-radius:0}
 .product-editor-scroll{padding-bottom:16px;scroll-padding-bottom:24px}
 .product-editor-header{margin-bottom:20px}
 .product-editor-section{padding:20px 0 22px}
 .product-editor-section:first-of-type{padding-top:0}
 .product-editor-section h3{margin-bottom:16px;font-size:16px}
 .product-editor-field{font-size:13px}
 .product-editor-fields.product-editor-grid-2{grid-template-columns:1fr}
 .product-editor-fields.product-editor-finance-inputs,.product-editor-fields.product-editor-grid-3{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px 10px}
 .product-editor-fields.product-editor-finance-inputs .product-editor-field:nth-child(3){grid-column:1/-1}
 .product-editor-target-margin{grid-column:1/-1}
 .product-editor-size-stock{grid-column:1/-1}
 .product-editor-metrics{gap:9px}
 .product-editor-metric{min-height:70px;padding:12px}
 .product-editor-metric strong{font-size:17px}
 .product-editor-actions{margin:0 -21px;padding:10px 21px calc(10px + env(safe-area-inset-bottom));background:linear-gradient(180deg,rgba(19,19,19,.96),#131313 20%)}
 .product-editor-actions button{min-height:48px}
 .product-editor-status{text-align:left}
 .product-color-chip{min-height:40px}
 .product-photo-thumb,.product-photo-add-tile{flex-basis:72px;width:72px;height:72px}
 .product-editor-action-secondary{gap:6px}
 .product-editor-actions button{padding:9px 6px!important;font-size:12px!important}
}
@media(min-width:701px){
 .product-editor [hidden]{display:none!important}
}
.product-editor [hidden]{display:none!important}
@media(max-width:700px){
  .product-editor-overlay{inset-inline:0;overflow:hidden;overscroll-behavior:none}
  .product-editor{padding-top:calc(14px + env(safe-area-inset-top,0px))}
  .product-editor-scroll{padding-bottom:10px;scroll-padding-block:18px}
  .product-editor-section{padding:16px 0 18px}
  .product-editor-section h3{margin-bottom:12px}
  .product-editor-metrics{gap:7px;margin-top:12px}
  .product-editor-metric{min-height:60px;padding:9px;gap:5px}
  .product-editor-metric span{font-size:11px}
  .product-editor-metric strong{font-size:15px}
  .product-editor-actions{display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:"save" "secondary" "status";gap:5px;margin:0 -21px;padding:6px 14px calc(6px + env(safe-area-inset-bottom,0px));}
  .product-editor-save{grid-area:save;min-height:42px!important;padding:8px 12px!important}
  .product-editor-action-secondary{grid-area:secondary;gap:6px}
  .product-editor-actions .product-editor-action-secondary button{min-height:34px;padding:5px 6px!important;font-size:11px!important}
  .product-editor-status{grid-area:status;min-height:14px;line-height:1.2}
}
/* Finance summary: actual margin is read-only and visually distinct from the target. */
.product-editor-finance-summary{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:12px;margin-top:14px;align-items:stretch}
.product-editor .product-editor-finance-summary .product-editor-target-margin{grid-column:auto;min-width:0;padding:13px;border:1px solid #30352a;border-radius:12px;background:#10120e}
.product-editor-actual-margin-card{box-sizing:border-box;display:flex;flex-direction:column;justify-content:center;gap:6px;min-width:0;padding:13px 15px;border:1px solid #46552e;border-radius:12px;background:linear-gradient(145deg,#192113,#10140d)}
.product-editor-actual-margin-card>span{color:#bac99d;font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}
.product-editor .product-editor-actual-margin-card input{box-sizing:border-box;width:100%;min-height:38px;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;color:#c7ff72!important;font-size:clamp(24px,4vw,32px)!important;font-weight:800!important;line-height:1.1!important;letter-spacing:-.03em;box-shadow:none!important}
.product-editor .product-editor-actual-margin-card input:focus{outline:0!important}
.product-editor-actual-margin-card small{color:#8d9880;font-size:10px;line-height:1.35}
.product-editor-finance-summary .product-editor-target-margin-error{grid-column:1/-1;margin:0;padding:0 2px}
@media(max-width:700px){
  .product-editor-finance-summary{grid-template-columns:minmax(0,1fr);gap:9px;margin-top:11px}
  .product-editor-actual-margin-card{min-height:92px;padding:12px 14px}
  .product-editor .product-editor-finance-summary .product-editor-target-margin{padding:11px;grid-column:auto}
}
.product-color-picker{grid-column:1/-1}
.product-color-chips{display:flex;flex-wrap:wrap;gap:7px;margin:4px 0}
.product-color-chip-wrap{display:inline-flex;align-items:center;gap:3px;padding:2px 4px 2px 2px;border:1px solid #2b2b2b;border-radius:999px;background:#121212}
.product-color-chip{display:inline-flex;align-items:center;gap:7px;min-height:35px;padding:6px 9px!important;border:0!important;border-radius:999px!important;background:transparent!important;color:#c8c8c8!important;font-family:inherit!important;font-size:12px!important;font-weight:500!important;line-height:1.2!important}
.product-color-chip.selected{color:#fff!important}
.product-color-chip-wrap.selected{border-color:#858585;background:#202020}
.product-color-chip-action{display:grid;place-items:center;width:28px;height:28px;min-height:28px;padding:0!important;border:1px solid #343434!important;border-radius:50%!important;background:#171717!important;color:#ddd!important;font-size:14px!important}
.product-color-add,.product-variants-enable{justify-self:start;min-height:38px;padding:8px 12px!important;border:1px solid #343434!important;border-radius:9px!important;background:#171717!important;color:#ddd!important;font:600 12px/1.2 Arial,Helvetica,sans-serif!important}
.product-variants-editor{display:grid;gap:10px}
.product-variants-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.product-variants-heading strong{font-size:14px;color:#ddd}
.product-variants-total{color:#c7ff72;font-size:12px;font-weight:700;white-space:nowrap}
.product-variants-list{display:grid;gap:9px}
.product-variant-color-group{display:grid;gap:8px;padding:11px;border:1px solid #282828;border-radius:10px;background:#090909}
.product-variant-color-head{display:flex;align-items:center;gap:7px;padding-bottom:7px;border-bottom:1px solid #222}
.product-variant-color-name{display:flex;align-items:center;gap:9px;flex:1;min-width:0;color:#eee;font-size:13px}
.product-variant-color-name strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.product-variant-row{display:grid;grid-template-columns:minmax(0,1fr) 92px 34px;align-items:center;gap:8px}
.product-variant-size{color:#bbb;font-size:12px;font-weight:600}
.product-editor .product-variant-row input{width:100%;min-height:36px;padding:6px 8px!important;text-align:center}
.product-variant-remove{display:grid;place-items:center;width:34px;min-height:34px;padding:0!important;border:1px solid #343434!important;border-radius:8px!important;background:#171717!important;color:#c9c9c9!important;font-size:16px!important}
.product-variant-add-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px}
.product-variant-add-row input{min-width:0;min-height:38px}
.product-editor .product-variant-add-size{display:grid;place-items:center;width:38px;min-height:38px;padding:0!important;border:1px solid #343434!important;border-radius:8px!important;background:#171717!important;color:#ddd!important;font:700 20px Arial,Helvetica,sans-serif!important}
.product-variant-error{color:#ef8d7b;font-size:11px}
.product-color-modal-overlay{position:fixed;z-index:10020;inset:0;display:grid;place-items:center;padding:20px env(safe-area-inset-right,0px) 20px env(safe-area-inset-left,0px);background:rgba(0,0,0,.78);backdrop-filter:blur(6px)}
.product-color-modal{display:grid;gap:14px;width:min(100%,380px);padding:22px;border:1px solid #373737;border-radius:14px;background:#151515;box-shadow:0 20px 70px rgba(0,0,0,.55)}
.product-color-modal h3{margin:0;color:#f1f1f1;font-size:17px;font-weight:650}
.product-color-modal-actions{display:flex;justify-content:flex-end;gap:8px}
.product-color-modal-actions button{min-height:40px;padding:9px 14px!important;border-radius:8px!important;font:600 12px Arial,Helvetica,sans-serif!important}
.product-color-modal-cancel{border:1px solid #343434!important;background:#171717!important;color:#ddd!important}
.product-color-modal-save{border:1px solid #f3f3f3!important;background:#f3f3f3!important;color:#111!important}
.product-color-modal-error{color:#ef8d7b;font-size:12px}
@media(max-width:700px){.product-variant-color-group{padding:10px}.product-variant-row{grid-template-columns:minmax(0,1fr) 82px 36px;gap:7px}.product-variant-row input{min-height:42px}.product-variant-remove{width:36px;min-height:38px}.product-editor .product-variant-add-size{width:42px;min-height:42px}.product-color-chip-wrap{gap:2px}.product-color-chip{min-height:38px}.product-color-chip-action{width:30px;height:30px}.product-color-modal-overlay{padding:18px}.product-color-modal{padding:19px;border-radius:12px}.product-color-modal-actions button{min-height:44px}}

/* Keep the editor's scroll pane, stock grids and action footer inside narrow viewports. */
.product-editor{min-width:0;max-width:100%}
.product-editor-scroll{min-width:0;max-width:100%;width:100%}
.product-editor-fields,.product-editor-fields>*{min-width:0;max-width:100%}
.product-editor-actions,.product-editor-action-secondary{box-sizing:border-box;min-width:0;max-width:100%}
.product-editor-actions button{box-sizing:border-box;min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}
.product-color-chip-wrap{box-sizing:border-box;min-width:0;max-width:100%}
.product-color-chip{min-width:0;max-width:100%}
.product-color-chip>span:last-child{min-width:0;overflow-wrap:anywhere}
.product-variants-heading{min-width:0;flex-wrap:wrap}
.product-variants-heading>*{min-width:0;max-width:100%;overflow-wrap:anywhere}
.product-variants-total{white-space:normal}
@media(max-width:700px){
  .product-editor-overlay{left:0;right:0;width:100%;max-width:100vw;overflow-x:hidden}
  .product-editor{width:100%;max-width:100%;min-width:0}
  .product-editor-scroll{width:100%;min-width:0;overflow-x:hidden;overflow-y:auto}
  .product-editor-fields{width:100%;grid-template-columns:minmax(0,1fr)}
  .product-editor-fields.product-editor-finance-inputs,.product-editor-fields.product-editor-grid-3{grid-template-columns:repeat(2,minmax(0,1fr))}
  .product-editor-actions{width:calc(100% + 42px);max-width:100vw;min-width:0;margin-inline:-21px;padding-left:max(12px,env(safe-area-inset-left,0px));padding-right:max(12px,env(safe-area-inset-right,0px));}
  .product-editor-action-secondary{width:100%;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
  .product-editor-actions button{width:100%;min-width:0;padding-inline:4px!important;font-size:clamp(10px,3vw,12px)!important;line-height:1.2!important}
  .product-editor-actions .product-editor-status{width:100%;min-width:0;overflow-wrap:anywhere}
  .product-variant-row{grid-template-columns:minmax(0,1fr) minmax(64px,82px) 36px;min-width:0}
  .product-variant-row>*{min-width:0;max-width:100%}
}

/* iPhone stock editor: constrain each nested grid and keep the action bar usable above the home indicator. */
@media(max-width:700px){
  body.product-editor-open{width:100%;max-width:100vw;overflow:hidden;overflow-x:hidden;overscroll-behavior:none}
  .product-editor-overlay{box-sizing:border-box;max-width:100vw;padding-inline:0}
  .product-editor{--product-editor-safe-left:max(21px,env(safe-area-inset-left,0px));--product-editor-safe-right:max(21px,env(safe-area-inset-right,0px));box-sizing:border-box;width:100%;min-width:0;max-width:100%;overflow:hidden;padding-left:var(--product-editor-safe-left);padding-right:var(--product-editor-safe-right)}
  .product-editor-scroll{box-sizing:border-box;flex:1 1 0;min-width:0;min-height:0;max-width:100%;padding-bottom:max(16px,env(safe-area-inset-bottom,0px));overflow-x:hidden;overflow-y:auto;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;scroll-padding-block:20px}
  .product-editor-section,.product-editor-fields,.product-editor-inventory .product-editor-fields,.product-variants-editor,.product-variants-list{box-sizing:border-box;width:100%;min-width:0;max-width:100%}
  .product-editor-inventory .product-editor-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
  .product-editor-inventory .product-editor-field-wide{grid-column:1/-1;min-width:0}
  .product-editor-inventory .product-editor-field{overflow-wrap:anywhere}
  .product-variants-heading{align-items:flex-start;gap:6px}
  .product-variants-heading strong,.product-variants-total{min-width:0;max-width:100%;overflow-wrap:anywhere;white-space:normal}
  .product-variant-color-group{box-sizing:border-box;width:100%;min-width:0;max-width:100%;padding:9px}
  .product-variant-color-head{display:grid;grid-template-columns:minmax(0,1fr) 44px 44px;align-items:center;gap:6px;min-width:0}
  .product-variant-color-name{min-width:0;max-width:100%;gap:6px;overflow-wrap:anywhere}
  .product-variant-color-name strong{min-width:0;white-space:normal;overflow-wrap:anywhere;word-break:break-word}
  .product-variant-color-rename,.product-variant-color-delete{box-sizing:border-box;flex:0 0 44px;width:44px!important;height:44px;min-width:44px;min-height:44px!important;padding:0!important;justify-self:end}
  .product-variant-row{box-sizing:border-box;width:100%;min-width:0;grid-template-columns:minmax(0,1fr) minmax(72px,88px) 44px;gap:6px}
  .product-variant-row>*{box-sizing:border-box;min-width:0;max-width:100%}
  .product-editor .product-variant-row input{width:100%;min-width:0;min-height:44px;padding:6px 5px!important;font-size:16px!important}
  .product-variant-row input[type=text]{text-overflow:clip}
  .product-variant-remove{box-sizing:border-box;flex:0 0 44px;width:44px;min-width:44px;min-height:44px!important}
  .product-editor .product-variant-add-size{width:44px;min-width:44px;min-height:44px}
  .product-editor-actions{box-sizing:border-box;position:relative;inset:auto;flex:0 0 auto;width:calc(100% + var(--product-editor-safe-left) + var(--product-editor-safe-right));min-width:0;max-width:100vw;max-height:45dvh;max-height:45%;margin-inline-start:calc(-1 * var(--product-editor-safe-left));margin-inline-end:calc(-1 * var(--product-editor-safe-right));padding-left:max(12px,env(safe-area-inset-left,0px));padding-right:max(12px,env(safe-area-inset-right,0px));padding-bottom:max(8px,env(safe-area-inset-bottom,0px));overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}
  .product-editor-inventory input:not([type=checkbox]),.product-color-modal input{font-size:16px!important}
  .product-editor-actions button{min-width:0;max-width:100%;overflow-wrap:anywhere}
  .product-editor-actions .product-editor-action-secondary button{min-height:40px}
}

/* Cart and store navigation: one scoped streetwear system */
#cartPage {display:none}
#cartPage.cart-page-open {
  --cart-bg:#080808;--cart-panel:#111;--cart-card:#171717;--cart-line:#303030;
  display:flex;position:fixed;inset:0;z-index:6000;flex-direction:column;
  width:100%;height:100vh;height:100dvh;overflow:hidden;overscroll-behavior:none;
  padding:max(12px,env(safe-area-inset-top,0px)) max(12px,env(safe-area-inset-right,0px)) calc(58px + env(safe-area-inset-bottom,0px)) max(12px,env(safe-area-inset-left,0px));
  background:var(--cart-bg);color:#f5f5f5;box-sizing:border-box
}
#cartPage .cart-page-head {display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:10px;flex:0 0 auto;margin:0 0 12px;padding:2px 0 12px;border-bottom:1px solid var(--cart-line)}
#cartPage .cart-page-head h2 {min-width:0;margin:0;color:#f5f5f5;font-size:clamp(19px,5vw,24px);font-weight:900;letter-spacing:.04em;text-align:center;text-transform:uppercase}
#cartPage .bag-back {display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid var(--cart-line);border-radius:50%;background:#151515;color:#f5f5f5;font-size:22px}
#cartPage .bag-back:hover,#cartPage .bag-back:focus-visible {border-color:#c6ff00;color:#c6ff00}
#cartPage .bag-header-spacer {width:44px;height:44px}
#cartPage .cart {display:flex!important;flex:1 1 auto;flex-direction:column;min-height:0;margin:0;padding:0;overflow:hidden;border:0;background:transparent;color:#f5f5f5}
#cartPage #carttitle {display:none}
#cartPage #cartitems {display:flex;flex:1 1 auto;min-height:0;flex-direction:column;gap:12px;overflow-x:hidden;overflow-y:auto;padding:2px 2px 18px;font-size:14px;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
#cartPage .bag-item {display:grid;grid-template-columns:clamp(104px,30vw,176px) minmax(0,1fr);align-items:stretch;gap:14px;flex:0 0 auto;min-width:0;padding:12px;border:1px solid var(--cart-line);border-radius:14px;background:var(--cart-card)}
#cartPage .bag-photo {display:flex;align-items:center;justify-content:center;width:100%;height:clamp(140px,36vw,220px);overflow:hidden;border-radius:9px;background:#202020;color:#c6ff00;font-size:42px;font-weight:900}
#cartPage .bag-photo img {display:block;width:100%;height:100%;object-fit:contain}
#cartPage .bag-photo.image-unavailable {background:radial-gradient(ellipse at center,#29351a,#111 72%)}
#cartPage .bag-photo.image-unavailable:after {content:"S";font-size:42px;font-weight:1000;font-style:italic;color:#c6ff00}
#cartPage .bag-details {display:flex;min-width:0;max-width:100%;flex-direction:column;align-items:stretch;gap:9px;overflow-wrap:anywhere}
#cartPage .bag-heading {display:flex;align-items:flex-start;justify-content:space-between;gap:8px;min-width:0}
#cartPage .bag-name {min-width:0;color:#f5f5f5;font-size:clamp(14px,3.8vw,17px);line-height:1.3;font-weight:850;letter-spacing:.01em;overflow-wrap:anywhere}
#cartPage .bag-quantity {display:flex;width:100%;min-width:0;flex-direction:column;align-items:flex-start;gap:5px;color:#aaa}
#cartPage .bag-quantity-label {display:block;max-width:100%;color:#aaa;font-size:12px;line-height:1.2;white-space:nowrap;overflow-wrap:normal;word-break:keep-all}
#cartPage .bag-stepper {display:flex;max-width:100%;align-items:center;gap:7px;flex:0 0 auto}
#cartPage .bag-remove-row {display:flex;max-width:100%;align-items:center}
#cartPage .bag-remove {display:flex;flex:0 0 auto;align-items:center;justify-content:center;min-width:84px;max-width:100%;min-height:40px;padding:0 12px;border:1px solid #383838;border-radius:8px;background:transparent;color:#a0a0a0;font-size:11px;font-weight:800;line-height:1;letter-spacing:.06em;text-transform:uppercase;white-space:nowrap;overflow-wrap:normal;word-break:normal;transition:border-color .15s,color .15s,background .15s}
#cartPage .bag-remove:hover,#cartPage .bag-remove:focus-visible {border-color:#c6ff00;background:#202020;color:#c6ff00}
#cartPage .bag-variants {display:flex;flex-wrap:wrap;gap:6px}
#cartPage .bag-variant {max-width:100%;padding:4px 8px;border:1px solid #383838;border-radius:999px;color:#c7c7c7;font-size:11px;line-height:1.3;overflow-wrap:anywhere}
#cartPage .bag-price {color:#c6ff00;font-size:16px;font-weight:900;letter-spacing:.01em}
#cartPage .bag-price-notice,#cartPage .bag-stock-notice {color:#c6ff00;font-size:11px;line-height:1.4}
#cartPage .bag-stepper button {display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;border:1px solid #414141;border-radius:10px;background:#202020;color:#f5f5f5;font-size:23px;font-weight:600}
#cartPage .bag-stepper button:hover,#cartPage .bag-stepper button:focus-visible {border-color:#c6ff00;color:#c6ff00}
#cartPage .bag-stepper button:active {background:#303030}
#cartPage .bag-qty {display:grid;min-width:28px;place-items:center;color:#fff;font-size:16px;font-weight:800;text-align:center}
#cartPage .cartrow {display:flex;width:100%;min-width:0;box-sizing:border-box;flex:0 0 auto;flex-direction:column;align-items:stretch;gap:12px;margin:12px 0 0;padding:14px 0 0;border:0;border-top:1px solid var(--cart-line);background:var(--cart-panel);box-shadow:0 -12px 24px #0009}
#cartPage .bag-total {display:flex;width:100%;min-width:0;align-items:baseline;justify-content:space-between;gap:8px;box-sizing:border-box;padding-inline:2px}
#cartPage .bag-total span {flex:0 1 auto;min-width:0;color:#aaa;font-size:13px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;white-space:nowrap}
#cartPage #total {flex:0 1 auto;max-width:100%;min-width:0;color:#fff;font-size:clamp(14px,4.6vw,24px);font-weight:950;letter-spacing:-.03em;line-height:1.15;text-align:right;white-space:nowrap}
#cartPage #checkout {width:100%;min-height:56px;padding:14px 18px;border:1px solid #c6ff00;border-radius:10px;background:#c6ff00;color:#080808;font-size:14px;font-weight:950;letter-spacing:.06em;text-transform:uppercase;transition:background .15s,transform .15s}
#cartPage #checkout:hover,#cartPage #checkout:focus-visible {border-color:#dcff6b;background:#dcff6b;color:#080808}
#cartPage #checkout:active {transform:scale(.99);background:#b4e800}
#cartPage #cartitems.is-empty {justify-content:center;overflow-y:auto}
#cartPage .bag-empty {display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:300px;padding:24px 18px;border:1px solid var(--cart-line);border-radius:16px;background:linear-gradient(145deg,#171717,#101010);text-align:center}
#cartPage .bag-empty-mark {display:grid;width:76px;height:76px;place-items:center;margin-bottom:18px;border:1px solid #c6ff00;border-radius:50%;color:#c6ff00;font-size:46px;font-weight:1000;font-style:italic}
#cartPage .bag-empty strong {color:#fff;font-size:20px;font-weight:900;letter-spacing:.04em;text-transform:uppercase}
#cartPage .bag-empty p {max-width:260px;margin:8px 0 20px;color:#aaa;font-size:13px}
#cartPage .bag-empty-action {min-height:48px;padding:12px 18px;border:1px solid #c6ff00;border-radius:9px;background:#c6ff00;color:#080808;font-size:12px;font-weight:900;letter-spacing:.04em;text-transform:uppercase}
#cartPage .bag-empty-action:hover,#cartPage .bag-empty-action:focus-visible {background:#dcff6b}
#bottomNav {display:none}
.bottom-nav button {position:relative;display:flex;min-width:0;min-height:44px;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:3px 1px;border:0;border-radius:8px;background:transparent;color:#898989;font:inherit;transition:color .15s,background .15s}
.bottom-nav button span {position:relative;color:currentColor;font-size:20px;line-height:1.1}
.bottom-nav button span svg {display:block;width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.bottom-nav button small {font-size:10px;line-height:1.2;white-space:nowrap}
.bottom-nav button.active,.bottom-nav button[aria-current="page"] {color:#c6ff00}
.bottom-nav button:focus-visible {outline:2px solid #c6ff00;outline-offset:1px}
#bottomCartBadge:not(:empty) {position:absolute;top:-5px;right:-11px;min-width:15px;height:15px;padding:0 3px;border-radius:10px;background:#c6ff00;color:#080808;font-size:9px;font-style:normal;font-weight:900;text-align:center;line-height:15px}
#ordersPage {display:none}
#ordersPage.orders-page-open {display:block;position:fixed;inset:0;z-index:6001;overflow:auto;overscroll-behavior:contain;background:var(--bg);color:var(--text);padding:18px 16px calc(68px + env(safe-area-inset-bottom,0px));box-sizing:border-box}
#ordersPage .cart-page-head {display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);padding:0 0 16px;margin:0 0 16px}
#ordersPage .cart-page-head button {background:transparent;color:var(--text);border:0;padding:10px 0}
#ordersPage .cart-page-head h2 {font-size:22px;color:var(--text)}
.customer-orders {display:grid;gap:10px}
.customer-order {display:grid;gap:7px;padding:15px;background:var(--panel);border:1px solid var(--line);border-radius:6px;overflow-wrap:anywhere}
.customer-order small {color:var(--muted)}
.customer-order p {margin:0}
.customer-order-item {display:grid;gap:3px;padding:7px 0;border-bottom:1px solid var(--line)}
.customer-order-item.has-photo {grid-template-columns:56px minmax(0,1fr);align-items:center;gap:10px}
.customer-order-copy {display:grid;gap:3px;min-width:0}
.customer-order-photo {width:56px;height:56px;object-fit:cover;border-radius:4px;background:var(--panel)}

/* Checkout dialogs are isolated from storefront and admin controls. */
.checkout-dialog {display:none;position:fixed;z-index:10000;inset:var(--checkout-vv-top,0px) 0 auto;height:var(--checkout-vv-height,100dvh);align-items:center;justify-content:center;overflow-y:auto;overscroll-behavior:contain;padding:max(20px,env(safe-area-inset-top,0px)) max(16px,env(safe-area-inset-right,0px)) max(20px,env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px));box-sizing:border-box;opacity:0;transition:opacity .2s ease}
.checkout-dialog.is-open {display:flex;opacity:1}
.checkout-dialog-backdrop {position:fixed;inset:0;background:#000c;backdrop-filter:blur(5px)}
.checkout-dialog-card {position:relative;width:min(100%,440px);max-height:100%;overflow-y:auto;padding:clamp(22px,6vw,32px);border:1px solid #35382d;border-radius:18px;background:linear-gradient(145deg,#1b1c18,#10110f 72%);box-shadow:0 28px 90px #000b;animation:checkout-dialog-enter .24s cubic-bezier(.2,.75,.25,1) both}
.checkout-dialog-card h2 {margin:0 0 8px;color:#f7f8f2;font-size:clamp(21px,5vw,26px);font-weight:900;letter-spacing:.01em}
.checkout-dialog-card p {margin:0 0 22px;color:#aaa;font-size:14px;line-height:1.5}
.checkout-dialog-card label {display:block;margin-bottom:8px;color:#dedfd8;font-size:13px;font-weight:700}
.checkout-dialog-card input {display:block;width:100%;min-height:52px;padding:13px 14px!important;border:1px solid #41443a!important;border-radius:10px!important;background:#090a08!important;color:#f5f6ef!important;font-size:16px!important;outline:none;box-sizing:border-box}
.checkout-dialog-card input:focus {border-color:#c6ff00!important;box-shadow:0 0 0 3px #c6ff0026}
.checkout-dialog-card input[hidden],.checkout-dialog-card label[hidden] {display:none}
.checkout-dialog-error {min-height:0;margin-top:0;color:#ffc2b8;font-size:12px;line-height:1.4}
.checkout-dialog-error:not(:empty) {margin-top:8px}
.checkout-dialog-actions {display:flex;flex-direction:column-reverse;gap:9px;margin-top:22px}
.checkout-dialog-actions button {width:100%;min-height:50px;padding:12px 18px;border:1px solid transparent;border-radius:10px;font-size:14px;font-weight:900;letter-spacing:.02em;transition:background .15s,border-color .15s,transform .15s}
#checkoutDialogSubmit {background:#c6ff00;color:#080a05}
#checkoutDialogSubmit:hover,#checkoutDialogSubmit:focus-visible {background:#dcff6b}
#checkoutDialogCancel {border-color:#3d4037;background:#20211d;color:#d6d8cf}
#checkoutDialogCancel:hover,#checkoutDialogCancel:focus-visible {border-color:#74796a;background:#292a25}
body.checkout-dialog-open {overflow:hidden}
@keyframes checkout-dialog-enter {from{transform:translateY(12px) scale(.985);opacity:0}to{transform:translateY(0) scale(1);opacity:1}}
@media(min-width:480px) {.checkout-dialog-actions {flex-direction:row-reverse}.checkout-dialog-actions button {width:auto;min-width:130px;flex:1}}
@media(prefers-reduced-motion:reduce) {.checkout-dialog,.checkout-dialog-card {animation:none;transition:none}}
@media(min-width:701px) {
  body.cart-page-mode #bottomNav {position:fixed;z-index:6200;right:0;bottom:0;left:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));padding:6px max(12px,env(safe-area-inset-right,0px)) calc(6px + env(safe-area-inset-bottom,0px)) max(12px,env(safe-area-inset-left,0px));border-top:1px solid #303030;background:#090909f5;backdrop-filter:blur(16px)}
  #cartPage.cart-page-open {padding-right:max(24px,env(safe-area-inset-right,0px));padding-left:max(24px,env(safe-area-inset-left,0px))}
  #cartPage .bag-item {grid-template-columns:clamp(150px,22vw,220px) minmax(0,1fr);gap:18px;padding:16px}
}
@media(max-width:700px) {
  body:not(.admin-mode):has(#bottomNav) main {padding-bottom:calc(74px + env(safe-area-inset-bottom,0px))}
  body:not(.admin-mode) #bottomNav {position:fixed;z-index:6200;right:0;bottom:0;left:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px;padding:5px max(6px,env(safe-area-inset-right,0px)) calc(5px + env(safe-area-inset-bottom,0px)) max(6px,env(safe-area-inset-left,0px));border-top:1px solid #303030;background:#090909f5;backdrop-filter:blur(16px);box-sizing:border-box}
  body.cart-page-mode header {visibility:hidden}
  #cartPage.cart-page-open {padding-bottom:calc(58px + env(safe-area-inset-bottom,0px))}
  #cartPage .bag-item {grid-template-columns:clamp(92px,30vw,132px) minmax(0,1fr);gap:10px;padding:10px}
  #cartPage .bag-photo {height:clamp(132px,38vw,174px)}
  #cartPage .bag-details {gap:7px}
  #cartPage .bag-name {font-size:clamp(13px,3.8vw,16px)}
  #cartPage .bag-quantity {gap:5px}
  #ordersPage.orders-page-open {padding-top:calc(14px + env(safe-area-inset-top,0px));padding-bottom:calc(68px + env(safe-area-inset-bottom,0px))}
}
@media(max-width:380px) {
  #cartPage.cart-page-open {padding-right:max(9px,env(safe-area-inset-right,0px));padding-left:max(9px,env(safe-area-inset-left,0px))}
  #cartPage .bag-item {grid-template-columns:92px minmax(0,1fr);gap:9px;padding:9px}
  #cartPage .bag-photo {height:128px}
  #cartPage .cartrow {gap:10px;padding-top:12px}
  #cartPage .bag-total {gap:6px}
  #cartPage .bag-total span {font-size:12px;letter-spacing:.04em}
  #cartPage #total {font-size:clamp(13px,4.4vw,16px)}
}

/* Main hero keeps one centered composition on phones and desktop. */
#homeIntro .hero-copy { box-sizing:border-box; width:min(100%,620px); min-width:0; margin-inline:auto; text-align:center; }
#homeIntro .home-kicker { display:block; width:100%; max-width:100%; text-align:center; }
#homeIntro #homeHeadline {
  box-sizing:border-box; width:100%; max-width:none;
  margin:clamp(9px,1.2vw,17px) 0 clamp(9px,1vw,14px);
  font-size:clamp(30px,9.2vw,88px); line-height:1.02; letter-spacing:-.045em;
  text-align:center; text-wrap:initial; overflow-wrap:normal; word-break:normal;
}
#homeIntro #homeHeadline .hero-title-line { display:block; width:100%; text-align:center; }
#homeIntro #homeHeadline .hero-title-first { white-space:nowrap; }
#homeIntro #homeSub { box-sizing:border-box; width:min(100%,430px); margin:0 auto; text-align:center; overflow-wrap:anywhere; }
#homeIntro .hero-cta {
  min-height:48px; margin-inline:auto; padding:12px 16px; gap:14px;
  border:1px solid #f5f5f5; border-radius:2px; background:#050505; color:#fff;
  font-size:11px; font-weight:700; letter-spacing:1px; text-transform:uppercase;
}
#homeIntro .hero-cta span { color:#fff; font-size:18px; line-height:1; }

/* Unified product detail modal: centered vertical composition on every screen. */
body.product-detail-open { overflow:hidden; }
.product-modal-overlay {
  box-sizing:border-box; overflow-y:auto; overscroll-behavior:contain;
  padding:max(12px,env(safe-area-inset-top,0px)) max(12px,env(safe-area-inset-right,0px)) max(12px,env(safe-area-inset-bottom,0px)) max(12px,env(safe-area-inset-left,0px));
}
.product-modal-dialog {
  width:min(100%,600px); max-height:calc(100dvh - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px) - 24px);
  padding:clamp(14px,3vw,22px); overflow:auto; overscroll-behavior:contain; -webkit-overflow-scrolling:touch;
}
.product-modal-layout { display:flex; flex-direction:column; align-items:stretch; min-width:0; gap:0; }
.product-modal-photo {
  position:relative; flex:none; box-sizing:border-box; height:clamp(250px,48vh,460px); min-height:0; margin:0;
  touch-action:pan-y; user-select:none; -webkit-user-select:none;
}
.product-modal-photo img { display:block; object-fit:contain; }
.product-modal-photo img[hidden],.product-modal-placeholder[hidden] { display:none!important; }
.product-modal-placeholder { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; width:100%; height:100%; color:#b7ff32; }
.product-modal-placeholder strong { font-size:clamp(72px,14vw,120px); font-weight:1000; font-style:italic; line-height:.85; }
.product-modal-placeholder span { font-size:10px; font-weight:800; letter-spacing:4px; }
.product-modal-photo-counter { position:absolute; right:12px; bottom:12px; z-index:2; padding:6px 9px; border:1px solid #ffffff35; border-radius:999px; background:#050605c9; color:#fff; font-size:12px; font-variant-numeric:tabular-nums; }
.product-modal-photo-arrow { position:absolute; top:50%; z-index:2; display:grid; place-items:center; width:42px; height:42px; transform:translateY(-50%); border:1px solid #ffffff55; border-radius:50%; background:#080908c9; color:#fff; font-size:30px; line-height:1; cursor:pointer; }
.product-modal-photo-arrow.previous { left:12px; }
.product-modal-photo-arrow.next { right:12px; }
.product-modal-info { display:flex; flex-direction:column; align-items:stretch; min-width:0; padding-top:20px; text-align:center; }
.product-modal-title { margin:0 0 13px; text-align:center; overflow-wrap:anywhere; }
.product-modal-price-line { justify-content:center; margin:0 0 10px; }
.product-modal-price-line .product-modal-price { margin:0; text-align:center; }
.product-modal-description { margin:0 0 12px; text-align:center; }
.product-modal-stock { margin:0 0 15px; text-align:center; }
.product-modal-choice { text-align:center; }
.product-modal-choice select { text-align:center; }
.product-modal-feedback { min-height:20px; margin:8px 0 0; color:#b7ff32; font-size:13px; font-weight:700; }
.product-modal-add { position:sticky; bottom:0; z-index:3; flex:none; box-sizing:border-box; margin:8px 0 0; box-shadow:0 -8px 20px #0d0e0b88; }
.product-modal-add.added { background:#d7ff91; }
.product-modal-close { position:absolute; top:20px; right:20px; margin:0; }
@media (max-width:700px) {
  .product-modal-overlay { align-items:center; padding: max(8px,env(safe-area-inset-top,0px)) max(8px,env(safe-area-inset-right,0px)) max(8px,env(safe-area-inset-bottom,0px)) max(8px,env(safe-area-inset-left,0px)); }
  .product-modal-dialog { width:100%; max-height:calc(100dvh - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px) - 16px); padding:12px; border-radius:18px; }
  .product-modal-photo { height:clamp(220px,38dvh,390px); border-radius:12px; }
  .product-modal-info { padding-top:20px; }
  .product-modal-title { margin-bottom:12px; font-size:clamp(21px,6vw,28px); }
  .product-modal-choice { margin:10px 0; }
  .product-modal-close { top:14px; right:14px; }
}
@media (max-width:360px) {
  .product-modal-dialog { padding:10px; }
  .product-modal-photo { height:clamp(200px,34dvh,300px); }
  .product-modal-info { padding-top:17px; }
}

/* Premium streetwear product cards: scoped to the catalog grid. */
#products .card {
  box-sizing:border-box; height:100%; min-width:0; padding:9px;
  border:1px solid #3a402d; border-radius:7px; background:#171717;
  box-shadow:none;
}
#products .pic {
  box-sizing:border-box; width:100%; height:auto; aspect-ratio:4 / 5;
  border:1px solid #34392b; border-radius:4px; background:#141414;
}
#products .pic img {
  box-sizing:border-box; width:100%; height:100%; max-width:100%;
  padding:8px; object-fit:contain!important; background:#141414;
}
#products .pic.syndicate-placeholder:not(:has(img)) { background:#141414; }
#products .pic.syndicate-placeholder:not(:has(img)):before {
  color:#f2f2f2; text-shadow:none;
}
#products .pic.syndicate-placeholder:not(:has(img)):after {
  color:#9a9a9a;
}
#products .card h3 {
  box-sizing:border-box; min-width:0; min-height:2.6em; margin:12px 2px 4px;
  color:#f4f4f4; font-size:clamp(11px,.95vw,14px); line-height:1.3;
  letter-spacing:.25px; overflow-wrap:anywhere; word-break:normal;
}
#products .price {
  min-width:0; margin:auto 2px 10px; color:#fff;
  font-size:clamp(16px,1.35vw,21px); font-weight:800; letter-spacing:-.3px;
  overflow-wrap:anywhere;
}
#products .add {
  box-sizing:border-box; width:100%; min-width:0; min-height:46px; margin-top:auto;
  padding:10px 8px; border:1px solid #c6ff00; border-radius:4px;
  background:#c6ff00; color:#10110d; font-size:clamp(9px,.8vw,11px);
  font-weight:800; letter-spacing:.45px; line-height:1.25; text-align:center;
  text-transform:uppercase; white-space:normal; overflow-wrap:anywhere;
}
#products .add:hover { border-color:#d8ff54; background:#d8ff54; color:#10110d; }
#products .add:active { filter:brightness(.92); }
@media(max-width:760px){
  #products { box-sizing:border-box; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  #products .card { padding:7px; }
  #products .card h3 { font-size:clamp(11px,3.2vw,13px); }
  #products .price { font-size:clamp(16px,4.8vw,20px); }
}

/* Standalone catalog view reuses the storefront product card components. */
body.catalog-page-open #homeIntro,
body.catalog-page-open .home-categories-section,
body.catalog-page-open #popularSection,
body.catalog-page-open .benefits-strip,
body.catalog-page-open footer { display:none!important; }
body.catalog-page-open { background:#080808; }
#catalogPage[hidden] { display:none!important; }
body.catalog-page-open #catalogPage:not([hidden]) { display:block; }
.catalog-page { min-width:0; padding-top:10px; }
.catalog-page-heading { display:flex; min-width:0; align-items:end; justify-content:space-between; gap:12px; margin:0 0 18px; }
.catalog-eyebrow { margin:0 0 5px; color:#94968d; font-size:9px; font-weight:750; letter-spacing:2px; }
.catalog-page-heading h1 { margin:0; color:#fff; font-size:clamp(29px,5vw,48px); font-weight:900; letter-spacing:-.045em; line-height:1; }
#catalogCount { flex:none; padding-bottom:3px; color:#9a9b94; font-size:11px; }
.catalog-toolbar { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:9px; min-width:0; }
.catalog-search { display:flex; min-width:0; min-height:46px; align-items:center; gap:10px; box-sizing:border-box; padding:0 13px; border:1px solid #383d2d; border-radius:5px; background:#171717; }
.catalog-search svg,.catalog-filter-toggle svg { flex:none; width:19px; height:19px; fill:none; stroke:#f3f3f3; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
#catalogPage .catalog-search input { width:100%; min-width:0; min-height:42px; margin:0; padding:8px 0!important; border:0!important; border-radius:0!important; outline:0; background:transparent!important; color:#fff!important; font:inherit; font-size:13px!important; }
#catalogPage .catalog-search input::placeholder { color:#898b83; opacity:1; }
.catalog-filter-toggle { display:flex; min-height:46px; align-items:center; justify-content:center; gap:8px; padding:0 13px; border:1px solid #414633; border-radius:5px; background:#1a1a1a; color:#eee; font-size:11px; font-weight:750; letter-spacing:.05em; }
.catalog-filter-toggle[aria-expanded="true"] { border-color:#c6ff00; color:#c6ff00; }
.catalog-filter-toggle[aria-expanded="true"] svg { stroke:#c6ff00; }
.catalog-filters { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin-top:10px; padding:12px; border:1px solid #34392b; border-radius:5px; background:#151515; }
.catalog-filters[hidden] { display:none!important; }
.catalog-price-filter,.catalog-sort-filter { display:grid; min-width:0; gap:6px; color:#bdbeb8; font-size:10px; }
#catalogPage .catalog-price-filter input,#catalogPage .catalog-sort-filter select { box-sizing:border-box; width:100%; min-width:0; min-height:40px; margin:0; padding:8px 10px!important; border:1px solid #3b4031!important; border-radius:4px!important; background:#0e0e0e!important; color:#fff!important; font:inherit; font-size:12px!important; }
.catalog-stock-filter { display:flex; min-width:0; min-height:40px; align-items:center; gap:8px; color:#eee; font-size:11px; }
#catalogPage .catalog-stock-filter input { width:17px; height:17px; flex:none; margin:0; accent-color:#c6ff00; }
.catalog-categories { display:flex; min-width:0; gap:8px; margin:14px 0 8px; padding:2px 1px 8px; overflow-x:auto; overscroll-behavior-x:contain; scrollbar-width:none; }
.catalog-categories::-webkit-scrollbar { display:none; }
.catalog-category { flex:none; min-height:36px; padding:8px 13px; border:1px solid #3b4031; border-radius:4px; background:#171717; color:#d7d8d2; font-size:11px; font-weight:700; white-space:nowrap; }
.catalog-category.active { border-color:#c6ff00; background:#c6ff00; color:#111; }
.catalog-status { min-height:0; margin:0; color:#999; font-size:12px; text-align:center; }
.catalog-status:not(:empty) { margin:18px 0; }
#catalogProducts { grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-top:10px; }
#catalogProducts .card { box-sizing:border-box; height:100%; min-width:0; padding:9px; border:1px solid #3a402d; border-radius:7px; background:#171717; box-shadow:none; }
#catalogProducts .card { cursor:pointer; transition:border-color .18s,transform .18s; }
#catalogProducts .card:hover { border-color:#687b31; }
#catalogProducts .pic { box-sizing:border-box; width:100%; height:auto; aspect-ratio:4 / 5; border:1px solid #34392b; border-radius:4px; background:#141414; }
#catalogProducts .pic img { box-sizing:border-box; width:100%; height:100%; max-width:100%; padding:8px; object-fit:contain!important; background:#141414; }
#catalogProducts .pic.syndicate-placeholder:not(:has(img)) { background:#141414; }
#catalogProducts .pic.syndicate-placeholder:not(:has(img)):before { color:#f2f2f2; text-shadow:none; }
#catalogProducts .pic.syndicate-placeholder:not(:has(img)):after { color:#9a9a9a; }
#catalogProducts .card h3 { box-sizing:border-box; min-width:0; min-height:2.6em; margin:12px 2px 4px; color:#f4f4f4; font-size:clamp(11px,.95vw,14px); line-height:1.3; letter-spacing:.25px; overflow-wrap:anywhere; word-break:normal; }
#catalogProducts .price { min-width:0; margin:auto 2px 10px; color:#fff; font-size:clamp(16px,1.35vw,21px); font-weight:800; letter-spacing:-.3px; overflow-wrap:anywhere; }
#catalogProducts .add { box-sizing:border-box; width:100%; min-width:0; min-height:46px; margin-top:auto; padding:10px 8px; border:1px solid #c6ff00; border-radius:4px; background:#c6ff00; color:#10110d; font-size:clamp(9px,.8vw,11px); font-weight:800; letter-spacing:.45px; line-height:1.25; text-align:center; text-transform:uppercase; white-space:normal; overflow-wrap:anywhere; }
#catalogProducts .add:hover { border-color:#d8ff54; background:#d8ff54; color:#10110d; }
#catalogProducts .add:active { filter:brightness(.92); }
@media(max-width:760px){
  .catalog-page { padding-top:4px; }
  .catalog-page-heading { margin-bottom:14px; }
  .catalog-filters { grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; padding:10px; }
  .catalog-stock-filter { grid-column:1/-1; }
  #catalogProducts { box-sizing:border-box; width:100%; min-width:0; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  #catalogProducts .card { padding:7px; }
  #catalogProducts .card h3 { font-size:clamp(11px,3.2vw,13px); }
  #catalogProducts .price { font-size:clamp(16px,4.8vw,20px); }
}
@media(max-width:360px){
  .catalog-filter-toggle { gap:5px; padding-inline:9px; }
  .catalog-filter-toggle svg { width:17px; height:17px; }
  .catalog-category { padding-inline:11px; }
}

/* Catalog product cards: photo first, adaptive details, compact cart action. */
#catalogProducts .card { height:auto; padding:8px; border:1px solid #30322d; border-radius:12px; background:#191919; }
#catalogProducts .pic { border:0; border-radius:8px; background:#151515; }
#catalogProducts .pic img { padding:0; background:transparent; }
#catalogProducts .catalog-product-tag { position:absolute; top:8px; left:8px; z-index:2; max-width:calc(100% - 16px); padding:5px 7px; border-radius:3px; background:#c6ff00; color:#111; font-size:9px; font-weight:850; line-height:1; letter-spacing:.06em; }
#catalogProducts .catalog-product-tag.is-new { background:#f0f0ec; color:#111; }
#catalogProducts .catalog-product-tag.is-hit { background:#c6ff00; color:#111; }
#catalogProducts .catalog-product-footer { display:flex; min-width:0; align-items:flex-end; justify-content:space-between; gap:8px; margin-top:auto; padding-top:10px; }
#catalogProducts .catalog-product-data { display:flex; min-width:0; flex:1; flex-direction:column; align-items:flex-start; gap:3px; }
#catalogProducts .card h3 { width:100%; min-height:0; margin:0 0 5px; color:#f5f5f2; font-size:clamp(12px,1vw,15px); font-weight:650; line-height:1.35; letter-spacing:0; text-transform:none; overflow-wrap:anywhere; }
#catalogProducts .price { width:100%; margin:0; color:#fff; font-size:clamp(18px,1.5vw,24px); font-weight:800; line-height:1.15; letter-spacing:-.02em; }
#catalogProducts .catalog-product-stock { display:block; min-height:15px; color:#a5a5a0; font-size:10px; font-weight:550; line-height:1.35; }
#catalogProducts .catalog-product-stock.is-low-stock { color:#f0a15a; }
#catalogProducts .catalog-product-stock:empty { visibility:hidden; }
#catalogProducts .add.catalog-add-button { display:grid; flex:0 0 42px; width:42px; min-width:42px; height:42px; min-height:42px; place-items:center; margin:0; padding:0; border:1px solid #f2f2ef; border-radius:5px; background:#f2f2ef; color:#111; transition:background .15s,border-color .15s,transform .15s; }
#catalogProducts .add.catalog-add-button svg { display:block; width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
#catalogProducts .add.catalog-add-button:hover,#catalogProducts .add.catalog-add-button:focus-visible { border-color:#c6ff00; background:#c6ff00; color:#10110d; }
#catalogProducts .add.catalog-add-button:active { transform:scale(.96); }
@media(max-width:760px){
  #catalogProducts .card { padding:7px; border-radius:10px; }
  #catalogProducts .pic { border-radius:7px; }
  #catalogProducts .catalog-product-footer { gap:5px; padding-top:8px; }
  #catalogProducts .catalog-product-stock { font-size:9px; }
  #catalogProducts .add.catalog-add-button { flex-basis:40px; width:40px; min-width:40px; height:40px; min-height:40px; }
}

/* Existing product detail dialog: larger photo, reliable close control, clearer choices. */
.product-modal-dialog { width:min(100%,720px); max-height:calc(100dvh - 20px); padding:clamp(12px,2.5vw,22px); border:1px solid #383b32; border-radius:15px; background:#141414; box-shadow:0 28px 90px #000d; }
.product-modal-header { position:sticky; top:-22px; z-index:5; display:flex; height:44px; justify-content:flex-end; margin-bottom:-44px; padding:4px 4px 0 0; background:linear-gradient(#141414f2 55%,#14141400); pointer-events:none; }
.product-modal-close { position:relative; top:auto; right:auto; display:grid; width:38px; height:38px; flex:none; place-items:center; margin:0; border:1px solid #55574e; border-radius:7px; background:#202020; color:#fff; font-size:24px; line-height:1; pointer-events:auto; }
.product-modal-close:hover,.product-modal-close:focus-visible { border-color:#c6ff00; background:#25271f; }
.product-modal-layout { gap:0; }
.product-modal-photo { height:clamp(320px,48dvh,500px); border:1px solid #30322c; border-radius:10px; background:#111; }
.product-modal-photo img { padding:0; background:transparent; object-fit:contain; }
.product-modal-placeholder { color:#ecece8; }
.product-modal-placeholder strong { color:#c6ff00; text-shadow:none; }
.product-modal-placeholder span { color:#aaa; }
.product-modal-photo-arrow { border-color:#ffffff70; background:#111d; color:#fff; }
.product-modal-info { padding-top:18px; text-align:left; }
.product-modal-title { margin:0 0 8px; color:#f5f5f2; font-size:clamp(22px,4vw,30px); line-height:1.2; overflow-wrap:anywhere; }
.product-modal-price-line { justify-content:flex-start; margin:0 0 10px; }
.product-modal-price-line .product-modal-price { color:#fff; font-size:clamp(22px,4vw,28px); font-weight:850; }
.product-modal-description { margin:0 0 12px; color:#b9bab4; text-align:left; }
.product-modal-stock { margin:0 0 12px; color:#b7b7b0; font-size:12px; text-align:left; }
.product-modal-stock.is-low-stock { color:#f0a15a; }
.product-modal-stock.is-out-of-stock { color:#999; }
.product-modal-choice { margin:10px 0; color:#d9d9d4; text-align:left; }
.product-modal-choice select { min-height:48px; border-color:#3b3d35; border-radius:6px; background:#1d1d1d; text-align:left; }
.product-modal-feedback { text-align:left; }
.product-modal-add { min-height:54px; margin:12px 0 0; border:1px solid #c6ff00; border-radius:6px; background:#c6ff00; color:#111; font-size:14px; font-weight:850; letter-spacing:.03em; }
.product-modal-add:hover,.product-modal-add:focus-visible { border-color:#dcff6b; background:#dcff6b; }
.product-modal-add:disabled { opacity:.8; }
@media(max-width:700px){
  .product-modal-overlay { align-items:flex-end; padding:0; }
  .product-modal-dialog { width:100%; max-height:calc(100dvh - env(safe-area-inset-top,0px)); padding:12px 12px max(14px,env(safe-area-inset-bottom,0px)); border-right:0; border-bottom:0; border-left:0; border-radius:16px 16px 0 0; }
  .product-modal-header { top:-12px; }
  .product-modal-photo { height:clamp(250px,40dvh,390px); border-radius:8px; }
  .product-modal-info { padding-top:16px; }
  .product-modal-close { width:40px; height:40px; }
  .product-modal-add { position:sticky; bottom:0; min-height:56px; margin-bottom:0; }
}
@media(max-width:360px){
  .product-modal-dialog { padding:10px 10px max(12px,env(safe-area-inset-bottom,0px)); }
  .product-modal-photo { height:clamp(230px,36dvh,320px); }
  .product-modal-header { top:-10px; }
}

/* Reference-matched catalog presentation, scoped to the standalone catalog view. */
body.catalog-page-open .store-header {
  position:relative; top:auto; z-index:10; min-height:66px; box-sizing:border-box;
  display:grid; grid-template-columns:minmax(0,1fr) auto; gap:0 8px;
  padding:10px 17px; border:0; background:#080808; backdrop-filter:none;
}
body.catalog-page-open .store-header .store-logo {
  grid-column:1; grid-row:1; width:max-content; color:#fff; font-family:Montserrat,Arial,sans-serif;
  font-size:clamp(19px,5vw,23px); font-weight:900; font-style:italic; letter-spacing:-1.4px;
}
body.catalog-page-open .store-header .store-logo::after { content:"®"; display:inline-block; margin-left:1px; font-size:8px; font-style:normal; vertical-align:top; }
body.catalog-page-open .store-header .primary-nav,
body.catalog-page-open .store-header .header-icon[aria-label="Profile"] { display:none!important; }
body.catalog-page-open .store-header-right {
  grid-column:2; grid-row:1; display:flex; min-width:0; align-items:center; justify-content:flex-end; gap:8px;
}
body.catalog-page-open .store-header .language-switch { gap:0; padding:2px; border-radius:8px; background:#171717; }
body.catalog-page-open .store-header .language-switch span { display:none; }
body.catalog-page-open .store-header .language-switch button {
  min-width:32px; padding:5px 7px; border-radius:6px; color:#969696; font-size:10px; font-weight:700; line-height:1;
}
body.catalog-page-open .store-header .language-switch button.selected { background:#f5f5f5; color:#111; }
body.catalog-page-open .store-header .header-icon { position:relative; width:30px; height:34px; padding:5px; color:#f5f5f5; }
body.catalog-page-open .store-header .header-icon svg { width:20px; height:20px; stroke-width:1.7; }
body.catalog-page-open .store-header .cart-badge { top:0; right:0; min-width:14px; height:14px; padding:0 2px; border-radius:9px; background:#c6ff00; color:#111; font-size:9px; line-height:14px; }
body.catalog-page-open main { max-width:1440px; padding:0 clamp(16px,4vw,56px) calc(88px + env(safe-area-inset-bottom,0px)); }
body.catalog-page-open .catalog-page { padding-top:15px; }
body.catalog-page-open .catalog-page-heading { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
body.catalog-page-open .catalog-toolbar { grid-template-columns:minmax(0,1fr) 44px; gap:9px; }
body.catalog-page-open .catalog-search { min-height:40px; gap:10px; padding:0 12px; border-color:#383838; border-radius:8px; background:#171717; }
body.catalog-page-open .catalog-search svg { width:18px; height:18px; }
body.catalog-page-open #catalogPage .catalog-search input { min-height:38px; font-size:12px!important; }
body.catalog-page-open .catalog-filter-toggle { width:44px; min-height:40px; padding:0; border-color:#383838; border-radius:8px; background:#171717; }
body.catalog-page-open .catalog-filter-toggle span { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }
body.catalog-page-open .catalog-filter-toggle svg { width:21px; height:21px; }
body.catalog-page-open .catalog-filters { border-radius:10px; }
body.catalog-page-open .catalog-categories { gap:8px; margin:13px -1px 9px; padding:2px 1px 7px; }
body.catalog-page-open .catalog-category { min-height:32px; padding:7px 15px; border-color:#3a3a3a; border-radius:8px; background:#171717; color:#eee; font-size:11px; font-weight:500; }
body.catalog-page-open .catalog-category.active { border-color:#c6ff00; background:#c6ff00; color:#10110d; font-weight:750; }
body.catalog-page-open #catalogProducts { grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin-top:4px; }
body.catalog-page-open #catalogProducts .card {
  position:relative; display:flex; min-width:0; height:auto; flex-direction:column; padding:0 0 8px;
  overflow:hidden; border:1px solid #343434; border-radius:12px; background:#171717; box-shadow:none;
}
body.catalog-page-open #catalogProducts .card:hover { border-color:#535353; transform:none; }
body.catalog-page-open #catalogProducts .pic {
  position:relative; width:100%; aspect-ratio:1.08/1; height:auto; overflow:hidden; border:0; border-radius:0;
  background:radial-gradient(ellipse at 48% 42%,#303030 0%,#202020 43%,#151515 78%,#121212 100%);
}
body.catalog-page-open #catalogProducts .pic img {
  width:100%; height:100%; padding:7px; object-fit:contain!important; background:transparent; mix-blend-mode:normal;
}
body.catalog-page-open #catalogProducts .pic.syndicate-placeholder:not(:has(img)) { background:radial-gradient(ellipse at 48% 42%,#303030 0%,#202020 43%,#151515 78%,#121212 100%); }
body.catalog-page-open #catalogProducts .catalog-product-tag { top:8px; left:8px; padding:5px 8px; border-radius:12px; font-size:9px; letter-spacing:0; }
body.catalog-page-open #catalogProducts .catalog-product-tag.is-new { background:#c6ff00; color:#10110d; }
body.catalog-page-open #catalogProducts .catalog-product-footer { min-height:68px; gap:6px; padding:7px 8px 0; }
body.catalog-page-open #catalogProducts .catalog-product-data { gap:2px; }
body.catalog-page-open #catalogProducts .card h3 {
  display:-webkit-box; min-height:0; margin:0 0 3px; overflow:hidden; color:#f5f5f5;
  font-size:clamp(11px,1vw,14px); font-weight:500; line-height:1.3; letter-spacing:0;
  -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow-wrap:anywhere;
}
body.catalog-page-open #catalogProducts .price { color:#fff; font-size:clamp(16px,1.5vw,21px); font-weight:850; line-height:1.1; letter-spacing:-.02em; white-space:nowrap; }
body.catalog-page-open #catalogProducts .catalog-product-stock { min-height:14px; color:#aaa; font-size:10px; line-height:1.2; }
body.catalog-page-open #catalogProducts .catalog-product-stock.is-low-stock { color:#ff9f43; }
body.catalog-page-open #catalogProducts .add.catalog-add-button {
  flex:0 0 40px; width:40px; min-width:40px; height:40px; min-height:40px; border:1px solid #f4f4f4;
  border-radius:8px; background:#f4f4f4; color:#111;
}
body.catalog-page-open #catalogProducts .add.catalog-add-button svg { width:20px; height:20px; stroke-width:1.8; }
body.catalog-page-open #catalogProducts .add.catalog-add-button:hover,
body.catalog-page-open #catalogProducts .add.catalog-add-button:focus-visible { border-color:#dfff68; background:#dfff68; }
body.catalog-page-open #bottomNav {
  position:fixed; z-index:6200; right:0; bottom:0; left:0; display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr)); gap:0; box-sizing:border-box;
  padding:5px max(10px,env(safe-area-inset-right,0px)) calc(5px + env(safe-area-inset-bottom,0px)) max(10px,env(safe-area-inset-left,0px));
  border-top:1px solid #292929; background:#080808f5; backdrop-filter:blur(16px);
}
body.catalog-page-open #bottomNav button { min-height:49px; gap:3px; border-radius:0; color:#aaa; }
body.catalog-page-open #bottomNav button.active,body.catalog-page-open #bottomNav button[aria-current="page"] { color:#c6ff00; }
body.catalog-page-open #bottomNav button span { display:grid; width:23px; height:23px; place-items:center; }
body.catalog-page-open #bottomNav button span svg { display:block; width:21px; height:21px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
body.catalog-page-open #bottomNav button[data-nav-section="catalog"] span svg { fill:none; stroke-width:2; }
body.catalog-page-open #bottomNav button small { font-size:10px; }
@media(max-width:760px) {
  body.catalog-page-open .store-header { min-height:72px; padding:10px 17px; }
  body.catalog-page-open main { padding:0 16px calc(78px + env(safe-area-inset-bottom,0px)); }
  body.catalog-page-open .catalog-page { padding-top:13px; }
  body.catalog-page-open #catalogProducts { grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
  body.catalog-page-open #catalogProducts .card { border-radius:12px; }
  body.catalog-page-open #catalogProducts .pic { aspect-ratio:1.08/1; }
  body.catalog-page-open #catalogProducts .pic img { padding:6px; }
  body.catalog-page-open #catalogProducts .catalog-product-footer { min-height:67px; padding:7px 8px 0; }
  body.catalog-page-open #catalogProducts .catalog-product-stock { font-size:9px; }
  body.catalog-page-open #catalogProducts .add.catalog-add-button { flex-basis:36px; width:36px; min-width:36px; height:36px; min-height:36px; }
}
@media(max-width:390px) {
  body.catalog-page-open .store-header { padding-inline:17px; }
  body.catalog-page-open main { padding-right:16px; padding-left:16px; }
  body.catalog-page-open .catalog-category { padding-inline:14px; }
  body.catalog-page-open #catalogProducts .catalog-product-footer { gap:5px; padding-right:7px; padding-left:7px; }
}

/* iOS Safari product modal scroll containment. */
body.product-detail-open { overflow:hidden; overscroll-behavior:none; }
.product-modal-overlay {
  position:fixed; inset:0; height:100vh; height:100dvh; overflow:hidden;
  overscroll-behavior:none; touch-action:none;
}
.product-modal-dialog {
  display:flex; min-height:0; flex-direction:column; overflow:hidden; overscroll-behavior:none;
}
.product-modal-layout {
  min-height:0; flex:1 1 auto; overflow-x:hidden; overflow-y:auto; overscroll-behavior-y:contain;
  -webkit-overflow-scrolling:touch; touch-action:pan-y;
}
.product-modal-add { position:sticky; bottom:0; z-index:4; flex:none; }

/* Permanent product page, using the existing SYNDICATE product presentation. */
body.product-page-open main>:not(#productPage){display:none!important}
#productPage{width:100%;max-width:1000px;margin:0 auto;padding-bottom:30px}
#productPage .product-modal-dialog{width:100%;max-height:none;overflow:visible;margin:0;border:0}
#productPage .product-modal-layout{max-height:none;overflow:visible}
#productPage .product-modal-header{position:static;padding:16px}
.product-page-back{color:var(--accent);text-decoration:none}
.card h3 a{color:inherit;text-decoration:none}
@media(min-width:821px){#productPage .product-modal-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start}#productPage .product-modal-info{text-align:left}}
@media(max-width:430px){#productPage .product-modal-photo{height:clamp(280px,48dvh,460px)}#productPage .product-modal-info{padding:14px}}
/* Keep linked titles measurable inside clamped flex card captions. */
.card h3 a{display:block;min-height:1.3em}
#catalogProducts .card h3{flex-shrink:0}
.product-page-back{display:inline-block;scroll-margin-top:140px}
#productPage .product-modal-title{font-style:normal;letter-spacing:-.02em}
#productPage .product-modal-header{position:sticky;top:80px;z-index:5;flex:none;min-height:44px;margin:0;background:#141414;justify-content:flex-start}
#productPage .product-modal-header{pointer-events:auto}
body.product-page-open .store-header{position:relative;top:auto}
@media(max-width:430px){body:not(.catalog-page-open) .store-header{display:flex;flex-wrap:wrap}.store-header-side{max-width:100%;min-width:0;flex-wrap:wrap}}
