/* ============================================================
   HOUSE OF TECKEL — Custom Single Product Page Styles v2
   Scope: .single-product only
   ============================================================ */

/* ---- LAYOUT: Two columns ---- */
.single-product div.product {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0 !important;
  align-items: flex-start !important;
  max-width: 1200px !important;
  margin: 40px auto !important;
  padding: 0 32px !important;
  background: transparent !important;
  float: none !important;
}

/* ---- LEFT: Gallery ---- */
.single-product .woocommerce-product-gallery {
  width: 52% !important;
  float: none !important;
  position: sticky !important;
  top: 90px !important;
  padding-right: 48px !important;
  box-sizing: border-box !important;
  margin: 0 !important;
}

/* Hide ALL default WC gallery content — our JS rebuilds it */
.single-product .woocommerce-product-gallery__wrapper,
.single-product .woocommerce-product-gallery__trigger,
.single-product .woocommerce-product-gallery > .woocommerce-product-gallery__image,
.single-product .flex-viewport,
.single-product .flex-control-nav,
.single-product .flex-control-thumbs,
.single-product ol.flex-control-nav,
.single-product .woocommerce-product-gallery > figure,
.single-product .woocommerce-product-gallery > a,
.single-product .woocommerce-product-gallery > img,
.single-product .woocommerce-product-gallery > div:not(.hot-gallery),
.single-product .woocommerce-product-gallery__image {
  display: none !important;
}

