/* =========================
   IMPORT FONT
========================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

/* =========================
   GLOBAL
========================= */

html,
body {
    height: 100%;
    margin: 0;
    font-family: 'Outfit', sans-serif;
    background: #f8fafc;
}

:where(.wp-site-blocks *:focus) {
    outline-width: 0px !important;
    outline-style: none !important;
}

body.page-id-354 {
    overflow: hidden;
}

.page-id-354 table,
td,
th {
    border: none;
}

@media (min-width: 922px) {
    .ast-container {
        max-width: none;
    }
}

body {
    color: #1e293b;
}

a {
    text-decoration: none !important;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: #fff;
    border-bottom: 1px solid #f1f5f9;
}

body.page-id-354 .site-footer,
body.page-id-354 footer {
    display: none !important;
}

/* BUTTON DEFAULT */
.wp-element-button,
.button {
    outline: none;
    background-color: var(--clover-primary) !important;
    color: #fff;
}

/* =========================
   WRAPPER & STORE LAYOUT
========================= */

.clover-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
}

.clover-store {
    display: flex;
    height: calc(100vh - 250px);
    overflow: hidden;
    gap: 32px;
    padding: 0 24px;
}

/* SCROLLBAR HIDING */
.clover-sidebar,
.clover-content {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.clover-sidebar::-webkit-scrollbar,
.clover-content::-webkit-scrollbar {
    display: none;
}

/* =========================
   SIDEBAR
========================= */

.clover-sidebar {
    width: 220px;
    position: sticky;
    top: 20px;
    max-height: 80vh;
    overflow-y: auto;
}

.clover-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.clover-sidebar li {
    padding: 12px 14px;
    cursor: pointer;
    border-radius: 8px;
    font-weight: 500;
    transition: .3s;
    color: #475569;
}

.clover-sidebar li:hover {
    background: #f0f7f4;
    color: var(--clover-primary);
}

.clover-sidebar li.active {
    background: var(--clover-primary);
    color: #fff;
    box-shadow: 4px 4px 0 rgba(13, 66, 40, 0.25);
}

/* =========================
   CONTENT & CATEGORIES
========================= */

.clover-content {
    flex: 1;
    overflow-y: auto;
    height: 100%;
}

.clover-category {
    padding-top: 30px;
}

.clover-category-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--clover-primary);
    text-align: center;
    margin-bottom: 25px;
}

.clover-category-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: #F0BD3D;
    margin: 8px auto 0;
}

/* =========================
   PRODUCTS GRID & ROW CARDS
========================= */

.clover-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(45%, 1fr));
    gap: 20px;
}

.clover-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #f1f1f1;
    transition: .3s;
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: flex-start;
    padding: 18px;
    position: relative;
    min-height: 140px;
}

.clover-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .08);
}

