/* 
 * Main Styles - Clean Version
 * همه استایل‌ها بجز مگا منو
 */

/* General Reset */
* {margin: 0; padding: 0; box-sizing: border-box;}

/* === Desktop Side Padding (قابل تنظیم) === */
:root {
    --desktop-side-padding: 150px; /* فاصله از اطراف در دسکتاپ - برای تغییر فقط این مقدار را عوض کنید */
}

@font-face {
    font-family: 'IRANSans';
    src: url('../Fonts/isSans/woff2/IRANSansWeb.woff2') format('woff2'),
         url('../Fonts/isSans/woff/IRANSansWeb.woff') format('woff'),
         url('../Fonts/isSans/ttf/IRANSansWeb.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IRANSans';
    src: url('../Fonts/isSans/woff2/IRANSansWeb_Light.woff2') format('woff2'),
         url('../Fonts/isSans/woff/IRANSansWeb_Light.woff') format('woff'),
         url('../Fonts/isSans/ttf/IRANSansWeb_Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IRANSans';
    src: url('../Fonts/isSans/woff2/IRANSansWeb_Medium.woff2') format('woff2'),
         url('../Fonts/isSans/woff/IRANSansWeb_Medium.woff') format('woff'),
         url('../Fonts/isSans/ttf/IRANSansWeb_Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IRANSans';
    src: url('../Fonts/isSans/woff2/IRANSansWeb_Bold.woff2') format('woff2'),
         url('../Fonts/isSans/woff/IRANSansWeb_Bold.woff') format('woff'),
         url('../Fonts/isSans/ttf/IRANSansWeb_Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'IRANSans', Tahoma, sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Mobile optimizations */
@media (max-width: 767px) {
    html body {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* Ensure sections don't overflow on mobile */
    section {
        max-width: 100%;
        overflow-x: hidden;
    }
    
    /* Better touch targets */
    a, button {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Footer mobile optimizations */
    footer {
        min-height: auto !important;
        overflow-x: hidden;
        position: relative;
    }
    
    footer > div:first-child {
        display: none !important; /* Hide background image on mobile */
    }
    
    footer > div:last-child {
        width: 100%;
        max-width: 100%;
    }
}

    /* Tablet footer optimizations */
@media (min-width: 768px) and (max-width: 1023px) {
    footer {
        min-height: auto !important;
        position: relative;
    }
    
    footer > div:first-child {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 0;
        overflow: hidden;
        margin-left: 0px !important;
        margin-right: 0px !important;
        background-color: unset !important;
        background: unset !important;
        border-radius: 0px !important;
    }
    
    footer > div:first-child img {
        object-fit: cover;
        object-position: center bottom;
        width: 100%;
        height: 100%;
        min-height: 100%;
        display: block;
    }
    
    footer > div:last-child {
        position: relative;
        z-index: 10;
        width: 100%;
    }
}

.container,
.container-fluid,
main.container {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

main.container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

/* Tablet breakpoint - فاصله متوسط برای تبلت */
@media (min-width: 768px) and (max-width: 1023px) {
    html body {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }
    
    body > header,
    html body header {
        margin-left: -2rem !important;
        margin-right: -2rem !important;
        padding-left: 2rem !important;
        padding-right: 2rem !important;
        width: calc(100% + 4rem) !important;
    }
    
    body main > section:first-child,
    body main section.relative.w-full.overflow-hidden,
    body main section.relative.w-full,
    html body main > section:first-child {
        margin-left: -2rem !important;
        margin-right: -2rem !important;
        padding-left: 2rem !important;
        padding-right: 2rem !important;
        width: calc(100% + 4rem) !important;
    }
    
    body > footer,
    html body footer {
        margin-left: -2rem !important;
        margin-right: -2rem !important;
        padding-left: 2rem !important;
        padding-right: 2rem !important;
        width: calc(100% + 4rem) !important;
        max-width: none !important;
    }
    
    /* Footer background image on tablet - ensure full width */
    body > footer > div:first-child,
    footer > div:first-child {
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* Desktop side padding - فاصله از اطراف در دسکتاپ */
@media (min-width: 1024px) {
    /* Body padding for all content */
    html body {
        padding-left: var(--desktop-side-padding) !important;
        padding-right: var(--desktop-side-padding) !important;
    }

    /* Header (sticky) - override Tailwind margins and ensure full width within body padding */
    body > header,
    html body header {
        margin-left: calc(-1 * var(--desktop-side-padding)) !important;
        margin-right: calc(-1 * var(--desktop-side-padding)) !important;
        padding-left: var(--desktop-side-padding) !important;
        padding-right: var(--desktop-side-padding) !important;
        width: calc(100% + (2 * var(--desktop-side-padding))) !important;
    }

    /* Hero Section - ensure full width with background images */
    body main > section:first-child,
    body main section.relative.w-full.overflow-hidden,
    body main section.relative.w-full,
    html body main > section:first-child {
        margin-left: calc(-1 * var(--desktop-side-padding)) !important;
        margin-right: calc(-1 * var(--desktop-side-padding)) !important;
        padding-left: var(--desktop-side-padding) !important;
        padding-right: var(--desktop-side-padding) !important;
        width: calc(100% + (2 * var(--desktop-side-padding))) !important;
    }

    /* Footer - override Tailwind margins and ensure full width within body padding */
    body > footer,
    html body footer {
        margin-left: calc(-1 * var(--desktop-side-padding)) !important;
        margin-right: calc(-1 * var(--desktop-side-padding)) !important;
        padding-left: var(--desktop-side-padding) !important;
        padding-right: var(--desktop-side-padding) !important;
        width: calc(100% + (2 * var(--desktop-side-padding))) !important;
        max-width: none !important;
    }
    
    /* Ensure footer background image spans full width */
    body > footer > div:first-child {
        margin-left: 0px !important;
        margin-right: 0px !important;
        width: 100% !important;
        left: 0px !important;
        right: 0px !important;
        background-color: unset !important;
        background: unset !important;
        border-radius: 0px !important;
    }
    
    footer > div:first-child {
        left: 0px !important;
        right: 0px !important;
        width: 100% !important;
        margin-left: 0px !important;
        margin-right: 0px !important;
        background-color: unset !important;
        background: unset !important;
        border-radius: 0px !important;
    }
    
    /* Footer background image responsive */
    body > footer {
        position: relative;
        overflow: hidden;
    }
    
    body > footer > div:first-child {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 0;
        overflow: hidden;
        width: 100%;
        height: 100%;
    }
    
    body > footer > div:first-child img {
        object-fit: cover;
        object-position: center bottom;
        width: 100%;
        height: 100%;
        min-height: 100%;
        display: block;
    }
    
    body > footer > div:last-child {
        position: relative;
        z-index: 10;
        width: 100%;
    }

    /* Override Tailwind lg:mx-[40px] classes */
    [class*="lg:mx-[40px]"],
    [class*="lg\\:mx-\\[40px\\]"] {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

.card {
    transition: transform 0.2s;
    margin-bottom: 1rem;
    border-radius: 0;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.product-image {
    height: 200px;
    object-fit: cover;
}

a{text-decoration: none;}

.footer {
    background-color: #2c3e50;
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}
.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

.footer h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.footer p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.footer .social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.footer .social-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.footer .trust-badges {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.footer .trust-badges a {
    display: inline-block;
    transition: transform 0.3s ease;
}

.footer .trust-badges a:hover {
    transform: translateY(-3px);
}

.footer .trust-badges img {
    height: 70px;
    width: auto;
    object-fit: contain;
}
/* Desktop Footer Styles */
.footer .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.footer .col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding: 0 15px;
    text-align: right;
}

@media (min-width: 992px) {
    .footer .col-md-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}
/* Responsive Footer Mobile */
@media (max-width: 768px) {
    .footer {
        padding: 1.5rem 0 !important;
        margin-top: 2rem;
    }
    
    .footer .container {
        padding: 0 10px !important;
        max-width: 100%;
    }
    
    .footer .row {
        flex-direction: column !important;
        gap: 1.5rem !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .footer .col-md-4 {
        width: 100% !important;
        max-width: 100% !important;
        text-align: center !important;
        padding: 0 !important;
        margin-bottom: 0 !important;
    }
    
    .footer h5 {
        font-size: 1rem !important;
        margin-bottom: 0.75rem !important;
        text-align: center;
    }
    
    .footer p {
        font-size: 0.85rem !important;
        margin-bottom: 0.5rem !important;
        text-align: center;
    }
    
    .footer .social-links {
        justify-content: center !important;
        gap: 0.75rem !important;
        margin-top: 0.5rem !important;
    }
    
    .footer .social-links a {
        width: 36px !important;
        height: 36px !important;
        font-size: 1.1rem !important;
        margin: 0 !important;
    }
    
    .footer .trust-badges {
        margin-top: 1rem !important;
        gap: 0.75rem !important;
    }
    
    .footer .trust-badges img {
        height: 60px !important;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 1rem 0 !important;
        margin-top: 1.5rem;
    }
    
    .footer .container {
        padding: 0 8px !important;
    }
    
    .footer h5 {
        font-size: 0.95rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .footer p {
        font-size: 0.8rem !important;
    }
    
    .footer .social-links {
        gap: 0.5rem !important;
    }
    
    .footer .social-links a {
        width: 32px !important;
        height: 32px !important;
        font-size: 1rem !important;
    }
    
    .footer .trust-badges {
        margin-top: 1rem !important;
        gap: 0.75rem !important;
    }
    
    .footer .trust-badges img {
        height: 55px !important;
    }
}

/* --- DigiKala Style Header & MegaMenu --- */
.dk-header {
    background: #fff;
    border-bottom: 1px solid #e0e0e6;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.dk-header .topbar {
    padding: 1rem 0;
    background: #fff;
    border-bottom: 1px solid #e0e0e6;
}

.dk-header .logo {
    height: 44px;
    max-width: 120px;
}

.dk-header .search-box {
    background: #f1f2f4;
    border-radius: 8px;
    padding: 0 1rem;
    height: 44px;
    display: flex;
    align-items: center;
    margin: 0 1rem;
}

.dk-header .search-box input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 1rem;
    padding: 0.5rem 0;
    font-family: inherit;
}

.dk-header .search-box i {
    color: #b0b0b0;
    font-size: 1.2rem;
    margin-left: 0.5rem;
}

.dk-header .header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dk-header .header-btn {
    background: none;
    border: none;
    color: #424750;
    font-size: 0.85rem;
    font-family: 'IRANSans', Tahoma, sans-serif;
    position: relative;
    transition: color 0.2s;
    padding: 0.5rem;
    
}

.dk-header .header-btn:hover {
    color: #b91c1c;
}

.dk-header .icon-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #b91c1c;
    color: #fff;
    border-radius: 50%;
    font-size: 11px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    transition: all 0.2s ease;
    white-space: nowrap;
    line-height: 1;
}

/* تنظیم خودکار برای اعداد بیشتر */
.dk-header .icon-badge[data-count-length="3"] {
    min-width: 22px;
    height: 22px;
    font-size: 10px;
    padding: 0 5px;
}

.dk-header .icon-badge[data-count-length="4"] {
    min-width: 26px;
    height: 26px;
    font-size: 9px;
    padding: 0 6px;
    border-radius: 13px;
}

.dk-header .icon-badge[data-count-length="5"] {
    min-width: 30px;
    height: 30px;
    font-size: 8px;
    padding: 0 7px;
    border-radius: 15px;
}

.dk-header .login-btn {
    border: 1px solid #e0e0e6;
    border-radius: 8px;
    padding: 8px 16px;
    background: #fff;
    color: #424750;
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
    text-decoration: none;
    white-space: nowrap;
    min-width: fit-content;
}

.dk-header .login-btn:hover {
    background: #f1f2f4;
    border-color: #b91c1c;
    color: #b91c1c;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(185, 28, 28, 0.1);
}

.dk-header .login-btn i {
    font-size: 1.1rem;
}

.dk-header .main-menu {
    background: #fff;
    border-bottom: 1px solid #e0e0e6;
    padding: 0.5rem 0;
    position: relative;
}

.dk-header .main-menu .d-flex {
    gap: 2rem;
}

.dk-header .main-menu .cat-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(66, 71, 80, 0.8);
    font-size: 1rem;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    cursor: pointer;
    position: relative;
    text-decoration: none;
    white-space: nowrap;
}

.dk-header .main-menu .cat-link.active,
.dk-header .main-menu .cat-link:hover {
    color: rgba(185, 28, 28, 0.8);
    border-bottom-color: rgba(185, 28, 28, 0.8);
    background: #f7f7f9;
}

.dk-header .main-menu .cat-link i {
    font-size: 1rem;
    color: inherit;
}

.dk-header .main-menu .cat-link .fa-bars {
    font-size: 1rem;
}

.dk-header .main-menu .cat-link .fa-chevron-down {
    font-size: 0.75rem;
    margin-right: 0.2rem;
    transition: transform 0.2s;
}

.dk-header .main-menu .cat-link.open .fa-chevron-down {
    transform: rotate(180deg);
}

.dk-header .main-menu .cat-link .fa-star {color: rgba(249, 188, 0, 0.8) !important;}
.dk-header .main-menu .cat-link .fa-bolt {color: rgba(230, 18, 61, 0.8) !important;}
.dk-header .main-menu .cat-link .fa-store {color: rgba(185, 28, 28, 0.8) !important;}
.dk-header .main-menu .cat-link .fa-question-circle {color: rgba(66, 71, 80, 0.8) !important;}
.dk-header .main-menu .cat-link .fa-user-tie {color: rgba(66, 71, 80, 0.8) !important;}
.dk-header .main-menu .cat-link .fa-blog {color: rgba(185, 28, 28, 0.8) !important;}
.dk-header .main-menu .cat-link .fa-percentage {color: rgba(0, 191, 214, 0.8) !important;}
.dk-header .main-menu .cat-link .fa-list {color: rgba(185, 28, 28, 0.8) !important;}
.dk-header .main-menu .cat-link .fa-home {color: rgba(185, 28, 28, 0.8) !important;}
.dk-header .main-menu .cat-link .fa-bars {color: rgba(185, 28, 28, 0.8) !important;}

/* Hamburger Menu */
.hamburger {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #424750;
    display: none;
    align-items: center;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger:focus {
    outline: 2px solid #e6123d;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 80vw;
    max-width: 340px;
    height: 100vh;
    background: #fff;
    box-shadow: -2px 0 16px rgba(0,0,0,0.13);
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(.4,0,.2,1);
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1rem 1rem 1rem;
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.5rem;
}

.close-mobile-menu {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #e6123d;
    cursor: pointer;
}

.mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-list li {
    margin-bottom: 1.2rem;
}

.mobile-menu-list a {
    color: #222;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    transition: color 0.2s;
}

.mobile-menu-list a:hover {
    color: #e6123d;
}

@media (max-width: 991px) {
    .main-menu {display: none !important;}
    .hamburger {display: flex !important;}
    
    .dk-header .search-box {
        margin: 0;
    }
    
    .dk-header .header-actions {
        gap: 0.5rem;
    }
    
    .dk-header .login-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .dk-header .login-btn span {
        display: none;
    }
}

/* Mobile navigation padding - جدا از desktop */
/* Changed from 768px to 991px to match Bootstrap lg breakpoint */
@media (max-width: 991px) {
    body {
        padding-top: 80px; /* ارتفاع کمتر برای موبایل */
        padding-bottom: 70px; /* فضا برای mobile nav */
    }
    
    .dk-header .topbar {
        padding: 0.75rem 0;
    }
    
    .dk-header .logo {
        height: 36px;
    }
    
    .dk-header .search-box {
        height: 36px;
        margin: 0;
    }
    
    .dk-header .search-box input {
        font-size: 0.9rem;
    }
}

@media (max-width: 600px) {
    body {
        padding-top: 65px; /* ارتفاع کمتر برای موبایل کوچک */
        padding-bottom: 70px; /* فضا برای mobile nav */
    }
    
    .dk-header .topbar .row {
        --bs-gutter-x: 0.5rem;
    }
    
    .dk-header .logo {
        height: 32px;
    }
    
    .dk-header .search-box {
        height: 32px;
        padding: 0 0.5rem;
    }
    
    .dk-header .search-box input {
        font-size: 0.85rem;
    }
    
    .dk-header .header-btn {
        font-size: 0.8rem;
        font-family: 'IRANSans', Tahoma, sans-serif;
        padding: 0.25rem;
    }
    
    .dk-header .login-btn {
        display: none;
    }
}

/* Product Description */
.product-description {
    max-height: 3em; /* دو خط */
    overflow: hidden;
    position: relative;
}

.product-description::after {
    content: '...';
    position: absolute;
    bottom: 0;
    left: 0;
    background: white; /* رنگ پس‌زمینه */
    padding: 0 5px; /* فاصله */
}

/* Horizontal Product Slider */
.product-slider-section {
    padding: 1.5rem 0;
    position: relative;
    background: #fff;
    border-radius: 1rem;
    margin: 1rem 0;
}

.product-slider-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    margin-bottom: 1.5rem;
}

.product-slider-title h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.product-slider-title .see-all {
    color: #e6123d;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-slider-wrapper {
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    padding: 1rem;
}

.product-slider-wrapper::-webkit-scrollbar {
    display: none;
}

.product-slider {
    display: inline-flex;
    gap: 1rem;
    padding: 0.5rem;
}

.product-card {
    width: 220px;
    background: #fff;
    border-radius: 1rem;
    padding: 1rem;
    display: inline-flex;
    flex-direction: column;
    white-space: normal;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #eee;
}

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

.product-card .product-image {
    width: 100%;
    
    transition: transform 0.3s;
}

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

.product-card .product-title {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 3rem;
}

.product-card .product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #e6123d;
    margin-top: auto;
    font-family: 'IRANSans', Tahoma, sans-serif;
}

.product-card .product-discount {
    background: #e6123d;
    color: #fff;
    padding: 0.2rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.9rem;
    margin-right: 0.5rem;
}

.product-card .product-old-price {
    color: #999;
    text-decoration: line-through;
    font-size: 0.9rem;
    margin-right: 0.5rem;
}

/* دکمه‌های اسکرول */
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 2;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.scroll-btn:hover {
    background: #f8f9fa;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.scroll-left {
    left: -20px;
}

.scroll-right {
    right: -20px;
}

.scroll-btn i {
    color: #333;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .product-card {
        width: 200px;
        padding: 0.6rem;
        display: flex;
        flex-direction: column;
    }
    .product-card .product-image {
        width: 100%;
        height: auto;
        aspect-ratio: 3 / 4;
        object-fit: cover;
        margin-bottom: 0.5rem;
    }
    .product-slider-title h2 {
        font-size: 1.2rem;
    }
    .scroll-btn {
        width: 32px;
        height: 32px;
    }
    .scroll-left {
        left: -16px;
    }
    .scroll-right {
        right: -16px;
    }
}

@media (max-width: 480px) {
    .product-card {
        width: 180px;
        padding: 0.5rem;
        display: flex;
        flex-direction: column;
    }
    .product-card .product-image {
        width: 100%;
        height: auto;
        aspect-ratio: 3 / 4;
        object-fit: cover;
        margin-bottom: 0.4rem;
    }
    .product-slider-title h2 {
        font-size: 1.1rem;
    }
}

/* Banner Styles */
.banner-section {
    width: 100%;
    margin-bottom: 2rem;
    overflow: hidden;
}

.banner-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-image {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%); */
    z-index: 1;
}

.banner-content {
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    z-index: 2;
    text-align: right;
    color: #fff;
}

.banner-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.banner-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.banner-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: #e6123d;
    color: #fff;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(230,18,61,0.3);
}

.banner-btn:hover {
    background: #fff;
    color: #e6123d;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230,18,61,0.4);
}

/* Responsive Banner */
@media (max-width: 1200px) {
    .banner-image {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 768px) {
    .banner-container {
        height: auto;
    }
}

@media (max-width: 480px) {
    .banner-container {
        height: auto;
    }
}

/* Warehouse Circles Section */
.warehouse-circles {
    padding: 1rem 0;
    background: #fff;
    margin: 0 0 1rem 0;
    min-height: auto;
    height: auto;
    position: relative;
}

.warehouse-circles .container {
    padding: 0;
    height: auto;
}

.warehouse-circles-wrapper {
    padding: 0 3rem;
    margin: 0 0.5rem;
    overflow-x: auto;
    overflow-y: visible;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    max-height: none;
    height: auto;
}

.warehouse-circles-wrapper::-webkit-scrollbar {
    display: none;
}

.warehouse-circles-slider {
    display: flex;
    gap: 0;
    align-items: flex-start;
    min-width: fit-content;
    padding: 10px 5px;
    flex-wrap: nowrap;
    height: auto;
    min-height: auto;
}

.warehouse-circle-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    min-width: 90px;
    margin: 0 5px;
    height: auto;
    min-height: 100px;
}

.warehouse-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
    white-space: normal;
    width: 70px;
    height: auto;
    margin: 0 10px;
    min-height: 90px;
}

.warehouse-circle:hover {
    transform: translateY(-5px);
}

.circle-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.7rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.warehouse-circle:hover .circle-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.circle-icon i {
    font-size: 1.8rem;
    color: white;
    transition: transform 0.3s ease;
}

.warehouse-circle:hover .circle-icon i {
    transform: scale(1.1);
}

.circle-title {
    color: #333;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    margin-top: 0.5rem;
    width: 100%;
    height: auto;
    min-height: 2em;
    overflow: visible;
    text-overflow: clip;
    display: block;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.2;
}

/* Warehouse Circles Navigation Buttons */
.warehouse-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 2;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.warehouse-nav-btn:hover {
    background: #f8f9fa;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.warehouse-nav-left {
    left: -18px;
}

.warehouse-nav-right {
    right: -18px;
}

.warehouse-nav-btn i {
    color: #333;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .warehouse-circle {
        width: 70px;
        height: 70px;
        margin: 0 10px;
    }
    
    .circle-icon {
        width: 60px;
        height: 60px;
    }
    
    .circle-icon i {
        font-size: 1.8rem;
    }
    
    .circle-title {
        font-size: 0.85rem;
        margin-top: 0.5rem;
    }
    
    .warehouse-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .warehouse-nav-left {
        left: 0.5rem;
    }
    
    .warehouse-nav-right {
        right: 0.5rem;
    }
}

@media (max-width: 480px) {
    .warehouse-circle {
        width: 65px;
        height: 65px;
        margin: 0 12px;
        flex-shrink: 0;
    }
    
    .circle-icon {
        width: 55px;
        height: 55px;
    }
    
    .circle-icon i {
        font-size: 1.6rem;
    }
    
    .circle-title {
        font-size: 0.8rem;
        margin-top: 0.5rem;
        text-align: center;
        line-height: 1.2;
        max-width: 65px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* blogs.html */
.blog-card {
  transition: box-shadow 0.2s, transform 0.2s;
  border-radius: 1.2rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.13);
  transform: translateY(-4px) scale(1.02);
}

.blog-card .blog-image {
  height: 200px;
  max-height: 200px;
  border-radius: 1.2rem 1.2rem 0 0;
}

.blog-card .blog-title {
  font-size: 1.1rem;
  font-weight: bold;
  color: #2c3e50;
}

.blog-card .blog-desc {
  color: #555;
  font-size: 0.98rem;
}

.blog-card .blog-meta {
  font-size: 0.92rem;
  color: #888;
}

/* blog_detail.html */
.blog-header {
  display: none !important;
}

/* Modern blog detail styles */
.blog-title {
  font-size: 2.1rem;
  font-weight: 800;
  color: #222;
  margin-bottom: 0.5rem;
}

.blog-meta {
  font-size: 1rem;
  color: #888;
  margin-bottom: 1rem;
}

.blog-image {
  width: 100%;
  max-height: 350px;
  object-fit: cover;
  border-radius: 1.2rem;
  margin-bottom: 1.5rem;
}

.blog-content {
  font-size: 1.13rem;
  color: #232323;
  line-height: 2.1;
  background: #fff;
  border-radius: 1.2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* Cart disabled button styles */
.btn-outline-secondary.disabled,
.btn-outline-secondary:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #6c757d;
}

.btn-outline-secondary.disabled:hover,
.btn-outline-secondary:disabled:hover {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #6c757d;
    transform: none;
}

/* Mobile-First Responsive Improvements */
@media (max-width: 992px) {
    /* Container margins for mobile */
    .container {
        padding: 0;
    }
}

@media (max-width: 768px) {
    /* Global mobile improvements */
    body {
        padding-top: 140px; /* Reduced for mobile */
    }
    
    /* Banner responsive */
    .banner-section {
        margin: 0 0 1rem 0;
        padding: 0 0.5rem;
    }
    
    .banner-container {
        height: 180px;
        border-radius: 12px;
        margin: 0;
    }
    
    .banner-image {
        border-radius: 12px;
    }
    
    /* Warehouses responsive */
    .warehouse-circles {
        padding: 1rem 0;
        margin: 0 0 1rem 0;
    }
    
    .warehouse-circles .container {
        padding: 0;
    }
    
    .warehouse-circles-wrapper {
        padding: 0 3rem;
        margin: 0 0.5rem;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .warehouse-circles-wrapper::-webkit-scrollbar {
        display: none;
    }
    
    .warehouse-circles-slider {
        display: flex;
        gap: 0;
        align-items: flex-start;
        min-width: fit-content;
        padding: 10px 5px;
    }
    
    .warehouse-circle-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        flex-shrink: 0;
        min-width: 90px;
        margin: 0 5px;
    }
    
    .warehouse-nav-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    }
    
    .warehouse-nav-left {
        left: 0.5rem;
    }
    
    .warehouse-nav-right {
        right: 0.5rem;
    }
    
    /* Product slider responsive */
    .product-slider-section {
        margin: 0 0.5rem 1rem 0.5rem;
        padding: 1rem;
        background: white;
        border-radius: 12px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    }
    
    .product-slider-title {
        padding: 0;
        margin-bottom: 1rem;
    }
    
    .product-slider-title h2 {
        font-size: 1.4rem;
        margin: 0;
    }
    
    .product-slider-title .see-all {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
    
    .product-slider-wrapper {
        padding: 0 2.5rem;
    }
    
    .scroll-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    }
    
    .scroll-left {
        left: -17px;
    }
    
    .scroll-right {
        right: -17px;
    }
    
    /* Product cards mobile */
    .product-card {
        min-width: 160px;
        max-width: 180px;
        padding: 0.6rem;
        border-radius: 10px;
        display: flex;
        flex-direction: column;
    }
    
    .product-card .product-image {
        width: 100%;
        height: auto;
        aspect-ratio: 3 / 4;
        object-fit: cover;
        border-radius: 8px;
        margin-bottom: 0.5rem;
    }
    
    .product-card .product-title {
        font-size: 0.85rem;
        line-height: 1.3;
        min-height: 2rem;
        margin-bottom: 0.4rem;
        flex-grow: 1;
    }
    
    .product-card .product-price {
        font-size: 0.9rem;
        margin-top: auto;
    }
    
    .product-card .product-discount {
        font-size: 0.7rem;
        padding: 0.1rem 0.3rem;
    }
    
    .product-card .product-old-price {
        font-size: 0.75rem;
    }
    
    /* Features section mobile */
    .features-section .row {
        gap: 0.5rem;
    }
    
    .features-section .card {
        border-radius: 10px;
        padding: 1rem 0.5rem;
    }
    
    .features-section .card-title {
        font-size: 1rem;
    }
    
    .features-section .card-text {
        font-size: 0.85rem;
    }
    
    .features-section .fa-3x {
        font-size: 2rem !important;
    }
}

@media (max-width: 576px) {
    body {
        padding-top: 0px;
    }
    
    /* Extra small screens */
    .banner-container {
        height: 150px;
        border-radius: 10px;
    }
    
    .warehouse-circles-wrapper {
        padding: 0 2rem;
        margin: 0 0.25rem;
    }
    
    .warehouse-circle-item {
        min-width: 75px;
        margin: 0 8px;
    }
    
    .warehouse-circle {
        width: 60px;
        height: 60px;
        margin: 0 auto;
    }
    
    .circle-icon {
        width: 50px;
        height: 50px;
    }
    
    .circle-icon i {
        font-size: 1.4rem;
    }
    
    .circle-title {
        font-size: 0.75rem;
        max-width: 75px;
        margin-top: 0.4rem;
    }
    
    .warehouse-nav-btn {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    .warehouse-nav-left {
        left: 0.25rem;
    }
    
    .warehouse-nav-right {
        right: 0.25rem;
    }
}

@media (max-width: 400px) {
    /* Very small screens - enable wrapping and vertical layout */
    .warehouse-nav-btn,
    .scroll-btn {
        display: none;
    }
    
    .warehouse-circles-wrapper {
        padding: 0 0.5rem;
        scroll-snap-type: none;
        -webkit-overflow-scrolling: touch;
        overflow-x: hidden;
        overflow-y: visible;
        height: auto;
        max-height: none;
    }
    
    .warehouse-circles-slider {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        padding: 10px 5px;
        width: 100%;
        min-width: auto;
        height: auto;
        min-height: auto;
    }
    
    .warehouse-circle-item,
    .product-card {
        scroll-snap-align: none;
    }
    
    .warehouse-circle-item {
        min-width: 70px;
        margin: 0;
        height: auto;
        min-height: 90px;
        flex: 0 0 auto;
    }
    
    .warehouse-circle {
        width: 55px;
        height: auto;
        min-height: 75px;
        margin: 0;
    }
    
    .circle-icon {
        width: 45px;
        height: 45px;
    }
    
    .circle-icon i {
        font-size: 1.2rem;
    }
    
    .circle-title {
        font-size: 0.7rem;
        max-width: 70px;
        margin-top: 0.3rem;
        height: auto;
        min-height: 1.5em;
        line-height: 1.1;
        overflow: visible;
        text-overflow: clip;
        white-space: normal;
        word-wrap: break-word;
    }
    
    .product-card {
        min-width: 150px;
        max-width: 170px;
        padding: 0.5rem;
        scroll-snap-align: start;
        display: flex;
        flex-direction: column;
    }
    
    .product-card .product-image {
        width: 100%;
        height: auto;
        aspect-ratio: 3 / 4;
        object-fit: cover;
        margin-bottom: 0.4rem;
    }
    
    .product-card .product-title {
        font-size: 0.75rem;
        height: 1.8rem;
        -webkit-line-clamp: 2;
    }
    
    .product-card .product-price {
        font-size: 0.8rem;
    }
    
    .banner-container {
        height: 120px;
        margin: 0;
    }
    
    .product-slider-section {
        margin: 0 0 1rem 0;
        padding: 0.6rem;
    }
    
    .product-slider-title h2 {
        font-size: 1.1rem;
    }
    
    .product-slider-title .see-all {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .product-card:hover,
    .warehouse-circle:hover,
    .card:hover {
        transform: none;
    }
    
    /* Better touch targets */
    .warehouse-circle,
    .product-card a {
        min-height: 44px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

/* High DPI display optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .banner-image,
    .product-image,
    .amazing-product-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* ============================================
   🎨 CREATIVE REDESIGN - Enhanced Styles
   ============================================ */

/* --- Section Title Styles --- */
.section-title-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title-wrapper h3,
.section-title-wrapper .section-title {
    position: relative;
    font-weight: 900;
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title-accent {
    width: 4px;
    height: 28px;
    background: linear-gradient(180deg, #e6123d 0%, #f59e0b 100%);
    border-radius: 4px;
    flex-shrink: 0;
}

.section-title-wrapper .see-all-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #e6123d;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 8px 18px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(230, 18, 61, 0.05), rgba(230, 18, 61, 0.1));
    border: 1px solid rgba(230, 18, 61, 0.15);
    transition: all 0.3s ease;
}

.section-title-wrapper .see-all-link:hover {
    background: linear-gradient(135deg, rgba(230, 18, 61, 0.1), rgba(230, 18, 61, 0.18));
    border-color: rgba(230, 18, 61, 0.3);
    transform: translateX(-4px);
}

/* --- Enhanced Product Cards --- */
.product-card-enhanced {
    background: #fff;
    border-radius: 16px;
    padding: 12px;
    border: 1px solid #f0f0f0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.product-card-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #e6123d, #f59e0b, #3b82f6);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.product-card-enhanced:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 8px 16px rgba(0, 0, 0, 0.04);
    border-color: transparent;
}

.product-card-enhanced:hover::before {
    opacity: 1;
}

.product-card-enhanced .product-img-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.product-card-enhanced .product-img-wrapper img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card-enhanced:hover .product-img-wrapper img {
    transform: scale(1.08);
}

.product-card-enhanced .price-tag {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #fef2f2, #fff1f2);
    border-radius: 10px;
    border: 1px solid rgba(230, 18, 61, 0.1);
}

.product-card-enhanced .price-tag .price-value {
    font-weight: 900;
    color: #e6123d;
}

.product-card-enhanced .price-tag .price-unit {
    font-size: 0.65rem;
    color: #9ca3af;
}

/* --- Discount Badge --- */
.discount-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #e6123d, #dc2626);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 8px;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(230, 18, 61, 0.3);
}

/* --- Featured Section Gradient --- */
.featured-section-gradient {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
    position: relative;
    overflow: hidden;
}

.featured-section-gradient::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.featured-section-gradient::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -20%;
    width: 40%;
    height: 150%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    pointer-events: none;
}

/* --- Tools Section Gradient --- */
.tools-section-gradient {
    background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #1e293b 100%);
    position: relative;
    overflow: hidden;
}

.tools-section-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(230, 18, 61, 0.06) 0%, transparent 40%);
    pointer-events: none;
}

/* --- Category Banner Cards Enhanced --- */
.banner-card-enhanced {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), background-size 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), background-position 0.7s ease;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    max-width: 100%;
}

@media (min-width: 1920px) {
    .banner-card-enhanced {
        max-width: 480px;
    }
}

.banner-card-enhanced::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70%;
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
    z-index: 1;
    transition: height 0.4s ease;
}

.banner-card-enhanced:hover::after {
    height: 85%;
}

.banner-card-enhanced:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    background-size: 110%;
}

.banner-card-enhanced img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.5s ease;
    filter: brightness(0.9) saturate(1.1);
}

.banner-card-enhanced:hover img {
    transform: scale(1.12);
    filter: brightness(0.85) saturate(1.2);
}

.banner-card-enhanced .banner-text {
    position: relative;
    z-index: 2;
    color: #fff;
}

.banner-card-enhanced .banner-text h3 {
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.banner-card-enhanced .banner-text p {
    color: rgba(255,255,255,0.8);
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* --- Category Icon Enhanced --- */
.category-icon-enhanced {
    position: relative;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.category-icon-enhanced::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(230, 18, 61, 0.3), rgba(59, 130, 246, 0.3));
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.category-icon-enhanced:hover::after {
    opacity: 1;
}

.category-icon-enhanced:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
}

/* --- Blog Card Enhanced --- */
.blog-card-enhanced {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.blog-card-enhanced:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

.blog-card-enhanced .blog-img-wrapper {
    position: relative;
    overflow: hidden;
}

.blog-card-enhanced .blog-img-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.2), transparent);
    pointer-events: none;
}

.blog-card-enhanced .blog-img-wrapper img {
    transition: transform 0.6s ease;
}

.blog-card-enhanced:hover .blog-img-wrapper img {
    transform: scale(1.08);
}

.blog-card-enhanced .read-more-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #e6123d;
    font-weight: 700;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.blog-card-enhanced .read-more-link:hover {
    gap: 10px;
}

/* --- Section Divider --- */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #e5e7eb 20%, #e5e7eb 80%, transparent 100%);
    margin: 0 auto;
    max-width: 90%;
}

