/**
 * Restu Media — WooCommerce Custom Styling
 * Checkout, Cart, Shop, Product & Notice Overrides
 * Matches the Restu Media brand palette + Plus Jakarta Sans typography
 */

/* ── 0. VARIABLES ─────────────────────────────────────────────────────── */
:root {
    --rm-pri: #0F4C8A;
    --rm-pri-dark: #0d3d72;
    --rm-pri-light: #E6F1FB;
    --rm-acc: #E05C20;
    --rm-dark: #1A1A2E;
    --rm-muted: #6B7280;
    --rm-border: #E5E7EB;
    --rm-bg: #F8FAFB;
    --rm-white: #ffffff;
    --rm-success: #059669;
    --rm-success-bg: #ECFDF5;
    --rm-warning: #D97706;
    --rm-warning-bg: #FFFBEB;
    --rm-danger: #DC2626;
    --rm-danger-bg: #FEF2F2;
    --rm-radius: 14px;
    --rm-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --rm-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
    --rm-shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.1);
    --rm-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ── 1. GLOBAL WC PAGE WRAPPER ────────────────────────────────────────── */
.woocommerce-page,
.woocommerce-checkout,
.woocommerce-cart,
body.single-product {
    background-color: var(--rm-bg) !important;
}

.woocommerce-page .site-main,
.woocommerce-checkout .site-main,
.woocommerce-cart .site-main,
body.single-product .site-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 24px 60px;
    font-family: var(--rm-font);
}

/* ── 2. PAGE HEADER (HERO BANNER for WC pages) ───────────────────────── */
.woocommerce-page .entry-title,
.woocommerce-checkout .entry-title,
.woocommerce-cart .entry-title {
    display: none; /* Hide default — we'll use breadcrumb style */
}

/* Custom page top bar */
.woocommerce-page .site-main::before,
.woocommerce-checkout .site-main::before,
.woocommerce-cart .site-main::before {
    display: none;
}

/* ── 3. WC NOTICES / MESSAGES ─────────────────────────────────────────── */
.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-info,
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info {
    background: var(--rm-pri-light) !important;
    border: 1px solid #BFDBFE !important;
    border-left: 5px solid var(--rm-pri) !important;
    color: var(--rm-pri-dark) !important;
    border-radius: var(--rm-radius) !important;
    padding: 16px 22px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    font-family: var(--rm-font) !important;
    margin-bottom: 28px !important;
    box-shadow: var(--rm-shadow-sm) !important;
    line-height: 1.6;
    list-style: none !important;
}

.woocommerce-notices-wrapper .woocommerce-message::before,
.woocommerce .woocommerce-message::before,
.woocommerce-notices-wrapper .woocommerce-info::before,
.woocommerce .woocommerce-info::before {
    color: var(--rm-pri) !important;
}

.woocommerce-notices-wrapper .woocommerce-error,
.woocommerce .woocommerce-error {
    background: var(--rm-danger-bg) !important;
    border: 1px solid #FECACA !important;
    border-left: 5px solid var(--rm-danger) !important;
    color: #991B1B !important;
    border-radius: var(--rm-radius) !important;
    padding: 16px 22px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    box-shadow: var(--rm-shadow-sm) !important;
    list-style: none !important;
}

/* Remove WC default notice icons */
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
    display: none !important;
}

/* Fix multiple stacked notices and button styling */
.woocommerce-notices-wrapper .woocommerce-error li,
.woocommerce .woocommerce-error li,
.woocommerce-notices-wrapper .woocommerce-message li,
.woocommerce .woocommerce-message li {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.woocommerce-notices-wrapper .woocommerce-error li:last-child,
.woocommerce .woocommerce-error li:last-child,
.woocommerce-notices-wrapper .woocommerce-message li:last-child,
.woocommerce .woocommerce-message li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.woocommerce-notices-wrapper .woocommerce-error .button,
.woocommerce .woocommerce-error .button,
.woocommerce-notices-wrapper .woocommerce-message .button,
.woocommerce .woocommerce-message .button {
    background: var(--rm-pri) !important;
    color: #fff !important;
    padding: 6px 16px !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    white-space: nowrap;
}

/* ── 4. WC BLOCK-BASED CHECKOUT (Gutenberg Blocks) ───────────────────── */

/* 4a. Checkout Block Container */
.wp-block-woocommerce-checkout,
.wc-block-checkout {
    font-family: var(--rm-font) !important;
    padding-top: 40px !important;
    padding-bottom: 60px !important;
    max-width: 1100px;
    margin: 0 auto;
}

/* Main two-column layout */
.wc-block-checkout .wc-block-components-main {
    gap: 32px;
}

/* Heading styling */
.wc-block-checkout__main .wc-block-components-checkout-step__heading,
.wc-block-checkout__sidebar .wc-block-components-checkout-order-summary__title {
    font-family: var(--rm-font) !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    color: var(--rm-dark) !important;
    margin-bottom: 12px !important;
}

/* Step containers */
.wc-block-components-checkout-step {
    background: var(--rm-white) !important;
    border-radius: var(--rm-radius) !important;
    border: 1px solid var(--rm-border) !important;
    padding: 28px !important;
    margin-bottom: 20px !important;
    box-shadow: var(--rm-shadow-sm) !important;
    transition: box-shadow 0.3s ease;
}

.wc-block-components-checkout-step:hover {
    box-shadow: var(--rm-shadow-md) !important;
}

/* Step title */
.wc-block-components-checkout-step .wc-block-components-title {
    font-family: var(--rm-font) !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    color: var(--rm-dark) !important;
    padding-bottom: 12px !important;
    border-bottom: 2px solid #F1F5F9 !important;
    margin-bottom: 20px !important;
}

/* Step number badge */
.wc-block-components-checkout-step__heading-content .wc-block-components-checkout-step__title::before {
    background: var(--rm-pri) !important;
    border-radius: 50%;
}

/* Labels */
.wc-block-components-checkout-step label,
.wc-block-components-text-input label,
.wc-block-components-textarea label {
    font-family: var(--rm-font) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--rm-muted) !important;
    letter-spacing: 0.2px;
}

/* 4b. Text Inputs */
.wc-block-components-text-input input,
.wc-block-components-textarea textarea,
.wc-block-components-text-input input[type="text"],
.wc-block-components-text-input input[type="email"],
.wc-block-components-text-input input[type="tel"],
.wc-block-components-text-input input[type="password"],
.wc-block-components-text-input input[type="number"],
.wc-block-components-combobox .components-form-token-field__input {
    border: 1.5px solid var(--rm-border) !important;
    border-radius: 10px !important;
    padding: 14px 16px !important;
    font-family: var(--rm-font) !important;
    font-size: 14px !important;
    color: var(--rm-dark) !important;
    background: var(--rm-white) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    outline: none !important;
    box-shadow: none !important;
}

