/*
Theme Name: merto child
Description: Child theme for Merto
Author: Your Name
Version: 1.0.1
Template: merto
*/

/* ==========================================================================
   Custom Landing Page Styles (page-landing.php)
   Theme Color: Light Purple Theme
   ========================================================================== */

:root {
    --primary-color: #9333ea; /* Purple */
    --primary-hover: #7e22ce;
    --primary-light: #f3e8ff;
    --bg-light: #ffffff;
    --bg-card: #faf5ff; /* Very light purple for cards */
    --text-main: #1f2937;
    --text-muted: #6b7280;
}

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
}

/* Base resets for WooCommerce elements on landing page */
ul, 
li {
    list-style: none !important;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none !important;
    box-shadow: none !important;
}

.clp-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ================= HEADER ================= */
.clp-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: #f3e8ff; /* Light purple background */
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(147, 51, 234, 0.1);
}

.clp-header-stacked {
    display: flex;
    flex-direction: column;
    padding-top: 5px;
    padding-bottom: 5px;
}

.clp-header-top {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 5px;
}

.clp-mobile-menu-toggle {
    display: none;
}

/* Center Logo */
.clp-logo {
    text-align: center;
}

.clp-logo img {
    max-height: 80px;
    width: auto;
    display: inline-block;
}

.clp-logo h1 {
    margin: 0;
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--primary-color);
}

/* Bottom Row for Nav & Actions */
.clp-header-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 15px 0;
}

/* Navigation */
.clp-nav {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.clp-close-menu {
    display: none;
}

.clp-nav .clp-menu {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 9999;
    margin: 0 !important;
    padding: 0 !important;
}

.clp-mobile-only-menu {
    display: none !important;
}

.clp-nav .clp-menu li a {
    color: var(--text-main);
    font-weight: 700; /* Bolder font */
    font-size: 16px;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.clp-nav .clp-menu li a:hover {
    color: var(--primary-color);
}

/* Actions (Wishlist/Account/Cart) */
.clp-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    padding-right: 20px;
}

.clp-icon-link {
    color: var(--text-main);
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.clp-icon-link:hover {
    color: var(--primary-color);
}

/* ================= HERO SECTION ================= */
.clp-hero {
    position: relative;
    padding: 40px 0 60px; /* Reduced from 120px to compensate for .clp-main top padding */
    min-height: 40vh;
    display: flex;
    align-items: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    box-shadow: inset 0 0 100px rgba(147, 51, 234, 0.15), inset 0 -20px 50px rgba(0,0,0,0.05);
}

.clp-hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Lighter overlay for the light theme */
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.95));
    z-index: 1;
}

.clp-hero .clp-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
}

.clp-hero-content {
    max-width: 850px;
}

.clp-hero-title {
    font-size: 72px;
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 24px;
    letter-spacing: -2px;
    color: var(--primary-color);
    animation: fadeUp 1s ease-out;
}

.clp-hero-subtitle {
    font-size: 26px;
    line-height: 1.6;
    color: #000000;
    margin: 0 0 48px;
    font-weight: 700;
    text-shadow: 0 2px 15px rgba(255, 255, 255, 0.9), 0 0 5px #fff;
    animation: fadeUp 1s ease-out 0.2s backwards;
}

.clp-btn-primary {
    display: inline-block;
    padding: 18px 48px;
    background: var(--primary-color);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    border-radius: 99px;
    box-shadow: 0 10px 30px rgba(147, 51, 234, 0.3);
    transition: all 0.3s ease;
    animation: fadeUp 1s ease-out 0.4s backwards;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.clp-btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(147, 51, 234, 0.4);
    color: #fff;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ================= WOOCOMMERCE SECTIONS ================= */
.clp-main {
    padding-top: 0 !important; /* Header is sticky, no padding needed */
    padding-bottom: 80px;
    background: var(--bg-light);
}

.clp-section {
    margin-bottom: 30px;
    background: #faf5ff;
    border: 1px solid rgba(147, 51, 234, 0.15);
    border-radius: 24px;
    padding: 60px 40px;
    box-shadow: 0 10px 30px rgba(147, 51, 234, 0.05);
}

.clp-section-title {
    font-size: 36px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-main);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.clp-section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Override WooCommerce Grids for Light Theme */
.woocommerce ul.products li.product .product-wrapper, .products .product .product-wrapper {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eaeaea;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    position: relative;
    overflow: hidden;
}

.woocommerce ul.products li.product, .products .product:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    border-color: rgba(147, 51, 234, 0.3);
}

.woocommerce ul.products li.product, .products .product img {
    border-radius: 4px;
    margin-bottom: 15px;
    width: 100%;
    height: 200px;
    object-fit: contain !important;
    background-color: #fff;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title, .products .product .woocommerce-loop-product__title {
    color: #000 !important;
    font-size: 18px !important;
    font-weight: 600;
    padding: 0;
    margin-bottom: 8px;
    line-height: 1.4;
}

.woocommerce ul.products li.product .price, .products .product .price {
    color: #000 !important;
    font-size: 18px !important;
    font-weight: 700;
    margin-bottom: 15px;
    display: block;
}

.woocommerce ul.products li.product .price ins, .products .product .price ins {
    text-decoration: none;
    color: #000 !important;
}

.woocommerce ul.products li.product .price del, .products .product .price del {
    color: #000 !important;
    font-size: 16px !important;
    font-weight: 400;
    margin-right: 8px;
}

/* Hide SKU, Categories, and other details from product list */
.woocommerce ul.products li.product .sku_wrapper,
.woocommerce ul.products li.product .posted_in,
.woocommerce ul.products li.product .tagged_as,
.woocommerce ul.products li.product .product-meta,
.woocommerce ul.products li.product .woocommerce-loop-product__category,
.woocommerce ul.products li.product .product-brands,
.woocommerce ul.products li.product .product-categories {
    display: none !important;
}