.clover-img {
    width: 110px;
    min-width: 110px;
    height: 110px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.clover-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.clover-body {
    padding: 0 15px 0 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.clover-body h3 {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    margin: 0 0 6px 0;
}

.price {
    color: #F0BD3D;
    font-weight: 700;
    margin-bottom: 8px;
}

.desc {
    font-size: 13px;
    color: #777;
    margin-bottom: 0;
    line-height: 1.4;
}

/* =========================
   BUTTONS & QUANTITY UTILITIES (REALIGNED)
========================= */

.clover-card {
    position: relative;
}

.clover-cart-box {
    position: absolute;
    bottom: 16px;
    right: 52px;
    z-index: 10;
    margin-top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: auto;
    height: 32px;
}

.clover-add-btn,
.clover-customize-btn {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    border-radius: 50% !important;
    background: var(--clover-primary) !important;
    color: #fff !important;
    font-size: 22px !important;
    font-weight: 400 !important;
    padding: 0 !important;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15) !important;
    text-indent: -9999px;
    overflow: hidden;
    position: relative;
    display: inline-flex;
    justify-content: center !important;
    align-items: center !important;
}

.clover-add-btn::before,
.clover-customize-btn::before {
    content: "+";
    text-indent: 0;
    position: absolute;
    font-size: 20px;
    line-height: 32px;
}

.clover-add-btn:hover,
.clover-customize-btn:hover {
    background: var(--clover-secondary) !important;
}

.clover-qty-box {
    display: inline-flex;
    position: absolute;
    bottom: -5px;
    right: -24px;
    z-index: 10;
    margin-top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: auto;
    height: 32px;
    background: var(--clover-primary) !important;
    border-radius: 20px;
    padding: 2px 4px;
    gap: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
}

.clover-qty-box button {
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    background: transparent !important;
    color: #fff !important;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.clover-qty-box button:hover {
    background: rgba(255, 255, 255, 0.15) !important;
}

.qty-number {
    min-width: 20px;
    text-align: center;
    font-weight: 600;
    font-size: 13px;
    color: #fff !important;
    padding: 0 2px;
}

.clover-card .clover-added-cart-box {
    display: none !important;
}

.clover-out-of-stock-card .clover-add-btn {
    background: #cbd5e1 !important;
    color: #64748b !important;
    cursor: not-allowed;
}

.clover-out-of-stock-card .clover-add-btn::before {
    content: "✕";
    font-size: 12px;
}

/* =========================
   MOBILE RESPONSIVE
========================= */

.clover-mobile-cats {
    display: none;
}

@media(max-width:768px) {
    .clover-store {
        flex-direction: column;
        height: auto;
        padding: 0 16px;
    }

    .clover-sidebar {
        display: none;
    }

    .clover-mobile-cats {
        display: flex;
        overflow-x: auto;
        gap: 10px;
        margin-bottom: 15px;
    }

    .clover-mobile-cats div {
        padding: 8px 16px;
        background: #f3f3f3;
        border-radius: 20px;
        white-space: nowrap;
        cursor: pointer;
        font-weight: 500;
    }

    .clover-mobile-cats div.active {
        background: var(--clover-primary);
        color: #fff;
    }

    .clover-content {
        max-height: 70dvh;
        padding-bottom: 10px;
    }

    .clover-products {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .clover-card {
        padding: 12px;
    }

    .clover-img {
        width: 90px;
        min-width: 90px;
        height: 90px;
    }

    .clover-body {
        padding: 0 10px 0 0;
    }

    .clover-body h3 {
        font-size: 14px;
    }

    .desc {
        font-size: 12px;
    }
}

/* =========================
   POPUP MODAL INTERFACE (FIXED WOOCOMMERCE VARIATIONS)
========================= */

.clover-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.clover-modal-overlay.active {
    display: flex;
}

.clover-modal {
    width: 100%;
    max-width: 500px;
    background: #fff;
    border-radius: 24px;
    position: relative;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body.clover-modal-open {
    overflow: hidden;
}

.clover-modal-product {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 85vh;
    overflow-y: auto;
}

/* 1. Header Banner Image Layout */
.clover-modal-image {
    width: 100% !important;
    height: 220px;
    min-height: 220px;
    position: relative;
    background: #f8fafc;
}

.clover-modal-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* 2. Modal Body Areas */
.clover-modal-summary {
    width: 100% !important;
    padding: 24px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

/* Clean up titles from WooCommerce defaults */
.clover-modal-summary h1.product_title {
    font-size: 24px;
    font-weight: 700;
    color: var(--clover-primary);
    margin: 0 0 8px 0;
    line-height: 1.3;
}

/* Price positioning under title */
.clover-modal-summary .price {
    font-size: 18px;
    font-weight: 600;
    color: #F0BD3D;
    margin: 0 0 20px 0;
}

/* 3. WooCommerce Select Tables Restyling */
.clover-modal-summary table.variations {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
}

.clover-modal-summary table.variations tr {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.clover-modal-summary table.variations th.label {
    padding: 0;
    text-align: left;
    display: block;
}

.clover-modal-summary table.variations th.label label {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.clover-modal-summary table.variations td.value {
    padding: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

/* Dynamic dropdown element styling rules */
.clover-modal-summary table.variations td.value select {
    width: 100% !important;
    height: 42px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 10px !important;
    padding: 0 12px !important;
    font-family: inherit !important;
    font-size: 14px !important;
    color: #0f172a !important;
    background-color: #ffffff !important;
    outline: none !important;
    box-sizing: border-box !important;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' 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");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

/* Reset variations styling links */
.clover-modal-summary .reset_variations {
    font-size: 12px;
    color: var(--clover-secondary) !important;
    text-decoration: none;
    font-weight: 500;
}

/* 4. Action Area Container Blocks (Matching Bottom Bar Layout) */
.woocommerce-variation-add-to-cart {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

/* Compact input style adjustments */
.woocommerce-variation-add-to-cart .quantity {
    display: inline-block;
    margin: 0;
}

.woocommerce-variation-add-to-cart .quantity input.qty {
    width: 70px !important;
    height: 42px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 10px !important;
    text-align: center !important;
    font-family: inherit !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    background: #f8fafc !important;
    outline: none !important;
    box-sizing: border-box !important;
}

/* Elegant primary submission button target configurations */
.woocommerce-variation-add-to-cart .single_add_to_cart_button {
    flex: 1;
    height: 42px !important;
    background: var(--clover-primary) !important;
    /* Green primary color theme link */
    color: #fff !important;
    border-radius: 10px !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border: none !important;
    cursor: pointer !important;
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    transition: background 0.2s !important;
    box-shadow: none !important;
}

.woocommerce-variation-add-to-cart .single_add_to_cart_button:hover {
    background: var(--clover-secondary) !important;
    /* Hover state transition to red */
}

/* Stock information text */
.woocommerce-variation-availability {
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 4px;
}

/* 5. Floating Close Button Style Layout */
.clover-close-modal {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    font-weight: 700;
    color: #475569;
    transition: color 0.2s, transform 0.2s;
}

.clover-close-modal:hover {
    transform: scale(1.05);
    color: var(--clover-secondary);
}

@media(max-width:768px) {
    .clover-modal {
        max-height: 100vh;
        height: 100vh;
        border-radius: 0;
    }
}

/* =========================
   SECONDARY LIST VIEW CARD DESIGN
========================= */

.clover-list-products {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.clover-list-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #eee;
    transition: .3s;
    position: relative;
}

.clover-list-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, .08);
}

.clover-list-img {
    width: 120px;
    min-width: 120px;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
}

.clover-list-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.clover-list-content {
    flex: 1;
}

.clover-list-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #222;
}

.clover-list-price {
    color: #F0BD3D;
    font-weight: 700;
    margin-bottom: 10px;
}

.clover-list-desc {
    color: #777;
    font-size: 14px;
    line-height: 1.5;
}

.clover-list-action {
    width: 240px;
    min-width: 240px;
}

@media(max-width:768px) {
    .clover-list-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .clover-list-img {
        width: 100%;
        height: 220px;
    }

    .clover-list-action {
        width: 100%;
        min-width: 100%;
    }
}


/* ==========================================================================
   🏠 GLOBAL THEME LAYOUT & COLORS (APPLIES TO ALL SCREEN SIZES)
   ========================================================================== */

.clover-homepage {
    width: 100%;
    /* max-width: 1200px;
    margin: 0 auto;
    padding: 15px; */
    box-sizing: border-box;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 30px;
    overflow: hidden;
}

/* 🖼️ HERO BANNER */
.clover-hero-banner {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.clover-hero-banner img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* 📄 SECTION HEADER */
.clover-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.clover-section-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--clover-primary);
    /* Green theme color */
    margin: 0;
    margin-bottom: 0px !important;
}

.clover-section-header a {
    color: var(--clover-primary) !important;
    text-decoration: none !important;
}

.clover-section-header .view-all-btn {
    font-size: 14px;
    font-weight: 600;
    color: var(--clover-primary);
    /* Green theme color */
    text-decoration: none;
    transition: color 0.2s;
}

.clover-section-header .view-all-btn:hover {
    color: var(--clover-secondary);
    /* Hover color changes to red */
}

/* 🟢 GLOBAL PRODUCT PRICE COLOR */
.price,
.clover-homepage .price,
.clover-body .price,
.clover-list-price {
    color: var(--clover-primary) !important;
    /* Set to deep green globally */
    font-weight: 700;
}

/* 🔴 GLOBAL BUTTONS & INTERACTION ELEMENTS */
.clover-add-btn,
.clover-customize-btn,
.wp-element-button,
.button,
.single_add_to_cart_button {
    background-color: var(--clover-secondary) !important;
    /* Base color set to theme red */
    color: var(--clover-secondary-contrast) !important;
    /* Clean white text color */
    font-weight: 700 !important;
    transition: background-color 0.2s, color 0.2s;
}

.clover-add-btn:hover,
.clover-customize-btn:hover,
.wp-element-button:hover,
.button:hover,
.single_add_to_cart_button:hover {
    background-color: var(--clover-primary) !important;
    /* Shifts to green on interaction hover */
    color: var(--clover-primary-contrast) !important;
}

/* 🛒 CATEGORY GRID (DESKTOP DEFAULT LAYOUT) */
.clover-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
    padding: 10px 0;
}

/* 🃏 CATEGORY CARD */
.clover-cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    background: #ffffff;
    padding: 15px 10px;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    transition: transform 0.3s, box-shadow 0.3s;
}

.clover-cat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
}

/* ⭕ ROUND CIRCLE IMAGE WRAPPER */
.clover-cat-image-wrapper {
    width: 95px;
    height: 95px;
    border-radius: 50%;
    background-color: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 12px;
    transition: background-color 0.3s;
}

.clover-cat-card:hover .clover-cat-image-wrapper {
    background-color: #f0f7f4;
    /* Light green tint behind circle on hover */
}

.clover-cat-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #f7f7f7;
}

/* 🏷️ CATEGORY NAME TEXT */
.clover-cat-name {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.clover-cat-grid-container {
    background: white;
    border-radius: 10px;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

/* 📱 1. TABLET DEVICES (max-width: 992px) */
@media (max-width: 1230px) and (min-width:776px) {
    ul.products {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

/* ==========================================================================
   📱 RESPONSIVE BREAKPOINTS (STRUCTURE ONLY)
   ========================================================================== */

/* 📱 1. TABLET DEVICES (max-width: 992px) */
@media (max-width: 992px) {

    .clover-category-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }

    .clover-hero-banner {
        margin-bottom: 24px;
    }

    .clover-section-header h2 {
        font-size: 20px;
    }
}

/* 📱 2. MOBILE DEVICES (max-width: 768px) */
@media (max-width: 768px) {
    .clover-homepage {
        padding: 10px;
    }

    .clover-hero-banner {
        border-radius: 0px;
        margin-bottom: 0px !important;
        width: 110%;
        margin-left: -20px;
    }

    .clover-section-header h2 {
        font-size: 18px;
    }

    .clover-category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .clover-cat-card {
        padding: 12px 6px;
        border-radius: 12px;
    }

    .clover-cat-image-wrapper {
        width: 100%;
        height: 100%;
        margin-bottom: 8px;
    }

    .clover-cat-name {
        font-size: 12px;
        font-weight: 500;
    }

    /* 🟢 MOBILE FIXED BOTTOM NAVBAR STYLING */
    .clover-mobile-nav-bar {
        position: fixed !important;
        bottom: 0;
        left: 0;
        right: 0;
        height: 60px;
        background: var(--clover-primary) !important;
        /* Green background */
        display: flex !important;
        justify-content: space-around;
        align-items: center;
        z-index: 9999;
    }

    .clover-mobile-nav-item {
        color: var(--clover-primary-contrast) !important;
        /* White text navigation labels */
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        font-size: 11px;
    }

    /* 🔴 MOBILE NAV BADGE */
    .clover-nav-badge {
        position: absolute;
        top: -6px;
        right: 4px;
        background: var(--clover-secondary) !important;
        /* Red badge container */
        color: var(--clover-secondary-contrast) !important;
        /* White text indicator digits */
        font-size: 10px !important;
        font-weight: 700;
        min-width: 16px;
        height: 16px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .entry-content.wp-block-post-content.has-global-padding.is-layout-constrained.wp-block-post-content-is-layout-constrained {
        padding: 0px;
    }
}

/* 📱 3. SMALL MOBILE DEVICES (max-width: 380px) */
@media (max-width: 380px) {
    .clover-category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

/* ==========================================================================
   📦 ARCHIVE COMPONENT ACTIONS (MATCHING KESAR GROCERY LAYOUT)
   ========================================================================== */

.clover-archive-actions-wrapper {
    width: 100%;
    margin-top: 12px;
    position: relative;
    box-sizing: border-box;
}

/* 🛒 STATE A: ACTION PANELS HOUSING */
.clover-action-state-add {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

/* Qty field label container block */
.clover-qty-label-box {
    display: flex;
    align-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    background: #ffffff;
    height: 34px;
    padding: 0 6px;
}

.clover-qty-label-box span {
    font-size: 13px;
    color: #64748b;
    margin-right: 4px;
    font-weight: 500;
}

.clover-archive-initial-qty {
    width: 38px;
    height: 100%;
    border: none;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    color: #0f172a;
    outline: none;
    background: transparent;
}

/* Hide default spin inputs arrows cleanly */
.clover-archive-initial-qty::-webkit-outer-spin-button,
.clover-archive-initial-qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Red Action Add Trigger */
.clover-archive-add-trigger {
    flex: 1;
    height: 34px;
    background: var(--clover-secondary) !important;
    /* Theme Red */
    color: var(--clover-secondary-contrast) !important;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.clover-archive-add-trigger:hover {
    background: var(--clover-primary) !important;
    /* Theme Green on hover */
    color: var(--clover-primary-contrast) !important;
}

/* 🔄 STATE B: IN-CART MODIFIER BOX */
.clover-action-state-modifier {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    background: #ffffff;
    height: 34px;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.clover-archive-modifier-btn {
    width: 36px;
    height: 100%;
    background: #f8fafc;
    border: none;
    font-size: 16px;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.clover-archive-modifier-btn:hover {
    background: #e2e8f0;
    color: var(--clover-secondary);
}

.clover-archive-in-cart-status {
    font-size: 13px;
    color: #334155;
    font-weight: 500;
}

.clover-archive-in-cart-status .current-qty-val {
    color: var(--clover-primary);
    font-weight: 700;
}

.clover-out-of-stock-label {
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
    padding: 8px 0;
}

.clover-cart-control-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.clover-qty-selector {
    display: flex;
    align-items: center;
    border-radius: 4px;
    overflow: hidden;
}

.clover-qty-selector .qty-btn {
    background: #f4f4f4;
    border: none;
    padding: 5px 12px;
    font-size: 16px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s;
}

.clover-qty-selector .qty-btn:hover {
    background: #ddd;
}

.clover-qty-selector input.qty {
    width: 40px;
    height: 32px;
    text-align: center;
    border: none;
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
    margin: 0;
    padding: 0;
    -moz-appearance: textfield;
}

/* Hide default chrome/safari arrows for number input */
.clover-qty-selector input.qty::-webkit-outer-spin-button,
.clover-qty-selector input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.clover-add-btn {
    background-color: #0073aa !important;
    color: #fff !important;
    padding: 8px 15px !important;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
}

.clover-back-btn {
    background-color: #f4f4f4 !important;
    color: #333 !important;
    border: 1px solid #ccc;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.clover-back-btn:hover {
    background-color: #0073aa;
    /* તમારો થીમ કલર */
    color: #fff;
    border-color: #0073aa;
}

/* ==========================================================================
   Clover Grocery Card Layout - Final Overrides & View Cart Block Fix
   ========================================================================== */

/* 1. Force Master Wrappers to Explode to full 100% width width */
.clover-homepage,
#clover-products-wrapper,
#clover-ajax-products-holder,
.clover-wrapper,
.woocommerce {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    /* display: block !important; */
}

/* Clear default WooCommerce floated layout behaviors */
ul.products::before,
ul.products::after {
    display: none !important;
}

@media (max-width: 1024px) and (min-width:768px) {
    ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* 3. Compact Individual Product Card Structure */
ul.products li.product {
    background: #ffffff !important;
    border: 1px solid #e8e8e8 !important;
    border-radius: 6px !important;
    padding: 12px !important;
    margin: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    position: relative !important;
    float: none !important;
    /* Destroys raw floats causing element shifts */
}

/* 4. Product Image Sizing */
ul.products li.product .woocommerce-LoopProduct-link img {
    height: 120px !important;
    width: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
    margin: 0 auto 10px auto !important;
    display: block !important;
}

/* 5. Product Title Specs */
ul.products li.product .woocommerce-loop-product__title {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #222222 !important;
    line-height: 1.3 !important;
    margin: 0 0 6px 0 !important;
    min-height: 34px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

/* 6. Custom Price Styling */
ul.products li.product .price {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #256f3a !important;
    margin-bottom: 12px !important;
    display: block !important;
}

/* 7. Master Pill Wrapper (Qty Selector + Add Button Side-by-Side) */
.clover-loop-cart-wrapper {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: stretch !important;
    border: 1px solid #cccccc !important;
    border-radius: 4px !important;
    overflow: hidden !important;
    height: 32px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
}

/* 8. Qty Selector Controls Layer alignment inside layout grid */
.clover-qty-selector {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: 100% !important;
    flex: 1.2 !important;
    background: #fdfdfd !important;
    padding: 0 4px !important;
}

.clover-qty-selector::before {
    content: "Qty" !important;
    font-size: 11px !important;
    color: #666666 !important;
    font-weight: 600 !important;
    padding-left: 2px !important;
}

/* +/- Micro Action Round Button elements overrides */
.clover-qty-selector .qty-btn {
    background: #eee !important;
    color: #333 !important;
    border: none !important;
    font-size: 12px !important;
    font-weight: bold !important;
    height: 22px !important;
    width: 22px !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 1px !important;
}

.clover-qty-selector input.clover-loop-qty {
    width: 22px !important;
    height: 100% !important;
    background: transparent !important;
    border: none !important;
    text-align: center !important;
    font-size: 12px !important;
    font-weight: bold !important;
    color: #222222 !important;
    padding: 0 !important;
    margin: 0 !important;
    -moz-appearance: textfield !important;
}

.clover-qty-selector input.clover-loop-qty::-webkit-outer-spin-button,
.clover-qty-selector input.clover-loop-qty::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

/* 9. Your Red-Brown Add to cart Button custom colors alignment overrides */
.clover-loop-cart-wrapper .add_to_cart_button {
    background: var(--clover-secondary) !important;
    /* Your custom red-brown color */
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    border: none !important;
    border-radius: 0px !important;
    height: 100% !important;
    padding: 0 10px !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    flex: 1 !important;
    transition: background 0.15s ease !important;
}

.clover-loop-cart-wrapper .add_to_cart_button:hover {
    background: var(--clover-secondary-hover) !important;
}

/* ==========================================================================
   🔥 CRITICAL CRASH REPAIRS: HIDES DISRUPTIVE "VIEW CART" NODES
   ========================================================================== */
.added_to_cart,
.clover-loop-cart-wrapper+.added_to_cart,
li.product .added_to_cart {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    position: absolute !important;
    overflow: hidden !important;
}

/* ==========================================================================
   Clover Grid Compact Spacing & Center Alignment Fix
   ========================================================================== */

/* 1. Target the AJAX Holder to keep the content neat and centered */
#clover-ajax-products-holder {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    /* Centers the entire grid on wide screens */
    box-sizing: border-box !important;
}

@media (min-width:1240px) {

    .woocommerce ul.products:not(.elementor-grid),
    .woocommerce-page ul.products:not(.elementor-grid),
    ul.products {
        grid-template-columns: repeat(5, 230px) !important;
    }
}

/* 2. Tighten the Grid Container Sizing */
.woocommerce ul.products:not(.elementor-grid),
.woocommerce-page ul.products:not(.elementor-grid),
ul.products {
    display: grid !important;
    grid-template-columns: repeat(5, 230px);
    /* Sets a strict compact width for each card */
    justify-content: center !important;
    /* Aligns the 4 cards strictly together in the center */
    gap: 15px !important;
    /* Controls the exact tiny space between the cards */
    padding: 0 !important;
    margin: 25px auto !important;
    /* Centers the whole row grid horizontally */
    width: auto !important;
    max-width: 100% !important;
    list-style: none !important;
    float: none !important;
    clear: both !important;
}

.clover-qty-selector::before,
.clover-qty-selector .qty-btn {
    display: none !important;
}

.clover-first-add-wrap {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: stretch;
}

.clover-cart-qty-box {
    justify-content: space-between !important;
    display: flex !important;
    flex: 1;
    align-items: center !important;
    height: 100%;
}

.clover-cart-qty-box .qty-btn {
    width: 33%;
    height: stretch;
    padding: 0;
}

/* ==========================================================================
   Mobile 2-Card Row Design (Balanced Side-by-Side Cart Layout)
   ========================================================================== */

@media (max-width: 768px) {

    /* 1. Force exactly 2 equal cards per row with proper spacing */
    ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        padding: 0 10px !important;
        margin: 15px auto !important;
    }

    /* 2. Style individual product cards */
    ul.products li.product {
        padding: 12px !important;
        border-radius: 8px !important;
        /* Sleek rounded look like the sample */
        background: #ffffff !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    }

    /* 3. Scale product image safely */
    ul.products li.product .woocommerce-LoopProduct-link img {
        height: 110px !important;
        max-height: 110px !important;
        object-fit: contain !important;
        margin-bottom: 12px !important;
    }

    /* 4. Format Title Typography */
    ul.products li.product .woocommerce-loop-product__title {
        font-size: 13px !important;
        line-height: 1.4 !important;
        min-height: 36px !important;
        margin-bottom: 8px !important;
    }

    /* 5. SIDE-BY-SIDE CART WRAPPER (The Magic Fix) */
    .clover-loop-cart-wrapper {
        display: flex !important;
        flex-direction: row !important;
        /* Keeps them strictly side-by-side */
        align-items: center !important;
        justify-content: space-between !important;
        gap: 6px !important;
        /* Strips the previous master border framework */
        background: transparent !important;
        height: 34px !important;
        width: 100% !important;
        overflow: visible !important;
    }

    /* 6. Compact Quantity Box Container */
    .clover-qty-selector {
        flex: 0 0 50px !important;
        /* Sets a strict compact width for the input wrapper */
        width: 50px !important;
        height: 34px !important;
        border: 1px solid #dcdcdc !important;
        border-radius: 4px !important;
        padding: 0 !important;
        justify-content: center !important;
        background: #ffffff !important;
    }

    /* Center layout digits cleanly inside the input field */
    .clover-qty-selector input.clover-loop-qty {
        width: 100% !important;
        height: 100% !important;
        font-size: 14px !important;
        font-weight: 500 !important;
        text-align: center !important;
    }

    /* 7. Beautiful Clean Add To Cart Button */
    .clover-loop-cart-wrapper .add_to_cart_button {
        flex: 1 !important;
        /* Grows beautifully to inherit all remaining card row width */
        height: 34px !important;
        /* background: var(--clover-primary) !important; */
        /* Update this hex code if you want a custom orange/red */
        color: var(--clover-primary-contrast) !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        text-transform: none !important;
        /* Keeps regular casing like "Add" */
        border-radius: 4px !important;
        border: none !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 8px !important;
    }
}

/* Minor typography corrections for ultra narrow viewports */
@media (max-width: 360px) {
    .clover-loop-cart-wrapper .add_to_cart_button {
        font-size: 12px !important;
    }
}

@media (max-width: 1200px) {

    .ast-separate-container .entry-content>.alignfull,
    .ast-separate-container .entry-content[data-ast-blocks-layout]>.alignwide,
    .ast-plain-container .entry-content[data-ast-blocks-layout]>.alignwide,
    .ast-plain-container .entry-content .alignfull {
        margin-left: auto;
        margin-right: auto;
        width: 90%;
    }
}

.editor-styles-wrapper table.wc-block-cart-items .wc-block-cart-items__row .wc-block-components-product-name,
table.wc-block-cart-items .wc-block-cart-items__row .wc-block-components-product-name {
    display: block;
    font-size: var(--wp--preset--font-size--small, 14px);
    font-weight: 500;
    line-height: 1.4;
    max-width: max-content;
    color: black;
}

.menu-toggle:hover,
button:hover,
.ast-button:hover,
.ast-custom-button:hover .button:hover,
.ast-custom-button:hover,
input[type=reset]:hover,
input#submit:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
form[CLASS*="wp-block-search__"].wp-block-search .wp-block-search__inside-wrapper .wp-block-search__button:hover,
body .wp-block-file .wp-block-file__button:hover,
.woocommerce-js a.button:hover,
.woocommerce button.button:hover,
.woocommerce .woocommerce-message a.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce #respond input#submit.alt:hover,
.woocommerce input.button.alt:hover,
.woocommerce input.button:hover,
.woocommerce button.button.alt.disabled:hover,
.wc-block-grid__products .wc-block-grid__product .wp-block-button__link:hover,
.woocommerce-js .astra-cart-drawer .astra-cart-drawer-content .woocommerce-mini-cart__buttons .button:not(.checkout):not(.ast-continue-shopping):hover,
.woocommerce-js .astra-cart-drawer .astra-cart-drawer-content .woocommerce-mini-cart__buttons a.checkout:hover,
.woocommerce button.button.alt.disabled.wc-variation-selection-needed:hover,
[CLASS*="wc-block"] .wc-block-components-button:hover {
    color: var(--clover-primary-contrast) !important;
    background-color: var(--clover-primary) !important;
    border-color: var(--clover-primary);
}

[CLASS*="wc-block"] button:hover {
    color: var(--clover-primary) !important;
    background-color: transparent !important;
    border-color: var(--clover-primary);
}

.menu-toggle,
button,
.ast-button,
.ast-custom-button,
.button,
input#submit,
input[type="button"],
input[type="submit"],
input[type="reset"],
#comments .submit,
.search .search-submit,
form[CLASS*="wp-block-search__"].wp-block-search .wp-block-search__inside-wrapper .wp-block-search__button,
body .wp-block-file .wp-block-file__button,
.search .search-submit,
.woocommerce-js a.button,
.woocommerce button.button,
.woocommerce .woocommerce-message a.button,
.woocommerce #respond input#submit.alt,
.woocommerce input.button.alt,
.woocommerce input.button,
.woocommerce input.button:disabled,
.woocommerce input.button:disabled[disabled],
.woocommerce input.button:disabled:hover,
.woocommerce input.button:disabled[disabled]:hover,
.woocommerce #respond input#submit,
.woocommerce button.button.alt.disabled,
.wc-block-grid__products .wc-block-grid__product .wp-block-button__link,
.wc-block-grid__product-onsale,
.woocommerce-js .astra-cart-drawer .astra-cart-drawer-content .woocommerce-mini-cart__buttons .button:not(.checkout):not(.ast-continue-shopping),
.woocommerce-js .astra-cart-drawer .astra-cart-drawer-content .woocommerce-mini-cart__buttons a.checkout,
.woocommerce button.button.alt.disabled.wc-variation-selection-needed,
[CLASS*="wc-block"] .wc-block-components-button {
    color: var(--clover-primary-contrast) !important;
    border-color: var(--clover-primary);
    background-color: var(--clover-primary);
}

[CLASS*="wc-block"] button {
    color: var(--clover-primary) !important;
    border-color: var(--clover-primary);
    background-color: transparent;
}

.product_type_variable {
    background-color: var(--clover-primary) !important;
}

.wc-block-components-order-summary .wc-block-components-order-summary-item__quantity {
    background: var(--clover-primary);
}



/* ============================================
MODAL
============================================ */

.clover-modern-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.clover-modal-blur-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
}

.clover-modal-wrapper {
    position: relative;
    background: #ffffff;
    width: 100%;
    max-width: 850px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .25);
    z-index: 10;
    animation: cloverScaleIn .3s ease-out;
}

@keyframes cloverScaleIn {

    from {
        transform: scale(.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.clover-modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f1f5f9;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 20;
    color: var(--clover-primary) !important;
    padding: 0px;
}

/* ============================================
LAYOUT
============================================ */

.clover-popup-container {
    display: flex;
}

.clover-popup-image-column {
    flex: 1 1 45%;
    max-width: 45%;
    background: #f8fafc;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clover-modal-img {
    width: 100%;
    border-radius: 16px;
}

.clover-popup-info-column {
    flex: 1 1 55%;
    max-width: 55%;
    padding: 40px;
}

/* ============================================
TYPOGRAPHY
============================================ */

.clover-popup-info-column .product_title {
    font-size: 32px !important;
    font-weight: 700 !important;
    margin-bottom: 10px !important;
}

.clover-popup-info-column .price {
    font-size: 26px !important;
    font-weight: 700 !important;
    color: var(--clover-primary) !important;
    margin-bottom: 20px !important;
}

/* ============================================
HIDE DEFAULT SELECTS
============================================ */

#clover-quickview-modal .variations_form table.variations select {
    display: none !important;
}

/* ============================================
PREMIUM RADIO UI
============================================ */

.clover-radio-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
    margin-bottom: 24px;
}

.clover-radio-option {
    position: relative;
    border: 2px solid #e2e8f0;
    background: #fff;
    padding: 14px 22px;
    border-radius: 16px;
    cursor: pointer;
    transition: .25s ease;
    font-weight: 600;
    font-size: 15px;
    min-width: 70px;
    color: var(--clover-primary) !important;
}

.clover-radio-option:hover {
    border-color: var(--clover-primary);
    color: #fff;
    transform: translateY(-2px);
}

.clover-radio-option.active {
    background: var(--clover-primary);
    color: var(--clover-primary-contrast) !important;
    border-color: var(--clover-primary);
    box-shadow: 0 10px 20px rgba(13, 66, 40, .18);
}

/* ============================================
BUTTON
============================================ */

.single_add_to_cart_button {
    background: var(--clover-primary) !important;
    color: #fff !important;
    border-radius: 14px !important;
    width: 100% !important;
    padding: 16px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
}

.single_add_to_cart_button.added {
    background: #16a34a !important;
}

/* ============================================
MOBILE
============================================ */

@media(max-width:768px) {

    .clover-popup-container {
        flex-wrap: wrap;
    }

    .clover-popup-image-column,
    .clover-popup-info-column {
        max-width: 100%;
        flex: 1 1 100%;
    }

    .clover-popup-info-column {
        padding: 24px;
    }

    .clover-modern-modal {
        width: stretch;
    }
}

.clover-cart-success {
    background: #dcfce7;
    color: #166534;
    padding: 14px 18px;
    border-radius: 14px;
    margin-bottom: 20px;
    font-weight: 600;
    border: 1px solid #bbf7d0;
}

.single_variation_wrap {
    display: block !important;
}

.reset_variations {
    display: none !important;
}

@media (max-width: 544px) {
    .ast-header-break-point .ast-footer-copyright.ast-builder-layout-element {
        display: flex;
    }
}

.product_type_variable.add_to_cart_button {
    display: inline-flex !important;
    padding: 0;
    height: 34px;
    border-radius: 4px;
    align-items: center;
    justify-content: center;
    margin-top: 0px !important;
    margin-bottom: 0px !important;
    width: 100%;
    background-color: var(--clover-secondary) !important;
}

/*
|--------------------------------------------------------------------------
| SINGLE PRODUCT
|--------------------------------------------------------------------------
*/

.clover-single-product-page {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

.clover-single-product-content,
.clover-single-product-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.clover-single-product-layout {
    flex-direction: column;
}

.clover-product-image {
    flex: 1;
}

.clover-product-image img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
}

.clover-product-info {
    flex: 1;
}

.clover-single-category {
    font-size: 14px;
    color: #777;
    margin-bottom: 10px;
}

.clover-single-title {
    font-size: 34px;
    margin-bottom: 10px;
    margin-top: 40px;
    line-height: 1.2;
}

.clover-product-price {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 20px;
}

.clover-product-short-desc {
    margin-bottom: 25px;
    color: #555;
    line-height: 1.7;
}

.clover-single-cart-wrap {
    margin-bottom: 30px;
}

/* Select Options button — single product page (variable/modifier products) */
.clover-single-select-btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--clover-primary, #0d4228);
    color: #fff !important;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    letter-spacing: 0.3px;
}

.clover-single-select-btn:hover {
    background: var(--clover-secondary, #1a6b40);
    transform: translateY(-1px);
    color: #fff !important;
}

/* Out of stock message on single product page */
.clover-out-of-stock-msg {
    display: inline-block;
    padding: 12px 24px;
    background: #f8f8f8;
    color: #888;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    border: 1.5px solid #e5e5e5;
}

.clover-product-description {
    margin-top: 30px;
}

.clover-product-description h3 {
    margin-bottom: 15px;
}

.clover-related-products {
    margin-top: 60px;
}

.clover-related-products h2 {
    margin-bottom: 25px;
}

/*
|--------------------------------------------------------------------------
| BREADCRUMB
|--------------------------------------------------------------------------
*/

.clover-breadcrumb {
    font-size: 18px;
    color: #777;
    display: flex;
    gap: 5px;
}

.clover-breadcrumb span {
    color: var(--clover-primary);
    font-weight: bold;
}

.clover-breadcrumb a {
    color: #222;
    text-decoration: none;
}

.clover-breadcrumb a:hover {
    text-decoration: underline;
}

/*
|--------------------------------------------------------------------------
| MOBILE
|--------------------------------------------------------------------------
*/

@media(max-width:768px) {

    .clover-single-product-content {
        flex-direction: column;
        gap: 20px;
        width: stretch;
    }

    .clover-single-title {
        font-size: 26px;
    }

    .clover-product-price {
        font-size: 24px;
    }

    .clover-related-products .products {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .clover-first-add-wrap .ajax_add_to_cart {
        width: 100%;
        text-align: center;
    }

    .clover-product-image {
        margin-left: auto;
        margin-right: auto;
    }

    .product_type_variable.add_to_cart_button {
        background-color: var(--clover-primary) !important;
    }
}

#primary.site-main {
    padding-top: 0px;
    margin-top: 0px;
}

.ast-search-menu-icon .search-form {
    display: none !important;
}

/*
|--------------------------------------------------------------------------
| FULLSCREEN SEARCH
|--------------------------------------------------------------------------
*/

#clover-global-search-overlay {
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 999999;
    display: none;
    overflow: auto;
    bottom: 60px;
}

.clover-search-inner {
    width: 100%;
    max-width: 1400px;
    margin: auto;
    padding: 40px;
}

.clover-search-top {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

#clover-global-search-input {
    flex: 1;
    border: none;
    outline: none;
    background: none;
    box-shadow: none !important;
}

#clover-search-close {
    border: none;
    background: none;
    cursor: pointer;
    color: var(--clover-primary);
    /* box-shadow: none !important; */
}

/*
|--------------------------------------------------------------------------
| MOBILE
|--------------------------------------------------------------------------
*/

@media(max-width:768px) {

    .clover-search-inner {
        padding: 20px;
    }
}

.ast-logo-title-inline .ast-site-identity {
    padding: 0px !important;
}


#clover-global-search-overlay .products.columns-4 {
    grid-template-columns: repeat(1, 1fr) !important;
}

@media (max-width: 768px) {
    #clover-global-search-overlay .products.columns-4 .woocommerce-LoopProduct-link.woocommerce-loop-product__link {
        gap: 10px;
    }

    #clover-global-search-overlay .products.columns-4 .clover-loop-cart-wrapper {
        width: 40% !important;
    }
}

@media (min-width: 768px) {
    #clover-global-search-overlay .products.columns-4 .woocommerce-LoopProduct-link.woocommerce-loop-product__link .price {
        font-size: 18px !important;
    }

    #clover-global-search-overlay .products.columns-4 .woocommerce-LoopProduct-link.woocommerce-loop-product__link .woocommerce-loop-product__title {
        flex: 1;
        font-size: 18px !important;
    }
}

#clover-global-search-overlay .products.columns-4 .clover-loop-cart-wrapper {
    position: absolute;
    width: 30% !important;
    right: 40px;
    bottom: 10px;
}

#clover-global-search-overlay .products.columns-4 .woocommerce-LoopProduct-link.woocommerce-loop-product__link {
    display: flex;
    gap: 20px;
}