.wc-block-components-text-input input:focus,
.wc-block-components-textarea textarea:focus,
.wc-block-components-combobox .components-form-token-field__input:focus {
    border-color: var(--rm-pri) !important;
    box-shadow: 0 0 0 3px rgba(15, 76, 138, 0.12) !important;
}

/* 4c. Select / Dropdown */
.wc-block-components-country-input select,
.wc-block-components-state-input select,
select.wc-block-components-select__input {
    border: 1.5px solid var(--rm-border) !important;
    border-radius: 10px !important;
    padding: 12px 16px !important;
    font-family: var(--rm-font) !important;
    font-size: 14px !important;
    color: var(--rm-dark) !important;
    background: var(--rm-white) !important;
    appearance: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

select.wc-block-components-select__input:focus {
    border-color: var(--rm-pri) !important;
    box-shadow: 0 0 0 3px rgba(15, 76, 138, 0.12) !important;
}

/* 4d. Checkbox */
.wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"] {
    width: 20px !important;
    height: 20px !important;
    border-radius: 6px !important;
    border: 2px solid var(--rm-border) !important;
    accent-color: var(--rm-pri) !important;
    cursor: pointer;
}

.wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"]:checked {
    background-color: var(--rm-pri) !important;
    border-color: var(--rm-pri) !important;
}

.wc-block-components-checkbox .wc-block-components-checkbox__label {
    font-family: var(--rm-font) !important;
    font-size: 14px !important;
    color: #374151 !important;
}

.wc-block-components-radio-control__option {
    border: 1.5px solid var(--rm-border) !important;
    border-radius: 12px !important;
    padding: 16px 18px !important;
    margin-bottom: 10px !important;
    transition: all 0.25s ease !important;
    cursor: pointer;
    position: relative !important;
}

.wc-block-components-radio-control__option label,
.wc-block-components-radio-control-accordion-title {
    padding-left: 28px !important;
    display: block !important;
}

.wc-block-components-radio-control .wc-block-components-radio-control__input {
    position: absolute !important;
    left: 16px !important;
    top: 18px !important;
    margin: 0 !important;
}

.wc-block-components-radio-control-option-layout {
    display: flex !important;
    flex-direction: column !important;
}

.wc-block-components-radio-control__option:hover {
    border-color: #93C5FD !important;
    background: #F8FBFF !important;
}

.wc-block-components-radio-control__option--checked,
.wc-block-components-radio-control__option.wc-block-components-radio-control__option--checked {
    border-color: var(--rm-pri) !important;
    background: var(--rm-pri-light) !important;
    box-shadow: 0 0 0 3px rgba(15, 76, 138, 0.08) !important;
}

.wc-block-components-radio-control__label {
    font-family: var(--rm-font) !important;
    font-weight: 600 !important;
    color: var(--rm-dark) !important;
    font-size: 14px !important;
    margin: 0 !important;
}

.wc-block-components-radio-control__description {
    font-family: var(--rm-font) !important;
    font-size: 13px !important;
    color: var(--rm-muted) !important;
    margin-top: 4px !important;
}

/* 4f. Order Summary Sidebar */
.wc-block-checkout__sidebar .wc-block-components-sidebar-layout,
.wc-block-checkout__sidebar {
    background: var(--rm-white) !important;
    border-radius: var(--rm-radius) !important;
    border: 1px solid var(--rm-border) !important;
    padding: 28px !important;
    box-shadow: var(--rm-shadow-sm) !important;
    position: sticky;
    top: 90px;
}

.wc-block-components-order-summary .wc-block-components-order-summary__button-text {
    font-family: var(--rm-font) !important;
    font-weight: 700 !important;
    font-size: 17px !important;
    color: var(--rm-dark) !important;
}

/* Order summary items */
.wc-block-components-order-summary-item {
    padding: 16px 0 !important;
    border-bottom: 1px solid #F1F5F9 !important;
}

.wc-block-components-order-summary-item:last-child {
    border-bottom: none !important;
}

.wc-block-components-order-summary-item__description .wc-block-components-product-name {
    font-family: var(--rm-font) !important;
    font-weight: 600 !important;
    color: var(--rm-dark) !important;
    font-size: 14px !important;
}

.wc-block-components-order-summary-item__total-price {
    font-family: var(--rm-font) !important;
    font-weight: 700 !important;
    color: var(--rm-dark) !important;
}

.wc-block-components-product-metadata {
    font-family: var(--rm-font) !important;
    font-size: 12px !important;
    color: var(--rm-muted) !important;
}

/* Product image in summary (Sembunyikan untuk produk digital/VPN) */
.wc-block-components-order-summary-item__image,
.wc-block-components-order-summary-item img {
    display: none !important;
}

.wc-block-components-order-summary-item__description {
    padding-left: 0 !important;
}

/* Totals section */
.wc-block-components-totals-wrapper {
    border-top: 2px solid #F1F5F9 !important;
    padding-top: 16px !important;
    margin-top: 12px !important;
}

.wc-block-components-totals-item .wc-block-components-totals-item__label {
    font-family: var(--rm-font) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #374151 !important;
}

.wc-block-components-totals-item .wc-block-components-totals-item__value {
    font-family: var(--rm-font) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: var(--rm-dark) !important;
}

/* Grand total row */
.wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: var(--rm-dark) !important;
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
    font-size: 22px !important;
    font-weight: 800 !important;
    color: var(--rm-pri) !important;
}

/* 4g. Place Order Button */
.wc-block-checkout__actions .wc-block-components-checkout-place-order-button,
.wc-block-components-checkout-place-order-button,
.wc-block-checkout__actions button {
    background: linear-gradient(135deg, var(--rm-pri) 0%, var(--rm-pri-dark) 100%) !important;
    color: var(--rm-white) !important;
    font-family: var(--rm-font) !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    padding: 16px 32px !important;
    border-radius: 12px !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 14px rgba(15, 76, 138, 0.3) !important;
    width: 100% !important;
    letter-spacing: 0.3px;
    text-transform: none !important;
}

.wc-block-checkout__actions .wc-block-components-checkout-place-order-button:hover,
.wc-block-components-checkout-place-order-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(15, 76, 138, 0.45) !important;
    background: linear-gradient(135deg, #0d3d72 0%, #082d55 100%) !important;
}

.wc-block-checkout__actions .wc-block-components-checkout-place-order-button:active {
    transform: translateY(0) !important;
}

/* ── 5. WC BLOCK-BASED CART ───────────────────────────────────────────── */
.wp-block-woocommerce-cart,
.wc-block-cart {
    font-family: var(--rm-font) !important;
}

/* Cart table */
.wc-block-cart .wc-block-cart-items {
    background: var(--rm-white) !important;
    border-radius: var(--rm-radius) !important;
    border: 1px solid var(--rm-border) !important;
    box-shadow: var(--rm-shadow-sm) !important;
    overflow: hidden;
}

.wc-block-cart .wc-block-cart-items__header {
    background: #F1F5F9 !important;
    padding: 14px 24px !important;
}

