/* LOCATION — minimal B/W UI */
:root{
  --bg:#0e0e11;
  --text:#e8e8ea;
  --muted:#8c8c92;
  --card:#14141a;
  --card2:#101015;
  --line:#23232b;
  --radius:16px;
  --shadow:0 14px 40px rgba(0,0,0,.55);
  --glow:0 0 0 1px rgba(255,255,255,.06);
}

*{box-sizing:border-box}
html,body{margin:0;padding:0;background:var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","Inter",Segoe UI,Roboto,Arial,sans-serif}
a{color:inherit;text-decoration:none}
h1,h2{margin:0 0 10px 0}
h2{font-size:18px;letter-spacing:.2px}
.muted{color:var(--muted);font-size:13px}

.topbar{
  position:sticky; top:0; z-index:50;
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 14px;
  background:rgba(14,14,17,.82);
  border-bottom:1px solid var(--line);
  backdrop-filter: blur(12px);
}
.icon-btn{
  border:0; background:transparent; color:var(--text);
  font-size:20px; padding:8px 10px; border-radius:12px;
}
.icon-btn:active{background:rgba(0,0,0,.06)}
.topbar__right{display:flex;gap:4px;align-items:center}

.brand{display:flex;flex-direction:column;align-items:center;line-height:1}
.brand__mark{
  font-weight:500;
  letter-spacing:4.5px;
  font-size:20px;
}
.brand__sub{font-size:11px;color:var(--muted);margin-top:3px}

.container{padding:16px 16px 32px 16px; max-width:980px; margin:0 auto}

.tiles{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:6px}
.tile{
  background:var(--card); border-radius:var(--radius);
  padding:18px; min-height:90px;
  display:flex; align-items:flex-end;
  font-weight:700;
}
.tile--big{grid-row:span 2; min-height:192px; font-size:24px; letter-spacing:.2px}
.tile--wide{grid-column:span 2; min-height:78px; justify-content:space-between}

.section{margin-top:22px}
.section__head{display:flex;align-items:baseline;justify-content:space-between}
.link{font-size:13px;color:var(--muted)}
.link:active{opacity:.7}

.chips{display:flex;gap:10px;overflow:auto;padding-bottom:2px}
.chip{
  flex:0 0 auto;
  background:var(--card); border-radius:999px;
  padding:10px 14px; font-weight:700; font-size:13px;
}
.chip:active{opacity:.75}

.promo{
  background:var(--card); border-radius:var(--radius);
  padding:16px;
}
.promo__title{font-weight:800}
.promo__sub{margin-top:6px;color:var(--muted);font-size:13px}

.cats{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.cat{
  background:transparent;
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px 10px;
  text-align:center;
  font-weight:700;
  font-size:14px;
}
.cat:active{background:rgba(0,0,0,.05)}

@media (max-width:420px){
  .cats{grid-template-columns:repeat(3,1fr)}
}

.drawer{
  position:fixed; inset:0; z-index:80;
  transform:translateX(-100%);
  transition:transform .25s ease;
  background:rgba(0,0,0,.15);
}
.drawer.open{transform:translateX(0)}
.drawer__panel{
  width:min(82vw,340px);
  height:100%;
  background:#0f0f14; color:#fff;
  padding:16px;
}
.drawer__head{display:flex;align-items:center;justify-content:space-between;padding:16px;background:#0f0f14}
.drawer__brand{font-weight:900;letter-spacing:1px}
.drawer__nav{display:flex;flex-direction:column;gap:10px;padding:16px;background:#0f0f14}
.drawer__link{color:#fff;font-weight:700;font-size:18px;padding:10px 8px;border-radius:12px}
.drawer__link:active{background:rgba(255,255,255,.15)}
.drawer__link--admin{opacity:.8;font-size:16px}
.drawer__foot{position:absolute;left:0;right:0;bottom:0;padding:16px;background:#0f0f14}
.social{display:flex;gap:10px;margin-top:10px}
.social__btn{width:46px;height:46px;border-radius:999px;background:rgba(255,255,255,.18);display:flex;align-items:center;justify-content:center;font-weight:800}

.pagehead{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:14px 0 10px}
.pills{display:flex;gap:8px;flex-wrap:wrap}
.pill{
  border:1px solid var(--line);
  border-radius:999px;
  padding:10px 12px;
  font-weight:800;
  font-size:13px;
  background:#fff;
}
.pill.active{background:var(--text);color:#fff;border-color:var(--text)}
.pill:active{opacity:.8}

.tools{display:flex;align-items:center;justify-content:space-between;margin:8px 0 12px;gap:10px}
.tools .btn{
  border:1px solid var(--line);
  background:#fff;
  border-radius:14px;
  padding:10px 12px;
  font-weight:800;
}
.tools .btn:active{background:rgba(0,0,0,.05)}
.search{
  flex:1;
  border:1px solid var(--line);
  border-radius:14px;
  padding:10px 12px;
  font-weight:700;
}

.grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.card{
  border-radius:var(--radius);
  overflow:hidden;
  background:#fff;
  border:1px solid var(--line);
}
.card__img{
  width:100%; aspect-ratio:1/1;
  object-fit:cover; background:var(--card);
}
.card__body{padding:12px}
.card__title{font-weight:900;line-height:1.1}
.card__meta{margin-top:6px;color:var(--muted);font-size:12px}
.card__price{margin-top:10px;font-weight:900}
.badge{display:inline-block;margin-top:8px;font-size:12px;font-weight:900;padding:6px 10px;border-radius:999px;background:var(--card)}
.card__actions{display:flex;justify-content:space-between;align-items:center;margin-top:10px}
.heart{border:1px solid var(--line);background:#fff;border-radius:999px;width:40px;height:40px;font-size:18px}
.heart:active{background:rgba(0,0,0,.05)}
.cta{
  flex:1;margin-left:10px;
  border:0;background:var(--text);color:#fff;
  border-radius:14px;padding:12px 14px;
  font-weight:900;
}
.cta:active{opacity:.85}

.form{
  display:flex;flex-direction:column;gap:12px;
  max-width:640px;
}
.label{font-weight:900}
.input, .textarea{
  border:1px solid var(--line);
  border-radius:16px;
  padding:14px 14px;
  font-size:16px;
  font-weight:700;
}
.textarea{min-height:110px;resize:vertical}
.file{
  display:flex;align-items:center;justify-content:space-between;
  border:1px solid var(--line);
  border-radius:16px;
  padding:14px;
}
.primary{
  border:0;background:var(--text);color:#fff;
  border-radius:18px;padding:16px 18px;
  font-weight:900;font-size:16px;
}
.primary:active{opacity:.9}

.notice{font-size:12px;color:var(--muted);line-height:1.4}
.hr{height:1px;background:var(--line);margin:16px 0}
.small{font-size:12px;color:var(--muted)}


.brand--link{color:inherit;text-decoration:none}
.brand--link:active{opacity:.75}
.tiles--simple{grid-template-columns:1fr 1fr}
.tile--primary{background:#111;color:#fff}
.tile--primary:active{opacity:.9}

.grid--list{grid-template-columns:1fr}
.card--list .card__img{aspect-ratio:4/5}
.card--list .card__body{padding:14px}
.card--list .card__title{font-size:18px}
.badges{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.badge--tag{background:#fff;border:1px solid var(--line)}
.select{
  border:1px solid var(--line);
  background:#fff;
  border-radius:14px;
  padding:10px 12px;
  font-weight:800;
}
dialog{
  border:0;
  border-radius:20px;
  max-width:720px;
  width:calc(100% - 28px);
  box-shadow: var(--shadow);
}
dialog::backdrop{background:rgba(0,0,0,.25)}

/* v3 Architectural Home */
.hero-grid{display:grid;gap:14px;margin-top:10px}
.hero{
  position:relative;
  min-height:210px;
  border-radius:20px;
  overflow:hidden;
  background:var(--card);
  box-shadow: var(--glow);
}
.hero__bg{
  position:absolute; inset:0;
  background-size:cover;
  background-position:center;
  filter:saturate(.9) contrast(1.05);
}
.hero__shade{
  position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(0,0,0,.10), rgba(0,0,0,.62));
}
.hero__content{
  position:relative;
  padding:18px;
  display:flex;
  height:100%;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
}
.hero__title{
  font-weight:900;
  letter-spacing:2.2px;
  text-transform:uppercase;
  font-size:26px;
  line-height:1;
}
.hero__meta{
  margin-top:10px;
  font-size:12px;
  color:var(--muted);
  letter-spacing:.8px;
  text-transform:uppercase;
}
.hero__arrow{
  font-size:20px;
  opacity:.85;
}
.hero:active{transform:translateY(1px);opacity:.96}

.quick-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px}
.quick{
  border-radius:18px;
  background:var(--card);
  border:1px solid var(--line);
  padding:16px;
  min-height:82px;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:10px;
}
.quick__title{
  font-weight:900;
  letter-spacing:1.6px;
  text-transform:uppercase;
  font-size:13px;
}
.quick__hint{color:var(--muted);font-size:12px;margin-top:6px}
.quick:active{background:rgba(255,255,255,.04)}

/* Cards in catalog */
.card{
  border-radius:18px;
  overflow:hidden;
  background:var(--card2);
  border:1px solid var(--line);
}
.card__img{background:#0c0c10}
.card__body{padding:14px}
.card__title{font-weight:900;letter-spacing:.3px}
.card__price{margin-top:10px;font-weight:900}
.badge{background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.06)}
.badge--tag{background:transparent;border:1px solid rgba(255,255,255,.18); text-transform:uppercase; letter-spacing:1.2px; font-size:11px}
.pill{background:transparent;color:var(--text);border:1px solid var(--line)}
.pill.active{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.14)}
.search,.input,.textarea,.select{background:transparent;color:var(--text);border:1px solid var(--line)}
.btn{color:var(--text)}
.primary{background:rgba(255,255,255,.10); color:var(--text); border:1px solid rgba(255,255,255,.18)}
.primary:active{opacity:.9}
.cta{background:rgba(255,255,255,.10); color:var(--text); border:1px solid rgba(255,255,255,.18)}
.heart{background:transparent;color:var(--text);border:1px solid rgba(255,255,255,.14)}
.notice{color:var(--muted)}
.hr{background:var(--line)}
.brand__sub{color:var(--muted)}
.link{color:var(--muted)}

.brand{display:flex;flex-direction:column;align-items:center;line-height:1}
.brand__sub{display:none}

.quick__title{font-size:14px}
.quick{min-height:92px}

dialog .icon-btn{border:1px solid rgba(255,255,255,.14); border-radius:14px}
dialog .icon-btn:active{background:rgba(255,255,255,.06)}

/* v3.2 bigger quick tiles */
.quick__title{font-size:16px}
.quick{min-height:104px}

/* v3.4 UI blending */
.pills{gap:10px}
.pill{
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.10);
  border-radius:18px;
  padding:10px 14px;
}
.pill.active{
  background:rgba(255,255,255,.10);
  border-color:rgba(255,255,255,.18);
}
.tools .btn{
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.12);
}
.tools .btn:active{background:rgba(255,255,255,.06)}
dialog{
  background:#0f0f14;
  color:var(--text);
  border:1px solid rgba(255,255,255,.10);
}
.label{color:var(--text)}
.notice{color:var(--muted)}

/* v3.6 Custom pickers (dark) */
.picker{display:flex;align-items:center;justify-content:space-between;gap:10px}
.picker::after{content:"▾"; color:var(--muted); font-weight:900}
#pickerDlg{padding:0}
#pickerDlg::backdrop{background:rgba(0,0,0,.45)}
.pickerSheet{
  background:#0f0f14;
  border:1px solid rgba(255,255,255,.10);
  border-radius:22px;
  box-shadow: var(--shadow);
  width:min(720px, calc(100vw - 20px));
  max-height:min(80vh, 720px);
  overflow:hidden;
}
.pickerHead{
  display:flex;align-items:center;justify-content:space-between;
  padding:14px 14px;
  border-bottom:1px solid rgba(255,255,255,.10);
}
.pickerTitle{
  font-weight:900; letter-spacing:2px; text-transform:uppercase; font-size:12px; color:var(--muted);
}
.pickerList{padding:10px; overflow:auto; max-height:calc(80vh - 70px)}
.pickerItem{
  width:100%;
  text-align:left;
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.10);
  color:var(--text);
  border-radius:16px;
  padding:12px 14px;
  font-weight:800;
  margin-bottom:10px;
}
.pickerItem:active{background:rgba(255,255,255,.06)}

/* v3.7 tools bar + inline filters */
.tools--bar{gap:10px;align-items:center}
.toolIcon{
  width:44px;height:44px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:16px;
  background:rgba(255,255,255,.03);
}
.toolIcon:active{background:rgba(255,255,255,.06)}
.searchWrap{flex:1}
.filterPanel{
  margin-top:12px;
  padding:14px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.02);
}
.filterRow{margin-bottom:12px}
select, option{
  color: var(--text);
  background-color: #0f0f14;
}

/* v3.8 toolbar buttons */
.toolBtn{
  display:inline-flex;align-items:center;gap:10px;
  height:44px;
  padding:0 14px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:16px;
  background:rgba(255,255,255,.03);
  color:var(--text);
  font-weight:900;
  letter-spacing:.4px;
}
.toolBtn--icon{width:44px;justify-content:center;padding:0}
.toolBtn__icon{font-size:16px;color:var(--text);opacity:.9}
.toolBtn__text{font-size:13px}
.toolBtn:active{background:rgba(255,255,255,.06)}

/* filter sections like reference */
.filterSection{border-top:1px solid rgba(255,255,255,.10); padding-top:12px; margin-top:12px}
.filterSection:first-child{border-top:0;padding-top:0;margin-top:0}
.filterHead{
  width:100%;
  display:flex;align-items:center;justify-content:space-between;
  background:transparent;
  border:0;
  color:var(--text);
  font-weight:900;
  padding:8px 0;
}
.chev{opacity:.7}
.filterBody{padding-top:10px}

/* type toggle */
.togglePills{display:flex;gap:10px;flex-wrap:wrap}
.pillToggle{
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.03);
  color:var(--text);
  border-radius:16px;
  padding:10px 14px;
  font-weight:900;
}
.pillToggle.active{background:rgba(255,255,255,.10);border-color:rgba(255,255,255,.18)}
.pillToggle:active{background:rgba(255,255,255,.06)}

/* radios */
.radioRow{display:flex;flex-direction:column;gap:10px}
.radio{display:flex;align-items:center;gap:10px;color:var(--text);font-weight:800}
.radio input{accent-color:#cfcfd6}

/* brand multiselect chips */
.brandGrid{display:flex;flex-wrap:wrap;gap:10px}
.brandChip{
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.03);
  color:var(--text);
  border-radius:16px;
  padding:10px 12px;
  font-weight:900;
}
.brandChip.active{background:rgba(255,255,255,.10);border-color:rgba(255,255,255,.18)}
.brandChip:active{background:rgba(255,255,255,.06)}

/* v3.9 Latest drop */
.sectionHead{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;margin-bottom:10px}
.sectionTitle{font-weight:900;letter-spacing:2px;text-transform:uppercase;font-size:12px;color:var(--muted)}
.hScroll{display:flex;gap:12px;overflow:auto;padding-bottom:4px}
.hCard{
  flex:0 0 170px;
  border-radius:18px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.02);
}
.hCard img{width:100%;aspect-ratio:4/5;object-fit:cover;background:#0c0c10}
.hCard__body{padding:10px 10px 12px}
.hCard__t{font-weight:900;font-size:13px;line-height:1.15}
.hCard__p{margin-top:8px;font-weight:900}
.hCard:active{opacity:.95;transform:translateY(1px)}

/* Active filter chips */
.activeFilters{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px}
.chip{
  display:inline-flex;align-items:center;gap:8px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.03);
  border-radius:999px;
  padding:9px 12px;
  font-weight:900;
  font-size:12px;
}
.chip button{
  border:0;background:transparent;color:var(--muted);font-weight:900;
}

/* v3.9 skeleton */
.skeletonImg{aspect-ratio:4/5;background:rgba(255,255,255,.05)}
.skeletonLine{height:12px;background:rgba(255,255,255,.06);border-radius:8px;margin-top:10px}
.skeletonLine.short{width:60%}

/* v3.9.1 filter active dot */
.toolBtn{position:relative}
.toolBtn.hasActive::after{
  content:"";
  position:absolute;
  top:10px; left:12px;
  width:7px; height:7px;
  border-radius:999px;
  background:rgba(255,255,255,.85);
  box-shadow:0 0 0 2px rgba(14,14,17,.9);
}


/* v2 admin toast */
.toast{
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  background: rgba(12,12,16,.92);
  border: 1px solid rgba(255,255,255,.14);
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 900;
  font-size: 13px;
  z-index: 9999;
  max-width: min(520px, calc(100% - 24px));
  display:none;
}
.toast.show{display:block}

/* v2 stable topbar (prevent jumping) */
.topbar{
  min-height:64px;
}
.brand__mark{
  line-height: 1;
  display:block;
  min-width: 160px;
  text-align:center;
}
.topbar__right, .topbar button.icon-btn, .topbar a.icon-btn{
  min-width: 44px;
}

/* v2 product gallery */
.gallery{
  border-radius: 22px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.02);
}
.gallery__stage{
  position:relative;
  width:100%;
  aspect-ratio: 4/5;
  background:#0c0c10;
}
.gallery__stage img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.gallery__nav{
  position:absolute;
  inset:0;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:0 10px;
  pointer-events:none;
}
.gallery__btn{
  pointer-events:auto;
  width:38px;height:38px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(0,0,0,.35);
  color:#fff;
  font-weight:900;
}
.gallery__dots{
  display:flex;gap:8px;justify-content:center;
  padding:10px 12px;
}
.dot{
  width:7px;height:7px;border-radius:999px;
  background:rgba(255,255,255,.18);
}
.dot.active{background:rgba(255,255,255,.72)}
.colorRow{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}
.colorBtn{
  display:inline-flex;align-items:center;gap:10px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.03);
  border-radius:999px;
  padding:10px 12px;
  font-weight:900;
  font-size:12px;
}
.swatch{width:12px;height:12px;border-radius:999px;border:1px solid rgba(255,255,255,.25)}

