/* Anihra commerce + interior pages. Extends storefront.css; class names follow
   the homepage artifact so money pages read as one system. */

/* Page head / prose */
.page-head { display: grid; gap: 14px; padding-block: clamp(40px, 5vw, 64px) 0; }
.page-head .lede { max-width: 62ch; }
.prose { display: grid; gap: 18px; max-width: 74ch; }
.prose h2 { margin-top: 12px; }
.prose h3 { margin-top: 8px; }
.prose p { color: var(--muted); font-size: 16.5px; line-height: 1.75; }
.prose ul, .prose ol { color: var(--muted); padding-left: 22px; display: grid; gap: 8px; }
.prose a { font-weight: 700; }
.prose blockquote {
    border-left: 2px solid var(--gold);
    margin: 0;
    padding: 4px 0 4px 18px;
    color: var(--charcoal);
    font: 500 18px/1.6 var(--f-display);
}
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.info-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 24px;
    display: grid;
    gap: 10px;
    align-content: start;
}
.info-card h3 a { color: inherit; text-decoration: none; }
.info-card p { font-size: 15px; color: var(--muted); }
.info-card .ic {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid var(--gold);
    display: grid;
    place-items: center;
    color: var(--pine);
}
.info-card .ic svg { width: 20px; height: 20px; }

/* Breadcrumb */
.woocommerce-breadcrumb {
    font-size: 13.5px;
    color: var(--muted);
    padding-block: 18px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.woocommerce-breadcrumb a { color: var(--muted); text-decoration: none; }
.woocommerce-breadcrumb a:hover { color: var(--pine); }
/* Tap-target gate: breadcrumb links are inline text, so give the boxes a real
   height (24px+), not just the 18px the 13.5px font measures. */
.woocommerce-breadcrumb a { display: inline-block; padding: 3px 0; }
/* Woo's lightbox trigger is an 18x22 glyph by default — well under the 24px
   minimum. Anchor a 44px box in the same top-left spot. */
.woocommerce-product-gallery__trigger {
    width: 44px; height: 44px; display: grid; place-items: center;
    position: absolute; top: 0; left: 0; z-index: 9;
}

/* Shop toolbar */
.shop-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.shop-bar .result-count { font-size: 14px; font-weight: 600; color: var(--muted); }
/* woocommerce.css loads after this file with .woocommerce .woocommerce-ordering
   select { min-height: 44px }, so the shop toolbar needs a higher-specificity
   selector to keep the 48px tap target and the intended pill styling. The scope
   is exactly the shop-bar toolbar this template renders. */
.woocommerce .shop-bar .woocommerce-ordering select,
.woocommerce-ordering select,
.shop-bar select {
    min-height: 48px;
    border-radius: 999px;
    border: 1.5px solid var(--line);
    background: var(--white);
    color: var(--charcoal);
    font: 600 14px var(--f-body);
    padding: 0 18px;
}
.woofilters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.woofilters a {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1.5px solid var(--line);
    background: var(--white);
    color: var(--charcoal);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}
.woofilters a:hover { border-color: var(--pine); color: var(--pine); }
.woofilters a[aria-current="true"] { background: var(--pine); border-color: var(--pine); color: var(--white); }

/* Empty shop state */
.shop-empty { display: grid; gap: 16px; justify-items: start; padding-block: 8px; }

/* Notices */
.woocommerce-notices-wrapper { padding-top: 16px; }
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    background: var(--white);
    border: 1px solid var(--line);
    border-left: 4px solid var(--pine);
    border-radius: var(--r-sm);
    padding: 14px 18px;
    margin: 0 0 12px;
    font-size: 15px;
    color: var(--charcoal);
    list-style: none;
}
.woocommerce-error { border-left-color: var(--anihra-error-fg); }
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before { display: none; }
.woocommerce-message .btn,
.woocommerce-info .btn { margin-left: auto; }

