/* GW Kadence v2, shop.css (D2): category / shop / search archives and the single product layout.
   Tokens and the product card come from style.css (D1). Pack tiles + "Your order" card: gw-denominations plugin. */

/* ==========================================================================
   1. Category / shop hero (Kadence .product-archive-title: h1 + term description, kept for SEO)
   ========================================================================== */
.woocommerce.archive .product-archive-title, .post-type-archive-product .product-archive-title, .search .search-archive-title { position: relative; isolation: isolate; overflow: hidden; min-height: 168px; display: flex; flex-direction: column; justify-content: center; background: radial-gradient(520px 260px at 92% 0, rgba(124, 92, 255, .38), transparent 70%), radial-gradient(420px 240px at 0 100%, rgba(225, 29, 72, .18), transparent 70%), var(--gw-grad-card), var(--gw-surface); border: 1px solid var(--gw-line-2); border-radius: var(--gw-r-xl); box-shadow: var(--gw-sh-2); color: var(--gw-text); padding: var(--s6) var(--s5); margin: var(--s4) 0 var(--s3); }
body:not(.gw-has-art) .product-archive-title::after { display: none; }
.product-archive-title::after { content: ""; position: absolute; z-index: -1; right: -24px; top: 50%; width: 180px; height: 180px; transform: translateY(-50%) rotate(-8deg); border-radius: 32px; background: var(--gw-cat-art, none) center / cover no-repeat; opacity: .22; box-shadow: 0 30px 60px -20px rgba(124, 92, 255, .7); pointer-events: none; }
@media (min-width: 768px) {
  .woocommerce.archive .product-archive-title, .post-type-archive-product .product-archive-title, .search .search-archive-title { min-height: 220px; padding: var(--s10) var(--s10); padding-right: 280px; }
  .product-archive-title::after { right: 48px; width: 196px; height: 196px; opacity: 1; transform: translateY(-50%) rotate(-6deg); box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 30px 60px -20px rgba(124, 92, 255, .8); }
}
.product-archive-title h1, .search-archive-title h1 { color: #fff; margin: 0 0 var(--s2); font-size: var(--fs-h1); font-weight: 800; line-height: 1.1; }
.product-archive-title .archive-description, .product-archive-title .term-description { color: var(--gw-text-2); margin: 0; font-size: var(--fs-sm); line-height: 1.6; max-width: 62ch; }
.product-archive-title .archive-description p { margin: 0 0 var(--s2); }
.product-archive-title .archive-description p.gw-cat-intro, .gw-cat-intro { font-size: 1rem; line-height: 1.6; color: var(--gw-text); margin: 0 0 var(--s3); max-width: 60ch; }
@media (min-width: 768px) { .product-archive-title .archive-description p.gw-cat-intro { font-size: 1.0625rem; } }
.product-archive-title .archive-description p.gw-cat-intro ~ * { color: var(--gw-muted); }
/* Category FAQ under the products */
.gw-cat-faq { margin: var(--s12) 0 var(--s4); max-width: 860px; }
.gw-cat-faq h2 { font-size: var(--fs-h2); margin: 0 0 var(--s4); }
.product-archive-title .archive-description p:last-child { margin-bottom: 0; }
.product-archive-title .archive-description a { color: var(--gw-link); }
.product-archive-title .kadence-breadcrumbs, .product-archive-title .kadence-breadcrumbs a { color: var(--gw-muted); margin: 0 0 var(--s2); }
.woocommerce-products-header:empty { display: none; }
.gw-cat-meta { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s2); margin: 0 0 var(--s4); padding: 0; }
.gw-cat-meta li { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; margin: 0; border-radius: var(--gw-r-pill); background: var(--gw-glass); border: 1px solid var(--gw-line); font-size: var(--fs-xs); font-weight: 600; color: var(--gw-text-2); }
.gw-cat-meta li:first-child { color: var(--gw-muted); }
.gw-cat-meta .i { width: 14px; height: 14px; color: var(--gw-ok-text); }

/* ==========================================================================
   2. Subcategory chips ("subcategories & products": WooCommerce prints them inside ul.products)
   ========================================================================== */