.wc-block-cart .wc-block-cart-items__header span {
    font-family: var(--rm-font) !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    color: var(--rm-muted) !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Cart item row */
.wc-block-cart-items .wc-block-cart-items__row {
    padding: 20px 24px !important;
    border-bottom: 1px solid #F1F5F9 !important;
    transition: background 0.2s ease;
}

.wc-block-cart-items .wc-block-cart-items__row:hover {
    background: #FAFBFC !important;
}

.wc-block-cart-items .wc-block-cart-items__row:last-child {
    border-bottom: none !important;
}

/* Cart product image (Disembunyikan karena produk VPN/digital) */
.wc-block-cart-item__image {
    display: none !important;
}

/* Penyesuaian jarak nama produk karena gambar disembunyikan */
.wc-block-cart-item__wrap {
    padding-left: 0 !important;
}

/* Cart product name */
.wc-block-cart-item__product .wc-block-components-product-name {
    font-family: var(--rm-font) !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    color: var(--rm-dark) !important;
    text-decoration: none !important;
}

.wc-block-cart-item__product .wc-block-components-product-name:hover {
    color: var(--rm-pri) !important;
}

/* Cart item price */
.wc-block-cart-item__total .wc-block-components-product-price {
    font-family: var(--rm-font) !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    color: var(--rm-dark) !important;
}

/* Cart quantity selector */
.wc-block-components-quantity-selector {
    border: 1.5px solid var(--rm-border) !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    display: inline-flex !important;
}

.wc-block-components-quantity-selector input {
    font-family: var(--rm-font) !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    color: var(--rm-dark) !important;
    border: none !important;
    text-align: center !important;
    width: 50px !important;
}

.wc-block-components-quantity-selector button {
    background: #F1F5F9 !important;
    border: none !important;
    color: var(--rm-dark) !important;
    font-weight: 700 !important;
    font-size: 18px !important;
    padding: 6px 14px !important;
    cursor: pointer !important;
    transition: background 0.2s ease;
}

.wc-block-components-quantity-selector button:hover {
    background: var(--rm-pri-light) !important;
    color: var(--rm-pri) !important;
}

/* Remove item link */
.wc-block-cart-item__remove-link {
    font-family: var(--rm-font) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: var(--rm-danger) !important;
    text-decoration: none !important;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.wc-block-cart-item__remove-link:hover {
    opacity: 1;
    text-decoration: underline !important;
}

/* Cart sidebar totals */
.wc-block-cart__sidebar {
    background: var(--rm-white) !important;
    border-radius: var(--rm-radius) !important;
    border: 1px solid var(--rm-border) !important;
    padding: 28px !important;
    box-shadow: var(--rm-shadow-sm) !important;
    height: fit-content;
    position: sticky;
    top: 90px;
}

/* Proceed to Checkout button */
.wc-block-cart__submit-button,
.wc-block-cart__submit .wc-block-components-button,
.wc-block-components-button.wc-block-cart__submit-button {
    background: linear-gradient(135deg, var(--rm-pri) 0%, var(--rm-pri-dark) 100%) !important;
    color: var(--rm-white) !important;
    font-family: var(--rm-font) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    padding: 14px 28px !important;
    border-radius: 12px !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 14px rgba(15, 76, 138, 0.3) !important;
    width: 100% !important;
    text-align: center !important;
    text-decoration: none !important;
}

.wc-block-cart__submit-button:hover,
.wc-block-cart__submit .wc-block-components-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(15, 76, 138, 0.45) !important;
}

/* Coupon input */
.wc-block-components-totals-coupon .wc-block-components-totals-coupon__input-wrapper {
    display: flex;
    gap: 8px;
}

.wc-block-components-totals-coupon input {
    border: 1.5px solid var(--rm-border) !important;
    border-radius: 10px !important;
    padding: 12px 16px !important;
    font-family: var(--rm-font) !important;
    font-size: 14px !important;
}

.wc-block-components-totals-coupon input:focus {
    border-color: var(--rm-pri) !important;
    box-shadow: 0 0 0 3px rgba(15, 76, 138, 0.12) !important;
}

.wc-block-components-totals-coupon button {
    background: var(--rm-pri) !important;
    color: var(--rm-white) !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 10px 20px !important;
    font-family: var(--rm-font) !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    cursor: pointer !important;
    transition: all 0.2s ease;
}

.wc-block-components-totals-coupon button:hover {
    background: var(--rm-pri-dark) !important;
}

/* ── 6. CLASSIC CHECKOUT FORM (Shortcode-based fallback) ──────────────── */
.woocommerce form.woocommerce-checkout {
    font-family: var(--rm-font) !important;
}

/* Billing & Shipping details card */
.woocommerce-billing-fields,
.woocommerce-shipping-fields,
.woocommerce-additional-fields {
    background: var(--rm-white);
    border: 1px solid var(--rm-border);
    border-radius: var(--rm-radius);
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: var(--rm-shadow-sm);
}

.woocommerce-billing-fields h3,
.woocommerce-shipping-fields h3,
.woocommerce-additional-fields h3 {
    font-family: var(--rm-font) !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    color: var(--rm-dark) !important;
    margin-bottom: 20px !important;
    padding-bottom: 14px;
    border-bottom: 2px solid #F1F5F9;
}

/* Classic form inputs */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
    width: 100% !important;
    padding: 14px 16px !important;
    border: 1.5px solid var(--rm-border) !important;
    border-radius: 10px !important;
    font-family: var(--rm-font) !important;
    font-size: 14px !important;
    color: var(--rm-dark) !important;
    background: var(--rm-white) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    outline: none;
    box-shadow: none !important;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
    border-color: var(--rm-pri) !important;
    box-shadow: 0 0 0 3px rgba(15, 76, 138, 0.12) !important;
}

.woocommerce form .form-row label {
    font-family: var(--rm-font) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #4B5563 !important;
    margin-bottom: 6px !important;
    display: inline-block;
}

.woocommerce form .form-row .required {
    color: var(--rm-danger) !important;
}

/* Classic order review table */
#order_review_heading {
    font-family: var(--rm-font) !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    color: var(--rm-dark) !important;
    margin-bottom: 16px;
}

.woocommerce-checkout-review-order {
    background: var(--rm-white);
    border: 1px solid var(--rm-border);
    border-radius: var(--rm-radius);
    padding: 28px;
    box-shadow: var(--rm-shadow-sm);
}

.woocommerce-checkout-review-order table.shop_table {
    border: none !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    width: 100% !important;
    margin: 0 !important;
}

.woocommerce-checkout-review-order table.shop_table th {
    background: #F1F5F9 !important;
    color: var(--rm-muted) !important;
    font-family: var(--rm-font) !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 12px 16px !important;
    border-bottom: 2px solid var(--rm-border) !important;
}

.woocommerce-checkout-review-order table.shop_table th:first-child {
    border-radius: 10px 0 0 0 !important;
}

