
    :root {
        --blog-primary: {{ $web_config['primary_color'] }};
        --blog-primary-rgb: {{ getHexToRGBColorCode($web_config['primary_color']) }};
        --blog-secondary: {{ $web_config['secondary_color'] }};
        --blog-secondary-rgb: {{ getHexToRGBColorCode($web_config['secondary_color']) }};
        --card-bg: #ffffff;
        --text-main: #1e293b;
        --text-muted: #64748b;
        --border-color: rgba(0, 0, 0, 0.06);
        --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .homepage-blog-section {
        margin-top: 4.5rem;
        margin-bottom: 4.5rem;
    }

    .tracking-wider {
        letter-spacing: 0.08em;
    }

    .rounded-16 {
        border-radius: 16px;
    }

    .rounded-12 {
        border-radius: 12px;
    }

    .shadow-sm-hover {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
        transition: var(--transition-smooth);
    }

    .shadow-sm-hover:hover {
        box-shadow: 0 15px 30px rgba(var(--blog-primary-rgb), 0.08);
        transform: translateY(-2px);
        border-color: rgba(var(--blog-primary-rgb), 0.15) !important;
    }

    .homepage-secondary-blog-card {
        background-color: #ffffff;
        border: 1px solid rgba(0, 0, 0, 0.05);
        transition: var(--transition-smooth);
    }

    .homepage-secondary-blog-card:hover .sec-card-title {
        color: var(--blog-primary) !important;
    }

    .homepage-secondary-blog-card:hover img {
        transform: scale(1.04);
    }

    .object-fit-cover {
        object-fit: cover;
    }

    .transition-transform {
        transition: transform 0.4s ease;
    }

    .line-limit-2 {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Card styles duplicated for homepage compatibility */
    .premium-blog-card {
        background: #ffffff;
        border: 1px solid rgba(0, 0, 0, 0.05);
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
        transition: var(--transition-smooth);
        height: 100%;
        display: flex;
        flex-direction: column;
        cursor: pointer;
    }

    .premium-blog-card:hover {
        transform: translateY(-6px);
        border-color: rgba(var(--blog-primary-rgb), 0.15);
        box-shadow: 0 20px 30px -10px rgba(var(--blog-primary-rgb), 0.15),
                    0 10px 15px -5px rgba(var(--blog-primary-rgb), 0.02);
    }

    .card-img-wrap {
        position: relative;
        overflow: hidden;
        aspect-ratio: 1.777;
        background-color: #f8fafc;
    }

    .card-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .premium-blog-card:hover .card-image {
        transform: scale(1.06);
    }

    .card-category-badge {
        position: absolute;
        top: 14px;
        left: 14px;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        color: var(--text-main);
        font-weight: 700;
        font-size: 11px;
        padding: 4px 12px;
        border-radius: 20px;
        z-index: 2;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
        text-transform: uppercase;
        letter-spacing: 0.03em;
    }

    .card-content {
        padding: 1.5rem;
        display: flex;
        flex-direction: column;
        flex-grow: 1;
    }

    .card-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        font-size: 12px;
        color: var(--text-muted);
        margin-bottom: 0.75rem;
        font-weight: 500;
    }

    .meta-item {
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .card-title {
        font-size: 18px;
        font-weight: 700;
        line-height: 1.4;
        margin-bottom: 0.75rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .card-title a {
        color: var(--text-main);
        text-decoration: none !important;
        transition: var(--transition-smooth);
    }

    .premium-blog-card:hover .card-title a {
        color: var(--blog-primary);
    }

    .card-excerpt {
        font-size: 14px;
        color: var(--text-muted);
        line-height: 1.5;
        margin-bottom: 1.5rem;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .card-footer-layout {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: auto;
        padding-top: 1rem;
        border-top: 1px solid rgba(0, 0, 0, 0.04);
    }

    /* ========================================
        HOME PAGE MODERN UI - Responsive Design
        ======================================== */

    /* Section Spacing */
    .home-page-modern .home-section-spacing {
        margin-top: 1.5rem;
    }

    @media (min-width: 768px) {
        .home-page-modern .home-section-spacing {
            margin-top: 2.5rem;
        }
    }

    @media (min-width: 1200px) {
        .home-page-modern .home-section-spacing {
            margin-top: 3rem;
        }
    }

    /* Promo Banner */
    .home-promo-banner {
        min-height: 200px;
        background: linear-gradient(135deg, var(--bs-primary), var(--bs-secondary));
    }

    @media (min-width: 768px) {
        .home-promo-banner {
            min-height: 250px;
        }
    }

    /* ========================================
        PRODUCT CARD GRID - 4 per row (Meesho style)
        ======================================== */

    /* Override product card grid for home sections */
    .home-page-modern .product-grid-4 {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    @media (min-width: 576px) {
        .home-page-modern .product-grid-4 {
            grid-template-columns: repeat(3, 1fr);
            gap: 14px;
        }
    }

    @media (min-width: 992px) {
        .home-page-modern .product-grid-4 {
            grid-template-columns: repeat(4, 1fr);
            gap: 16px;
        }
    }

    @media (min-width: 1200px) {
        .home-page-modern .product-grid-4 {
            grid-template-columns: repeat(5, 1fr);
            gap: 20px;
        }
    }

    /* Larger product cards for Meesho-style layout */
    .home-page-modern .product-card-large {
        background: #fff;
        border-radius: 12px;
        overflow: hidden;
        border: 1px solid rgba(0,0,0,0.06);
        transition: all 0.3s ease;
        display: flex;
        flex-direction: column;
    }

    .home-page-modern .product-card-large:hover {
        box-shadow: 0 8px 25px rgba(0,0,0,0.1);
        transform: translateY(-3px);
    }

    .home-page-modern .product-card-large .product-image-wrap {
        position: relative;
        width: 100%;
        aspect-ratio: 1 / 1.1;
        overflow: hidden;
        background: #f8f9fa;
    }

    .home-page-modern .product-card-large .product-image-wrap img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s ease;
    }

    .home-page-modern .product-card-large:hover .product-image-wrap img {
        transform: scale(1.05);
    }

    .home-page-modern .product-card-large .product-info {
        padding: 12px 14px 16px;
        display: flex;
        flex-direction: column;
        gap: 6px;
        flex-grow: 1;
    }

    .home-page-modern .product-card-large .product-title {
        font-size: 14px;
        font-weight: 600;
        color: var(--text-main, #1e293b);
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin: 0;
        transition: all 0.3s ease;
        white-space: normal;
    }

    #home-categories-section .category-product-title {
        font-size: 12px;
        font-weight: 600;
        color: var(--text-main, #1e293b);
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin: 0;
        transition: all 0.3s ease;
        white-space: normal;
    }

    @media (min-width: 576px) {
        #home-categories-section .category-product-title {
            font-size: 13px;
        }
    }

    @media (min-width: 768px) {
        #home-categories-section .category-product-title {
            font-size: 14px;
            line-height: 1.4;
        }
    }

    /* Override swiper-based product sections to use grid */
    .home-page-modern .product-swiper-to-grid .swiper-wrapper {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        transform: none !important;
    }

    @media (min-width: 576px) {
        .home-page-modern .product-swiper-to-grid .swiper-wrapper {
            grid-template-columns: repeat(3, 1fr);
            gap: 14px;
        }
    }

    @media (min-width: 992px) {
        .home-page-modern .product-swiper-to-grid .swiper-wrapper {
            grid-template-columns: repeat(4, 1fr);
            gap: 16px;
        }
    }

    @media (min-width: 1200px) {
        .home-page-modern .product-swiper-to-grid .swiper-wrapper {
            grid-template-columns: repeat(5, 1fr);
            gap: 20px;
        }
    }

    .home-page-modern .product-swiper-to-grid .swiper-slide {
        width: auto !important;
        margin: 0 !important;
    }

    /* ========================================
        GENERAL HOME PAGE POLISH
        ======================================== */

    /* Clean section backgrounds - no override, let bg-primary-light show through */

    /* Better card styling */
    .home-page-modern .card {
        border: 1px solid rgba(0,0,0,0.05);
        border-radius: 12px;
        overflow: hidden;
    }

    /* Clean section headings */
    .home-page-modern section h2 {
        font-weight: 700;
        font-size: 22px;
        color: var(--text-main, #1e293b);
    }

    @media (min-width: 768px) {
        .home-page-modern section h2 {
            font-size: 26px;
        }
    }

    /* Flash deal section responsive */
    @media (max-width: 575px) {
        .home-page-modern .flash-deal-countdown {
            padding: 0.5rem 0;
        }
        .home-page-modern .flash-deal-countdown h2 {
            font-size: 1.2rem;
        }
    }

    /* "Just for you" section grid fix */
    .home-page-modern .just-for-you-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    @media (min-width: 576px) {
        .home-page-modern .just-for-you-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (min-width: 992px) {
        .home-page-modern .just-for-you-grid {
            grid-template-columns: repeat(3, 1fr);
        }
    }

    /* Category slider cards */
    .home-page-modern .marquee-item {
        width: 200px;
        margin-right: 20px;
    }

    @media (min-width: 768px) {
        .home-page-modern .marquee-item {
            width: 230px;
            margin-right: 30px;
        }
    }

    /* Hover effects for interactivity */
    .home-page-modern a.btn-link {
        font-weight: 600;
        transition: all 0.2s ease;
    }

    .home-page-modern a.btn-link:hover {
        transform: translateX(3px);
    }

    /* Smooth scroll behavior */
    .home-page-modern {
        scroll-behavior: smooth;
    }

    /* Top rated swiper max slides */
    .home-page-modern [data-swiper-breakpoints] {
        overflow: visible;
    }

    /* Hide all swiper navigation arrows on home page */
    .home-page-modern .swiper-button-next,
    .home-page-modern .swiper-button-prev,
    .home-page-modern .swiper-nav {
        display: none !important;
    }

    /* Make banners responsive */
    .home-page-modern .banner img {
        border-radius: 12px;
    }

    @media (max-width: 767px) {
        .home-page-modern .banner img {
            border-radius: 8px;
        }
    }

    /* Clearance sale section styling */
    .home-page-modern .clearance-sale-bg-svg {
        opacity: 0.15;
    }

    /* Better button styling */
    .home-page-modern .btn-primary {
        border-radius: 8px;
        font-weight: 600;
        letter-spacing: 0.02em;
        transition: all 0.25s ease;
    }

    .home-page-modern .btn-primary:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 15px rgba(var(--bs-primary-rgb), 0.35);
    }

    /* ========================================
        MEESHO-STYLE DISCOUNT BADGE
        ======================================== */
    .meesho-discount-badge {
        display: inline-flex;
        align-items: center;
        font-size: 11px;
        font-weight: 700;
        color: #ffffff;
        background: #00873e;
        padding: 2px 7px;
        border-radius: 4px;
        white-space: nowrap;
        letter-spacing: 0.02em;
        line-height: 1.4;
    }

    @media (min-width: 768px) {
        .meesho-discount-badge {
            font-size: 12px;
            padding: 2px 8px;
        }
    }

    /* ========================================
        HOME CATEGORIES - Same style as top-rated products
        ======================================== */

    #home-categories-section .category-custom-card {
        border: 1px solid rgba(0,0,0,0.06) !important;
        border-radius: 10px !important;
        overflow: hidden;
        transition: all 0.3s ease;
        cursor: pointer;
        background: #fff;
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    #home-categories-section .category-custom-card:hover {
        transform: translateY(-3px) !important;
        box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
    }

    #home-categories-section .category-custom-card .product-image-wrap {
        position: relative;
        width: 100%;
        aspect-ratio: 1 / 1;
        overflow: hidden;
        background: #f8f9fa;
    }

    #home-categories-section .category-custom-card .product-image-wrap img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s ease;
    }

    #home-categories-section .category-custom-card:hover .product-image-wrap img {
        transform: scale(1.05);
    }

    #home-categories-section .category-custom-card .product-info {
        padding: 8px 10px 12px !important;
        display: flex;
        flex-direction: column;
        gap: 4px;
        text-align: start;
        flex-grow: 1;
    }

    #home-categories-section .product {
        transition: all 0.3s ease;
    }

    #home-categories-section .product:hover {
        box-shadow: 0 8px 25px rgba(0,0,0,0.1);
        transform: translateY(-3px);
    }

    /* Responsive: tablet+ */
    @media (min-width: 576px) {
        #home-categories-section .category-custom-card .product-image-wrap {
            aspect-ratio: 1 / 1.1;
        }
        #home-categories-section .category-custom-card .product-info {
            padding: 10px 12px 14px !important;
            gap: 5px;
        }
    }

    /* Responsive: desktop */
    @media (min-width: 768px) {
        #home-categories-section .category-custom-card {
            border-radius: 12px !important;
        }
        #home-categories-section .category-custom-card .product-info {
            padding: 12px 14px 16px !important;
            gap: 6px;
        }
    }

    /* ========================================
        CATEGORY PRODUCT CARDS - Larger Size (legacy)
        ======================================== */
    .category-product-card {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .category-product-card:hover {
        box-shadow: 0 8px 25px rgba(0,0,0,0.1);
        transform: translateY(-3px);
    }

    .category-card-image-wrap {
        aspect-ratio: 1 / 1.1;
        background: #f8f9fa;
        border-radius: 12px 12px 0 0;
    }

    .category-card-image-wrap img {
        transition: transform 0.4s ease;
    }

    .category-product-card:hover .category-card-image-wrap img {
        transform: scale(1.05);
    }

    .category-card-info {
        min-height: 70px;
    }

    .shadow-sm-hover {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
        transition: all 0.3s ease;
    }

    .shadow-sm-hover:hover {
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
        transform: translateY(-3px);
    }

    /* Category sections - let swiper control width via breakpoints */
    .home-page-modern .auto-item-width .swiper[data-swiper-items="auto"] .swiper-slide {
        min-width: 0;
        max-width: none;
        width: auto;
        flex-shrink: 0;
    }

    /* Ensure category/product cards fill swiper slide properly */
    .home-page-modern .swiper-slide .product-card-large,
    .home-page-modern .swiper-slide .category-product-card {
        width: 100%;
        height: 100%;
    }

    /* Category section swiper cards - fill the slide */
    #home-categories-section .swiper-slide {
        height: auto;
    }

    #home-categories-section .swiper-slide .product-card-large {
        width: 100%;
    }

    /* All swiper slides on home - consistent card sizing */
    .home-page-modern .swiper-slide .product-card-large,
    .home-page-modern .swiper-slide .product {
        width: 100%;
        height: 100%;
    }

    /* Ensure swiper-wrapper in AJAX loaded sections has gap */
    #home-categories-section .swiper-wrapper,
    #top-rated-section .swiper-wrapper,
    #best-deal-just-for-you-section .swiper-wrapper {
        gap: 6px !important;
    }

    @media (min-width: 768px) {
        #home-categories-section .swiper-wrapper,
        #top-rated-section .swiper-wrapper,
        #best-deal-just-for-you-section .swiper-wrapper {
            gap: 8px !important;
        }
    }

    @media (min-width: 1200px) {
        #home-categories-section .swiper-wrapper,
        #top-rated-section .swiper-wrapper,
        #best-deal-just-for-you-section .swiper-wrapper {
            gap: 10px !important;
        }
    }

    /* Responsive padding - Increased for better spacing */
    .home-page-modern .container-fluid {
        padding-left: 16px;
        padding-right: 16px;
    }

    @media (min-width: 576px) {
        .home-page-modern .container-fluid {
            padding-left: 24px;
            padding-right: 24px;
        }
    }

    @media (min-width: 992px) {
        .home-page-modern .container-fluid {
            padding-left: 40px;
            padding-right: 40px;
        }
    }

    @media (min-width: 1200px) {
        .home-page-modern .container-fluid {
            padding-left: 56px;
            padding-right: 56px;
        }
    }

    @media (min-width: 1400px) {
        .home-page-modern .container-fluid {
            padding-left: 64px;
            padding-right: 64px;
        }
    }

    /* Banner - equal spacing on all sides */
    .home-page-modern > .banner {
        padding: 0;
        margin: 0;
    }

    .home-page-modern > .banner > .container-fluid {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    @media (min-width: 576px) {
        .home-page-modern > .banner > .container-fluid {
            padding-left: 12px !important;
            padding-right: 12px !important;
        }
    }

    @media (min-width: 992px) {
        .home-page-modern > .banner > .container-fluid {
            padding-left: 12px !important;
            padding-right: 12px !important;
        }
    }

    @media (min-width: 1200px) {
        .home-page-modern > .banner > .container-fluid {
            padding-left: 12px !important;
            padding-right: 12px !important;
        }
    }

    /* Increased spacing between cards in all sections */
    .home-page-modern .swiper-container .swiper {
        --swiper-gap: 20px;
    }

    @media (min-width: 768px) {
        .home-page-modern .swiper-container .swiper {
            --swiper-gap: 24px;
        }
    }

    @media (min-width: 992px) {
        .home-page-modern .swiper-container .swiper {
            --swiper-gap: 28px;
        }
    }

    /* Override swiper data-margin for bigger gaps */
    .home-page-modern .swiper-container .swiper-wrapper {
        gap: 8px !important;
    }

    @media (min-width: 768px) {
        .home-page-modern .swiper-container .swiper-wrapper {
            gap: 10px !important;
        }
    }

    @media (min-width: 992px) {
        .home-page-modern .swiper-container .swiper-wrapper {
            gap: 12px !important;
        }
    }

    /* More spacing for category card sections */
    .home-page-modern .auto-item-width .swiper-wrapper {
        gap: 8px !important;
    }

    @media (min-width: 768px) {
        .home-page-modern .auto-item-width .swiper-wrapper {
            gap: 10px !important;
        }
    }

    @media (min-width: 992px) {
        .home-page-modern .auto-item-width .swiper-wrapper {
            gap: 12px !important;
        }
    }

    /* Extra section spacing */
    .home-page-modern .home-section-spacing {
        margin-top: 2rem;
    }

    @media (min-width: 768px) {
        .home-page-modern .home-section-spacing {
            margin-top: 3rem;
        }
    }

    @media (min-width: 1200px) {
        .home-page-modern .home-section-spacing {
            margin-top: 3.5rem;
        }
    }

    /* ========================================
        FIX: Add padding to swiper containers
        Prevent cards from being cut off at edges
        ======================================== */
    #top-rated-section .swiper-container,
    #home-categories-section .swiper-container {
        padding-left: 6px;
        padding-right: 6px;
        margin-left: -6px;
        margin-right: -6px;
    }

    @media (min-width: 576px) {
        #top-rated-section .swiper-container,
        #home-categories-section .swiper-container {
            padding-left: 10px;
            padding-right: 10px;
            margin-left: -10px;
            margin-right: -10px;
        }
    }

    @media (min-width: 992px) {
        #top-rated-section .swiper-container,
        #home-categories-section .swiper-container {
            padding-left: 14px;
            padding-right: 14px;
            margin-left: -14px;
            margin-right: -14px;
        }
    }

    @media (min-width: 1200px) {
        #top-rated-section .swiper-container,
        #home-categories-section .swiper-container {
            padding-left: 18px;
            padding-right: 18px;
            margin-left: -18px;
            margin-right: -18px;
        }
    }

    /* Fix card overflow in home-categories to allow spacing */
    #home-categories-section .card {
        overflow: visible !important;
    }

    #home-categories-section .card-body {
        overflow: visible;
    }


    /* Fix: Ensure swiper-container overflow is visible for spacing */
    #top-rated-section .swiper-container,
    #home-categories-section .swiper-container {
        overflow: visible !important;
    }

    #top-rated-section .swiper,
    #home-categories-section .swiper {
        overflow: hidden;
        padding-left: 4px;
        padding-right: 4px;
    }

    @media (min-width: 576px) {
        #top-rated-section .swiper,
        #home-categories-section .swiper {
            padding-left: 8px;
            padding-right: 8px;
        }
    }

    @media (min-width: 992px) {
        #top-rated-section .swiper,
        #home-categories-section .swiper {
            padding-left: 12px;
            padding-right: 12px;
        }
    }