/* v3 centered topbar (lock center title) */
.topbar{
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 72px 1fr 72px;
  align-items: center;
}
.topbar .icon-btn{justify-self:start}
.topbar__right{justify-self:end;display:flex;gap:10px;align-items:center}
.brand{justify-self:center;text-align:center;pointer-events:auto}
.brand__mark{font-size:18px;letter-spacing:6px}
.brand__sub{display:none}

/* v3 admin UI */
.tabs{display:flex;gap:10px;margin:6px 0 14px}
.tab{flex:1;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.10);color:rgba(255,255,255,.85);padding:10px 12px;border-radius:14px;font-weight:800}
.tab.active{background:rgba(255,255,255,.12)}
.panel{padding-bottom:18px}
.fieldGrid{display:grid;grid-template-columns:1fr;gap:12px}
@media (min-width: 720px){ .fieldGrid{grid-template-columns:1fr 1fr} }
.field__label{font-size:12px;color:rgba(255,255,255,.7);margin-bottom:6px;font-weight:800}
.field .input{width:100%}
.pillRow{display:flex;gap:8px;flex-wrap:wrap}
.pillBtn{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);color:rgba(255,255,255,.85);padding:9px 12px;border-radius:999px;font-weight:800}
.pillBtn.active{background:rgba(255,255,255,.14)}
.list{display:flex;flex-direction:column;gap:10px}
.itemRow{display:grid;grid-template-columns:64px 1fr;gap:12px;padding:12px;border-radius:16px;border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.04)}
.thumb{width:64px;height:64px;border-radius:14px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.10);object-fit:cover}
.itemTitle{font-weight:900}
.itemMeta{font-size:12px;color:rgba(255,255,255,.65);margin-top:4px}
.itemActions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.itemActions .btn{padding:8px 10px}