/* Product detail */
.pdp { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
.pdp-media { display: grid; gap: 12px; min-width: 0; }
.pdp-info { display: grid; gap: 18px; min-width: 0; }
.pdp-info .price strong { font-size: 30px; }
/* woocommerce.css (loaded later) parks WC buttons at 44px, under the 48px tap
   gate; scoped rules out-rank it for the PDP buy box (house .btn contract). */
.pdp-info form.cart .single_add_to_cart_button {
    min-height: 48px; border-radius: 999px; padding: 0 24px;
    font: 700 14px var(--f-body); letter-spacing: .06em; text-transform: uppercase;
}
.pdp-info form.cart .quantity input.qty { min-height: 48px; }
.pdp-title { font-size: clamp(28px, 3.2vw, 40px); }
.stock { font-size: 14px; font-weight: 700; color: var(--pine); }
.out-of-stock { color: var(--anihra-error-fg); }
.woocommerce-product-details__short-description { color: var(--muted); font-size: 16px; }
/* WC core scopes gallery thumbs under `.woocommerce div.product`, an ancestor this
   theme's single-product.php never renders, so core's thumb rules never match.
   Re-scope the thumb layout and active state here (theme tokens only). */
.woocommerce .pdp-media .flex-control-thumbs { margin: 0; padding: 0; list-style: none; }
.woocommerce .pdp-media .flex-control-thumbs li {
    width: 25%; float: left; margin: 0; list-style: none; position: relative;
}
.woocommerce .pdp-media .woocommerce-product-gallery--columns-4
.flex-control-thumbs li:nth-child(4n+1) { clear: left; }
.woocommerce .pdp-media .flex-control-thumbs img {
    opacity: .55; max-width: 100%; height: auto; border-radius: var(--r-sm);
}
.woocommerce .pdp-media .flex-control-thumbs img:hover,
.woocommerce .pdp-media .flex-control-thumbs img.flex-active {
    opacity: 1; box-shadow: 0 0 0 2px var(--gold);
}
.pdp-qtyrow { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.quantity { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: var(--white); }
.quantity input.qty {
    width: 64px;
    min-height: 46px;
    border: 0;
    background: transparent;
    text-align: center;
    font: 700 16px var(--f-body);
    color: var(--charcoal);
    border-radius: 999px;
}
.woocommerce-tabs { margin-top: clamp(32px, 4vw, 56px); display: grid; gap: 20px; }
.woocommerce-tabs ul.tabs {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--line);
}
.woocommerce-tabs ul.tabs li { margin: 0; }
.woocommerce-tabs ul.tabs li a {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    padding: 0 18px;
    font: 700 14px var(--f-body);
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    border-radius: var(--r-sm) var(--r-sm) 0 0;
}
.woocommerce-tabs ul.tabs li.active a { color: var(--pine); box-shadow: inset 0 -3px 0 var(--gold); }
.woocommerce-tabs .panel { background: transparent; border: 0; color: var(--charcoal); padding: 0; border-radius: 0; }
.woocommerce-tabs .panel > * { color: var(--muted); }
.woocommerce-tabs .panel h2 { font-size: 20px; color: var(--charcoal); }
.relgrid { margin-top: clamp(32px, 4vw, 56px); }

/* Related / upsell loops */
.related.products ul.products,
.upsells.products ul.products,
.cross-sells ul.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 0; padding: 0; list-style: none; }
/* WC core's layout sheet parks loop items at 22.05% width (48% on small screens);
   the theme's grid gives each card its own column, so out-rank core on PDP loops. */
.woocommerce .related.products ul.products li.product,
.woocommerce .upsells.products ul.products li.product,
.woocommerce .cross-sells ul.products li.product { width: auto; float: none; margin: 0; }
.related.products h2,
.upsells.products h2,
.cross-sells h2 { font-size: clamp(22px, 2.4vw, 30px); margin-bottom: 20px; }

/* Cards (loop) */
ul.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 0; padding: 0; list-style: none; }
ul.products li.product { margin: 0; width: auto; float: none; }
.onsale {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    margin: 0;
    min-width: 0;
    min-height: 0;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--gold);
    color: var(--pine-deep);
    font: 800 12px var(--f-body);
    line-height: 1;
}
.star-rating { overflow: hidden; position: relative; height: 1em; line-height: 1; font-size: 14px; width: 5.4em; font-family: "star"; }
.star-rating::before { content: "\53\53\53\53\53"; color: var(--line); }
.star-rating span { position: absolute; top: 0; left: 0; width: 0; overflow: hidden; padding-top: 1.5em; }
.star-rating span::before { content: "\53\53\53\53\53"; color: var(--gold); }