/* Remove extra space inside gallery root */
.single-product .woocommerce-product-gallery {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

/* Kill any leftover empty space from WC gallery children */
.single-product .woocommerce-product-gallery > *:not(.hot-gallery) {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  position: absolute !important;
}

/* WC adds flexbox columns layout — override it completely */
.single-product .woocommerce-product-gallery.woocommerce-product-gallery--with-images {
  display: block !important;
  width: 52% !important;
  float: none !important;
}

/* The inner columns flex container */
.single-product .woocommerce-product-gallery--columns-4 > ul,
.single-product .woocommerce-product-gallery--columns-3 > ul,
.single-product .woocommerce-product-gallery--columns-2 > ul,
.single-product .woocommerce-product-gallery ol.flex-control-nav.flex-control-thumbs {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ---- Our custom gallery ---- */
.hot-gallery {
  position: relative;
  background: #f5f1eb;
}

.hot-gallery__main {
  position: relative;
  overflow: hidden;
  background: #f0ebe3;
  cursor: zoom-in;
}

.hot-gallery__main img {
  width: 100%;
  height: auto;
  display: block;
}

/* img styles handled above */

/* Arrows */
.hot-gallery__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(0,0,0,0.12);
  color: #2c2c2c;
  width: 38px;
  height: 38px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s;
  padding: 0;
  line-height: 1;
}

.hot-gallery__arrow:hover { background: #fff; }
.hot-gallery__arrow--prev { left: 12px; }
.hot-gallery__arrow--next { right: 12px; }

.hot-gallery__arrow svg {
  width: 16px;
  height: 16px;
  stroke: #2c2c2c;
  fill: none;
  stroke-width: 2;
  display: block;
}

/* Thumbnail strip */
.hot-gallery__thumbs {
  display: flex !important;
  gap: 8px;
  padding: 10px 0 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.hot-gallery__thumbs::-webkit-scrollbar { display: none; }

.hot-gallery__thumb {
  flex-shrink: 0;
  width: 70px;
  height: 88px;
  border: 2px solid transparent;
  cursor: pointer;
  overflow: hidden;
  background: #e8e2d8;
  padding: 0;
  transition: border-color 0.2s;
}
.hot-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hot-gallery__thumb:hover { border-color: #9b2335; }
.hot-gallery__thumb.is-active { border-color: #9b2335; }

/* Lightbox */
.hot-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 999999;
  align-items: center;
  justify-content: center;
}
.hot-lightbox.is-open { display: flex !important; }
.hot-lightbox__img { max-width: 88vw; max-height: 88vh; object-fit: contain; }
.hot-lightbox__close {
  position: absolute; top: 20px; right: 24px;
  background: none; border: none; color: #fff;
  font-size: 36px; cursor: pointer; line-height: 1; padding: 0;
}
.hot-lightbox__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.3);
  color: #fff; width: 48px; height: 48px; font-size: 24px;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.hot-lightbox__arrow--prev { left: 20px; }
.hot-lightbox__arrow--next { right: 20px; }

/* ---- RIGHT: Product summary ---- */
.single-product div.product .summary,
.single-product div.product .summary.entry-summary {
  width: 48% !important;
  float: none !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

/* Product title */
.single-product .product_title.entry-title {
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif !important;
  font-size: 30px !important;
  font-weight: 500 !important;
  color: #1a1a1a !important;
  letter-spacing: 0.02em !important;
  line-height: 1.25 !important;
  margin: 0 0 10px !important;
  text-transform: none !important;
}

/* Price */
.single-product p.price,
.single-product span.price {
  font-family: 'Lato', 'Helvetica Neue', sans-serif !important;
  font-size: 18px !important;
  font-weight: 400 !important;
  color: #C62828 !important;
  letter-spacing: 0.06em !important;
  margin: 0 0 20px !important;
  display: block !important;
}

/* Short description */
.single-product .woocommerce-product-details__short-description {
  font-family: 'Lato', 'Helvetica Neue', sans-serif !important;
  font-size: 14px !important;
  color: #5a5a5a !important;
  line-height: 1.8 !important;
  margin: 0 0 20px !important;
}

/* Divider */
.hot-divider {
  border: none !important;
  border-top: 1px solid #ddd6cb !important;
  margin: 20px 0 !important;
}

/* ---- Hide native WC variation selects visually ---- */
.single-product .variations_form .variations {
  clip: rect(0,0,0,0) !important;
  clip-path: inset(50%) !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  position: absolute !important;
}
.single-product .woocommerce-variation-description { display: none !important; }
.single-product .woocommerce-variation-price { display: none !important; }
.single-product .woocommerce-variation-availability { display: none !important; }
.single-product .reset_variations { display: none !important; }
.single-product .stock.out-of-stock { display: none !important; }

/* ---- Attribute label ---- */
.hot-attribute-label {
  font-family: 'Lato', sans-serif !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  color: #2c2c2c !important;
  margin: 0 0 12px !important;
  display: block !important;
  letter-spacing: 0.02em !important;
}
.hot-attribute-label strong { font-weight: 600; }

/* ---- Color swatches ---- */
.hot-color-swatches {
  display: flex !important;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.hot-color-swatch {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  outline: 3px solid transparent;
  outline-offset: 2px;
  transition: outline-color 0.2s;
  flex-shrink: 0;
  padding: 0;
  background-clip: padding-box;
}
.hot-color-swatch:hover { outline-color: #9b2335; }
.hot-color-swatch.is-active { outline-color: #9b2335; border-color: #fff; }
.hot-color-swatch.is-unavailable { opacity: 0.3; cursor: not-allowed; }

/* Text swatches fallback */
.hot-text-swatches { display: flex !important; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.hot-text-swatch {
  padding: 7px 18px;
  font-family: 'Lato', sans-serif; font-size: 12px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: #2c2c2c; border: 1px solid #c0b8ae;
  cursor: pointer; background: #fff;
  transition: all 0.2s;
}
.hot-text-swatch:hover { border-color: #9b2335; color: #9b2335; }
.hot-text-swatch.is-active { border-color: #9b2335; background: #9b2335; color: #fff; }
.hot-text-swatch.is-unavailable { opacity: 0.35; cursor: not-allowed; text-decoration: line-through; }

/* ---- Size buttons ---- */
.hot-sizes {
  display: flex !important;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.hot-size-btn {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 100px;
  padding: 12px 16px;
  font-family: 'Lato', sans-serif;
  color: #2c2c2c;
  border: 1px solid #c0b8ae;
  cursor: pointer;
  background: #fff;
  transition: all 0.2s;
  text-align: center;
}
.hot-size-btn:hover:not(.is-unavailable) { border-color: #9b2335; }
.hot-size-btn.is-active { border-color: #9b2335; background: #9b2335; color: #fff; }
.hot-size-btn.is-unavailable { opacity: 0.4; cursor: not-allowed; }

.hot-size-name {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  display: block;
}
.hot-size-stock {
  font-size: 11px;
  margin-top: 3px;
  opacity: 0.7;
  display: block;
}
.hot-size-btn.is-active .hot-size-stock { opacity: 0.85; }

/* Size guide */
.hot-size-guide {
  display: inline-block !important;
  margin: 8px 0 20px !important;
  font-family: 'Lato', sans-serif !important;
  font-size: 11px !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: #9b2335 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
}

/* ---- Quantity + Add to Cart ---- */
.single-product form.cart {
  display: flex !important;
  gap: 12px !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  margin-top: 16px !important;
}

/* Hide the native WC hr divider above form.cart */
.single-product form.cart ~ hr,
.single-product .cart ~ hr,
.single-product hr.wc-block-components-separator { display: none !important; }

.single-product .quantity .qty {
  width: 56px !important;
  height: 48px !important;
  border: 1px solid #c0b8ae !important;
  font-family: 'Lato', sans-serif !important;
  font-size: 15px !important;
  text-align: center !important;
  color: #2c2c2c !important;
  background: #fff !important;
  border-radius: 0 !important;
  -moz-appearance: textfield !important;
}
.single-product .quantity .qty::-webkit-outer-spin-button,
.single-product .quantity .qty::-webkit-inner-spin-button { -webkit-appearance: none; }

.single-product .single_add_to_cart_button,
.single-product button[name="add-to-cart"] {
  flex: 1 !important;
  background: #9b2335 !important;
  color: #fff !important;
  border: 1px solid #9b2335 !important;
  font-family: 'Lato', sans-serif !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  padding: 15px 24px !important;
  border-radius: 0 !important;
  cursor: pointer !important;
  transition: background 0.2s !important;
  min-height: 48px !important;
}
.single-product .single_add_to_cart_button:hover {
  background: #7a1b28 !important;
  border-color: #7a1b28 !important;
}
.single-product .single_add_to_cart_button.disabled,
.single-product .single_add_to_cart_button:disabled {
  background: #b0a89e !important;
  border-color: #b0a89e !important;
  cursor: not-allowed !important;
}

/* ---- Hide WC tabs ---- */
.single-product .woocommerce-tabs { display: none !important; }

/* ---- HOT Tabs ---- */
.hot-tabs-wrap {
  border-top: 1px solid #ddd6cb;
  margin-top: 56px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 32px;
  box-sizing: border-box;
}

.hot-tabs-nav {
  display: flex;
  border-bottom: 1px solid #ddd6cb;
  margin-bottom: 0;
}

.hot-tab-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: 18px 28px;
  font-family: 'Lato', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a7f74;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.hot-tab-btn:hover { color: #2c2c2c; }
.hot-tab-btn.is-active { color: #2c2c2c; border-bottom-color: #9b2335; }

.hot-tab-panel {
  display: none;
  padding: 36px 0;
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  color: #4a4a4a;
  line-height: 1.8;
}
.hot-tab-panel.is-active { display: block; }

.hot-materials-text p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.8;
  color: #4a4a4a;
}
.hot-materials-text p:last-child { margin-bottom: 0; }

/* ---- SKU + Category — hide or minimize ---- */
.single-product .sku_wrapper,
.single-product .posted_in {
  display: none !important;
}

/* ---- Clearfix ---- */
.single-product div.product::after {
  content: ''; display: table; clear: both;
}

/* ---- Related Products — in afara div.product, dupa hot-tabs-wrap ---- */
.single-product .related.products {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 40px 32px !important;
  border-top: 1px solid #ddd6cb !important;
  box-sizing: border-box !important;
}
.single-product .related.products h2 {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-size: 24px !important;
  font-weight: 500 !important;
  margin-bottom: 24px !important;
}

/* ---- MOBILE ---- */
@media (max-width: 768px) {
  .single-product div.product {
    display: block !important;
    flex-direction: column !important;
    padding: 0 16px !important;
    padding-top: 80px !important;
    margin: 0 auto !important;
  }
  .single-product .woocommerce-product-gallery,
  .single-product .woocommerce-product-gallery.woocommerce-product-gallery--with-images {
    width: 100% !important;
    position: static !important;
    padding-right: 0 !important;
    margin-bottom: 28px !important;
  }
  .single-product div.product .summary,
  .single-product div.product .summary.entry-summary {
    width: 100% !important;
    padding: 0 !important;
  }
  .single-product .product_title.entry-title {
    font-size: 22px !important;
    margin-bottom: 8px !important;
  }
  .single-product p.price,
  .single-product span.price {
    font-size: 16px !important;
    margin-bottom: 16px !important;
  }
  .single-product form.cart {
    gap: 8px !important;
  }
  .hot-gallery__main { aspect-ratio: unset !important; }
  .hot-sizes { gap: 8px; }
  .hot-size-btn { min-width: 80px; padding: 10px 12px; }
  .hot-tabs-wrap { padding: 0 16px; margin-top: 32px; }
  .hot-tab-btn { padding: 14px 14px; font-size: 10px; }
  .single-product .related.products {
    padding: 24px 16px !important;
  }
}

/* ---- Product notice ---- */
.hot-product-notice {
  margin-top: 16px;
  padding: 12px 16px;
  background: #f5f1ec;
  border-left: 3px solid #b8a99a;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 16px;
  line-height: 1.6;
  color: #5a4f47;
}
.hot-product-notice p { margin: 0; }
.hot-product-notice a {
  color: #4a7fa5;
  text-decoration: underline;
}
.hot-product-notice a:hover { color: #2c5f80; }

/* ---- Utility ---- */
.hot-sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}