.woocommerce ul.products li.product, .products .product .button {
    background: transparent;
    color: var(--primary-color);
    border-radius: 4px;
    padding: 8px 15px;
    font-weight: 600;
    font-size: 13px;
    border: 1px solid var(--primary-color);
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    width: 100%;
}

.woocommerce ul.products li.product, .products .product .button:hover {
    background: var(--primary-color);
    color: #fff;
}

/* ================= WOOCOMMERCE CATEGORY OVERRIDES ================= */
.woocommerce ul.products li.product, .products .product-category {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    text-align: center !important;
    padding: 0 !important;
}

.woocommerce ul.products li.product, .products .product-category:hover {
    transform: none !important;
    box-shadow: none !important;
}

.woocommerce ul.products li.product, .products .product-category a img {
    border-radius: 30px; /* Modern squircle shape */
    width: 160px !important;
    height: 160px !important;
    max-width: 100% !important;
    object-fit: contain !important;
    background: #ffffff;
    margin: 0 auto 20px;
    box-shadow: 0 10px 30px rgba(147, 51, 234, 0.1);
    border: 3px solid #ffffff !important;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important; /* Smooth bouncy animation */
}

.woocommerce ul.products li.product, .products .product-category a:hover img {
    transform: translateY(-15px) scale(1.08);
    box-shadow: 0 20px 40px rgba(147, 51, 234, 0.25);
    border-color: var(--primary-light) !important;
}

.woocommerce ul.products li.product, .products .product-category .woocommerce-loop-category__title {
    color: #1f2937 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    margin-top: 15px !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.woocommerce ul.products li.product, .products .product-category a:hover .woocommerce-loop-category__title {
    color: var(--primary-color) !important;
}

.woocommerce ul.products li.product, .products .product-category mark {
    background: var(--primary-light) !important;
    color: var(--primary-color) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    padding: 4px 12px !important;
    border-radius: 99px;
    display: inline-block;
    line-height: 1.2;
}

.woocommerce ul.products li.product, .products .product-category a {
    display: block;
    position: relative;
    z-index: 10;
}
/* ================= TOP BRANDS SECTION ================= */
.clp-brands-section {
    padding: 60px 0 80px;
}

.clp-brands-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.clp-brand-card {
    border-radius: 20px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    min-height: 250px;
}

.clp-brand-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