ul.products:has(> li.product-category) { display: flex !important; flex-wrap: wrap; gap: var(--s3); }
ul.products:has(> li.product-category) > li.product:not(.product-category) { flex: 0 0 calc(50% - 6px); max-width: calc(50% - 6px); }
@media (min-width: 768px) { ul.products:has(> li.product-category) { gap: var(--s4); } ul.products:has(> li.product-category) > li.product:not(.product-category) { flex-basis: calc(33.333% - 11px); max-width: calc(33.333% - 11px); } }
@media (min-width: 1024px) { ul.products:has(> li.product-category) > li.product:not(.product-category) { flex-basis: calc(25% - 12px); max-width: calc(25% - 12px); } }
ul.products li.product-category.product.entry { flex: none; display: block; border: 0; box-shadow: none; background: none; border-radius: 0; overflow: visible; transform: none; margin: 0 -4px 0 0 !important; padding: 0; width: auto; }
ul.products li.product-category.product.entry:hover { transform: none; box-shadow: none; }
ul.products li.product-category.product.entry::before, ul.products li.product-category.product.entry::after { display: none; }
ul.products li.product-category a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: var(--gw-r-pill); background: var(--gw-glass-2); border: 1px solid var(--gw-line-2); color: var(--gw-text); font-size: var(--fs-sm); font-weight: 600; text-decoration: none; white-space: nowrap; transition: background var(--gw-t), border-color var(--gw-t); }
ul.products li.product-category a:hover { background: var(--gw-glass-3); border-color: rgba(124, 92, 255, .55); color: #fff; }
ul.products li.product-category a:focus-visible { outline: 2px solid var(--gw-link); outline-offset: 2px; }
ul.products li.product-category img { display: none !important; } /* text chips: no extra image requests */
ul.products:has(> li.product-category) > li.product-category { order: 0; }
ul.products:has(> li.product-category)::after { content: "" !important; display: block !important; order: 1; flex: 0 0 100%; height: 0; } /* row break between chips and cards */
ul.products:has(> li.product-category) > li.product:not(.product-category) { order: 2; }
ul.products li.product-category .product-details::after, ul.products li.product-category::after { content: none !important; display: none !important; }
ul.products li.product-category .woocommerce-loop-category__title { font: inherit !important; margin: 0 !important; padding: 0 !important; color: inherit; background: none; min-height: 0; display: inline; -webkit-line-clamp: none; }
ul.products li.product-category .count { display: none; }
ul.products li.product-category .product-details, ul.products li.product-category .woocommerce-loop-image-link { display: contents; }

/* Card extras (card itself: style.css) */
.gw-card-ship { order: 2; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--gw-link); }
.gw-card-ship::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gw-link); box-shadow: 0 0 0 3px rgba(169, 155, 255, .2); }

/* ==========================================================================
   3. Toolbar (result count + sort) and pagination (URLs /store/page/N/ unchanged)
   ========================================================================== */
