/**
 * KYO Signature unified product-price format.
 */

:root {
    --kyo-price-current: #a66f12;
    --kyo-price-regular: #a66f12;
    --kyo-price-old: #8a969e;
}

/* Custom: Use one calm, premium price hierarchy on every product card. */
.product-small .price-wrapper .price,
.kyo-category-card__price,
.kyo-shop-product-card__price,
.kyo-gift-sample__price {
    display: flex !important;
    min-height: 24px;
    flex-wrap: wrap;
    gap: 4px 9px;
    align-items: baseline;
    justify-content: center;
    color: var(--kyo-price-regular) !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
    line-height: 1.3 !important;
    text-align: center;
}

/* Custom: Keep normal and ranged prices in KYO navy. */
.product-small .price-wrapper .price > .amount,
.product-small .price-wrapper .price > .amount bdi,
.kyo-category-card__price > .amount,
.kyo-category-card__price > .amount bdi,
.kyo-shop-product-card__price > .amount,
.kyo-gift-sample__price > .amount {
    color: var(--kyo-price-regular) !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
}

/* Custom: Highlight the active sale price with the darker accessible brand gold. */
.product-small .price-wrapper .price ins,
.product-small .price-wrapper .price ins .amount,
.product-small .price-wrapper .price ins bdi,
.kyo-category-card__price ins,
.kyo-category-card__price ins .amount,
.kyo-category-card__price ins bdi,
.kyo-shop-product-card__price ins,
.kyo-shop-product-card__price ins .amount,
.kyo-gift-sample__price ins,
.kyo-gift-sample__price ins .amount {
    color: var(--kyo-price-current) !important;
    font-size: inherit !important;
    font-weight: 850 !important;
    line-height: inherit !important;
    text-decoration: none !important;
    background: transparent !important;
}

/* Custom: Make the previous price secondary without reducing legibility. */
.product-small .price-wrapper .price del,
.product-small .price-wrapper .price del .amount,
.product-small .price-wrapper .price del bdi,
.kyo-category-card__price del,
.kyo-category-card__price del .amount,
.kyo-category-card__price del bdi,
.kyo-shop-product-card__price del,
.kyo-shop-product-card__price del .amount,
.kyo-gift-sample__price del,
.kyo-gift-sample__price del .amount {
    color: var(--kyo-price-old) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
    opacity: 1 !important;
    text-decoration-color: currentColor !important;
    text-decoration-line: line-through !important;
    text-decoration-skip-ink: none;
    text-decoration-thickness: 1px;
}

/* Custom: Keep the currency symbol attached and visually balanced. */
.product-small .woocommerce-Price-currencySymbol,
.kyo-category-card__price .woocommerce-Price-currencySymbol,
.kyo-shop-product-card__price .woocommerce-Price-currencySymbol,
.kyo-gift-sample__price .woocommerce-Price-currencySymbol {
    color: inherit !important;
    font-size: 0.88em !important;
    line-height: inherit !important;
}

/* Custom: Keep quote-only products in the same gold price system. */
.kyo-home-product-card__price,
.kyo-category-card__budget,
.kyo-gift-sample__price.is-quote {
    color: var(--kyo-price-current) !important;
}

/* Custom: Override the archive's legacy compact-price rules with this shared format. */
body.kyo-product-archive-page .kyo-category-card__price.kyo-category-card__price {
    min-height: 24px;
    flex-wrap: wrap !important;
    gap: 4px 9px;
    overflow: visible;
    font-size: 17px !important;
    white-space: normal;
}

body.kyo-product-archive-page .kyo-category-card__price.kyo-category-card__price .amount,
body.kyo-product-archive-page .kyo-category-card__price.kyo-category-card__price ins {
    font-size: inherit !important;
    line-height: inherit !important;
}

body.kyo-product-archive-page .kyo-category-card__price.kyo-category-card__price del,
body.kyo-product-archive-page .kyo-category-card__price.kyo-category-card__price del .amount {
    font-size: 13px !important;
}

body.kyo-product-archive-page .kyo-category-card__price.kyo-category-card__price .woocommerce-Price-currencySymbol {
    font-size: 0.88em !important;
}

/* Custom: Extend the same hierarchy to the product-detail price block. */
.product-info .price-wrapper .price,
.product-info .product-page-price,
.product-info .kyo-b2b-summary__status strong {
    color: var(--kyo-price-regular) !important;
    font-size: 22px !important;
    font-weight: 850 !important;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
    line-height: 1.3 !important;
}

.product-info .price-wrapper ins,
.product-info .product-page-price ins,
.product-info .kyo-b2b-summary__status strong ins,
.product-info .price-wrapper ins .amount,
.product-info .product-page-price ins .amount,
.product-info .kyo-b2b-summary__status strong ins .amount {
    color: var(--kyo-price-current) !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    text-decoration: none !important;
    background: transparent !important;
}

.product-info .price-wrapper del,
.product-info .product-page-price del,
.product-info .kyo-b2b-summary__status strong del,
.product-info .price-wrapper del .amount,
.product-info .product-page-price del .amount,
.product-info .kyo-b2b-summary__status strong del .amount {
    color: var(--kyo-price-old) !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    opacity: 1 !important;
    text-decoration-color: currentColor !important;
    text-decoration-line: line-through !important;
    text-decoration-skip-ink: none;
    text-decoration-thickness: 1px;
}

/* Custom: Keep cart, checkout and mini-cart totals within the same navy system. */
.woocommerce-mini-cart-item .quantity .amount,
.woocommerce-cart-form .amount,
.cart_totals .amount,
.woocommerce-checkout-review-order-table .amount,
.woocommerce-order-details .amount {
    color: var(--kyo-price-regular) !important;
    font-variant-numeric: tabular-nums;
    font-weight: 750;
}

@media (max-width: 849px) {
    /* Custom: Preserve hierarchy while fitting two-column mobile product cards. */
    .product-small .price-wrapper .price,
    .kyo-category-card__price,
    .kyo-shop-product-card__price,
    .kyo-gift-sample__price {
        gap: 3px 7px;
        font-size: 15px !important;
        line-height: 1.35 !important;
    }

    .product-small .price-wrapper .price del,
    .product-small .price-wrapper .price del .amount,
    .product-small .price-wrapper .price del bdi,
    .kyo-category-card__price del,
    .kyo-category-card__price del .amount,
    .kyo-category-card__price del bdi,
    .kyo-shop-product-card__price del,
    .kyo-shop-product-card__price del .amount,
    .kyo-gift-sample__price del,
    .kyo-gift-sample__price del .amount {
        font-size: 12px !important;
    }

    .product-info .price-wrapper .price,
    .product-info .product-page-price,
    .product-info .kyo-b2b-summary__status strong {
        font-size: 20px !important;
    }

    body.kyo-product-archive-page .kyo-category-card__price.kyo-category-card__price {
        min-height: 35px;
        gap: 2px 7px;
        font-size: 14px !important;
        line-height: 1.3 !important;
    }

    body.kyo-product-archive-page .kyo-category-card__price.kyo-category-card__price del,
    body.kyo-product-archive-page .kyo-category-card__price.kyo-category-card__price del .amount {
        font-size: 11px !important;
    }
}
