/**
 * Smart Product Grids Module Stylesheet
 * 
 * High-conversion, bulletproof e-commerce design.
 * Scoped with 'body .ee-product-grid-wrapper' to strictly neutralize aggressive theme overrides.
 *
 * @package eCom_Essentials
 */

/* ==========================================================================
   Design Tokens & CSS Variables
   ========================================================================== */
body .ee-product-grid-wrapper {
    --ee-font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --ee-font-serif: 'Cormorant Garamond', Georgia, serif;
    --ee-font-pro: 'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Base Typography Design Tokens */
    --ee-grid-title-font: var(--ee-font-primary);
    --ee-grid-title-size: 0.95rem;
    --ee-grid-title-weight: 600;
    --ee-grid-title-lh: 1.35;
    --ee-grid-title-transform: none;
    --ee-grid-title-color: var(--ee-text-main);

    --ee-grid-price-font: var(--ee-font-primary);
    --ee-grid-price-size: 1.05rem;
    --ee-grid-price-weight: 700;
    --ee-grid-price-color: var(--ee-text-main);
    --ee-grid-del-color: #94a3b8;

    --ee-grid-cat-font: var(--ee-font-primary);
    --ee-grid-cat-size: 0.72rem;
    --ee-grid-cat-weight: 700;
    --ee-grid-cat-transform: uppercase;
    --ee-grid-cat-spacing: 0.08em;
    --ee-grid-cat-color: var(--ee-text-muted);

    --ee-grid-badge-size: 0.72rem;
    --ee-grid-badge-weight: 700;
    --ee-grid-badge-transform: uppercase;

    --ee-grid-btn-font: var(--ee-font-primary);
    --ee-grid-btn-size: 0.85rem;
    --ee-grid-btn-weight: 700;
    --ee-grid-btn-transform: none;
    --ee-grid-btn-spacing: 0.01em;

    --ee-grid-scarcity-size: 0.73rem;
    --ee-grid-scarcity-weight: 700;
    --ee-grid-scarcity-color: #b91c1c;
    
    --ee-cols-desktop: 4;
    --ee-cols-tablet: 2;
    --ee-cols-mobile: 2;
    --ee-gap: 24px;
    --ee-aspect-ratio: 3 / 4;
    
    --ee-accent-color: #0f172a;
    --ee-accent-hover: #1e293b;
    --ee-card-bg: #ffffff;
    --ee-sale-color: #ef4444;
    --ee-text-main: #0f172a;
    --ee-text-muted: #64748b;
    --ee-border-color: #f1f5f9;
    --ee-radius: 12px;

    width: 100% !important;
    max-width: 100% !important;
    margin: 2rem 0 !important;
    box-sizing: border-box !important;
    font-family: var(--ee-font-primary) !important;
    color: var(--ee-text-main) !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

body .ee-product-grid-wrapper *,
body .ee-product-grid-wrapper *::before,
body .ee-product-grid-wrapper *::after {
    box-sizing: border-box !important;
}

/* ==========================================================================
   Theme Override Resets
   ========================================================================== */
body .ee-product-grid-wrapper .screen-reader-text,
body .ee-product-grid-wrapper .woocommerce-screen-reader-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px) !important;
    -webkit-clip-path: inset(50%) !important;
    clip-path: inset(50%) !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    border: 0 !important;
    padding: 0 !important;
    margin: -1px !important;
    /* Extra nuclear override — prevents it ever becoming visible even if theme forces display:block */
    display: block !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    font-size: 0 !important;
    line-height: 0 !important;
    max-height: 0 !important;
}

body .ee-product-grid-wrapper ul,
body .ee-product-grid-wrapper ol {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

body .ee-product-grid-wrapper a {
    text-decoration: none !important;
    color: inherit !important;
    box-shadow: none !important;
}

body .ee-product-grid-wrapper h1,
body .ee-product-grid-wrapper h2,
body .ee-product-grid-wrapper h3,
body .ee-product-grid-wrapper h4,
body .ee-product-grid-wrapper p {
    margin: 0 !important;
    padding: 0 !important;
}

/* ==========================================================================
   Grid Container Layout
   ========================================================================== */
body .ee-product-grid-wrapper .ee-product-grid-items {
    display: grid !important;
    grid-template-columns: repeat(var(--ee-cols-desktop, 4), minmax(0, 1fr)) !important;
    gap: var(--ee-gap, 24px) !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    width: 100% !important;
    transition: opacity 0.25s ease !important;
}

body .ee-product-grid-wrapper .ee-product-grid-items.ee-grid-loading {
    opacity: 0.35 !important;
    pointer-events: none !important;
}

body .ee-product-grid-wrapper .ee-product-grid-empty {
    padding: 4rem 1rem !important;
    text-align: center !important;
    color: var(--ee-text-muted) !important;
    font-size: 1rem !important;
}

/* ==========================================================================
   Filter Tabs Bar
   ========================================================================== */
body .ee-product-grid-wrapper .ee-grid-filter-tabs-wrapper {
    margin-bottom: 2rem !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
}
body .ee-product-grid-wrapper .ee-grid-filter-tabs-wrapper::-webkit-scrollbar {
    display: none !important;
}

body .ee-product-grid-wrapper .ee-grid-filter-tabs {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}

body .ee-product-grid-wrapper .ee-filter-tab-btn {
    appearance: none !important;
    -webkit-appearance: none !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    padding: 8px 20px !important;
    border-radius: 9999px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    color: var(--ee-text-muted) !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    white-space: nowrap !important;
    line-height: 1.4 !important;
}

body .ee-product-grid-wrapper .ee-filter-tab-btn:hover {
    background: #ffffff !important;
    border-color: var(--ee-accent-color) !important;
    color: var(--ee-text-main) !important;
    transform: translateY(-1px) !important;
}

body .ee-product-grid-wrapper .ee-filter-tab-btn.ee-active {
    background: var(--ee-accent-color) !important;
    border-color: var(--ee-accent-color) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15) !important;
}

/* ==========================================================================
   Product Tag Filter Bar
   ========================================================================== */
body .ee-product-grid-wrapper .ee-grid-tag-filter-wrapper {
    margin-bottom: 1.5rem !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
}

body .ee-product-grid-wrapper .ee-tag-filter-label {
    display: none !important;
}

body .ee-product-grid-wrapper .ee-grid-tag-bar {
    display: flex !important;
    align-items: center !important;
    gap: 9px !important;
    flex-wrap: wrap !important;
    padding-bottom: 2px !important;
}