.kadence-shop-top-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin: 0 0 var(--s4); padding: 8px 8px 8px var(--s4); background: var(--gw-glass); border: 1px solid var(--gw-line); border-radius: var(--gw-r); }
.kadence-shop-top-row .kadence-shop-top-item { margin: 0 !important; }
.woocommerce-result-count { font-size: var(--fs-sm); color: var(--gw-muted); margin: 0 !important; }
.woocommerce-ordering { margin: 0 !important; }
.woocommerce-ordering select { min-height: 44px; height: 44px; padding: 0 40px 0 14px; border-radius: var(--gw-r-sm); font-size: var(--fs-sm); font-weight: 600; color: var(--gw-text); background-color: var(--gw-surface-2); }
.woocommerce-pagination ul.page-numbers, nav.woocommerce-pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s2); border: 0 !important; margin-top: var(--s8); }
.woocommerce-pagination ul li { border: 0 !important; overflow: visible !important; }
.woocommerce-pagination .page-numbers a, .woocommerce-pagination .page-numbers span { min-width: 44px; height: 44px; display: grid; place-items: center; padding: 0 var(--s3); border-radius: var(--gw-r-sm); background: var(--gw-glass-2); border: 1px solid var(--gw-line-2); text-decoration: none; font-weight: 700; color: var(--gw-text); }
.woocommerce-pagination .page-numbers a:hover { background: var(--gw-glass-3); border-color: rgba(124, 92, 255, .55); color: #fff; }
.woocommerce-pagination .page-numbers .current { background: var(--gw-grad-brand); color: #fff; border-color: transparent; box-shadow: var(--gw-sh-glow); }
@media (max-width: 767px) {
  .kadence-shop-top-row { flex-wrap: nowrap !important; padding-left: var(--s3); }
  .kadence-shop-top-row .kadence-shop-top-item { width: auto !important; }
  .woocommerce-result-count { font-size: var(--fs-xs); }
  .woocommerce-ordering select { max-width: 180px; }
  ul.products li.product-category a { min-height: 36px; padding: 0 12px; font-size: var(--fs-xs); }
  ul.products:has(> li.product-category) { row-gap: var(--s2); }
}

/* ==========================================================================
   4. Search results + empty state
   ========================================================================== */
.search-results .search-archive-title, .search .page-title { margin-top: var(--s4); }
.woocommerce.search .product-archive-title, .search .search-archive-title { min-height: 0 !important; padding: var(--s6) var(--s5) !important; }
.search .product-archive-title h1, .search .search-archive-title h1 { font-size: var(--fs-h2); margin: 0; }
.woocommerce-no-products-found .woocommerce-info, .woocommerce-info.woocommerce-no-products-found { text-align: center; }
.gw-empty { margin: var(--s6) 0 0; padding: var(--s5); background: var(--gw-glass); border: 1px solid var(--gw-line); border-radius: var(--gw-r-xl); }
.gw-empty h2 { font-size: var(--fs-h3); margin: 0; }
.gw-empty h3 { font-size: 1rem; margin: var(--s6) 0 var(--s3); color: var(--gw-text); }
.gw-empty .chips { flex-wrap: wrap !important; }
@media (min-width: 768px) { .gw-empty { padding: var(--s8); } }

/* ==========================================================================
   5. Single product
   Mobile: [88px art | title, chips, price] then tiles, ID, short description, tabs; the order card is a bottom bar.
   Desktop (>=1024): [art | title, chips, price] + content on the left, sticky "Your order" card on the right.
   .summary is display:contents, so its children sit in the product grid.
   ========================================================================== */
.single-product .product-title.product-above { margin-bottom: 0; }
.single-product .product-title.product-above .kadence-breadcrumbs { margin-top: var(--s3); }
.single-product div.product.entry { display: grid; grid-template-columns: 88px minmax(0, 1fr); column-gap: var(--s4); row-gap: 0; align-items: start; background: none !important; box-shadow: none !important; padding: 0 !important; }
.single-product div.product .woocommerce-product-gallery { grid-column: 1; grid-row: 1 / span 3; width: 88px !important; margin: 0 !important; float: none; opacity: 1 !important; }
.single-product div.product .woocommerce-product-gallery__wrapper { margin: 0; }
.single-product div.product .woocommerce-product-gallery img { display: block; width: 100%; border-radius: var(--gw-r); background: var(--gw-surface-2); box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 18px 40px -14px rgba(124, 92, 255, .75); }
.single-product div.product.gw-digital .woocommerce-product-gallery__trigger, .single-product div.product.gw-digital .flex-control-nav, .single-product div.product .onsale { display: none !important; }
.single-product div.product .summary { display: contents; }
.single-product div.product .summary > * { grid-column: 1 / -1; order: 5; }
.single-product div.product .summary > .product_title { grid-column: 2; grid-row: 1; order: 0; align-self: end; font-size: clamp(1.25rem, 1.05rem + 1.1vw, 2.125rem); font-weight: 800; line-height: 1.15; margin: 0 0 var(--s2); color: var(--gw-text); }
.single-product div.product .summary > .gw-pchips { grid-column: 2; grid-row: 2; order: 0; }
.single-product div.product .summary > .price { grid-column: 2; grid-row: 3; order: 0; font-family: var(--font-head); font-weight: 800; color: var(--gw-text); font-size: 1.125rem; margin: var(--s2) 0 0; }
.single-product div.product .summary > .price:not(:has(del)) > [aria-hidden="true"] ~ [aria-hidden="true"] { display: none; } /* lowest of a range; a sale shows both */
ul.products li.product .price:has(del) > ins { display: inline !important; } /* sale price on cards (the range rule must not hide it) */
.single-product div.product.product-type-variable .summary > .price::before { content: "from "; font-family: var(--font-body); font-weight: 500; font-size: 13px; color: var(--gw-muted); }
.single-product div.product .summary > .price del { color: var(--gw-subtle); font-size: .8em; opacity: 1; } /* B11: WooCommerce dims del to .5 (2.5:1) */
.single-product div.product .summary > .price ins { text-decoration: none; color: var(--gw-gold); }
.single-product div.product .summary > form.cart, .single-product div.product .summary > .gw-order { order: 2; }
.single-product div.product .summary > .woocommerce-product-details__short-description { order: 3; }
.single-product div.product .summary > .gw-specs { order: 4; }
.single-product div.product .summary > .stock.out-of-stock { order: 1; }
.single-product div.product .product_meta { display: none; }
.single-product div.product .woocommerce-tabs, .single-product div.product .related, .single-product div.product .upsells { grid-column: 1 / -1; order: 6; }

/* Highlight chips */
.gw-pchips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.gw-pchip { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 3px 10px; margin: 0; border-radius: var(--gw-r-pill); background: var(--gw-glass-2); border: 1px solid var(--gw-line); color: var(--gw-text-2); font-size: 12px; font-weight: 600; line-height: 1.25; }
.gw-pchip .i { width: 14px; height: 14px; flex: none; }
.gw-pchip--ok { color: var(--gw-ok-text); background: var(--gw-ok-bg); border-color: rgba(34, 197, 94, .25); }
.gw-pchip--warn { color: var(--gw-warn-text); background: var(--gw-warn-bg); border-color: rgba(255, 176, 32, .28); }
.gw-pchip--gold { color: var(--gw-gold); }
.gw-pchip--brand { color: var(--gw-link); background: rgba(124, 92, 255, .12); border-color: rgba(124, 92, 255, .3); }
@media (max-width: 599px) { .gw-pchip:nth-child(n+4) { display: none; } } /* first three above the fold on phones; all are repeated in the tabs */

/* The buy form: one glass panel (tiles, ID fields, help) */
.single-product div.product form.cart { position: relative; margin: var(--s5) 0 var(--s4); padding: var(--s4); background: var(--gw-grad-card), var(--gw-surface); border: 1px solid var(--gw-line); border-radius: var(--gw-r-xl); box-shadow: var(--gw-sh-2); }
@media (min-width: 768px) { .single-product div.product form.cart { padding: var(--s6); } }
.single-product div.product form.cart .variations { margin: 0; }
.single-product div.product form.cart .single_variation_wrap .woocommerce-variation-add-to-cart, .single-product div.product form.cart:not(.variations_form) { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--s2) var(--s3); }
.single-product div.product form.cart .single_variation_wrap { margin: 0; }
.single-product div.product form.cart .single_variation:empty, .single-product div.product form.cart .woocommerce-variation:empty { display: none; }
.single-product div.product form.cart .wcpa_form_outer { flex: 1 1 100%; width: 100%; margin: 0; }
.single-product div.product form.cart .single_add_to_cart_button { min-height: 56px; flex: 1 1 200px; font-size: 1.0625rem; }
.single-product div.product form.cart .gw-addonly--main { min-height: 56px; flex: 1 1 160px; }
.single-product div.product.gw-digital form.cart .quantity { display: none !important; } /* digital: one per order (quantity still posts 1) */
.single-product div.product form.cart .quantity { margin: 0 !important; }
.single-product div.product form.cart .quantity .qty { width: 96px; min-height: 56px; text-align: center; font-weight: 700; font-size: 1.0625rem; }
.single-product div.product form.cart label, .single-product div.product form.cart .wcpa_form_outer label { color: var(--gw-text); font-weight: 600; font-size: var(--fs-sm); }
.single-product div.product form.cart .wcpa_form_outer input[type=text], .single-product div.product form.cart .wcpa_form_outer input[type=number], .single-product div.product form.cart .wcpa_form_outer textarea { width: 100%; }
.single-product div.product form.cart .wcpa_form_outer .wcpa_field_desc, .single-product div.product form.cart .wcpa_form_outer [class*=description] { color: var(--gw-muted); font-size: var(--fs-xs); }
.single-product div.product form.cart .wcpa_form_outer .required_ast, .single-product div.product form.cart .wcpa_form_outer .wcpa_required_ast { color: var(--gw-cta); }
/* WCPA fields, compact (B12). Its own CSS assumes a light theme, and Portallio's frontend.css forces
   ".variations_form label { color:#1a202c; font-size:15px; display:inline-block; margin-bottom:8px } !important"
   (black labels on the dark card), so the label rules below are !important with a higher specificity. */
.single-product .wcpa_form_outer .wcpa_section_body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.single-product .wcpa_form_outer .wcpa_row { margin: 0 !important; padding: 0; min-width: 0; }
.single-product .wcpa_form_outer .wcpa_field_wrap { width: 100%; max-width: none; flex: 1 1 100%; margin: 0 !important; padding: 0 !important; }
/* B13 layout (field order from b10-wcpa-unified.php): row 1 Player / User ID + In-game name, row 2 Server / Zone ID +
   Account region, two columns from 768 px; the warning and any other row span the full width; stacked on phones. */
@media (min-width: 768px) {
  .single-product .wcpa_form_outer .wcpa_section_body:has(> .wcpa_row > .gw-pid):has(> .wcpa_row > .gw-region) { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; align-items: start; }
  .single-product .wcpa_form_outer .wcpa_section_body > .wcpa_row { grid-column: 1 / -1; }
  .single-product .wcpa_form_outer .wcpa_section_body:has(> .wcpa_row > .gw-region) > .wcpa_row:is(:has(> .gw-pid), :has(> .gw-pname), :has(> .gw-zone), :has(> .gw-region)) { grid-column: auto; }
  .single-product .wcpa_form_outer .wcpa_section_body:has(> .wcpa_row > .gw-region) .gw-pname input.wcpa_field { min-height: 50px; } /* same height as the ID field beside it */
}
/* Account region select: dark field with its own chevron. */
.single-product .wcpa_form_outer select.wcpa_field { -webkit-appearance: none; appearance: none; padding-right: 40px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23AEB6D6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; }
.single-product .wcpa_form_outer select.wcpa_field:focus { border-color: var(--gw-link); box-shadow: var(--gw-ring); outline: none; }
.single-product .wcpa_form_outer select.wcpa_field option { color: #EEF1FA; background: #141A33; }
.single-product div.product form.cart .wcpa_form_outer label.wcpa_field_label { display: block !important; margin: 0 0 5px !important; padding: 0; color: var(--gw-text) !important; font: 700 var(--fs-xs, .8125rem)/1.3 var(--font-body) !important; letter-spacing: .01em; }
.single-product div.product form.cart .wcpa_form_outer label.wcpa_field_label .wcpa_required_ast { color: var(--gw-cta-text, #FF8BA4); margin-left: 2px; }
.single-product .wcpa_form_outer input.wcpa_field, .single-product .wcpa_form_outer textarea.wcpa_field, .single-product .wcpa_form_outer select.wcpa_field { width: 100%; min-height: 46px; margin: 0; color: var(--gw-text); background: var(--gw-surface-2); border: 1px solid var(--gw-line-2); border-radius: var(--gw-r-sm); font-size: 16px; padding: 0 12px; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .25); }
.single-product .wcpa_form_outer .gw-pid input.wcpa_field { min-height: 50px; font-family: var(--font-head); font-size: 1.0625rem; font-weight: 700; letter-spacing: .02em; border-color: rgba(124, 92, 255, .45); }
.single-product .wcpa_form_outer input.wcpa_field:focus { border-color: var(--gw-link); box-shadow: var(--gw-ring); outline: none; }
.single-product .wcpa_form_outer input.wcpa_field::placeholder { color: var(--gw-subtle); font-weight: 400; letter-spacing: 0; font-family: var(--font-body); font-size: 15px; }
.single-product .wcpa_form_outer .wcpa_field_desc { margin: 4px 0 0; color: var(--gw-muted); font-size: 12px; line-height: 1.4; }
/* Errors: WCPA prints <div class="wcpa_field_bottom"><div class="wcpa_field_error"><p>…</p></div></div> */
.single-product .wcpa_form_outer .wcpa_field_bottom { display: block; margin: 0; }
.single-product .wcpa_form_outer .wcpa_field_error p, .single-product .wcpa_form_outer .wcpa_error_msg { display: flex; align-items: center; gap: 6px; margin: 5px 0 0; color: var(--gw-danger-text) !important; font-size: 12.5px; font-weight: 700; line-height: 1.35; }
.single-product .wcpa_form_outer .wcpa_field_error p::before { content: "!"; flex: none; width: 16px; height: 16px; display: grid; place-items: center; border-radius: 50%; background: var(--gw-danger-text); color: #1A0006; font: 800 11px/1 var(--font-body); }
.single-product .wcpa_form_outer .wcpa_field_wrap:has(.wcpa_field_error p) input.wcpa_field, .single-product .wcpa_form_outer .wcpa_has_error input.wcpa_field, .single-product .wcpa_form_outer input.wcpa_field[aria-invalid=true] { border-color: var(--gw-danger-text); background: var(--gw-danger-bg); }
.single-product .wcpa_form_outer .gw-warn, .single-product .wcpa_form_outer .gw-warn p { display: block; margin: 0; padding: 0; background: none; border: 0; }
.single-product .wcpa_form_outer .gw-warn > .wcpa_field { display: flex; gap: 8px; align-items: center; padding: 8px 12px; border-radius: var(--gw-r-sm); background: var(--gw-warn-bg); border: 1px solid rgba(255, 176, 32, .28); color: var(--gw-warn-text); font-size: 12px; font-weight: 600; line-height: 1.4; }
.single-product .wcpa_form_outer .gw-warn > .wcpa_field::before { content: "!"; flex: none; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: var(--gw-gold); color: #1A1300; font: 800 11px/1 var(--font-body); }
.single-product .wcpa_form_outer .gw-warn > .wcpa_field > p { color: inherit; margin: 0 !important; }
.single-product div.product form.cart .wcpa_form_outer .gw-warn > p.wcpa_field { margin: 0 !important; }
.single-product div.product form.cart .wcpa_form_outer .wcpa_section, .single-product div.product form.cart .wcpa_form_outer .wcpa_section_body { margin: 0 !important; padding: 0 !important; border: 0; }
.single-product div.product form.cart .wcpa_form_outer { margin-top: var(--s1, 4px) !important; }
.single-product div.product form.cart .gw-bn { display: none; } /* v1 Bangla note (old forms), English-only site */
.single-product .single_variation .woocommerce-variation-price, .single-product .single_variation .woocommerce-variation-description, .single-product .single_variation .woocommerce-variation-availability .in-stock { display: none !important; }
.single-product .single_variation .stock.out-of-stock, .single-product .single_variation .woocommerce-variation-availability .available-on-backorder, .single-product div.product .stock.out-of-stock { margin: 0 0 var(--s3); font-weight: 700; color: var(--gw-danger-text); }
.single-product div.product .stock.in-stock { color: var(--gw-ok-text); font-weight: 600; margin: 0; flex: 1 1 100%; }

/* "Where do I find my ID?" */
/* B12: a slim text disclosure (no box) until opened */
.gw-idhelp { flex: 1 1 100%; margin: -4px 0 0; border: 0; background: none; border-radius: var(--gw-r); }
.gw-idhelp summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0; cursor: pointer; font-size: var(--fs-xs); font-weight: 700; color: var(--gw-link); }
.gw-idhelp summary:focus-visible { outline: 2px solid var(--gw-link); outline-offset: 2px; border-radius: 6px; }
.gw-idhelp summary::-webkit-details-marker { display: none; }
.gw-idhelp summary::before { content: "?"; width: 18px; height: 18px; flex: none; display: grid; place-items: center; border-radius: 50%; background: rgba(124, 92, 255, .18); color: var(--gw-link); font: 800 11px/1 var(--font-body); }
.gw-idhelp summary::after { content: ""; width: 6px; height: 6px; margin: -3px 0 0 2px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform var(--gw-t); }
.gw-idhelp[open] summary::after { transform: rotate(-135deg); margin-top: 3px; }
.gw-idhelp__body { margin: 2px 0 0; padding: var(--s3) var(--s4); font-size: var(--fs-sm); color: var(--gw-text-2); line-height: 1.6; background: var(--gw-glass); border: 1px solid var(--gw-line); border-radius: var(--gw-r); }
.gw-idhelp__body p { margin: 0 0 var(--s2); }
.gw-idhelp__body img { max-width: 100%; border-radius: var(--gw-r-sm); }

/* Short description (owner content) as a quiet note under the buy form */
.single-product div.product .woocommerce-product-details__short-description { margin: 0 0 var(--s4); padding: var(--s4); font-size: var(--fs-sm); line-height: 1.6; color: var(--gw-text-2); background: var(--gw-glass); border: 1px solid var(--gw-line); border-radius: var(--gw-r-lg); }
.single-product div.product .woocommerce-product-details__short-description > :last-child { margin-bottom: 0; }
.single-product div.product .woocommerce-product-details__short-description strong, .single-product div.product .woocommerce-product-details__short-description b { color: var(--gw-text); }
.single-product div.product .woocommerce-product-details__short-description ul { margin: var(--s2) 0 0; padding-left: 1.2em; }

/* Key specs (physical) */
.gw-specs { margin: 0 0 var(--s4); padding: var(--s4); background: var(--gw-grad-card), var(--gw-surface); border: 1px solid var(--gw-line); border-radius: var(--gw-r-xl); }
@media (min-width: 768px) { .gw-specs { padding: var(--s6); } }
.gw-specs h2 { font-size: var(--fs-h3); margin: 0 0 var(--s3); }
.gw-specs table, .single-product .woocommerce-tabs table.shop_attributes { width: 100%; margin: 0; border: 0; border-collapse: collapse; font-size: var(--fs-sm); }
.gw-specs th, .gw-specs td, .single-product table.shop_attributes th, .single-product table.shop_attributes td { padding: 10px 0 !important; border: 0 !important; border-bottom: 1px solid var(--gw-line) !important; background: none !important; text-align: left; vertical-align: top; font-style: normal; }
.gw-specs th { width: 40%; color: var(--gw-muted); font-weight: 600; }
.gw-specs td { color: var(--gw-text); font-weight: 600; }
.gw-specs td p { margin: 0; }
.gw-specs tr:last-child th, .gw-specs tr:last-child td { border-bottom: 0 !important; }

/* Physical products: a real gallery (main image + thumbnails) instead of the 88 px icon */
.single-product div.product.gw-physical .woocommerce-product-gallery { grid-column: 1 / -1; grid-row: auto; order: -1; width: 100% !important; margin: 0 0 var(--s4) !important; }
@media (max-width: 1023px) { .single-product div.product.gw-physical .woocommerce-product-gallery { width: min(100%, 340px) !important; justify-self: center; } }
.single-product div.product.gw-physical .summary > .product_title, .single-product div.product.gw-physical .summary > .gw-pchips, .single-product div.product.gw-physical .summary > .price { grid-column: 1 / -1; grid-row: auto; order: 0; }
/* No layout shift while WooCommerce's slider starts: only the first image before init, and room for the thumbnails */
.single-product div.product .woocommerce-product-gallery > .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:nth-child(n+2) { display: none; }
@media (min-width: 1024px) { .single-product div.product.gw-physical .woocommerce-product-gallery:has(.woocommerce-product-gallery__image:nth-child(2)) { position: relative; padding-bottom: 72px; } }
@media (max-width: 1023px) { .single-product div.product.gw-physical .flex-control-thumbs { display: none !important; } } /* phones: swipe the slider; no strip popping in (CLS) */
.single-product div.product.gw-physical .woocommerce-product-gallery__image { aspect-ratio: 1; }
.single-product div.product.gw-physical .woocommerce-product-gallery__image { border-radius: var(--gw-r-xl); overflow: hidden; background: radial-gradient(80% 80% at 50% 0, rgba(124, 92, 255, .25), transparent 70%), var(--gw-surface-2); }
.single-product div.product.gw-physical .woocommerce-product-gallery img { border-radius: 0; box-shadow: none; background: transparent; }
.single-product div.product.gw-physical .flex-control-thumbs { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: var(--s2); height: 64px; margin: 0 !important; padding: 0; list-style: none; overflow: auto hidden; }
.single-product div.product.gw-physical .flex-control-thumbs img { width: 64px; height: 64px; aspect-ratio: 1; object-fit: cover; }
.single-product div.product.gw-physical .flex-control-thumbs li { flex: 0 0 64px; width: 64px !important; margin: 0 !important; float: none !important; }
.single-product div.product.gw-physical .flex-control-thumbs img { border-radius: var(--gw-r-sm); opacity: .6; border: 1px solid var(--gw-line-2); cursor: pointer; }
.single-product div.product.gw-physical .flex-control-thumbs img.flex-active, .single-product div.product.gw-physical .flex-control-thumbs img:hover { opacity: 1; border-color: var(--gw-glow); }
.single-product div.product.gw-physical .woocommerce-product-gallery__trigger { z-index: 3; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; background: rgba(10, 14, 26, .7) !important; border: 1px solid var(--gw-line-2); }
.single-product div.product.gw-physical .summary > .price { font-size: 1.5rem; }
/* Physical simple product: the form only holds the quantity (the buttons are in the order card / bar) */
.single-product div.product.gw-physical form.cart:not(.variations_form) { background: none; border: 0; box-shadow: none; padding: 0; margin: var(--s3) 0 var(--s4); align-items: center; }
.single-product div.product.gw-physical form.cart:not(.variations_form)::before { content: "Quantity"; font-size: var(--fs-sm); font-weight: 700; color: var(--gw-text); }
.single-product div.product.gw-physical form.cart:not(.variations_form):not(.gw-js) .single_add_to_cart_button { flex: 1 1 200px; }
.single-product div.product.gw-physical form.variations_form .quantity { display: flex !important; align-items: center; gap: var(--s3); flex: 1 1 100%; }
.single-product div.product.gw-physical form.variations_form .quantity::before { content: "Quantity"; font-size: var(--fs-sm); font-weight: 700; color: var(--gw-text); }

@media (min-width: 1024px) {
  .single-product div.product.entry { grid-template-columns: 136px minmax(0, 1fr) 360px; column-gap: var(--s8); }
  .single-product div.product .woocommerce-product-gallery { width: 136px !important; }
  .single-product div.product .summary > * { grid-column: 1 / 3; }
  .single-product div.product .summary > .product_title, .single-product div.product .summary > .gw-pchips, .single-product div.product .summary > .price { grid-column: 2; }
  .single-product div.product .summary > .product_title { margin-top: var(--s2); }
  /* B12: the card's sticky range is its grid area, i.e. the purchase section only: up-sells / related print after
     the product grid (inc/d2.php), so the card stops at the end of the tabs and never meets later sections. */
  .single-product div.product.entry { isolation: isolate; }
  .single-product div.product .summary > .gw-order { grid-column: 3; grid-row: 1 / span 40; align-self: start; position: sticky; top: calc(var(--gw-header-h, 76px) + 16px); z-index: 2; margin: var(--s2) 0 0; }
  .single-product .product + .related, .single-product .product + .upsells, .single-product .product ~ .related { position: relative; z-index: 1; }
  .single-product div.product .woocommerce-tabs { grid-column: 1 / 3; }
  .single-product div.product .related, .single-product div.product .upsells { grid-column: 1 / -1; }
  .single-product div.product .denom-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* Physical: big gallery left, details right of it, card on the far right */
  .single-product div.product.gw-physical.entry { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) 340px; }
  .single-product div.product.gw-physical .woocommerce-product-gallery { grid-column: 1; grid-row: 1 / span 4; order: 0; width: 100% !important; margin: var(--s2) 0 var(--s4) !important; }
  .single-product div.product.gw-physical .summary > .product_title { grid-column: 2; grid-row: 1; }
  .single-product div.product.gw-physical .summary > .gw-pchips { grid-column: 2; grid-row: 2; }
  .single-product div.product.gw-physical .summary > .price { grid-column: 2; grid-row: 3; }
  .single-product div.product.gw-physical .summary > .woocommerce-product-details__short-description { grid-column: 2; grid-row: 4; margin-top: var(--s4); }
  .single-product div.product.gw-physical .summary > form.cart { grid-column: 1 / 3; }
}
@media (min-width: 1280px) { .single-product div.product .denom-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Tabs: one glass card, labels as a segmented control.
   B12: "div.product" in every selector, so these beat Kadence's ".woocommerce div.product .woocommerce-tabs …" rules
   (they set the panel padding to 0 and the tab links to inline-block, which pushed the label to the top of the pill). */
.single-product div.product .woocommerce-tabs { margin-top: var(--s6); padding: 0; }
.single-product div.product .woocommerce-tabs ul.tabs { display: flex; gap: 4px; padding: 4px !important; margin: 0 0 var(--s3) !important; background: var(--gw-glass); border: 1px solid var(--gw-line) !important; border-radius: var(--gw-r); width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; overflow-y: hidden; }
.single-product div.product .woocommerce-tabs ul.tabs::-webkit-scrollbar { display: none; }
.single-product div.product .woocommerce-tabs ul.tabs::before, .single-product div.product .woocommerce-tabs ul.tabs li::before, .single-product div.product .woocommerce-tabs ul.tabs li::after { display: none !important; }
.single-product div.product .woocommerce-tabs ul.tabs li { flex: none; display: block; border: 0 !important; background: none !important; margin: 0 !important; padding: 0 !important; border-radius: var(--gw-r-sm) !important; }
.single-product div.product .woocommerce-tabs ul.tabs li a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px !important; line-height: 1.2 !important; border: 0 !important; margin: 0 !important; font-size: var(--fs-sm); font-weight: 700; color: var(--gw-muted) !important; border-radius: var(--gw-r-sm); text-decoration: none; white-space: nowrap; transition: background var(--gw-t), color var(--gw-t); }
.single-product div.product .woocommerce-tabs ul.tabs li a:hover { color: var(--gw-text) !important; background: var(--gw-glass-2); }
.single-product div.product .woocommerce-tabs ul.tabs li a:focus-visible { outline: 2px solid var(--gw-link); outline-offset: -2px; }
.single-product div.product .woocommerce-tabs ul.tabs li.active a { background: var(--gw-text); color: var(--gw-bg) !important; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .6); }
.single-product div.product .woocommerce-tabs .panel { margin: 0 !important; background: var(--gw-grad-card), var(--gw-surface); border: 1px solid var(--gw-line); border-radius: var(--gw-r-xl); padding: var(--s5) !important; font-size: var(--fs-sm); line-height: 1.7; color: var(--gw-text-2); overflow-wrap: anywhere; }
@media (min-width: 768px) { .single-product div.product .woocommerce-tabs .panel { padding: var(--s8) var(--s10, 40px) !important; } }
.single-product div.product .woocommerce-tabs .panel > :first-child, .single-product div.product .woocommerce-tabs .panel > h2:first-child + * { margin-top: 0 !important; }
.single-product div.product .woocommerce-tabs .panel > :last-child { margin-bottom: 0 !important; }
.single-product div.product .woocommerce-tabs .panel p { margin: 0 0 var(--s3); }
.single-product div.product .woocommerce-tabs .panel img { max-width: 100%; height: auto; border-radius: var(--gw-r-sm); }
.single-product div.product .woocommerce-tabs .panel table { display: block; max-width: 100%; overflow-x: auto; }
.single-product div.product .woocommerce-tabs .panel .gw-acc { margin: 0; }
.single-product .woocommerce-tabs .panel h2 { font-size: 1.25rem; margin: var(--s6) 0 var(--s2); }
.single-product .woocommerce-tabs .panel h3, .single-product .woocommerce-tabs .panel h4, .single-product .woocommerce-tabs .panel h5 { font-size: 1.0625rem; margin: var(--s5) 0 var(--s2); }
.single-product .woocommerce-tabs .panel > h2:first-child { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* the tab label already says it */
.single-product .woocommerce-tabs .panel > h2:first-child + * { margin-top: 0; }
.single-product .woocommerce-tabs .panel strong, .single-product .woocommerce-tabs .panel b { color: var(--gw-text); }
.single-product .woocommerce-tabs .panel blockquote { margin: var(--s4) 0; padding: var(--s3) var(--s4); border-left: 3px solid var(--gw-glow); background: var(--gw-glass); border-radius: 0 var(--gw-r-sm) var(--gw-r-sm) 0; }
.single-product .woocommerce-tabs .panel blockquote p { margin: 4px 0; }
.single-product .woocommerce-tabs .panel ol, .single-product .woocommerce-tabs .panel ul { padding-left: 1.3em; }
ol.gw-steps { list-style: none; counter-reset: gw-step; padding: 0 !important; margin: var(--s2) 0 var(--s4); display: grid; gap: var(--s3); }
ol.gw-steps li { counter-increment: gw-step; position: relative; padding: 2px 0 0 44px; min-height: 32px; margin: 0; }
ol.gw-steps li::before { content: counter(gw-step); position: absolute; left: 0; top: 0; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: var(--gw-grad-brand); color: #fff; font: 800 14px/1 var(--font-head); box-shadow: 0 8px 18px -8px rgba(124, 92, 255, .8); }
.single-product #reviews .comment-form-rating .stars a { color: var(--gw-gold); }

/* Related products: a swipe rail on phones, a row on desktop */
.single-product .related > h2, .single-product .upsells > h2 { font-size: var(--fs-h2); margin: var(--s10) 0 var(--s4); }
@media (max-width: 899px) {
  .single-product .related ul.products, .single-product .upsells ul.products { display: grid !important; grid-auto-flow: column; grid-template-columns: none !important; grid-auto-columns: 44%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(var(--gw-gutter) * -1); padding: 6px var(--gw-gutter) var(--s4); scroll-padding: 0 var(--gw-gutter); }
  .single-product .related ul.products::-webkit-scrollbar { display: none; }
  .single-product .related ul.products li.product { scroll-snap-align: start; }
}
@media (min-width: 900px) { .single-product .related ul.products.grid-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