/* Pagination */
.woocommerce-pagination { margin-top: 32px; }
.woocommerce-pagination ul { display: flex; gap: 8px; justify-content: center; border: 0; margin: 0; padding: 0; list-style: none; }
.woocommerce-pagination ul li { border: 0; }
.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
    display: inline-grid;
    place-items: center;
    min-width: 48px;
    min-height: 48px;
    padding: 0 12px;
    border: 1.5px solid var(--line);
    border-radius: 999px;
    background: var(--white);
    color: var(--charcoal);
    font-weight: 700;
    text-decoration: none;
}
.woocommerce-pagination ul li span.current,
.woocommerce-pagination ul li a:hover { background: var(--pine); border-color: var(--pine); color: var(--white); }

/* Forms */
.form-row { display: grid; gap: 6px; margin-bottom: 14px; }
.form-row label { font-size: 14px; font-weight: 700; color: var(--charcoal); }
.form-row input[type=text],
.form-row input[type=email],
.form-row input[type=tel],
.form-row input[type=url],
.form-row input[type=number],
.form-row input[type=password],
.form-row select,
.form-row textarea,
.anihra-field input,
.anihra-field select,
.anihra-field textarea {
    min-height: 50px;
    border-radius: var(--r-sm);
    border: 1.5px solid var(--line);
    background: var(--white);
    color: var(--charcoal);
    font: 500 16px var(--f-body);
    padding: 10px 16px;
    width: 100%;
}
.form-row textarea,
.anihra-field textarea { min-height: 140px; }
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--tint-gold); }
.form-row-first,
.form-row-last { display: grid; gap: 6px; }
.form-row-wide { grid-column: 1 / -1; }
.woocommerce-form__label-for-checkbox { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.woocommerce-form-row .woocommerce-Input { font: inherit; }
.anihra-field { display: grid; gap: 6px; }
.anihra-form { display: grid; gap: 16px; max-width: 640px; }
.form-note { font-size: 13.5px; color: var(--muted); }
.field-error { font-size: 13px; color: var(--anihra-error-fg); font-weight: 700; }

/* Cart / checkout / account */
.woocommerce-cart-form__cart-item td,
.shop_table td,
.shop_table th { padding: 14px 10px; border-color: var(--line); font-size: 15px; vertical-align: middle; }
.shop_table { border-collapse: collapse; width: 100%; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--white); }
.shop_table thead th {
    font: 800 12px/1.3 var(--f-body);
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gold-ink);
    border-bottom: 1px solid var(--line);
}
.product-name { display: flex; align-items: center; gap: 14px; }
.product-name a { font: 600 17px/1.3 var(--f-display); color: var(--charcoal); text-decoration: none; }
.product-name img { width: 64px; height: 64px; border-radius: var(--r-sm); object-fit: cover; }
.woocommerce-cart .cart-collaterals .cart_totals { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.woocommerce-checkout-review-order-table { font-size: 15px; }
.woocommerce-checkout h3 { font-size: 22px; }
#customer_details { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); }
.woocommerce-columns--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.col2-set .col-1,
.col2-set .col-2 { display: grid; gap: 4px; }
.woocommerce-terms-and-conditions-wrapper { font-size: 14px; color: var(--muted); }
#order_review,
.woocommerce-order-details,
.woocommerce-table--order-details { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.woocommerce-MyAccount-navigation { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; align-self: start; }
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.woocommerce-MyAccount-navigation a {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 0 16px;
    border-radius: var(--r-sm);
    color: var(--charcoal);
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
}
.woocommerce-MyAccount-navigation li.is-active a { background: var(--tint-pine); color: var(--pine); }
.woocommerce-MyAccount-content { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(20px, 3vw, 32px); }
.woocommerce-MyAccount-content > :first-child { margin-top: 0; }
.woocommerce-account .woocommerce-MyAccount-content,
.woocommerce-account .woocommerce-MyAccount-navigation { max-width: none; float: none; }
.woocommerce-account .woocommerce { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; }
.woocommerce-orders-table__cell-order-actions a { margin-right: 8px; }
.woocommerce-password-strength { font-size: 13.5px; font-weight: 700; color: var(--muted); }

/* Centre pages */
.centre-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.centre-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 26px;
    display: grid;
    gap: 12px;
    align-content: start;
}
.centre-card h2, .centre-card h3 { font-size: clamp(22px, 2.2vw, 26px); }
.centre-card dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; font-size: 15px; }
.centre-card dt { font-weight: 800; color: var(--gold-ink); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.centre-card dd { margin: 0; color: var(--muted); }
/* inline-block + padding lifts the phone link's hit area to the 24px floor without moving the row */
.centre-card dd a { display: inline-block; padding-block: 2px; color: var(--pine); font-weight: 700; }
.contact-split { display: grid; grid-template-columns: 1fr .9fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
.contact-rail { display: grid; gap: 14px; }
.contact-rail a,
.contact-rail-static {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    padding: 16px 18px;
    color: var(--charcoal);
    font-weight: 700;
    text-decoration: none;
}
.contact-rail a:hover { border-color: var(--pine); }
.contact-rail svg { width: 20px; height: 20px; color: var(--pine); flex: none; }

/* FAQ archive */
.faq-group { padding-block: 0; }
.faq-groups { display: grid; gap: clamp(28px, 4vw, 44px); }
.faq-group-head { display: grid; gap: 6px; margin-bottom: 16px; }
.faq-group-head h2 { font-size: clamp(22px, 2.4vw, 28px); }
.faq-search { display: grid; gap: 10px; margin-bottom: 28px; max-width: 520px; }
.faq-search-label { font-size: 14px; font-weight: 700; color: var(--charcoal); }
.faq-search input {
    min-height: 50px;
    border-radius: var(--r-sm);
    border: 1.5px solid var(--line);
    background: var(--white);
    color: var(--charcoal);
    font: 500 16px var(--f-body);
    padding: 10px 16px;
    width: 100%;
}
.faq-search input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--tint-gold); }