#clover-global-search-overlay {
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 999999;
    display: none;
    overflow: auto;
    bottom: 60px;
}

.mobile-search__header {
    padding: 15px;
    border-bottom: 1px solid #eee;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: var(--clover-primary);
}

.mobile-search-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-search-box>div {
    flex: 1;
}

.cancel-search {
    border: none;
    background: none;
    font-size: 22px;
    cursor: pointer;
}

.input-group {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    width: 100%;
}

.input-search {
    flex: 1;
    border: none;
    outline: none;
    height: 50px;
    padding: 0 15px;
    font-size: 16px;
}

.input-group-append {
    display: flex;
    align-items: center;
}

.input-group-append .btn {
    border: none;
    background: none;
    width: 48px;
    height: 48px;
    cursor: pointer;
}

#clover-live-search-results {
    padding: 15px;
}

#clover-search-clear {
    display: none;
}

.search-icon-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: none !important;
}

.search-icon-btn:hover {
    background: #f5f5f5;
    border-radius: 50%;
}

.search-svg-icon {
    width: 22px;
    height: 22px;
    stroke: var(--clover-primary);
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    display: block;
}

#clover-search-close .search-svg-icon {
    stroke: white !important;
}

#clover-search-clear {
    display: none;
}

.mobile-search__header .input-group {
    background-color: white;
    border-radius: 5px;
}