.woocommerce-checkout-review-order table.shop_table th:last-child {
    border-radius: 0 10px 0 0 !important;
}

.woocommerce-checkout-review-order table.shop_table td {
    padding: 16px !important;
    font-family: var(--rm-font) !important;
    font-size: 14px !important;
    color: #374151 !important;
    border-bottom: 1px solid #F1F5F9 !important;
    vertical-align: middle !important;
}

.woocommerce-checkout-review-order table.shop_table .order-total td {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: var(--rm-pri) !important;
    padding-top: 20px !important;
    border-top: 2px solid var(--rm-border) !important;
}

.woocommerce-checkout-review-order table.shop_table .order-total th {
    font-size: 16px !important;
    font-weight: 800 !important;
    color: var(--rm-dark) !important;
    padding-top: 20px !important;
    border-top: 2px solid var(--rm-border) !important;
}

/* Classic payment methods */
#payment {
    background: var(--rm-white) !important;
    border: 1px solid var(--rm-border) !important;
    border-radius: var(--rm-radius) !important;
    box-shadow: var(--rm-shadow-sm) !important;
    overflow: hidden;
}

#payment .payment_methods {
    border-bottom: 1px solid var(--rm-border) !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

#payment .payment_methods li {
    border-bottom: 1px solid #F1F5F9 !important;
    margin: 0 !important;
}

#payment .payment_methods li:last-child {
    border-bottom: none !important;
}

#payment .payment_methods li label {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 18px 22px !important;
    cursor: pointer;
    font-family: var(--rm-font) !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    color: var(--rm-dark) !important;
    transition: background 0.2s ease;
}

#payment .payment_methods li label:hover {
    background: #F8FBFF !important;
}

#payment .payment_methods li input[type="radio"] {
    accent-color: var(--rm-pri) !important;
    width: 18px !important;
    height: 18px !important;
}

#payment .payment_box {
    background: #F8FBFF !important;
    border-top: 1px solid #E8F0FE !important;
    padding: 18px 22px !important;
    color: var(--rm-muted) !important;
    font-family: var(--rm-font) !important;
    font-size: 13px !important;
    line-height: 1.6;
}

/* Classic Place Order Button */
#payment .place-order #place_order {
    background: linear-gradient(135deg, var(--rm-pri) 0%, var(--rm-pri-dark) 100%) !important;
    color: var(--rm-white) !important;
    font-family: var(--rm-font) !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    padding: 16px 32px !important;
    border-radius: 12px !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 14px rgba(15, 76, 138, 0.3) !important;
    width: 100% !important;
    margin-top: 20px !important;
    letter-spacing: 0.3px;
}

#payment .place-order #place_order:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(15, 76, 138, 0.45) !important;
}

/* ── 7. CLASSIC CART TABLE ────────────────────────────────────────────── */
.woocommerce table.shop_table.cart {
    border: none !important;
    background: var(--rm-white);
    border-radius: var(--rm-radius) !important;
    overflow: hidden;
    box-shadow: var(--rm-shadow-sm);
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

.woocommerce table.shop_table.cart th {
    background: #F1F5F9 !important;
    color: var(--rm-muted) !important;
    font-family: var(--rm-font) !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 14px 20px !important;
    border: none !important;
}

.woocommerce table.shop_table.cart td {
    padding: 20px !important;
    font-family: var(--rm-font) !important;
    font-size: 14px !important;
    color: var(--rm-dark) !important;
    border-bottom: 1px solid #F1F5F9 !important;
    border-top: none !important;
    vertical-align: middle !important;
}

.woocommerce table.shop_table.cart tr:last-child td {
    border-bottom: none !important;
}

.woocommerce table.shop_table.cart td.product-name a {
    font-weight: 700 !important;
    color: var(--rm-dark) !important;
    text-decoration: none !important;
}

.woocommerce table.shop_table.cart td.product-name a:hover {
    color: var(--rm-pri) !important;
}

.woocommerce table.shop_table.cart td.product-thumbnail img {
    border-radius: 10px !important;
    border: 1px solid var(--rm-border) !important;
    width: 70px !important;
    height: 70px !important;
    object-fit: cover !important;
}

.woocommerce table.shop_table.cart td.product-remove a.remove {
    width: 32px !important;
    height: 32px !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: var(--rm-danger-bg) !important;
    color: var(--rm-danger) !important;
    font-size: 18px !important;
    transition: all 0.2s ease;
}

.woocommerce table.shop_table.cart td.product-remove a.remove:hover {
    background: var(--rm-danger) !important;
    color: var(--rm-white) !important;
}

/* Cart actions (coupon + update) */
.woocommerce table.shop_table.cart td.actions {
    padding: 20px !important;
    background: #FAFBFC;
}

.woocommerce table.shop_table.cart td.actions .coupon {
    display: flex;
    gap: 10px;
    align-items: center;
}

.woocommerce table.shop_table.cart td.actions .coupon input {
    border: 1.5px solid var(--rm-border) !important;
    border-radius: 10px !important;
    padding: 10px 16px !important;
    font-family: var(--rm-font) !important;
    font-size: 14px !important;
}

.woocommerce table.shop_table.cart td.actions .coupon input:focus {
    border-color: var(--rm-pri) !important;
    box-shadow: 0 0 0 3px rgba(15, 76, 138, 0.12) !important;
}

.woocommerce table.shop_table.cart td.actions button,
.woocommerce table.shop_table.cart td.actions .button {
    background: var(--rm-pri) !important;
    color: var(--rm-white) !important;
    font-family: var(--rm-font) !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    padding: 10px 20px !important;
    border-radius: 10px !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease;
}

.woocommerce table.shop_table.cart td.actions button:hover,
.woocommerce table.shop_table.cart td.actions .button:hover {
    background: var(--rm-pri-dark) !important;
    transform: translateY(-1px);
}

/* Cart totals sidebar */
.cart_totals {
    background: var(--rm-white) !important;
    border: 1px solid var(--rm-border) !important;
    border-radius: var(--rm-radius) !important;
    padding: 28px !important;
    box-shadow: var(--rm-shadow-sm) !important;
}

.cart_totals h2 {
    font-family: var(--rm-font) !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    color: var(--rm-dark) !important;
    margin-bottom: 20px !important;
    padding-bottom: 14px;
    border-bottom: 2px solid #F1F5F9;
}

.cart_totals table.shop_table {
    border: none !important;
}

.cart_totals table.shop_table th,
.cart_totals table.shop_table td {
    border: none !important;
    padding: 12px 0 !important;
    font-family: var(--rm-font) !important;
}

.cart_totals table.shop_table th {
    font-weight: 600 !important;
    color: var(--rm-muted) !important;
    font-size: 14px !important;
}

.cart_totals table.shop_table td {
    font-weight: 700 !important;
    color: var(--rm-dark) !important;
    font-size: 14px !important;
    text-align: right !important;
}

.cart_totals table.shop_table tr.order-total td {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: var(--rm-pri) !important;
    padding-top: 16px !important;
    border-top: 2px solid var(--rm-border) !important;
}

.cart_totals table.shop_table tr.order-total th {
    font-size: 16px !important;
    font-weight: 800 !important;
    color: var(--rm-dark) !important;
    padding-top: 16px !important;
    border-top: 2px solid var(--rm-border) !important;
}

.cart_totals .wc-proceed-to-checkout a {
    background: linear-gradient(135deg, var(--rm-pri) 0%, var(--rm-pri-dark) 100%) !important;
    color: var(--rm-white) !important;
    font-family: var(--rm-font) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    padding: 16px 28px !important;
    border-radius: 12px !important;
    border: none !important;
    display: block !important;
    text-align: center !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 14px rgba(15, 76, 138, 0.3) !important;
    text-decoration: none !important;
    margin-top: 20px !important;
}

.cart_totals .wc-proceed-to-checkout a:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(15, 76, 138, 0.45) !important;
}

