/* ==================================================================
   Single Product -- "Marketplace" layout (3 columns)
   Markup: template-parts/product/marketplace.php. Loaded only with that
   layout, after single-product-special.css (which supplies the shared
   --pdp-* variables on body.pdp-enh and the mobile inquiry bar).

   >= 1200px : gallery (sticky) | details + sections | buy box (sticky)
   768-1199  : gallery | details, buy box ; sections full width below
   < 768     : gallery, details, buy box, sections (stacked)
   ================================================================== */

/* Shared B2B component kit (.pdp-kit): rows, tiers, facts, order buttons,
   stepper, share icons. Used by the Marketplace page (.pdp-mk.pdp-kit) and
   the quick view (.qv.pdp-kit), so it carries its own colour variables. */
.pdp-kit {
  --pdp-primary: var(--primary, #0F766E);
  --pdp-ink: #1b2735;
  --pdp-muted: #5b6777;
  --pdp-line: #e3ebf4;
  --pdp-soft: #f6f9fd;
  --pdp-radius: 16px;
  --pdp-rfq: var(--pahla-rfq-color, #222222);
  --pdp-sample: var(--pahla-sample-color, #d35400);
  --pdp-icon: var(--pahla-b2b-icon-color, #e74c3c);
}

/* ---------- Frame ---------- */

body.pdp-mk .woocommerce-breadcrumb {
  font-size: 12px;
  letter-spacing: .3px;
  color: var(--pdp-muted);
  margin: 6px 0 22px;
}

body.pdp-mk .woocommerce-breadcrumb a {
  color: var(--pdp-muted);
  text-decoration: none;
}

body.pdp-mk .pdp-mk {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(300px, 340px);
  grid-template-areas:
    "gallery head     buy"
    "gallery sections buy";
  grid-template-rows: auto 1fr;
  column-gap: clamp(24px, 2.6vw, 40px);
  align-items: start;
}

body.pdp-mk .pdp-mk__gallery  { grid-area: gallery; min-width: 0; }
body.pdp-mk .pdp-mk__head     { grid-area: head; min-width: 0; }
body.pdp-mk .pdp-mk__buy      { grid-area: buy; min-width: 0; }
body.pdp-mk .pdp-mk__sections { grid-area: sections; min-width: 0; margin-top: 8px; }

body.pdp-mk.pdp-sticky-summary .pdp-mk__gallery-inner,
body.pdp-mk.pdp-sticky-summary .pdp-mk__card {
  position: sticky;
  top: 100px;
}

/* ---------- 1. Gallery ---------- */

body.pdp-mk .pdp-mk__gallery-inner {
  position: relative;
}

body.pdp-mk .pdp-mk__gallery .woocommerce-product-gallery {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
}

body.pdp-mk .pdp-mk__gallery .onsale {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 5;
  margin: 0;
}

body.pdp-mk .woocommerce-product-gallery .flex-viewport,
body.pdp-mk .woocommerce-product-gallery > .woocommerce-product-gallery__wrapper {
  border-radius: var(--pdp-radius);
  overflow: hidden;
  background: var(--pdp-soft);
  border: 1px solid var(--pdp-line);
}

body.pdp-mk .woocommerce-product-gallery__image img {
  width: 100%;
  height: auto;
  display: block;
}

body.pdp-mk .woocommerce-product-gallery .flex-control-thumbs {
  display: flex;
  gap: 10px;
  margin: 12px 0 0 !important;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

body.pdp-mk .woocommerce-product-gallery .flex-control-thumbs::-webkit-scrollbar {
  display: none;
}

body.pdp-mk .woocommerce-product-gallery .flex-control-thumbs li {
  flex: 0 0 72px;
  width: 72px !important;
  margin: 0 !important;
  float: none !important;
  clear: none !important;
}

body.pdp-mk .woocommerce-product-gallery .flex-control-thumbs li img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid transparent;
  opacity: .6;
  cursor: pointer;
  transition: opacity .2s ease, border-color .2s ease;
}

body.pdp-mk .woocommerce-product-gallery .flex-control-thumbs li img.flex-active,
body.pdp-mk .woocommerce-product-gallery .flex-control-thumbs li img:hover {
  opacity: 1;
  border-color: var(--pdp-primary);
}

body.pdp-mk .woocommerce-product-gallery__trigger {
  background: #fff !important;
}

/* ---------- 2a. Details: heading ---------- */

.pdp-kit .pdp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  padding: 5px 11px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--pdp-primary) 9%, #fff 91%);
  color: var(--pdp-primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  text-decoration: none;
}

body.pdp-mk .pdp-mk__head .product_title {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 2.3vw, 2.3rem);
  font-weight: 700;
  line-height: 1.12;
  color: var(--pdp-ink);
}

body.pdp-mk .pdp-mk__head .woocommerce-product-rating {
  margin: 0 0 12px;
  font-size: 13px;
}

.pdp-kit .pdp-mk__price {
  padding: 14px 0;
  margin-bottom: 16px;
  border-top: 1px solid var(--pdp-line);
  border-bottom: 1px solid var(--pdp-line);
}

.pdp-kit .pdp-mk__price .price {
  margin: 0 !important;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--pdp-ink) !important;
}

.pdp-kit .pdp-mk__price .price del,
body.pdp-mk .pdp-mk__card-price .price del {
  font-size: .6em;
  font-weight: 500;
  opacity: .55;
}

.pdp-kit .pdp-mk__price .price ins,
body.pdp-mk .pdp-mk__card-price .price ins {
  text-decoration: none;
  background: none;
}

body.pdp-mk .pdp-mk__head .woocommerce-product-details__short-description {
  color: var(--pdp-muted);
  font-size: .95rem;
  line-height: 1.7;
  margin-bottom: 18px;
}

body.pdp-mk .pahla-variant-table-wrapper {
  background: #fff;
  border: 1px solid var(--pdp-line);
  border-radius: 14px;
  padding: 16px;
}

body.pdp-mk .pahla-variant-table-wrapper h5 {
  font-size: 12px;
  letter-spacing: .6px;
  color: var(--pdp-ink);
}

body.pdp-mk .pahla-variant-table {
  margin-bottom: 0;
}

/* ---------- 2b. Collapsible sections ---------- */

body.pdp-mk .pdp-mk-acc {
  border-bottom: 1px solid var(--pdp-line);
}

body.pdp-mk .pdp-mk-acc:first-child {
  border-top: 1px solid var(--pdp-line);
}

body.pdp-mk .pdp-mk-acc > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 2px;
  cursor: pointer;
  list-style: none;
  font-size: 1rem;
  font-weight: 700;
  color: var(--pdp-ink);
}