/* v3_2 product spacing */
.productMeta, .badges, .pillRow{ margin-top: 14px !important; gap:10px !important; }
#productTitle, .productTitle, h1{ margin: 0 0 10px !important; }
#productPrice, .productPrice{ margin: 0 0 14px !important; }
.productDesc, #productDesc{ margin-top:14px !important; margin-bottom:18px !important; line-height:1.45; }
.actionsRow, .productActions{ margin-top:18px !important; gap:12px !important; }

/* v3_3 btn dark override (fix white pills) */
.btn{
  background: rgba(255,255,255,.10) !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  color: rgba(255,255,255,.92) !important;
}
.btn:active{transform: translateY(1px);}

/* v3_3 product spacing for JS-rendered product page */
.ptitle{margin:0 0 10px !important;}
.pprice{margin:0 0 14px !important;}
.badges{margin-top:14px !important; gap:10px !important;}
.notice{line-height:1.45;}
.pactions{margin-top:18px !important; gap:12px !important;}

/* v3_4 modal */
.modal{position:fixed;inset:0;z-index:60}
.modal__backdrop{position:absolute;inset:0;background:rgba(0,0,0,.55);backdrop-filter:blur(6px)}
.modal__panel{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(720px,92vw);max-height:82vh;overflow:auto;
  background:rgba(14,14,17,.92);border:1px solid rgba(255,255,255,.10);border-radius:22px;box-shadow:0 20px 80px rgba(0,0,0,.55);
  padding:16px}
.modal__head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.modal__title{font-weight:900;font-size:16px;letter-spacing:.2px}
.modal .btn{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);color:rgba(255,255,255,.9)}
.modal .btn:hover{background:rgba(255,255,255,.12)}

/* v3_4 admin action btn */
.itemActions .btn{
  background:rgba(255,255,255,.08) !important;
  border:1px solid rgba(255,255,255,.14) !important;
  color:rgba(255,255,255,.92) !important;
}
.itemActions .btn:active{transform:translateY(1px)}

