/* ==========================================================================
   DKS Furnitures - single product page (PDP)
   Enqueued only on is_product() by novamira-sandbox/dks-product.php
   Scoped to body.single-product so nothing here leaks to other templates.
   ========================================================================== */

body.single-product{
  --pdp-green:#00603A;
  --pdp-green-deep:#004A2C;
  --pdp-green-tint:rgba(0,96,58,.08);
  --pdp-band:#0E3A2A;
  --pdp-cream:#F3EDE2;
  --pdp-sand:#EDE5D9;
  --pdp-ink:#221F1A;
  --pdp-muted:#6B6355;
  --pdp-line:rgba(34,31,26,.14);
  --pdp-line-soft:rgba(34,31,26,.08);
  --pdp-r:14px;
  --pdp-r-sm:10px;
  --pdp-font:'Poppins',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  --pdp-wrap:1280px;
}

body.single-product div.product{font-family:var(--pdp-font);color:var(--pdp-ink)}

/* WooCommerce's own .summary div is a pass-through; .pdp-summary does the work */
body.single-product div.product>.summary.entry-summary{width:100%;max-width:none;float:none;margin:0;padding:0;min-width:0}

/* keep store notices inside the page gutter */
body.single-product .woocommerce-notices-wrapper{max-width:var(--pdp-wrap);margin-inline:auto;padding-inline:clamp(16px,4vw,32px)}

/* visually hidden, but still readable by the WooCommerce variation script */
body.single-product .pdp-attr-hidden{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;margin:0;padding:0;border:0}

/* when our swatches are live, stand the swatch plugin's own UI down */
body.pdp-has-swatches .pdp-summary .variable-items-wrapper{display:none!important}
/* and if they could not bind, hide ours instead of doubling up */
.pdp-swatches.pdp-swatches-off{display:none}

.pdp-excerpt p{margin:0 0 10px}
.pdp-excerpt p:last-child{margin-bottom:0}
body.single-product .woostify-single-product-trust-badge,
body.single-product .single-product-trust-badge,
body.single-product .woocommerce-product-gallery{display:none}

.pdp-wrap{max-width:var(--pdp-wrap);margin-inline:auto;padding-inline:clamp(16px,4vw,32px)}

/* ---------- breadcrumbs ---------- */
.pdp-crumbs{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:22px 0 18px;font-size:13px;color:var(--pdp-muted)}
.pdp-crumbs a{color:var(--pdp-muted);text-decoration:underline;text-underline-offset:3px;text-decoration-color:var(--pdp-line)}
.pdp-crumbs a:hover{color:var(--pdp-green);text-decoration-color:currentColor}
.pdp-crumbs .sep{opacity:.5}
.pdp-crumbs .current{color:var(--pdp-ink)}

/* ---------- main two-column ---------- */
.pdp-main{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:clamp(24px,3.2vw,44px);align-items:start;padding-bottom:clamp(32px,4vw,56px)}

/* ---------- gallery ---------- */
.pdp-media{position:relative;min-width:0}
/* product shots are photographed on white, so the panel is white to match.
   Swap to var(--pdp-cream) once the shots are transparent PNGs. */
