/* Golden Records 1.2.3 — scoped storefront/checkout refinements.
 * No changes to shipping calculators, cart totals or payment gateway markup. */

/* Quiet, reversible favorites — one 38px control across grid, list and PDP. */
body.gr-site button.gr-favorite,
body.gr-site ul.products li.product.gr-lp-card > button.gr-favorite {
    appearance:none;box-sizing:border-box;display:grid!important;place-items:center!important;
    width:38px!important;min-width:38px!important;height:38px!important;min-height:38px!important;
    padding:0!important;margin:0!important;border-radius:50%!important;
    background:#fff!important;border:1px solid #dcd2c0!important;color:#102117!important;
    box-shadow:0 2px 9px #09190f13!important;line-height:1!important;cursor:pointer;
}
body.gr-site button.gr-favorite .gr-favorite-icon {
    position:static!important;inset:auto!important;display:grid!important;place-items:center!important;
    height:22px;width:22px;line-height:0;pointer-events:none;
}
body.gr-site button.gr-favorite .gr-ui-icon {display:block!important;width:21px!important;height:21px!important;margin:0!important;fill:transparent!important;stroke:currentColor!important;stroke-width:1.8!important;}
body.gr-site button.gr-favorite.is-active {background:var(--gold)!important;border-color:var(--gold)!important;color:#102117!important;}
body.gr-site button.gr-favorite.is-active .gr-ui-icon {fill:currentColor!important;}
body.gr-site button.gr-favorite:hover:not(:disabled) {border-color:var(--gold)!important;transform:translateY(-1px);}
body.gr-site button.gr-favorite:disabled {cursor:wait;opacity:.68;}
body.gr-site button.gr-favorite:focus-visible {outline:2px solid #946f33;outline-offset:3px;}
body.gr-site ul.products li.product.gr-lp-card > button.gr-favorite {top:clamp(12px,1.3vw,18px)!important;right:clamp(12px,1.3vw,18px)!important;z-index:4!important;}
body.gr-site .gr-purchase-actions > button.gr-favorite {position:relative!important;top:auto!important;right:auto!important;flex:0 0 38px!important;}
/* Do not show any legacy YITH text/tooltips within the card or the old theme toast. */
body.gr-site .gr-toast,body.gr-site .gr-favorite :is(.feedback,.yith-wcwl-add-to-wishlist,.yith-wcwl-tooltip),
body.gr-site :is(.yith-wcwl-popup-message,.yith-wcwl-tooltip) {display:none!important;}
.gr-action-error {grid-column:1/-1;margin:6px 0 0;font:500 12px/1.5 var(--sans);color:#8e2631;}

/* Offer badge always lives at top-left; heart always at top-right. */
body.gr-site ul.products li.gr-lp-card .gr-lp-image {isolation:isolate;}
body.gr-site ul.products li.gr-lp-card .gr-lp-image:has(.gr-discount-badge) > .onsale {display:none!important;}
body.gr-site ul.products li.gr-lp-card .gr-lp-image > :is(.onsale,.gr-discount-badge) {
    position:absolute!important;top:9px!important;left:9px!important;right:auto!important;bottom:auto!important;
    margin:0!important;padding:5px 8px!important;max-width:calc(100% - 58px);width:max-content!important;min-width:0!important;
    font:700 10px/1.2 var(--sans)!important;letter-spacing:.035em!important;text-transform:uppercase;
    overflow:hidden;text-overflow:ellipsis;white-space:nowrap!important;z-index:3!important;
    color:#fff2dd!important;background:#7a232e!important;border:1px solid #be9859!important;border-radius:1px!important;
}
body.gr-site ul.products li.gr-lp-card .gr-lp-image > .gr-lp-status,
body.gr-site ul.products li.gr-lp-card .gr-lp-image .onsale + .gr-lp-status {
    position:absolute!important;top:auto!important;bottom:9px!important;left:9px!important;right:auto!important;
    display:block;max-width:calc(100% - 18px);width:max-content!important;
    font:600 9px/1.25 var(--sans)!important;padding:4px 6px!important;
    white-space:normal;overflow-wrap:anywhere;z-index:3!important;
}

/* Tighter, consistent action row and type scale in either catalog view. */
body.gr-site ul.products li.gr-lp-card .gr-card-footer {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center;min-width:0;padding-top:12px;margin-top:auto;}
body.gr-site ul.products li.gr-lp-card .gr-card-footer .price {margin:0!important;min-width:0;font:700 clamp(16px,1.5vw,22px)/1.2 var(--sans);display:block;}
body.gr-site ul.products li.gr-lp-card .gr-card-footer .price :is(del,ins) {display:inline-block;vertical-align:baseline;}
body.gr-site ul.products li.gr-lp-card .gr-card-footer .price del {font-size:.79em;margin-right:3px;}
body.gr-site ul.products li.gr-lp-card .gr-card-footer .gr-loop-purchase {width:auto!important;min-width:0;margin:0!important;}
body.gr-site ul.products li.gr-lp-card .gr-card-footer :is(button,.button) {
    width:auto!important;min-width:0!important;max-width:100%;min-height:39px!important;height:auto!important;
    display:inline-flex;align-items:center;justify-content:center;gap:5px;
    margin:0!important;padding:9px clamp(9px,1vw,15px)!important;
    border:1px solid var(--green)!important;border-radius:0!important;
    font:700 11px/1.3 var(--sans)!important;letter-spacing:.035em!important;white-space:normal;text-align:center;
}
body.gr-site ul.products li.gr-lp-card .gr-card-footer .gr-cart-added :is(button,.button) {background:var(--gold)!important;border-color:var(--gold)!important;color:var(--green)!important;}
body.gr-site ul.products li.gr-lp-card .gr-card-footer .gr-card-saving {grid-column:1/-1;color:#7a232e;font-size:11px;margin:0;padding:0;}
body.gr-site ul.products li.gr-lp-card :is(.gr-save-caption,.saving-amount,.sale-saving,.discount-amount) {font-size:11px;line-height:1.35;color:#915029;}
body.gr-site ul.products li.gr-lp-card .gr-card-footer .added_to_cart {display:none!important;}

/* Catalog list: thumbnail | metadata/title | balanced price and button. */
body.gr-site .gr-catalog [data-view="list"] ul.products li.product.gr-lp-card {
    box-sizing:border-box;grid-template-columns:minmax(0,1fr) 166px!important;gap:18px!important;
    padding:15px 18px!important;min-height:160px!important;align-items:center!important;
}
body.gr-site .gr-catalog [data-view="list"] li.gr-lp-card > a.woocommerce-LoopProduct-link {
    grid-column:1!important;grid-row:1!important;display:grid!important;
    grid-template-columns:140px minmax(0,1fr)!important;gap:18px;align-items:center;min-width:0;
}
body.gr-site .gr-catalog [data-view="list"] ul.products li.gr-lp-card .gr-lp-image {width:140px!important;height:140px!important;aspect-ratio:1!important;}
body.gr-site .gr-catalog [data-view="list"] ul.products li.gr-lp-card .gr-lp-copy {min-width:0;padding:4px 0!important;}
body.gr-site .gr-catalog [data-view="list"] .gr-record-meta {display:flex;gap:7px;flex-wrap:wrap;line-height:1.45;}
body.gr-site .gr-catalog [data-view="list"] .gr-record-grade {max-width:100%;white-space:normal;position:static;}
body.gr-site .gr-catalog [data-view="list"] ul.products li.gr-lp-card .woocommerce-loop-product__title {font-size:clamp(23px,2vw,29px);margin:7px 0 0!important;line-height:1.15;}
body.gr-site .gr-catalog [data-view="list"] ul.products li.gr-lp-card .gr-card-footer {
    display:flex!important;grid-column:2!important;grid-row:1!important;flex-direction:column!important;
    align-items:stretch!important;justify-content:flex-end!important;gap:12px!important;
    padding:44px 0 0!important;margin:0!important;border:0!important;min-width:0;
}
body.gr-site .gr-catalog [data-view="list"] ul.products li.gr-lp-card .gr-card-footer .price {display:block;font-size:24px!important;text-align:right;}
body.gr-site .gr-catalog [data-view="list"] ul.products li.gr-lp-card .gr-card-footer .gr-loop-purchase {display:block;width:100%!important;flex:none!important;}
body.gr-site .gr-catalog [data-view="list"] ul.products li.gr-lp-card .gr-card-footer button {width:100%!important;min-height:40px!important;padding:10px!important;}
body.gr-site .gr-catalog [data-view="list"] ul.products li.gr-lp-card > button.gr-favorite {right:18px!important;top:13px!important;}

/* Unified classic cart — native Woo table and shipping methods, no detached narrow total. */
body.gr-site.woocommerce-cart .gr-page-content > .woocommerce:has(>form.woocommerce-cart-form) {
    display:grid;grid-template-columns:minmax(0,1.53fr) minmax(330px,.88fr);gap:20px 26px;align-items:start;
    width:100%;min-width:0;
}
body.gr-site.woocommerce-cart .gr-page-content > .woocommerce:has(>form.woocommerce-cart-form) > :not(.woocommerce-cart-form):not(.cart-collaterals) {grid-column:1/-1;min-width:0;}
body.gr-site.woocommerce-cart .gr-page-content > .woocommerce > form.woocommerce-cart-form {grid-column:1;grid-row:auto;margin:0!important;width:100%;min-width:0;}
body.gr-site.woocommerce-cart .gr-page-content > .woocommerce > .cart-collaterals {
    grid-column:2;grid-row:auto;display:block!important;float:none!important;width:100%!important;min-width:0;margin:0!important;
}
body.gr-site.woocommerce-cart .cart-collaterals .cart_totals {
    position:sticky;top:76px;width:100%!important;max-width:none!important;float:none!important;margin:0!important;
    background:#fffdf9;border:1px solid #d9cfbd;border-top:3px solid var(--gold);padding:22px 22px 24px;
    box-shadow:0 8px 26px #16231a0c;
}
body.gr-site.woocommerce-cart .cart_totals h2 {font:600 clamp(27px,2.5vw,35px)/1.15 var(--serif);margin:0 0 12px;padding-bottom:13px;border-bottom:1px solid var(--border);}
body.gr-site.woocommerce-cart .woocommerce-cart-form {border:1px solid #dcd4c5;border-top:3px solid var(--green);background:#fffdf9;box-shadow:0 8px 26px #16231a09;}
body.gr-site.woocommerce-cart .woocommerce-cart-form table.shop_table thead {background:#183225;}
body.gr-site.woocommerce-cart .woocommerce-cart-form table.shop_table thead th {padding:14px 10px;font-size:10px;}
body.gr-site.woocommerce-cart .woocommerce-cart-form table.shop_table td {padding:14px 10px;font-size:12.5px;}
body.gr-site.woocommerce-cart .woocommerce-cart-form .product-thumbnail img {height:72px;width:72px;object-fit:cover;}
body.gr-site.woocommerce-cart .woocommerce-cart-form .product-name {min-width:140px;}
body.gr-site.woocommerce-cart .woocommerce-cart-form .product-name a {font-size:13px;font-weight:650;line-height:1.45;}
body.gr-site.woocommerce-cart .woocommerce-cart-form :is(.product-price,.product-subtotal) {white-space:nowrap;}
body.gr-site.woocommerce-cart .woocommerce-cart-form input.qty {width:52px;min-height:37px;}
body.gr-site.woocommerce-cart .cart_totals table.shop_table :is(th,td) {padding:12px 6px;line-height:1.5;vertical-align:top;}
body.gr-site.woocommerce-cart .cart_totals .woocommerce-shipping-methods {display:grid;gap:10px;margin:0 0 10px;}
body.gr-site.woocommerce-cart .cart_totals .woocommerce-shipping-methods li {display:grid;grid-template-columns:18px minmax(0,1fr);align-items:start;gap:7px;margin:0!important;font-size:12px;}
body.gr-site.woocommerce-cart .cart_totals .woocommerce-shipping-methods li input {width:15px;height:15px;margin:3px 0 0;}
body.gr-site.woocommerce-cart .cart_totals .woocommerce-shipping-methods li label {font-size:12.5px!important;line-height:1.45!important;overflow-wrap:anywhere;}
body.gr-site.woocommerce-cart .cart_totals .woocommerce-shipping-destination {font:400 12px/1.5 var(--sans);color:var(--muted);}
body.gr-site.woocommerce-cart .cart_totals .wc-proceed-to-checkout a.checkout-button {padding:13px 16px!important;min-height:45px!important;}

/* Checkout: equal visual weight to customer details and order confirmation. */
body.gr-site.woocommerce-checkout .woocommerce form.checkout {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.92fr);column-gap:26px;row-gap:12px;align-items:start;}
body.gr-site.woocommerce-checkout .woocommerce form.checkout > #customer_details {grid-column:1;grid-row:1/span 4;margin:0!important;padding:24px 26px;background:#fffdf9;border:1px solid #dcd4c5;border-top:3px solid var(--green);box-shadow:0 8px 26px #16231a0a;}
body.gr-site.woocommerce-checkout .woocommerce form.checkout > #order_review_heading {grid-column:2;grid-row:1;font:600 clamp(26px,2.5vw,34px)/1.14 var(--serif);padding:0 0 12px;margin:0;border-bottom:1px solid var(--border);}
body.gr-site.woocommerce-checkout .woocommerce form.checkout > #order_review {grid-column:2;grid-row:2;padding:19px 20px 0;background:#fffdf9;border:1px solid #dcd4c5;border-top:3px solid var(--gold);box-shadow:0 8px 26px #16231a0a;}
body.gr-site.woocommerce-checkout #order_review table.shop_table {margin:0 0 12px;}
body.gr-site.woocommerce-checkout #order_review table.shop_table th,
body.gr-site.woocommerce-checkout #order_review table.shop_table td {padding:12px 7px;line-height:1.5;}
body.gr-site.woocommerce-checkout #order_review table.shop_table .shipping td,
body.gr-site.woocommerce-checkout #order_review table.shop_table .shipping th {vertical-align:top;}
body.gr-site.woocommerce-checkout #order_review .woocommerce-shipping-methods {margin:0;display:grid;gap:9px;}
body.gr-site.woocommerce-checkout #order_review .woocommerce-shipping-methods li {display:grid;grid-template-columns:18px minmax(0,1fr);gap:7px;margin:0!important;align-items:start;}
body.gr-site.woocommerce-checkout #order_review .woocommerce-shipping-methods li label {font:500 12px/1.5 var(--sans)!important;overflow-wrap:anywhere;}
body.gr-site.woocommerce-checkout #order_review #payment {margin:8px -20px 0;background:#f4efe5;border-top:1px solid var(--border);}
body.gr-site.woocommerce-checkout #payment ul.payment_methods,
body.gr-site.woocommerce-checkout #payment div.form-row.place-order {background:transparent;padding:17px 20px;}
body.gr-site.woocommerce-checkout #payment #place_order {min-height:46px!important;width:100%!important;}
body.gr-site.woocommerce-checkout .woocommerce form.checkout .woocommerce-billing-fields__field-wrapper {gap:16px 14px;}
body.gr-site.woocommerce-checkout .woocommerce form.checkout input.input-text {min-height:44px;font-size:14px;}
body.gr-site.woocommerce-checkout :is(.woocommerce-form-login-toggle,.woocommerce-form-coupon-toggle) {margin-bottom:16px;}

@media(max-width:1200px) {
    body.gr-site ul.products li.gr-lp-card .gr-card-footer {grid-template-columns:minmax(0,1fr);}
    body.gr-site ul.products li.gr-lp-card .gr-card-footer .gr-loop-purchase {width:100%!important;}
    body.gr-site ul.products li.gr-lp-card .gr-card-footer button {width:100%!important;min-height:38px!important;}
    body.gr-site .gr-catalog [data-view="list"] ul.products li.gr-lp-card .gr-card-footer {grid-template-columns:unset;}
    body.gr-site .gr-catalog [data-view="list"] ul.products li.gr-lp-card .gr-card-footer .gr-loop-purchase {width:100%!important;}
}
@media(max-width:1120px) {
    body.gr-site.woocommerce-cart .gr-page-content > .woocommerce:has(>form.woocommerce-cart-form) {grid-template-columns:minmax(0,1fr);}
    body.gr-site.woocommerce-cart .gr-page-content > .woocommerce > :is(form.woocommerce-cart-form,.cart-collaterals) {grid-column:1;}
    body.gr-site.woocommerce-cart .cart-collaterals .cart_totals {position:static;}
}
@media(max-width:900px) {
    body.gr-site.woocommerce-checkout .woocommerce form.checkout {grid-template-columns:minmax(0,1fr);gap:15px;}
    body.gr-site.woocommerce-checkout .woocommerce form.checkout > :is(#customer_details,#order_review_heading,#order_review) {grid-column:1;grid-row:auto;}
    body.gr-site.woocommerce-checkout .woocommerce form.checkout > #customer_details {padding:20px;}
}
@media(max-width:760px) {
    body.gr-site .gr-catalog [data-view="list"] ul.products li.product.gr-lp-card {grid-template-columns:minmax(0,1fr)!important;gap:10px!important;padding:11px!important;}
    body.gr-site .gr-catalog [data-view="list"] li.gr-lp-card > a.woocommerce-LoopProduct-link {
        grid-column:1!important;grid-row:1!important;grid-template-columns:minmax(88px,29%) minmax(0,1fr)!important;gap:12px!important;align-items:center;
    }
    body.gr-site .gr-catalog [data-view="list"] ul.products li.gr-lp-card .gr-lp-image {width:100%!important;height:auto!important;aspect-ratio:1!important;}
    body.gr-site .gr-catalog [data-view="list"] ul.products li.gr-lp-card .gr-lp-copy {padding:0 38px 0 0!important;}
    body.gr-site .gr-catalog [data-view="list"] ul.products li.gr-lp-card .gr-card-footer {grid-column:1!important;grid-row:2!important;flex-direction:row!important;align-items:center!important;gap:10px!important;padding:10px 0 0!important;border-top:1px solid var(--border)!important;}
    body.gr-site .gr-catalog [data-view="list"] ul.products li.gr-lp-card .gr-card-footer .price {font-size:19px!important;text-align:left;}
    body.gr-site .gr-catalog [data-view="list"] ul.products li.gr-lp-card .gr-card-footer .gr-loop-purchase {width:auto!important;flex:0 0 auto!important;}
    body.gr-site .gr-catalog [data-view="list"] ul.products li.gr-lp-card .gr-card-footer button {width:auto!important;min-width:122px!important;}
    body.gr-site .gr-catalog [data-view="list"] ul.products li.gr-lp-card > button.gr-favorite {top:11px!important;right:11px!important;}
    body.gr-site ul.products li.gr-lp-card .gr-card-footer .price {font-size:18px;}
}
@media(max-width:580px) {
    body.gr-site ul.products li.product.gr-lp-card > button.gr-favorite {width:35px!important;height:35px!important;min-width:35px!important;min-height:35px!important;top:10px!important;right:10px!important;}
    body.gr-site ul.products li.gr-lp-card .gr-lp-image > :is(.onsale,.gr-discount-badge) {font-size:9px!important;max-width:calc(100% - 47px);padding:4px 6px!important;}
    body.gr-site ul.products li.gr-lp-card .gr-card-footer button {font-size:10px!important;min-height:36px!important;}
    body.gr-site .gr-catalog [data-view="list"] ul.products li.gr-lp-card .gr-card-footer {flex-wrap:wrap;justify-content:space-between;}
    body.gr-site.woocommerce-cart .gr-page-content > .woocommerce:has(>form.woocommerce-cart-form) {display:block;}
    body.gr-site.woocommerce-cart .gr-page-content > .woocommerce > .cart-collaterals {margin-top:18px!important;}
    body.gr-site.woocommerce-cart .cart-collaterals .cart_totals {padding:17px 14px;}
    body.gr-site.woocommerce-checkout .woocommerce form.checkout > #order_review {padding:16px 14px 0;}
    body.gr-site.woocommerce-checkout #order_review #payment {margin:8px -14px 0;}
    body.gr-site.woocommerce-checkout #payment :is(ul.payment_methods,div.form-row.place-order) {padding:14px;}
}
/* Extension-provided savings label is reflowed directly below the existing price. */
body.gr-site ul.products li.gr-lp-card .gr-card-footer .gr-price-group {min-width:0;display:grid;align-content:center;gap:3px;}
body.gr-site ul.products li.gr-lp-card .gr-card-footer .gr-price-group .price {line-height:1.2;}
body.gr-site ul.products li.gr-lp-card .gr-card-footer .gr-price-group .gr-card-saving {grid-column:auto;display:block;margin:0;padding:0;background:transparent;color:#935049;font:500 10.5px/1.35 var(--sans);}
body.gr-site .gr-catalog [data-view="list"] .gr-card-footer .gr-price-group {text-align:right;}
@media(max-width:760px) { body.gr-site .gr-catalog [data-view="list"] .gr-card-footer .gr-price-group {text-align:left;} }