/* v3_7 photo manager */
.photoGrid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:10px;
}
.photoTile{
  position:relative;
  border-radius:16px;
  overflow:hidden;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
}
.photoTile img{ width:100%; height:110px; object-fit:cover; display:block; }
.photoTile .ptMeta{
  padding:8px 10px;
  font-size:12px;
  color:rgba(255,255,255,.75);
}
.photoTile .ptActions{
  position:absolute; top:8px; right:8px; display:flex; gap:8px;
}
.photoTile .ptBtn{
  width:32px; height:32px;
  border-radius:12px;
  display:flex; align-items:center; justify-content:center;
  background:rgba(0,0,0,.45);
  border:1px solid rgba(255,255,255,.15);
  color:rgba(255,255,255,.92);
}

.variantRow{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:10px 12px;
  border-radius:16px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  margin-bottom:10px;
}
.variantRow .vLeft{ display:flex; flex-direction:column; gap:4px; }
.variantRow .vName{ font-weight:900; }
.variantRow .vMeta{ font-size:12px; color:rgba(255,255,255,.70); }
.variantRow .vBtns{ display:flex; gap:10px; }
.variantRow .btn{ padding:10px 12px; border-radius:14px; }
@media (max-width:520px){
  .photoGrid{ grid-template-columns:repeat(2,1fr); }
}

/* v4 photo controls */
.photoTile .ptOrder{
  position:absolute; left:8px; top:8px;
  background:rgba(0,0,0,.55);
  border:1px solid rgba(255,255,255,.14);
  border-radius:12px; padding:4px 8px;
  font-size:12px; color:rgba(255,255,255,.92); font-weight:800;
}
.photoTile .ptActions{ top:8px; right:8px; display:flex; gap:6px; }
.photoTile .ptBtn{ font-size:13px; font-weight:900; }
.photoTile .ptMeta{ display:flex; flex-direction:column; gap:8px; }
.photoTile select.input{ font-size:12px; padding:8px 10px; min-height:auto; }
.presetChip{
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  color:rgba(255,255,255,.88);
  padding:8px 10px; border-radius:999px; font-weight:800; font-size:12px;
  display:inline-flex; align-items:center; gap:8px;
}
.presetChip .dot{ width:10px; height:10px; border-radius:999px; border:1px solid rgba(255,255,255,.18); display:inline-block; }
.variantRow .vMeta{max-width:280px}

/* v4.2 color pills */
.colorRow{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0 10px}
.colorBtn{
  display:inline-flex;align-items:center;gap:10px;
  min-height:44px;padding:0 16px;border-radius:999px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.04);
  color:rgba(255,255,255,.96) !important;
  font-weight:800;
}
.colorBtn span:last-child{color:rgba(255,255,255,.96) !important}
.colorBtn .swatch{
  width:14px;height:14px;border-radius:999px;
  border:1px solid rgba(255,255,255,.28);
  box-shadow:0 0 0 1px rgba(0,0,0,.18) inset;
  flex:0 0 14px;
}
.colorBtn:focus,.colorBtn:hover{border-color:rgba(255,255,255,.32)}

/* mini patch color pills */
.colorRow{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0 10px}
.colorBtn{
  display:inline-flex;align-items:center;gap:10px;
  min-height:44px;padding:0 16px;border-radius:999px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.04);
  color:#fff !important;
  font-weight:800;
}
.colorBtn span:last-child{color:#fff !important}
.colorBtn .swatch{
  width:14px;height:14px;border-radius:999px;
  border:1px solid rgba(255,255,255,.28);
  box-shadow:0 0 0 1px rgba(0,0,0,.18) inset;
  flex:0 0 14px;
}

/* versions mini patch */
.variantRowUi{display:flex;flex-wrap:wrap;gap:10px;margin:8px 0 14px}
.variantBtn{
  min-height:42px;padding:0 14px;border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);
  color:#fff;
  font-weight:800;
}
.variantBtn.active{border-color:rgba(255,255,255,.32);background:rgba(255,255,255,.08)}

/* v5 polish */
.productCardBody{
  margin-top: 18px;
  padding: 4px 2px 2px;
}
.productTitleMain{
  margin: 0 0 14px !important;
  font-size: 22px;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.productPriceMain{
  margin: 0 0 18px !important;
  font-size: 18px;
  font-weight: 900;
}
.productColors{ margin-top: 16px !important; }
.productVersions{ margin-top: 14px !important; margin-bottom: 18px !important; }
.productBadges{
  margin-top: 10px !important;
  gap: 10px !important;
}
.productDescMain{
  margin-top: 18px !important;
  margin-bottom: 20px !important;
  line-height: 1.5;
  color: rgba(255,255,255,.78);
}
.productActionsMain{
  margin-top: 20px !important;
  display:flex;
  align-items:center;
  gap:12px;
}
.productActionsMain .heart{
  width:56px;height:56px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:transparent;
  color:#fff;
  border:1px solid rgba(255,255,255,.14);
}
.productActionsMain .heart svg{display:block;width:22px;height:22px}
.productActionsMain .cta{
  min-height:56px;
  padding:0 24px;
  border-radius:18px;
}
.badge{
  min-height: 38px;
  padding: 0 14px;
  display:inline-flex;
  align-items:center;
  border-radius:999px;
}
.variantBtn, .colorBtn{
  min-height: 46px;
  padding: 0 16px;
}
.photoGroupHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin: 10px 0 12px;
  padding-top: 6px;
}
.photoGroupTitle{
  font-weight: 900;
  font-size: 14px;
  letter-spacing: .01em;
}
.photoGroupMeta{
  font-size: 12px;
  color: rgba(255,255,255,.55);
}
.ptOrder{
  min-width: 52px;
  text-align:center;
}
.photoTile .ptOrder{
  background: rgba(0,0,0,.62);
  color:#fff;
}
.photoTile{
  border-radius: 20px;
  overflow:hidden;
}
.photoTile img{
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* v5.1 cover + catalog */
.photoGroupMeta::after{
  content:" • первая = витрина цвета";
}
.catalogCardBody{
  padding: 16px 16px 18px;
}
.catalogCardTitle{
  font-size: 18px;
  line-height: 1.08;
  font-weight: 900;
  margin-bottom: 10px;
  cursor:pointer;
}
.catalogCardPrice{
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 8px;
  cursor:pointer;
}
.catalogCardMeta{
  margin-top: 0 !important;
  margin-bottom: 12px;
  color: rgba(255,255,255,.58) !important;
}
.catalogCardBadges{
  gap: 10px !important;
  margin-top: 0 !important;
  margin-bottom: 14px;
}
.catalogCardActions{
  margin-top: auto;
  display:flex;
  align-items:center;
  gap:12px;
}
.card{
  display:flex;
  flex-direction:column;
  min-height:100%;
}
.card__img{
  aspect-ratio: 4/5;
  object-fit: cover;
  background:#111;
}
.catalogCardActions .heart{
  width:52px;height:52px;border-radius:999px;
}
.catalogCardActions .cta{
  min-height:52px;
  border-radius:18px;
  padding:0 20px;
}
@media (max-width: 480px){
  .catalogCardTitle{font-size:16px}
  .catalogCardPrice{font-size:16px}
  .catalogCardBody{padding:14px 14px 16px}
}

/* v5.2 compact catalog */
.catalogCardBody{
  padding: 12px 12px 13px !important;
}
.catalogCardTitle{
  font-size: 14px !important;
  margin-bottom: 7px !important;
}
.catalogCardPrice{
  font-size: 15px !important;
  margin-bottom: 6px !important;
}
.catalogCardMeta{
  margin-bottom: 10px !important;
  font-size: 11px;
}
.catalogCardBadges{
  margin-bottom: 10px !important;
  gap: 8px !important;
}
.catalogCardBadges .badge{
  min-height: 32px !important;
  padding: 0 12px !important;
  font-size: 11px;
}
.catalogCardActions{
  gap: 10px !important;
}
.catalogCardActions .heart{
  width: 44px !important;
  height: 44px !important;
}
.catalogCardActions .cta{
  min-height: 44px !important;
  padding: 0 16px !important;
  border-radius: 14px !important;
  font-size: 12px;
}
.card__img{
  aspect-ratio: 4 / 4.6 !important;
}
.photoGroupSort{
  display:flex;
  gap:8px;
}
.ptBtn.isCover{
  background: rgba(220,38,38,.85) !important;
  border-color: rgba(255,255,255,.28) !important;
  color:#fff !important;
}
.ptBtn.isDisabled{
  opacity:.35;
}
.ptOrder.isMain{
  background: rgba(255,255,255,.16) !important;
}

/* v6 cart */
.cartLine{
  display:grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  align-items: stretch;
}
.cartLine__img{
  width:96px !important;
  height:120px !important;
  object-fit:cover;
  border-radius:16px;
}
.cartLine__body{
  padding: 14px 14px 14px 0 !important;
  display:flex;
  flex-direction:column;
}
.cartLine__title{
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 8px;
}
.cartLine__price{
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 10px;
}
.cartLine__meta{
  font-size: 12px;
  color: rgba(255,255,255,.65);
  display:flex;
  flex-direction:column;
  gap: 4px;
  margin-bottom: 12px;
}
.cartLine__actions{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:auto;
  flex-wrap:wrap;
}
.qtyBtn{
  width:36px;height:36px;border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04); color:#fff; font-weight:900;
}
.qtyVal{
  min-width:20px;text-align:center;font-weight:900;
}
.ghostBtn{
  min-height:36px;padding:0 12px;border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04); color:#fff; font-weight:800;
}

