/* Premium Tailwind Styling for WooCommerce Elements */

/* Layout & Containers - restrict squeezing to non-utility pages so Cart/Checkout are full-bleed */
body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) .woocommerce:not(body) {
    font-family: 'Montserrat', sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* Store Notices */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
    background-color: #f8fafc;
    border-top-color: #0A1F44;
    border-radius: 1rem;
    padding: 1.5rem 2rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05);
    margin-bottom: 3rem;
    font-family: 'Montserrat', sans-serif;
}
.woocommerce-message::before { color: #0A1F44; }
.woocommerce-error { border-top-color: #fc0719; }
.woocommerce-error::before { color: #fc0719; }

/* Buttons */
.woocommerce button.button, 
.woocommerce a.button, 
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
    background-color: #fc0719 !important;
    color: white !important;
    border-radius: 1rem !important;
    padding: 1rem 2rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    font-size: 0.875rem !important;
    box-shadow: 0 10px 15px -3px rgba(252, 7, 25, 0.2) !important;
    transition: all 0.3s !important;
    border: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    cursor: pointer !important;
    text-decoration: none !important;
}
.woocommerce button.button:hover, 
.woocommerce a.button:hover, 
.woocommerce input.button:hover,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
    background-color: #d90616 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 20px -3px rgba(252, 7, 25, 0.3) !important;
}
.woocommerce button.button:disabled,
.woocommerce button.button.disabled {
    background-color: #e5e7eb !important;
    color: #9ca3af !important;
    box-shadow: none !important;
    transform: none !important;
    cursor: not-allowed !important;
}

/* Tables (Cart & Checkout Review) */
.woocommerce table.shop_table {
    border: 1px solid #f3f4f6;
    border-radius: 1.5rem;
    border-collapse: separate;
    overflow: hidden;
    margin-bottom: 2rem;
    width: 100%;
}
.woocommerce table.shop_table th {
    background-color: #f8fafc;
    color: #0A1F44;
    font-weight: 700;
    padding: 1.25rem 1.5rem;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    border-bottom: 1px solid #f3f4f6;
}
.woocommerce table.shop_table td {
    padding: 1.5rem;
    border-bottom: 1px solid #f3f4f6;
    background-color: white;
}
.woocommerce table.shop_table tbody tr:last-child td {
    border-bottom: none;
}

/* Inputs & Forms */
.woocommerce form .form-row {
    margin-bottom: 1.5rem !important;
}
.woocommerce form .form-row input.input-text, 
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
    width: 100% !important;
    padding: 1rem 1.25rem !important;
    background-color: #f9fafb !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 0.75rem !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 0.875rem !important;
    color: #0A1F44 !important;
    transition: all 0.2s !important;
}
.woocommerce form .form-row input.input-text:focus, 
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
    outline: none !important;
    border-color: #fc0719 !important;
    box-shadow: 0 0 0 4px rgba(252, 7, 25, 0.08) !important;
    background-color: white !important;
}
.woocommerce form .form-row label {
    color: #0A1F44 !important;
    font-weight: 700 !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    margin-bottom: 0.5rem !important;
    display: block !important;
}

/* Cart Collaterals & Checkout Order Review (The Boxes) */
.woocommerce .cart-collaterals .cart_totals,
.woocommerce-checkout #order_review,
.woocommerce-checkout #payment {
    background-color: white !important;
    border: 1px solid #f3f4f6 !important;
    border-radius: 2rem !important;
    padding: 2.5rem !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.02), 0 4px 6px -4px rgba(0, 0, 0, 0.02) !important;
    width: 100% !important;
    float: none !important;
}
.woocommerce-checkout #payment ul.payment_methods {
    border-bottom: 1px solid #f3f4f6 !important;
    padding-bottom: 1.5rem !important;
    list-style: none !important;
    padding-left: 0 !important;
}
.woocommerce-checkout #payment ul.payment_methods li {
    margin-bottom: 1rem !important;
}
.woocommerce-checkout #payment ul.payment_methods li label {
    font-weight: 700 !important;
    color: #0A1F44 !important;
    margin-left: 0.5rem !important;
    cursor: pointer !important;
}

