/* =========================================================================
   Product detail page
   Reference: .container-v3 (legacy grid margins), brand link (body-copy 13px), h1.h4 (20px/1.2, 500),
   .disclaimer 11px model/SKU row, .rnr-stats mini stars, gallery 7/12 + buy box 5/12 ≥ 992px,
   hero price 30px/36 500, yellow Add to Cart (c-button-primary, 45px), accordion sections
   (button w-full flex justify-between, h3.h6 17px, caret 24px, borders #e0e6ef).
   ========================================================================= */

.container-v3 { width: 100%; max-width: 1600px; margin: 0 auto; padding-left: var(--grid-margin); padding-right: var(--grid-margin); }
.v-bg-pure-white { background: #fff; }
.v-border-top { border-top: 1px solid #e0e6ef; }
.v-border-bottom { border-bottom: 1px solid #e0e6ef; }
.v-text-dark-gray { color: #55555a; }
.bg-brand-human-blue { background: #0046be; }
.heading-2 { font-size: 28px; line-height: 32px; }
.font-weight-medium { font-weight: 500; }
.font-weight-bold { font-weight: 700; }
.c-button-unstyled { background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.pdp-breadcrumb-wrap { padding-top: 16px; }

.pdp-main { padding-top: 8px; }
.pdp-brand { display: inline-block; margin-bottom: 6px; font-size: 13px; line-height: 16px; font-weight: 600; color: #0046be; text-decoration: none; }
.pdp-brand:hover { text-decoration: underline; }
.pdp-title { margin: 0 0 4px; font-size: 26px; line-height: 1.25; font-weight: 600; color: #1d252c; letter-spacing: -0.01em; }
.pdp-sku { margin: 0 0 8px; font-size: 13px; line-height: 16px; color: #6b7280; }
.pdp-option { display: flex; flex-direction: column; gap: 8px; }
.pdp-option__label { font-size: 14px; line-height: 18px; color: #1d252c; }
.pdp-swatches, .pdp-sizes { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; max-width: 100%; }
.pdp-swatch, .pdp-size { border: 1px solid #c5cbd5; background: #fff; border-radius: 8px; cursor: pointer; color: #1d252c; max-width: 100%; min-width: 0; box-sizing: border-box; }
.pdp-swatch { width: 44px; height: 44px; padding: 3px; display: flex; align-items: center; justify-content: center; }
.pdp-swatch:not(:has(img)) { width: auto; height: auto; min-height: 40px; padding: 8px 12px; }
.pdp-swatch img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.pdp-swatch span { display: block; max-width: 12em; font-size: 13px; line-height: 16px; font-weight: 600; padding: 0; white-space: normal; overflow-wrap: anywhere; word-break: break-word; text-align: center; }
.pdp-size { min-width: 0; height: auto; min-height: 40px; padding: 8px 12px; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 14px; font-weight: 600; text-align: center; line-height: 1.2; }
.pdp-size__name { display: block; max-width: 14em; font-size: 14px; font-weight: 600; line-height: 18px; white-space: normal; overflow-wrap: anywhere; word-break: break-word; }
.pdp-size__price { font-size: 13px; font-weight: 700; line-height: 16px; color: #1d252c; }
.pdp-size__price .woocommerce-Price-amount { font-size: 13px; font-weight: 700; }
.pdp-swatch.is-active, .pdp-size.is-active { border: 2px solid #0046be; }
.pdp-rating { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: #1d252c; font-size: 13px; }
.pdp-rating__score { font-weight: 600; }
.pdp-rating__count { color: #6b7280; }
.pdp-rating:hover .pdp-rating__count { text-decoration: underline; }

/* Columns */
.pdp-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); gap: 40px; align-items: start; max-width: 1080px; }
.pdp-gallery { min-width: 0; display: flex; gap: 12px; align-items: flex-start; }
.pdp-buybox { min-width: 0; position: sticky; top: 16px; }
.pdp-gallery__main { position: relative; width: 100%; display: flex; align-items: center; justify-content: center; background: #f4f6f8; border-radius: 20px; border: 1px solid #eef0f3; padding: 20px; box-sizing: border-box; }
.pdp-gallery__slide { margin: 0; width: 100%; display: flex; align-items: center; justify-content: center; }
.pdp-gallery__slide[hidden] { display: none; }
.pdp-gallery__img { display: block; max-width: 100%; max-height: 440px; width: auto; height: auto; object-fit: contain; }
.pdp-gallery__thumbs { display: flex; flex-direction: column; gap: 8px; list-style: none; margin: 0; padding: 0; overflow-y: auto; max-height: 480px; flex: 0 0 72px; }
.pdp-gallery__main { flex: 1 1 auto; }
.pdp-gallery__thumb { width: 64px; height: 64px; padding: 4px; border: 1px solid #c5cbd5; border-radius: 4px; background: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.pdp-gallery__thumb img { max-width: 100%; max-height: 100%; width: auto; height: auto; }
.pdp-gallery__thumb.is-active { border: 2px solid #0046be; }

/* Buy box */
.pdp-buybox__inner { display: flex; flex-direction: column; gap: 18px; padding-top: 8px; }
.priceView-hero-price { font-size: 32px; line-height: 1.1; font-weight: 600; color: #1d252c; }
.priceView-hero .priceView-was { font-size: 13px; }
.priceView-hero .priceView-savings { font-size: 13px; font-weight: 500; color: #318000; }
.fulfillment-options { display: flex; gap: 8px; }
.fulfillment-card { flex: 1 1 0%; display: flex; align-items: flex-start; gap: 12px; padding: 12px; border: 1px solid #c5cbd5; border-radius: 8px; background: #fff; min-height: 72px; }
.fulfillment-card.is-available { border-color: #0046be; box-shadow: inset 0 0 0 1px #0046be; }
.fulfillment-card__icon { flex-shrink: 0; color: var(--colorFgDefault); }
.fulfillment-card__title { font-size: 15px; line-height: 18px; font-weight: 600; }
.fulfillment-card__sub { font-size: 13px; line-height: 16px; color: var(--colorFgDefaultSubdued); margin-top: 2px; }
.pdp-atc-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.pdp-qty { display: flex; align-items: center; gap: 8px; }
.pdp-qty__label { font-size: 13px; line-height: 16px; }
.pdp-qty__control { display: inline-flex; align-items: center; border: 1px solid #c5cbd5; border-radius: 4px; height: 45px; overflow: hidden; }
.pdp-qty__btn { width: 40px; height: 100%; border: 0; background: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--colorFgDefault); }
.pdp-qty__btn:hover { background: #f0f2f4; }
.pdp-qty__input { width: 48px; height: 100%; border: 0; border-left: 1px solid #c5cbd5; border-right: 1px solid #c5cbd5; text-align: center; font: inherit; font-size: 15px; -moz-appearance: textfield; }
.pdp-qty__input::-webkit-outer-spin-button, .pdp-qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pdp-atc-form .add-to-cart-button { flex: 1 1 200px; }
.pdp-save-btn { flex: 1 1 100%; gap: 8px; }
.pdp-save-btn[aria-pressed="true"] { color: #bb0628; border-color: #bb0628; }
.pdp-save-btn:hover { background: #fff; color: #0046be; border-color: #0046be; }
.pdp-perks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; line-height: 16px; }
.pdp-perks li { display: flex; align-items: center; gap: 8px; }
.pdp-perks a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.pdp-fresh { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 0; border: 0; background: none; color: #0046be; font: inherit; font-size: 13px; line-height: 16px; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.pdp-fresh-dialog { width: min(440px, calc(100vw - 32px)); border: 0; border-radius: 12px; padding: 24px; box-shadow: 0 16px 48px rgba(0,0,0,.24); }
.pdp-fresh-dialog::backdrop { background: rgba(4,12,19,.45); }
.pdp-fresh-dialog h2 { margin: 0 0 12px; font-size: 20px; line-height: 24px; }
.pdp-fresh-dialog p { margin: 0 0 12px; font-size: 14px; line-height: 20px; color: #1d252c; }
.pdp-fresh-dialog a { color: #0046be; }

/* Sections */
.pdp-sections { margin-top: 16px; }
.pdp-section__toggle { min-height: 56px; padding: 16px 0; color: var(--colorFgDefault); }
.pdp-section__toggle .h6 { margin: 0; font-size: 17px; line-height: 20px; font-weight: 500; }
.pdp-section__toggle .caret-right-icon { transition: transform .2s; flex-shrink: 0; }
.pdp-section__toggle[aria-expanded="true"] .caret-right-icon { transform: rotate(180deg); }
.pdp-section__body { padding: 0 0 24px; }
.pdp-section__body[hidden] { display: none; }
.pdp-overview { max-width: 720px; font-size: 14px; line-height: 22px; color: #3d4652; }
.pdp-overview__text p { margin: 0 0 12px; }
.pdp-overview__sub { margin: 0; }
.pdp-features { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pdp-features li { position: relative; margin: 0; padding-left: 16px; }
.pdp-features li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: #0046be; }
.pdp-specs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 992px) { .pdp-specs { grid-template-columns: 1fr 1fr; } }
.pdp-specs__group { display: block; font-size: 15px; line-height: 18px; font-weight: 600; margin-bottom: 8px; }
.pdp-specs ul { list-style: none; margin: 0; padding: 0; }
.pdp-specs ul li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid #e0e6ef; font-size: 13px; line-height: 16px; min-width: 0; }
.pdp-specs__k { color: var(--colorFgDefaultSubdued); flex: 0 1 45%; min-width: 0; overflow-wrap: anywhere; }
.pdp-specs__v { flex: 1 1 auto; min-width: 0; text-align: right; overflow-wrap: anywhere; word-break: break-word; }

/* Reviews */
.pdp-reviews { display: flex; flex-direction: column; gap: 24px; }
@media (min-width: 640px) { .pdp-reviews { flex-direction: row; gap: 40px; } .pdp-reviews__summary { flex: 0 0 33.333%; } }
@media (min-width: 1200px) { .pdp-reviews__summary { flex-basis: 25%; } }
.pdp-reviews__list { flex: 1 1 0%; min-width: 0; }
.pdp-reviews__avg { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 8px 0 4px; }
.pdp-reviews__bars { display: grid; row-gap: 4px; margin-top: 16px; }
.pdp-reviews__bar { display: grid; grid-template-columns: 12px 12px 1fr auto; align-items: center; column-gap: 6px; font-size: 13px; line-height: 16px; }
.pdp-reviews__bar .bb-icon { color: #ffce00; }
.pdp-reviews__bar-track { display: block; height: 8px; background: #e0e6ef; border-radius: 4px; overflow: hidden; }
.pdp-reviews__bar-fill { display: block; height: 100%; }
.pdp-reviews__bar-count { text-align: left; }
.pdp-reviews__list .commentlist { list-style: none; margin: 0; padding: 0; }
.pdp-reviews__list .comment_container { display: flex; gap: 12px; padding: 16px 0; border-bottom: 1px solid #e0e6ef; }
.pdp-reviews__list .comment_container img.avatar { display: none; }
.pdp-reviews__list .star-rating { display: none; }
.pdp-reviews__list .meta { font-size: 11px; color: var(--colorFgDefaultSubdued); margin: 0 0 8px; }
.pdp-reviews__list .description { font-size: 13px; line-height: 20px; }
.pdp-reviews__list #review_form_wrapper { margin-top: 24px; }
.pdp-reviews__list .woocommerce-noreviews,
.pdp-reviews__list .comment-reply-title { display: none; }
.pdp-reviews__list .comment-form label { display: block; font-size: 13px; margin-bottom: 4px; }
.pdp-reviews__list .comment-form input[type="text"], .pdp-reviews__list .comment-form input[type="email"], .pdp-reviews__list .comment-form textarea { width: 100%; border: 1px solid #c5cbd5; border-radius: 4px; padding: 8px 12px; font: inherit; font-size: 13px; }
.pdp-reviews__list .comment-form .submit { height: 40px; padding: 0 24px; border: 0; border-radius: 4px; background: #0046be; color: #fff; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.pdp-reviews__list p.stars a { color: #ffce00; }

.pdp-related { margin: 24px auto 32px; }
.pdp-related .product-story__item { width: 176px; flex-shrink: 0; }
.pdp-related .product-story__item + .product-story__item { margin-left: 12px; }
.pdp-related .product-story__item:last-child { padding-right: 16px; box-sizing: content-box; }
.pdp-related .pc { display: flex; flex-direction: column; min-width: 0; }
.pdp-related .pc__image {
	width: 100%; height: 112px; margin: 0 0 8px; display: flex; align-items: center; justify-content: center;
	background: #f6f7f8; border-radius: 8px; overflow: hidden;
}
.pdp-related .pc__img { max-width: 100%; max-height: 96px; width: auto !important; height: auto !important; object-fit: contain; }
.pdp-related .pc__title { height: auto; margin: 0 0 4px; }
.pdp-related .pc__title-link span {
	font-size: 13px; line-height: 17px; color: #1d252c;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pdp-related .pc__price { display: flex; flex-wrap: wrap; gap: 2px 6px; align-items: baseline; }
.pdp-related .pc__price-current { font-size: 15px; line-height: 20px; font-weight: 600; }
.pdp-related .pc__price-regular, .pdp-related .pc__savings { font-size: 12px; line-height: 16px; }
.pdp-related .product-story__body { padding-bottom: 16px; }
@media (max-width: 991px) {
	.pdp-related .product-story__item { width: 140px; }
	.pdp-related .pc__image { height: 96px; }
	.pdp-related .pc__img { max-height: 80px; }
	.pdp-related { margin-bottom: 88px; }
}

/* ---------- < 992px ---------- */
@media (max-width: 991px) {
	.pdp-columns { grid-template-columns: 1fr; gap: 20px; }
	.pdp-gallery, .pdp-buybox { width: 100%; position: static; }
	.pdp-gallery__main { padding: 12px; }
	.pdp-gallery__img { max-height: 320px; }
	.pdp-gallery { flex-direction: column; }
	.pdp-gallery__thumbs { flex-direction: row; flex-basis: auto; max-height: none; width: 100%; overflow-x: auto; overflow-y: hidden; }
	.pdp-title { font-size: 22px; }
	.priceView-hero-price { font-size: 24px; line-height: 28px; }
}
@media (max-width: 639px) {
	.fulfillment-options { flex-direction: column; }
	.pdp-atc-form .add-to-cart-button { flex-basis: 100%; }
}

/* --- Mobile-first buy signals --- */
.pdp-mobile-price { display: none; align-items: baseline; gap: 10px; padding: 2px 0 8px; }
.pdp-mobile-price__current { font-size: 26px; font-weight: 700; color: #0a0b0d; }
.pdp-mobile-price__current .woocommerce-Price-amount { font-size: inherit; font-weight: inherit; }
.pdp-mobile-price__was { font-size: 15px; color: #55555f; text-decoration: line-through; }

/* Sticky add-to-cart bar (mobile) */
.pdp-sticky-bar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: #fff; border-top: 1px solid #e0e6ef; box-shadow: 0 -2px 10px rgba(0,0,0,.08); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); align-items: center; gap: 12px; }
.pdp-sticky-bar__price { display: flex; flex-direction: column; min-width: 0; }
.pdp-sticky-bar__current { font-size: 20px; font-weight: 700; line-height: 1.1; color: #0a0b0d; }
.pdp-sticky-bar__was { font-size: 13px; color: #55555f; text-decoration: line-through; }
.pdp-sticky-bar__btn { flex: 1; }
@media (max-width: 991px) {
	body.has-sticky-atc { padding-bottom: 72px; }
}

@media (max-width: 991px) {
  .pdp-mobile-price { display: flex; }
  .pdp-sticky-bar:not([hidden]) { display: flex; }
}
