/* Disruptarian Store — WooCommerce + shell overrides.
   Matches disruptarian.com dark editorial look. */

@font-face {
  font-family: "boston-traffic";
  src: url("../fonts/boston-traffic.regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- Global shell ---------- */
body.dz-store-theme,
body.dz-store-theme .wp-site-blocks {
  background: var(--dz-bg, #0b0b10) !important;
  color: var(--dz-text, #e9e9f1) !important;
  font-family: var(--dz-font) !important;
  color-scheme: dark;
}

body.dz-store-theme a {
  color: var(--dz-link, #b8c7ff);
}

body.dz-store-theme a:hover,
body.dz-store-theme a:focus-visible {
  color: #fff;
}

body.dz-store-theme h1,
body.dz-store-theme h2,
body.dz-store-theme h3,
body.dz-store-theme .wp-block-post-title,
body.dz-store-theme .woocommerce-Products-header__title,
body.dz-store-theme .product_title {
  font-family: var(--dz-display) !important;
  color: #fff !important;
  letter-spacing: 0.02em;
  font-weight: 400 !important;
}

/* Hide default TT5 chrome when our HTML header/footer is present */
body.dz-store-theme .wp-block-template-part:has(.dz-store-top),
body.dz-store-theme .wp-block-template-part:has(.dz-store-foot) {
  margin: 0;
  max-width: none;
}

/* ---------- Header (matches /shop + homepage bar) ---------- */
.dz-store-top {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: max(12px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 12px max(16px, env(safe-area-inset-left));
  background: linear-gradient(180deg, rgba(11, 11, 16, 0.96), rgba(11, 11, 16, 0.78));
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--dz-border, rgba(255, 255, 255, 0.08));
}

.dz-store-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none !important;
  color: var(--dz-cream, #f4f1ea) !important;
  font: 700 1.05rem/1 var(--dz-font);
  letter-spacing: 0.2px;
}

.dz-store-logo:hover {
  color: #fff !important;
}

.dz-store-kicker {
  font-family: var(--dz-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(233, 233, 241, 0.55);
  margin: 0;
}

.dz-store-nav {
  display: flex;
  gap: 0.55rem;
  margin-left: auto;
  flex-wrap: wrap;
  align-items: center;
}

.dz-store-nav a {
  display: inline-flex;
  align-items: center;
  text-decoration: none !important;
  color: var(--dz-cream, #f4f1ea) !important;
  opacity: 0.9;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.55rem 0.85rem;
  font: 700 0.78rem/1 var(--dz-font);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.dz-store-nav a:hover,
.dz-store-nav a:focus-visible,
.dz-store-nav a[aria-current="page"] {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 85, 0, 0.28);
  color: #fff !important;
  transform: translateY(-1px);
  outline: none;
}

.dz-store-pill {
  flex: none;
  text-decoration: none !important;
  border: 1px solid rgba(255, 85, 0, 0.45);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  font: 800 0.72rem/1 var(--dz-font);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff !important;
  background: rgba(255, 85, 0, 0.18);
}

.dz-store-pill:hover {
  background: rgba(255, 85, 0, 0.78);
}

/* ---------- Hero / page intro ---------- */
.dz-store-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--dz-border);
  padding: clamp(1.6rem, 4vw, 2.8rem) max(16px, env(safe-area-inset-left));
  background:
    radial-gradient(900px 360px at 18% 0%, rgba(255, 85, 0, 0.16), transparent 55%),
    radial-gradient(800px 420px at 85% 10%, rgba(63, 94, 251, 0.12), transparent 55%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.55));
}

.dz-store-hero-inner {
  max-width: var(--dz-max);
  margin: 0 auto;
}

.dz-store-hero .dz-store-kicker {
  margin-bottom: 0.65rem;
}

.dz-store-hero h1 {
  margin: 0 0 0.55rem;
  font-size: clamp(2rem, 5.5vw, 3.2rem);
  line-height: 1.05;
}

.dz-store-hero h1 span {
  color: var(--dz-accent, #ff5517);
}

.dz-store-hero p {
  margin: 0;
  max-width: 46rem;
  color: var(--dz-text-muted);
  font-size: 1.02rem;
}

/* ---------- Main content width ---------- */
body.dz-store-theme .wp-site-blocks > main,
body.dz-store-theme main.wp-block-group,
body.dz-store-theme .woocommerce,
body.dz-store-theme .wp-block-woocommerce-product-collection,
body.dz-store-theme .wc-block-product-template {
  max-width: var(--dz-max);
  margin-left: auto;
  margin-right: auto;
}

body.dz-store-theme .entry-content,
body.dz-store-theme .wp-block-post-content,
body.dz-store-theme .woocommerce-page .wp-block-group {
  color: var(--dz-text);
}

/* ---------- Product grid / cards ---------- */
body.dz-store-theme ul.products,
body.dz-store-theme .wc-block-product-template,
body.dz-store-theme .wp-block-woocommerce-product-collection ul {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 1rem 0 2rem;
}

body.dz-store-theme ul.products::before,
body.dz-store-theme ul.products::after {
  display: none !important;
}

body.dz-store-theme ul.products li.product,
body.dz-store-theme .wc-block-product,
body.dz-store-theme .wp-block-post.product {
  width: auto !important;
  margin: 0 !important;
  float: none !important;
  border: 1px solid var(--dz-border);
  background: var(--dz-card);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

body.dz-store-theme ul.products li.product:hover,
body.dz-store-theme .wc-block-product:hover,
body.dz-store-theme .wp-block-post.product:hover {
  border-color: rgba(255, 85, 0, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}

/* Keep logo/text mockups fully visible — contain, not crop */
body.dz-store-theme ul.products li.product img,
body.dz-store-theme .wc-block-product img,
body.dz-store-theme .wp-block-post.product img,
body.dz-store-theme .woocommerce-product-gallery__image img,
body.dz-store-theme .wp-block-woocommerce-product-image img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain !important;
  object-position: center;
  background: #151518;
  display: block;
  border-radius: 0;
}

body.dz-store-theme ul.products li.product .woocommerce-loop-product__title,
body.dz-store-theme .wc-block-components-product-name,
body.dz-store-theme .wp-block-post-title a {
  font-family: var(--dz-font) !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  color: #fff !important;
  text-decoration: none !important;
  padding: 0.65rem 0.8rem 0.15rem;
  letter-spacing: 0 !important;
}

body.dz-store-theme .price,
body.dz-store-theme .woocommerce-Price-amount,
body.dz-store-theme .wc-block-components-product-price {
  color: var(--dz-accent, #ff5517) !important;
  font-weight: 800;
  font-family: var(--dz-font);
}

body.dz-store-theme ul.products li.product .price,
body.dz-store-theme .wc-block-components-product-price {
  padding: 0.25rem 0.8rem 0.85rem;
  margin: 0;
}

body.dz-store-theme .button,
body.dz-store-theme .wp-element-button,
body.dz-store-theme a.button,
body.dz-store-theme button.button,
body.dz-store-theme .woocommerce a.button,
body.dz-store-theme .woocommerce button.button.alt,
body.dz-store-theme .single_add_to_cart_button,
body.dz-store-theme .wc-block-components-button {
  background: rgba(255, 85, 0, 0.9) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 14px !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em;
  text-transform: none !important;
  box-shadow: none !important;
}

body.dz-store-theme .button:hover,
body.dz-store-theme .wp-element-button:hover,
body.dz-store-theme .woocommerce a.button:hover,
body.dz-store-theme .single_add_to_cart_button:hover,
body.dz-store-theme .wc-block-components-button:hover {
  background: var(--dz-accent-deep, #c94400) !important;
  color: #fff !important;
}

/* ---------- Single product ---------- */
body.dz-store-theme.single-product .product {
  color: var(--dz-text);
}

body.dz-store-theme.single-product .woocommerce-product-gallery {
  border: 1px solid var(--dz-border);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
}

body.dz-store-theme.single-product .summary .price {
  font-size: 1.35rem;
}

body.dz-store-theme.single-product .woocommerce-tabs {
  border-top: 1px solid var(--dz-border);
  margin-top: 2rem;
  padding-top: 1rem;
}

body.dz-store-theme.single-product .woocommerce-tabs ul.tabs {
  padding: 0;
  margin: 0 0 1rem;
  border: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  background: transparent;
}

body.dz-store-theme.single-product .woocommerce-tabs ul.tabs li {
  border: 1px solid var(--dz-border) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border-radius: 999px !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.dz-store-theme.single-product .woocommerce-tabs ul.tabs li.active {
  background: rgba(255, 85, 0, 0.2) !important;
  border-color: rgba(255, 85, 0, 0.45) !important;
}

body.dz-store-theme.single-product .woocommerce-tabs ul.tabs li a {
  color: var(--dz-cream) !important;
  padding: 0.5rem 0.9rem !important;
  font-weight: 700;
}

body.dz-store-theme select,
body.dz-store-theme input[type="text"],
body.dz-store-theme input[type="email"],
body.dz-store-theme input[type="number"],
body.dz-store-theme input[type="search"],
body.dz-store-theme textarea,
body.dz-store-theme .woocommerce .quantity .qty {
  background: #141418 !important;
  color: var(--dz-text) !important;
  border: 1px solid var(--dz-border-strong) !important;
  border-radius: 10px !important;
}

/* Avoid double H1 when our hero already brands the shop */
body.dz-store-theme.woocommerce-shop .woocommerce-products-header__title,
body.dz-store-theme.woocommerce-shop .woocommerce-products-header h1,
body.dz-store-theme.post-type-archive-product .woocommerce-products-header__title {
  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;
}

body.dz-store-theme .woocommerce-breadcrumb,
body.dz-store-theme .woocommerce-result-count,
body.dz-store-theme .woocommerce-ordering {
  color: var(--dz-text-muted);
}

body.dz-store-theme .woocommerce-breadcrumb a {
  color: var(--dz-link);
}

/* Category / collection cards on shop */
body.dz-store-theme .dz-collection-grid,
body.dz-store-theme [class*="collection"] a {
  border-radius: 16px;
}

body.dz-store-theme .woocommerce-pagination .page-numbers,
body.dz-store-theme .wc-block-pagination-page {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid var(--dz-border) !important;
  color: #fff !important;
  border-radius: 10px !important;
}

body.dz-store-theme .woocommerce-pagination .page-numbers.current,
body.dz-store-theme .wc-block-pagination-page--active {
  background: rgba(255, 85, 0, 0.35) !important;
  border-color: rgba(255, 85, 0, 0.55) !important;
}

/* Notices / cart drawer */
body.dz-store-theme .woocommerce-message,
body.dz-store-theme .woocommerce-info,
body.dz-store-theme .woocommerce-error,
body.dz-store-theme .wc-block-components-notice-banner {
  background: rgba(255, 255, 255, 0.05) !important;
  color: var(--dz-text) !important;
  border-top-color: var(--dz-accent) !important;
}

/* Mini cart / checkout surfaces */
body.dz-store-theme .wc-block-mini-cart__drawer,
body.dz-store-theme .wc-block-components-drawer,
body.dz-store-theme .wp-block-woocommerce-cart,
body.dz-store-theme .wp-block-woocommerce-checkout {
  background: var(--dz-bg-elevated, #11121a) !important;
  color: var(--dz-text) !important;
}

/* ---------- Footer ---------- */
.dz-store-foot {
  border-top: 1px solid var(--dz-border);
  background: var(--dz-bg-footer, #050507);
  padding: 2rem max(16px, env(safe-area-inset-left)) calc(2rem + env(safe-area-inset-bottom));
  margin-top: 2.5rem;
}

.dz-store-foot-inner {
  max-width: var(--dz-max);
  margin: 0 auto;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1.4fr 1fr 1fr;
}

.dz-store-foot h2 {
  font-family: var(--dz-display) !important;
  font-size: 1.35rem !important;
  margin: 0 0 0.45rem;
  color: #fff !important;
}

.dz-store-foot p,
.dz-store-foot a {
  color: var(--dz-text-muted) !important;
  text-decoration: none;
  font-size: 0.92rem;
}

.dz-store-foot a:hover {
  color: #fff !important;
}

.dz-store-foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.dz-store-foot-meta {
  grid-column: 1 / -1;
  border-top: 1px solid var(--dz-border);
  padding-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
  font-size: 0.82rem;
  opacity: 0.8;
}

/* Soften leftover TT5 “Designed with…” text if still rendered */
body.dz-store-theme .wp-block-group:has(> p a[href*="wordpress.org"]) {
  display: none !important;
}

/* Duplicate legal strip from mu-plugin — footer already lists these */
body.dz-store-theme nav.site-legal-links {
  display: none !important;
}

/* Gallery thumbs + zoom trigger */
body.dz-store-theme .woocommerce-product-gallery .flex-control-thumbs img {
  object-fit: contain !important;
  background: #151518;
  border: 1px solid var(--dz-border);
  border-radius: 8px;
}

body.dz-store-theme .woocommerce-product-gallery__trigger img.emoji {
  display: none !important;
}

body.dz-store-theme .woocommerce-product-gallery__trigger {
  background: rgba(11, 11, 16, 0.85) !important;
  color: #fff !important;
  border: 1px solid var(--dz-border-strong) !important;
  border-radius: 999px !important;
  text-indent: 0 !important;
  font-size: 0 !important;
}

body.dz-store-theme .woocommerce-product-gallery__trigger::before {
  content: "Zoom";
  font: 700 0.7rem/1 var(--dz-font);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}

@media (max-width: 800px) {
  .dz-store-nav {
    display: none;
  }

  .dz-store-foot-inner {
    grid-template-columns: 1fr;
  }

  body.dz-store-theme ul.products,
  body.dz-store-theme .wc-block-product-template {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
  }
}