/* Disable fragile WooCommerce float columns on checkout */
.woocommerce-checkout .col2-set {
    width: 100% !important;
    float: none !important;
}
.woocommerce-checkout #order_review_heading {
    display: none !important; /* Managed via our custom grid layout headers */
}
.woocommerce-checkout #order_review {
    width: 100% !important;
    float: none !important;
}

/* Quantity inputs premium style */
.woocommerce .quantity .qty {
    width: 3.5rem !important;
    height: 2.5rem !important;
    border-radius: 0.5rem !important;
    border: 1px solid #e5e7eb !important;
    font-weight: 700 !important;
    color: #0A1F44 !important;
    text-align: center !important;
    background-color: #f9fafb !important;
}

/* Payment description box */
.woocommerce-checkout #payment div.payment_box {
    background-color: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 0.75rem !important;
    padding: 1rem 1.25rem !important;
    font-size: 0.875rem !important;
    color: #64748b !important;
    margin-top: 0.75rem !important;
}
.woocommerce-checkout #payment div.payment_box::before {
    display: none !important;
}


/* ═══════════════════════════════════════════════════════════════════
   SHOP TOOLBAR — Modernized result count & sorting dropdown
   ═══════════════════════════════════════════════════════════════════ */
.woocommerce .woocommerce-result-count,
.woocommerce-page .woocommerce-result-count,
.woocommerce-result-count {
    float: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    background: #f1f5f9 !important;
    color: #475569 !important;
    padding: 0.5rem 1.25rem !important;
    border-radius: 999px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    font-family: 'Montserrat', sans-serif !important;
    letter-spacing: 0.02em !important;
    margin: 0 !important;
    border: 1px solid #e2e8f0 !important;
}

.woocommerce .woocommerce-ordering,
.woocommerce-page .woocommerce-ordering,
.woocommerce-ordering {
    float: none !important;
    margin: 0 !important;
}

.woocommerce-ordering select.orderby {
    appearance: none !important;
    -webkit-appearance: none !important;
    background: #fff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 0.75rem !important;
    padding: 0.625rem 2.5rem 0.625rem 1rem !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    color: #0A1F44 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230A1F44' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    background-size: 1rem !important;
    min-width: 180px !important;
}

.woocommerce-ordering select.orderby:hover {
    border-color: #cbd5e1 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

.woocommerce-ordering select.orderby:focus {
    outline: none !important;
    border-color: #fc0719 !important;
    box-shadow: 0 0 0 3px rgba(252, 7, 25, 0.08) !important;
}

/* Shop toolbar container */
.woocommerce .woocommerce-notices-wrapper + .woocommerce-result-count,
.woocommerce .woocommerce-notices-wrapper + .woocommerce-ordering {
    margin-top: 0 !important;
}


/* ═══════════════════════════════════════════════════════════════════
   CART DRAWER & CHECKOUT MODAL STYLES
   ═══════════════════════════════════════════════════════════════════ */

/* Spinner */
.niish-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #f3f4f6;
    border-top-color: #fc0719;
    border-radius: 50%;
    animation: niish-spin 0.7s linear infinite;
}
@keyframes niish-spin {
    to { transform: rotate(360deg); }
}

/* Cart Drawer scrollbar */
#cart-drawer-container .scrollbar-thin::-webkit-scrollbar {
    width: 4px;
}
#cart-drawer-container .scrollbar-thin::-webkit-scrollbar-track {
    background: transparent;
}
#cart-drawer-container .scrollbar-thin::-webkit-scrollbar-thumb {
    background: #e5e7eb;
    border-radius: 999px;
}
#cart-drawer-container .scrollbar-thin::-webkit-scrollbar-thumb:hover {
    background: #d1d5db;
}

/* Checkout Modal — make form inputs premium inside modal */
#checkout-modal-form-container .woocommerce-checkout {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}
#checkout-modal-form-container .col2-set {
    width: 100% !important;
    float: none !important;
}
#checkout-modal-form-container .col2-set .col-1,
#checkout-modal-form-container .col2-set .col-2 {
    width: 100% !important;
    float: none !important;
    margin-bottom: 1.5rem !important;
}
#checkout-modal-form-container #order_review,
#checkout-modal-form-container #payment {
    border-radius: 1rem !important;
    padding: 1.5rem !important;
}
#checkout-modal-form-container .woocommerce-NoticeGroup {
    margin-bottom: 1rem;
}
#checkout-modal-form-container .woocommerce-error {
    border-radius: 0.75rem;
    font-size: 0.85rem;
}
#checkout-modal-form-container h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #0A1F44;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ═══════════════════════════════════════════════════════════════════
   PRODUCT CARD DESIGN SYSTEM
   ═══════════════════════════════════════════════════════════════════ */

