/* Vurzen UI layer (AllSaints-inspired) */
:root{
  --vz-bg:#0b0c0d;
  --vz-fg:#f2f2f2;
  --vz-muted: rgba(242,242,242,.70);
  --vz-line: rgba(242,242,242,.16);
  --vz-card: rgba(255,255,255,.06);
  --vz-card2: rgba(255,255,255,.08);
  --vz-radius: 16px;
  --vz-cols: 4;
}

/* ensure background */
body{
  background: var(--vz-bg);
  color: var(--vz-fg);  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Fixed header */
.vz-header{
  position: fixed;
  top:0; left:0; right:0;
  z-index: 9999;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--vz-line);
}
.vz-header__inner{
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 22px;
  display:flex;
  align-items:center;
  gap: 18px;
}
.vz-header__left{ display:flex; align-items:center; gap:12px; min-width: 64px; }
.vz-header__logo img{ max-height: 36px; width:auto; display:block; filter: grayscale(1) contrast(1.05) brightness(1.1); }
.vz-header__logo .custom-logo-link{ display:block; line-height:0; }
.vz-header__logo .custom-logo{ max-height:36px; width:auto; display:block; filter: grayscale(1) contrast(1.05) brightness(1.1); }
.vz-wordmark{ font-weight: 600; letter-spacing: .14em; font-size: 14px; text-transform: uppercase; color: var(--vz-fg); }

.vz-header__nav{
  display:flex;
  align-items:center;
  justify-content:center;
  flex:1;
  gap: 18px;
  min-width: 0;
}
.vz-header__link{
  font-weight: 500;
  color: var(--vz-muted);
  text-decoration:none;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 12px;
  padding: 8px 6px;
  transition: color .18s ease, opacity .18s ease;
  white-space: nowrap;
}
.vz-header__link:hover{ color: var(--vz-fg); opacity: 1; }

.vz-header__right{
  display:flex;
  align-items:center;
  gap: 12px;
}
.vz-icon{
  width: 36px; height: 36px;
  display:inline-flex; align-items:center; justify-content:center;
  border: 1px solid var(--vz-line);
  border-radius: 999px;
  color: var(--vz-fg);
  text-decoration:none;
  position: relative;
  transition: transform .15s ease, border-color .15s ease;
}
.vz-icon:hover{ transform: translateY(-1px); border-color: rgba(255,255,255,.28); }
.vz-cart-count{
  position:absolute;
  top:-6px; right:-6px;
  background: #fff;
  color:#000;
  border-radius: 999px;
  font-size: 11px;
  padding: 1px 6px;
  line-height: 16px;
}

/* Mobile toggle */
.vz-burger{
  display:none;
  width: 40px; height: 40px;
  align-items:center; justify-content:center;
  border:1px solid var(--vz-line);
  border-radius: 999px;
  background: transparent;
  color: var(--vz-fg);
  cursor:pointer;
}
.vz-burger span{
  display:block;
  width: 18px; height: 2px;
  background: var(--vz-fg);
  position: relative;
}
.vz-burger span::before,
.vz-burger span::after{
  content:"";
  position:absolute;
  left:0;
  width: 18px; height: 2px;
  background: var(--vz-fg);
}
.vz-burger span::before{ top:-6px; }
.vz-burger span::after{ top:6px; }

/* Offcanvas nav */
.vz-drawer{
  position: fixed;
  top:0; right:0; bottom:0;
  width: min(86vw, 360px);
  background: rgba(0,0,0,.92);
  backdrop-filter: blur(10px);
  border-left: 1px solid var(--vz-line);
  transform: translateX(110%);
  transition: transform .22s ease;
  z-index: 10000;
  padding: 86px 18px 18px 18px;
}
.vz-drawer__links{
  display:flex;
  flex-direction:column;
  gap: 8px;
}
.vz-drawer__links a{
  padding: 12px 10px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  color: var(--vz-fg);
  text-decoration:none;
  letter-spacing:.10em;
  text-transform: uppercase;
  font-size: 12px;
}
.vz-drawer__links a:hover{ border-color: rgba(255,255,255,.28); }
.vz-overlay{
  position: fixed; inset:0;
  background: rgba(0,0,0,.55);
  opacity:0;
  pointer-events:none;
  transition: opacity .22s ease;
  z-index: 9998;
}

body.vz-nav-open .vz-drawer{ transform: translateX(0); }
body.vz-nav-open .vz-overlay{ opacity:1; pointer-events:auto; }

/* Shrink-on-scroll */
body.vz-scrolled .vz-header__inner{ padding-top: 12px; padding-bottom: 12px; }
body.vz-scrolled{ }

/* Homepage product grid: make it responsive without touching customizer */
.vz-products .woocommerce ul.products{
  display:grid !important;
  grid-template-columns: repeat(var(--vz-cols), minmax(0,1fr)) !important;
  gap: 18px !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* IMPORTANT: Many WooCommerce themes set width/float on li.product.
   When we use CSS grid, we MUST neutralize those or the layout will still look like 3-4 columns on mobile. */
.vz-products .woocommerce ul.products li.product{
  width: auto !important;
  float: none !important;
  clear: none !important;
  margin: 0 !important;
}

/* Cards */
.woocommerce ul.products li.product{
  background: rgba(255,255,255,.03) !important;
  border: 1px solid var(--vz-line) !important;
  border-radius: var(--vz-radius) !important;
  padding: 14px !important;
}
.woocommerce ul.products li.product a{ color: var(--vz-fg) !important; }
.woocommerce ul.products li.product .woocommerce-loop-product__title{
  font-size: 14px !important;
  font-weight: 500;
  letter-spacing: .02em;
}
.woocommerce ul.products li.product .price{ color: var(--vz-fg) !important; opacity: .9; }
.woocommerce ul.products li.product .button{
  border: 1px solid rgba(255,255,255,.24) !important;
  background: transparent !important;
  color: var(--vz-fg) !important;
  border-radius: 0 !important;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 11px !important;
  padding: 12px 14px !important;
}

/* Breakpoints (重要：小屏/中屏必须管，最少保证不崩) */
@media (max-width: 1200px){
  .vz-header__inner{ max-width: 1040px; }
}

@media (max-width: 921px){
  .vz-header__nav{ display:none; }
  .vz-burger{ display:inline-flex; }
  body{ padding-top: 72px !important; }
  .vz-products .woocommerce ul.products{ grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
}

@media (max-width: 560px){
  .vz-header__inner{ padding-left: 14px; padding-right: 14px; }
  .vz-icon{ width: 34px; height: 34px; }
  .vz-products .woocommerce ul.products{ grid-template-columns: repeat(1, minmax(0,1fr)) !important; }
}