/* v6.2 cart fix */
#grid{
  gap: 14px !important;
}
.cartRow{
  display:grid;
  grid-template-columns: 96px minmax(0,1fr);
  gap: 14px;
  padding: 12px;
  border:1px solid rgba(255,255,255,.08);
  border-radius: 22px;
  background: rgba(255,255,255,.02);
}
.cartRow__img{
  width: 96px;
  height: 116px;
  border-radius: 16px;
  object-fit: cover;
  background: #111;
}
.cartRow__body{
  min-width: 0;
  display:flex;
  flex-direction:column;
}
.cartRow__title{
  font-size: 16px;
  line-height: 1.08;
  font-weight: 900;
  margin-bottom: 6px;
}
.cartRow__price{
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 8px;
}
.cartRow__meta{
  font-size: 12px;
  line-height: 1.35;
  color: rgba(255,255,255,.68);
  display:flex;
  flex-direction:column;
  gap: 3px;
}
.cartRow__bottom{
  margin-top: auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.cartQty{
  display:flex;
  align-items:center;
  gap: 8px;
}
.cartQty__btn{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color:#fff;
  font-weight:900;
}
.cartQty__val{
  min-width: 16px;
  text-align:center;
  font-weight:900;
}
.cartRemove{
  min-height: 38px;
  padding: 0 14px;
  border-radius: 12px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color:#fff;
  font-weight:800;
}

/* v6.3 cart layout */
.cartRow{
  grid-template-columns: 88px 1fr !important;
  align-items:flex-start !important;
  overflow:hidden;
}
.cartRow__img{
  width:88px !important;
  height:108px !important;
}
.cartRow__body{
  min-width:0;
}
.cartRow__title{
  font-size:15px !important;
  margin-bottom:4px !important;
}
.cartRow__price{
  font-size:15px !important;
  margin-bottom:8px !important;
}
.cartRow__meta{
  margin-bottom:10px;
}
.cartRow__bottom{
  display:block !important;
  margin-top:10px !important;
}
.cartQty{
  width:100%;
  justify-content:flex-start;
  margin-bottom:10px;
}
.cartQty__val{
  min-width:24px;
}
.cartRemove{
  width:100%;
  justify-content:center;
}
@media (max-width: 420px){
  .cartRow{grid-template-columns:82px 1fr !important; gap:12px !important; padding:10px !important;}
  .cartRow__img{width:82px !important; height:102px !important;}
}

/* v6.6 final cart */

#grid{display:grid;grid-template-columns:1fr;gap:14px !important}
.cartRowNew{
  display:grid;
  grid-template-columns:minmax(0,1fr) 112px;
  gap:14px;
  padding:14px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:22px;
  background:rgba(255,255,255,.02);
  align-items:stretch;
}
.cartRowNew__body{min-width:0;display:flex;flex-direction:column}
.cartRowNew__img{width:112px;height:132px;border-radius:18px;object-fit:cover;background:#111;justify-self:end;align-self:start}
.cartRowNew__title{font-size:16px;line-height:1.05;font-weight:900;margin-bottom:8px}
.cartRowNew__price{font-size:16px;font-weight:900;margin-bottom:8px}
.cartRowNew__meta{font-size:12px;line-height:1.35;color:rgba(255,255,255,.68);display:flex;flex-direction:column;gap:3px}
.cartRowNew__controls{margin-top:auto;display:flex;flex-direction:column;align-items:flex-start;gap:10px;padding-top:12px}
.cartQtyNew{display:flex;align-items:center;gap:10px}
.cartQtyNew__btn{width:40px;height:40px;border-radius:12px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.04);color:#fff;font-weight:900}
.cartQtyNew__val{min-width:18px;text-align:center;font-weight:900}
.cartRemoveNew{min-height:38px;padding:0 14px;border-radius:12px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.04);color:#fff;font-weight:800}
@media (max-width: 460px){
  .cartRowNew{grid-template-columns:minmax(0,1fr) 96px;gap:12px;padding:12px}
  .cartRowNew__img{width:96px;height:116px;border-radius:16px}
}

/* v6.7 scoped cart/catalog fix */
body.page-cart #grid{display:grid !important;grid-template-columns:1fr !important;gap:14px !important;}
body.page-catalog #grid{display:grid !important;grid-template-columns:1fr 1fr !important;gap:16px !important;}
@media (max-width:480px){body.page-catalog #grid{grid-template-columns:1fr 1fr !important;gap:14px !important;}}
body.page-cart .cartRowNew{display:grid !important;grid-template-columns:minmax(0,1fr) 112px !important;gap:14px !important;padding:14px !important;border:1px solid rgba(255,255,255,.08) !important;border-radius:22px !important;background:rgba(255,255,255,.02) !important;}
body.page-cart .cartRowNew__body{min-width:0;display:flex !important;flex-direction:column !important;order:1;}
body.page-cart .cartRowNew__img{width:112px !important;height:132px !important;border-radius:18px !important;object-fit:cover !important;background:#111 !important;justify-self:end !important;order:2;}
body.page-cart .cartRowNew__controls{margin-top:auto !important;display:flex !important;flex-direction:column !important;align-items:flex-start !important;gap:10px !important;padding-top:12px !important;}

/* v6.10 direct-add exact fix */
body.page-catalog #grid{
  display:grid !important;
  grid-template-columns:1fr 1fr !important;
  gap:14px !important;
}
body.page-cart #grid{
  display:grid !important;
  grid-template-columns:1fr !important;
  gap:14px !important;
}
.catalogCardActions{
  position:relative !important;
  z-index:20 !important;
  pointer-events:auto !important;
}
.catalogCardActions .cta,
.catalogCardActions .heart{
  position:relative !important;
  z-index:21 !important;
  pointer-events:auto !important;
  touch-action:manipulation !important;
  -webkit-tap-highlight-color: transparent;
}

/* v7 order request */
.orderSummary{
  margin: 0 0 14px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  background: rgba(255,255,255,.03);
}
.orderSummary__title{
  font-size: 14px;
  font-weight: 900;
  margin-bottom: 10px;
}
.orderSummary__row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  font-size: 13px;
  color: rgba(255,255,255,.72);
  padding: 6px 0;
}
.orderSummary__row strong{
  color:#fff;
  font-size: 14px;
}

/* v7.1 catalog no cta + cart one-line controls */
.catalogCardActions{
  justify-content:flex-start !important;
  margin-top: 10px !important;
}
.catalogCardActions .heart{
  width:46px !important;
  height:46px !important;
}
.catalogCardActions .cta{
  display:none !important;
}
.card{
  cursor:pointer;
}
.catalogCardActions,
.catalogCardActions *{
  cursor:auto;
}
body.page-cart .cartRowNew__controls{
  margin-top:auto !important;
  display:flex !important;
  flex-direction:row !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:12px !important;
  padding-top:12px !important;
  flex-wrap:nowrap !important;
}
body.page-cart .cartQtyNew{
  display:flex !important;
  align-items:center !important;
  gap:10px !important;
}
body.page-cart .cartQtyNew__btn{
  width:42px !important;
  height:42px !important;
  border-radius:14px !important;
}
body.page-cart .cartQtyNew__val{
  min-width:18px !important;
  text-align:center !important;
  font-weight:900 !important;
}
body.page-cart .cartRemoveNew{
  min-height:42px !important;
  padding:0 14px !important;
  border-radius:14px !important;
  margin-left: 6px !important;
}

/* v7.2 like overlay on catalog image */
.catalogCardMedia{
  position: relative;
}
.catalogCardMedia .card__img{
  display:block;
}
.heart--overlay{
  position:absolute !important;
  top:10px !important;
  right:10px !important;
  width:38px !important;
  height:38px !important;
  border-radius:999px !important;
  border:1px solid rgba(255,255,255,.10) !important;
  background:rgba(14,14,17,.62) !important;
  backdrop-filter: blur(10px);
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  font-size:18px !important;
  line-height:1 !important;
  z-index:4 !important;
}
.catalogCardActions{
  margin-top: 8px !important;
}
.catalogCardActions .heart{
  display:none !important;
}

/* v7.8 delivery checkout */
.checkoutForm .label{
  margin-top: 12px;
}
.deliveryChoices{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
  margin: 10px 0 8px;
}
.deliveryOption{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 14px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
  background:rgba(255,255,255,.02);
  font-weight:800;
}
.deliveryOption input{
  accent-color:#fff;
}
.checkoutHint{
  margin-top: 8px;
}
.checkoutFields{
  margin-top: 8px;
}
.checkoutFields .input,
.checkoutFields .textarea{
  width:100%;
}
#cdekFields{
  margin-top: 6px;
}