/* Content pages: front form contract (mirrors the search input), how-it-works
   steps, about journey strip. dash-form lives in dashboard.css, which inner
   pages never load. */
.front-form { display: grid; gap: 12px; align-content: start; }
.front-form label { font-weight: 700; font-size: 14px; color: var(--charcoal); }
.front-form input,
.front-form select,
.front-form textarea {
    min-height: 50px;
    border-radius: var(--r-sm);
    border: 1.5px solid var(--line);
    background: var(--white);
    color: var(--charcoal);
    font: 500 16px var(--f-body);
    padding: 10px 16px;
    width: 100%;
}
.front-form textarea { min-height: 120px; resize: vertical; }
.front-form :is(input, select, textarea):focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--tint-gold); }
.front-form .btn { justify-self: start; }
.front-step-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: step; }
.front-step-list li {
    counter-increment: step;
    display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start;
    color: var(--muted); font-size: 15.5px; line-height: 1.6;
}
.front-step-list li::before {
    content: counter(step);
    display: grid; place-items: center;
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--tint-gold); color: var(--gold-ink-deep);
    font: 800 15px var(--f-body);
}
.centre-card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
.journey-grid { grid-template-columns: repeat(3, 1fr); }

/* Blog: post thumb, cross-link rail, pagination and post navigation */
.post-thumb img { width: 100%; height: auto; border-radius: var(--r-sm); }
.post-thumb { margin-block: 8px 0; }
.wc-next-steps { display: flex; flex-wrap: wrap; gap: 14px; }
.navigation.pagination { margin-top: 28px; }
.navigation.pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.post-navigation .nav-links { display: grid; margin-top: 28px; }
.navigation.pagination .page-numbers,
.post-navigation .nav-links a {
    display: inline-grid; place-items: center;
    min-width: 44px; min-height: 44px; padding: 0 14px;
    border: 1px solid var(--line); border-radius: var(--r-sm);
    background: var(--white); color: var(--charcoal);
    font-weight: 700; font-size: 15px; text-decoration: none;
}
.navigation.pagination .page-numbers.current { background: var(--tint-pine); border-color: var(--pine); color: var(--pine); }
.navigation.pagination a.page-numbers:hover, .post-navigation .nav-links a:hover { border-color: var(--pine); }