.pdp-stage{position:relative;background:#fff;border:1px solid var(--pdp-line-soft);border-radius:var(--pdp-r);overflow:hidden;aspect-ratio:4/3;display:flex;align-items:center;justify-content:center;padding:clamp(16px,2.4vw,32px)}
.pdp-stage img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;display:block;transition:opacity .18s ease}
.pdp-stage.is-swapping img{opacity:.35}
.pdp-badge{position:absolute;top:16px;left:16px;z-index:2;background:rgba(0,96,58,.12);color:var(--pdp-green);border-radius:999px;padding:7px 15px;font-size:12px;font-weight:600;letter-spacing:.02em}
.pdp-thumbs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:12px}
.pdp-thumb{padding:0;border:1.5px solid var(--pdp-line-soft);background:#fff;border-radius:var(--pdp-r-sm);overflow:hidden;aspect-ratio:4/3;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:border-color .18s ease}
.pdp-thumb img{max-width:86%;max-height:86%;width:auto;height:auto;object-fit:contain;display:block}
.pdp-thumb:hover{border-color:rgba(0,96,58,.35)}
.pdp-thumb.is-active{border-color:var(--pdp-green)}
.pdp-thumb:focus-visible{outline:2px solid var(--pdp-green);outline-offset:2px}

/* ---------- summary column ---------- */
.pdp-summary{min-width:0;padding-top:4px}
.pdp-eyebrow{margin:0 0 12px;font-size:12px;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:var(--pdp-muted)}
.pdp-title{margin:0 0 10px;font-size:clamp(28px,3.4vw,40px);line-height:1.12;font-weight:700;letter-spacing:-.01em;color:var(--pdp-green)}
.pdp-rating{display:flex;align-items:center;gap:10px;margin:0 0 16px;font-size:14px;color:var(--pdp-muted)}
.pdp-stars{color:#C9A227;letter-spacing:2px;font-size:15px}
.pdp-excerpt{margin:0 0 22px;font-size:17px;line-height:1.55;color:var(--pdp-ink)}
.pdp-price{font-size:clamp(26px,2.8vw,34px);font-weight:700;line-height:1.1;color:var(--pdp-ink);display:flex;align-items:baseline;flex-wrap:wrap;gap:10px}
.pdp-price del{font-size:.55em;font-weight:500;color:var(--pdp-muted);opacity:.75}
.pdp-price ins{text-decoration:none}
.pdp-price .woocommerce-Price-currencySymbol{font-size:.82em}
.pdp-price-note{margin:6px 0 0;font-size:14px;color:var(--pdp-muted)}
.pdp-rule{border:0;border-top:1px solid var(--pdp-line);margin:24px 0}

/* ---------- variation form ---------- */
body.single-product .pdp-summary form.cart{margin:0;padding:0;border:0;background:none}
body.single-product .pdp-summary table.variations{width:100%;margin:0 0 20px;border:0;background:none}
body.single-product .pdp-summary table.variations th,
body.single-product .pdp-summary table.variations td{border:0;padding:0;background:none;display:block;width:100%}
body.single-product .pdp-summary table.variations tr{display:block;margin-bottom:16px}
body.single-product .pdp-summary .variations .label label,
body.single-product .pdp-summary .variations th.label{font-size:12px;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:var(--pdp-muted);margin-bottom:8px;display:block}
body.single-product .pdp-summary .variations tr.pdp-attr-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}

/* native selects for secondary attributes */
body.single-product .pdp-summary .variations select{width:100%;min-height:56px;padding:18px 42px 8px 16px;border:1px solid var(--pdp-line);border-radius:var(--pdp-r-sm);background-color:#fff;font-family:var(--pdp-font);font-size:16px;color:var(--pdp-ink);appearance:none;background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23221F1A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 16px center}
body.single-product .pdp-summary .variations select:focus{outline:0;border-color:var(--pdp-green);box-shadow:0 0 0 3px rgba(0,96,58,.16)}
body.single-product .pdp-summary a.reset_variations{display:inline-block;margin-top:8px;font-size:13px;color:var(--pdp-muted)}
body.single-product .pdp-summary a.reset_variations:hover{color:var(--pdp-green)}

/* ---------- colour swatches ---------- */
.pdp-swatches{margin:0 0 22px}
.pdp-field-label{margin:0 0 14px;font-size:12px;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:var(--pdp-muted)}
.pdp-field-label .cur{color:var(--pdp-ink)}
.pdp-swatch-row{display:flex;flex-wrap:wrap;gap:clamp(10px,1.8vw,18px)}
.pdp-swatch{display:flex;flex-direction:column;align-items:center;gap:7px;width:72px;padding:0;border:0;background:none;cursor:pointer;font-family:var(--pdp-font);text-align:center}
.pdp-swatch-dot{width:52px;height:52px;border-radius:50%;background:var(--sw,#ddd);box-shadow:inset 0 0 0 1px rgba(34,31,26,.16);position:relative}
.pdp-swatch-dot::after{content:"";position:absolute;inset:-5px;border-radius:50%;border:2px solid transparent;transition:border-color .18s ease}
.pdp-swatch:hover .pdp-swatch-dot::after{border-color:rgba(0,96,58,.35)}
.pdp-swatch[aria-checked="true"] .pdp-swatch-dot::after{border-color:var(--pdp-green)}
.pdp-swatch-name{font-size:13px;font-weight:600;color:var(--pdp-muted);line-height:1.2}
.pdp-swatch[aria-checked="true"] .pdp-swatch-name{color:var(--pdp-green)}
.pdp-swatch-stock{font-size:12px;color:var(--pdp-muted);line-height:1.2}
.pdp-swatch.is-out .pdp-swatch-dot{opacity:.4}
.pdp-swatch.is-out .pdp-swatch-name,.pdp-swatch.is-out .pdp-swatch-stock{opacity:.6}
.pdp-swatch:focus-visible{outline:2px solid var(--pdp-green);outline-offset:4px;border-radius:8px}

/* ---------- quantity + buttons ---------- */
body.single-product .pdp-summary .woocommerce-variation-price,
body.single-product .pdp-summary .woocommerce-variation-availability{display:none}
body.single-product .pdp-summary .woocommerce-variation-description{margin:0 0 14px;font-size:15px;color:var(--pdp-muted)}

.pdp-buy{display:flex;align-items:stretch;gap:12px;margin:0 0 12px;flex-wrap:wrap}
body.single-product .pdp-summary .quantity{display:flex;align-items:center;border:1px solid var(--pdp-line);border-radius:999px;overflow:hidden;background:#fff;height:56px;flex:0 0 auto}
body.single-product .pdp-summary .quantity input.qty{width:44px;height:54px;min-height:0;border:0;background:none;text-align:center;font-family:var(--pdp-font);font-size:16px;font-weight:600;color:var(--pdp-ink);padding:0;-moz-appearance:textfield;box-shadow:none;border-radius:0}
body.single-product .pdp-summary .quantity input.qty::-webkit-outer-spin-button,
body.single-product .pdp-summary .quantity input.qty::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.pdp-qty-btn{width:42px;height:54px;border:0;background:none;cursor:pointer;font-size:20px;line-height:1;color:var(--pdp-muted);display:flex;align-items:center;justify-content:center}
.pdp-qty-btn:hover{color:var(--pdp-green)}

body.single-product .pdp-summary button.single_add_to_cart_button{flex:1 1 220px;min-height:56px;padding:0 28px;border:0;border-radius:999px;background:var(--pdp-green);color:#fff;font-family:var(--pdp-font);font-size:16px;font-weight:600;letter-spacing:.01em;text-transform:none;cursor:pointer;transition:background .18s ease}
body.single-product .pdp-summary button.single_add_to_cart_button:hover{background:var(--pdp-green-deep)}
body.single-product .pdp-summary button.single_add_to_cart_button.disabled,
body.single-product .pdp-summary button.single_add_to_cart_button:disabled{background:var(--pdp-line);color:var(--pdp-muted);cursor:not-allowed}

.pdp-ghost{display:flex;align-items:center;justify-content:center;width:100%;min-height:56px;padding:0 28px;border:1.5px solid var(--pdp-green);border-radius:999px;background:#fff;color:var(--pdp-green);font-size:16px;font-weight:600;text-decoration:none;transition:background .18s ease,color .18s ease;margin-bottom:22px}
.pdp-ghost:hover{background:var(--pdp-green);color:#fff}

/* WooCommerce keeps a 40px margin on the variation box even when it is empty */
/* price and availability inside it are hidden, so it never needs its own margin */
body.single-product .pdp-summary .woocommerce-variation.single_variation{margin:0;padding:0;min-height:0}

/* the buy row should fill the summary column */
body.single-product .pdp-summary .single_variation_wrap,
body.single-product .pdp-summary .woocommerce-variation-add-to-cart{width:100%;max-width:none}

/* separator between the attribute label and the chosen value */
.pdp-field-label .cur::before{content:"\2014\00a0"}

/* ---------- promises ---------- */
.pdp-promises{border:1px solid var(--pdp-line);border-radius:var(--pdp-r);padding:18px 20px;display:grid;gap:14px;margin-bottom:20px;background:#fff}
.pdp-promise{display:flex;align-items:center;gap:14px;font-size:15px;color:var(--pdp-ink);line-height:1.4}
.pdp-promise svg{flex:0 0 auto;width:20px;height:20px;stroke:var(--pdp-green);fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.pdp-promise a{color:inherit;text-decoration:none;font-weight:600}
.pdp-promise a:hover{color:var(--pdp-green)}

/* ---------- meta ---------- */
.pdp-meta{font-size:13px;color:var(--pdp-muted);line-height:2}
.pdp-meta a{color:var(--pdp-muted);text-decoration:none}
.pdp-meta a:hover{color:var(--pdp-green);text-decoration:underline}
.pdp-meta .k{color:var(--pdp-ink)}

/* ---------- tabs ---------- */
body.single-product .pdp-tabs-wrap{border-top:1px solid var(--pdp-line);background:#fff}
body.single-product .woocommerce-tabs{padding:0;margin:0}
body.single-product .woocommerce-tabs ul.tabs{display:flex;flex-wrap:wrap;gap:34px;margin:0;padding:0 0 0;list-style:none;border:0;border-bottom:1px solid var(--pdp-line);background:none}
body.single-product .woocommerce-tabs ul.tabs::before,
body.single-product .woocommerce-tabs ul.tabs::after,
body.single-product .woocommerce-tabs ul.tabs li::before,
body.single-product .woocommerce-tabs ul.tabs li::after{display:none;content:none;border:0}
body.single-product .woocommerce-tabs ul.tabs li{margin:0;padding:0;border:0;background:none;border-radius:0}
body.single-product .woocommerce-tabs ul.tabs li a{display:block;padding:20px 0 16px;border:0;border-bottom:2.5px solid transparent;font-family:var(--pdp-font);font-size:15px;font-weight:500;letter-spacing:0;text-transform:none;color:var(--pdp-muted);background:none}
body.single-product .woocommerce-tabs ul.tabs li a:hover{color:var(--pdp-ink)}
body.single-product .woocommerce-tabs ul.tabs li.active a{color:var(--pdp-green);font-weight:600;border-bottom-color:var(--pdp-green)}
body.single-product .woocommerce-tabs .panel{margin:0;padding:clamp(28px,3.6vw,48px) 0 clamp(32px,4vw,56px);border:0;background:none}
body.single-product .woocommerce-tabs .panel>h2:first-child{display:none}

.pdp-desc{display:grid;grid-template-columns:minmax(0,1fr);gap:clamp(24px,3vw,44px);align-items:start}
.pdp-desc.has-media{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.pdp-desc-body{font-size:16px;line-height:1.7;color:var(--pdp-ink);max-width:66ch}
.pdp-desc-body h2,.pdp-desc-body h3{font-size:clamp(21px,2.2vw,26px);font-weight:700;color:var(--pdp-green);margin:0 0 16px;line-height:1.25}
.pdp-desc-body p{margin:0 0 16px}
.pdp-desc-body p:last-child{margin-bottom:0}
.pdp-desc-media{background:var(--pdp-cream);border-radius:var(--pdp-r);padding:clamp(18px,2.4vw,30px);display:flex;align-items:center;justify-content:center}
.pdp-desc-media img{max-width:100%;height:auto;display:block}

/* ---------- dark stat band ---------- */
.pdp-band{background:var(--pdp-band);color:#fff;margin-top:0;padding:clamp(44px,5vw,72px) 0}
.pdp-band-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(24px,3.4vw,48px)}
.pdp-band h3{margin:0 0 10px;font-size:clamp(24px,2.6vw,32px);font-weight:700;line-height:1.15;color:#fff;letter-spacing:-.01em}
.pdp-band p{margin:0;font-size:15px;line-height:1.6;color:rgba(255,255,255,.74)}

/* ---------- responsive ---------- */
@media (max-width:1024px){
  .pdp-main{grid-template-columns:minmax(0,1fr);gap:28px}
  .pdp-stage{aspect-ratio:5/4}
  .pdp-summary{padding-top:0}
  .pdp-desc.has-media{grid-template-columns:minmax(0,1fr)}
  .pdp-band-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
  .pdp-band h3{font-size:23px}
}
@media (max-width:767px){
  .pdp-crumbs{font-size:12px;padding:16px 0 14px}
  .pdp-excerpt{font-size:16px}
  .pdp-thumbs{gap:10px}
  .pdp-swatch{width:74px}
  .pdp-swatch-dot{width:46px;height:46px}
  .pdp-band-grid{grid-template-columns:minmax(0,1fr);gap:28px}
  body.single-product .woocommerce-tabs ul.tabs{gap:22px}
  body.single-product .woocommerce-tabs ul.tabs li a{font-size:14px;padding:16px 0 13px}
  .pdp-buy{flex-wrap:wrap}
  body.single-product .pdp-summary button.single_add_to_cart_button{flex:1 1 100%}
}
@media (max-width:480px){
  .pdp-thumbs{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
  .pdp-swatch{width:64px}
  .pdp-swatch-dot{width:42px;height:42px}
  .pdp-swatch-name{font-size:12px}
  .pdp-swatch-stock{font-size:11px}
  .pdp-promises{padding:16px}
}


/* ---------- pincode checker (dks-delivery.php) ---------- */
.dks-pin{border:1px solid var(--pdp-line);border-radius:var(--pdp-r);padding:18px 20px;margin-bottom:20px;background:#fff}
.dks-pin .pdp-field-label{display:flex;align-items:center;gap:8px;margin-bottom:12px}
.dks-pin .pdp-field-label svg{width:16px;height:16px;stroke:var(--pdp-green);fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.dks-pin-form{display:flex;gap:10px;margin:0}
.dks-pin-form input{flex:1 1 auto;min-width:0;height:48px;padding:0 18px;border:1px solid var(--pdp-line);border-radius:999px;font:inherit;font-size:15px;letter-spacing:.08em;color:var(--pdp-ink);background:#fff}
.dks-pin-form input:focus{outline:none;border-color:var(--pdp-green);box-shadow:0 0 0 3px rgba(46,83,68,.12)}
.dks-pin-form button{flex:0 0 auto;height:48px;padding:0 24px;border:0;border-radius:999px;background:var(--pdp-green);color:#fff;font:inherit;font-size:14px;font-weight:600;cursor:pointer;transition:opacity .18s ease}
.dks-pin-form button:hover{opacity:.88}
.dks-pin-form button:disabled{opacity:.6;cursor:wait}
.dks-pin-result:not(:empty){margin-top:14px;display:grid;gap:8px}
.dks-pin-line{margin:0;padding-left:22px;position:relative;font-size:14px;line-height:1.45;color:var(--pdp-ink)}
.dks-pin-line::before{content:'';position:absolute;left:2px;top:6px;width:9px;height:9px;border-radius:50%;background:var(--pdp-green)}
.dks-pin-line.is-info{color:var(--pdp-muted)}
.dks-pin-line.is-info::before{background:#C9A66B}
.dks-pin-line.is-err{color:#9E3B32}
.dks-pin-line.is-err::before{background:#9E3B32}
@media (max-width:480px){.dks-pin{padding:16px}.dks-pin-form button{padding:0 18px}}
