/* WooCommerce overrides — keep prototype classes dominant */

.hero-slot-img img,
.deal-slot img,
.mosaic-slot img,
.product-card-slot img,
.gallery-main-placeholder img,
.gallery-thumb-inner img,
.cart-item-img img,
.cart-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-slot-img { position: absolute; inset: 0; }
.product-card { position: relative; }
.product-card-name { display: block; }
.product-card-quick { text-decoration: none; color: var(--paper); }
.product-card-slot { width: 100%; height: 100%; }
.product-card-img { display: block; text-decoration: none; color: inherit; }

.gallery-main-placeholder img {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .25s ease;
}
.gallery-main-placeholder img.is-active { opacity: 1; }
.gallery-main.zoomed .gallery-main-placeholder img.is-active {
  transform: scale(1.6);
  transform-origin: var(--zoom-x, 50%) var(--zoom-y, 50%);
}

.brand { text-decoration: none; color: inherit; cursor: pointer; }

.filter-size a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  text-decoration: none;
}
.filter-size a[data-active="true"] {
  background: var(--bottle);
  color: var(--paper);
  border-color: var(--bottle);
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-error {
  border-radius: 0;
  border: 1px solid var(--line);
  background: var(--paper-2);
  font-family: var(--font-mono);
  font-size: 12px;
  list-style: none;
  padding: 14px 16px;
  margin: 0 0 20px;
}

.product-desc-inline .product-desc-body {
  max-height: 96px;
  overflow: hidden;
  transition: max-height .35s ease;
}
.product-desc-inline.expanded .product-desc-body { max-height: 1400px; }
.product-sticky.visible {
  transform: translateY(0);
  pointer-events: auto;
}

/* Kill default Woo checkout chrome */
.woocommerce-billing-fields > h3,
.woocommerce-shipping-fields,
.woocommerce-additional-fields,
.checkout .col2-set,
.checkout #customer_details,
.woocommerce-checkout .shop_table,
.woocommerce form .form-row-first,
.woocommerce form .form-row-last {
  /* billing h3 hidden — we use form-section titles */
}
.woocommerce-billing-fields > h3 { display: none; }

.woocommerce-checkout #payment {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}
.woocommerce-checkout #payment ul.payment_methods,
.woocommerce-checkout #payment .payment_methods {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
}
.woocommerce-checkout #payment div.payment_box::before { display: none !important; }
.woocommerce-checkout #payment div.payment_box {
  background: var(--paper-2) !important;
  color: inherit !important;
}

/* Qty steppers — Woo wraps input in .quantity */
.qty-stepper .quantity { display: contents; }
.qty-stepper .qty {
  width: 32px;
  height: 44px;
  text-align: center;
  border: 0;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 0;
}
.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--paper);
}

.woocommerce-pagination { margin-top: 40px; }
.woocommerce-pagination .page-numbers {
  display: inline-flex;
  gap: 8px;
  list-style: none;
  padding: 0;
}
.woocommerce-pagination .page-numbers a,
.woocommerce-pagination .page-numbers span {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  text-decoration: none;
}
.woocommerce-pagination .page-numbers .current {
  background: var(--bottle);
  color: var(--paper);
}

.woocommerce-products-header { display: none; }

/* Block checkout fallback — hide if somehow still present */
.wp-block-woocommerce-cart,
.wp-block-woocommerce-checkout {
  outline: 2px dashed #c0392b;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

.hero-slot { position: relative; min-height: 420px; overflow: hidden; }
.deal-slot { min-height: 0; }
.deal-slot img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.mosaic-slot { min-height: 140px; }
.product-card-img { aspect-ratio: 4/5; overflow: hidden; background: var(--paper-2); }

/* Ensure form fields inside Woo wrappers keep prototype look */
.woocommerce-checkout .field input,
.woocommerce-checkout .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 12px 14px;
  font-size: 14px;
  outline: none;
  border-radius: 0;
}
.woocommerce-checkout .field input:focus,
.woocommerce-checkout .field textarea:focus { border-color: var(--grass); }

.summary-card .woocommerce-Price-amount { font-weight: inherit; }
.opt .woocommerce-Price-amount { font-family: var(--font-display); font-weight: 800; font-size: 16px; }
