/**
 * accessory-pdp.css — single-accessory product page (Bricks template #5391).
 * Loads only on single accessory products (see inc/enqueue.php). Restyles the
 * existing, cleanly-IDed Woo buy box IN PLACE (no relocation needed for layout) +
 * styles the [peb_accessory_pdp_payload] pieces. Mini-cart drawer styles come from
 * accessories.css (also enqueued here). Tokens only.
 */

/* ---- Buy box: gallery left + sticky, summary right (constrained like the mockup .wrap) ---- */
/* The Bricks content wrapper is flex-row-wrap; on very wide screens two 1180px
   blocks pack 2-per-line. Force normal block flow on this template so the centered
   blocks stack. Scoped to single product pages (this sheet only loads on accessory PDPs). */
body.single-product #brx-content { display: block; }
#accessories-breadcrumbs,
#accessories-main-container { max-width: 1180px; margin-left: auto; margin-right: auto; padding-left: 28px; padding-right: 28px; }
#accessories-breadcrumbs { display: block !important; width: 100%; text-align: left !important; padding-top: 24px; padding-bottom: 14px; }
#accessories-breadcrumbs .woocommerce-breadcrumb,
#accessories-breadcrumbs > * { margin-left: 0 !important; margin-right: 0 !important; text-align: left !important; justify-content: flex-start !important; }
#accessories-main-container { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; margin-top: 16px; }
#accessories-right-container { order: 1; position: sticky; top: 84px; }   /* gallery */
#accessories-left-container  { order: 2; }                                /* summary */
/* Gallery: clean rounded main image + compact thumbnail strip (mockup-style) */
#accessories-product-image .woocommerce-product-gallery__image img { display: block; width: 100%; height: auto; border-radius: var(--radius-lg); }
#accessories-product-image .flex-control-thumbs { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0 0; padding: 0; list-style: none; }
#accessories-product-image .flex-control-thumbs li { margin: 0; width: 72px; height: 72px; flex: 0 0 auto; }
#accessories-product-image .flex-control-thumbs img { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; border: 2px solid var(--border); cursor: pointer; opacity: 1; transition: border-color .12s; }
#accessories-product-image .flex-control-thumbs img:hover { border-color: var(--ink); }
#accessories-product-image .flex-control-thumbs img.flex-active { border-color: var(--accent); }

/* Re-rendered / replaced by our sections — hide the originals */
#accessories-description { display: none; }            /* long desc → Overview */
#accessories-carousel-section { display: none; }       /* 3 legacy cross-sell carousels → "Pairs well with" */

/* ---- Summary ---- */
#accessories-title { font-family: var(--hfont); font-size: 27px; line-height: 1.15; margin: 8px 0 10px; }
#accessories-price .price, #accessories-price { font-family: var(--hfont); font-size: 32px; font-weight: 900; color: var(--ink); }
#accessories-price .price del { font-size: 18px; font-weight: 600; opacity: .6; }
#accessories-price .price ins { text-decoration: none; }

/* eyebrow + unit line (relocated from the payload) */
.crumbcat { font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-strong); margin: 0 0 2px; }
.p-unit { color: var(--muted); font-size: 13.5px; font-weight: 600; margin: 0 0 16px; }

/* ---- Add-to-cart form: [qty] [hint] on one row, full-width button below ---- */
/* reset the inherited global .cart pill (border/radius/padding from the header cart) */
form.cart { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 16px 0 6px; border: 0; border-radius: 0; padding: 0; background: none; }
form.cart .product-addon-field { flex: 1 1 100%; order: -1; margin: 0; font-size: 14px; }
form.cart .quantity { display: inline-flex; align-items: center; border: 1.5px solid var(--border); border-radius: 999px; overflow: hidden; height: 52px; }
form.cart .quantity input.qty { order: 2; width: 46px; min-width: 0; text-align: center; border: 0; background: transparent; font-size: 16px; font-weight: 800; -moz-appearance: textfield; }
form.cart .quantity input.qty::-webkit-outer-spin-button,
form.cart .quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
/* the theme's native +/- buttons — hidden; we use our own .peb-qbtn */
form.cart .quantity .action { display: none !important; }
/* explicit order so it reads − 1 + (theme sets order:2 on the input) */
.peb-qbtn { width: 46px; height: 50px; border: 0; background: var(--surface); font-size: 20px; font-weight: 800; color: var(--accent-strong); cursor: pointer; }
form.cart .quantity .peb-qbtn[aria-label*="Decrease"] { order: 1; }
form.cart .quantity .peb-qbtn[aria-label*="Increase"] { order: 3; }
.peb-qbtn:hover { background: var(--surface-2); }
.qty-hint { font-size: 13px; color: var(--muted); font-weight: 600; flex: 1 1 120px; }
form.cart .single_add_to_cart_button {
	flex: 1 1 100%; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 999px;
	font-weight: 800; font-size: 16px; padding: 0 28px; height: 52px; cursor: pointer; transition: filter .12s;
}
form.cart .single_add_to_cart_button:hover { filter: brightness(1.06); }

