/* Product page: big 2-up photo grid on the left, sticky details on the right (white theme, black 20%, blue 10%). */
body.single-product .site-content > .ast-container { max-width: none !important; width: 100% !important; padding-left: 0 !important; padding-right: 0 !important; display: block; }
body.single-product #primary { width: 100% !important; max-width: none !important; padding: 0 var(--shop-pad, 40px) !important; margin: 0 !important; }
body.single-product .ast-woocommerce-container { max-width: none !important; padding: 0 !important; }

.pdp-breadcrumb { margin: 16px 0 14px !important; padding: 0 !important; font-size: 12.5px; color: #6b6b6b; }
.pdp-breadcrumb a { color: var(--ink, #0f0f10); text-decoration: none; } .pdp-breadcrumb a:hover { color: var(--blue, #0050c8); text-decoration: underline; }

body.single-product div.product.type-product { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(340px, 30%); gap: 44px; align-items: start; }
body.single-product div.product .images, body.single-product div.product .summary { float: none !important; width: auto !important; margin: 0 !important; }
body.single-product div.product .onsale { display: none !important; }

/* ---- photos ---- */
.pdp-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; opacity: 1 !important; }
.pdp-photo { display: block; overflow: hidden; background: var(--mist, #f3f4f6); cursor: zoom-in; }
.pdp-photo img { display: block; width: 100%; height: auto; transition: transform .6s cubic-bezier(.2, .6, .2, 1); }
@media (hover: hover) { .pdp-photo:hover img { transform: scale(1.025); } }

/* ---- details column ---- */
body.single-product div.product .summary { position: sticky; top: 72px; max-height: calc(100vh - 88px); overflow: auto; padding: 0 4px 24px 0; scrollbar-width: thin; }
.pdp-brand { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #6b6b6b; margin-bottom: 6px; }
body.single-product .product_title { margin: 0 0 12px; font-size: clamp(22px, 2vw, 28px); font-weight: 600; letter-spacing: .05em; line-height: 1.15; text-transform: uppercase; color: var(--ink, #0f0f10); }
body.single-product p.price { margin: 0 0 6px; font-size: 19px; font-weight: 600; color: var(--ink, #0f0f10); }
body.single-product p.price del { color: #8e8e8e; font-weight: 400; margin-right: 8px; opacity: 1; } body.single-product p.price ins { color: var(--blue, #0050c8); font-weight: 700; text-decoration: none; background: none; }
body.single-product .product-price-installments-not-in-variation-single { font-size: 12.5px !important; line-height: 1.5 !important; font-weight: 400 !important; color: #6b6b6b !important; margin-top: 6px; }
body.single-product .product-price-installments-not-in-variation-single img { height: 14px !important; }
body.single-product .summary > div[style*="font-size: 13px"] { font-size: 12.5px !important; font-weight: 400 !important; color: #6b6b6b !important; margin: 4px 0 14px; }

.pdp-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 2px; }
.pdp-meta:empty { display: none; }
.pdp-tag { padding: 6px 9px; font-size: 11px; font-weight: 700; letter-spacing: .09em; line-height: 1; text-transform: uppercase; color: #fff; }
.pdp-tag.is-blue { background: var(--blue, #0050c8); } .pdp-tag.is-black { background: var(--ink, #0f0f10); }
.pdp-recent { display: flex; align-items: center; gap: 7px; margin: 12px 0 4px; font-size: 13px; color: var(--ink, #0f0f10); }
.pdp-recent svg { color: var(--blue, #0050c8); flex: none; }

/* ---- size + buy ---- */
body.single-product table.variations { margin: 14px 0 6px; border: 0; width: 100%; }
body.single-product table.variations tr, body.single-product table.variations th, body.single-product table.variations td { display: block; padding: 0; border: 0; background: none; }
body.single-product table.variations th.label { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
body.single-product table.variations label { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin: 0; }
.pdp-sizeguide { font-size: 12.5px; color: #3c3c3c; text-decoration: underline; text-underline-offset: 3px; } .pdp-sizeguide:hover { color: var(--blue, #0050c8); }
body.single-product .cfvsw-swatches-container { display: flex; flex-wrap: wrap; gap: 8px; }
body.single-product .cfvsw-swatches-option.cfvsw-label-option { min-width: 54px !important; min-height: 46px !important; padding: 0 14px; display: grid; place-items: center; border: 1px solid #d6d6d6 !important; border-radius: 0 !important; background: #fff; color: var(--ink, #0f0f10); font-size: 13px; font-weight: 700; transition: background-color .15s, color .15s, border-color .15s; }
body.single-product .cfvsw-swatches-option.cfvsw-label-option:hover { border-color: var(--ink, #0f0f10) !important; }
body.single-product .cfvsw-swatches-option.cfvsw-selected-swatch { background: var(--ink, #0f0f10) !important; color: #fff !important; border-color: var(--ink, #0f0f10) !important; }
body.single-product .cfvsw-swatches-option.cfvsw-swatches-disabled { opacity: .4; text-decoration: line-through; background: #fafafa; }
body.single-product .reset_variations { display: none !important; }
body.single-product .woocommerce-variation { margin: 8px 0 0; font-size: 13px; }
body.single-product .woocommerce-variation-price { display: none; }   /* the price above already follows the size */
body.single-product .woocommerce-variation-availability p { margin: 0; color: #6b6b6b; }

body.single-product .woocommerce-variation-add-to-cart { display: flex !important; gap: 10px; align-items: stretch; margin-top: 16px; }
body.single-product .woocommerce-variation-add-to-cart .quantity { display: flex !important; align-items: stretch; border: 1px solid #d6d6d6; margin: 0 !important; float: none; }
body.single-product .quantity .ast-qty-placeholder { display: grid; place-items: center; width: 38px; font-size: 18px; color: var(--ink, #0f0f10); text-decoration: none; background: none; border: 0; }
body.single-product .quantity .ast-qty-placeholder:hover { background: #f3f4f6; }
body.single-product .quantity input.qty { width: 44px; border: 0 !important; text-align: center; font-weight: 600; background: transparent !important; box-shadow: none !important; padding: 0; -moz-appearance: textfield; }
body.single-product .quantity input.qty::-webkit-outer-spin-button, body.single-product .quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
body.single-product .single_add_to_cart_button { flex: 1; height: 54px; margin: 0 !important; border-radius: 0 !important; font-size: 13px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }

/* ---- expandable sections ---- */
.pdp-accordion { margin-top: 26px; border-bottom: 1px solid #e3e3e3; }
.pdp-accordion details { border-top: 1px solid #e3e3e3; }
.pdp-accordion summary { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; list-style: none; }
.pdp-accordion summary::-webkit-details-marker { display: none; }
.pdp-accordion summary::after { content: "+"; font-size: 20px; font-weight: 400; line-height: 1; transition: transform .25s ease; }
.pdp-accordion details[open] summary::after { transform: rotate(45deg); }
.pdp-accordion summary:hover { color: var(--blue, #0050c8); }
.pdp-acc-body { padding: 0 0 18px; font-size: 14px; line-height: 1.6; color: #3c3c3c; animation: notice-in .25s ease both; }
.pdp-acc-body p { margin: 0 0 10px; } .pdp-acc-body a { color: var(--ink, #0f0f10); text-decoration: underline; text-underline-offset: 3px; } .pdp-acc-body a:hover { color: var(--blue, #0050c8); }
.pdp-acc-body h4 { margin: 14px 0 6px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }

/* ---- related ---- */
body.single-product section.related { grid-column: 1 / -1; margin-top: 56px; }
body.single-product section.related > h2 { margin: 0 0 18px; text-align: center; font-size: clamp(20px, 2vw, 26px); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
body.single-product section.related { display: block; }

/* ---- photo viewer ---- */
.pdp-lb { position: fixed; inset: 0; z-index: 10001; display: grid; place-items: center; background: rgba(15, 15, 16, .92); opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility 0s linear .25s; }
.pdp-lb.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.pdp-lb img { max-width: min(92vw, 1100px); max-height: 92vh; object-fit: contain; transition: opacity .15s ease; }
.pdp-lb button { position: absolute; border: 0 !important; background: none !important; color: #fff !important; cursor: pointer; font-size: 38px; line-height: 1; padding: 10px 16px; opacity: .85; transition: opacity .2s; }
.pdp-lb button:hover { opacity: 1; color: #8db8ff !important; }
.pdp-lb .lb-close { top: 8px; right: 12px; } .pdp-lb .lb-prev { left: 8px; top: 50%; transform: translateY(-50%); } .pdp-lb .lb-next { right: 8px; top: 50%; transform: translateY(-50%); }

/* ---- tablets & phones: photos become a swipe strip, details flow underneath ---- */
@media (max-width: 960px) {
    body.single-product #primary { padding: 0 !important; }
    body.single-product div.product.type-product { grid-template-columns: 1fr; gap: 0; }
    .pdp-breadcrumb { padding: 0 14px !important; }
    .pdp-gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 3px; scrollbar-width: none; }
    .pdp-gallery::-webkit-scrollbar { display: none; }
    .pdp-photo { flex: 0 0 86%; scroll-snap-align: start; }
    body.single-product div.product .summary { position: static; max-height: none; overflow: visible; padding: 18px 14px 28px; }
    body.single-product section.related { padding: 0 8px; margin-top: 30px; }
}

/* show the SIZE label row (the swatch plugin hides it) and keep the sticky column tidy */
body.single-product table.variations th.label, body.single-product table.variations .label { display: flex !important; visibility: visible !important; }
body.single-product div.product .summary { scrollbar-width: none; }
body.single-product div.product .summary::-webkit-scrollbar { display: none; }
.pdp-meta { margin: 0 0 12px; }

/* size chart table */
.pdp-chart-wrap { overflow-x: auto; margin: 2px 0 10px; }
.pdp-chart { width: 100%; border-collapse: collapse; font-size: 13px; text-align: center; }
.pdp-chart th, .pdp-chart td { padding: 10px 8px; border: 0; border-bottom: 1px solid #ececec; background: none; }
.pdp-chart thead th { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #6b6b6b; border-bottom: 1.5px solid var(--ink, #0f0f10); white-space: nowrap; }
.pdp-chart tbody th { font-weight: 700; color: var(--ink, #0f0f10); }
.pdp-chart tbody tr:hover { background: var(--blue-soft, #e8f0ff); }
.pdp-chart-note { font-size: 12.5px; color: #6b6b6b; }

/* a11y: stock line meets 4.5:1 contrast on white */
.single-product p.stock, .woocommerce p.stock, .stock { color: #1a6b32; }
.stock.out-of-stock { color: #a12020; }
.stock.in-stock, span.stock.in-stock, .woocommerce div.product .stock.in-stock { color: #1a6b32 !important; }
.stock.out-of-stock, .woocommerce div.product .stock.out-of-stock { color: #a12020 !important; }

/* phone-only helpers (styled in mobile-product.css): never visible on larger screens */
.pdp-sticky, .pdp-dots { display: none; }