/* v8.0 minimal icon treatment */
.icon-btn{
  min-width:42px;
  height:42px;
  padding:0 10px !important;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.02);
  color:rgba(255,255,255,.92);
  border-radius:14px;
  font-size:20px;
  line-height:1;
}
.icon-btn:active{
  background:rgba(255,255,255,.06);
}
.topbar .icon-btn{
  box-shadow:none;
}
.heart--minimal{
  font-size:20px !important;
  line-height:1 !important;
  color:rgba(255,255,255,.9) !important;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.heart--minimal.isActive{
  color:#fff !important;
}
.heart--overlay.heart--minimal{
  width:38px !important;
  height:38px !important;
  border-radius:999px !important;
  border:1px solid rgba(255,255,255,.10) !important;
  background:rgba(14,14,17,.52) !important;
  backdrop-filter: blur(8px);
}
.heart--overlay.heart--minimal.isActive{
  background:rgba(255,255,255,.10) !important;
}
.topbar__right .icon-btn,
.topbar > .icon-btn{
  flex:0 0 auto;
}

/* v8.1 size selector */
.productSizes{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin: 12px 0 2px;
}
.sizeBtn{
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  color:#fff;
  font-weight:800;
  font-size:13px;
}
.sizeBtn.active{
  border-color: rgba(255,255,255,.32);
  background: rgba(255,255,255,.08);
}

/* v8.2 product size + admin brand/card polish */
.productSizes{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0 4px}
.sizeBtn{min-height:42px;padding:0 14px;border-radius:999px;border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.03);color:#fff;font-weight:800;font-size:13px}
.sizeBtn.active{border-color:rgba(255,255,255,.32);background:rgba(255,255,255,.08)}
.catalogCardMetaRow{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:8px}
.catalogCardBrand{font-size:11px;color:var(--muted);font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.catalogCardTagMini{display:inline-flex;align-items:center;justify-content:center;min-height:24px;padding:0 10px;border-radius:999px;border:1px solid rgba(255,255,255,.10);font-size:10px;font-weight:900;letter-spacing:.6px;text-transform:uppercase}

/* v8.3 brand picker + smaller tag */
.brandPicker{display:grid;grid-template-columns:1.2fr .9fr;gap:8px}
.catalogCardMetaRow{align-items:flex-start;gap:8px}
.catalogCardBrand{
  font-size:9.5px;
  color:var(--muted);
  font-weight:700;
  line-height:1.15;
  white-space:nowrap;
  overflow:visible;
  text-overflow:clip;
  flex:1 1 auto;
  min-width:0;
}
.catalogCardTagMini{
  min-height:22px;
  padding:0 8px;
  font-size:9px;
  letter-spacing:.5px;
  flex:0 0 auto;
}

/* v8.4 card polish */
.catalogCardMetaRow{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:8px;
  margin-top:10px;
}
.catalogCardBrand{
  color:#fff;
  font-size:12px;
  font-weight:800;
  line-height:1.15;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  flex:1 1 auto;
  min-width:0;
}
.catalogCardTagMini{
  min-height:20px;
  padding:0 7px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  font-size:8.5px;
  font-weight:900;
  letter-spacing:.45px;
  flex:0 0 auto;
  white-space:nowrap;
}
.brandPicker{
  display:grid;
  grid-template-columns:1.2fr .9fr;
  gap:8px;
}

/* v8.5 brand modal + tag overlay */
.brandPicker{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:8px;
}
#btnPickBrandAdd,#btnPickBrandEdit{
  white-space:nowrap;
  min-width:96px;
}
.catalogCardTagOverlay{
  position:absolute;
  top:10px;
  left:10px;
  z-index:4;
  min-height:22px;
  padding:0 8px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(14,14,17,.62);
  backdrop-filter:blur(10px);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:8.5px;
  font-weight:900;
  letter-spacing:.45px;
  text-transform:uppercase;
}
.catalogCardMetaRow{
  margin-top:10px;
}
.catalogCardBrand{
  color:#fff;
  font-size:12px;
  font-weight:800;
  line-height:1.15;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

/* v8.6 status + size pill */
.catalogCardMeta{
  margin-top: 8px;
  font-size: 11px;
  line-height: 1.25;
}
.catalogCardBrand{
  color:#fff;
  font-size:12.5px;
  font-weight:800;
  line-height:1.15;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.catalogCardMetaRow{
  margin-top:10px;
}
.catalogCardTagOverlay{
  display:none !important;
}
.catalogCardBadges{
  display:flex;
  justify-content:flex-end;
  margin-top:10px;
}
.catalogCardSizeMini{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:24px;
  padding:0 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.03);
  color:#fff;
  font-size:10px;
  font-weight:800;
  letter-spacing:.2px;
}

/* v8.7 catalog unify */
.catalogCardMeta{
  margin-top: 8px;
  font-size: 11px;
  line-height: 1.25;
}
.catalogCardMetaRow{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:8px;
  margin-top:10px;
}
.catalogCardBrand{
  color:#fff;
  font-size:12.5px;
  font-weight:800;
  line-height:1.15;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  flex:1 1 auto;
  min-width:0;
}
.catalogCardBadges{
  display:none !important;
}
.catalogCardSizeMini{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:24px;
  padding:0 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.03);
  color:#fff;
  font-size:10px;
  font-weight:800;
  letter-spacing:.2px;
  flex:0 0 auto;
}

/* v8.8 unify stock/preorder catalog cards */
body.page-catalog .card__img{
  aspect-ratio: 4 / 4.6 !important;
  object-fit: cover !important;
  display:block;
}
.catalogCardBody{
  padding: 12px 12px 13px !important;
}
.catalogCardTitle{
  font-size: 14px !important;
  margin-bottom: 7px !important;
}
.catalogCardPrice{
  font-size: 15px !important;
  margin-bottom: 6px !important;
}
.catalogCardMeta{
  margin-top: 8px !important;
  font-size: 11px !important;
}
.catalogCardMetaRow{
  margin-top: 10px !important;
}
.catalogCardSizeMini{
  min-height: 22px !important;
  padding: 0 8px !important;
  font-size: 9px !important;
  border-radius: 999px !important;
}

/* v8.9 unified card layout for stock & preorder */
body.page-catalog #grid{
  grid-template-columns: 1fr 1fr !important;
  gap: 14px !important;
}
body.page-catalog .card{
  overflow: hidden;
  border-radius: 16px !important;
}
body.page-catalog .card__img{
  width: 100% !important;
  aspect-ratio: 4 / 4.6 !important;
  object-fit: cover !important;
  display: block !important;
}
.catalogCardBody{
  padding: 12px 12px 13px !important;
}
.catalogCardTitle{
  font-size: 14px !important;
  line-height: 1.08 !important;
  margin-bottom: 9px !important;
  min-height: 30px;
}
.catalogCardPrice{
  font-size: 15px !important;
  line-height: 1.08 !important;
  margin-bottom: 8px !important;
}
.catalogCardMeta{
  margin-top: 0 !important;
  font-size: 11px !important;
  line-height: 1.25 !important;
  min-height: 14px;
}
.catalogCardMetaRow{
  display: flex !important;
  align-items: flex-end !important;
  justify-content: space-between !important;
  gap: 8px !important;
  margin-top: 12px !important;
  min-height: 28px;
}
.catalogCardBrand{
  color: #fff !important;
  font-size: 12.5px !important;
  font-weight: 800 !important;
  line-height: 1.14 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
}
.catalogCardSizeMini{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 20px !important;
  padding: 0 7px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  background: rgba(255,255,255,.03) !important;
  color: #fff !important;
  font-size: 8.5px !important;
  font-weight: 800 !important;
  letter-spacing: .15px !important;
  flex: 0 0 auto !important;
}
.catalogCardBadges{
  display: none !important;
}
.catalogCardActions{
  display: none !important;
}
.heart--overlay{
  top: 10px !important;
  right: 10px !important;
  width: 38px !important;
  height: 38px !important;
}