/* ── 8. PRODUCT PAGES / SHOP ARCHIVE ─────────────────────────────────── */

/* Product grid cards */
.woocommerce ul.products li.product {
    background: var(--rm-white);
    border: 1px solid var(--rm-border);
    border-radius: var(--rm-radius);
    overflow: hidden;
    box-shadow: var(--rm-shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 !important;
    margin: 0 !important;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-6px);
    box-shadow: var(--rm-shadow-md);
}

.woocommerce ul.products li.product a img {
    border-radius: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: var(--rm-font) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: var(--rm-dark) !important;
    padding: 16px 16px 6px !important;
}

.woocommerce ul.products li.product .price {
    font-family: var(--rm-font) !important;
    font-weight: 700 !important;
    color: var(--rm-pri) !important;
    font-size: 16px !important;
    padding: 0 16px 16px !important;
}

.woocommerce ul.products li.product .price del {
    color: var(--rm-muted) !important;
    opacity: 0.6;
}

.woocommerce ul.products li.product .price ins {
    text-decoration: none !important;
    color: var(--rm-pri) !important;
}

.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product a.add_to_cart_button {
    background: var(--rm-pri) !important;
    color: var(--rm-white) !important;
    font-family: var(--rm-font) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    padding: 10px 16px !important;
    border-radius: 0 0 var(--rm-radius) var(--rm-radius) !important;
    text-decoration: none !important;
    width: 100% !important;
    text-align: center !important;
    display: block !important;
    transition: background 0.2s ease;
    margin: 0 !important;
}

.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product a.add_to_cart_button:hover {
    background: var(--rm-pri-dark) !important;
}

/* Sale badge */
.woocommerce span.onsale {
    background: var(--rm-acc) !important;
    color: var(--rm-white) !important;
    font-family: var(--rm-font) !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    border-radius: 8px !important;
    padding: 6px 12px !important;
    min-width: auto !important;
    min-height: auto !important;
    line-height: 1.4 !important;
}

/* ── 9. SINGLE PRODUCT PAGE ──────────────────────────────────────────── */
.woocommerce div.product {
    font-family: var(--rm-font) !important;
}

.woocommerce div.product .product_title {
    font-family: var(--rm-font) !important;
    font-size: 28px !important;
    font-weight: 800 !important;
    color: var(--rm-dark) !important;
    line-height: 1.3;
}

.woocommerce div.product p.price {
    font-family: var(--rm-font) !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    color: var(--rm-pri) !important;
}

.woocommerce div.product .woocommerce-product-details__short-description {
    font-family: var(--rm-font) !important;
    font-size: 15px !important;
    line-height: 1.7 !important;
    color: #4B5563 !important;
}

.woocommerce div.product form.cart .button,
.woocommerce div.product .single_add_to_cart_button {
    background: linear-gradient(135deg, var(--rm-pri) 0%, var(--rm-pri-dark) 100%) !important;
    color: var(--rm-white) !important;
    font-family: var(--rm-font) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    padding: 14px 32px !important;
    border-radius: 12px !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 14px rgba(15, 76, 138, 0.3) !important;
}

.woocommerce div.product form.cart .button:hover,
.woocommerce div.product .single_add_to_cart_button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(15, 76, 138, 0.45) !important;
}

/* Quantity input on product page */
.woocommerce div.product form.cart .quantity input {
    border: 1.5px solid var(--rm-border) !important;
    border-radius: 10px !important;
    padding: 12px !important;
    font-family: var(--rm-font) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    width: 80px !important;
    text-align: center !important;
}

/* Product tabs */
.woocommerce div.product .woocommerce-tabs {
    margin-top: 40px;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
    padding: 0 !important;
    margin: 0 0 24px !important;
    border-bottom: 2px solid var(--rm-border) !important;
    display: flex !important;
    gap: 0 !important;
    list-style: none !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs::before {
    display: none !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    border-radius: 0 !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after {
    display: none !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    font-family: var(--rm-font) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--rm-muted) !important;
    padding: 12px 24px !important;
    border-bottom: 3px solid transparent !important;
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
    color: var(--rm-pri) !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    color: var(--rm-pri) !important;
    border-bottom-color: var(--rm-pri) !important;
    font-weight: 700 !important;
}

.woocommerce div.product .woocommerce-tabs .panel {
    background: var(--rm-white) !important;
    border: 1px solid var(--rm-border) !important;
    border-radius: var(--rm-radius) !important;
    padding: 28px !important;
    box-shadow: var(--rm-shadow-sm);
    font-family: var(--rm-font) !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
    color: #4B5563 !important;
}

/* Product images gallery */
.woocommerce div.product div.images {
    border-radius: var(--rm-radius) !important;
    overflow: hidden !important;
}

.woocommerce div.product div.images img {
    border-radius: var(--rm-radius) !important;
}

/* ── 10. ORDER RECEIVED / THANK YOU PAGE ─────────────────────────────── */
.woocommerce-order-received .woocommerce-thankyou-order-received {
    background: var(--rm-success-bg) !important;
    border: 1px solid #A7F3D0 !important;
    border-left: 5px solid var(--rm-success) !important;
    border-radius: var(--rm-radius) !important;
    padding: 22px 28px !important;
    font-family: var(--rm-font) !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #065F46 !important;
    margin-bottom: 30px !important;
}

.woocommerce-order-received .woocommerce-order-details,
.woocommerce-order-received .woocommerce-customer-details {
    background: var(--rm-white) !important;
    border: 1px solid var(--rm-border) !important;
    border-radius: var(--rm-radius) !important;
    padding: 28px !important;
    box-shadow: var(--rm-shadow-sm) !important;
    margin-bottom: 24px !important;
}

.woocommerce-order-received h2 {
    font-family: var(--rm-font) !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    color: var(--rm-dark) !important;
    margin-bottom: 16px !important;
}

/* ── 11. BREADCRUMB ──────────────────────────────────────────────────── */
.woocommerce .woocommerce-breadcrumb {
    font-family: var(--rm-font) !important;
    font-size: 13px !important;
    color: var(--rm-muted) !important;
    margin-bottom: 24px !important;
    padding: 12px 20px;
    background: var(--rm-white);
    border-radius: 10px;
    border: 1px solid var(--rm-border);
    box-shadow: var(--rm-shadow-sm);
}

.woocommerce .woocommerce-breadcrumb a {
    color: var(--rm-pri) !important;
    text-decoration: none !important;
    font-weight: 600;
}

.woocommerce .woocommerce-breadcrumb a:hover {
    color: var(--rm-pri-dark) !important;
    text-decoration: underline !important;
}

/* ── 12. WC GENERAL BUTTONS ──────────────────────────────────────────── */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
    background: var(--rm-pri) !important;
    color: var(--rm-white) !important;
    font-family: var(--rm-font) !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    padding: 12px 24px !important;
    border-radius: 10px !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 2px 8px rgba(15, 76, 138, 0.15) !important;
    text-decoration: none !important;
    display: inline-block !important;
    text-align: center;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
    background: var(--rm-pri-dark) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(15, 76, 138, 0.25) !important;
}