body.pdp-mk .pdp-mk-acc > summary::-webkit-details-marker {
  display: none;
}

body.pdp-mk .pdp-mk-acc__icon {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--pdp-icon);
  background: color-mix(in srgb, var(--pdp-icon) 10%, #fff 90%);
}

body.pdp-mk .pdp-mk-acc__title {
  flex: 1 1 auto;
  min-width: 0;
}

body.pdp-mk .pdp-mk-acc__toggle {
  font-size: 13px;
  color: var(--pdp-muted);
}

/* Plus when closed, minus when open (Font Awesome minus glyph). */
body.pdp-mk .pdp-mk-acc[open] .pdp-mk-acc__toggle::before {
  content: "\f068";
}

body.pdp-mk .pdp-mk-acc__body {
  padding: 0 2px 20px 48px;
  color: var(--pdp-muted);
  font-size: .95rem;
  line-height: 1.75;
}

/* The section title is already in the summary row: drop the heading each
   tab / B2B block prints at its top, and the old p-3 padding. */
body.pdp-mk .pdp-mk-acc__body > h2:first-child,
body.pdp-mk .pdp-mk-acc__body .b2b-tab-content > h4:first-child {
  display: none;
}

body.pdp-mk .pdp-mk-acc__body .b2b-tab-content {
  padding: 0 !important;
  text-align: left;
}