body .ee-product-grid-wrapper .ee-tag-btn {
    appearance: none !important;
    -webkit-appearance: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 7px 16px !important;
    background: var(--ee-tag-bg, #f8fafc) !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 9999px !important;
    font-family: var(--ee-font-primary) !important;
    font-size: var(--ee-tag-size, 0.9375rem) !important;
    font-weight: var(--ee-tag-weight, 600) !important;
    text-transform: var(--ee-tag-transform, none) !important;
    color: var(--ee-tag-color, #334155) !important;
    -webkit-text-fill-color: var(--ee-tag-color, #334155) !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    white-space: nowrap !important;
    line-height: 1.35 !important;
    user-select: none !important;
    text-decoration: none !important;
}

body .ee-product-grid-wrapper .ee-tag-btn * {
    font-size: inherit !important;
    font-weight: inherit !important;
    text-transform: inherit !important;
}

body .ee-product-grid-wrapper .ee-tag-btn.ee-tag-all {
    padding: 7px 18px !important;
}

body .ee-product-grid-wrapper .ee-tag-btn:hover {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: var(--ee-tag-active-bg, #0f172a) !important;
    -webkit-text-fill-color: var(--ee-tag-active-bg, #0f172a) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06) !important;
}

body .ee-product-grid-wrapper .ee-tag-btn.ee-active {
    background: var(--ee-tag-active-bg, #0f172a) !important;
    border-color: var(--ee-tag-active-bg, #0f172a) !important;
    color: var(--ee-tag-active-color, #ffffff) !important;
    -webkit-text-fill-color: var(--ee-tag-active-color, #ffffff) !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2) !important;
}

body .ee-product-grid-wrapper .ee-tag-btn.ee-active * {
    color: var(--ee-tag-active-color, #ffffff) !important;
    -webkit-text-fill-color: var(--ee-tag-active-color, #ffffff) !important;
}

body .ee-product-grid-wrapper .ee-tag-btn .ee-tag-hash {
    opacity: 0.55 !important;
    font-weight: 500 !important;
    font-size: inherit !important;
}

body .ee-product-grid-wrapper .ee-tag-btn .ee-tag-name {
    font-weight: inherit !important;
}

body .ee-product-grid-wrapper .ee-tag-btn .ee-tag-count {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 20px !important;
    height: 20px !important;
    padding: 0 6px !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    border-radius: 9999px !important;
    background: #e2e8f0 !important;
    color: #475569 !important;
    line-height: 1 !important;
    margin-left: 3px !important;
    transition: background 0.2s ease, color 0.2s ease !important;
}

body .ee-product-grid-wrapper .ee-tag-btn.ee-active .ee-tag-count {
    background: rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

@media (max-width: 767px) {
    body .ee-product-grid-wrapper .ee-grid-tag-bar {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        padding-bottom: 6px !important;
        margin-right: -10px !important;
        padding-right: 10px !important;
        gap: 8px !important;
    }
    body .ee-product-grid-wrapper .ee-grid-tag-bar::-webkit-scrollbar {
        display: none !important;
    }
    body .ee-product-grid-wrapper .ee-tag-btn {
        flex-shrink: 0 !important;
        font-size: var(--ee-tag-size-mob, var(--ee-tag-size, 0.85rem)) !important;
        padding: 6px 13px !important;
    }
    body .ee-product-grid-wrapper .ee-tag-btn .ee-tag-count {
        min-width: 18px !important;
        height: 18px !important;
        font-size: 0.6875rem !important;
        padding: 0 5px !important;
    }
}

/* ==========================================================================
   Product Card Base & Strict Image Containment
   ========================================================================== */
body .ee-product-grid-wrapper .ee-product-card {
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    background: var(--ee-card-bg) !important;
    border-radius: var(--ee-radius, 12px) !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    float: none !important;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Thumbnail container with strict aspect ratio */
body .ee-product-grid-wrapper .ee-card-thumb-wrap {
    position: relative !important;
    width: 100% !important;
    aspect-ratio: var(--ee-aspect-ratio, 3 / 4) !important;
    overflow: hidden !important;
    border-radius: var(--ee-radius, 12px) !important;
    background-color: #f1f5f9 !important;
}

body .ee-product-grid-wrapper .ee-card-img-link {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    position: relative !important;
    overflow: hidden !important;
}

/* Bulletproof image reset: Absolute positioning ensures theme styles never stretch or distort photos */
body .ee-product-grid-wrapper .ee-card-thumb-wrap img,
body .ee-product-grid-wrapper .ee-card-main-img,
body .ee-product-grid-wrapper .ee-card-secondary-img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: inherit !important;
    box-shadow: none !important;
    transition: opacity 0.4s ease, transform 0.6s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

/* Natural aspect ratio support: container sizes directly to the product image height */
body .ee-product-grid-wrapper[style*="--ee-aspect-ratio: auto"] .ee-card-thumb-wrap,
body .ee-product-grid-wrapper[style*="--ee-aspect-ratio:auto"] .ee-card-thumb-wrap {
    aspect-ratio: auto !important;
}

body .ee-product-grid-wrapper[style*="--ee-aspect-ratio: auto"] .ee-card-thumb-wrap img.ee-card-main-img,
body .ee-product-grid-wrapper[style*="--ee-aspect-ratio:auto"] .ee-card-thumb-wrap img.ee-card-main-img {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
}

body .ee-product-grid-wrapper .ee-card-secondary-img {
    opacity: 0 !important;
    pointer-events: none !important;
}

body .ee-product-grid-wrapper .ee-product-card:hover .ee-card-secondary-img {
    opacity: 1 !important;
}

/* When a swatch is clicked or hovered, suppress secondary image so user's chosen variant is shown */
body .ee-product-grid-wrapper .ee-product-card.ee-has-swatch-active .ee-card-secondary-img,
body .ee-product-grid-wrapper .ee-product-card.ee-has-swatch-active:hover .ee-card-secondary-img,
body .ee-product-grid-wrapper .ee-card-secondary-img.ee-temp-hide {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

body .ee-product-grid-wrapper .ee-product-card:hover .ee-card-main-img {
    transform: scale(1.04) !important;
}

body .ee-product-grid-wrapper .ee-product-card:hover .ee-card-secondary-img {
    transform: scale(1.04) !important;
}

/* ==========================================================================
   Badges Component
   ========================================================================== */
body .ee-product-grid-wrapper .ee-grid-badges {
    position: absolute !important;
    top: 12px !important;
    left: 12px !important;
    z-index: 5 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    pointer-events: none !important;
}

body .ee-product-grid-wrapper .ee-badge {
    display: inline-flex !important;
    align-items: center !important;
    padding: 4px 10px !important;
    border-radius: 9999px !important;
    font-size: var(--ee-grid-badge-size, 0.72rem) !important;
    font-weight: var(--ee-grid-badge-weight, 700) !important;
    line-height: 1.2 !important;
    text-transform: var(--ee-grid-badge-transform, uppercase) !important;
    letter-spacing: 0.05em !important;
    color: #ffffff !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.14) !important;
}

body .ee-product-grid-wrapper .ee-badge-sale {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
}

body .ee-product-grid-wrapper .ee-badge-featured {
    background: #0f172a !important;
}

body .ee-product-grid-wrapper .ee-badge-new {
    background: #059669 !important;
}

body .ee-product-grid-wrapper .ee-badge-stock-out {
    background: #475569 !important;
}

/* ==========================================================================
   Quick Actions on Hover
   ========================================================================== */
body .ee-product-grid-wrapper .ee-card-hover-actions {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    z-index: 6 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    opacity: 0 !important;
    transform: translateX(8px) !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

body .ee-product-grid-wrapper .ee-product-card:hover .ee-card-hover-actions {
    opacity: 1 !important;
    transform: translateX(0) !important;
}

body .ee-product-grid-wrapper .ee-action-btn {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: none !important;
    color: #0f172a !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    padding: 0 !important;
}

body .ee-product-grid-wrapper .ee-action-btn:hover {
    transform: scale(1.12) !important;
    background: var(--ee-accent-color) !important;
    color: #ffffff !important;
}

/* ==========================================================================
   Card Body Content
   ========================================================================== */
body .ee-product-grid-wrapper .ee-card-body {
    padding: 14px 2px 4px 2px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    flex: 1 !important;
}

body .ee-product-grid-wrapper .ee-card-category {
    font-family: var(--ee-grid-cat-font, var(--ee-font-primary)) !important;
    font-size: var(--ee-grid-cat-size, 0.72rem) !important;
    font-weight: var(--ee-grid-cat-weight, 700) !important;
    text-transform: var(--ee-grid-cat-transform, uppercase) !important;
    letter-spacing: var(--ee-grid-cat-spacing, 0.08em) !important;
    color: var(--ee-grid-cat-color, var(--ee-text-muted)) !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    line-height: 1.2 !important;
}

body .ee-product-grid-wrapper .ee-card-title {
    margin: 0 !important;
    font-family: var(--ee-grid-title-font, var(--ee-font-primary)) !important;
    font-size: var(--ee-grid-title-size, 0.95rem) !important;
    font-weight: var(--ee-grid-title-weight, 600) !important;
    line-height: var(--ee-grid-title-lh, 1.35) !important;
    text-transform: var(--ee-grid-title-transform, none) !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    color: var(--ee-grid-title-color, var(--ee-text-main)) !important;
}

body .ee-product-grid-wrapper .ee-card-title a {
    color: var(--ee-grid-title-color, var(--ee-text-main)) !important;
    transition: color 0.15s ease !important;
}

body .ee-product-grid-wrapper .ee-card-title a:hover {
    color: var(--ee-accent-color) !important;
}

/* ==========================================================================
   Pricing Component
   ========================================================================== */
body .ee-product-grid-wrapper .ee-grid-price {
    font-family: var(--ee-grid-price-font, var(--ee-font-primary)) !important;
    font-size: var(--ee-grid-price-size, 1.05rem) !important;
    font-weight: var(--ee-grid-price-weight, 700) !important;
    color: var(--ee-grid-price-color, var(--ee-text-main)) !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    line-height: 1.3 !important;
    margin: 2px 0 4px 0 !important;
}

body .ee-product-grid-wrapper .ee-grid-price .screen-reader-text,
body .ee-product-grid-wrapper .ee-grid-price .woocommerce-screen-reader-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px) !important;
    -webkit-clip-path: inset(50%) !important;
    clip-path: inset(50%) !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    border: 0 !important;
    padding: 0 !important;
    margin: -1px !important;
    display: block !important;
    visibility: hidden !important;
    opacity: 0 !important;
    max-height: 0 !important;
    font-size: 0 !important;
    line-height: 0 !important;
}

/* Strikethrough (old price) styling with exhaustive child element overrides */
html body .ee-product-grid-wrapper .ee-grid-price del,
html body .ee-product-grid-wrapper .ee-grid-price del *,
html body .ee-product-grid-wrapper .ee-grid-price del .amount,
html body .ee-product-grid-wrapper .ee-grid-price del .woocommerce-Price-amount,
html body .ee-product-grid-wrapper .ee-grid-price del .woocommerce-Price-currencySymbol,
html body .ee-product-grid-wrapper .ee-grid-price del bdi,
html body .ee-product-grid-wrapper .ee-grid-price del span,
html body .ee-product-grid-wrapper .ee-grid-price .ee-price-del,
html body .ee-product-grid-wrapper .ee-grid-price .ee-price-del * {
    color: var(--ee-grid-del-color, #94a3b8) !important;
    -webkit-text-fill-color: var(--ee-grid-del-color, #94a3b8) !important;
    font-weight: 400 !important;
    text-decoration: line-through !important;
    opacity: 1 !important;
}

html body .ee-product-grid-wrapper .ee-grid-price del,
html body .ee-product-grid-wrapper .ee-grid-price .ee-price-del {
    font-size: 0.85em !important;
    order: 2 !important;
}

html body .ee-product-grid-wrapper .ee-grid-price del *,
html body .ee-product-grid-wrapper .ee-grid-price .ee-price-del *,
html body .ee-product-grid-wrapper .ee-grid-price del span,
html body .ee-product-grid-wrapper .ee-grid-price del bdi,
html body .ee-product-grid-wrapper .ee-grid-price del .amount,
html body .ee-product-grid-wrapper .ee-grid-price del .woocommerce-Price-amount,
html body .ee-product-grid-wrapper .ee-grid-price del .woocommerce-Price-currencySymbol {
    font-size: inherit !important;
    line-height: inherit !important;
    font-weight: inherit !important;
    text-decoration: inherit !important;
}

/* Sale price styling with exhaustive child element overrides to defeat theme defaults */
html body .ee-product-grid-wrapper .ee-grid-price ins,
html body .ee-product-grid-wrapper .ee-grid-price ins *,
html body .ee-product-grid-wrapper .ee-grid-price ins .amount,
html body .ee-product-grid-wrapper .ee-grid-price ins .woocommerce-Price-amount,
html body .ee-product-grid-wrapper .ee-grid-price ins .woocommerce-Price-currencySymbol,
html body .ee-product-grid-wrapper .ee-grid-price ins bdi,
html body .ee-product-grid-wrapper .ee-grid-price ins span,
html body .ee-product-grid-wrapper .ee-grid-price .ee-price-ins,
html body .ee-product-grid-wrapper .ee-grid-price .ee-price-ins *,
html body .ee-product-grid-wrapper.ee-design-standard .ee-grid-price ins,
html body .ee-product-grid-wrapper.ee-design-standard .ee-grid-price ins *,
html body .ee-product-grid-wrapper.ee-design-pro .ee-grid-price ins,
html body .ee-product-grid-wrapper.ee-design-pro .ee-grid-price ins *,
html body .ee-product-grid-wrapper.ee-design-max .ee-grid-price ins,
html body .ee-product-grid-wrapper.ee-design-max .ee-grid-price ins *,
html body .ee-product-grid-wrapper.ee-design-ultra .ee-grid-price ins,
html body .ee-product-grid-wrapper.ee-design-ultra .ee-grid-price ins * {
    color: var(--ee-sale-color, #ef4444) !important;
    -webkit-text-fill-color: var(--ee-sale-color, #ef4444) !important;
    text-decoration: none !important;
    font-weight: var(--ee-grid-price-weight, 700) !important;
}

html body .ee-product-grid-wrapper .ee-grid-price ins,
html body .ee-product-grid-wrapper .ee-grid-price .ee-price-ins {
    font-size: 1em !important;
    order: 1 !important;
}

html body .ee-product-grid-wrapper .ee-grid-price ins *,
html body .ee-product-grid-wrapper .ee-grid-price .ee-price-ins *,
html body .ee-product-grid-wrapper .ee-grid-price ins span,
html body .ee-product-grid-wrapper .ee-grid-price ins bdi,
html body .ee-product-grid-wrapper .ee-grid-price ins .amount,
html body .ee-product-grid-wrapper .ee-grid-price ins .woocommerce-Price-amount,
html body .ee-product-grid-wrapper .ee-grid-price ins .woocommerce-Price-currencySymbol {
    font-size: inherit !important;
    line-height: inherit !important;
}

/* Regular non-sale price */
html body .ee-product-grid-wrapper .ee-grid-price > .woocommerce-Price-amount,
html body .ee-product-grid-wrapper .ee-grid-price > .woocommerce-Price-amount *,
html body .ee-product-grid-wrapper .ee-grid-price > .amount,
html body .ee-product-grid-wrapper .ee-grid-price > .amount *,
html body .ee-product-grid-wrapper .ee-grid-price > span,
html body .ee-product-grid-wrapper .ee-grid-price > span * {
    font-weight: var(--ee-grid-price-weight, 700) !important;
    font-size: 1.05em !important;
    color: var(--ee-grid-price-color, #0f172a) !important;
    -webkit-text-fill-color: var(--ee-grid-price-color, #0f172a) !important;
}

body .ee-product-grid-wrapper .ee-price-savings {
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    color: #059669 !important;
    background: #ecfdf5 !important;
    padding: 3px 8px !important;
    border-radius: 4px !important;
    order: 3 !important;
    display: inline-flex !important;
    align-items: center !important;
    white-space: nowrap !important;
}

/* ==========================================================================
   Rating Component (Theme-Independent Crisp Stars)
   ========================================================================== */
body .ee-product-grid-wrapper .ee-grid-rating {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 0.8rem !important;
}

body .ee-product-grid-wrapper .ee-stars-wrap {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

body .ee-product-grid-wrapper .ee-stars-outer {
    position: relative !important;
    display: inline-block !important;
    font-size: 13px !important;
    letter-spacing: 2px !important;
    line-height: 1 !important;
    color: #e2e8f0 !important;
}

body .ee-product-grid-wrapper .ee-stars-fill {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    color: #f59e0b !important;
}

body .ee-product-grid-wrapper .ee-review-count {
    color: var(--ee-text-muted) !important;
    font-size: 0.75rem !important;
    font-weight: 500 !important;
}

body .ee-product-grid-wrapper .ee-rating-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    background: #f1f5f9 !important;
    padding: 3px 8px !important;
    border-radius: 9999px !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
}

body .ee-product-grid-wrapper .ee-star-svg {
    color: #f59e0b !important;
}

/* ==========================================================================
   Swatches Component
   ========================================================================== */
body .ee-product-grid-wrapper .ee-grid-swatches {
    margin: 4px 0 !important;
}

body .ee-product-grid-wrapper .ee-swatch-list {
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
    flex-wrap: wrap !important;
}

body .ee-product-grid-wrapper .ee-swatch-item {
    appearance: none !important;
    -webkit-appearance: none !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    padding: 2px !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: transform 0.15s ease, border-color 0.2s ease !important;
}

body .ee-product-grid-wrapper .ee-swatch-item:hover,
body .ee-product-grid-wrapper .ee-swatch-item.ee-swatch-active {
    border-color: #0f172a !important;
    transform: scale(1.15) !important;
}

body .ee-product-grid-wrapper .ee-swatch-color {
    width: 15px !important;
    height: 15px !important;
    border-radius: 50% !important;
    display: block !important;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15) !important;
}

/* ==========================================================================
   Buttons & CTAs
   ========================================================================== */
body .ee-product-grid-wrapper .ee-grid-actions {
    margin-top: auto !important;
    padding-top: 6px !important;
}

body .ee-product-grid-wrapper .ee-btn {
    appearance: none !important;
    -webkit-appearance: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    width: 100% !important;
    padding: 10px 16px !important;
    border-radius: var(--ee-radius, 8px) !important;
    font-family: var(--ee-grid-btn-font, var(--ee-font-primary)) !important;
    font-size: var(--ee-grid-btn-size, 0.85rem) !important;
    font-weight: var(--ee-grid-btn-weight, 700) !important;
    text-transform: var(--ee-grid-btn-transform, none) !important;
    letter-spacing: var(--ee-grid-btn-spacing, 0.01em) !important;
    text-align: center !important;
    text-decoration: none !important;
    cursor: pointer !important;
    border: 1px solid transparent !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    position: relative !important;
    user-select: none !important;
    line-height: 1.2 !important;
}

body .ee-product-grid-wrapper .ee-btn-cart {
    background: var(--ee-accent-color) !important;
    color: #ffffff !important;
}

body .ee-product-grid-wrapper .ee-btn-cart:hover {
    background: var(--ee-accent-hover) !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2) !important;
}

body .ee-product-grid-wrapper .ee-btn-options {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}

body .ee-product-grid-wrapper .ee-btn-options:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

body .ee-product-grid-wrapper .ee-btn-readmore {
    background: transparent !important;
    border: 1px solid #cbd5e1 !important;
    color: #64748b !important;
}

body .ee-product-grid-wrapper .ee-btn-spinner {
    display: none !important;
    width: 15px !important;
    height: 15px !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 50% !important;
    border-top-color: #ffffff !important;
    animation: eeGridSpin 0.7s linear infinite !important;
}

body .ee-product-grid-wrapper .ee-btn.ee-loading .ee-btn-spinner {
    display: inline-block !important;
}

body .ee-product-grid-wrapper .ee-btn.ee-loading .ee-cart-icon,
body .ee-product-grid-wrapper .ee-btn.ee-loading .ee-btn-text {
    opacity: 0.6 !important;
}

body .ee-product-grid-wrapper .ee-btn.ee-btn-added {
    background: #059669 !important;
    border-color: #059669 !important;
    color: #ffffff !important;
}

/* ==========================================================================
   Design 1: Standard (Clean Modern Minimalist)
   ========================================================================== */
body .ee-design-standard .ee-product-card {
    border: 1px solid #edf0f3 !important;
    padding: 0 !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    background: #ffffff !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;
}

body .ee-design-standard .ee-product-card:hover {
    border-color: #cbd5e1 !important;
    box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.08), 0 4px 10px -4px rgba(0, 0, 0, 0.04) !important;
    transform: translateY(-2px) !important;
}

/* Image flush to card top, left, and right */
body .ee-design-standard .ee-card-thumb-wrap {
    border-radius: 0 !important;
    width: 100% !important;
    aspect-ratio: var(--ee-aspect-ratio, 1 / 1) !important;
    background-color: #f8fafc !important;
    position: relative !important;
    overflow: hidden !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

body .ee-design-standard .ee-card-thumb-wrap img,
body .ee-design-standard .ee-card-main-img,
body .ee-design-standard .ee-card-secondary-img {
    border-radius: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    transition: transform 0.4s ease, opacity 0.3s ease !important;
}

body .ee-design-standard .ee-product-card:hover .ee-card-main-img {
    transform: scale(1.03) !important;
}

/* Card Body Content */
body .ee-design-standard .ee-card-body {
    padding: 16px 18px 18px 18px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    flex: 1 !important;
    background: #ffffff !important;
}

/* Category */
body .ee-design-standard .ee-card-category,
body .ee-design-standard .ee-card-category * {
    font-family: var(--ee-grid-cat-font, var(--ee-font-primary)) !important;
    font-size: var(--ee-grid-cat-size, 0.72rem) !important;
    font-weight: var(--ee-grid-cat-weight, 600) !important;
    text-transform: var(--ee-grid-cat-transform, uppercase) !important;
    letter-spacing: var(--ee-grid-cat-spacing, 0.06em) !important;
    color: var(--ee-grid-cat-color, #94a3b8) !important;
    -webkit-text-fill-color: var(--ee-grid-cat-color, #94a3b8) !important;
    margin: 0 0 4px 0 !important;
    line-height: 1.2 !important;
    min-height: auto !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

/* Title: natural 1-2 line clamp without artificial empty line gap */
body .ee-design-standard .ee-card-title,
body .ee-design-standard .ee-card-title a {
    font-family: var(--ee-grid-title-font, var(--ee-font-primary)) !important;
    font-size: var(--ee-grid-title-size, 0.92rem) !important;
    font-weight: var(--ee-grid-title-weight, 600) !important;
    line-height: var(--ee-grid-title-lh, 1.35) !important;
    text-transform: var(--ee-grid-title-transform, none) !important;
    color: var(--ee-grid-title-color, #1e293b) !important;
    -webkit-text-fill-color: var(--ee-grid-title-color, #1e293b) !important;
    text-decoration: none !important;
}

body .ee-design-standard .ee-card-title {
    margin: 0 0 6px 0 !important;
    min-height: auto !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

body .ee-design-standard .ee-card-title a {
    transition: color 0.15s ease !important;
}

body .ee-design-standard .ee-card-title a:hover {
    color: var(--ee-accent-color, #0f172a) !important;
    -webkit-text-fill-color: var(--ee-accent-color, #0f172a) !important;
}

/* Price */
body .ee-design-standard .ee-grid-price {
    font-family: var(--ee-grid-price-font, var(--ee-font-primary)) !important;
    font-size: var(--ee-grid-price-size, 1.05rem) !important;
    font-weight: var(--ee-grid-price-weight, 700) !important;
    color: var(--ee-grid-price-color, #0f172a) !important;
    display: flex !important;
    align-items: baseline !important;
    gap: 8px !important;
    margin: 0 0 14px 0 !important;
    line-height: 1.2 !important;
}

body .ee-design-standard .ee-grid-price,
body .ee-design-standard .ee-grid-price .woocommerce-Price-amount,
body .ee-design-standard .ee-grid-price .woocommerce-Price-amount *,
body .ee-design-standard .ee-grid-price .amount,
body .ee-design-standard .ee-grid-price .amount *,
body .ee-design-standard .ee-grid-price bdi,
body .ee-design-standard .ee-grid-price span {
    font-family: var(--ee-grid-price-font, var(--ee-font-primary)) !important;
    font-weight: var(--ee-grid-price-weight, 700) !important;
    color: var(--ee-grid-price-color, #0f172a) !important;
    -webkit-text-fill-color: var(--ee-grid-price-color, #0f172a) !important;
}

body .ee-design-standard .ee-grid-price del,
body .ee-design-standard .ee-grid-price del *,
body .ee-design-standard .ee-grid-price .ee-price-del,
body .ee-design-standard .ee-grid-price .ee-price-del * {
    font-family: var(--ee-grid-price-font, var(--ee-font-primary)) !important;
    font-weight: 400 !important;
    color: var(--ee-grid-del-color, #94a3b8) !important;
    -webkit-text-fill-color: var(--ee-grid-del-color, #94a3b8) !important;
    text-decoration: line-through !important;
    opacity: 1 !important;
}

body .ee-design-standard .ee-grid-price del,
body .ee-design-standard .ee-grid-price .ee-price-del {
    font-size: 0.85em !important;
    order: 2 !important;
}

body .ee-design-standard .ee-grid-price del *,
body .ee-design-standard .ee-grid-price .ee-price-del * {
    font-size: inherit !important;
    line-height: inherit !important;
}

body .ee-design-standard .ee-grid-price ins,
body .ee-design-standard .ee-grid-price ins *,
body .ee-design-standard .ee-grid-price .ee-price-ins,
body .ee-design-standard .ee-grid-price .ee-price-ins * {
    font-family: var(--ee-grid-price-font, var(--ee-font-primary)) !important;
    font-weight: var(--ee-grid-price-weight, 700) !important;
    color: var(--ee-sale-color, #ef4444) !important;
    -webkit-text-fill-color: var(--ee-sale-color, #ef4444) !important;
    text-decoration: none !important;
}

body .ee-design-standard .ee-grid-price ins,
body .ee-design-standard .ee-grid-price .ee-price-ins {
    font-size: 1em !important;
    order: 1 !important;
}

body .ee-design-standard .ee-grid-price ins *,
body .ee-design-standard .ee-grid-price .ee-price-ins * {
    font-size: inherit !important;
    line-height: inherit !important;
}

/* Actions & Button */
body .ee-design-standard .ee-grid-actions {
    margin-top: auto !important;
    width: 100% !important;
}

body .ee-design-standard .ee-btn,
body .ee-design-standard .ee-btn-cart,
body .ee-design-standard .ee-btn-options,
body .ee-design-standard .ee-btn-readmore,
body .ee-design-standard .ee-btn *,
body .ee-design-standard .ee-btn-cart *,
body .ee-design-standard .ee-btn-options *,
body .ee-design-standard .ee-btn-readmore * {
    font-family: var(--ee-grid-btn-font, var(--ee-font-primary)) !important;
    font-size: var(--ee-grid-btn-size, 0.825rem) !important;
    font-weight: var(--ee-grid-btn-weight, 600) !important;
    letter-spacing: var(--ee-grid-btn-spacing, 0.01em) !important;
    text-transform: var(--ee-grid-btn-transform, none) !important;
}
    width: 100% !important;
    height: 40px !important;
    padding: 0 16px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    color: #1e293b !important;
    font-family: var(--ee-grid-btn-font, var(--ee-font-primary)) !important;
    font-size: var(--ee-grid-btn-size, 0.825rem) !important;
    font-weight: var(--ee-grid-btn-weight, 600) !important;
    letter-spacing: var(--ee-grid-btn-spacing, 0.01em) !important;
    text-transform: var(--ee-grid-btn-transform, none) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    text-decoration: none !important;
    box-shadow: none !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
    line-height: normal !important;
}

body .ee-design-standard .ee-btn .ee-btn-arrow,
body .ee-design-standard .ee-btn-cart .ee-btn-arrow,
body .ee-design-standard .ee-btn-options .ee-btn-arrow,
body .ee-design-standard .ee-btn-readmore .ee-btn-arrow {
    display: inline-block !important;
    color: #64748b !important;
    transition: transform 0.2s ease, color 0.2s ease !important;
    flex-shrink: 0 !important;
    width: 15px !important;
    height: 15px !important;
}

body .ee-design-standard .ee-btn:hover,
body .ee-design-standard .ee-btn-cart:hover,
body .ee-design-standard .ee-btn-options:hover,
body .ee-design-standard .ee-btn-readmore:hover {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
    box-shadow: none !important;
    transform: none !important;
}

body .ee-design-standard .ee-btn:hover .ee-btn-arrow,
body .ee-design-standard .ee-btn-cart:hover .ee-btn-arrow,
body .ee-design-standard .ee-btn-options:hover .ee-btn-arrow,
body .ee-design-standard .ee-btn-readmore:hover .ee-btn-arrow {
    transform: translateX(4px) !important;
    color: #0f172a !important;
}

body .ee-design-standard .ee-btn.ee-btn-added {
    background: #ecfdf5 !important;
    border-color: #10b981 !important;
    color: #065f46 !important;
}

body .ee-design-standard .ee-btn.ee-btn-added .ee-btn-arrow {
    display: none !important;
}

/* ==========================================================================
   Design 2: Pro (Editorial High-Fashion Look / Clean D2C)
   ========================================================================== */
body .ee-design-pro {
    font-family: var(--ee-font-primary, 'Plus Jakarta Sans', sans-serif) !important;
}

body .ee-design-pro .ee-product-card {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    transition: transform 0.25s ease !important;
}

body .ee-design-pro .ee-card-thumb-wrap {
    border-radius: 0 !important;
    aspect-ratio: var(--ee-aspect-ratio, 1 / 1) !important;
    background-color: #f8fafc !important;
    position: relative !important;
    overflow: hidden !important;
    width: 100% !important;
}

body .ee-design-pro .ee-card-thumb-wrap img,
body .ee-design-pro .ee-card-main-img,
body .ee-design-pro .ee-card-secondary-img {
    border-radius: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease !important;
}

body .ee-design-pro .ee-product-card:hover .ee-card-main-img {
    transform: scale(1.03) !important;
}

/* Wishlist Heart Button (Top-Right of Image) */
body .ee-design-pro .ee-pro-wishlist-btn {
    position: absolute !important;
    top: 12px !important;
    bottom: auto !important;
    right: 12px !important;
    z-index: 8 !important;
    background: transparent !important;
    border: none !important;
    padding: 4px !important;
    margin: 0 !important;
    cursor: pointer !important;
    color: #1e293b !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    line-height: 1 !important;
    outline: none !important;
    box-shadow: none !important;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease !important;
}

body .ee-design-pro .ee-pro-wishlist-btn:hover {
    transform: scale(1.18) !important;
    color: #ef4444 !important;
}

body .ee-design-pro .ee-pro-wishlist-btn svg {
    display: block !important;
    transition: fill 0.2s ease, stroke 0.2s ease !important;
}

body .ee-design-pro .ee-pro-wishlist-btn.ee-wishlisted {
    color: #ef4444 !important;
}

body .ee-design-pro .ee-pro-wishlist-btn.ee-wishlisted svg {
    fill: #ef4444 !important;
    stroke: #ef4444 !important;
    animation: eeHeartPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes eeHeartPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Slideup Action Bar on Hover */
body .ee-design-pro .ee-pro-slideup-bar {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 6 !important;
    display: flex !important;
    background: rgba(255, 255, 255, 0.94) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.6) !important;
    transform: translateY(101%) !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

body .ee-design-pro .ee-product-card:hover .ee-pro-slideup-bar {
    transform: translateY(0) !important;
}

body .ee-design-pro .ee-pro-bar-btn {
    flex: 1 !important;
    padding: 10px 8px !important;
    background: transparent !important;
    border: none !important;
    font-family: var(--ee-grid-btn-font, var(--ee-font-primary)) !important;
    font-size: var(--ee-grid-btn-size, 0.78rem) !important;
    font-weight: var(--ee-grid-btn-weight, 600) !important;
    letter-spacing: var(--ee-grid-btn-spacing, 0.01em) !important;
    text-transform: var(--ee-grid-btn-transform, none) !important;
    color: #0f172a !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    cursor: pointer !important;
    transition: background-color 0.15s ease, color 0.15s ease !important;
}

body .ee-design-pro .ee-pro-bar-btn:not(:last-child) {
    border-right: 1px solid rgba(0, 0, 0, 0.08) !important;
}

body .ee-design-pro .ee-pro-bar-btn:hover {
    background: var(--ee-accent-color, #0f172a) !important;
    color: #ffffff !important;
}

/* Card Body (Comfortable padding matching user reference) */
body .ee-design-pro .ee-card-body {
    padding: 12px 12px 6px 12px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
    background: transparent !important;
    text-align: left !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* 1. Title (Full Width) */
body .ee-design-pro .ee-card-title {
    width: 100% !important;
    font-family: var(--ee-grid-title-font, 'Cormorant Garamond', serif) !important;
    font-size: var(--ee-grid-title-size, 1.05rem) !important;
    font-weight: var(--ee-grid-title-weight, 600) !important;
    color: var(--ee-grid-title-color, #111827) !important;
    line-height: var(--ee-grid-title-lh, 1.3) !important;
    text-transform: var(--ee-grid-title-transform, none) !important;
    margin: 0 0 2px 0 !important;
    padding: 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    word-break: break-word !important;
}

body .ee-design-pro .ee-card-title a {
    color: var(--ee-grid-title-color, #111827) !important;
    text-decoration: none !important;
    transition: color 0.15s ease !important;
}

body .ee-design-pro .ee-card-title a:hover {
    color: var(--ee-accent-hover, #475569) !important;
}

/* 2. Category (Full Width) */
body .ee-design-pro .ee-card-category {
    width: 100% !important;
    font-family: var(--ee-grid-cat-font, var(--ee-font-primary)) !important;
    font-size: var(--ee-grid-cat-size, 0.82rem) !important;
    font-weight: var(--ee-grid-cat-weight, 400) !important;
    color: var(--ee-grid-cat-color, #8c8c8c) !important;
    text-transform: var(--ee-grid-cat-transform, none) !important;
    letter-spacing: normal !important;
    line-height: 1.3 !important;
    margin: 0 0 4px 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

/* 3. Price */
body .ee-design-pro .ee-grid-price {
    font-family: var(--ee-grid-price-font, var(--ee-font-primary)) !important;
    font-size: var(--ee-grid-price-size, 0.98rem) !important;
    font-weight: var(--ee-grid-price-weight, 700) !important;
    color: var(--ee-grid-price-color, #111827) !important;
    display: flex !important;
    align-items: baseline !important;
    gap: 8px !important;
    line-height: 1.25 !important;
    margin: 0 !important;
    padding: 0 !important;
}

body .ee-design-pro .ee-grid-price del,
body .ee-design-pro .ee-grid-price del *,
body .ee-design-pro .ee-grid-price .ee-price-del,
body .ee-design-pro .ee-grid-price .ee-price-del * {
    color: var(--ee-grid-del-color, #94a3b8) !important;
    -webkit-text-fill-color: var(--ee-grid-del-color, #94a3b8) !important;
    font-weight: 400 !important;
    text-decoration: line-through !important;
    opacity: 1 !important;
}

body .ee-design-pro .ee-grid-price del,
body .ee-design-pro .ee-grid-price .ee-price-del {
    font-size: 0.85em !important;
    order: 2 !important;
}

body .ee-design-pro .ee-grid-price del *,
body .ee-design-pro .ee-grid-price .ee-price-del * {
    font-size: inherit !important;
    line-height: inherit !important;
}

body .ee-design-pro .ee-grid-price ins,
body .ee-design-pro .ee-grid-price ins *,
body .ee-design-pro .ee-grid-price .ee-price-ins,
body .ee-design-pro .ee-grid-price .ee-price-ins * {
    color: var(--ee-sale-color, #111827) !important;
    -webkit-text-fill-color: var(--ee-sale-color, #111827) !important;
    font-weight: var(--ee-grid-price-weight, 700) !important;
    text-decoration: none !important;
}

body .ee-design-pro .ee-grid-price ins,
body .ee-design-pro .ee-grid-price .ee-price-ins {
    font-size: 1em !important;
    order: 1 !important;
}

body .ee-design-pro .ee-grid-price ins *,
body .ee-design-pro .ee-grid-price .ee-price-ins * {
    font-size: inherit !important;
    line-height: inherit !important;
}

body .ee-design-pro .ee-grid-price > .woocommerce-Price-amount,
body .ee-design-pro .ee-grid-price > .woocommerce-Price-amount * {
    font-weight: var(--ee-grid-price-weight, 700) !important;
    color: var(--ee-grid-price-color, #111827) !important;
    -webkit-text-fill-color: var(--ee-grid-price-color, #111827) !important;
}

/* Pro Bottom Info & Swatch Row */
body .ee-design-pro .ee-pro-bottom-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    margin-top: 2px !important;
}

body .ee-design-pro .ee-pro-price-wrap {
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

body .ee-design-pro .ee-pro-variant-col {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
}

body .ee-design-pro .ee-pro-swatches {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 5px !important;
    flex-wrap: wrap !important;
}

body .ee-design-pro .ee-pro-swatch-bar {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 20px !important;
    height: 9px !important;
    border-radius: 2px !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
    display: inline-block !important;
    transition: opacity 0.15s ease, border-color 0.15s ease !important;
    box-sizing: border-box !important;
    position: relative !important;
}

body .ee-design-pro .ee-pro-swatch-bar:hover {
    opacity: 0.8 !important;
    border-color: rgba(0, 0, 0, 0.25) !important;
}

body .ee-design-pro .ee-pro-swatch-bar.ee-swatch-active {
    outline: 1.2px solid #111827 !important;
    outline-offset: 1.5px !important;
    border-color: rgba(0, 0, 0, 0.2) !important;
}

body .ee-design-pro .ee-grid-swatches {
    margin-top: 4px !important;
}

/* Badge styling for Pro */
body .ee-design-pro .ee-grid-badges {
    top: 10px !important;
    left: 10px !important;
}

body .ee-design-pro .ee-badge {
    padding: 3px 9px !important;
    border-radius: 4px !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12) !important;
}

body .ee-design-pro .ee-badge-sale {
    background: #ef4444 !important;
    color: #ffffff !important;
}

/* ==========================================================================
   Design 3: Max (High Velocity / Flash Sale)
   ========================================================================== */
body .ee-design-max .ee-product-card {
    border: 1.5px solid #fee2e2 !important;
    background: #ffffff !important;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.05) !important;
    padding: 10px !important;
}

body .ee-design-max .ee-product-card:hover {
    border-color: var(--ee-sale-color) !important;
    box-shadow: 0 12px 28px rgba(239, 68, 68, 0.12) !important;
    transform: translateY(-3px) !important;
}

body .ee-design-max .ee-grid-countdown {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 5 !important;
    background: rgba(15, 23, 42, 0.88) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    color: #ffffff !important;
    padding: 7px 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em !important;
}

body .ee-design-max .ee-timer-icon {
    color: #f87171 !important;
}

body .ee-design-max .ee-max-scarcity {
    margin: 4px 0 6px 0 !important;
}

body .ee-design-max .ee-scarcity-bar {
    width: 100% !important;
    height: 5px !important;
    background: #f1f5f9 !important;
    border-radius: 9999px !important;
    overflow: hidden !important;
    margin-bottom: 4px !important;
}

body .ee-design-max .ee-scarcity-fill {
    display: block !important;
    height: 100% !important;
    background: linear-gradient(90deg, #f59e0b, #ef4444) !important;
    border-radius: 9999px !important;
}

body .ee-design-max .ee-scarcity-text {
    font-size: var(--ee-grid-scarcity-size, 0.73rem) !important;
    font-weight: var(--ee-grid-scarcity-weight, 700) !important;
    color: var(--ee-grid-scarcity-color, #b91c1c) !important;
}

body .ee-design-max .ee-max-buy-row {
    display: flex !important;
    gap: 8px !important;
    align-items: center !important;
}

body .ee-design-max .ee-qty-stepper {
    display: flex !important;
    align-items: center !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: var(--ee-radius, 8px) !important;
    background: #f8fafc !important;
    overflow: hidden !important;
    height: 40px !important;
}

body .ee-design-max .ee-qty-btn {
    appearance: none !important;
    background: transparent !important;
    border: none !important;
    width: 28px !important;
    height: 100% !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    color: #0f172a !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    user-select: none !important;
    padding: 0 !important;
}

body .ee-design-max .ee-qty-btn:hover {
    background: #e2e8f0 !important;
}

body .ee-design-max .ee-qty-input {
    width: 34px !important;
    border: none !important;
    background: transparent !important;
    text-align: center !important;
    font-size: 0.875rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    padding: 0 !important;
    -moz-appearance: textfield !important;
    box-shadow: none !important;
}

body .ee-design-max .ee-qty-input::-webkit-outer-spin-button,
body .ee-design-max .ee-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

body .ee-design-max .ee-max-buy-row .ee-btn-cart {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3) !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    font-size: 0.8rem !important;
    height: 40px !important;
    flex: 1 !important;
}

body .ee-design-max .ee-max-buy-row .ee-btn-cart:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
    box-shadow: 0 6px 18px rgba(239, 68, 68, 0.45) !important;
}

body .ee-design-max .ee-max-trust-note {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    color: var(--ee-text-muted) !important;
    margin-top: 6px !important;
}

/* ==========================================================================
   Design 4: Ultra (Modern App Neo-Card / Bento)
   ========================================================================== */
body .ee-design-ultra .ee-product-card {
    background: #ffffff !important;
    border-radius: 28px !important;
    border: 1px solid #f1f5f9 !important;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02) !important;
    padding: 22px !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    box-sizing: border-box !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

body .ee-design-ultra .ee-product-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 18px 40px -8px rgba(0, 0, 0, 0.09), 0 8px 12px -3px rgba(0, 0, 0, 0.03) !important;
}

/* Top Header Row (Hidden in modern card layout) */
body .ee-design-ultra .ee-ultra-top-row {
    display: none !important;
}

body .ee-design-ultra .ee-ultra-pill-wrap {
    display: none !important;
}

body .ee-design-ultra .ee-ultra-pill {
    display: none !important;
}

body .ee-design-ultra .ee-ultra-cart-btn {
    appearance: none !important;
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    z-index: 6 !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    color: #111827 !important;
    text-decoration: none !important;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease !important;
    padding: 0 !important;
    margin: 0 !important;
}

body .ee-design-ultra .ee-ultra-cart-btn:hover {
    background: #ffffff !important;
    color: #000000 !important;
    transform: scale(1.08) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
}

body .ee-design-ultra .ee-ultra-cart-btn.ee-loading svg {
    opacity: 0.2 !important;
}

body .ee-design-ultra .ee-ultra-cart-btn.ee-loading .ee-btn-spinner {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 16px !important;
    height: 16px !important;
    border: 2px solid #111827 !important;
    border-top-color: transparent !important;
    border-radius: 50% !important;
    animation: eeSpin 0.7s linear infinite !important;
    display: block !important;
}

/* Center Image Wrap */
body .ee-design-ultra .ee-card-thumb-wrap {
    border-radius: 16px !important;
    overflow: hidden !important;
    background: #f8fafc !important;
    margin-bottom: 14px !important;
    position: relative !important;
    aspect-ratio: var(--ee-aspect-ratio, 1 / 1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
}

body .ee-design-ultra .ee-card-img-link {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

body .ee-design-ultra .ee-card-main-img,
body .ee-design-ultra .ee-card-secondary-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

body .ee-design-ultra .ee-product-card:hover .ee-card-main-img {
    transform: scale(1.04) !important;
}

/* Hover Quick View */
body .ee-design-ultra .ee-ultra-hover-actions {
    position: absolute !important;
    top: 54px !important;
    right: 12px !important;
    z-index: 5 !important;
    opacity: 0 !important;
    transform: scale(0.9) !important;
    transition: all 0.25s ease !important;
}

body .ee-design-ultra .ee-product-card:hover .ee-ultra-hover-actions {
    opacity: 1 !important;
    transform: scale(1) !important;
}

body .ee-design-ultra .ee-ultra-qv-btn {
    appearance: none !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: none !important;
    color: #0f172a !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.2s ease !important;
    padding: 0 !important;
}

body .ee-design-ultra .ee-ultra-qv-btn:hover {
    background: #0f172a !important;
    color: #ffffff !important;
}

/* Bottom Card Body */
body .ee-design-ultra .ee-card-body {
    padding: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    background: transparent !important;
}

body .ee-design-ultra .ee-ultra-bottom-grid {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-end !important;
    gap: 12px !important;
    width: 100% !important;
}

body .ee-design-ultra .ee-ultra-info-col {
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

body .ee-design-ultra .ee-ultra-desc-label {
    display: none !important;
}

body .ee-design-ultra .ee-card-category {
    display: block !important;
    font-family: var(--ee-grid-cat-font, var(--ee-font-primary)) !important;
    font-weight: var(--ee-grid-cat-weight, 600) !important;
    font-size: var(--ee-grid-cat-size, 0.72rem) !important;
    line-height: var(--ee-grid-cat-lh, 1.25) !important;
    text-transform: var(--ee-grid-cat-transform, uppercase) !important;
    letter-spacing: var(--ee-grid-cat-spacing, 0.05em) !important;
    color: var(--ee-grid-cat-color, #64748b) !important;
    margin: 0 0 3px 0 !important;
    word-break: break-word !important;
}

body .ee-design-ultra .ee-card-title {
    font-family: var(--ee-grid-title-font, var(--ee-font-primary)) !important;
    font-weight: var(--ee-grid-title-weight, 600) !important;
    font-size: var(--ee-grid-title-size, 0.92rem) !important;
    line-height: var(--ee-grid-title-lh, 1.35) !important;
    text-transform: var(--ee-grid-title-transform, none) !important;
    color: var(--ee-grid-title-color, #111827) !important;
    margin: 0 0 6px 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    word-break: break-word !important;
}

body .ee-design-ultra .ee-card-title a {
    color: inherit !important;
    text-decoration: none !important;
    transition: color 0.15s ease !important;
}

body .ee-design-ultra .ee-card-title a:hover {
    color: var(--ee-sale-color, #f24343) !important;
}

body .ee-design-ultra .ee-grid-price {
    font-family: var(--ee-grid-price-font, var(--ee-font-primary)) !important;
    font-weight: var(--ee-grid-price-weight, 700) !important;
    font-size: var(--ee-grid-price-size, 0.95rem) !important;
    color: var(--ee-grid-price-color, #111827) !important;
    display: flex !important;
    align-items: baseline !important;
    gap: 6px !important;
    margin: 0 !important;
    line-height: 1.2 !important;
}

body .ee-design-ultra .ee-grid-price ins,
body .ee-design-ultra .ee-grid-price ins * {
    color: var(--ee-sale-color, #111827) !important;
    -webkit-text-fill-color: var(--ee-sale-color, #111827) !important;
    font-weight: var(--ee-grid-price-weight, 700) !important;
    text-decoration: none !important;
}

body .ee-design-ultra .ee-grid-price del,
body .ee-design-ultra .ee-grid-price del * {
    color: var(--ee-grid-del-color, #94a3b8) !important;
    -webkit-text-fill-color: var(--ee-grid-del-color, #94a3b8) !important;
    font-size: 0.82em !important;
    font-weight: 400 !important;
}

/* Variant & Swatch Bars Column */
body .ee-design-ultra .ee-ultra-variant-col {
    flex: 0 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    justify-content: flex-end !important;
    text-align: right !important;
    padding-bottom: 2px !important;
}

body .ee-design-ultra .ee-ultra-variant-label {
    display: none !important;
}

body .ee-design-ultra .ee-ultra-swatches {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 4px !important;
}

body .ee-design-ultra .ee-ultra-swatch-bar {
    appearance: none !important;
    width: 22px !important;
    height: 10px !important;
    border-radius: 2px !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease !important;
    box-sizing: border-box !important;
}

body .ee-design-ultra .ee-ultra-swatch-bar:hover,
body .ee-design-ultra .ee-ultra-swatch-bar.ee-swatch-active {
    transform: scale(1.15) !important;
    box-shadow: 0 0 0 1.5px #0f172a !important;
    border-color: transparent !important;
}

/* ==========================================================================
   Pagination & Load More
   ========================================================================== */
body .ee-product-grid-wrapper .ee-grid-pagination {
    margin-top: 3rem !important;
    display: flex !important;
    justify-content: center !important;
}

body .ee-product-grid-wrapper .ee-grid-load-more-btn {
    appearance: none !important;
    background: transparent !important;
    border: 2px solid var(--ee-accent-color) !important;
    color: var(--ee-accent-color) !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    padding: 12px 36px !important;
    border-radius: 9999px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: all 0.2s ease !important;
}

body .ee-product-grid-wrapper .ee-grid-load-more-btn:hover {
    background: var(--ee-accent-color) !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
}

body .ee-product-grid-wrapper .ee-grid-load-more-btn.ee-loading .ee-btn-spinner {
    display: inline-block !important;
    border-color: rgba(0, 0, 0, 0.2) !important;
    border-top-color: currentColor !important;
}

/* ==========================================================================
   Quick View Modal
   ========================================================================== */
.ee-qv-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 999999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.25s ease, visibility 0.25s ease !important;
    box-sizing: border-box !important;
}

.ee-qv-modal.ee-qv-open {
    opacity: 1 !important;
    visibility: visible !important;
}

.ee-qv-backdrop {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(15, 23, 42, 0.6) !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
}

.ee-qv-dialog {
    position: relative !important;
    z-index: 2 !important;
    background: #ffffff !important;
    width: 90% !important;
    max-width: 820px !important;
    max-height: 90vh !important;
    border-radius: 16px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
    overflow-y: auto !important;
    transform: scale(0.95) !important;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    padding: 0 !important;
}

.ee-qv-modal.ee-qv-open .ee-qv-dialog {
    transform: scale(1) !important;
}

.ee-qv-close {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    z-index: 10 !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: #f1f5f9 !important;
    border: none !important;
    font-size: 1.5rem !important;
    line-height: 1 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #0f172a !important;
    transition: background-color 0.15s ease !important;
}

.ee-qv-close:hover {
    background: #e2e8f0 !important;
}

.ee-qv-body {
    padding: 24px !important;
    min-height: 300px !important;
}

.ee-qv-loader {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 60px 0 !important;
    gap: 12px !important;
    color: #64748b !important;
}

.ee-spinner {
    width: 34px !important;
    height: 34px !important;
    border: 3px solid #e2e8f0 !important;
    border-top-color: #0f172a !important;
    border-radius: 50% !important;
    animation: eeGridSpin 0.8s linear infinite !important;
}

.ee-qv-container {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 28px !important;
    align-items: start !important;
}

.ee-qv-main-image img {
    width: 100% !important;
    height: auto !important;
    border-radius: 12px !important;
    object-fit: cover !important;
}

.ee-qv-title {
    margin: 0 0 10px 0 !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    color: #0f172a !important;
}

.ee-qv-price {
    font-size: 1.35rem !important;
    font-weight: 700 !important;
    margin: 12px 0 !important;
}

.ee-qv-price ins,
.ee-qv-price ins * {
    color: var(--ee-sale-color, #ef4444) !important;
    -webkit-text-fill-color: var(--ee-sale-color, #ef4444) !important;
    text-decoration: none !important;
}

.ee-qv-price ins {
    font-size: 1em !important;
}

.ee-qv-price ins * {
    font-size: inherit !important;
    line-height: inherit !important;
}

.ee-qv-price del,
.ee-qv-price del * {
    color: var(--ee-grid-del-color, #94a3b8) !important;
    -webkit-text-fill-color: var(--ee-grid-del-color, #94a3b8) !important;
    text-decoration: line-through !important;
    opacity: 1 !important;
}

.ee-qv-price del {
    font-size: 0.85em !important;
}

.ee-qv-price del * {
    font-size: inherit !important;
    line-height: inherit !important;
}

.ee-qv-excerpt {
    font-size: 0.9rem !important;
    color: #64748b !important;
    line-height: 1.6 !important;
    margin-bottom: 20px !important;
}

.ee-qv-qty-wrap {
    display: flex !important;
    gap: 10px !important;
    align-items: center !important;
    margin-bottom: 20px !important;
}

.ee-qv-meta {
    border-top: 1px solid #e2e8f0 !important;
    padding-top: 14px !important;
    margin-top: 20px !important;
    font-size: 0.8rem !important;
    color: #64748b !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}

@keyframes eeGridSpin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
    body .ee-product-grid-wrapper .ee-product-grid-items {
        grid-template-columns: repeat(var(--ee-cols-tablet, 2), minmax(0, 1fr)) !important;
        gap: 16px !important;
    }
}

@media (max-width: 768px) {
    .ee-qv-container {
        grid-template-columns: 1fr !important;
    }
    
    body .ee-product-grid-wrapper .ee-card-hover-actions,
    body .ee-product-grid-wrapper .ee-pro-slideup-bar,
    body .ee-product-grid-wrapper .ee-ultra-hover-actions,
    body .ee-product-grid-wrapper .ee-ultra-bag-slide {
        opacity: 1 !important;
        transform: none !important;
    }
}

@media (max-width: 767px) {
    body .ee-product-grid-wrapper .ee-product-grid-items {
        grid-template-columns: repeat(var(--ee-cols-mobile, 2), minmax(0, 1fr)) !important;
        gap: 12px !important;
    }

    /* ==========================================================================
       1. Standard Archetype Mobile Refinements
       ========================================================================== */
    body .ee-design-standard .ee-product-card {
        border-radius: 12px !important;
    }

    body .ee-design-standard .ee-card-body {
        padding: 10px 12px 14px 12px !important;
        display: flex !important;
        flex-direction: column !important;
        flex: 1 !important;
        background: #ffffff !important;
        box-sizing: border-box !important;
    }

    body .ee-design-standard .ee-card-category,
    body .ee-design-standard .ee-card-category * {
        font-size: var(--ee-grid-cat-size-mob, var(--ee-grid-cat-size, 0.65rem)) !important;
        margin-bottom: 3px !important;
        line-height: 1.2 !important;
    }

    body .ee-design-standard .ee-card-title,
    body .ee-design-standard .ee-card-title a {
        font-size: var(--ee-grid-title-size-mob, var(--ee-grid-title-size, 0.825rem)) !important;
        line-height: 1.3 !important;
        margin-bottom: 6px !important;
    }

    body .ee-design-standard .ee-grid-price,
    body .ee-design-standard .ee-grid-price * {
        font-size: var(--ee-grid-price-size-mob, var(--ee-grid-price-size, 0.88rem)) !important;
        margin-bottom: 8px !important;
        gap: 6px !important;
    }

    body .ee-design-standard .ee-grid-actions {
        margin-top: auto !important;
        width: 100% !important;
    }

    body .ee-design-standard .ee-btn,
    body .ee-design-standard .ee-btn-cart,
    body .ee-design-standard .ee-btn-options,
    body .ee-design-standard .ee-btn-readmore,
    body .ee-design-standard .ee-btn *,
    body .ee-design-standard .ee-btn-cart *,
    body .ee-design-standard .ee-btn-options *,
    body .ee-design-standard .ee-btn-readmore * {
        width: 100% !important;
        height: 36px !important;
        padding: 0 10px !important;
        font-size: var(--ee-grid-btn-size-mob, var(--ee-grid-btn-size, 0.78rem)) !important;
        border-radius: 6px !important;
    }

    /* ==========================================================================
       2. Pro Archetype Mobile Refinements
       ========================================================================== */
    body .ee-design-pro .ee-card-body {
        padding: 10px 10px 4px 10px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 2px !important;
        box-sizing: border-box !important;
    }

    body .ee-design-pro .ee-pro-bottom-row {
        display: contents !important;
    }

    body .ee-design-pro .ee-pro-variant-col {
        order: -1 !important;
        width: 100% !important;
        display: flex !important;
        justify-content: flex-start !important;
        margin-bottom: 5px !important;
        padding-top: 1px !important;
    }

    body .ee-design-pro .ee-pro-swatches {
        justify-content: flex-start !important;
        gap: 5px !important;
    }

    body .ee-design-pro .ee-pro-swatch-bar {
        width: 18px !important;
        height: 8px !important;
        border-radius: 2px !important;
    }

    body .ee-design-pro .ee-pro-swatch-bar.ee-swatch-active {
        outline: 1px solid #111827 !important;
        outline-offset: 1.5px !important;
    }

    body .ee-design-pro .ee-card-title,
    body .ee-design-pro .ee-card-title a {
        order: 1 !important;
        font-size: var(--ee-grid-title-size-mob, var(--ee-grid-title-size, 0.825rem)) !important;
        line-height: 1.3 !important;
        margin-bottom: 2px !important;
    }

    body .ee-design-pro .ee-card-category,
    body .ee-design-pro .ee-card-category * {
        order: 2 !important;
        font-size: var(--ee-grid-cat-size-mob, var(--ee-grid-cat-size, 0.65rem)) !important;
        margin-bottom: 3px !important;
    }

    body .ee-design-pro .ee-pro-price-wrap {
        order: 3 !important;
        width: 100% !important;
    }

    body .ee-design-pro .ee-grid-price,
    body .ee-design-pro .ee-grid-price * {
        font-size: var(--ee-grid-price-size-mob, var(--ee-grid-price-size, 0.88rem)) !important;
    }

    body .ee-design-pro .ee-pro-wishlist-btn {
        top: 8px !important;
        right: 8px !important;
    }

    /* ==========================================================================
       3. Max Archetype Mobile Refinements
       ========================================================================== */
    body .ee-design-max .ee-product-card {
        padding: 8px !important;
        border-radius: 12px !important;
    }

    body .ee-design-max .ee-card-body {
        padding: 8px 6px 2px 6px !important;
        box-sizing: border-box !important;
    }

    body .ee-design-max .ee-card-title,
    body .ee-design-max .ee-card-title a {
        font-size: var(--ee-grid-title-size-mob, var(--ee-grid-title-size, 0.825rem)) !important;
        line-height: 1.3 !important;
        margin-bottom: 4px !important;
    }

    body .ee-design-max .ee-grid-price,
    body .ee-design-max .ee-grid-price * {
        font-size: var(--ee-grid-price-size-mob, var(--ee-grid-price-size, 0.88rem)) !important;
    }

    body .ee-design-max .ee-max-scarcity {
        margin: 3px 0 !important;
    }

    body .ee-design-max .ee-max-scarcity-text {
        font-size: 0.65rem !important;
    }

    body .ee-design-max .ee-qty-stepper {
        height: 32px !important;
    }

    body .ee-design-max .ee-qty-btn {
        width: 22px !important;
        font-size: 0.95rem !important;
    }

    body .ee-design-max .ee-qty-input {
        width: 26px !important;
        font-size: 0.8rem !important;
    }

    body .ee-design-max .ee-max-buy-row .ee-btn-cart {
        height: 32px !important;
        font-size: var(--ee-grid-btn-size-mob, var(--ee-grid-btn-size, 0.72rem)) !important;
        padding: 0 8px !important;
    }

    body .ee-design-max .ee-max-trust-note {
        font-size: 0.65rem !important;
    }

    /* ==========================================================================
       4. Ultra Archetype Mobile Refinements
       ========================================================================== */
    body .ee-design-ultra .ee-product-card {
        padding: 12px !important;
        border-radius: 18px !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
    }

    body .ee-design-ultra .ee-card-thumb-wrap {
        border-radius: 12px !important;
    }

    body .ee-design-ultra .ee-ultra-cart-btn {
        width: 32px !important;
        height: 32px !important;
        top: 8px !important;
        right: 8px !important;
    }

    body .ee-design-ultra .ee-card-body {
        padding: 8px 0 0 0 !important;
    }

    body .ee-design-ultra .ee-card-category,
    body .ee-design-ultra .ee-card-category * {
        font-size: var(--ee-grid-cat-size-mob, var(--ee-grid-cat-size, 0.65rem)) !important;
        margin-bottom: 2px !important;
    }

    body .ee-design-ultra .ee-card-title,
    body .ee-design-ultra .ee-card-title a {
        font-size: var(--ee-grid-title-size-mob, var(--ee-grid-title-size, 0.825rem)) !important;
        line-height: 1.25 !important;
        margin-bottom: 4px !important;
    }

    body .ee-design-ultra .ee-grid-price,
    body .ee-design-ultra .ee-grid-price * {
        font-size: var(--ee-grid-price-size-mob, var(--ee-grid-price-size, 0.85rem)) !important;
    }

    body .ee-design-ultra .ee-ultra-swatches {
        gap: 3px !important;
    }

    body .ee-design-ultra .ee-ultra-swatch-bar {
        width: 16px !important;
        height: 8px !important;
        border-radius: 2px !important;
    }
}

@media (max-width: 480px) {
    body .ee-product-grid-wrapper .ee-product-grid-items {
        gap: 10px !important;
    }

    body .ee-design-standard .ee-card-body {
        padding: 8px 10px 12px 10px !important;
    }

    body .ee-design-pro .ee-card-body {
        padding: 8px 8px 4px 8px !important;
        box-sizing: border-box !important;
    }

    body .ee-design-pro .ee-pro-swatch-bar {
        width: 16px !important;
        height: 8px !important;
    }

    body .ee-design-standard .ee-btn,
    body .ee-design-standard .ee-btn-cart,
    body .ee-design-standard .ee-btn-options,
    body .ee-design-standard .ee-btn-readmore,
    body .ee-design-standard .ee-btn *,
    body .ee-design-standard .ee-btn-cart *,
    body .ee-design-standard .ee-btn-options *,
    body .ee-design-standard .ee-btn-readmore * {
        height: 34px !important;
        padding: 0 6px !important;
        font-size: var(--ee-grid-btn-size-mob, var(--ee-grid-btn-size, 0.75rem)) !important;
    }

    body .ee-design-ultra .ee-product-card {
        padding: 10px !important;
        border-radius: 14px !important;
    }
}
