/* Category Card Grid Styles */

/* Import Google Fonts - Outfit */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100;200;300;400;500;600;700;800;900&display=swap');

/* Remove height: auto from WooCommerce images (exclude admin bar) */
.woocommerce img:not(#wpadminbar img):not(#wpadminbar * img),
.woocommerce-page img:not(#wpadminbar img):not(#wpadminbar * img) {
    height: unset !important;
}

/* Ensure admin bar images maintain their proper size */
#wpadminbar img,
#wpadminbar .ab-item img,
#wpadminbar .ab-empty-item img,
#wpadminbar .ab-icon img {
    height: auto !important;
    max-height: 28px !important;
    width: auto !important;
}

/* AGGRESSIVE: Hide ALL default WooCommerce elements on product category pages when ccg-wrapper exists */
/* This must be at the top to ensure maximum specificity */
body.woocommerce.archive:has(.ccg-wrapper) .woocommerce ul.products,
body.woocommerce.archive:has(.ccg-wrapper) .woocommerce .products,
body.woocommerce.archive:has(.ccg-wrapper) ul.products,
body.woocommerce.archive:has(.ccg-wrapper) .products,
body.woocommerce.archive:has(.ccg-wrapper) .woocommerce-loop,
body.woocommerce.archive:has(.ccg-wrapper) .woocommerce-products-header,
body.woocommerce.archive:has(.ccg-wrapper) .woocommerce-result-count,
body.woocommerce.archive:has(.ccg-wrapper) .woocommerce-ordering,
body.woocommerce.archive:has(.ccg-wrapper) .woocommerce-pagination,
body.woocommerce.archive:has(.ccg-wrapper) .woocommerce .woocommerce-pagination,
body.woocommerce.archive:has(.ccg-wrapper) nav.woocommerce-pagination,
body.woocommerce-page.archive:has(.ccg-wrapper) .woocommerce ul.products,
body.woocommerce-page.archive:has(.ccg-wrapper) .woocommerce .products,
body.woocommerce-page.archive:has(.ccg-wrapper) ul.products,
body.woocommerce-page.archive:has(.ccg-wrapper) .products,
body.woocommerce-page.archive:has(.ccg-wrapper) .woocommerce-loop,
body.woocommerce-page.archive:has(.ccg-wrapper) .woocommerce-products-header,
body.woocommerce-page.archive:has(.ccg-wrapper) .woocommerce-result-count,
body.woocommerce-page.archive:has(.ccg-wrapper) .woocommerce-ordering,
body.woocommerce-page.archive:has(.ccg-wrapper) .woocommerce-pagination,
body.woocommerce-page.archive:has(.ccg-wrapper) .woocommerce .woocommerce-pagination,
body.woocommerce-page.archive:has(.ccg-wrapper) nav.woocommerce-pagination,
.woocommerce.archive:has(.ccg-wrapper) ul.products,
.woocommerce.archive:has(.ccg-wrapper) .products,
.woocommerce.archive:has(.ccg-wrapper) .woocommerce-loop,
.woocommerce.archive:has(.ccg-wrapper) .woocommerce-pagination,
.woocommerce-page.archive:has(.ccg-wrapper) ul.products,
.woocommerce-page.archive:has(.ccg-wrapper) .products,
.woocommerce-page.archive:has(.ccg-wrapper) .woocommerce-loop,
.woocommerce-page.archive:has(.ccg-wrapper) .woocommerce-pagination {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Hide all default WooCommerce elements when ccg-wrapper is present - AGGRESSIVE */
.ccg-wrapper ~ .woocommerce-products-header,
.ccg-wrapper ~ .woocommerce-result-count,
.ccg-wrapper ~ .woocommerce-ordering,
.ccg-wrapper ~ ul.products,
.ccg-wrapper ~ ul.products li,
.ccg-wrapper ~ .woocommerce-pagination,
.ccg-wrapper ~ .products,
.ccg-wrapper ~ .products li,
.ccg-wrapper ~ .woocommerce-loop,
body:has(.ccg-wrapper) .woocommerce-products-header,
body:has(.ccg-wrapper) .woocommerce-result-count,
body:has(.ccg-wrapper) .woocommerce-ordering,
body:has(.ccg-wrapper) ul.products,
body:has(.ccg-wrapper) ul.products li,
body:has(.ccg-wrapper) .woocommerce-pagination,
body:has(.ccg-wrapper) .woocommerce .woocommerce-pagination,
body:has(.ccg-wrapper) nav.woocommerce-pagination,
body:has(.ccg-wrapper) .products,
body:has(.ccg-wrapper) .products li,
body:has(.ccg-wrapper) .woocommerce-loop,
body:has(.ccg-wrapper) .woocommerce .products,
body:has(.ccg-wrapper) .woocommerce .products li,
body:has(.ccg-wrapper) .woocommerce ul.products,
body:has(.ccg-wrapper) .woocommerce ul.products li,
body:has(.ccg-wrapper) .woocommerce-before-shop-loop,
body:has(.ccg-wrapper) .woocommerce-after-shop-loop {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Hide default WooCommerce breadcrumbs when ccg-wrapper exists */
body:has(.ccg-wrapper) .woocommerce-breadcrumb,
body:has(.ccg-wrapper) .woocommerce .woocommerce-breadcrumb,
body:has(.ccg-wrapper) nav.woocommerce-breadcrumb,
body:has(.ccg-wrapper) .breadcrumbs,
body:has(.ccg-wrapper) .woocommerce-page .woocommerce-breadcrumb,
body:has(.ccg-wrapper) .breadcrumb,
body:has(.ccg-wrapper) .breadcrumbs-wrapper,
body:has(.ccg-wrapper) .site-breadcrumb,
body:has(.ccg-wrapper) .page-header .breadcrumb {
    display: none !important;
}

/* Hide default WooCommerce category title and description when ccg-wrapper exists */
body:has(.ccg-wrapper) .woocommerce-products-header,
body:has(.ccg-wrapper) .woocommerce .woocommerce-products-header,
body:has(.ccg-wrapper) .woocommerce-page-title,
body:has(.ccg-wrapper) .woocommerce .page-title,
body:has(.ccg-wrapper) .woocommerce-archive-description,
body:has(.ccg-wrapper) .woocommerce .woocommerce-archive-description,
body:has(.ccg-wrapper) .term-description,
body:has(.ccg-wrapper) .woocommerce .term-description {
    display: none !important;
}

/* Hide WooCommerce block elements when ccg-wrapper exists */
body:has(.ccg-wrapper) .wp-block-woocommerce-catalog-sorting,
body:has(.ccg-wrapper) .wp-block-woocommerce-catalog-sorting *,
body:has(.ccg-wrapper) .woocommerce-result-count,
body:has(.ccg-wrapper) .woocommerce .woocommerce-result-count,
body:has(.ccg-wrapper) .wp-block-query-title,
body:has(.ccg-wrapper) .wp-block-query-title.alignwide,
body:has(.ccg-wrapper) .alignwide.wp-block-query-title,
body:has(.ccg-wrapper) .wp-block-query-title.alignfull,
body:has(.ccg-wrapper) .alignfull.wp-block-query-title {
    display: none !important;
}

/* Fallback for browsers that don't support :has() - hide only WooCommerce elements, not footer */
.woocommerce.archive .ccg-wrapper ~ .woocommerce-products-header,
.woocommerce.archive .ccg-wrapper ~ .woocommerce-result-count,
.woocommerce.archive .ccg-wrapper ~ .woocommerce-ordering,
.woocommerce.archive .ccg-wrapper ~ ul.products,
.woocommerce.archive .ccg-wrapper ~ ul.products li,
.woocommerce.archive .ccg-wrapper ~ .woocommerce-pagination,
.woocommerce.archive .ccg-wrapper ~ .woocommerce .woocommerce-pagination,
.woocommerce.archive .ccg-wrapper ~ nav.woocommerce-pagination,
.woocommerce.archive .ccg-wrapper ~ .products,
.woocommerce.archive .ccg-wrapper ~ .products li,
.woocommerce.archive .ccg-wrapper ~ .woocommerce-loop,
.woocommerce-page.archive .ccg-wrapper ~ .woocommerce-products-header,
.woocommerce-page.archive .ccg-wrapper ~ .woocommerce-result-count,
.woocommerce-page.archive .ccg-wrapper ~ .woocommerce-ordering,
.woocommerce-page.archive .ccg-wrapper ~ ul.products,
.woocommerce-page.archive .ccg-wrapper ~ ul.products li,
.woocommerce-page.archive .ccg-wrapper ~ .woocommerce-pagination,
.woocommerce-page.archive .ccg-wrapper ~ .woocommerce .woocommerce-pagination,
.woocommerce-page.archive .ccg-wrapper ~ nav.woocommerce-pagination,
.woocommerce-page.archive .ccg-wrapper ~ .products,
.woocommerce-page.archive .ccg-wrapper ~ .products li,
.woocommerce-page.archive .ccg-wrapper ~ .woocommerce-loop {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Hide ALL WooCommerce default elements on category pages when ccg-wrapper exists - COMPREHENSIVE */
body:has(.ccg-wrapper) .woocommerce .products,
body:has(.ccg-wrapper) .woocommerce .products li,
body:has(.ccg-wrapper) .woocommerce ul.products,
body:has(.ccg-wrapper) .woocommerce ul.products li,
body:has(.ccg-wrapper) .woocommerce-page .products,
body:has(.ccg-wrapper) .woocommerce-page .products li,
body:has(.ccg-wrapper) .woocommerce-page ul.products,
body:has(.ccg-wrapper) .woocommerce-page ul.products li,
body:has(.ccg-wrapper) .woocommerce-shop .products,
body:has(.ccg-wrapper) .woocommerce-shop .products li,
body:has(.ccg-wrapper) .woocommerce-shop ul.products,
body:has(.ccg-wrapper) .woocommerce-shop ul.products li,
.woocommerce.archive:has(.ccg-wrapper) .products,
.woocommerce.archive:has(.ccg-wrapper) .products li,
.woocommerce.archive:has(.ccg-wrapper) ul.products,
.woocommerce.archive:has(.ccg-wrapper) ul.products li,
.woocommerce-page.archive:has(.ccg-wrapper) .products,
.woocommerce-page.archive:has(.ccg-wrapper) .products li,
.woocommerce-page.archive:has(.ccg-wrapper) ul.products,
.woocommerce-page.archive:has(.ccg-wrapper) ul.products li,
.woocommerce.archive .ccg-wrapper ~ .products,
.woocommerce.archive .ccg-wrapper ~ .products li,
.woocommerce.archive .ccg-wrapper ~ ul.products,
.woocommerce.archive .ccg-wrapper ~ ul.products li,
.woocommerce-page.archive .ccg-wrapper ~ .products,
.woocommerce-page.archive .ccg-wrapper ~ .products li,
.woocommerce-page.archive .ccg-wrapper ~ ul.products,
.woocommerce-page.archive .ccg-wrapper ~ ul.products li {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Hide WooCommerce shop loop wrapper */
body:has(.ccg-wrapper) .woocommerce-loop,
body:has(.ccg-wrapper) .woocommerce .woocommerce-loop,
.woocommerce.archive:has(.ccg-wrapper) .woocommerce-loop,
.woocommerce-page.archive:has(.ccg-wrapper) .woocommerce-loop {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Hide WooCommerce before/after shop loop hooks content */
body:has(.ccg-wrapper) .woocommerce-before-shop-loop,
body:has(.ccg-wrapper) .woocommerce-after-shop-loop,
body:has(.ccg-wrapper) .woocommerce .woocommerce-before-shop-loop,
body:has(.ccg-wrapper) .woocommerce .woocommerce-after-shop-loop {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* UNIVERSAL: Hide ALL WooCommerce products on category pages when ccg-wrapper exists */
/* This catches any products that might be rendered outside normal WooCommerce structure */
body.woocommerce.archive:has(.ccg-wrapper) li.product,
body.woocommerce-page.archive:has(.ccg-wrapper) li.product,
.woocommerce.archive:has(.ccg-wrapper) li.product,
.woocommerce-page.archive:has(.ccg-wrapper) li.product,
body:has(.ccg-wrapper) .woocommerce li.product,
body:has(.ccg-wrapper) .woocommerce-page li.product,
body:has(.ccg-wrapper) .product:not(.ccg-product-card),
body:has(.ccg-wrapper) .type-product:not(.ccg-product-card),
.woocommerce.archive .ccg-wrapper ~ li.product,
.woocommerce-page.archive .ccg-wrapper ~ li.product,
.woocommerce.archive .ccg-wrapper ~ .product:not(.ccg-product-card),
.woocommerce-page.archive .ccg-wrapper ~ .product:not(.ccg-product-card) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* UNIVERSAL: Hide ALL WooCommerce products on category pages when ccg-wrapper exists */
/* This catches any products that might be rendered outside normal WooCommerce structure */
body.woocommerce.archive:has(.ccg-wrapper) li.product,
body.woocommerce-page.archive:has(.ccg-wrapper) li.product,
.woocommerce.archive:has(.ccg-wrapper) li.product,
.woocommerce-page.archive:has(.ccg-wrapper) li.product,
body:has(.ccg-wrapper) .woocommerce li.product,
body:has(.ccg-wrapper) .woocommerce-page li.product,
body:has(.ccg-wrapper) .product,
body:has(.ccg-wrapper) .type-product,
.woocommerce.archive .ccg-wrapper ~ li.product,
.woocommerce-page.archive .ccg-wrapper ~ li.product {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Ensure footer is always visible on category pages (normal positioning) */
body:has(.ccg-wrapper) footer,
body:has(.ccg-wrapper) .site-footer,
body:has(.ccg-wrapper) #footer,
body:has(.ccg-wrapper) .footer,
body:has(.ccg-wrapper) .elementor-location-footer,
.woocommerce.archive footer,
.woocommerce.archive .site-footer,
.woocommerce.archive #footer,
.woocommerce.archive .footer,
.woocommerce.archive .elementor-location-footer,
.woocommerce-page.archive footer,
.woocommerce-page.archive .site-footer,
.woocommerce-page.archive #footer,
.woocommerce-page.archive .footer,
.woocommerce-page.archive .elementor-location-footer {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 1 !important; /* Normal z-index, footer will be below sidebar naturally */
    pointer-events: auto !important; /* Ensure footer is clickable */
}

.woocommerce.archive .ccg-wrapper ~ .woocommerce-products-header,
.woocommerce.archive .ccg-wrapper ~ .woocommerce-result-count,
.woocommerce.archive .ccg-wrapper ~ .woocommerce-ordering,
.woocommerce.archive .ccg-wrapper ~ ul.products,
.woocommerce.archive .ccg-wrapper ~ .woocommerce-pagination,
.woocommerce.archive .ccg-wrapper ~ .woocommerce .woocommerce-pagination,
.woocommerce.archive .ccg-wrapper ~ nav.woocommerce-pagination {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* UNIVERSAL: Hide ALL WooCommerce pagination on category pages - MAXIMUM SPECIFICITY */
body:has(.ccg-wrapper) .woocommerce-pagination,
body:has(.ccg-wrapper) .woocommerce .woocommerce-pagination,
body:has(.ccg-wrapper) nav.woocommerce-pagination,
body.woocommerce.archive:has(.ccg-wrapper) .woocommerce-pagination,
body.woocommerce.archive:has(.ccg-wrapper) .woocommerce .woocommerce-pagination,
body.woocommerce.archive:has(.ccg-wrapper) nav.woocommerce-pagination,
body.woocommerce-page.archive:has(.ccg-wrapper) .woocommerce-pagination,
body.woocommerce-page.archive:has(.ccg-wrapper) .woocommerce .woocommerce-pagination,
body.woocommerce-page.archive:has(.ccg-wrapper) nav.woocommerce-pagination,
.woocommerce.archive:has(.ccg-wrapper) .woocommerce-pagination,
.woocommerce.archive:has(.ccg-wrapper) .woocommerce .woocommerce-pagination,
.woocommerce.archive:has(.ccg-wrapper) nav.woocommerce-pagination,
.woocommerce-page.archive:has(.ccg-wrapper) .woocommerce-pagination,
.woocommerce-page.archive:has(.ccg-wrapper) .woocommerce .woocommerce-pagination,
.woocommerce-page.archive:has(.ccg-wrapper) nav.woocommerce-pagination,
.woocommerce.archive .ccg-wrapper ~ .woocommerce-pagination,
.woocommerce.archive .ccg-wrapper ~ .woocommerce .woocommerce-pagination,
.woocommerce.archive .ccg-wrapper ~ nav.woocommerce-pagination,
.woocommerce-page.archive .ccg-wrapper ~ .woocommerce-pagination,
.woocommerce-page.archive .ccg-wrapper ~ .woocommerce .woocommerce-pagination,
.woocommerce-page.archive .ccg-wrapper ~ nav.woocommerce-pagination {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Container width wrapper - Allow container-width across all themes */
.woocommerce .ccg-wrapper,
.woocommerce-page .ccg-wrapper,
.site-main .ccg-wrapper,
.content-area .ccg-wrapper,
#main .ccg-wrapper,
.container .ccg-wrapper,
.wrapper .ccg-wrapper,
.elementor-page .ccg-wrapper,
.elementor-default .ccg-wrapper,
.elementor-location-header .ccg-wrapper,
.elementor-location-footer .ccg-wrapper,
.elementor-section .ccg-wrapper,
.elementor-container .ccg-wrapper,
.elementor-row .ccg-wrapper,
.elementor-column .ccg-wrapper,
.elementor-widget .ccg-wrapper {
    width: 100% !important;
    max-width: 1350px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
}

.ccg-wrapper {
    width: 100% !important;
    max-width: 1350px !important;
    margin-left: -30px !important;
    margin-right: auto !important;
    padding: 15px 15px !important;
    background: #ffffff;
    box-sizing: border-box;
    clear: both;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

/* Responsive container width for main wrapper */
@media (max-width: 1400px) {
    .ccg-wrapper {
        max-width: calc(100% - 60px) !important;
        padding-left: 30px !important;
        padding-right: 30px !important;
    }
}

@media (max-width: 768px) {
    .ccg-wrapper {
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

/* Wrapper with grid layout - parent category grid */
.ccg-wrapper:has(.ccg-grid) {
    max-width: 1350px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 60px;
    padding-left: 15px !important;
    padding-right: 15px !important;
}

/* Responsive container width for grid wrapper */
@media (max-width: 1400px) {
    .ccg-wrapper:has(.ccg-grid) {
        max-width: calc(100% - 60px) !important;
        padding-left: 30px !important;
        padding-right: 30px !important;
    }
}

@media (max-width: 768px) {
    .ccg-wrapper:has(.ccg-grid) {
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

/* Apply Outfit font to all elements within ccg-wrapper */
.ccg-wrapper * {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

/* Header Section */
.ccg-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.ccg-title {
    font-size: 18px;
    font-weight: 600;
    color: #2d2d2d;
    margin: 0;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.ccg-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #d0d0d0;
}

.ccg-count {
    font-size: 16px;
    color: #2d2d2d;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
    margin-top: 8px;
}

/* Grid Layout */
.ccg-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 1200px) {
    .ccg-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 968px) {
    .ccg-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .ccg-wrapper {
        padding: 40px 15px;
    }
    
    .ccg-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .ccg-title {
        font-size: 36px;
    }
    
    .ccg-header {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 35px;
    }
    
    .ccg-count {
        margin-top: 0;
    }
    
    .ccg-card {
        min-height: 300px;
    }
    
    .ccg-card-content {
        padding: 18px;
        width: calc(100% - 30px);
        max-width: calc(100% - 30px);
    }
    
    .ccg-card-title {
        font-size: 20px;
    }
    
    .ccg-card-count {
        font-size: 12px;
    }
    
    .ccg-card-button {
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* Category Card */
.ccg-card {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default; /* Card itself is not clickable */
    position: relative;
    height: 100%;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ccg-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Card Content - Overlaid at bottom of image */
.ccg-card-content {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px 20px;
    border-radius: 12px;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    width: calc(100% - 40px);
    max-width: calc(100% - 40px);
    box-sizing: border-box;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.ccg-card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 18px;
    gap: 12px;
    flex-wrap: wrap;
}

.ccg-card-title {
    font-size: 20px;
    font-weight: 600;
    color: #2d2d2d;
    margin: 0;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.2;
    flex: 1;
    min-width: 0;
    letter-spacing: -0.3px;
}

.ccg-card-count {
    font-size: 14px;
    color: #888888;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
    white-space: nowrap;
    margin-left: auto;
}

/* Explore Collections Button */
.ccg-card-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #000000 !important;
    color: #ffffff !important;
    padding: 12px 20px;
    border-radius: 100px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    transition: background-color 0.3s ease, transform 0.3s ease, border 0.3s ease, color 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    border: 2px solid #000000 !important; /* Black border already exists */
    cursor: pointer;
    position: relative;
    z-index: 10; /* Ensure button is above card */
}

/* Override Elementor global accent color variable - Force white text on button */
.ccg-card-button,
.ccg-card-button *,
.ccg-card-button:not(:hover),
.ccg-card-button:visited,
.ccg-card-button:active,
.ccg-card-button:focus,
.ccg-card-button:link {
    --e-global-color-accent: #ffffff !important;
    --e-global-color-text: #ffffff !important;
    color: #ffffff !important;
    background: #000000 !important;
}

/* Override Elementor kit-6 global anchor styles */
.elementor-kit-6 a.ccg-card-button,
.elementor-kit-6 a.ccg-card-button:not(:hover),
.elementor-kit-6 a.ccg-card-button:visited,
.elementor-kit-6 a.ccg-card-button:active,
.elementor-kit-6 a.ccg-card-button:focus,
.elementor-kit-6 a.ccg-card-button:link,
.elementor-kit-6 .ccg-card-button,
.elementor-kit-6 .ccg-card-button:not(:hover) {
    --e-global-color-accent: #ffffff !important;
    --e-global-color-text: #ffffff !important;
    color: #ffffff !important;
    background: #000000 !important;
}

/* Override all Elementor anchor styles */
.elementor a.ccg-card-button,
.elementor a.ccg-card-button:not(:hover),
.elementor a.ccg-card-button:visited,
.elementor a.ccg-card-button:active,
.elementor a.ccg-card-button:focus,
.elementor a.ccg-card-button:link {
    --e-global-color-accent: #ffffff !important;
    --e-global-color-text: #ffffff !important;
    color: #ffffff !important;
    background: #000000 !important;
}

.ccg-card:hover .ccg-card-button {
    transform: translateY(-5px);
}

/* Hover state - transparent background, black text, black border */
.ccg-card-button:hover {
    background: transparent !important;
    color: #000000 !important;
    border: 2px solid #000000 !important;
}

.ccg-card-button:hover .ccg-card-arrow {
    stroke: #000000;
}

.ccg-card-arrow {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    margin-left: 8px;
}

.ccg-card-button:hover .ccg-card-arrow {
    transform: translateX(4px);
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .ccg-wrapper {
        padding: 30px 12px;
    }
    
    .ccg-title {
        font-size: 28px;
    }
    
    .ccg-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .ccg-card-title {
        font-size: 22px;
    }
    
    .ccg-card-count {
        font-size: 13px;
    }
    
    .ccg-card {
        min-height: 280px;
    }
    
    .ccg-card-content {
        padding: 18px;
        width: calc(100% - 30px);
        max-width: calc(100% - 30px);
    }
    
    .ccg-card-button {
        padding: 12px 18px;
        font-size: 14px;
    }
}

/* ============================================
   NEW LAYOUT STYLES - Sidebar + Product Grid
   ============================================ */

/* Breadcrumb Navigation - Aligned with products area */
.ccg-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    margin-left: 355px;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.ccg-breadcrumb-back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    color: #2d2d2d;
    text-decoration: none;
    transition: border-color 0.2s ease, opacity 0.2s ease;
    flex-shrink: 0;
}

.ccg-breadcrumb-back:hover {
    border-color: #2d2d2d;
    opacity: 1;
}

.ccg-breadcrumb-back svg {
    width: 20px;
    height: 20px;
    stroke: #2d2d2d;
    opacity: 0.8;
}

.ccg-breadcrumb-back svg path {
    fill: #2d2d2d;
    opacity: 0.8;
}

.ccg-breadcrumb-path {
    font-size: 18px;
    color: #4a5568;
    font-weight: 400;
}

.ccg-breadcrumb-path a {
    color: #4a5568;
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 400;
}

.ccg-breadcrumb-path a:hover {
    color: #2d2d2d;
}

/* Last breadcrumb item (current) - bold */
.ccg-breadcrumb-path a:last-child,
.ccg-breadcrumb-path > span:last-child {
    font-weight: 600;
    color: #4a5568;
}

/* Breadcrumb separator */
.ccg-breadcrumb-path .ccg-breadcrumb-separator {
    margin: 0 8px;
    color: #4a5568;
    font-weight: 600;
    font-size: 18px;
}

/* Header Section - Sticky container for tabs and category header */
.ccg-header-section {
    position: sticky;
    background: #ffffff;
    z-index: 3;
    margin-left: 360px; /* Sidebar width (280px) + padding-right (40px) + margin-right (40px) */
    margin-top: 5px !important; /* Normal margin-top */
    margin-bottom: 0;
}

/* Remove gap when sticky and move up more on desktop */
.ccg-header-section.ccg-header-sticky {
    margin-top: 0 !important;
    top: 60px !important; /* Move up significantly on desktop (140px - 80px = 60px) */
    z-index: 11 !important; /* Very high z-index to stay above all content when sticky */
}

/* Category Tabs and Track Toggle Container - Aligned with products area */
.ccg-tabs-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    margin-left: 0;
    padding-left: 0;
    flex-wrap: wrap;
    gap: 20px;
    border-bottom: 1px solid #e0e0e0; /* Thin light grey line below all tabs */
    padding-bottom: 0px;
    background: #ffffff;
    position: relative;
    z-index: 2; /* Above products area content */
}

/* When header is sticky, tabs container should also have higher z-index */
.ccg-header-section.ccg-header-sticky .ccg-tabs-container {
    z-index: 101 !important; /* Above products area when sticky */
}

/* Ensure tabs container has no extra padding when sticky on mobile */
@media (max-width: 768px) {
    .ccg-tabs-container.ccg-header-sticky,
    .ccg-header-sticky .ccg-tabs-container {
        padding-top: 0 !important;
    }
}

/* Child Categories Inline List (Left side) */
.ccg-child-categories-inline {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 0;
    margin-left: -10px !important;
    padding-left: 0 !important;
    width: auto;
    text-align: left;
    align-self: flex-start;
}

.ccg-inline-cat-item {
    font-size: 14px;
    color: #666666;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
    white-space: nowrap;
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

.ccg-inline-cat-item:hover {
    color: #2d2d2d;
    background: #f5f5f5;
}

.ccg-inline-cat-item:focus,
.ccg-inline-cat-item:active,
.ccg-inline-cat-item:focus-visible {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

.ccg-inline-cat-active {
    color: #2d2d2d;
    font-weight: 600;
    background: transparent;
    text-decoration: underline !important;
    text-decoration-thickness: 1.5px !important;
    text-underline-offset: 12px;
}

/* Category Tabs */
.ccg-category-tabs {
    display: flex;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
    flex: 1;
}

/* Track Toggle - Force to right side */
.ccg-track-toggle {
    margin-left: auto;
    flex-shrink: 0;
}

.ccg-tab {
    font-size: 16px;
    color: #999999; /* Light grey for inactive tabs */
    text-decoration: none;
    padding-bottom: 8px;
    border-bottom: 3px solid transparent; /* Thick transparent border for active state */
    transition: color 0.2s ease, border-color 0.2s ease;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400; /* Not bold for inactive */
    position: relative;
}

.ccg-tab:hover {
    color: #666666; /* Slightly darker on hover */
}

.ccg-tab-active {
    color: #4a4a4a; /* Dark grey for active tab */
    border-bottom-color: #4a4a4a; /* Thick dark grey underline */
    font-weight: 600; /* Bold for active tab */
    border-bottom-width: 3px; /* Thick underline */
}

/* Track Type Toggle Buttons */
.ccg-track-toggle {
    display: flex;
    gap: 0;
    background: #f5f5f5;
    border: 1px solid #404040;
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
}

.ccg-track-btn {
    padding: 6px 16px;
    font-size: 14px;
    font-weight: 400;
    color: #666666;
    text-decoration: none;
    border-radius: 0;
    transition: all 0.2s ease;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #ffffff;
    border-right: 1px solid #404040;
    position: relative;
    outline: none;
    border-top: none;
    border-bottom: none;
    border-left: none;
}

.ccg-track-btn:last-child {
    border-right: none;
}

.ccg-track-btn:hover {
    color: #2d2d2d;
}

.ccg-track-btn:focus,
.ccg-track-btn:active {
    outline: none;
    border-top: none;
    border-bottom: none;
    border-left: none;
    box-shadow: none;
}

.ccg-track-btn-active {
    background: #e5e7eb;
    color: #2d2d2d;
    font-weight: 600;
    box-shadow: none;
}

/* Mobile track toggle and filter categories - Hide on desktop, show on mobile */
.ccg-track-toggle-mobile-wrapper {
    display: none !important; /* Hidden on desktop */
}

.ccg-filter-categories-mobile {
    display: none !important; /* Hidden on desktop */
}

.ccg-filter-categories-title {
    font-size: 18px;
    font-weight: 600;
    color: #2d2d2d;
    margin: 0 0 15px 0;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.ccg-filter-selects {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
}

.ccg-filter-select {
    flex: 1;
    width: 0;
    min-width: 0;
    max-width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #666666;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px;
    padding-right: 40px;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.ccg-filter-select:hover {
    border-color: #2d2d2d;
}

.ccg-filter-select:focus {
    outline: none;
    border-color: #2d2d2d;
    color: #2d2d2d;
}

.ccg-filter-select option {
    padding: 10px;
    color: #2d2d2d;
}

.ccg-track-toggle-mobile-wrapper .ccg-track-toggle {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    display: flex !important;
}

/* Main Content Area - Sidebar + Products */
.ccg-main-content {
    display: flex;
    gap: 0;
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
    margin-top: 0;
    position: relative;
}

/* Sidebar Section - Sticky on Left Side (scrolls with page) */
.ccg-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: #ffffff;
    order: 1; /* Ensure sidebar is on left */
    padding-right: 0px;
    margin-right: 40px;
    border-right: 1px solid #e0e0e0;
    padding-left: 0;
    position: sticky;
    top: 80px; /* Sticks to top when scrolling */
    align-self: flex-start; /* Align to top of flex container */
    height: calc(100vh - 80px);
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    overflow-x: hidden;
    margin-top: -200px !important;
    padding-top: 10px;
    z-index: 1;
    /* Hide scrollbar but keep scrolling functionality */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    /* Show immediately on page load */
    visibility: visible;
    opacity: 1;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.ccg-sidebar::-webkit-scrollbar {
    display: none;
}

.ccg-sidebar-title {
    font-size: 18px;
    font-weight: 600;
    color: #2d2d2d;
    margin: 0 0 20px 0px;
    padding-top: 20px;
    padding-bottom: 15px;
    padding-left: 20px;
    border-bottom: 1px solid #e0e0e0;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.ccg-sidebar-list {
    list-style: none;
    padding: 0;
    padding-bottom: 40px;
    margin: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    /* Hide scrollbar but keep scrolling functionality */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    margin-bottom: 0;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.ccg-sidebar-list::-webkit-scrollbar {
    display: none;
}

.ccg-sidebar-item {
    margin-bottom: 2px;
}

.ccg-sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: #2d2d2d;
    background: #ffffff;
    border-radius: 0px;
    transition: all 0.2s ease;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    outline: none;
    border: none;
}

.ccg-sidebar-link:hover {
    background: #f5f5f5;
}

.ccg-sidebar-link:focus,
.ccg-sidebar-link:active {
    outline: none;
    border: none;
    box-shadow: none;
}

.ccg-sidebar-item-active .ccg-sidebar-link {
    background: #e5e7eb;
    font-weight: 500;
    outline: none;
    border: none;
}

.ccg-sidebar-item-active .ccg-sidebar-product-link {
    background: #e5e7eb;
    font-weight: 500;
    outline: none;
    border: none;
}

.ccg-sidebar-arrow {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: #999999;
    display: block;
}

.ccg-sidebar-thumb {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.ccg-sidebar-name {
    flex: 1;
    font-size: 14px;
    color: #2d2d2d;
}

/* Sidebar products list - make names bold */
.ccg-sidebar-products-list .ccg-sidebar-name {
    font-weight: bold;
}

.ccg-sidebar-product-link:hover .ccg-sidebar-name {
    font-weight: bold;
}

.ccg-sidebar-count {
    font-size: 12px;
    color: #666666;
    white-space: nowrap;
}

/* Sidebar Products List Styles */
.ccg-sidebar-products-list {
    list-style: none;
    padding: 0;
    padding-bottom: 0px;
    margin: 0;
}

.ccg-sidebar-product-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: #2d2d2d;
    background: #ffffff;
    border-radius: 0px;
    transition: all 0.2s ease;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.ccg-sidebar-product-link:hover {
    background: #f5f5f5;
}

.ccg-sidebar-product-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.ccg-sidebar-product-counter {
    font-size: 16px;
    color: #2d2d2d;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
    margin-top: 4px;
}

.ccg-sidebar-price {
    font-size: 14px;
    font-weight: 600;
    color: #2d2d2d;
}

.ccg-sidebar-price .woocommerce-Price-amount {
    color: #2d2d2d;
}

/* Products Area Section - Right Side (Independent) */
.ccg-products-area {
    flex: 1;
    min-width: 0;
    order: 2; /* Ensure products area is on right */
    padding-left: 0;
    margin-left: 0px;
    width: calc(100% - 360px);
    box-sizing: border-box;
    position: relative;
    z-index: 1; /* Below sticky header sections */
}

/* Category Header */
.ccg-category-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 30px;
    margin-left: 0;
    padding-left: 0;
    width: 100%;
    background: #ffffff;
    padding-top: 15px;
    padding-bottom: 15px;
    margin-top: 0;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
    z-index: 200 !important; /* High z-index to stay above all content */
}

/* When header is sticky, category header should also have higher z-index */
.ccg-header-section.ccg-header-sticky .ccg-category-header {
    z-index: 200 !important; /* Above all content when sticky */
}

.ccg-category-title {
    font-size: 30px;
    font-weight: 600;
    color: #2d2d2d;
    margin: 0;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.2;
    transition: opacity 0.3s ease;
}

.ccg-product-count {
    font-size: 16px;
    color: #2d2d2d;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
    transition: opacity 0.3s ease;
}

/* Sidebar Product Count - Hide on desktop completely */
.ccg-sidebar-product-count {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

/* Category Section */
.ccg-category-section {
    margin-bottom: 15px;
    padding-bottom: 15px;
    opacity: 1 !important; /* Inactive sections have reduced opacity */
    transition: opacity 0.3s ease;
    position: relative;
    z-index: 0 !important; /* Lower z-index than sticky header - ensure content stays below */
}

/* Active section (when title is hidden) - full opacity */
.ccg-category-section:has(.ccg-section-title-hidden) {
    opacity: 1 !important;
}

/* Fallback for browsers that don't support :has() - use class-based approach */
.ccg-category-section.ccg-section-active {
    opacity: 1 !important;
}

/* Reduced opacity when section is below viewport */
.ccg-category-section.ccg-section-below-viewport {
    opacity: 0.3 !important;
    -webkit-transition: opacity 0.3s ease !important;
    -moz-transition: opacity 0.3s ease !important;
    -o-transition: opacity 0.3s ease !important;
    transition: opacity 0.3s ease !important;
}

/* When section is below viewport but active, keep it at 0.5 (not 0.3) */
.ccg-category-section.ccg-section-below-viewport:has(.ccg-section-title-hidden) {
    opacity: 0.5 !important;
}

/* Fallback for browsers that don't support :has() */
.ccg-category-section.ccg-section-below-viewport.ccg-section-active {
    opacity: 0.5 !important;
}

.ccg-category-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.ccg-category-section-title {
    font-size: 24px;
    font-weight: 600;
    color: #2d2d2d;
    margin: 0 0 30px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    transition: opacity 0.3s ease, height 0.3s ease, margin 0.3s ease, padding 0.3s ease, visibility 0.3s ease;
    position: relative;
    z-index: 0 !important; /* Ensure title stays below sticky header */
}


.ccg-category-section-active {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.ccg-category-products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
    position: relative;
    z-index: 0 !important; /* Ensure products stay below sticky header */
}

/* Product Grid - 4 columns */
.ccg-product-grid {
    display: block;
    width: 100%;
}

/* Product Card */
.ccg-product-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ccg-product-card:hover {
    transform: translateY(-4px);
    box-shadow: none;
}

.ccg-product-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.ccg-product-image-wrapper {
    width: 100%;
    padding-top: 100%; /* Square aspect ratio */
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
    border-radius: 8px;
    margin-bottom: 12px;
}

.ccg-product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.ccg-product-card:hover .ccg-product-image {
    transform: scale(1.05);
}

.ccg-product-info {
    padding: 0;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.ccg-product-title {
    font-size: 16px;
    font-weight: 500;
    color: #2d2d2d;
    margin: 0 0 8px 0;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.3;
}

.ccg-product-price {
    font-size: 16px;
    font-weight: 600;
    color: #8e9298 !important;
    margin-bottom: 5px;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.ccg-product-price *,
.ccg-product-price .woocommerce-Price-amount,
.ccg-product-price .woocommerce-Price-amount *,
.ccg-product-price span,
.ccg-product-price .amount {
    color: #8e9298 !important;
}

.ccg-trim-option {
    display: inline-block;
    width: fit-content;
    max-width: 100%;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 500;
    color: #2d2d2d;
    background: #f5f5f5;
    border-radius: 4px;
    margin-bottom: 12px;
    text-transform: capitalize;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    white-space: nowrap;
}

.ccg-trim-option.with_trim {
    color: #ffffff;
}

.ccg-trim-option.trimless {
    color: #ffffff;
}

/* Product Colors */
.ccg-product-colors {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 0;
}

.ccg-color-swatches {
    display: flex;
    gap: 8px;
    align-items: center;
}

.ccg-color-swatch {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block;
    position: relative;
}

/* White color swatch - add border to make it visible */
.ccg-color-swatch[style*="background-color: #ffffff"],
.ccg-color-swatch[style*="background-color: #fff"],
.ccg-color-swatch[style*="background-color: white"],
.ccg-color-swatch[data-color="white"],
.ccg-color-swatch[data-color="White"] {
    border: 1px solid #d0d0d0 !important;
}

.ccg-color-swatch:hover {
    transform: scale(1.1);
}

.ccg-color-swatch-selected {
    border-color: #000000;
    border-width: 2px;
}

/* White color swatch when selected - keep border visible */
.ccg-color-swatch-selected[style*="background-color: #ffffff"],
.ccg-color-swatch-selected[style*="background-color: #fff"],
.ccg-color-swatch-selected[style*="background-color: white"],
.ccg-color-swatch-selected[data-color="white"],
.ccg-color-swatch-selected[data-color="White"] {
    border-color: #000000 !important;
    border-width: 2px !important;
}

.ccg-color-count {
    font-size: 12px;
    color: #666666;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.ccg-no-products {
    text-align: center;
    padding: 60px 20px;
    color: #666666;
    font-size: 16px;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Empty State */
.ccg-empty-state {
    text-align: center;
    padding: 80px 20px;
    width: 100%;
}

.ccg-empty-message {
    color: #666666;
    font-size: 18px;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
    margin: 0;
    line-height: 1.6;
}

.ccg-sidebar-empty {
    padding: 40px 20px;
    text-align: center;
}

.ccg-sidebar-empty .ccg-empty-message {
    font-size: 14px;
    color: #999999;
}

/* Responsive Design for New Layout */
@media (max-width: 1600px) {
    .ccg-category-products {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

@media (max-width: 1200px) {
    .ccg-category-products {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
}

@media (max-width: 1200px) {
    .ccg-main-content {
        gap: 30px;
    }
    
    .ccg-sidebar {
        width: 240px;
        margin-right: 30px;
        padding-right: 0px;
    }
    
    .ccg-breadcrumbs,
    .ccg-header-section {
        margin-left: 300px; /* Adjusted for smaller sidebar */
    }
    
    /* Adjust mobile elements margin for smaller sidebar */
    .ccg-track-toggle-mobile-wrapper,
    .ccg-filter-categories-mobile {
        margin-left: 300px; /* Adjusted for smaller sidebar */
    }
    
    .ccg-products-area {
        margin-left: 40px;
        width: calc(100% - 300px);
    }
    
    .ccg-category-products {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
}

@media (max-width: 968px) {
    /* Hide sidebar on tablet */
    .ccg-sidebar {
        display: none !important;
    }
    
    .ccg-main-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .ccg-breadcrumbs,
    .ccg-header-section {
        margin-left: 0 !important; /* Reset margin on tablet */
        padding-left: 0;
        padding-right: 0;
    }
    
    /* Reset mobile elements margin on tablet */
    .ccg-track-toggle-mobile-wrapper,
    .ccg-filter-categories-mobile {
        margin-left: 0 !important;
    }
    
    .ccg-products-area {
        margin-left: 0 !important; /* Reset margin on tablet */
        width: 100% !important;
    }
    
    .ccg-category-products {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    
    .ccg-tabs-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .ccg-category-tabs {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }
    
    .ccg-child-categories-inline {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 5px;
        -webkit-overflow-scrolling: touch;
    }
}

/* Note: Mobile styles (max-width: 768px) are now handled in the comprehensive mobile section below */

@media (max-width: 480px) {
    .ccg-wrapper {
        padding: 20px 12px;
    }
    
    .ccg-category-products {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .ccg-category-tabs {
        gap: 20px;
    }
    
    .ccg-tab {
        font-size: 14px;
    }
}

/* ============================================
   MOBILE & TABLET RESPONSIVE STYLES
   ============================================ */

/* Tablet Styles (768px - 1024px) - iPad */
@media (max-width: 1024px) and (min-width: 769px) {
    .ccg-wrapper {
        padding: 30px 20px;
    }
    
    /* Hide sidebar on tablet */
    .ccg-sidebar {
        display: none !important;
    }
    
    /* Normalize opacity for all product sections on tablet */
    .ccg-category-section,
    .ccg-category-section:has(.ccg-section-title-hidden),
    .ccg-category-section.ccg-section-active,
    .ccg-category-section.ccg-section-below-viewport,
    .ccg-category-section.ccg-section-below-viewport:has(.ccg-section-title-hidden),
    .ccg-category-section.ccg-section-below-viewport.ccg-section-active {
        opacity: 1 !important;
    }
    
    /* Hide desktop track toggle on iPad */
    .ccg-tabs-container .ccg-track-toggle {
        display: none !important;
    }
    
    /* Hide inline child categories on iPad */
    .ccg-child-categories-inline {
        display: none !important;
    }
    
    /* Show mobile track toggle on iPad - Make sticky */
    .ccg-track-toggle-mobile-wrapper {
        display: block !important;
        position: sticky;
        top: 0;
        background: #ffffff;
        z-index: 6 !important; /* Highest z-index - stays above filter categories and header */
        margin-bottom: 0 !important; /* No gap - stick together */
        margin-left: 0 !important;
        padding-top: 10px; /* Padding when sticky */
        padding-bottom: 15px;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .ccg-track-toggle-mobile-wrapper .ccg-track-toggle {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        display: flex !important;
    }
    
    /* Show Filter Categories section on iPad (like mobile) - Make sticky */
    .ccg-filter-categories-mobile {
        display: block !important;
        position: sticky;
        top: 56px; /* Exact track toggle height: 10px padding-top + ~30px content + 15px padding-bottom + 1px border = 56px - no gap */
        background: #ffffff;
        z-index: 5 !important; /* Higher than header section (z-index: 3) to stay above */
        margin-bottom: 0 !important; /* No gap - stick together */
        margin-top: 0 !important; /* No gap - stick together */
        margin-left: 0 !important;
        padding-top: 0 !important; /* No top padding - stick directly */
        padding-bottom: 15px;
        border-bottom: 1px solid #e0e0e0;
    }
    
    /* Make header section sticky on tablet - stick directly below filter categories with no gap */
    .ccg-header-section {
        position: sticky !important;
        top: 142px !important; /* Exact: 56px track toggle + 86px filter categories (title ~25px + selects ~50px + padding 15px) - no gap */
        background: #ffffff;
        z-index: 3;
        padding-top: 0 !important; /* No top padding - stick directly */
    }
    
    /* When filter categories is sticky on tablet - no gap, stick together */
    .ccg-filter-categories-mobile.ccg-filter-sticky {
        padding-top: 0 !important; /* No top padding - stick directly */
        margin-bottom: 0 !important; /* No gap - stick together */
        margin-top: 0 !important; /* No gap - stick together */
        padding-bottom: 12px !important;
        z-index: 5 !important; /* Ensure it stays above header section when sticky */
    }
    
    .ccg-filter-categories-title {
        font-size: 18px;
        font-weight: 600;
        color: #2d2d2d;
        margin: 0 0 15px 0;
        font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    }
    
    .ccg-filter-selects {
        display: flex;
        flex-direction: row;
        gap: 12px;
        align-items: center;
    }
    
    .ccg-filter-select {
        flex: 1;
        width: 0;
        min-width: 0;
        max-width: 100%;
        padding: 12px 16px;
        font-size: 14px;
        font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
        color: #666666;
        background: #ffffff;
        border: 1px solid #e0e0e0;
        border-radius: 25px;
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 16px center;
        background-size: 12px;
        padding-right: 40px;
        cursor: pointer;
        transition: border-color 0.2s ease, color 0.2s ease;
    }
    
    .ccg-filter-select:hover {
        border-color: #2d2d2d;
    }
    
    .ccg-filter-select:focus {
        outline: none;
        border-color: #2d2d2d;
        color: #2d2d2d;
    }
    
    .ccg-filter-select option {
        padding: 10px;
        color: #2d2d2d;
    }
    
    /* Reset margins for breadcrumbs and header */
    .ccg-breadcrumbs,
    .ccg-header-section {
        margin-left: 0 !important;
        padding-left: 0;
        padding-right: 0;
    }
    
    /* Full width for products area */
    .ccg-products-area {
        margin-left: 0 !important;
        width: 100% !important;
    }
    
    /* Adjust product grid for tablet */
    .ccg-category-products {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    /* Stack tabs vertically if needed */
    .ccg-tabs-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .ccg-category-tabs {
        width: 100%;
        overflow-x: auto;
    }
    
    /* Adjust header */
    .ccg-category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .ccg-category-title {
        font-size: 28px;
    }
}

/* Mobile Styles (up to 768px) */
@media (max-width: 768px) {
    .ccg-wrapper {
        padding: 20px 15px;
    }
    
    /* Hide sidebar completely on mobile */
    .ccg-sidebar {
        display: none !important;
        left: 15px; /* Match container padding on mobile */
    }
    
    /* Normalize opacity for all product sections on mobile */
    .ccg-category-section,
    .ccg-category-section:has(.ccg-section-title-hidden),
    .ccg-category-section.ccg-section-active,
    .ccg-category-section.ccg-section-below-viewport,
    .ccg-category-section.ccg-section-below-viewport:has(.ccg-section-title-hidden),
    .ccg-category-section.ccg-section-below-viewport.ccg-section-active {
        opacity: 1 !important;
    }
    
    /* Reset all margins for mobile */
    .ccg-breadcrumbs {
        margin-left: 0 !important;
        margin-bottom: 15px;
        padding: 0;
    }
    
    /* Make header section sticky on mobile (like desktop) */
    .ccg-header-section {
        margin-left: 0 !important;
        padding: 0;
        position: sticky !important; /* Make sticky on mobile */
        top: 120px !important; /* Below track toggle (60px) + filter categories (60px, no gap) */
        background: #ffffff;
        z-index: 3;
        margin-top: 5px !important; /* Normal margin-top */
    }
    
    /* Adjust header position when sticky - stick directly below filter categories with no gap */
    .ccg-header-section.ccg-header-sticky {
        margin-top: 0 !important;
        top: 142px !important; /* Exact: 56px track toggle + 86px filter categories (title ~25px + selects ~50px + padding 10px + margin 1px) - no gap */
        padding-top: 0 !important; /* No top padding - stick directly */
    }
    
    /* Hide track toggle inside tabs-container on mobile (we show mobile version instead) */
    .ccg-tabs-container .ccg-track-toggle {
        display: none !important;
    }
    
    /* Show mobile track toggle after breadcrumbs - Make sticky */
    .ccg-track-toggle-mobile-wrapper {
        display: block !important;
        position: sticky;
        top: 0;
        background: #ffffff;
        z-index: 6 !important; /* Highest z-index - stays above filter categories and header */
        margin-bottom: 0 !important; /* No gap - stick together */
        margin-left: 0 !important;
        padding-top: 10px; /* Padding when sticky */
        padding-bottom: 15px;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .ccg-track-toggle-mobile-wrapper .ccg-track-toggle {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        display: flex !important;
    }
    
    /* Filter Categories Section for Mobile - Make sticky, stick directly below track toggle */
    .ccg-filter-categories-mobile {
        display: block !important;
        position: sticky;
        top: 56px; /* Exact track toggle height: 10px padding-top + ~30px content + 15px padding-bottom + 1px border = 56px - no gap */
        background: #ffffff;
        z-index: 5 !important; /* Higher than header section (z-index: 3) to stay above */
        margin-bottom: 0 !important; /* No gap - stick together */
        margin-top: 0 !important; /* No gap - stick together */
        margin-left: 0 !important;
        padding-top: 0 !important; /* No top padding - stick directly */
        padding-bottom: 10px; /* Default bottom padding */
        border-bottom: none; /* Remove bottom border */
    }
    
    /* When filter categories is sticky (scrolled), no gap - stick together */
    .ccg-filter-categories-mobile.ccg-filter-sticky {
        padding-top: 0 !important; /* No top padding - stick directly */
        padding-bottom: 10px !important; /* Keep same padding */
        margin-bottom: 0 !important; /* No gap - stick together */
        margin-top: 0 !important; /* No gap - stick together */
        z-index: 5 !important; /* Ensure it stays above header section when sticky */
    }
    
    .ccg-filter-categories-title {
        font-size: 18px;
        font-weight: 600;
        color: #2d2d2d;
        margin: 0 0 15px 0;
        font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    }
    
    .ccg-filter-selects {
        display: flex;
        flex-direction: row;
        gap: 12px;
        align-items: center;
    }
    
    .ccg-filter-select {
        flex: 1;
        width: 0; /* Force equal width with flex */
        min-width: 0; /* Allow flex to shrink */
        max-width: 100%; /* Prevent overflow */
        padding-top: 3px;
        padding-bottom: 3px;
        padding-left: 16px;
        padding-right: 40px;
        font-size: 14px;
        font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
        color: #666666;
        background: #ffffff;
        border: 1px solid #e0e0e0;
        border-radius: 25px;
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 16px center;
        background-size: 12px;
        cursor: pointer;
        transition: border-color 0.2s ease, color 0.2s ease;
    }
    
    .ccg-filter-select:hover {
        border-color: #2d2d2d;
    }
    
    .ccg-filter-select:focus {
        outline: none;
        border-color: #2d2d2d;
        color: #2d2d2d;
    }
    
    .ccg-filter-select option {
        padding: 10px;
        color: #2d2d2d;
    }
    
    .ccg-products-area {
        margin-left: 0 !important;
        width: 100% !important;
        padding: 0;
    }
    
    /* Breadcrumb adjustments */
    .ccg-breadcrumb-back {
        width: 36px;
        height: 36px;
        flex-shrink: 0;
    }
    
    .ccg-breadcrumb-back svg {
        width: 22px;
        height: 22px;
    }
    
    .ccg-breadcrumb-path {
        font-size: 16px;
        line-height: 1.4;
    }
    
    /* Tabs container - stack vertically */
    .ccg-tabs-container {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 20px;
        padding-top: 0 !important; /* No extra padding on mobile when sticky */
    }
    
    .ccg-category-tabs {
        width: 100%;
        display: flex;
        gap: 12px;
        overflow-x: auto;
        padding-bottom: 5px;
        -webkit-overflow-scrolling: touch;
    }
    
    .ccg-tab {
        font-size: 15px;
        padding: 12px 20px;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    /* Hide inline category filters on mobile (using dropdown instead) */
    .ccg-child-categories-inline {
        display: none !important;
    }
    
    /* Category header - title and count side by side */
    .ccg-category-header {
        flex-direction: row;
        align-items: baseline;
        justify-content: space-between;
        gap: 8px;
        margin-bottom: 20px;
        padding-top: 0;
        padding-bottom: 5px;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .ccg-category-title {
        font-size: 24px;
        line-height: 1.3;
    }
    
    .ccg-product-count {
        font-size: 14px;
        margin-left: auto; /* Push to right side */
    }
    
    /* Product grid - 2 columns on mobile */
    .ccg-category-products {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    /* Product cards */
    .ccg-product-card {
        padding: 0px;
    }
    
    .ccg-product-title {
        font-size: 14px;
        line-height: 1.4;
    }
    
    .ccg-product-price {
        font-size: 13px;
    }
    
    .ccg-color-count {
        font-size: 11px;
    }
    
    /* Section titles */
    .ccg-category-section-title {
        font-size: 20px;
        margin-bottom: 15px;
    }
}

/* Small Mobile Styles (up to 480px) */
@media (max-width: 480px) {
    .ccg-wrapper {
        padding: 15px 12px;
    }
    
    .ccg-breadcrumbs {
        margin-bottom: 15px;
    }
    
    .ccg-track-toggle-mobile-wrapper {
        margin-bottom: 15px;
    }
    
    .ccg-breadcrumb-back {
        width: 32px;
        height: 32px;
    }
    
    .ccg-breadcrumb-back svg {
        width: 18px;
        height: 18px;
    }
    
    .ccg-breadcrumb-path {
        font-size: 14px;
    }
    
    .ccg-tabs-container {
        gap: 12px;
        margin-bottom: 15px;
    }
    
    .ccg-category-tabs {
        gap: 10px;
    }
    
    .ccg-tab {
        font-size: 14px;
        padding: 10px 16px;
    }
    
    .ccg-child-categories-inline {
        margin-bottom: 15px;
    }
    
    .ccg-inline-cat-item {
        font-size: 13px;
        padding: 8px 14px;
    }
    
    .ccg-category-header {
        flex-direction: row;
        align-items: baseline;
        justify-content: space-between;
        margin-bottom: 15px;
        padding-top: 0;
        padding-bottom: 5px;
    }
    
    .ccg-category-title {
        font-size: 20px;
    }
    
    .ccg-product-count {
        font-size: 13px;
        margin-left: auto; /* Push to right side */
    }
    
    /* Single column on very small screens */
    .ccg-category-products {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .ccg-product-card {
        padding: 0px;
    }
    
    .ccg-product-title {
        font-size: 13px;
    }
    
    .ccg-product-price {
        font-size: 12px;
    }
    
    .ccg-category-section-title {
        font-size: 18px;
        margin-bottom: 12px;
    }
}

/* Landscape Mobile (480px - 768px width, landscape orientation) */
@media (max-width: 768px) and (orientation: landscape) {
    .ccg-category-products {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    
    .ccg-category-title {
        font-size: 22px;
    }
}s



/* custom  */

.ccg-sidebar {
    margin-right: 0px;
    top: 45px !important;

}
.ccg-category-section.ccg-section-active {
    margin-top: -50px;
}

.ccg-header-section {
    position: sticky;
    top: 120px !important;
    margin-left: 320px;

}

.ccg-breadcrumbs {
    margin-left: 320px;
	margin-bottom: 15px;
}
.elementor-default .ccg-wrapper {
    padding: 0px !important;
	padding-top:10px !important;
}
.ccg-tabs-container {
    padding-top: 10px !important;

}

@media screen and (max-width: 1024px){
	.ccg-filter-categories-mobile {
    top: 0px !important;
    padding-top: 10px;
}
	
	.ccg-header-section.ccg-header-sticky {
    top: 100px !important;
				padding-bottom: 5px;
}
	.ccg-header-section {
    top: 100px !important;
		padding-bottom: 5px;

}
	.elementor-default .ccg-wrapper {
    padding: 10px !important;
}
.ccg-filter-categories-mobile.ccg-filter-sticky {
    padding-top: 10px !important;
    z-index: 10 !important;
	}
.ccg-track-toggle-mobile-wrapper {
    padding: 0px;
	margin-bottom: 10px !important;

}

.ccg-track-toggle-mobile-wrapper {
    display: none !important;
}
h3.ccg-filter-categories-title {
    border-top: 1px solid #ddd;
    padding-top: 10px;
}
}
.ccg-category-section-title.ccg-section-title-hidden {
    opacity: 0 !important;
    margin: 0  !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: none !important;
    visibility: hidden !important;
}
@media screen and (max-width: 767px){

	
	.ccg-header-section.ccg-header-sticky {
    top: 95px !important;
				padding-bottom: 5px;
}
	.ccg-header-section {
    top: 85px !important;
		padding-bottom: 5px;

}

}