/* Hide Woo default breadcrumb */
.single-product .single-product-category,
.woocommerce-breadcrumb {
    display: none !important;
}

/* Hide Woo default title */
.summary .product_title {
    display: none !important;
}

/* Custom Header */
.clover-product-header {
    width: 100%;
    margin-bottom: 30px;
}

.clover-product-category {
    margin: 10px 0;
}

.clover-product-category a {
    color: #0d5c3f;
    font-weight: 600;
    text-decoration: none;
}

.clover-product-title {
    margin: 0;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
}

@media(max-width:768px) {

    .clover-product-title {
        font-size: 28px;
    }

}

.clover-product-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.single-product .summary .clover-first-add-wrap {
    width: auto !important;
}

.single-product .summary .clover-loop-cart-wrapper {
    border: none !important;
}

.single-product .summary .clover-loop-cart-wrapper .clover-cart-qty {
    width: 10%;
    display: inline-flex;
    justify-content: center;
}

.single-product .summary .clover-loop-cart-wrapper .qty-btn {
    width: 20% !important;
}

.single-product .summary .clover-loop-cart-wrapper .clover-cart-qty-box {
    justify-content: flex-start !important;
}

.woocommerce-account .content-area.primary {
    padding-right: 40px;
    padding-left: 40px;
}