/* v9.0 empty states + favorites/brand grids */
body.page-favorites #grid,
body.page-brand #grid{
  display:grid !important;
  grid-template-columns:1fr 1fr !important;
  gap:14px !important;
}
.emptyState{
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.02);
  border-radius:22px;
  padding:22px 18px;
}
.emptyState__title{
  font-size:22px;
  font-weight:900;
  line-height:1.05;
  margin-bottom:10px;
}
.emptyState__text{
  color:var(--muted);
  font-size:14px;
  line-height:1.45;
  margin-bottom:16px;
  max-width:28rem;
}
.emptyState__cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:0 16px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
  font-weight:800;
}
.brandHeader{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  margin-bottom:8px;
}
.brandHeader__title{
  font-size:28px;
  font-weight:900;
  line-height:1;
}

/* v9.3 admin ux */
.itemActions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

/* v9.4 admin brand autocomplete */
.brandFilterWrap{
  position:relative;
  flex:1;
  min-width:180px;
}
.brandSuggest{
  position:absolute;
  top:calc(100% + 8px);
  left:0;
  right:0;
  z-index:30;
  border:1px solid rgba(255,255,255,.08);
  background:#0f1014;
  border-radius:16px;
  padding:8px;
  box-shadow:0 16px 40px rgba(0,0,0,.35);
}
.brandSuggest__item{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  min-height:42px;
  padding:0 12px;
  border:0;
  background:transparent;
  color:#fff;
  border-radius:12px;
  font-weight:700;
}
.brandSuggest__item:active{
  background:rgba(255,255,255,.06);
}

/* v10.0 orders foundation */
#orderSuccessState{
  border-color: rgba(255,255,255,.10);
}

/* v10.1 orders debug */
#orderErrorState .emptyState__title{
  color:#ffb4b4;
}


/* v12.0 home lower block */
.home-lower{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:12px;margin-top:14px;align-items:stretch}
.home-side{display:grid;gap:12px}
.quick--compact{min-height:118px}
.featureTall{position:relative;overflow:hidden;border-radius:24px;border:1px solid var(--line);background:var(--card);min-height:248px;display:flex;align-items:flex-end;padding:18px;text-decoration:none;color:var(--text)}
.featureTall__bg{position:absolute;inset:0;background-size:cover;background-position:center;opacity:.18;filter:saturate(.8)}
.featureTall__shade{position:absolute;inset:0;background:linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.48) 100%)}
.featureTall__content{position:relative;z-index:1;width:100%;display:flex;align-items:flex-end;justify-content:space-between;gap:12px}
.featureTall__eyebrow{font-size:12px;color:var(--muted);letter-spacing:1.2px;text-transform:uppercase;margin-bottom:10px}
.featureTall__title{font-weight:900;letter-spacing:1.2px;font-size:28px;line-height:1.02;text-transform:uppercase;max-width:88%}
.featureTall__meta{margin-top:10px;font-size:12px;color:var(--muted);letter-spacing:.8px;text-transform:uppercase;max-width:90%}
.featureTall__arrow{font-size:22px;opacity:.9}
.featureTall:active{transform:translateY(1px);opacity:.97}
@media (max-width: 720px){
  .home-lower{grid-template-columns:1fr 1fr}
  .featureTall__title{font-size:24px}
}

