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

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

@font-face {
    font-family: 'isSans';
    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: 'isSans';
    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: 'isSans';
    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: 'isSans';
    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 {
    padding-top: 160px; /* ارتفاع هدر + کمی فاصله اضافی */
    font-family: 'isSans', sans-serif;
    background-color: #f8f9fa;
    margin: 0;
}

.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;
}

/* Desktop margin for main content containers only */
@media (min-width: 992px) {
    /* Apply margin only to main content area */
    main.container {
        margin-left: 40px !important;
        margin-right: 40px !important;
        max-width: calc(100% - 80px) !important;
    }
    
    /* Exclude all container-fluid and containers inside header, topbar, and footer */
    header .container-fluid,
    header .container,
    .dk-header .container-fluid,
    .dk-header .container,
    .dk-header .topbar,
    .topbar,
    .topbar .container-fluid,
    .topbar .container,
    .footer .container-fluid,
    .footer .container,
    footer .container-fluid,
    footer .container,
    .footer.container {
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-width: 100% !important;
    }
    
    /* Exclude container-fluid inside main to prevent double margin */
    main .container-fluid {
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-width: 100% !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: 'isSans', 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;
}

.dk-header .login-btn:hover {
    background: #f1f2f4;
    border-color: #b91c1c;
    color: #b91c1c;
}

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

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

.dk-header .main-menu .cat-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #424750;
    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: #b91c1c;
    border-bottom-color: #b91c1c;
    background: #f7f7f9;
}

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

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

.dk-header .main-menu .cat-link .fa-chevron-down {
    font-size: 0.8rem;
    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: #f9bc00;}
.dk-header .main-menu .cat-link .fa-bolt {color: #e6123d;}
.dk-header .main-menu .cat-link .fa-store {color: #00bfd6;}
.dk-header .main-menu .cat-link .fa-question-circle {color: #424750;}
.dk-header .main-menu .cat-link .fa-user-tie {color: #424750;}
.dk-header .main-menu .cat-link .fa-blog {color: #424750;}
.dk-header .main-menu .cat-link .fa-percentage {color: #00bfd6;}
.dk-header .main-menu .cat-link .fa-list {color: #424750;}

/* 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: 'isSans', 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: 'isSans', 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: 120px;
    }
    
    /* 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;
    }
} 