/* Bulk pricing: the table's own border pushed it 2px past 100% inside
   Bootstrap's .table-responsive, which then showed a horizontal scrollbar.
   Two short columns never need to scroll, so let it fit the width. */
body.pdp-mk .pdp-mk-acc__body .table-responsive {
  overflow: visible;
}

body.pdp-mk .pdp-mk-acc__body .pahla-bulk-pricing-table {
  width: 100%;
  max-width: 100%;
  margin: 0;
  table-layout: fixed;
  border-collapse: collapse;
}

body.pdp-mk .pdp-mk-acc__body .pahla-bulk-pricing-table th,
body.pdp-mk .pdp-mk-acc__body .pahla-bulk-pricing-table td {
  padding: 12px 16px;
  word-break: break-word;
}

body.pdp-mk .pdp-mk-acc__body .woocommerce-product-attributes {
  margin: 0;
}

/* ---------- 2c. B2B rows: Wholesale price / Sample / Customisable ----------
   Compact headers with a one-line summary; click opens the detail. */

.pdp-kit .pdp-mk-rows {
  margin: 16px 0;
  border: 1px solid var(--pdp-line);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.pdp-kit .pdp-mk-row + .pdp-mk-row {
  border-top: 1px solid var(--pdp-line);
}

.pdp-kit .pdp-mk-row > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
  transition: background .2s ease;
}

.pdp-kit .pdp-mk-row > summary::-webkit-details-marker {
  display: none;
}

.pdp-kit .pdp-mk-row > summary:hover,
.pdp-kit .pdp-mk-row[open] > summary {
  background: var(--pdp-soft);
}

.pdp-kit .pdp-mk-row__icon {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--pdp-icon);
  background: color-mix(in srgb, var(--pdp-icon) 10%, #fff 90%);
}

.pdp-kit .pdp-mk-row--sample .pdp-mk-row__icon {
  color: var(--pdp-sample);
  background: color-mix(in srgb, var(--pdp-sample) 10%, #fff 90%);
}

.pdp-kit .pdp-mk-row__label {
  font-size: 14px;
  font-weight: 700;
  color: var(--pdp-ink);
  white-space: nowrap;
}

.pdp-kit .pdp-mk-row__sum {
  flex: 1 1 auto;
  min-width: 0;
  text-align: right;
  font-size: 13px;
  font-weight: 600;
  color: var(--pdp-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pdp-kit .pdp-mk-row__toggle {
  flex: 0 0 14px;
  font-size: 12px;
  color: var(--pdp-muted);
  text-align: center;
}

.pdp-kit .pdp-mk-row[open] .pdp-mk-row__toggle::before {
  content: "\f068";
}

.pdp-kit .pdp-mk-row__body {
  padding: 18px 14px 14px;
  border-top: 1px dashed var(--pdp-line);
}

/* Tier cards */
.pdp-kit .pdp-mk-tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 8px;
}

.pdp-kit .pdp-mk-tier {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid var(--pdp-line);
  border-radius: 12px;
  background: #fff;
}

.pdp-kit .pdp-mk-tier.is-best {
  border-color: var(--pdp-primary);
  background: color-mix(in srgb, var(--pdp-primary) 5%, #fff 95%);
}

.pdp-kit .pdp-mk-tier__tag {
  position: absolute;
  top: -9px;
  right: 10px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--pdp-primary);
  color: #fff;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.pdp-kit .pdp-mk-tier__qty {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--pdp-muted);
}

.pdp-kit .pdp-mk-tier__price {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--pdp-ink);
  font-variant-numeric: tabular-nums;
}

.pdp-kit .pdp-mk-tier__price small {
  font-size: 11px;
  font-weight: 600;
  color: var(--pdp-muted);
}

.pdp-kit .pdp-mk-retail {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--pdp-muted);
}

.pdp-kit .pdp-mk-retail del {
  opacity: .6;
}

