/*
Theme Name: 钻位 Street
Theme URI: https://good.20554.cn/
Author: Site A
Description: A monochrome editorial WooCommerce theme for the 钻位 storefront.
Version: 1.0.0
Text Domain: zuanwei-street
*/

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Oswald";
  src: url("assets/fonts/oswald-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
}

:root {
  --zw-ink: #090909;
  --zw-muted: #6b6b6b;
  --zw-line: #e7e7e7;
  --zw-paper: #ffffff;
  --zw-soft: #f5f5f3;
  --zw-accent: #dd91aa;
  --zw-width: 1320px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--zw-ink);
  background: var(--zw-paper);
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.admin-bar .zw-site-header { top: 32px; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--zw-accent); }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.zw-announcement {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  background: var(--zw-accent);
  color: var(--zw-ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
  text-align: center;
}

.zw-site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--zw-line);
  background: rgba(255,255,255,.97);
}

.zw-header-inner {
  width: min(var(--zw-width), calc(100% - 64px));
  min-height: 76px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 170px 1fr 170px;
  align-items: center;
  gap: 24px;
}

.zw-brand {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -.08em;
  line-height: 1;
  white-space: nowrap;
}

.zw-main-nav ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.2vw, 34px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.zw-main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--zw-ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
}

.zw-main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 6px;
  height: 2px;
  background: var(--zw-accent);
  transition: right .2s ease;
}

.zw-main-nav a:hover::after,
.zw-main-nav .is-current a::after { right: 0; }

.zw-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}

.zw-icon-button,
.zw-cart {
  position: relative;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--zw-ink);
  cursor: pointer;
}

.zw-icon-button:hover,
.zw-cart:hover { background: var(--zw-soft); color: var(--zw-ink); }

.zw-icon-button .dashicons,
.zw-cart .dashicons {
  width: 22px;
  height: 22px;
  font-size: 22px;
}

.zw-cart-count {
  position: absolute;
  right: 1px;
  top: 1px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--zw-ink);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

.zw-menu-toggle { display: none; }

.zw-search-panel {
  display: none;
  border-top: 1px solid var(--zw-line);
  background: #fff;
}

.zw-search-panel.is-open { display: block; }

.zw-search-form {
  width: min(720px, calc(100% - 40px));
  margin: 0 auto;
  padding: 20px 0;
  display: grid;
  grid-template-columns: 1fr auto;
}

.zw-search-form input[type="search"] {
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--zw-ink);
  border-right: 0;
  border-radius: 0;
}

.zw-search-form button,
.zw-button,
.button,
button.button,
input.button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  min-height: 46px;
  padding: 12px 22px;
  border: 1px solid var(--zw-ink);
  border-radius: 0;
  background: var(--zw-ink);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.2;
  text-transform: uppercase;
  transition: background .2s ease, color .2s ease;
}

.zw-button:hover,
.button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  background: #fff;
  color: var(--zw-ink);
}

.zw-button--ghost { background: transparent; color: var(--zw-ink); }
.zw-button--light { border-color: #fff; background: #fff; color: var(--zw-ink); }

.zw-hero {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  background: #f1f1ef;
}

.zw-hero-media {
  position: absolute;
  inset: 0;
}

.zw-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.92) 29%, rgba(255,255,255,.1) 55%, rgba(255,255,255,0) 100%);
}

.zw-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.zw-hero-inner {
  position: relative;
  z-index: 2;
  width: min(var(--zw-width), calc(100% - 64px));
  min-height: 440px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
}

.zw-hero-copy { max-width: 610px; padding: 38px 0; }