/* Reset WooCommerce default floats/widths */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
.woocommerce li.product,
.woocommerce-page li.product,
.product-card {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ── Card Container ── */
.product-card {
    display: flex !important;
    flex-direction: column !important;
    background: #fff !important;
    border-radius: 1.25rem !important;
    border: 1px solid #f1f5f9 !important;
    overflow: hidden !important;
    transition: transform 0.35s cubic-bezier(.4,0,.2,1),
                box-shadow 0.35s ease,
                border-color 0.35s ease !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04) !important;
    height: 100% !important;          /* stretch to grid row height */
}
.product-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 16px 32px -8px rgba(10,31,68,0.10), 0 4px 8px -2px rgba(10,31,68,0.05) !important;
    border-color: #e2e8f0 !important;
}

/* ── Image ── */
.product-card__image-link {
    display: block;
    position: relative;
    overflow: hidden;
}
.product-card__image-wrap {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f8fafc;
}
.product-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(.4,0,.2,1);
}
.product-card:hover .product-card__image {
    transform: scale(1.08);
}

/* ── Badges ── */
.product-card__badge {
    position: absolute;
    top: 0.875rem;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    line-height: 1.2;
    pointer-events: none;
    font-family: 'Montserrat', sans-serif;
}
.product-card__badge--category {
    left: 0.875rem;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(8px);
    color: #0A1F44;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.product-card__badge--sale {
    right: 0.875rem;
    background: #fc0719;
    color: #fff;
    box-shadow: 0 2px 6px rgba(252,7,25,0.3);
}

/* ── Body ── */
.product-card__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;         /* fill remaining card height */
    padding: 1.125rem 1.25rem 1.25rem;
}
.product-card__title-link {
    text-decoration: none !important;
}
.product-card__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #0A1F44;
    line-height: 1.35;
    margin: 0 0 0.35rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}
.product-card__title-link:hover .product-card__title {
    color: #fc0719;
}
.product-card__desc {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    color: #94a3b8;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 auto;       /* push footer down */
    padding-bottom: 0.75rem;
}

/* ── Footer (Price + Button) — always bottom-aligned ── */
.product-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f1f5f9;
    margin-top: auto;        /* pin to bottom of card */
}
.product-card__price {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    color: #fc0719;
    white-space: nowrap;
    line-height: 1;
}
/* WooCommerce wraps sale prices in <del> + <ins> */
.product-card__price del {
    color: #cbd5e1;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 0.25rem;
}
.product-card__price ins {
    text-decoration: none;
}

/* ── Actions container ── */
.product-card__actions {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex-shrink: 0;
}