/* Alt buttons */
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
    background: linear-gradient(135deg, var(--rm-pri) 0%, var(--rm-pri-dark) 100%) !important;
    box-shadow: 0 4px 14px rgba(15, 76, 138, 0.3) !important;
}

.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
    box-shadow: 0 8px 25px rgba(15, 76, 138, 0.45) !important;
    transform: translateY(-2px);
}

/* ── 13. PAGINATION ──────────────────────────────────────────────────── */
.woocommerce nav.woocommerce-pagination ul {
    border: none !important;
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 40px;
}

.woocommerce nav.woocommerce-pagination ul li {
    border: none !important;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    font-family: var(--rm-font) !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    padding: 10px 16px !important;
    border-radius: 10px !important;
    border: 1px solid var(--rm-border) !important;
    background: var(--rm-white) !important;
    color: var(--rm-dark) !important;
    transition: all 0.2s ease;
}

.woocommerce nav.woocommerce-pagination ul li a:hover {
    background: var(--rm-pri-light) !important;
    border-color: var(--rm-pri) !important;
    color: var(--rm-pri) !important;
}

.woocommerce nav.woocommerce-pagination ul li span.current {
    background: var(--rm-pri) !important;
    color: var(--rm-white) !important;
    border-color: var(--rm-pri) !important;
}

/* ── 14. EMPTY CART STATE ────────────────────────────────────────────── */
.woocommerce-cart .cart-empty,
.wc-empty-cart-message {
    text-align: center !important;
    padding: 60px 24px !important;
    font-family: var(--rm-font) !important;
    font-size: 18px !important;
    color: var(--rm-muted) !important;
    background: var(--rm-white) !important;
    border-radius: var(--rm-radius) !important;
    border: 1px solid var(--rm-border) !important;
    box-shadow: var(--rm-shadow-sm);
}

.woocommerce-cart .return-to-shop,
.wc-block-cart__empty-cart__actions {
    text-align: center !important;
    margin-top: 24px !important;
}

.woocommerce-cart .return-to-shop a,
.wc-block-cart__empty-cart__actions a {
    background: linear-gradient(135deg, var(--rm-pri) 0%, var(--rm-pri-dark) 100%) !important;
    color: var(--rm-white) !important;
    font-family: var(--rm-font) !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    padding: 14px 32px !important;
    border-radius: 12px !important;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(15, 76, 138, 0.3) !important;
    transition: all 0.3s ease;
    display: inline-block !important;
}

.woocommerce-cart .return-to-shop a:hover,
.wc-block-cart__empty-cart__actions a:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(15, 76, 138, 0.45) !important;
}

/* ── 15. WC BLOCK COMPONENTS GENERAL ─────────────────────────────────── */
/* Buttons in blocks */
.wc-block-components-button:not(.is-link) {
    background: var(--rm-pri) !important;
    color: var(--rm-white) !important;
    font-family: var(--rm-font) !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
    border: none !important;
    transition: all 0.25s ease !important;
}

.wc-block-components-button:not(.is-link):hover {
    background: var(--rm-pri-dark) !important;
}

/* Link buttons */
.wc-block-components-button.is-link {
    color: var(--rm-pri) !important;
    font-family: var(--rm-font) !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

.wc-block-components-button.is-link:hover {
    color: var(--rm-pri-dark) !important;
    text-decoration: underline !important;
}

/* Loading spinner */
.wc-block-components-spinner::after {
    border-color: var(--rm-pri) transparent transparent !important;
}

/* Form token fields / Combobox */
.wc-block-components-combobox {
    margin-bottom: 16px !important;
}

.wc-block-components-combobox .components-form-token-field__input-container {
    border: 1.5px solid var(--rm-border) !important;
    border-radius: 10px !important;
    padding: 4px !important;
    background: var(--rm-white) !important;
}

.wc-block-components-combobox .components-form-token-field__input-container:focus-within {
    border-color: var(--rm-pri) !important;
    box-shadow: 0 0 0 3px rgba(15, 76, 138, 0.12) !important;
}

.wc-block-components-combobox .components-form-token-field__suggestions-list {
    border-radius: 10px !important;
    box-shadow: var(--rm-shadow-md) !important;
    border: 1px solid var(--rm-border) !important;
    overflow: hidden;
}

.wc-block-components-combobox .components-form-token-field__suggestions-list .components-form-token-field__suggestion {
    font-family: var(--rm-font) !important;
    font-size: 14px !important;
    padding: 10px 16px !important;
}

/* ── 16. ANIMATION & MICRO-INTERACTIONS ──────────────────────────────── */
@keyframes rm-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.woocommerce-billing-fields,
.woocommerce-shipping-fields,
.woocommerce-additional-fields,
.woocommerce-checkout-review-order,
.wc-block-components-checkout-step,
.wc-block-checkout__sidebar,
.wc-block-cart .wc-block-cart-items,
.wc-block-cart__sidebar,
.cart_totals {
    animation: rm-fadeInUp 0.5s ease both;
}

.wc-block-components-checkout-step:nth-child(1) { animation-delay: 0.05s; }
.wc-block-components-checkout-step:nth-child(2) { animation-delay: 0.1s; }
.wc-block-components-checkout-step:nth-child(3) { animation-delay: 0.15s; }
.wc-block-components-checkout-step:nth-child(4) { animation-delay: 0.2s; }
.wc-block-components-checkout-step:nth-child(5) { animation-delay: 0.25s; }

/* ── 17. RESPONSIVE ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .woocommerce-page .site-main,
    .woocommerce-checkout .site-main,
    .woocommerce-cart .site-main {
        padding: 24px 16px 40px;
    }
    
    .woocommerce-billing-fields,
    .woocommerce-shipping-fields,
    .woocommerce-additional-fields,
    .woocommerce-checkout-review-order {
        padding: 20px;
    }
    
    .woocommerce-billing-fields h3,
    .woocommerce-shipping-fields h3,
    .woocommerce-additional-fields h3 {
        font-size: 18px !important;
    }
    
    .wc-block-components-checkout-step {
        padding: 20px !important;
    }
    
    .woocommerce div.product .product_title {
        font-size: 22px !important;
    }
    
    .woocommerce div.product p.price {
        font-size: 20px !important;
    }
    
    .cart_totals {
        padding: 20px !important;
    }
    
    /* Stack checkout layout on mobile */
    .wc-block-checkout .wc-block-components-main,
    .wc-block-checkout .wp-block-woocommerce-checkout-fields-block,
    .wc-block-checkout .wp-block-woocommerce-checkout-totals-block {
        width: 100% !important;
        max-width: 100% !important;
        flex-basis: 100% !important;
    }
    
    .wc-block-checkout__sidebar,
    .wc-block-cart__sidebar {
        position: static;
    }
}

