/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

/* Tamar Samar: the theme adds a 40px page gutter with no per-page control. */
:is(.home, .single-product, .woodmart-archive-shop, .page-id-175) .wd-content-layout { padding-block: 0; }
/* Hide native carousel arrows when there are no additional slides to display. */
.ts-gift-carousel .swiper-button-lock { display: none; }
.ts-gift-carousel .swiper-button-disabled { visibility: hidden; pointer-events: none; }

/* Tamar Samar: shared line-height ratio for native theme typography. */
:root {
  --wd-text-line-height: 1.25;
  --wd-title-line-height: 1.25;
  --wd-entities-title-line-height: 1.25;
}

/* The story banner meets the global footer without the theme's 40px prefooter gutter. */
.wd-prefooter:has(.ts-story) { padding-bottom: 0; }

/* Header search has native color controls but no local border-width control. */
.whb-header .wd-header-search-form .searchform { --wd-form-brd-width: 1px; }

/* Native weight swatches lack card dimensions and per-option price styles. */
.ts-weight-cart form.variations_form .variations td.value { width: 100%; display: block; }
.ts-weight-cart .wd-swatches-product[data-id="pa_weight"] {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}
.ts-weight-cart .wd-swatches-product[data-id="pa_weight"] .wd-swatch {
  min-width: 0;
  width: 100%;
  height: auto;
  min-height: 104px;
  padding: 12px 6px;
  border: 1px solid #DAD2C8;
  border-radius: 0;
  background: transparent;
  color: #413F3D;
  box-shadow: none;
  font: 400 23px/1.25 almoni, sans-serif;
}
.ts-weight-cart .wd-swatches-product[data-id="pa_weight"] .wd-swatch-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  color: inherit;
  white-space: normal;
}
.ts-weight-cart .ts-weight-price { font-size: 20px; }
.ts-weight-cart .ts-weight-unit { font-size: 17px; color: #AD6045; }
/* Card prices are custom labels; native price typography does not target them. */
.ts-weight-cart :is(.ts-weight-price, .ts-weight-unit),
.ts-weight-cart :is(.ts-weight-price, .ts-weight-unit) :is(.amount, bdi) { font-weight: 400; }
.ts-weight-cart .wd-swatches-product[data-id="pa_weight"] .wd-active {
  color: #fff;
  background: #AD6045;
  border-color: #AD6045;
}
.ts-weight-cart .wd-active .ts-weight-unit { color: #fff; }
.ts-weight-cart .wd-active .amount { color: inherit; }
.ts-weight-cart .wd-swatch:focus-visible { outline: 2px solid #413F3D; outline-offset: 3px; }
.product-type-variable .ts-main-price { display: none; }
/* Native tabs have no controls for the dynamic product description typography. */
.ts-product-details .woocommerce-Tabs-panel { font: 400 23px/1.25 almoni, sans-serif; color: #413F3D; }
.ts-product-details .woocommerce-Tabs-panel h2 { font: 400 36px/1.25 "Bar Lev", sans-serif; }
@media (max-width: 767px) {
  .ts-weight-cart .wd-swatches-product[data-id="pa_weight"] { gap: 8px; }
  .ts-weight-cart .wd-swatches-product[data-id="pa_weight"] .wd-swatch { font-size: 21px; min-height: 100px; }
  .ts-product-details .woocommerce-Tabs-panel { font-size: 20px; }
  .ts-product-details .woocommerce-Tabs-panel h2 { font-size: 30px; }
}