/* ── Add to Cart Button — compact modern pill ── */
.product-card .niish-add-to-cart.button,
.product-card a.button.add_to_cart_button {
    background: linear-gradient(135deg, #fc0719 0%, #e00514 100%) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 0.625rem !important;
    padding: 0.4rem 0.85rem !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 0.675rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    white-space: nowrap !important;
    line-height: 1.4 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.3rem !important;
    cursor: pointer !important;
    text-decoration: none !important;
    box-shadow: 0 2px 6px rgba(252,7,25,0.18) !important;
    transition: all 0.25s cubic-bezier(.4,0,.2,1) !important;
    position: relative !important;
    overflow: hidden !important;
}
.product-card .niish-add-to-cart.button:hover,
.product-card a.button.add_to_cart_button:hover {
    background: linear-gradient(135deg, #e00514 0%, #c20411 100%) !important;
    box-shadow: 0 4px 12px rgba(252,7,25,0.25) !important;
    transform: translateY(-1px) !important;
}
.product-card .niish-add-to-cart.button:active,
.product-card a.button.add_to_cart_button:active {
    transform: translateY(0) scale(0.97) !important;
}

/* "Added" state — green check feedback */
.product-card a.button.added {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    box-shadow: 0 2px 6px rgba(5,150,105,0.2) !important;
    pointer-events: none !important;
}

/* ── View Cart Link (injected by WooCommerce AJAX) ── */
.product-card .added_to_cart.wc-forward,
.woocommerce .product-card a.added_to_cart.wc-forward {
    display: none !important;
}


/* ── Loading spinner on button ── */
.product-card a.button.loading::after {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255,255,255,0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: niish-spin 0.55s linear infinite;
    content: '';
    margin-left: 0.35rem;
    flex-shrink: 0;
}

/* ── Responsive ── */
@media (max-width: 639px) {
    #niish-cart-drawer {
        max-width: 100% !important;
    }
    .product-card__body {
        padding: 0.875rem 1rem 1rem;
    }
    .product-card__title {
        font-size: 0.875rem;
    }
    .product-card__price {
        font-size: 0.95rem;
    }
    .product-card .niish-add-to-cart.button,
    .product-card a.button.add_to_cart_button {
        padding: 0.35rem 0.65rem !important;
        font-size: 0.625rem !important;
    }
}

/* Premium Checkout Layout: CSS Grid for side-by-side layout on large screens */
@media (min-width: 1024px) {
    .woocommerce-checkout form.checkout,
    #checkout-modal-form-container form.checkout {
        display: grid !important;
        grid-template-columns: 1.2fr 1fr !important;
        gap: 2.5rem !important;
        align-items: start !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .woocommerce-checkout .col2-set,
    #checkout-modal-form-container .col2-set {
        width: 100% !important;
        float: none !important;
        margin: 0 !important;
    }
    
    .woocommerce-checkout #order_review,
    #checkout-modal-form-container #order_review {
        width: 100% !important;
        float: none !important;
        margin: 0 !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   WOOCOMMERCE BLOCKS (CHECKOUT & CART) MODERNIZATION
   ═══════════════════════════════════════════════════════════════════ */

/* Push main content container down to clear the fixed navigation header */
.woocommerce-cart #main-content,
.woocommerce-checkout #main-content,
.woocommerce-account #main-content {
    padding-top: 140px !important;
    background-color: #F8FAFC !important;
}

@media (min-width: 768px) {
    .woocommerce-cart #main-content,
    .woocommerce-checkout #main-content,
    .woocommerce-account #main-content {
        padding-top: 180px !important;
    }
}

/* Style the Checkout block wrapper */
.wc-block-checkout,
.wp-block-woocommerce-checkout {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 2rem 1.5rem 4rem !important;
    font-family: 'Montserrat', sans-serif !important;
    background-color: transparent !important;
}

/* Redesign Checkout Main Form and Sidebar as premium white cards */
.wc-block-checkout__main,
.wc-block-checkout__sidebar {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 24px !important;
    padding: 2.5rem !important;
    box-shadow: 0 10px 25px -5px rgba(10, 31, 68, 0.03), 0 8px 10px -6px rgba(10, 31, 68, 0.03) !important;
    margin-bottom: 2rem !important;
}

/* Remove default background colors or borders in inner sections to keep it clean */
.wc-block-checkout__contact-fields,
.wc-block-checkout__billing-address,
.wc-block-checkout__shipping-address,
.wc-block-checkout__shipping-option,
.wc-block-checkout__payment-method {
    border: none !important;
    padding: 0 !important;
    background: transparent !important;
    margin-bottom: 2rem !important;
}