/* Quiz page */
.quiz-page { max-width: 760px; margin: 0 auto; }
.quiz-result-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: clamp(22px, 3vw, 36px);
    display: grid;
    gap: 14px;
    margin-top: 20px;
}
.quiz-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 24px; }
.quiz-steps li {
    list-style: none;
    display: grid;
    gap: 2px;
    padding: 14px 16px;
    border-radius: var(--r-sm);
    border: 1px solid var(--line);
    background: var(--white);
    font-size: 14px;
    color: var(--muted);
}
.quiz-steps li[aria-current="step"] { border-color: var(--pine); color: var(--pine); font-weight: 700; }

/* 404 */
.notfound { display: grid; gap: 20px; justify-items: start; padding-block: clamp(48px, 8vw, 96px); }

/* Shop grid: the 3-col card grid follows the house collapse 3 → 2 → 1. The
   640px rule must live here too, because this file loads after storefront.css
   and would otherwise out-rank its 1-col rule. */
@media (max-width: 1100px) {
    ul.products,
    .related.products ul.products,
    .upsells.products ul.products,
    .cross-sells ul.products { grid-template-columns: repeat(2, 1fr); }
    .pgrid.cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .pdp,
    .contact-split,
    #customer_details,
    .centre-grid,
    .journey-grid,
    .card-grid,
    .quiz-steps { grid-template-columns: 1fr; }
    .woocommerce-account .woocommerce { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    ul.products,
    .related.products ul.products,
    .upsells.products ul.products,
    .cross-sells ul.products { grid-template-columns: 1fr; }
    .pgrid.cols-3 { grid-template-columns: 1fr; }
    .shop-bar { align-items: flex-start; }
    .woocommerce-message,
    .woocommerce-info,
    .woocommerce-error { font-size: 14px; padding: 12px 14px; }
    .cart-collaterals { margin-top: 24px; }
}

/* Product detail page: buy box extras, routine card, PDP FAQ, sticky bar */
.pdp-page { padding-block: 0 clamp(40px, 6vw, 72px); }
.pdp { margin-top: 20px; }
.pdp-pricing { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.pdp-savings { font: 800 14px var(--f-body); color: var(--gold-ink); }
.pdp-badges { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pdp-badges li {
    display: inline-flex; align-items: center; min-height: 34px; padding: 4px 14px;
    border: 1.5px solid var(--line); border-radius: 999px; background: var(--white);
    font-size: 13.5px; font-weight: 700; color: var(--charcoal);
}
.pdp-disclaimer {
    margin: 0; font-size: 13px; line-height: 1.6; color: var(--muted);
    border-top: 1px solid var(--line); padding-top: 14px;
}
.routine-card {
    margin-top: clamp(32px, 4vw, 56px); background: var(--white);
    border: 1px solid var(--line); border-radius: var(--r);
    padding: clamp(20px, 3vw, 32px); display: grid; gap: 16px;
}
.routine-card h2 { font-size: clamp(20px, 2vw, 26px); }
.rc-stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.rc-stages li { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px 16px; display: grid; gap: 4px; align-content: start; }
.rc-stages li.now { border-color: var(--pine); box-shadow: inset 0 0 0 1.5px var(--pine); }
.rc-month { font: 800 12px var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); }
.rc-stage { font-weight: 800; color: var(--charcoal); }
.rc-expect { font-size: 14px; color: var(--muted); }
.routine-card .weeks { max-width: 440px; }
.rc-foot { margin: 0; font-size: 14px; color: var(--muted); }
.pdp-faq, .centre-faq, .page-faq { margin-top: clamp(32px, 4vw, 56px); display: grid; gap: 18px; }
.pdp-faq h2, .centre-faq h2, .page-faq h2 { font-size: clamp(22px, 2.4vw, 30px); }
.pdp-bar { display: none; }
@media (max-width: 640px) {
    .pdp-bar {
        display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 24;
        align-items: center; gap: 12px;
        padding: 10px var(--gr) calc(10px + env(safe-area-inset-bottom, 0px)) var(--gl);
        background: var(--white); border-top: 1px solid var(--line);
        box-shadow: 0 -12px 30px -20px rgba(15, 61, 34, .4);
    }
    .pdp-bar-product { flex: 1; min-width: 0; display: grid; gap: 2px; }
    .pdp-bar-name { font-weight: 700; font-size: 13.5px; color: var(--charcoal); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .pdp-bar .price strong { font-size: 18px; }
    .rc-stages { grid-template-columns: 1fr; }
}
/* T9: the Blocks cart/checkout/my-account markup ships .woocommerce-MyAccount-
   navigation and .woocommerce-MyAccount-content as siblings of .woocommerce in
   a fixed 2-col grid; DOM order puts content first, so pin both to columns.
   Desktop only — the ≤900px query below collapses to one column. */
@media (min-width: 901px) {
    .woocommerce-account .woocommerce .woocommerce-MyAccount-navigation {
        grid-column: 1; grid-row: 1; align-self: start;
    }
    .woocommerce-account .woocommerce .woocommerce-MyAccount-content {
        grid-column: 2; grid-row: 1; min-width: 0;
    }
}
/* T9: coupon UI only when a real coupon exists — the panel blocks are hidden
   site-wide via the body class added in inc/assets.php when 0 coupons publish. */
body.anihra-no-coupons .wp-block-woocommerce-cart-order-summary-coupon-form-block,
body.anihra-no-coupons .wp-block-woocommerce-checkout-order-summary-coupon-form-block {
    display: none;
}
/* T9: sale badge from the default grey to the Pine & Gold tokens. Woo's own
   stylesheet styles this with equal specificity later in the cascade, so the
   body prefix wins the tie. */
body .wc-block-components-sale-badge {
    background: var(--tint-gold); color: var(--gold-ink-deep);
    border: none; font-weight: 700;
}

/* ---------- Cart drawer (slide-out bag) ---------- */
html.anihra-drawer-open { overflow: hidden; }
.cdrawer-backdrop {
    position: fixed; inset: 0; z-index: var(--anihra-z-overlay);
    background: rgba(15, 61, 34, 0.45);
    opacity: 0; pointer-events: none;
}
.cdrawer-backdrop.is-open { opacity: 1; pointer-events: auto; }
.cdrawer {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: var(--anihra-z-drawer);
    width: min(420px, 100vw);
    display: flex; flex-direction: column;
    background: var(--white); border-left: 1px solid var(--line);
    transform: translateX(100%); visibility: hidden;
}
.cdrawer.is-open { transform: none; visibility: visible; }
.cdrawer.is-busy .cdrawer-items,
.cdrawer.is-busy .cdrawer-foot { opacity: .55; pointer-events: none; }
.cdrawer-head {
    position: relative;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 18px 20px; border-bottom: 1px solid var(--line);
}
.cdrawer-title {
    margin: 0; display: flex; align-items: center; gap: 10px;
    font: 600 20px/1.2 var(--f-display); color: var(--charcoal);
}
.cdrawer-title-n {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px;
    background: var(--pine); color: var(--cream);
    font: 700 12px/1 var(--f-body);
}
.cdrawer-x {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 999px;
    background: var(--white); color: var(--charcoal); cursor: pointer;
}
.cdrawer-x:hover { border-color: var(--pine); color: var(--pine); }
.cdrawer-alert {
    position: absolute; left: 16px; right: 16px; top: calc(100% + 8px); z-index: 1;
    margin: 0; padding: 10px 12px; border-radius: var(--r-sm);
    background: var(--white); border: 1px solid var(--color-error-border, var(--line));
    color: var(--color-error-fg, var(--anihra-error-fg)); font-size: 13.5px; font-weight: 600;
    box-shadow: 0 8px 24px -12px rgba(15, 61, 34, .35);
}
.cdrawer-body { flex: 1; overflow-y: auto; display: flex; flex-direction: column; }
.cdrawer-items { list-style: none; margin: 0; padding: 0; }
.cdrawer-item {
    display: grid; grid-template-columns: 64px minmax(0, 1fr) auto;
    gap: 12px; align-items: center;
    padding: 14px 20px; border-bottom: 1px solid var(--line);
}
.cdrawer-thumb img { display: block; width: 64px; height: 64px; object-fit: cover; border-radius: var(--r-sm); }
.cdrawer-name { font-weight: 700; font-size: 14.5px; color: var(--charcoal); text-decoration: none; }
.cdrawer-name:hover { color: var(--pine); }
.cdrawer-each { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.cdrawer-qty {
    display: inline-flex; align-items: center; margin-top: 8px;
    border: 1px solid var(--line); border-radius: 999px; background: var(--white);
}
.cdrawer-step {
    width: 28px; height: 28px; border: 0; border-radius: 999px;
    background: none; color: var(--charcoal); font-size: 16px; line-height: 1; cursor: pointer;
}
.cdrawer-step:hover { color: var(--pine); }
.cdrawer-qty-n { min-width: 22px; text-align: center; font-weight: 700; font-size: 14px; }
.cdrawer-line { display: grid; gap: 6px; justify-items: end; text-align: right; }
.cdrawer-line-total { font-weight: 700; font-size: 15px; color: var(--charcoal); }
.cdrawer-remove {
    border: 0; background: none; padding: 0; cursor: pointer;
    font-size: 12.5px; color: var(--muted); text-decoration: underline;
}
.cdrawer-remove:hover { color: var(--color-error-fg, var(--anihra-error-fg)); }
.cdrawer-empty { margin: auto; padding: 48px 24px; text-align: center; display: grid; gap: 10px; justify-items: center; }
.cdrawer-empty-title { margin: 0; font: 600 19px/1.3 var(--f-display); color: var(--charcoal); }
.cdrawer-empty-hint { margin: 0; font-size: 14px; color: var(--muted); }
.cdrawer-foot { margin-top: auto; padding: 16px 20px calc(16px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: var(--white); }
.cdrawer-total { display: flex; align-items: baseline; justify-content: space-between; }
.cdrawer-total strong { font: 700 18px/1.2 var(--f-display); color: var(--charcoal); }
.cdrawer-note { margin: 8px 0 12px; font-size: 13px; color: var(--muted); }
.cdrawer-ctas { display: grid; gap: 10px; }
@media (prefers-reduced-motion: no-preference) {
    .cdrawer-backdrop { transition: opacity var(--anihra-motion-base) ease; }
    .cdrawer { transition: transform 280ms var(--anihra-ease-out), visibility 0s linear 280ms; }
    .cdrawer.is-open { transition: transform 280ms var(--anihra-ease-out); }
}

/* ---------- Cart page grid ---------- */
.cartgrid {
    display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(20px, 3vw, 36px);
    align-items: start; padding-block: clamp(20px, 3vw, 40px) clamp(48px, 6vw, 80px);
}
.cartitems { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.cartitem {
    display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 16px; align-items: center;
    background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 16px;
}
.cartitem-thumb img { display: block; width: 88px; height: 88px; object-fit: cover; border-radius: var(--r-sm); }
.cartitem-main { display: grid; gap: 8px; justify-items: start; }
.cartitem-name { color: var(--charcoal); }
.cartitem-name a { color: inherit; text-decoration: none; font: 600 17px/1.35 var(--f-display); }
.cartitem-name a:hover { color: var(--pine); }
.cartitem-name .variation { margin: 4px 0 0; font-size: 13.5px; color: var(--muted); }
.cartitem-price { font-size: 14px; color: var(--muted); }
.cartitem-qty input.qty { width: 72px; }
.cartitem-side { display: grid; gap: 8px; justify-items: end; text-align: right; }
.cartitem-subtotal { font-weight: 700; font-size: 15.5px; color: var(--charcoal); }
.cartitem-remove {
    font-size: 13px; line-height: 1; color: var(--muted); text-decoration: none;
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 999px;
}
.cartitem-remove:hover { border-color: var(--color-error-border, var(--line)); color: var(--color-error-fg, var(--anihra-error-fg)); }
.cartactions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; }
.cart-coupon { display: flex; flex: 1 1 280px; gap: 8px; margin: 0; }
.cart-coupon .input-text { flex: 1; min-width: 0; }
.cart-update { margin-left: auto; }
.cart-summary { position: sticky; top: 96px; display: grid; gap: 20px; }
@media (max-width: 900px) {
    .cartgrid { grid-template-columns: 1fr; }
    .cart-summary { position: static; }
    .cartitem { grid-template-columns: 72px minmax(0, 1fr); }
    .cartitem-thumb img { width: 72px; height: 72px; }
    .cartitem-side { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; padding-top: 4px; border-top: 1px dashed var(--line); }
    .cart-update { margin-left: 0; width: 100%; }
}
.cart-empty-page { padding-block: clamp(32px, 5vw, 64px) clamp(56px, 7vw, 96px); text-align: center; }
.cart-empty-ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 20px; }

/* ---------- Checkout grid ---------- */
.checkout-trust {
    display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center;
    margin-block: 8px clamp(20px, 3vw, 32px);
    padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--r);
    background: var(--tint-gold);
    font-size: 14px; font-weight: 600; color: var(--gold-ink-deep, var(--gold-ink));
}
.checkoutgrid {
    display: grid; grid-template-columns: minmax(0, 1fr) 400px;
    grid-template-areas: "details reviewtitle" "details review";
    gap: clamp(20px, 3vw, 36px); align-items: start;
    padding-block: 0 clamp(48px, 6vw, 80px);
}
.checkout-details { grid-area: details; display: grid; gap: 20px; }
.checkoutgrid #customer_details { display: grid; grid-template-columns: 1fr; gap: 20px; }
.checkout-review-title { grid-area: reviewtitle; margin: 0 0 4px; }
.checkout-review { grid-area: review; }
@media (max-width: 900px) {
    .checkoutgrid { grid-template-columns: 1fr; grid-template-areas: "details" "reviewtitle" "review"; }
}

/* ---------- Order screens: timeline + overview ---------- */
.otimeline { list-style: none; margin: 20px 0 0; padding: 0; display: grid; }
.otimeline-step {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 11px 0; border-top: 1px dashed var(--line);
}
.otimeline-step:first-child { border-top: 0; padding-top: 0; }
.otimeline-dot {
    flex: none; width: 14px; height: 14px; margin-top: 4px; border-radius: 50%;
    background: var(--white); border: 2px solid var(--line);
}
.otimeline-step.is-done .otimeline-dot { background: var(--pine); border-color: var(--pine); }
.otimeline-step.is-halted .otimeline-dot { background: var(--color-error-fg, var(--anihra-error-fg)); border-color: var(--color-error-fg, var(--anihra-error-fg)); }
.otimeline-label { font-size: 15px; color: var(--muted); }
.otimeline-step.is-done .otimeline-label { font-weight: 700; color: var(--charcoal); }
.thankyou-page .order-head { margin-top: 20px; }
.woocommerce-order-overview {
    list-style: none; margin: 0; padding: 16px 0 0; display: grid; gap: 10px;
}
.woocommerce-order-overview li { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px dashed var(--line); padding-bottom: 8px; font-size: 14.5px; color: var(--muted); }
.woocommerce-order-overview strong { color: var(--charcoal); text-align: right; }
.order-cod-note {
    margin: 14px 0 0; padding-left: 12px; border-left: 2px solid var(--gold);
    font-size: 14.5px; line-height: 1.65; color: var(--muted);
}
.orderview-status { font-size: 15.5px; color: var(--muted); }
.orderview-status mark { background: none; color: var(--charcoal); font-weight: 700; }
.orderview .btn { margin-top: 16px; }