/* Gradients matching the requested Brands theme */
.clp-brand-card-1 { background: linear-gradient(135deg, #8b5cf6, #6d28d9); } /* Purple */
.clp-brand-card-2 { background: linear-gradient(135deg, #38bdf8, #0284c7); } /* Cyan */
.clp-brand-card-3 { background: linear-gradient(135deg, #f472b6, #db2777); } /* Pink */
.clp-brand-card-4 { background: linear-gradient(135deg, #818cf8, #4f46e5); } /* Indigo */

.clp-brand-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 40px;
}

.clp-brand-badge {
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 12px;
    border-radius: 99px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
    color: #fff;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.1);
}

.clp-brand-title {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 10px;
    line-height: 1.2;
    color: #fff !important;
}

.clp-brand-desc {
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 30px;
    opacity: 0.85;
    flex-grow: 1;
}

.clp-brand-btn {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 10px 20px;
    border-radius: 99px;
    font-weight: 700;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    text-decoration: none !important;
    border: 1px solid rgba(255,255,255,0.2);
}

.clp-brand-btn:hover {
    background: #fff;
    color: #000;
}

/* ================= NEW CATEGORY PROMO CARDS ================= */
.clp-promo-cards-section {
    padding: 80px 0;
}

.clp-promo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.clp-promo-card {
    border-radius: 24px;
    padding: 30px 40px;
    position: relative;
    overflow: hidden;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.clp-promo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.2);
}

/* Gradients matching the requested theme */
.clp-card-gradient-1 { background: linear-gradient(135deg, #8b5cf6, #6d28d9); } /* Purple */
.clp-card-gradient-2 { background: linear-gradient(135deg, #38bdf8, #0284c7); } /* Cyan */
.clp-card-gradient-3 { background: linear-gradient(135deg, #f472b6, #db2777); } /* Pink */
.clp-card-gradient-4 { background: linear-gradient(135deg, #818cf8, #4f46e5); } /* Indigo */

.clp-promo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 30px;
}

.clp-promo-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(4px);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #a78bfa;
    border-radius: 50%;
}

.clp-sparkle {
    opacity: 0.8;
}

.clp-promo-title {
    font-size: 36px;
    font-weight: 800;
    margin: 0 0 15px;
    line-height: 1.2;
    color: #fff !important;
}

.clp-promo-desc {
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 40px;
    opacity: 0.9;
    max-width: 85%;
}

.clp-promo-btn {
    background: #fff;
    color: #1f2937;
    padding: 14px 30px;
    border-radius: 99px;
    font-weight: 700;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.clp-promo-btn:hover {
    background: #f3f4f6;
    color: #000;
    transform: translateX(5px);
}

/* ================= PROMO BANNER ================= */
.clp-promo-banner {
    margin: 100px 0;
}

.clp-promo-inner {
    background: #faf5ff;
    border: 1px solid rgba(147, 51, 234, 0.15);
    border-radius: 24px;
    padding: 80px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(147, 51, 234, 0.05);
}

.clp-promo-inner h2 {
    font-size: 42px;
    color: var(--primary-color);
    margin: 0 0 15px;
    position: relative;
    z-index: 2;
    font-weight: 700;
}

.clp-promo-inner p {
    font-size: 18px;
    color: #4b5563;
    margin: 0 0 30px;
    position: relative;
    z-index: 2;
    font-weight: 400;
}

.clp-btn-secondary {
    display: inline-block;
    padding: 16px 48px;
    background: var(--primary-color);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    border-radius: 99px;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.clp-btn-secondary:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
}

/* ================= FOOTER ================= */
.clp-footer {
    background: var(--bg-card);
    padding: 80px 0 40px;
    border-top: 1px solid rgba(147, 51, 234, 0.1);
}

.clp-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.clp-footer-col h3 {
    color: var(--primary-color);
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: 800;
}

.clp-footer-col h4 {
    color: var(--text-main);
    font-size: 18px;
    margin-bottom: 24px;
    font-weight: 600;
}

.clp-footer-col p {
    color: var(--text-muted);
    font-size: 16px;
    max-width: 400px;
}

.clp-footer-col ul {
    list-style: none !important;
    padding: 0;
    margin: 0;
}

.clp-footer-col ul li {
    margin-bottom: 12px;
}

.clp-footer-col ul li a {
    color: var(--text-muted) !important;
    font-size: 15px;
    transition: color 0.3s ease;
}

.clp-footer-col ul li a:hover {
    color: var(--primary-color) !important;
}

.clp-footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(147, 51, 234, 0.1);
    color: var(--text-muted);
    font-size: 14px;
}

/* ================= RESPONSIVE ================= */
/* =====================================================================
   TABLET: <= 992px
   ===================================================================== */
@media (max-width: 992px) {
    .clp-header-stacked {
        padding-top: 10px;
        padding-bottom: 10px;
    }
    .clp-header-top {
        margin-bottom: 8px;
    }
    .clp-logo img {
        max-height: 45px;
    }
    .clp-header-bottom {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }
    .clp-actions {
        border-left: none;
        padding-left: 0;
    }
    .clp-footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    .clp-footer-col p {
        margin: 0 auto;
    }
    .clp-promo-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    .clp-brands-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Product grid: 2 columns on tablet */
    ul.products.columns-4, ul.products.columns-5 {
        --ts-columns: 2 !important;
    }
    ul.products li.product .thumbnail-wrapper,
    ul.products li.product .thumbnail-wrapper img {
        height: 220px !important;
    }
}

/* =====================================================================
   MOBILE: <= 767px
   ===================================================================== */
@media (max-width: 767px) {

    /* ---- GLOBAL ---- */
    body {
        overflow-x: hidden;
    }
    .clp-container {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    /* ---- HEADER ---- */
    .clp-header {
        position: sticky;
        top: 0;
        z-index: 9999;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        background: #fff;
    }
    .clp-header-stacked {
        padding-top: 10px;
        padding-bottom: 10px;
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        position: relative;
    }
    .clp-header-top {
        display: contents !important;
    }
    .clp-logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        text-align: center !important;
    }
    .clp-logo img {
        max-height: 38px !important;
    }
    .clp-header-bottom {
        display: contents !important;
    }
    .clp-mobile-menu-toggle {
        display: block !important;
        margin-left: 0;
        order: 1;
    }
    

    /* Show mobile-only menu items inside the drawer */
    .clp-mobile-only-menu {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        margin-top: 20px !important;
        padding-top: 20px !important;
        border-top: 1px solid #eaeaea !important;
    }

    .clp-nav {
        display: none !important;
        position: fixed !important;
        top: 0 !important;
        left: -100% !important;
        width: 80% !important;
        max-width: 300px !important;
        height: 100vh !important;
        background: #fff !important;
        box-shadow: 4px 0 20px rgba(0,0,0,0.15) !important;
        padding: 60px 20px 20px !important;
        z-index: 99999 !important;
        overflow-y: auto !important;
        transition: left 0.3s ease !important;
    }
    .clp-nav.is-open {
        display: block !important;
        left: 0 !important;
    }
}

.clp-footer-col p {
    color: var(--text-muted);
    font-size: 16px;
    max-width: 400px;
}

.clp-footer-col ul {
    list-style: none !important;
    padding: 0;
    margin: 0;
}

.clp-footer-col ul li {
    margin-bottom: 12px;
}

.clp-footer-col ul li a {
    color: var(--text-muted) !important;
    font-size: 15px;
    transition: color 0.3s ease;
}

.clp-footer-col ul li a:hover {
    color: var(--primary-color) !important;
}

.clp-footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(147, 51, 234, 0.1);
    color: var(--text-muted);
    font-size: 14px;
}

/* ================= RESPONSIVE ================= */
/* =====================================================================
   TABLET: <= 992px
   ===================================================================== */
@media (max-width: 992px) {
    .clp-header-stacked {
        padding-top: 10px;
        padding-bottom: 10px;
    }
    .clp-header-top {
        margin-bottom: 8px;
    }
    .clp-logo img {
        max-height: 45px;
    }
    .clp-header-bottom {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }
    .clp-actions {
        border-left: none;
        padding-left: 0;
    }
    .clp-footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    .clp-footer-col p {
        margin: 0 auto;
    }
    .clp-promo-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    .clp-brands-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Product grid: 2 columns on tablet */
    ul.products.columns-4, ul.products.columns-5 {
        --ts-columns: 2 !important;
    }
    ul.products li.product .thumbnail-wrapper,
    ul.products li.product .thumbnail-wrapper img {
        height: 220px !important;
    }
}

/* =====================================================================
   MOBILE: <= 767px
   ===================================================================== */
@media (max-width: 767px) {

    /* ---- GLOBAL ---- */
    body {
        overflow-x: hidden;
    }
    .clp-container {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    /* ---- HEADER ---- */
    .clp-header {
        position: sticky;
        top: 0;
        z-index: 9999;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        background: #fff;
    }
    .clp-header-stacked {
        padding-top: 15px;
        padding-bottom: 15px;
        display: flex !important;
        flex-direction: row !important;
        justify-content: flex-start !important;
        align-items: center !important;
        position: relative;
    }
    .clp-header-top {
        display: flex !important;
        align-items: center !important;
        width: 100%;
        margin: 0 !important;
        justify-content: flex-start !important;
    }
    .clp-logo {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        text-align: center !important;
    }
    .clp-logo img {
        max-height: 38px !important;
    }
    .clp-header-bottom {
        position: absolute;
        right: 14px;
        top: 50%;
        transform: translateY(-50%);
        display: flex !important;
        justify-content: flex-end !important;
        align-items: center !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .clp-mobile-menu-toggle {
        display: block !important;
        margin-left: 0;
        position: relative;
        z-index: 10;
    }
    

    /* Show mobile-only menu items inside the drawer */
    .clp-mobile-only-menu {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        margin-top: 20px !important;
        padding-top: 20px !important;
        border-top: 1px solid #eaeaea !important;
    }

    .clp-nav {
        display: none !important;
        position: fixed !important;
        top: 0 !important;
        left: -100% !important;
        width: 80% !important;
        max-width: 300px !important;
        height: 100vh !important;
        background: #fff !important;
        box-shadow: 4px 0 20px rgba(0,0,0,0.15) !important;
        padding: 60px 20px 20px !important;
        z-index: 99999 !important;
        overflow-y: auto !important;
        transition: left 0.3s ease !important;
    }
    .clp-nav.is-open {
        display: block !important;
        left: 0 !important;
    }
    .clp-nav .clp-menu {
        flex-direction: column !important;
        gap: 5px !important;
        align-items: flex-start !important;
    }
    .clp-nav .clp-menu li a {
        font-size: 15px !important;
        padding: 10px 0 !important;
        display: block !important;
        border-bottom: 1px solid #f0f0f0 !important;
        width: 100% !important;
    }
    /* Action icons — keep visible on mobile */
    .clp-actions {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        border-left: none !important;
        padding-left: 0 !important;
        margin: 0 !important;
    }
    .clp-actions .hide-on-mobile {
        display: none !important;
    }

    /* ---- HERO SECTION ---- */
    .clp-hero {
        padding: 60px 14px 40px !important;
        min-height: 260px !important;
        text-align: center !important;
    }
    .clp-hero-title {
        font-size: 24px !important;
        line-height: 1.3 !important;
        margin-bottom: 12px !important;
    }
    .clp-hero-subtitle {
        font-size: 14px !important;
        margin-bottom: 20px !important;
    }
    .clp-hero-actions {
        flex-direction: column !important;
        gap: 10px !important;
        align-items: center !important;
    }

    /* ---- SECTION HEADINGS ---- */
    .clp-section {
        padding: 30px 0 !important;
    }
    .clp-section-title {
        font-size: 20px !important;
        margin-bottom: 16px !important;
    }

    /* ---- PRODUCT GRID: 2 COLUMNS on mobile ---- */
    ul.products {
        display: grid !important;
        --ts-columns: 2 !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    ul.products li.product {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: none !important;
    }
    ul.products li.product .thumbnail-wrapper,
    ul.products li.product .thumbnail-wrapper img {
        height: 150px !important;
    }
    ul.products li.product .product-wrapper {
        padding: 10px !important;
        border-radius: 8px !important;
    }
    ul.products li.product .product-name,
    ul.products li.product .woocommerce-loop-product__title {
        font-size: 13px !important;
        height: 36px !important;  /* 2 lines at 13px */
        line-height: 1.38 !important;
        margin-top: 8px !important;
        margin-bottom: 5px !important;
    }
    ul.products li.product .product-name a,
    ul.products li.product .product-name .woocommerce-loop-product__title {
        font-size: 13px !important;
    }
    ul.products li.product .price ins .amount,
    ul.products li.product .price ins {
        font-size: 14px !important;
    }
    ul.products li.product .price del .amount,
    ul.products li.product .price del {
        font-size: 12px !important;
    }
    ul.products li.product .woocommerce-product-rating {
        font-size: 11px !important;
    }
    /* Action buttons — smaller on mobile */
    ul.products li.product .product-group-button > div,
    ul.products li.product .product-group-button > a {
        width: 26px !important;
        height: 26px !important;
    }
    /* Add to cart button */
    ul.products li.product .loop-add-to-cart .button {
        font-size: 12px !important;
        padding: 7px 10px !important;
    }

    /* ---- PROMO CARDS ---- */
    .clp-promo-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    .clp-promo-card {
        padding: 20px 18px !important;
        min-height: 130px !important;
    }
    .clp-promo-card h3 {
        font-size: 18px !important;
    }
    .clp-promo-card p {
        font-size: 13px !important;
    }

    /* ---- BRANDS GRID ---- */
    .clp-brands-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px !important;
    }
    .clp-brand-item {
        padding: 12px 8px !important;
        font-size: 13px !important;
    }

    /* ---- FOOTER ---- */
    .clp-footer {
        padding: 30px 0 0 !important;
    }
    .clp-footer-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
        text-align: left !important;
    }
    .clp-footer-col img {
        max-height: 36px !important;
    }
    .clp-footer-col h4 {
        font-size: 15px !important;
        margin-bottom: 10px !important;
    }
    .clp-footer-col ul li {
        margin-bottom: 8px !important;
        font-size: 14px !important;
    }
    .clp-footer-bottom {
        padding: 15px 14px !important;
        font-size: 13px !important;
    }

    /* ---- SHOP PAGE FIXES ---- */
    .before-loop-wrapper {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }
    .woocommerce-ordering select {
        width: 100% !important;
    }
    .page-container.has-1-sidebar {
        flex-direction: column !important;
    }
    #left-sidebar {
        width: 100% !important;
        order: 2;
    }
    #main-content {
        width: 100% !important;
        order: 1;
    }
    /* Hide sidebar by default on mobile — user can toggle if needed */
    #left-sidebar {
        display: none !important;
    }
}

/* =====================================================================
   VERY SMALL PHONES: <= 400px
   ===================================================================== */
@media (max-width: 400px) {
    ul.products li.product .thumbnail-wrapper,
    ul.products li.product .thumbnail-wrapper img {
        height: 120px !important;
    }
    ul.products li.product .product-name,
    ul.products li.product .woocommerce-loop-product__title {
        font-size: 12px !important;
        height: 33px !important;
    }
    .clp-section-title {
        font-size: 18px !important;
    }
    .clp-hero-title {
        font-size: 20px !important;
    }
}





/* ================= FIX SHOP SIDEBAR & GRID LAYOUT ================= */
@media (min-width: 992px) {
    .page-container.has-1-sidebar {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 40px !important;
        max-width: 1300px !important;
        margin: 0 auto !important;
        padding: 40px 20px !important;
        align-items: flex-start !important;
    }
    
    #left-sidebar {
        width: 25% !important;
        flex-shrink: 0 !important;
    }
    
    #main-content {
        width: 75% !important;
        flex-grow: 1 !important;
    }
}

/* Style the Price Filter Widget Properly */
.product-filter-by-price-wrapper form {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-top: 20px !important;
}

.product-filter-by-price-wrapper input.price-input {
    width: 40% !important;
    padding: 10px !important;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    background: #fff !important;
}

.product-filter-by-price-wrapper button.filter-price-button {
    padding: 10px 15px !important;
    background: var(--primary-color) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    flex-grow: 1 !important;
}

.product-filter-by-price-wrapper button.filter-price-button:hover {
    background: var(--primary-hover) !important;
}

/* ================= FIX SHOP TOP BAR ALIGNMENT ================= */
.before-loop-wrapper {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 15px !important;
    padding: 15px 0 !important;
    border-bottom: 1px solid #eaeaea !important;
    margin-bottom: 30px !important;
    clear: both !important;
}

.before-loop-wrapper > * {
    margin: 0 !important;
    float: none !important;
}

.woocommerce-result-count {
    flex-grow: 1 !important;
    text-align: left !important;
}

.product-on-sale-form, 
.product-per-page-form, 
.woocommerce-ordering, 
.gridlist-toggle {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

/* Fix spacing on the checkboxes and dropdowns */
.product-on-sale-form label {
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
}

/* ================= PRODUCT GRID FIXES (SCOPED) ================= */
/* Hide SKU and Categories as requested */
ul.products li.product .product-sku, .products .product .product-sku,
ul.products li.product .product-categories, .products .product .product-categories {
    display: none !important;
}

/* Set exactly 300px height as requested by user */
ul.products li.product .thumbnail-wrapper, .products .product .thumbnail-wrapper {
    height: 300px !important;
    position: relative !important;
    display: block !important;
}

/* Make sure the link and figure take up the full height so the image can fit */
ul.products li.product .thumbnail-wrapper > a, .products .product .thumbnail-wrapper > a,
ul.products li.product .thumbnail-wrapper > a > figure, .products .product .thumbnail-wrapper > a > figure {
    height: 100% !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Image sizing without cropping */
ul.products li.product .thumbnail-wrapper img, .products .product .thumbnail-wrapper img {
    width: 100% !important;
    height: 300px !important;
    object-fit: contain !important;
    background: #fff;
}

/* Product Card Styling */
ul.products li.product .product-wrapper, .products .product .product-wrapper {
    background: #fff !important;
    border: 1px solid #eaeaea !important;
    border-radius: 8px !important; /* Modern rounded corners */
    padding: 15px !important;
    box-sizing: border-box !important;
    text-align: left !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100%;
}

ul.products li.product .product-wrapper > .meta-wrapper, .products .product .product-wrapper > .meta-wrapper {
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
}

/* Action Buttons Stacked Top-Right */
ul.products li.product .product-group-button, .products .product .product-group-button {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    z-index: 10 !important;
}
ul.products li.product .product-group-button > div, .products .product .product-group-button > div,
ul.products li.product .product-group-button > a, .products .product .product-group-button > a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    background: #f1f1f1 !important;
    border-radius: 4px !important;
    color: #333 !important;
    margin: 0 !important;
}
ul.products li.product .product-group-button .compare, .products .product .product-group-button .compare,
ul.products li.product .product-group-button .quickshop, .products .product .product-group-button .quickshop {
    display: none !important;
}
ul.products li.product .product-group-button > *:empty, .products .product .product-group-button > *:empty {
    display: none !important;
}
ul.products li.product .product-group-button > div:hover, .products .product .product-group-button > div:hover,
ul.products li.product .product-group-button > a:hover, .products .product .product-group-button > a:hover {
    background: #e1e1e1 !important;
}

/* Position Sales/HOT Labels Correctly */
ul.products li.product .product-label, .products .product .product-label {
    position: absolute !important;
    top: 15px !important;
    left: 15px !important;
    z-index: 10 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
}

/* Product Title Styling */
ul.products li.product .product-name, .products .product .product-name,
ul.products li.product .woocommerce-loop-product__title, .products .product .woocommerce-loop-product__title {
    font-size: 16px !important;
    line-height: 1.4 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    height: 45px !important; /* 2 lines exactly at 16px font */
    margin-top: 15px !important;
    margin-bottom: 8px !important;
    text-align: left !important;
}

ul.products li.product .product-name a, .products .product .product-name a {
    color: #000 !important; /* Solid black as requested */
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
}

/* Product Price Styling */
ul.products li.product .price, .products .product .price {
    text-align: left !important;
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-bottom: 10px !important;
}

ul.products li.product .price del, .products .product .price del,
ul.products li.product .price del .amount, .products .product .price del .amount {
    color: #000 !important; /* MRP same color as main price */
    font-size: 14px !important;
    font-weight: 500 !important;
    text-decoration: line-through !important;
}

ul.products li.product .price ins, .products .product .price ins,
ul.products li.product .price ins .amount, .products .product .price ins .amount {
    color: #000 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

/* Hide Short Description on Product Grid */
ul.products li.product .short-description, 
.products .product .short-description {
    display: none !important;
}


/* =====================================================================
   FORCE 2-COLUMN PRODUCT GRID ON ALL MOBILE SCREENS
   Overrides --ts-columns variable used by parent merto theme
   ===================================================================== */
@media only screen and (max-width: 767px) {

    /* Override the CSS variable that merto uses for ALL product grids */
    .woocommerce ul.products,
    .woocommerce-page ul.products,
    .ts-product-category-wrapper ul.products,
    .clp-section-content ul.products {
        --ts-columns: 2 !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    /* Also target Elementor / shortcode-rendered grids */
    .ts-shortcode ul.products,
    .ts-product-in-product-type-tabs ul.products {
        --ts-columns: 2 !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    /* Force each product item to respect 2 columns no matter what width class is set */
    .woocommerce ul.products li.product,
    .woocommerce-page ul.products li.product {
        width: auto !important;
        max-width: 100% !important;
        float: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 10px !important;
        padding: 0 !important;
    }

    /* Image height for 2-col mobile cards */
    .woocommerce ul.products li.product .thumbnail-wrapper,
    .woocommerce-page ul.products li.product .thumbnail-wrapper {
        height: 150px !important;
    }
    .woocommerce ul.products li.product .thumbnail-wrapper img,
    .woocommerce-page ul.products li.product .thumbnail-wrapper img {
        height: 150px !important;
        object-fit: contain !important;
    }
}

/* =====================================================================
   FORCE 2x2 PRODUCT GRID ON HOMEPAGE SECTIONS (MOBILE)
   Hides any product after the 4th item to keep a perfect 2x2 square
   ===================================================================== */
@media only screen and (max-width: 767px) {
    .clp-section-content ul.products li.product:nth-child(n+5) {
        display: none !important;
    }
}

/* =====================================================================
   HIDE MOBILE MENU HAMBURGER ON DESKTOP
   ===================================================================== */
.clp-mobile-menu-toggle {
    display: none; /* Hidden by default on desktop, block on mobile */
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: #333;
}

/* =====================================================================
   MOBILE MENU CLOSE BUTTON
   ===================================================================== */
.clp-close-menu {
    display: none;
}
@media (max-width: 767px) {
    .clp-close-menu {
        display: block !important;
        position: absolute;
        top: 20px;
        right: 20px;
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
        color: #333;
    }
}

/* =====================================================================
   MOBILE-ONLY MENU LINKS
   ===================================================================== */
.clp-mobile-only-menu {
    display: none !important;
}



/* =====================================================================
   FIX MOBILE MENU STYLES & REMOVE GAP
   ===================================================================== */
@media (max-width: 767px) {
    /* Remove the massive gap between header and hero */
    .clp-main {
        padding-top: 0 !important; 
    }
    
    /* Ensure the mobile only menu items look exactly like the rest */
    .clp-nav .clp-mobile-only-menu {
        margin: 0 !important;
        padding: 0 !important;
        border-top: 2px solid var(--primary-color) !important;
        margin-top: 15px !important;
        padding-top: 10px !important;
    }
    
    .clp-nav .clp-mobile-only-menu li {
        width: 100% !important;
        list-style: none !important;
    }
    
    .clp-nav .clp-mobile-only-menu li a {
        font-size: 15px !important;
        padding: 12px 0 !important;
        display: block !important;
        border-bottom: 1px solid #f0f0f0 !important;
        width: 100% !important;
        color: var(--text-main) !important;
        text-decoration: none !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
    }
}

/* =====================================================================
   FIX PRODUCT GRID SQUISHING ON MOBILE
   ===================================================================== */
@media only screen and (max-width: 767px) {
    /* Ensure the container is actually a grid! */
    .woocommerce ul.products,
    .woocommerce-page ul.products,
    .ts-product-category-wrapper ul.products,
    .clp-section-content ul.products,
    .ts-shortcode ul.products {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        width: 100% !important;
    }
    
    /* Ensure the products stretch to fill the grid cells */
    .woocommerce ul.products li.product,
    .woocommerce-page ul.products li.product,
    .clp-section-content ul.products li.product {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* =====================================================================
   FIX MOBILE HEADER ALIGNMENT AND MENU (ULTIMATE)
   ===================================================================== */
@media (max-width: 767px) {
    /* 1. Reset the stacked container to a block so top and bottom rows stack */
    .clp-header .clp-header-stacked {
        display: flex !important;
        flex-direction: row !important;
        justify-content: flex-start !important;
        align-items: center !important;
        position: relative !important;
        padding-top: 15px !important;
        padding-bottom: 15px !important;
    }
    
    .clp-header-top {
        display: flex !important;
        align-items: center !important;
        width: 100% !important;
        margin: 0 !important;
        justify-content: flex-start !important;
    }
    
    .clp-logo {
        position: absolute !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        text-align: center !important;
        z-index: 5 !important;
    }
    
    .clp-logo img {
        max-height: 38px !important;
        display: block !important;
    }
    
    .clp-mobile-menu-toggle {
        display: block !important;
        flex-shrink: 0 !important;
        margin-left: 0 !important;
        z-index: 10 !important;
    }
    
    .clp-header-bottom {
        position: absolute !important;
        right: 14px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        display: flex !important;
        justify-content: flex-end !important;
        align-items: center !important;
        padding: 0 !important;
        margin: 0 !important;
        z-index: 10 !important;
    }

    .clp-actions {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        border-left: none !important;
        padding-left: 0 !important;
        margin: 0 !important;
    }

    /* Hide User and Wishlist Icons on Mobile */
    .clp-actions .hide-on-mobile {
        display: none !important;
    }
    
    /* Make sure mobile-only menu items actually show in the drawer */
    .clp-mobile-only-menu {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        margin-top: 15px !important;
        padding-top: 10px !important;
        border-top: 2px solid var(--primary-color) !important;
    }
    
    .clp-nav .clp-mobile-only-menu li {
        width: 100% !important;
        list-style: none !important;
    }
    
    .clp-nav .clp-mobile-only-menu li a {
        font-size: 15px !important;
        padding: 12px 0 !important;
        display: block !important;
        border-bottom: 1px solid #f0f0f0 !important;
        width: 100% !important;
        color: var(--text-main) !important;
        text-decoration: none !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
    }
}


/* =====================================================================
   FIX OVERLAPPING AND HAMBURGER MENU (FINAL)
   ===================================================================== */
@media (max-width: 767px) {
    /* Prevent Logo from overlapping the right-side icons */
    .clp-header-top {
        padding-right: 70px !important; 
        padding-left: 10px !important;
        justify-content: center !important;
    }
    
    .clp-logo {
        position: static !important;
        transform: none !important;
        text-align: center !important;
        margin: 0 auto !important;
    }
    
    .clp-logo img {
        max-width: 160px !important; /* Force resize on tiny screens */
        height: auto !important;
    }

    /* Force the hamburger menu toggle to stay on the left */
    .clp-mobile-menu-toggle {
        position: absolute !important;
        left: 14px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        z-index: 9 !important;
    }

    /* Fix the hamburger menu Drawer animation and visibility */
    .clp-nav {
        display: block !important; /* Ensure it is block, just off-screen */
        position: fixed !important;
        top: 0 !important;
        left: -110% !important; /* Hidden */
        width: 300px !important;
        max-width: 85vw !important;
        height: 100vh !important;
        background: #ffffff !important;
        z-index: 999999 !important;
        transition: left 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
        box-shadow: 10px 0 30px rgba(0,0,0,0.5) !important;
        padding-top: 60px !important;
    }

    .clp-nav.is-open {
        left: 0 !important; /* Slide in */
    }

    .clp-close-menu {
        display: block !important;
        position: absolute !important;
        top: 15px !important;
        right: 15px !important;
        font-size: 30px !important;
        z-index: 9999999 !important;
        background: transparent !important;
        border: none !important;
        color: #333 !important;
    }
}


/* =====================================================================
   ADDITIONAL MOBILE REFINEMENTS
   ===================================================================== */
@media (max-width: 767px) {
    /* 1. Fix Logo clickability by making it relative so it sits above backgrounds */
    .clp-logo {
        position: relative !important;
        z-index: 50 !important;
    }

    /* 2. Fix Hamburger and Close button positions */
    .clp-mobile-menu-toggle {
        z-index: 9 !important; /* Keep it below the drawer */
    }
    
    .clp-close-menu {
        top: 20px !important; 
        right: 20px !important;
        font-size: 28px !important;
    }

    /* 3. Decrease list spacing by 40% and align properly */
    .clp-nav .clp-menu li a,
    .clp-nav .clp-mobile-only-menu li a {
        padding: 8px 0 !important; /* Decreased padding to shrink list item height */
        font-size: 14px !important; /* Slightly smaller font */
        font-weight: 600 !important;
        text-transform: capitalize !important; /* Better look than full uppercase */
        border-bottom: 1px solid #f0f0f0 !important;
    }
    
    /* Ensure the mobile only menu items sit beautifully in the drawer */
    .clp-mobile-only-menu {
        margin-top: 10px !important;
        padding-top: 10px !important;
        border-top: 1px solid #eaeaea !important;
    }
}


/* =====================================================================
   ABSOLUTE BULLETPROOF MOBILE HEADER LAYOUT
   ===================================================================== */
@media (max-width: 767px) {
    .clp-header-stacked {
        position: relative !important;
        height: 60px !important; /* Fixed height for absolute children */
        display: block !important;
    }
    
    /* Hamburger */
    .clp-mobile-menu-toggle {
        position: absolute !important;
        left: 10px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        z-index: 10 !important;
        margin: 0 !important;
    }
    
    /* Actions (Search, Cart) */
    .clp-header-bottom {
        position: absolute !important;
        right: 10px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: auto !important;
        z-index: 10 !important;
    }
    
    /* Logo - Strictly confined between Hamburger and Actions */
    .clp-header-top {
        display: block !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .clp-logo {
        position: absolute !important;
        left: 50px !important;  /* Avoid Hamburger */
        right: 90px !important; /* Avoid Actions */
        top: 0 !important;
        bottom: 0 !important;
        transform: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        z-index: 5 !important;
    }
    
    .clp-logo img {
        max-width: 100% !important;
        max-height: 40px !important;
        object-fit: contain !important;
    }
}


@media (max-width: 767px) {
    /* Remove transform from clp-header-bottom to fix drawer positioning */
    .clp-header-bottom {
        transform: none !important;
        top: 0 !important;
        bottom: 0 !important;
        display: flex !important;
        align-items: center !important;
    }
}


/* =====================================================================
   FORCE 2-COLUMN GRID ON ALL MOBILE PRODUCT LISTS
   ===================================================================== */
@media (max-width: 767px) {
    ul.products,
    .products,
    .woocommerce ul.products,
    .woocommerce-page ul.products,
    .ts-shortcode ul.products {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        grid-gap: 10px !important;
        gap: 10px !important;
        width: 100% !important;
    }
    
    ul.products li.product,
    .products .product,
    .woocommerce ul.products li.product {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        clear: none !important;
    }
}


/* =====================================================================
   HIGH SPECIFICITY OVERRIDE FOR MOBILE PRODUCT GRIDS
   ===================================================================== */
@media (max-width: 767px) {
    body .woocommerce ul.products,
    body .woocommerce-page ul.products,
    body ul.products,
    body .products {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    body .woocommerce ul.products li.product,
    body .woocommerce-page ul.products li.product,
    body ul.products li.product,
    body .products .product {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }
}


/* =====================================================================
   FIX HERO BUTTON SIZE ON MOBILE
   ===================================================================== */
@media (max-width: 767px) {
    .clp-btn-primary, .clp-btn-secondary {
        padding: 14px 24px !important;
        font-size: 15px !important;
        width: 100% !important;
        max-width: 260px !important;
        margin: 0 auto !important;
        display: block !important;
        text-align: center !important;
        white-space: normal !important;
        line-height: 1.2 !important;
    }
}


/* =====================================================================
   FIX BRANDS GRID ON MOBILE
   ===================================================================== */
@media (max-width: 767px) {
    .clp-brands-grid {
        grid-template-columns: 1fr !important; /* Stack vertically on mobile */
        gap: 20px !important;
    }
}

/* ============================================================
   CUSTOM FOOTER CSS
   ============================================================ */
body .custom-footer-area {
    position: relative !important;
    overflow: hidden;
    background-color: #f8fafc !important;
    padding-top: 60px !important;
    border-top: 1px solid #e2e8f0 !important;
    width: 100% !important;
}
body .custom-footer-area .container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    display: block !important;
}
body .custom-footer-area .custom-footer-top {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    flex-wrap: wrap !important;
    gap: 30px !important;
    margin-bottom: 40px !important;
    width: 100% !important;
}
body .custom-footer-area .footer-col {
    flex: 1 1 0% !important;
    min-width: 180px !important;
}
body .custom-footer-area .footer-col.col-brand {
    flex: 2 1 0% !important;
    min-width: 300px !important;
}
body .custom-footer-area .footer-contact p {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    color: #000000 !important;
    font-size: 15px;
    line-height: 1.6;
}
body .custom-footer-area .footer-contact-icon {
    margin-top: 3px;
    min-width: 18px;
}
body .custom-footer-area .footer-col.col-links h4 {
    margin-bottom: 18px !important;
    color: #0f172a !important;
    font-weight: 800 !important;
    font-size: 16px !important;
    text-transform: uppercase !important;
}
body .custom-footer-area .footer-col.col-links ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
}
body .custom-footer-area .footer-col.col-links ul li {
    margin-bottom: 4px !important;
    display: block !important;
}
body .custom-footer-area .footer-col.col-links ul li a {
    color: #000000 !important;
    text-decoration: none !important;
    font-size: 15px !important;
    transition: color 0.3s ease !important;
    display: inline-block !important;
}
body .custom-footer-area .footer-col.col-links ul li a:hover {
    color: #7c3aed !important;
}
body .custom-footer-area .custom-footer-bottom {
    border-top: 1px solid #e2e8f0 !important;
    padding: 24px 0 !important;
}
body .custom-footer-area .footer-bottom-inner {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    color: #475569 !important;
    font-size: 14px !important;
}
body .custom-footer-area .footer-logo {
    max-height: 35px !important;
    max-width: 250px !important;
    object-fit: contain !important;
    margin-bottom: 24px !important;
    display: block !important;
}

@media (max-width: 768px) {
    body .custom-footer-area .custom-footer-top {
        flex-direction: column !important;
    }
    body .custom-footer-area .footer-col.col-brand {
        margin-bottom: 20px !important;
    }
    body .custom-footer-area .footer-bottom-inner {
        flex-direction: column !important;
        gap: 15px !important;
        text-align: center !important;
    }
}

/* ============================================================
   FOOTER SIDE ANIMATED VECTORS
   ============================================================ */
.em-footer-side-vector {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 110px;
    height: 240px;
    pointer-events: none !important;
    z-index: 0;
    user-select: none;
    opacity: 0.65;
}

.em-footer-side-vector.vector-left {
    left: -35px;
    animation: floatFooterLeft 14s ease-in-out infinite alternate;
}

.em-footer-side-vector.vector-right {
    right: -35px;
    animation: floatFooterRight 16s ease-in-out infinite alternate;
}

@keyframes floatFooterLeft {
    0% { transform: translateY(-50%) rotate(0deg) scale(1); }
    50% { transform: translateY(-40%) rotate(12deg) scale(1.1); }
    100% { transform: translateY(-60%) rotate(-6deg) scale(0.95); }
}

@keyframes floatFooterRight {
    0% { transform: translateY(-50%) rotate(0deg) scale(1); }
    50% { transform: translateY(-60%) rotate(-12deg) scale(1.1); }
    100% { transform: translateY(-40%) rotate(6deg) scale(0.95); }
}

@media (max-width: 1024px) {
    .em-section-side-vector,
    .em-footer-side-vector {
        display: none !important;
    }
}