@media(max-width:768px) {
    .woocommerce-MyAccount-navigation>ul {
        padding-left: 0px;
    }

    .site-footer {
        margin-bottom: 60px;
    }

    .ast-scroll-to-top-right {
        display: none;
    }
}

.quantity button,
.quantity .plus,
.quantity .minus {
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.quantity button:focus,
.quantity button:active,
.quantity .plus:focus,
.quantity .plus:active,
.quantity .minus:focus,
.quantity .minus:active {
    outline: none !important;
    box-shadow: none !important;
    background: inherit !important;
    color: inherit !important;
}

/* Dashboard */
.account-dashboard {
    max-width: 100%;
}

/* Header */
.account-dashboard-header {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
}

.account-dashboard-header h2 {
    margin: 0 0 8px;
    font-size: 30px;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
}

.account-dashboard-header p {
    margin: 0;
    color: #6b7280;
    font-size: 15px;
}

/* Stats */
.account-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.account-stat-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
    transition: .3s;
}

.account-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, .08);
}

.account-stat-card span {
    display: block;
    color: #6b7280;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 10px;
}

.account-stat-card strong {
    display: block;
    color: #111827;
    font-size: 28px;
    font-weight: 700;
    word-break: break-word;
}

/* Quick Actions */
.account-dashboard-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.account-dashboard-actions a {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 22px;
    text-align: center;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    transition: .3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
}