@media (max-width: 480px) {
    .woocommerce table.shop_table.cart td.product-thumbnail {
        display: none !important;
    }
    
    .woocommerce table.shop_table.cart td.actions .coupon {
        flex-direction: column;
        width: 100%;
    }
    
    .woocommerce table.shop_table.cart td.actions .coupon input {
        width: 100% !important;
    }
}

/* ── 18. SELECT2 OVERRIDE (WC dropdowns) ─────────────────────────────── */
.select2-container .select2-selection--single {
    border: 1.5px solid var(--rm-border) !important;
    border-radius: 10px !important;
    height: 48px !important;
    padding: 0 !important;
    background: var(--rm-white) !important;
}

.select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 48px !important;
    padding: 0 16px !important;
    font-family: var(--rm-font) !important;
    font-size: 14px !important;
    color: var(--rm-dark) !important;
}

.select2-container .select2-selection--single .select2-selection__arrow {
    height: 48px !important;
    right: 12px !important;
}

.select2-container--open .select2-selection--single {
    border-color: var(--rm-pri) !important;
    box-shadow: 0 0 0 3px rgba(15, 76, 138, 0.12) !important;
}

.select2-dropdown {
    border: 1px solid var(--rm-border) !important;
    border-radius: 10px !important;
    box-shadow: var(--rm-shadow-md) !important;
    overflow: hidden;
}

.select2-results__option {
    font-family: var(--rm-font) !important;
    font-size: 14px !important;
    padding: 10px 16px !important;
}

.select2-results__option--highlighted {
    background: var(--rm-pri) !important;
    color: var(--rm-white) !important;
}

 / *    % %  9 .   S H O P   P A G E   &   P R O D U C T   L O O P    % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %  * / 
 
 . w o o c o m m e r c e   u l . p r o d u c t s   { 
         d i s p l a y :   g r i d   ! i m p o r t a n t ; 
         g r i d - t e m p l a t e - c o l u m n s :   r e p e a t ( a u t o - f i l l ,   m i n m a x ( 2 4 0 p x ,   1 f r ) )   ! i m p o r t a n t ; 
         g a p :   2 4 p x   ! i m p o r t a n t ; 
         m a r g i n :   0   ! i m p o r t a n t ; 
         p a d d i n g :   0   ! i m p o r t a n t ; 
 } 
 
 . w o o c o m m e r c e   u l . p r o d u c t s : : b e f o r e , 
 . w o o c o m m e r c e   u l . p r o d u c t s : : a f t e r   { 
         d i s p l a y :   n o n e   ! i m p o r t a n t ; 
 } 
 
 . w o o c o m m e r c e   u l . p r o d u c t s   l i . p r o d u c t   { 
         w i d t h :   1 0 0 %   ! i m p o r t a n t ; 
         m a r g i n :   0   ! i m p o r t a n t ; 
         c l e a r :   n o n e   ! i m p o r t a n t ; 
         b a c k g r o u n d :   # f f f   ! i m p o r t a n t ; 
         b o r d e r :   1 p x   s o l i d   v a r ( - - r m - b o r d e r )   ! i m p o r t a n t ; 
         b o r d e r - r a d i u s :   v a r ( - - r m - r a d i u s )   ! i m p o r t a n t ; 
         p a d d i n g :   2 0 p x   ! i m p o r t a n t ; 
         d i s p l a y :   f l e x   ! i m p o r t a n t ; 
         f l e x - d i r e c t i o n :   c o l u m n   ! i m p o r t a n t ; 
         a l i g n - i t e m s :   c e n t e r   ! i m p o r t a n t ; 
         t e x t - a l i g n :   c e n t e r   ! i m p o r t a n t ; 
         t r a n s i t i o n :   a l l   0 . 3 s   e a s e   ! i m p o r t a n t ; 
         b o x - s h a d o w :   0   2 p x   1 0 p x   r g b a ( 0 , 0 , 0 , 0 . 0 2 )   ! i m p o r t a n t ; 
 } 
 
 . w o o c o m m e r c e   u l . p r o d u c t s   l i . p r o d u c t : h o v e r   { 
         t r a n s f o r m :   t r a n s l a t e Y ( - 4 p x )   ! i m p o r t a n t ; 
         b o x - s h a d o w :   0   1 2 p x   2 4 p x   r g b a ( 0 , 0 , 0 , 0 . 0 8 )   ! i m p o r t a n t ; 
         b o r d e r - c o l o r :   v a r ( - - r m - p r i - l i g h t )   ! i m p o r t a n t ; 
 } 
 
 / *   P r o d u c t   I m a g e   B o x   * / 
 . w o o c o m m e r c e   u l . p r o d u c t s   l i . p r o d u c t   a . w o o c o m m e r c e - L o o p P r o d u c t - l i n k   { 
         d i s p l a y :   f l e x ; 
         f l e x - d i r e c t i o n :   c o l u m n ; 
         a l i g n - i t e m s :   c e n t e r ; 
         w i d t h :   1 0 0 % ; 
         f l e x - g r o w :   1 ; 
         t e x t - d e c o r a t i o n :   n o n e   ! i m p o r t a n t ; 
 } 
 
 . w o o c o m m e r c e   u l . p r o d u c t s   l i . p r o d u c t   i m g   { 
         w i d t h :   1 0 0 %   ! i m p o r t a n t ; 
         h e i g h t :   1 8 0 p x   ! i m p o r t a n t ; 
         o b j e c t - f i t :   c o n t a i n   ! i m p o r t a n t ; 
         m a r g i n - b o t t o m :   1 6 p x   ! i m p o r t a n t ; 
         b o x - s h a d o w :   n o n e   ! i m p o r t a n t ; 
 } 
 
 / *   P r o d u c t   T i t l e   * / 
 . w o o c o m m e r c e   u l . p r o d u c t s   l i . p r o d u c t   . w o o c o m m e r c e - l o o p - p r o d u c t _ _ t i t l e   { 
         f o n t - f a m i l y :   v a r ( - - r m - f o n t )   ! i m p o r t a n t ; 
         f o n t - s i z e :   1 5 p x   ! i m p o r t a n t ; 
         f o n t - w e i g h t :   7 0 0   ! i m p o r t a n t ; 
         c o l o r :   v a r ( - - r m - d a r k )   ! i m p o r t a n t ; 
         m a r g i n :   0   0   1 6 p x   0   ! i m p o r t a n t ; 
         l i n e - h e i g h t :   1 . 4   ! i m p o r t a n t ; 
         f l e x - g r o w :   1   ! i m p o r t a n t ; 
         d i s p l a y :   f l e x ; 
         a l i g n - i t e m s :   c e n t e r ; 
         j u s t i f y - c o n t e n t :   c e n t e r ; 
 } 
 
 / *   P r i c e   * / 
 . w o o c o m m e r c e   u l . p r o d u c t s   l i . p r o d u c t   . p r i c e   { 
         c o l o r :   v a r ( - - r m - p r i )   ! i m p o r t a n t ; 
         f o n t - s i z e :   1 6 p x   ! i m p o r t a n t ; 
         f o n t - w e i g h t :   7 0 0   ! i m p o r t a n t ; 
         m a r g i n - b o t t o m :   2 0 p x   ! i m p o r t a n t ; 
 } 
 
 / *   A d d   t o   C a r t   /   R e a d   M o r e   B u t t o n   * / 
 . w o o c o m m e r c e   u l . p r o d u c t s   l i . p r o d u c t   . b u t t o n   { 
         b a c k g r o u n d :   v a r ( - - r m - p r i )   ! i m p o r t a n t ; 
         c o l o r :   # f f f   ! i m p o r t a n t ; 
         b o r d e r - r a d i u s :   8 p x   ! i m p o r t a n t ; 
         p a d d i n g :   1 0 p x   2 0 p x   ! i m p o r t a n t ; 
         f o n t - s i z e :   1 4 p x   ! i m p o r t a n t ; 
         f o n t - w e i g h t :   6 0 0   ! i m p o r t a n t ; 
         w i d t h :   1 0 0 %   ! i m p o r t a n t ; 
         t e x t - a l i g n :   c e n t e r   ! i m p o r t a n t ; 
         m a r g i n - t o p :   a u t o   ! i m p o r t a n t ; 
         t r a n s i t i o n :   a l l   0 . 2 s   e a s e   ! i m p o r t a n t ; 
 } 
 
 . w o o c o m m e r c e   u l . p r o d u c t s   l i . p r o d u c t   . b u t t o n : h o v e r   { 
         b a c k g r o u n d :   v a r ( - - r m - p r i - d a r k )   ! i m p o r t a n t ; 
 } 
 
 / *   H i d e   s t a r   r a t i n g   i f   n o t   u s e d   * / 
 . w o o c o m m e r c e   u l . p r o d u c t s   l i . p r o d u c t   . s t a r - r a t i n g   { 
         d i s p l a y :   n o n e   ! i m p o r t a n t ; 
 } 
  
 