.zw-kicker {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.zw-hero h1,
.zw-display-title {
  margin: 0;
  font-family: "Oswald", "Arial Narrow", Impact, sans-serif;
  font-size: clamp(58px, 6.7vw, 100px);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: .93;
  text-transform: uppercase;
}

.zw-hero-copy > p:not(.zw-kicker) {
  margin: 16px 0 24px;
  font-size: clamp(17px, 1.4vw, 21px);
}

.zw-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.zw-hero-note {
  position: absolute;
  z-index: 2;
  right: 6%;
  bottom: 42px;
  max-width: 120px;
  color: #fff;
  font-family: "Oswald", sans-serif;
  font-size: 24px;
  font-style: italic;
  font-weight: 500;
  line-height: 1.1;
  text-align: right;
  text-transform: uppercase;
  transform: rotate(-7deg);
}

.zw-price-difference {
  background: var(--zw-ink);
  color: #fff;
}

.zw-price-difference__inner {
  width: min(1040px, calc(100% - 64px));
  min-height: 62px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 116px 1fr auto;
  align-items: center;
  gap: 20px;
}

.zw-price-difference__icon {
  width: 116px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid #5d5d5d;
  background: #fff;
  color: var(--zw-ink);
}

.zw-price-difference__icon .dashicons {
  width: 21px;
  height: 21px;
  font-size: 21px;
}

.zw-price-difference__label {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.zw-price-difference__label small {
  color: #a9a9a9;
  font-size: 10px;
  font-weight: 500;
}

.zw-price-difference .zw-button { min-height: 38px; padding: 9px 34px; }

.zw-catalog {
  width: min(var(--zw-width), calc(100% - 64px));
  margin: 0 auto;
  padding: 16px 0 64px;
}

.zw-catalog-head {
  margin-bottom: 10px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.zw-catalog-head h2 {
  margin: 0;
  font-family: "Oswald", "Arial Narrow", Impact, sans-serif;
  font-size: clamp(38px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1;
  text-transform: uppercase;
}

.zw-catalog-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--zw-muted);
  font-size: 13px;
}

.woocommerce .woocommerce-ordering,
.woocommerce-page .woocommerce-ordering { float: none; margin: 0; }

.woocommerce .woocommerce-ordering select,
.woocommerce-page .woocommerce-ordering select {
  min-height: 42px;
  padding: 0 38px 0 13px;
  border: 1px solid #bdbdbd;
  border-radius: 0;
  background: #fff;
  color: var(--zw-ink);
}

.woocommerce ul.products,
.woocommerce-page ul.products,
ul.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 36px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::before,
.woocommerce-page ul.products::after { display: none; }

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
ul.products li.product {
  position: relative;
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0;
}

.woocommerce ul.products li.product a img,
.woocommerce-page ul.products li.product a img,
ul.products li.product a img {
  width: 100%;
  aspect-ratio: 4 / 3;
  margin: 0 0 13px;
  background: var(--zw-soft);
  object-fit: cover;
  transition: opacity .2s ease;
}

.woocommerce ul.products li.product:hover a img { opacity: .92; }

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce-page ul.products li.product .woocommerce-loop-product__title {
  min-height: 42px;
  margin: 0;
  padding: 0;
  display: -webkit-box;
  overflow: hidden;
  color: var(--zw-ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.woocommerce ul.products li.product .price,
.woocommerce-page ul.products li.product .price {
  margin: 6px 0 0;
  color: var(--zw-ink);
  font-size: 14px;
}

.woocommerce ul.products li.product .price del { color: #777; opacity: 1; }
.woocommerce ul.products li.product .price ins { color: var(--zw-accent); font-weight: 700; text-decoration: none; }

.woocommerce span.onsale {
  z-index: 3;
  min-width: 0;
  min-height: 0;
  margin: 12px 0 0 12px;
  padding: 5px 8px;
  border-radius: 0;
  background: var(--zw-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.woocommerce ul.products li.product .button {
  width: 100%;
  margin-top: 12px;
  text-align: center;
}

.woocommerce nav.woocommerce-pagination { margin-top: 44px; }
.woocommerce nav.woocommerce-pagination ul { border: 0; }
.woocommerce nav.woocommerce-pagination ul li { border-right: 0; margin: 0 3px; }
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span { min-width: 38px; padding: 10px; }
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--zw-ink); color: #fff; }

.zw-content-shell {
  width: min(1180px, calc(100% - 48px));
  min-height: 55vh;
  margin: 0 auto;
  padding: 56px 0 80px;
}

.zw-content-shell h1,
.woocommerce-products-header__title,
.page-title {
  margin: 0 0 28px;
  font-family: "Oswald", "Arial Narrow", Impact, sans-serif;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1;
  text-transform: uppercase;
}

.zw-content-shell .woocommerce-result-count { color: var(--zw-muted); }
.zw-content-shell .woocommerce-ordering { margin-bottom: 24px; }

.woocommerce div.product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, .8fr);
  gap: 56px;
}

.woocommerce div.product div.images,
.woocommerce div.product div.summary { float: none; width: auto; }
.woocommerce div.product .product_title { font-family: "Oswald", sans-serif; font-size: clamp(34px, 4vw, 58px); line-height: 1.05; }
.woocommerce div.product p.price,
.woocommerce div.product span.price { color: var(--zw-ink); font-size: 22px; }

.woocommerce div.product form.cart .button,
.woocommerce div.product form.cart .button.alt {
  border-color: var(--zw-ink);
  background: var(--zw-ink);
  color: #fff;
}

.woocommerce div.product form.cart .button:hover,
.woocommerce div.product form.cart .button.alt:hover {
  background: #fff;
  color: var(--zw-ink);
}

.woocommerce .quantity .qty {
  min-height: 46px;
  border: 1px solid #aaa;
  border-radius: 0;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce .select2-container .select2-selection--single {
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid #bbb;
  border-radius: 0;
}

.woocommerce table.shop_table { border-radius: 0; }
.woocommerce-info,
.woocommerce-message,
.woocommerce-error { border-top-color: var(--zw-accent); background: var(--zw-soft); }

.zw-site-footer {
  border-top: 1px solid var(--zw-line);
  background: #fff;
}

.zw-footer-inner {
  width: min(var(--zw-width), calc(100% - 64px));
  min-height: 92px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  color: #555;
  font-size: 12px;
}

.zw-footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.zw-footer-brand { color: var(--zw-ink); font-size: 14px; font-weight: 800; text-align: center; }
.zw-payments { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.zw-paypal {
  padding: 6px 10px;
  border: 1px solid #1d4f91;
  color: #1d4f91;
  font-size: 13px;
  font-weight: 800;
  font-style: italic;
}

.woocommerce-breadcrumb { color: var(--zw-muted); font-size: 12px; }

@media (max-width: 1100px) {
  .zw-header-inner { grid-template-columns: 130px 1fr 130px; width: min(100% - 40px, var(--zw-width)); }
  .zw-main-nav ul { gap: 16px; }
  .zw-main-nav a { font-size: 11px; }
  .woocommerce ul.products,
  .woocommerce-page ul.products,
  ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  body.admin-bar .zw-site-header { top: 46px; }
  .zw-announcement { min-height: 34px; font-size: 10px; letter-spacing: .13em; }
  .zw-header-inner {
    min-height: 64px;
    width: calc(100% - 28px);
    grid-template-columns: 44px 1fr auto;
    gap: 10px;
  }
  .zw-menu-toggle { display: inline-flex; }
  .zw-brand { font-size: 28px; text-align: center; }
  .zw-main-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    border-top: 1px solid var(--zw-line);
    border-bottom: 1px solid var(--zw-line);
    background: #fff;
  }
  .zw-main-nav.is-open { display: block; }
  .zw-main-nav ul { display: block; padding: 14px 24px 20px; }
  .zw-main-nav a { width: 100%; min-height: 42px; font-size: 12px; }
  .zw-main-nav a::after { display: none; }
  .zw-header-actions { gap: 0; }
  .zw-header-actions .zw-account { display: none; }
  .zw-icon-button, .zw-cart { width: 36px; height: 36px; }
  .zw-hero,
  .zw-hero-inner { min-height: 560px; }
  .zw-hero-media img { object-position: 62% center; }
  .zw-hero-media::after { background: linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.78) 42%, rgba(0,0,0,.08) 72%, rgba(0,0,0,.4) 100%); }
  .zw-hero-inner { width: calc(100% - 40px); align-items: flex-start; }
  .zw-hero-copy { max-width: 460px; padding-top: 54px; }
  .zw-hero h1 { font-size: clamp(54px, 14vw, 76px); }
  .zw-hero-note { right: 24px; bottom: 22px; }
  .zw-price-difference__inner,
  .zw-catalog { width: calc(100% - 40px); }
  .zw-catalog-head { align-items: flex-start; flex-direction: column; gap: 14px; }
  .zw-catalog-controls { width: 100%; justify-content: space-between; }
  .woocommerce div.product { grid-template-columns: 1fr; gap: 24px; }
  .zw-footer-inner { width: calc(100% - 40px); padding: 24px 0; grid-template-columns: 1fr; text-align: center; }
  .zw-footer-links, .zw-payments { justify-content: center; }
}

@media (max-width: 620px) {
  .zw-header-actions .zw-search-toggle { display: none; }
  .zw-hero,
  .zw-hero-inner { min-height: 530px; }
  .zw-hero-copy { padding-top: 38px; }
  .zw-hero-copy > p:not(.zw-kicker) { max-width: 290px; font-size: 16px; }
  .zw-button { padding-left: 18px; padding-right: 18px; }
  .zw-price-difference__inner { min-height: 82px; grid-template-columns: 1fr auto; gap: 12px; }
  .zw-price-difference__icon { display: none; }
  .zw-price-difference__label { display: grid; gap: 2px; font-size: 12px; }
  .zw-price-difference__label small { display: none; }
  .zw-price-difference .zw-button { padding-left: 20px; padding-right: 20px; }
  .zw-catalog { padding-top: 30px; }
  .zw-catalog-controls { align-items: flex-start; flex-direction: column; }
  .woocommerce ul.products,
  .woocommerce-page ul.products,
  ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
  .woocommerce ul.products li.product .woocommerce-loop-product__title { min-height: 58px; font-size: 13px; -webkit-line-clamp: 3; }
  .woocommerce ul.products li.product .button { padding: 10px 8px; font-size: 10px; }
  .zw-content-shell { width: calc(100% - 32px); padding-top: 36px; }
}