.account-dashboard-actions a:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, .08);
    color: #16a34a;
}

/* Mobile */
@media(max-width:1024px) {

    .account-dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .account-dashboard-actions {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width:767px) {

    .account-dashboard-header {
        padding: 20px;
    }

    .account-dashboard-header h2 {
        font-size: 24px;
    }

    .account-dashboard-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .account-dashboard-actions {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .account-stat-card,
    .account-dashboard-actions a {
        padding: 18px;
    }

    .account-stat-card strong {
        font-size: 24px;
    }
}

.ast-plain-container,
.ast-page-builder-template {
    background-color: inherit !important;
}

.order-progress-card,
.delivery-tracking-card,
.order-schedule-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
}

.order-progress-card h2,
.delivery-tracking-card h2,
.order-schedule-card h2 {
    margin: 0 0 20px;
    font-size: 22px;
    font-weight: 700;
}

/* Timeline */

.order-progress-wrapper {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.order-progress-step {
    flex: 1;
    text-align: center;
    position: relative;
}

.order-progress-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 60%;
    width: 80%;
    height: 3px;
    background: #e5e7eb;
    z-index: 1;
}

.order-progress-step.done:not(:last-child)::after {
    background: #22c55e;
}

.order-progress-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    position: relative;
    z-index: 2;
    font-weight: 700;
}

.order-progress-step.done .order-progress-circle {
    background: #22c55e;
    border-color: #22c55e;
    color: #fff;
}

.order-progress-label {
    font-size: 13px;
    font-weight: 600;
}

/* Tracking */

.delivery-status-badge {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 18px;
}

.status-blue {
    background: #dbeafe;
    color: #1d4ed8;
}

.status-orange {
    background: #ffedd5;
    color: #c2410c;
}

.status-purple {
    background: #ede9fe;
    color: #7c3aed;
}

.status-green {
    background: #dcfce7;
    color: #15803d;
}

.status-success {
    background: #dcfce7;
    color: #166534;
}

.delivery-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.delivery-message {
    margin: 18px 0;
}

.track-order-btn {
    display: inline-block;
    background: #dc2626;
    color: #fff !important;
    text-decoration: none;
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 600;
}

/* Schedule */

.schedule-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.schedule-row:last-child {
    border-bottom: none;
}

.schedule-label {
    color: #6b7280;
}

.schedule-value {
    font-weight: 600;
}

.schedule-address {
    margin-top: 15px;
    padding: 15px;
    background: #f9fafb;
    border-radius: 10px;
    line-height: 1.6;
}

.pickup-info-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
}