/* ── 10. CUSTOM AUTHENTICATION PAGE ───────────────────────────────────── */
body.woocommerce-account:not(.logged-in) .site-main {
    max-width: 100% !important;
    padding: 0 !important;
}
body.woocommerce-account:not(.logged-in) .woocommerce {
    position: relative;
    padding-bottom: 100px;
}
body.woocommerce-account:not(.logged-in) .auth-hero-wrapper {
    position: relative;
    width: 100%;
    height: 55vh;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    margin-bottom: -120px; /* Pull the card up over the background */
}
body.woocommerce-account:not(.logged-in) .auth-hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}
body.woocommerce-account:not(.logged-in) .auth-hero-bg::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(15,76,138,0.7), rgba(26,26,46,0.9));
}
body.woocommerce-account:not(.logged-in) .auth-hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
    margin-top: -60px;
}
body.woocommerce-account:not(.logged-in) .auth-hero-content h1 {
    font-size: 42px !important;
    font-family: var(--rm-font) !important;
    font-weight: 800 !important;
    margin-bottom: 12px !important;
    color: #fff !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3) !important;
}
body.woocommerce-account:not(.logged-in) .auth-hero-content p {
    font-size: 18px !important;
    font-family: var(--rm-font) !important;
    color: rgba(255,255,255,0.9) !important;
}

body.woocommerce-account:not(.logged-in) #customer_login {
    position: relative;
    z-index: 10;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    padding: 40px;
    max-width: 900px;
    width: 90%;
    margin: 0 auto;
    display: flex;
    gap: 40px;
}

body.woocommerce-account:not(.logged-in) #customer_login > div {
    flex: 1;
}

body.woocommerce-account:not(.logged-in) #customer_login h2 {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: var(--rm-dark) !important;
    margin-bottom: 24px !important;
    text-align: center !important;
}

/* Style inputs */
body.woocommerce-account:not(.logged-in) .woocommerce-form-row input.input-text {
    border: 1.5px solid var(--rm-border) !important;
    border-radius: 8px !important;
    padding: 14px 16px !important;
    font-size: 15px !important;
    width: 100% !important;
    box-shadow: none !important;
    transition: all 0.3s ease !important;
    background: #fcfcfc !important;
}

body.woocommerce-account:not(.logged-in) .woocommerce-form-row input.input-text:focus {
    border-color: var(--rm-pri) !important;
    box-shadow: 0 0 0 4px var(--rm-pri-light) !important;
    background: #fff !important;
}

body.woocommerce-account:not(.logged-in) .woocommerce-form-row label {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--rm-muted) !important;
    margin-bottom: 8px !important;
    display: block !important;
}

body.woocommerce-account:not(.logged-in) .woocommerce-button {
    background: var(--rm-dark) !important;
    color: #fff !important;
    width: 100% !important;
    padding: 16px !important;
    border-radius: 10px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-align: center !important;
    margin-top: 20px !important;
}

body.woocommerce-account:not(.logged-in) .woocommerce-button:hover {
    background: #000 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1) !important;
}

/* Add vertical divider */
body.woocommerce-account:not(.logged-in) .u-column1 {
    border-right: 1px solid var(--rm-border);
    padding-right: 40px;
}
body.woocommerce-account:not(.logged-in) .u-column2 {
    padding-left: 40px;
}

@media(max-width: 768px) {
    body.woocommerce-account:not(.logged-in) #customer_login {
        flex-direction: column;
        gap: 0;
    }
    body.woocommerce-account:not(.logged-in) .u-column1 {
        border-right: none;
        border-bottom: 1px solid var(--rm-border);
        padding-right: 0;
        padding-bottom: 40px;
        margin-bottom: 40px;
    }
    body.woocommerce-account:not(.logged-in) .u-column2 {
        padding-left: 0;
    }
}