.pdp-kit .pdp-mk-retail ins {
  text-decoration: none;
  background: none;
  font-weight: 700;
  color: var(--pdp-ink);
}

/* Sample detail */
.pdp-kit .pdp-mk-kv {
  display: grid;
  gap: 6px;
  margin: 0;
  font-size: 13px;
}

.pdp-kit .pdp-mk-kv > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.pdp-kit .pdp-mk-kv dt {
  font-weight: 500;
  color: var(--pdp-muted);
}

.pdp-kit .pdp-mk-kv dd {
  margin: 0;
  font-weight: 700;
  color: var(--pdp-ink);
}

.pdp-kit .pdp-mk-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--pdp-sample);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.pdp-kit .pdp-mk-link-btn:hover i {
  transform: translateX(3px);
}

.pdp-kit .pdp-mk-link-btn i {
  transition: transform .2s ease;
}

/* Customisation chips */
.pdp-kit .pdp-mk-custom {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pdp-kit .pdp-mk-custom span {
  padding: 5px 11px;
  border: 1px dashed #c9ced6;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--pdp-ink);
}

/* Quick facts */
.pdp-kit .pdp-mk-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 8px;
  margin: 0 0 16px;
}

.pdp-kit .pdp-mk-facts > div {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--pdp-soft);
}

.pdp-kit .pdp-mk-facts i {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--pdp-muted);
}

.pdp-kit .pdp-mk-facts b {
  font-size: 14px;
  color: var(--pdp-ink);
}

/* ---------- 3. Buy box ---------- */

body.pdp-mk .pdp-mk__card {
  background: #fff;
  border: 1px solid var(--pdp-line);
  border-radius: 18px;
  padding: 22px;
}

body.pdp-mk .pdp-mk__card-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}

body.pdp-mk .pdp-mk__from {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--pdp-muted);
}

body.pdp-mk .pdp-mk__card-price > b {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--pdp-ink);
  font-variant-numeric: tabular-nums;
}

body.pdp-mk .pdp-mk__card-price > small {
  font-weight: 600;
  color: var(--pdp-muted);
}

body.pdp-mk .pdp-mk__card-price .price {
  margin: 0 !important;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--pdp-ink) !important;
}

body.pdp-mk .pdp-mk__card .stock {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
}

/* Buttons */
.pdp-kit .pdp-mk-btn {
  width: 100%;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .6px;
  text-transform: uppercase;
  cursor: pointer;
  transition: filter .2s ease;
}

.pdp-kit .pdp-mk-btn--rfq {
  margin-bottom: 12px;
  background: var(--pdp-rfq);
  color: #fff;
}

.pdp-kit .pdp-mk-btn--rfq:hover {
  filter: brightness(1.15);
}