.pickup-message {
    margin-top: 18px;
}

.order-cancel-box {
    margin-top: 25px;
    padding: 20px;
    border: 1px solid #fecaca;
    background: #fff5f5;
    border-radius: 12px;
}

.cancel-order-btn {
    background: #dc2626;
    color: #fff;
    border: none;
    padding: 12px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

#customer-cancel-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
}

.customer-cancel-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .55);
}

.customer-cancel-popup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    max-width: 95%;
    background: #fff;
    border-radius: 12px;
    padding: 24px;
}

.customer-cancel-popup h3 {
    margin: 0 0 10px;
}

.customer-cancel-popup select,
.customer-cancel-popup textarea,
.customer-cancel-popup input {
    width: 100%;
    margin-top: 8px;
    margin-bottom: 15px;
}

.cancel-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.cancel-modal-actions button {
    min-width: 120px;
}

/* 
|--------------------------------------------------------------------------
| CLOVER MY ACCOUNT - EXTREME MODERNIZATION
|--------------------------------------------------------------------------
*/

.clover-account-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1e293b;
}

/* Hide WooCommerce native notices and headings if they bleed through */
.woocommerce-MyAccount-navigation {
    display: none !important;
}

.woocommerce-MyAccount-content {
    width: 100% !important;
    float: none !important;
}

/* 
|--------------------------------------------------------------------------
| NAVIGATION (TOP TABS)
|--------------------------------------------------------------------------
*/
.clover-account-nav {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 10px;
    margin-bottom: 30px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.clover-account-nav__tabs {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
    min-width: max-content;
}

.clover-account-nav__item {
    margin: 0;
}

.clover-account-nav__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 12px;
    color: #475569;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s ease;
}

.clover-account-nav__link:hover {
    background: #f8fafc;
    color: var(--clover-primary);
}

.clover-account-nav__link--active {
    background: var(--clover-primary);
    color: #F0BD3D;
}

.clover-account-nav__link--active:hover {
    background: #0a3520;
    color: #F0BD3D;
}

.clover-account-nav__icon svg {
    width: 20px;
    height: 20px;
}

/* 
|--------------------------------------------------------------------------
| PAGE HEADERS
|--------------------------------------------------------------------------
*/
.clover-page-header {
    margin-bottom: 24px;
}

.clover-page-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--clover-primary);
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.clover-page-subtitle {
    color: #64748b;
    font-size: 16px;
    margin: 0;
}

/* 
|--------------------------------------------------------------------------
| DASHBOARD HERO
|--------------------------------------------------------------------------
*/
.clover-account-hero {
    background: linear-gradient(135deg, var(--clover-primary) 0%, #1a5c3a 100%);
    border-radius: 20px;
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(13, 66, 40, 0.15);
    position: relative;
    overflow: hidden;
}

.clover-account-hero::after {
    content: '';
    position: absolute;
    right: -50px;
    top: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(240, 189, 61, 0.2) 0%, rgba(240, 189, 61, 0) 70%);
}

.clover-account-hero__avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #F0BD3D;
    color: var(--clover-primary);
    font-size: 32px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(240, 189, 61, 0.3);
}

.clover-account-hero__info {
    flex: 1;
}

.clover-account-hero__greeting {
    color: #F0BD3D;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 4px 0;
}

.clover-account-hero__name {
    color: #fff;
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 4px 0;
}

.clover-account-hero__email {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 15px;
}

.clover-account-hero__logout {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    backdrop-filter: blur(10px);
}

.clover-account-hero__logout:hover {
    background: #F0BD3D;
    color: var(--clover-primary);
}

/* 
|--------------------------------------------------------------------------
| DASHBOARD STATS
|--------------------------------------------------------------------------
*/
.clover-account-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.clover-account-stat {
    background: #fff;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid #f1f5f9;
}

.clover-account-stat__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clover-account-stat__icon svg {
    width: 24px;
    height: 24px;
}

.clover-account-stat__icon--orders {
    background: rgba(13, 66, 40, 0.1);
    color: var(--clover-primary);
}

.clover-account-stat__icon--spent {
    background: rgba(240, 189, 61, 0.15);
    color: #b48512;
}

.clover-account-stat__icon--last {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.clover-account-stat__value {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.clover-account-stat__label {
    color: #64748b;
    font-size: 14px;
    margin-top: 4px;
}

/* 
|--------------------------------------------------------------------------
| DASHBOARD QUICK ACTIONS
|--------------------------------------------------------------------------
*/
.clover-account-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.clover-account-action-card {
    background: #fff;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}

.clover-account-action-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
    border-color: var(--clover-primary);
}

.clover-account-action-card__icon {
    background: #f8fafc;
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clover-primary);
}

.clover-account-action-card__icon svg {
    width: 24px;
    height: 24px;
}

.clover-account-action-card:hover .clover-account-action-card__icon {
    background: var(--clover-primary);
    color: #F0BD3D;
}

.clover-account-action-card__text {
    flex: 1;
}

.clover-account-action-card__text strong {
    display: block;
    font-size: 16px;
    color: #0f172a;
    margin-bottom: 4px;
}

.clover-account-action-card__text span {
    display: block;
    font-size: 13px;
    color: #64748b;
}

.clover-account-action-card__arrow {
    color: #cbd5e1;
    transition: transform 0.2s;
}

.clover-account-action-card:hover .clover-account-action-card__arrow {
    color: var(--clover-primary);
    transform: translateX(4px);
}

/* 
|--------------------------------------------------------------------------
| RECENT ORDERS LIST
|--------------------------------------------------------------------------
*/
.clover-account-recent {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
}

.clover-account-recent__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
}

.clover-account-recent__title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    color: #0f172a;
}

.clover-account-recent__view-all {
    color: var(--clover-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.clover-account-recent__view-all:hover {
    color: #F0BD3D;
}

.clover-account-order-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #f1f5f9;
}

.clover-account-order-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.clover-account-order-row__id {
    display: flex;
    flex-direction: column;
}

.clover-account-order-row__num {
    font-weight: 700;
    color: #0f172a;
    font-size: 16px;
}

.clover-account-order-row__items {
    font-size: 13px;
    color: #64748b;
    margin-top: 4px;
}

.clover-account-order-row__meta {
    display: flex;
    align-items: center;
    gap: 20px;
}

.clover-account-order-row__date {
    color: #64748b;
    font-size: 14px;
}

.clover-account-order-row__total {
    font-weight: 700;
    font-size: 15px;
}

.clover-account-order-row__link {
    background: #f8fafc;
    color: #0f172a;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.clover-account-order-row__link:hover {
    background: var(--clover-primary);
    color: #fff;
}

/* 
|--------------------------------------------------------------------------
| ORDERS PAGE (GRID)
|--------------------------------------------------------------------------
*/
.clover-orders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.clover-order-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.clover-order-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

.clover-order-card__header {
    background: #f8fafc;
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.clover-order-card__id {
    display: flex;
    flex-direction: column;
}

.clover-order-card__id .label {
    font-size: 12px;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.clover-order-card__id strong {
    font-size: 18px;
    color: #0f172a;
    margin-top: 2px;
}

.clover-order-card__body {
    padding: 20px;
}

.clover-order-card__info-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: #475569;
    font-size: 14px;
}

.clover-order-card__info-row:last-child {
    margin-bottom: 0;
}

.clover-order-card__info-row .clover-icon {
    color: #94a3b8;
    display: flex;
}

.clover-order-card__info-row .clover-icon svg {
    width: 18px;
    height: 18px;
}

.clover-order-card__info-row .total-text {
    font-weight: 700;
    color: #0f172a;
    font-size: 16px;
}

.clover-order-card__footer {
    padding: 16px 20px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    gap: 12px;
}

/* 
|--------------------------------------------------------------------------
| ADDRESSES GRID
|--------------------------------------------------------------------------
*/
.clover-addresses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 24px;
}

.clover-address-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
}