/* Beautiful input fields */
.wc-block-components-text-input input,
.wc-block-components-combobox select,
.wc-block-components-textarea textarea {
    width: 100% !important;
    padding: 14px 18px !important;
    border: 2px solid #E2E8F0 !important;
    border-radius: 14px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    font-family: 'Montserrat', sans-serif !important;
    color: #0A1F44 !important;
    background: #FAFBFC !important;
    transition: all 0.2s ease-in-out !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Input focus state */
.wc-block-components-text-input input:focus,
.wc-block-components-combobox select:focus,
.wc-block-components-textarea textarea:focus {
    border-color: #fc0719 !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(252, 7, 25, 0.08) !important;
}

/* Style label font weights and color */
.wc-block-components-text-input label,
.wc-block-components-combobox label,
.wc-block-components-textarea label {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 600 !important;
    color: #0A1F44 !important;
    font-size: 13px !important;
}

/* Headings in Checkout Block */
.wc-block-checkout h2,
.wc-block-checkout h3,
.wc-block-checkout__main h2,
.wc-block-checkout__sidebar h2 {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 800 !important;
    color: #0A1F44 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    font-size: 1.15rem !important;
    border-bottom: 2px solid #F1F5F9 !important;
    padding-bottom: 0.875rem !important;
    margin-bottom: 1.5rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

/* Premium Place Order button */
.wc-block-components-checkout-place-order-button {
    background-color: #fc0719 !important;
    background: linear-gradient(135deg, #fc0719 0%, #d90616 100%) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 16px 32px !important;
    border-radius: 16px !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 8px 24px -4px rgba(252, 7, 25, 0.35) !important;
    width: 100% !important;
    margin-top: 1.5rem !important;
}

.wc-block-components-checkout-place-order-button:hover {
    background: linear-gradient(135deg, #d90616 0%, #c20411 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 32px -4px rgba(252, 7, 25, 0.45) !important;
}

.wc-block-components-checkout-place-order-button:active {
    transform: scale(0.98) !important;
}

/* Modernize payment options selector in block */
.wc-block-components-radio-control-item {
    border: 2px solid #F1F5F9 !important;
    border-radius: 16px !important;
    padding: 1rem 1.25rem !important;
    margin-bottom: 0.75rem !important;
    transition: all 0.2s ease !important;
    background: #FAFBFC !important;
}

.wc-block-components-radio-control-item:hover {
    border-color: #E2E8F0 !important;
    background: #ffffff !important;
}

.wc-block-components-radio-control-item.is-selected {
    border-color: #fc0719 !important;
    background: #ffffff !important;
}

.wc-block-components-radio-control-item-label {
    font-weight: 600 !important;
    color: #0A1F44 !important;
}

/* Styling checkout sidebar items */
.wc-block-components-sidebar-item {
    border-bottom: 1px solid #F1F5F9 !important;
    padding-bottom: 1.5rem !important;
    margin-bottom: 1.5rem !important;
}

.wc-block-components-sidebar-item:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* Line item descriptions in cart blocks */
.wc-block-components-product-name {
    font-weight: 700 !important;
    color: #0A1F44 !important;
}

/* Total amounts and money values */
.wc-block-components-totals-item__value,
.wc-block-components-formatted-money-amount {
    font-weight: 700 !important;
    color: #0A1F44 !important;
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
.wc-block-components-totals-footer-item .wc-block-components-formatted-money-amount {
    color: #fc0719 !important;
    font-size: 1.35rem !important;
    font-weight: 800 !important;
}

/* Coupon details link */
.wc-block-components-totals-coupon-link {
    color: #fc0719 !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}
.wc-block-components-totals-coupon-link:hover {
    text-decoration: underline !important;
}

/* Modernize cart block elements (on cart page if using blocks) */
.wc-block-cart__main,
.wc-block-cart__sidebar {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 24px !important;
    padding: 2.5rem !important;
    box-shadow: 0 10px 25px -5px rgba(10, 31, 68, 0.03), 0 8px 10px -6px rgba(10, 31, 68, 0.03) !important;
}

/* ═══════════════════════════════════════════════════════════════════
   ORDER RECEIVED (THANK YOU) PAGE PREMIUM STYLING
   ═══════════════════════════════════════════════════════════════════ */

/* Section Headers */
.thankyou-main-details-wrapper .woocommerce-order-details__title {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 800 !important;
    color: #0A1F44 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    font-size: 1.25rem !important;
    border-bottom: 2px solid #F1F5F9 !important;
    padding-bottom: 0.875rem !important;
    margin-bottom: 1.5rem !important;
}

/* Details Table */
.thankyou-main-details-wrapper table.woocommerce-table--order-details {
    width: 100% !important;
    border-collapse: collapse !important;
    margin-bottom: 2.5rem !important;
    border: none !important;
}

.thankyou-main-details-wrapper table.woocommerce-table--order-details th,
.thankyou-main-details-wrapper table.woocommerce-table--order-details td {
    padding: 14px 16px !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 14px !important;
    border-bottom: 1px solid #F1F5F9 !important;
    color: #4A5568 !important;
}

.thankyou-main-details-wrapper table.woocommerce-table--order-details thead th {
    font-weight: 700 !important;
    color: #0A1F44 !important;
    text-transform: uppercase !important;
    font-size: 11px !important;
    letter-spacing: 0.15em !important;
    background-color: #F8FAFC !important;
    border-bottom: 2px solid #E2E8F0 !important;
}

.thankyou-main-details-wrapper table.woocommerce-table--order-details tbody td a {
    color: #0A1F44 !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

.thankyou-main-details-wrapper table.woocommerce-table--order-details tbody td a:hover {
    color: #fc0719 !important;
}

.thankyou-main-details-wrapper table.woocommerce-table--order-details tfoot th {
    font-weight: 600 !important;
    color: #0A1F44 !important;
    text-align: left !important;
}

.thankyou-main-details-wrapper table.woocommerce-table--order-details tfoot td {
    font-weight: 700 !important;
    color: #0A1F44 !important;
    text-align: right !important;
}

.thankyou-main-details-wrapper table.woocommerce-table--order-details tfoot tr:last-child th,
.thankyou-main-details-wrapper table.woocommerce-table--order-details tfoot tr:last-child td {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #fc0719 !important;
    border-top: 2px solid #0A1F44 !important;
    padding-top: 20px !important;
    border-bottom: none !important;
}

/* Customer details and addresses section */
.thankyou-main-details-wrapper .woocommerce-customer-details {
    margin-top: 3rem !important;
    border-top: 2px dashed #E2E8F0 !important;
    padding-top: 2.5rem !important;
}

.thankyou-main-details-wrapper .woocommerce-customer-details__title {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 800 !important;
    color: #0A1F44 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    font-size: 1.25rem !important;
    margin-bottom: 1.5rem !important;
}

.thankyou-main-details-wrapper .woocommerce-columns--addresses {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
}

@media (min-width: 640px) {
    .thankyou-main-details-wrapper .woocommerce-columns--addresses {
        grid-template-columns: 1fr 1fr !important;
    }
}

.thankyou-main-details-wrapper .woocommerce-column__title {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 700 !important;
    color: #0A1F44 !important;
    font-size: 0.95rem !important;
    margin-bottom: 1rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

.thankyou-main-details-wrapper address {
    background: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 18px !important;
    padding: 1.5rem !important;
    font-style: normal !important;
    color: #4A5568 !important;
    line-height: 1.7 !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 14px !important;
}

.thankyou-main-details-wrapper .woocommerce-customer-details--phone,
.thankyou-main-details-wrapper .woocommerce-customer-details--email {
    font-weight: 600 !important;
    color: #0A1F44 !important;
    display: block !important;
    margin-top: 0.5rem !important;
}

/* Payment Instructions BACS list or content inside */
.thankyou-payment-instructions p {
    margin-bottom: 1rem !important;
}

.thankyou-payment-instructions ul.wc-bacs-bank-details {
    list-style: none !important;
    padding: 0 !important;
    margin: 1.5rem 0 0 !important;
}

.thankyou-payment-instructions ul.wc-bacs-bank-details li {
    background: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 16px !important;
    padding: 1.25rem !important;
    margin-bottom: 1rem !important;
}

.thankyou-payment-instructions ul.wc-bacs-bank-details li:last-child {
    margin-bottom: 0 !important;
}

.thankyou-payment-instructions ul.wc-bacs-bank-details li h3 {
    margin-bottom: 0.75rem !important;
    color: #fc0719 !important;
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    border: none !important;
    padding: 0 !important;
}

.thankyou-payment-instructions ul.wc-bacs-bank-details li .wc-bacs-bank-details-account-name {
    font-weight: 700 !important;
    color: #0A1F44 !important;
    margin-bottom: 0.5rem !important;
}

.thankyou-payment-instructions ul.wc-bacs-bank-details li p {
    margin-bottom: 0.25rem !important;
    font-size: 13px !important;
}

.thankyou-payment-instructions ul.wc-bacs-bank-details li p strong {
    color: #0A1F44 !important;
}

/* ═══════════════════════════════════════════════════════════════════
   GLOBAL NAVIGATION BAR COLOR ENFORCEMENTS
   ═══════════════════════════════════════════════════════════════════ */

/* Fallbacks for Tailwind arbitrary values added by JS */
.bg-\[\#0A1F44\] {
    background-color: #0A1F44 !important;
}
.bg-transparent {
    background-color: transparent !important;
}