/* v12.2.7 info page */
.infoPage{display:grid;gap:14px}
.infoHero{position:relative;overflow:hidden;border:1px solid var(--line);border-radius:28px;background:linear-gradient(180deg,#12131a 0%, #0e0f14 100%);padding:22px 18px;min-height:220px;display:flex;align-items:flex-end}
.infoHero::before{content:"";position:absolute;inset:0;background:radial-gradient(circle at top right, rgba(255,255,255,.08), transparent 34%), radial-gradient(circle at bottom left, rgba(255,255,255,.05), transparent 32%);pointer-events:none}
.infoHero__content{position:relative;z-index:1;max-width:88%}
.infoHero__eyebrow{font-size:12px;letter-spacing:1.6px;text-transform:uppercase;color:var(--muted);margin-bottom:10px}
.infoHero__title{font-size:34px;line-height:1.02;font-weight:900;letter-spacing:.4px;margin:0}
.infoHero__text{margin-top:12px;color:var(--muted);line-height:1.5;max-width:520px}
.infoNav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.infoNav__item{display:flex;align-items:center;justify-content:center;min-height:52px;padding:0 14px;border:1px solid var(--line);border-radius:18px;background:var(--card);color:var(--text);text-decoration:none;font-weight:800;letter-spacing:.2px}
.infoNav__item:active{transform:translateY(1px)}
.infoSection{border:1px solid var(--line);border-radius:24px;background:var(--card2);padding:18px;scroll-margin-top:96px}
.infoSection__eyebrow{font-size:12px;letter-spacing:1.5px;text-transform:uppercase;color:var(--muted);margin-bottom:10px}
.infoSection__title{font-size:22px;line-height:1.1;font-weight:900;margin:0 0 12px}
.infoGrid{display:grid;gap:10px}
.infoRow{display:grid;grid-template-columns:150px 1fr;gap:12px;padding:14px 0;border-top:1px solid rgba(255,255,255,.06)}
.infoRow:first-child{border-top:0;padding-top:0}
.infoRow__label{color:var(--muted);font-size:13px}
.infoRow__value{font-weight:700;line-height:1.45}
.infoList{margin:0;padding-left:18px;display:grid;gap:6px}
.infoList li{color:var(--text)}
.infoCards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:8px}
.infoMini{border:1px solid rgba(255,255,255,.07);border-radius:18px;padding:14px;background:#101119}
.infoMini__title{font-weight:800;margin-bottom:8px}
.infoMini__text{color:var(--muted);line-height:1.45;font-size:14px}
.infoContact{display:grid;gap:10px}
.infoContact__card{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;border:1px solid rgba(255,255,255,.07);border-radius:18px;padding:16px;background:#101119;text-decoration:none;color:var(--text)}
.infoContact__title{font-weight:800;margin-bottom:6px}
.infoContact__text{color:var(--muted);line-height:1.45}
.infoContact__arrow{font-size:18px;opacity:.8}
@media (max-width:720px){
  .infoHero{min-height:196px;padding:18px 16px;border-radius:24px}
  .infoHero__title{font-size:30px}
  .infoNav{grid-template-columns:1fr}
  .infoRow{grid-template-columns:1fr;gap:6px}
  .infoCards{grid-template-columns:1fr}
}

/* v12.2.9 request page */
.requestPage{max-width:720px}
.requestHero{margin-top:18px;margin-bottom:18px}
.requestHero__eyebrow{font-size:12px;letter-spacing:.18em;text-transform:uppercase;color:var(--muted);margin-bottom:10px}
.requestHero__title{font-size:32px;line-height:1.05;letter-spacing:-.04em;margin:0 0 10px;font-weight:900}
.requestHero__text{font-size:15px;line-height:1.5;color:var(--muted);max-width:560px}
.requestForm{gap:14px;max-width:none}
.requestCard{border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.02);border-radius:22px;padding:16px}
.requestCard .label{margin-bottom:10px}
.requestCard .input,.requestCard .textarea{width:100%;background:rgba(255,255,255,.01)}
.requestCard .textarea{min-height:120px}
.uploadCard{display:grid;grid-template-columns:1fr auto;grid-template-areas:'copy button' 'name name';gap:10px 14px;align-items:center}
.uploadCard__copy{grid-area:copy}
.uploadButton{grid-area:button;display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:0 18px;border-radius:16px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.05);color:var(--text);font-weight:800;text-decoration:none;cursor:pointer}
.uploadButton:active{opacity:.9}
.uploadFileName{grid-area:name;font-size:13px;color:var(--muted)}
.uploadPreview{grid-area:name;display:grid;grid-template-columns:92px 1fr auto;gap:14px;align-items:center;border-radius:20px;overflow:hidden;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.03);padding:12px 14px;margin-top:4px}
.uploadPreview__media{width:92px;height:116px;border-radius:16px;overflow:hidden;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.04);box-shadow:0 8px 24px rgba(0,0,0,.18)}
.uploadPreview__img{display:block;width:100%;height:100%;object-fit:cover}
.uploadPreview__meta{min-width:0}
.uploadPreview__title{font-size:13px;color:var(--muted);margin-bottom:6px}
.uploadPreview__name{font-size:14px;font-weight:800;line-height:1.35;word-break:break-word}
.uploadPreview__remove{align-self:center;display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 14px;border-radius:14px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.04);color:var(--text);font-weight:800;cursor:pointer}
.uploadPreview__remove:active{opacity:.9}
.toggleRow{display:flex;gap:8px;margin:0 0 10px}
.chipChoice{min-height:38px;padding:0 14px;border-radius:999px;border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.03);color:var(--text);font-weight:800}
.chipChoice.isActive{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.18)}
.requestSubmit{width:100%;margin-top:4px}
.input:disabled{opacity:.65}

@media (max-width:640px){
  .requestHero__title{font-size:28px}
  .uploadCard{grid-template-columns:1fr;grid-template-areas:'copy' 'button' 'name'}
  .uploadPreview{grid-template-columns:1fr;gap:12px}
  .uploadPreview__media{width:100%;height:auto;aspect-ratio:4/5}
  .uploadPreview__remove{width:100%}
  .uploadButton{width:100%}
}

.uploadPreview[hidden]{display:none!important}

/* v12.2.10.2 cleanup */
.uploadFileName{display:none!important}
.uploadPreview__meta{min-width:0;overflow:hidden}
.uploadPreview__name{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-break:normal}


.notice .btn, .emptyHint .btn, .clientOrdersEmpty .btn{display:inline-flex;align-items:center;justify-content:center;margin-top:8px;}
.notice a.btn{text-decoration:none;}


.checkoutForm #checkout{width:100%;min-height:58px;margin-top:18px;display:flex;align-items:center;justify-content:center}
.checkoutFields .textarea{margin-bottom:12px}
.checkoutFields{margin-top:12px}
.checkoutHint{margin-top:10px;margin-bottom:8px}

/* v12.3.4.2 product favorite fix */
.productActionsMain .heart.heart--productFav{background:transparent;color:#fff;border-color:rgba(255,255,255,.14);}
.productActionsMain .heart.heart--productFav.isActive{background:rgba(255,255,255,.12);color:#fff;border-color:rgba(255,255,255,.22);}
.productActionsMain .heart.heart--productFav svg{display:block;width:24px;height:24px;}