.pdp-kit .pdp-mk-btn--sample {
  min-height: 52px;
  padding: 8px 16px;
  justify-content: space-between;
  border: 1px solid color-mix(in srgb, var(--pdp-sample) 30%, #fff 70%);
  background: color-mix(in srgb, var(--pdp-sample) 8%, #fff 92%);
  color: var(--pdp-sample);
  text-transform: none;
  letter-spacing: 0;
}

.pdp-kit .pdp-mk-btn--sample:hover {
  background: color-mix(in srgb, var(--pdp-sample) 14%, #fff 86%);
}

.pdp-kit .pdp-mk-btn__l {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  font-weight: 800;
}

.pdp-kit .pdp-mk-btn__r {
  font-size: 11.5px;
  font-weight: 600;
  text-align: right;
  color: color-mix(in srgb, var(--pdp-sample) 70%, #000 30%);
}

/* Quantity stepper + Add to cart (outline: the quote is the main action) */
.pdp-kit .pdp-mk__cart {
  margin-bottom: 12px;
}

.pdp-kit .pdp-mk__cart form.cart {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.pdp-kit .pdp-mk__cart form.cart.variations_form {
  display: block;
}

.pdp-kit .pdp-mk__cart form.cart .variations {
  width: 100%;
  margin-bottom: 10px;
}

.pdp-kit .pdp-mk__cart form.cart .variations select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--pdp-line);
  border-radius: 12px;
}

.pdp-kit .pdp-mk__cart .woocommerce-variation-add-to-cart {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
}

.pdp-kit .pdp-mk__cart .quantity {
  flex: 0 0 auto;
  margin: 0 !important;
}

.pdp-kit .pdp-mk__cart .quantity.has-stepper {
  display: inline-flex;
  align-items: center;
  height: 48px;
  border: 1px solid #cfd5dd;
  border-radius: 999px;
  overflow: hidden;
}

.pdp-kit .pdp-mk__cart .quantity.has-stepper .qty {
  width: 44px;
  height: 46px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: center;
  font-weight: 700;
  -moz-appearance: textfield;
}

.pdp-kit .pdp-mk__cart .quantity.has-stepper .qty::-webkit-outer-spin-button,
.pdp-kit .pdp-mk__cart .quantity.has-stepper .qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Fallback before / without the script. */
.pdp-kit .pdp-mk__cart .quantity:not(.has-stepper) .qty {
  width: 76px;
  height: 48px;
  border: 1px solid #cfd5dd;
  border-radius: 999px;
  text-align: center;
  font-weight: 700;
}

.pdp-kit .pdp-qty-btn {
  width: 36px;
  height: 46px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--pdp-muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.pdp-kit .pdp-qty-btn:hover {
  color: var(--pdp-ink);
}

.pdp-kit .pdp-mk__cart .single_add_to_cart_button {
  flex: 1 1 auto;
  height: 48px;
  border: 1.5px solid var(--pdp-primary) !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: var(--pdp-primary) !important;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
  transition: background .2s ease, color .2s ease;
}

.pdp-kit .pdp-mk__cart .single_add_to_cart_button:hover {
  background: var(--pdp-primary) !important;
  color: #fff !important;
}

/* Info table */
body.pdp-mk .pdp-mk__table {
  display: grid;
  gap: 7px;
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--pdp-line);
  font-size: 13px;
}

body.pdp-mk .pdp-mk__table > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

body.pdp-mk .pdp-mk__table dt {
  font-weight: 500;
  color: var(--pdp-muted);
}

body.pdp-mk .pdp-mk__table dd {
  margin: 0;
  font-weight: 700;
  color: var(--pdp-ink);
  text-align: right;
}

body.pdp-mk .pdp-mk__table dd a {
  color: inherit;
  text-decoration: none;
}

/* Share row */
body.pdp-mk .pdp-mk__share {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

body.pdp-mk .pdp-mk__share > span {
  margin-right: auto;
  font-size: 12px;
  font-weight: 700;
  color: var(--pdp-muted);
}

.pdp-kit .pdp-mk-ic {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--pdp-line);
  border-radius: 50%;
  background: #fff;
  color: var(--pdp-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease;
}

.pdp-kit .pdp-mk-ic:hover {
  border-color: var(--pdp-ink);
  color: var(--pdp-ink);
}

.pdp-kit .pdp-mk-ic--wa {
  color: #1faa59;
  border-color: color-mix(in srgb, #25d366 35%, var(--pdp-line) 65%);
  font-size: 19px;
}

/* Trust: compact 2 x 2, green checks */
body.pdp-mk .pdp-mk__trust {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
  margin: 14px 0 0;
  padding: 12px;
  border-radius: 12px;
  background: var(--pdp-soft);
}

body.pdp-mk .pdp-mk__trust li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--pdp-ink);
}

body.pdp-mk .pdp-mk__trust i {
  margin-top: 1px;
  color: #1f8a4c;
}

/* ---------- Below the grid ---------- */

body.pdp-mk .pdp-mk-product > .upsells,
body.pdp-mk .pdp-mk-product > .related {
  margin-top: clamp(40px, 6vw, 72px);
}

/* ---------- Tablet: 2 columns, sections full width ---------- */

@media (max-width: 1199.98px) {
  body.pdp-mk .pdp-mk {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "gallery  head"
      "gallery  buy"
      "sections sections";
    grid-template-rows: auto 1fr auto;
  }

  body.pdp-mk .pdp-mk__buy {
    margin-top: 6px;
  }

  body.pdp-mk.pdp-sticky-summary .pdp-mk__card {
    position: static;
  }

  body.pdp-mk .pdp-mk__sections {
    margin-top: 32px;
  }
}

/* ---------- Mobile: stacked ---------- */

@media (max-width: 767.98px) {
  body.pdp-mk.pdp-m-hide-crumb .woocommerce-breadcrumb {
    display: none;
  }

  body.pdp-mk .pdp-mk {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "gallery"
      "head"
      "buy"
      "sections";
    grid-template-rows: auto;
  }

  body.pdp-mk.pdp-sticky-summary .pdp-mk__gallery-inner {
    position: static;
  }

  /* Images first, edge to edge: cancel the column + container gutter. */
  body.pdp-mk .pdp-mk__gallery {
    margin-left: calc(var(--pahla-m-gutter, 12px) * -1);
    margin-right: calc(var(--pahla-m-gutter, 12px) * -1);
  }

  body.pdp-mk .woocommerce-product-gallery .flex-viewport,
  body.pdp-mk .woocommerce-product-gallery > .woocommerce-product-gallery__wrapper {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  body.pdp-mk .woocommerce-product-gallery .flex-control-thumbs {
    padding: 0 12px;
  }

  body.pdp-mk .pdp-mk__gallery .onsale {
    left: 0;
    top: 12px;
  }

  body.pdp-mk .pdp-mk__head {
    margin-top: 16px;
  }

  /* Title clamp (tap to expand -- single-product-special.js). */
  body.pdp-mk .pdp-mk__head .product_title {
    font-size: 1.4rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: var(--pdp-title-lines, 2);
    overflow: hidden;
    cursor: pointer;
  }

  body.pdp-mk .pdp-mk__head .product_title.is-expanded {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
  }

  .pdp-kit .pdp-mk__price .price {
    font-size: 1.4rem;
  }

  /* The heading already shows the price on a phone. */
  body.pdp-mk .pdp-mk__card-price {
    display: none;
  }

  body.pdp-mk .pdp-mk__card {
    padding: 18px;
  }

  body.pdp-mk .pdp-mk-acc__body {
    padding-left: 2px;
  }
}

/* ---------- Size chart: expand button + in-page lightbox ----------
   Built by initSizeChartZoom() in single-product-special.js. */

body.pdp-mk .pdp-zoom-frame {
  position: relative;
  display: inline-block;
  max-width: 100%;
}

body.pdp-mk .pdp-zoom-frame img {
  display: block;
  cursor: zoom-in;
}

body.pdp-mk .pdp-zoom-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: var(--pdp-ink);
  font-size: 15px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

body.pdp-mk .pdp-zoom-btn:hover {
  background: #fff;
  transform: scale(1.06);
}

.pdp-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 56px 16px 24px;
  background: rgba(10, 12, 16, .88);
}

.pdp-lightbox.is-open {
  display: flex;
  animation: pdpFadeIn .2s ease;
}

.pdp-lightbox__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
}

.pdp-lightbox__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #1b1b1b;
  font-size: 20px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

@keyframes pdpFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Page stays still behind it; floating tools and the inquiry bar step aside. */
body.pdp-lightbox-open {
  overflow: hidden;
}

body.pdp-lightbox-open .pahla-floating-tools,
body.pdp-lightbox-open .pdp-quote-bar {
  display: none !important;
}

/* Collapsible headers: no box after a mouse click; keyboard users still get
   a visible focus ring. */
body.pdp-mk .pdp-mk-acc > summary:focus,
.pdp-kit .pdp-mk-row > summary:focus {
  outline: none;
}

body.pdp-mk .pdp-mk-acc > summary:focus-visible,
.pdp-kit .pdp-mk-row > summary:focus-visible {
  outline: none;
  background: var(--pdp-soft);
  border-radius: 10px;
}

/* ------------------------------------------------------------------
   Stepper + Add to Cart: 30 / 70 on one row, both pill-shaped like the
   Request a Quote and Get a Sample buttons. premium-actions.css and
   woocommerce.css style every product form (.woocommerce div.product
   form.cart ...: 8px corners, 55px, black), so these rules are scoped a
   step higher to win. Not the desktop pill's mini cart, which has its own.
   ------------------------------------------------------------------ */
/* Flex, not grid: WooCommerce and plugins drop extra elements into the
   form, which a grid would give a cell of their own. */
html body .pdp-kit:not(.pahla-titlebar__cart) .pdp-mk__cart form.cart:not(.variations_form),
html body .pdp-kit:not(.pahla-titlebar__cart) .pdp-mk__cart .woocommerce-variation-add-to-cart {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center;
  gap: 10px;
}

html body .pdp-kit:not(.pahla-titlebar__cart) .pdp-mk__cart form.cart div.quantity {
  flex: 0 0 30%;
  max-width: none;
  min-width: 112px;
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  height: 48px;
  margin: 0 !important;
  border: 1px solid #cfd5dd;
  border-radius: 999px;
  background: #fff;
  overflow: hidden;
}

html body .pdp-kit:not(.pahla-titlebar__cart) .pdp-mk__cart form.cart div.quantity input.qty {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

html body .pdp-kit:not(.pahla-titlebar__cart) .pdp-mk__cart form.cart .pdp-qty-btn {
  flex: 0 0 34px;
  width: 34px;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  outline: none;
}

html body .pdp-kit:not(.pahla-titlebar__cart) .pdp-mk__cart form.cart .pdp-qty-btn:focus-visible {
  background: #f1f3f6 !important;
}

html body .pdp-kit:not(.pahla-titlebar__cart) .pdp-mk__cart form.cart .single_add_to_cart_button {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  height: 48px;
  margin: 0;
  padding: 0 14px;
  border: 1.5px solid var(--pdp-primary) !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: var(--pdp-primary) !important;
  box-shadow: none;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transform: none;
}

html body .pdp-kit:not(.pahla-titlebar__cart) .pdp-mk__cart form.cart .single_add_to_cart_button:hover {
  background: var(--pdp-primary) !important;
  color: #fff !important;
  transform: none;
}

/* Price line: no rules above and below it. */
html body .pdp-kit .pdp-mk__price {
  padding: 0;
  border-top: 0;
  border-bottom: 0;
}

/* Buy box: single-piece (retail) line under the bulk "From" price.
   [SINGLE PIECE]  $13 struck  $11  [Save 15%] */
.pdp-kit .pdp-mk__single {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: -4px 0 14px;
  padding: 9px 12px;
  border-radius: 12px;
  background: #f6f8fb;
  font-size: 13px;
}

.pdp-kit .pdp-mk__single-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--pdp-muted, #5b6777);
}

.pdp-kit .pdp-mk__single-price {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
}

.pdp-kit .pdp-mk__single-price del {
  order: 0;
  font-size: .9em;
  opacity: .55;
}

.pdp-kit .pdp-mk__single-price ins {
  order: 1;
  text-decoration: none;
  font-size: 1.15em;
  font-weight: 800;
  color: var(--pdp-ink, #1b2735);
}

.pdp-kit .pdp-mk__single-price > .amount,
.pdp-kit .pdp-mk__single-price > .woocommerce-Price-amount {
  font-size: 1.15em;
  font-weight: 800;
  color: var(--pdp-ink, #1b2735);
}

.pdp-kit .pdp-mk__save {
  margin-left: auto;
  padding: 3px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, #16a34a 12%, #fff 88%);
  color: #15803d;
  font-size: 11.5px;
  font-weight: 800;
}