/* --- Newest Products Section --- */
.newest-section {
    position: relative;
}

.newest-section::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, #e6123d, #f59e0b);
    border-radius: 2px;
}

/* --- Featured Title Badge --- */
.title-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 14px;
    font-weight: 900;
    font-size: 1rem;
    backdrop-filter: blur(10px);
}

.title-badge-light {
    background: rgba(255,255,255,0.9);
    color: #1f2937;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.title-badge-dark {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.title-badge .badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* --- Footer Feature Icons Enhanced --- */
.footer-feature-card {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.footer-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(230, 18, 61, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.footer-feature-card:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.15);
    transform: translateY(-4px);
}

.footer-feature-card:hover::before {
    opacity: 1;
}

.footer-feature-card .feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(230, 18, 61, 0.15), rgba(230, 18, 61, 0.05));
    flex-shrink: 0;
}

.footer-feature-card .feature-icon i {
    font-size: 1.2rem;
    color: #e6123d;
}

/* --- Hero Enhancement --- */
.hero-overlay-gradient {
    background: unset;
}

/* --- Scroll Indicator Animation --- */
@keyframes float-up-down {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.float-animation {
    animation: float-up-down 3s ease-in-out infinite;
}

/* --- View All Button Enhanced --- */
.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.view-all-btn-light {
    background: rgba(255,255,255,0.85);
    color: #374151;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.view-all-btn-light:hover {
    background: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transform: translateX(-4px);
}

.view-all-btn-dark {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.15);
}

.view-all-btn-dark:hover {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.25);
    transform: translateX(-4px);
}

/* --- Responsive Adjustments for New Styles --- */
@media (max-width: 767px) {
    .section-title-accent {
        height: 22px;
        width: 3px;
    }
    
    .product-card-enhanced {
        padding: 8px;
        border-radius: 12px;
    }
    
    .product-card-enhanced .price-tag {
        padding: 4px 8px;
        border-radius: 8px;
    }
    
    .banner-card-enhanced {
        border-radius: 14px;
    }
    
    .blog-card-enhanced {
        border-radius: 14px;
    }
    
    .footer-feature-card {
        padding: 14px;
        border-radius: 12px;
    }
    
    .footer-feature-card .feature-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }
    
    .title-badge {
        padding: 8px 14px;
        font-size: 0.85rem;
        border-radius: 10px;
    }
    
    .newest-section::before {
        width: 80px;
        height: 3px;
        top: -20px;
    }
}