.clover-address-card__header {
    background: #f8fafc;
    padding: 16px 24px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.clover-address-card__header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}

.clover-address-card__edit {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--clover-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.clover-address-card__edit svg {
    width: 16px;
    height: 16px;
}

.clover-address-card__edit:hover {
    color: #F0BD3D;
}

.clover-address-card__body {
    padding: 24px;
    font-style: normal;
    color: #475569;
    line-height: 1.6;
}

.clover-address-card__contact {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px dashed #e2e8f0;
}

.clover-address-card__contact p {
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.clover-address-card__contact svg {
    width: 16px;
    height: 16px;
    color: #94a3b8;
}

/* 
|--------------------------------------------------------------------------
| FORMS (ACCOUNT DETAILS & ADDRESS EDIT)
|--------------------------------------------------------------------------
*/
.clover-form-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 30px;
    border: 1px solid #f1f5f9;
}

.clover-form-section {
    margin-bottom: 30px;
}

.clover-form-section__title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 20px;
}

.clover-form-divider {
    border: none;
    height: 1px;
    background: #e2e8f0;
    margin: 30px 0;
}

.clover-form-grid {
    display: grid;
    gap: 20px;
}

.clover-form-grid--2col {
    grid-template-columns: 1fr 1fr;
}

.clover-form-grid--1col {
    grid-template-columns: 1fr;
}

.woocommerce-address-fields__field-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.woocommerce-address-fields__field-wrapper .form-row-wide {
    grid-column: 1 / -1;
}

.clover-form-card .form-row {
    margin: 0;
}

.clover-form-card label {
    display: block;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
    font-size: 14px;
}

.clover-form-card input.input-text,
.clover-form-card select,
.clover-form-card textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 15px;
    color: #1e293b;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.clover-form-card input.input-text:focus,
.clover-form-card select:focus,
.clover-form-card textarea:focus {
    outline: none;
    border-color: var(--clover-primary);
    box-shadow: 0 0 0 3px rgba(13, 66, 40, 0.1);
}

.clover-form-hint {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-top: 6px;
}

.clover-form-actions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
}

/* 
|--------------------------------------------------------------------------
| BUTTONS
|--------------------------------------------------------------------------
*/
.clover-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.clover-btn--lg {
    padding: 14px 28px;
    font-size: 16px;
    border-radius: 10px;
}

.clover-btn--primary {
    background: var(--clover-primary);
    color: #fff;
}

.clover-btn--primary:hover {
    background: #0a3520;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 66, 40, 0.2);
}

.clover-btn--secondary {
    background: #f1f5f9;
    color: #334155;
}

.clover-btn--secondary:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* 
|--------------------------------------------------------------------------
| BADGES
|--------------------------------------------------------------------------
*/
.clover-order-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.clover-order-badge--processing {
    background: #dbeafe;
    color: #1e40af;
}

.clover-order-badge--completed {
    background: #dcfce7;
    color: #166534;
}

.clover-order-badge--cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.clover-order-badge--refunded {
    background: #f3f4f6;
    color: #374151;
}

.clover-order-badge--on-hold {
    background: #fef9c3;
    color: #854d0e;
}

.clover-order-badge--default {
    background: #f1f5f9;
    color: #475569;
}

/* 
|--------------------------------------------------------------------------
| PAGINATION
|--------------------------------------------------------------------------
*/
.clover-pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.clover-pagination-btn {
    background: #fff;
    border: 1px solid #cbd5e1;
    color: #334155;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.clover-pagination-btn:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}

/* 
|--------------------------------------------------------------------------
| RESPONSIVE (MOBILE EXTREME OPTIMIZATIONS)
|--------------------------------------------------------------------------
*/
/* Hide scrollbars for the horizontal nav for a cleaner native app feel */
.clover-account-nav::-webkit-scrollbar {
    display: none;
}

.clover-account-nav {
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding: 8px;
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .clover-account-wrapper {
        margin: 20px auto;
        padding: 0 15px;
    }

    .clover-account-stats,
    .clover-account-actions,
    .clover-orders-grid,
    .clover-addresses-grid,
    .clover-form-grid--2col,
    .woocommerce-address-fields__field-wrapper {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .clover-account-hero {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
        border-radius: 16px;
        gap: 16px;
    }

    .clover-account-hero__avatar {
        width: 64px;
        height: 64px;
        font-size: 24px;
    }

    .clover-account-hero__name {
        font-size: 24px;
    }

    .clover-account-order-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .clover-account-order-row__meta {
        width: 100%;
        justify-content: space-between;
    }

    .clover-page-title {
        font-size: 24px;
    }

    .clover-account-stat {
        padding: 16px;
    }

    .clover-account-stat__value {
        font-size: 20px;
    }

    .clover-account-stat__icon {
        width: 40px;
        height: 40px;
    }

    .clover-account-stat__icon svg {
        width: 20px;
        height: 20px;
    }

    .clover-order-card__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .clover-order-card__footer {
        flex-direction: column;
    }

    .clover-order-card__footer .clover-btn {
        width: 100%;
        text-align: center;
    }
}

/* ==========================================================================
   MOBILE BOTTOM NAVIGATION BAR
   ========================================================================== */

@media (max-width: 768px) {

    /* 1. Master Navbar Container */
    .clover-mobile-nav-bar {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 60px !important;
        background: var(--clover-primary) !important;
        /* Primary green theme color */
        display: flex !important;
        justify-content: space-around !important;
        align-items: center !important;
        z-index: 99999 !important;
        /* Ensures the bar stays on top of all elements */
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15) !important;
        padding-bottom: env(safe-area-inset-bottom) !important;
        /* Native support for iPhone home indicator area */
    }

    /* 2. Navigation Individual Items */
    .clover-mobile-nav-item {
        color: var(--clover-primary-contrast) !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-decoration: none !important;
        width: 20% !important;
        height: 100% !important;
    }

    /* Target the new SVG icons specifically */
    .clover-mobile-nav-item .nav-icon-svg {
        width: 20px !important;
        height: 20px !important;
        stroke: var(--clover-primary-contrast) !important;
        display: inline-block !important;
    }

    /* Keep labels directly underneath the crisp new icons */
    .clover-mobile-nav-item .nav-label {
        font-size: 11px !important;
        font-weight: 500 !important;
        opacity: 0.9 !important;
        display: block !important;
    }

    /* 4. Red Cart Badge Count */
    .clover-nav-badge {
        position: absolute !important;
        top: 2px !important;
        right: 18px !important;
        background: var(--clover-secondary) !important;
        /* Accent red badge color */
        color: var(--clover-secondary-contrast) !important;
        font-size: 10px !important;
        font-weight: 700 !important;
        min-width: 16px !important;
        height: 16px !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 1px !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
    }

    /* 5. Layout Offset Padding */
    /* Prevents the sticky bottom bar from hiding the last row of products */
    body {
        padding-bottom: 70px !important;
    }

    .clover-mini-cart-toggle {
        display: none;
    }
}

/* Hide the mobile navigation bar on desktop screens */
@media (min-width: 769px) {
    .clover-mobile-nav-bar {
        display: none !important;
    }
}

.ast-container,
.ast-container-fluid {
    margin-left: auto;
    margin-right: auto;
    padding-left: 10px;
    padding-right: 10px;
}

.astra-shop-thumbnail-wrap:hover .ast-on-card-button:not(.ast-onsale-card) {
    opacity: 0 !important;
    visibility: hidden !important;
}

@media (min-width: 768px) {
    .single-product .product_meta {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 20px;
        margin-bottom: 20px;
        font-size: 20px;
    }

    .single-product .summary.entry-summary {
        margin-top: 40px;
    }
}

@media (max-width: 544px) {

    .woocommerce #content div.product .woocommerce-tabs ul.tabs li,
    .woocommerce-page #content div.product .woocommerce-tabs ul.tabs li {
        display: inline-block;
        margin-right: 1em;
    }
}