/* ---- Add-to-cart confirmation banner (relocated) ---- */
.reserve-confirm { display: none; align-items: center; gap: 12px; background: color-mix(in srgb, var(--ok) 12%, var(--surface)); border: 1px solid var(--ok); border-radius: var(--radius); padding: 12px 16px; margin: 12px 0 4px; font-size: 14px; }
.reserve-confirm.show { display: flex; }
.reserve-confirm .ic { color: var(--ok); font-weight: 900; font-size: 18px; }
.reserve-confirm .rc-body { display: flex; flex-direction: column; line-height: 1.3; }
.reserve-confirm .rc-sub { color: var(--muted); font-size: 12.5px; }
.reserve-confirm .rc-link { margin-left: auto; font-weight: 800; color: var(--accent-strong); text-decoration: none; white-space: nowrap; }

/* ---- Compatibility + assurance chips (relocated) ---- */
.compat { display: flex; gap: 10px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 13px 15px; margin: 14px 0; font-size: 14px; }
.compat .ic { color: var(--ok); font-weight: 900; }
.assurance { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.assurance .chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; background: var(--surface-2); border: 1px solid var(--border); padding: 7px 12px; border-radius: 999px; }

/* ---- Editorial sections below the buy box ---- */
.acc-pdp-extras { flex-basis: 100%; max-width: 1180px; margin: 32px auto 0; padding: 0 28px; }
.acc-pdp-extras .pdp-section { border-top: 1px solid var(--border); padding: 48px 0; }
.acc-pdp-extras h2 { font-size: 22px; margin: 0 0 16px; }
.acc-pdp-extras .lead { color: var(--muted); font-size: 15.5px; max-width: 64ch; }
.acc-pdp-extras .lead :is(p):first-child { margin-top: 0; }
.feat-callouts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 16px; }
.feat-callouts .callout { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.feat-callouts .ic { font-size: 20px; margin-bottom: 7px; }
.feat-callouts h3 { font-size: 14.5px; margin: 0 0 4px; }
.feat-callouts p { color: var(--muted); font-size: 13px; margin: 0; }
.acc-pdp-extras .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.box-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.box-list li { display: flex; gap: 10px; font-size: 15px; }
.box-list .ck { color: var(--accent-strong); font-weight: 900; }
.spec-mini { display: grid; grid-template-columns: 1fr auto; margin: 0; }
.spec-mini dt { color: var(--muted); font-weight: 600; font-size: 14.5px; padding: 10px 2px; border-bottom: 1px solid var(--border); }
.spec-mini dd { margin: 0; font-weight: 700; text-align: right; font-size: 14.5px; padding: 10px 2px; border-bottom: 1px solid var(--border); }
.pdp-faq details { border-bottom: 1px solid var(--border); }
.pdp-faq summary { padding: 16px 2px; font-weight: 700; font-size: 15px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.pdp-faq summary::-webkit-details-marker { display: none; }
.pdp-faq summary::after { content: "+"; color: var(--accent-strong); font-weight: 800; }
.pdp-faq details[open] summary::after { content: "–"; }
.pdp-faq .ans { padding: 0 2px 16px; color: var(--muted); font-size: 14.5px; }

/* "Pairs well with" cross-sell */
.xsell .acc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.xsell .sub { color: var(--muted); font-size: 13.5px; margin: -6px 0 16px; }
.xsell .acc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); }
.xsell .acc-img { display: block; aspect-ratio: 1/1; background: #fff; }
.xsell .acc-img img { width: 100%; height: 100%; object-fit: contain; }
.xsell .acc-body { padding: 13px 14px 14px; display: flex; flex-direction: column; flex: 1; gap: 6px; }
.xsell .acc-body h3 { font-size: 14px; line-height: 1.3; margin: 0; }
.xsell .acc-body h3 a { color: var(--ink); text-decoration: none; }
.xsell .pr { font-family: var(--hfont); font-weight: 900; font-size: 16px; }
.xsell .acc-body .btn { margin-top: auto; }

/* ---- Header on this surface: cart pill is the CTA (accessories.md §1) ---- */
#brx-header .nav-right .btn.btn-primary { display: none; }

/* ---- Responsive ---- */
@media (max-width: 1000px) {
	#accessories-main-container { grid-template-columns: 1fr; gap: 24px; max-width: 620px; }
	#accessories-right-container { position: static; }
	.feat-callouts { grid-template-columns: repeat(2, 1fr); }
	.xsell .acc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
	#accessories-title { font-size: 23px; }
	#accessories-breadcrumbs,
	#accessories-main-container { padding-left: 18px; padding-right: 18px; }
	.acc-pdp-extras { padding: 0 18px; margin-top: 24px; }
	.acc-pdp-extras .pdp-section { padding: 32px 0; }
	.acc-pdp-extras .two-col { grid-template-columns: 1fr; gap: 24px; }
	.feat-callouts { grid-template-columns: repeat(2, 1fr); }
}
