/* Linked Distribution redesign: single product page 1.0.1. Loads after ld-redesign.css; everything is scoped to .ld-pdp. */
.ld-pdp{font-family:var(--ld-font);color:var(--ld-text);letter-spacing:-.01em;background:#fff}
.ld-pdp *{box-sizing:border-box}
.ld-pdp-wrap{max-width:1240px;margin:0 auto;padding:0 22px}
.ld-pdp-wrap a{color:var(--ld-accent)}
/* Flatsome's gray title banner; inc/pdp.php also unhooks it, this is the safety net. */
.ld-pdp-page .product-page-title{display:none !important}
.ld-pdp .woocommerce-notices-wrapper:empty{display:none}

/* Breadcrumb */
.ld-pdp-crumbs{font-size:13px;line-height:1.4;color:var(--ld-text-2);padding:18px 0 8px;text-transform:none;letter-spacing:0}
.ld-pdp-crumbs a{color:var(--ld-text-2)}
.ld-pdp-sep{margin:0 6px;color:var(--ld-rule)}

/* Top: photo + info */
.ld-pdp-top{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:56px;padding:12px 0 56px}
.ld-pdp-gallery{position:sticky;top:156px;align-self:start}
.ld-pdp-photo{position:relative;background:var(--ld-panel);border-radius:24px;aspect-ratio:1/1;display:flex;align-items:center;justify-content:center;overflow:hidden}
.ld-pdp-photo img{display:block;width:auto;height:auto;max-width:72%;max-height:86%;mix-blend-mode:multiply}
.ld-pdp-photo .ld-heart{position:absolute;top:16px;right:16px;width:44px;height:44px;margin:0;padding:0;min-height:0;border-radius:50%;background:#fff;box-shadow:var(--ld-shadow)}
.ld-pdp-brand{font-size:14px;font-weight:600;color:var(--ld-accent);margin:4px 0 6px}
.ld-pdp h1.ld-pdp-title{font-family:var(--ld-font);font-size:34px;line-height:1.15;font-weight:600;letter-spacing:-.025em;color:var(--ld-text);margin:0 0 18px;text-transform:none}
.ld-pdp-chips{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 22px;padding:0;list-style:none}
.ld-pdp-chips li{margin:0;background:var(--ld-panel);border-radius:var(--ld-pill);padding:7px 14px;font-size:14px;line-height:1.3;font-weight:500;color:var(--ld-text-3)}
.ld-pdp-chips li b{color:var(--ld-text);font-weight:600}
.ld-pdp-lede{font-size:17px;line-height:1.55;color:var(--ld-text-3);margin:0 0 26px}
.ld-pdp-lede p{margin:0 0 10px}
.ld-pdp-lede p:last-child{margin:0}

/* Wholesale panel */
.ld-pdp-buy{border:1px solid var(--ld-border);border-radius:20px;padding:22px 24px;margin:0 0 26px}
.ld-pdp-price{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:4px}
.ld-pdp-lock{font-size:20px;font-weight:600}
.ld-pdp-only{font-size:14px;color:var(--ld-text-2)}
.ld-pdp-sub{font-size:14px;color:var(--ld-text-2);margin:0 0 18px}
.ld-pdp-actions{display:flex;gap:18px;align-items:center;flex-wrap:wrap}
.ld-pdp-actions .ld-btn{margin:0;color:#fff}
.ld-pdp-link{font-size:17px;font-weight:500}
.ld-pdp-notes{display:flex;flex-wrap:wrap;gap:6px 20px;margin:18px 0 0;padding:16px 0 0;border-top:1px solid var(--ld-border);list-style:none;font-size:13px;line-height:1.4;color:var(--ld-text-2)}
.ld-pdp-notes li{margin:0}
.ld-pdp-notes li::before{content:"✓";color:#1d8a3a;font-weight:600;margin-right:6px}

/* Logged-in buyers: the normal WooCommerce price and add-to-cart, restyled */
.ld-pdp-member .price{font-size:24px;font-weight:600;color:var(--ld-text);margin:0 0 14px}
.ld-pdp-member form.cart{display:flex;flex-wrap:wrap;gap:16px;align-items:center;margin:0}
.ld-pdp .ld-pdp-member .quantity{display:inline-flex;align-items:stretch;height:46px;margin:0 !important;border:1px solid var(--ld-rule);border-radius:var(--ld-pill);overflow:hidden;background:#fff}
.ld-pdp .ld-pdp-member .quantity input.qty{width:44px;height:44px;min-height:0;margin:0;padding:0;border:0;border-radius:0;box-shadow:none;background:#fff;font-size:17px;text-align:center;color:var(--ld-text)}
.ld-pdp .ld-pdp-member .quantity .button.minus,.ld-pdp .ld-pdp-member .quantity .button.plus{width:40px;height:44px;min-height:0;margin:0;padding:0;border:0;border-radius:0;background:#fff;box-shadow:none;font-size:20px;line-height:44px;color:var(--ld-text)}
.ld-pdp .ld-pdp-member .single_add_to_cart_button.button{background-color:var(--ld-accent) !important;color:#fff;border:0;border-radius:var(--ld-pill);padding:0 28px;height:46px;min-height:0;margin:0;font-size:17px;font-weight:500;text-transform:none;letter-spacing:0}

/* Codes table */
.ld-pdp-codes{width:100%;border-collapse:collapse;font-size:14px;margin:0;border:0}
.ld-pdp-codes th,.ld-pdp-codes td{padding:10px 0;border:0;border-bottom:1px solid var(--ld-border);font-size:14px;line-height:1.4;text-transform:none;letter-spacing:0;vertical-align:middle}
.ld-pdp-codes th{text-align:left;font-weight:500;color:var(--ld-text-2);width:110px}
.ld-pdp-codes td{color:var(--ld-text);font-variant-numeric:tabular-nums}
.ld-pdp-codes td:last-child{text-align:right;width:70px}
.ld-pdp-copy{border:0;background:none;color:var(--ld-accent);font:inherit;font-size:13px;cursor:pointer;margin:0;padding:2px 0;min-height:0;line-height:1.4;text-transform:none;letter-spacing:0;box-shadow:none}

/* Details: highlights + expandable sections */
.ld-pdp-details{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:56px;padding:48px 0 56px;border-top:1px solid var(--ld-border)}
.ld-pdp-details h2{font-family:var(--ld-font);font-size:24px;line-height:1.25;font-weight:600;letter-spacing:-.02em;color:var(--ld-text);margin:0 0 16px;text-transform:none}
.ld-pdp-highlights ul{margin:0;padding:0;list-style:none;display:grid;gap:12px}
.ld-pdp-highlights li{margin:0;display:flex;gap:12px;font-size:16px;line-height:1.5;color:var(--ld-text-3)}
.ld-pdp-highlights li::before{content:"";flex:none;width:6px;height:6px;border-radius:50%;background:var(--ld-accent);margin-top:9px}
.ld-pdp-intro{font-size:15px;line-height:1.55;color:var(--ld-text-3);margin:0 0 16px}
.ld-pdp-acc{border-bottom:1px solid var(--ld-border)}
.ld-pdp-acc:first-of-type{border-top:1px solid var(--ld-border)}
.ld-pdp-acc summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:16px;padding:18px 0}
.ld-pdp-acc summary::-webkit-details-marker{display:none}
.ld-pdp-acc summary::after{content:"+";font-size:22px;line-height:1;color:var(--ld-text-2)}
.ld-pdp-acc[open] summary::after{content:"–"}
.ld-pdp-details .ld-pdp-acc summary h2{font-size:17px;margin:0;letter-spacing:-.01em}
.ld-pdp-acc-body{padding:0 0 20px;font-size:15px;line-height:1.55;color:var(--ld-text-3)}
.ld-pdp-acc-body p{margin:0 0 10px}
.ld-pdp-acc-body ul{margin:0;padding-left:18px;list-style:disc}
.ld-pdp-acc-body li{margin:0 0 6px}

/* Related: homepage carousel on a gray band */
.ld-pdp-related.ld-carousel{background:var(--ld-panel);padding:48px 0 32px}
.ld-pdp-related .ld-carousel-head{max-width:1240px}
.ld-pdp-related .ld-track{scroll-padding-left:max(22px,calc((100% - 1196px)/2))}
.ld-pdp-related .ld-track-inner{padding:0 max(22px,calc((100% - 1196px)/2))}
.ld-pdp-related .ld-carousel-head h2{font-family:var(--ld-font);font-size:24px;line-height:1.25;font-weight:600;letter-spacing:-.02em;color:var(--ld-text);margin:0;text-transform:none}

@media (max-width:900px){
  .ld-pdp-top,.ld-pdp-details{grid-template-columns:1fr;gap:28px}
  .ld-pdp-gallery{position:static}
  .ld-pdp-photo{aspect-ratio:auto;height:300px}
  .ld-pdp-photo img{max-height:270px}
}
@media (max-width:760px){
  .ld-pdp-wrap{padding:0 16px}
  .ld-pdp-crumbs{padding-top:14px}
  .ld-pdp h1.ld-pdp-title{font-size:26px}
  .ld-pdp-lede{font-size:16px}
  .ld-pdp-buy{padding:18px}
  .ld-pdp-actions .ld-btn{flex:1 1 100%;text-align:center}
  .ld-pdp-link{flex:1 1 100%;text-align:center}
  .ld-pdp .ld-pdp-member .single_add_to_cart_button.button{flex:1 1 auto}
  .ld-pdp-details{padding:36px 0 44px}
  .ld-pdp-related.ld-carousel{padding:36px 0 24px}
}

/* Exact-product gallery navigation. */
.ld-pdp .ld-pdp-thumbs{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
.ld-pdp .ld-pdp-thumb{display:flex;align-items:center;justify-content:center;width:76px;height:76px;border:2px solid var(--ld-border);border-radius:12px;padding:5px;background:#fff}
.ld-pdp .ld-pdp-thumb[aria-current="true"]{border-color:var(--ld-accent)}
.ld-pdp .ld-pdp-thumb:focus-visible{outline:3px solid var(--ld-accent);outline-offset:3px}
.ld-pdp .ld-pdp-thumb img{width:100%;height:100%;object-fit:contain}
