:root {
            --primary-color: #0F9D58;
            --primary-dark: #0b7842;
            --secondary-bg: #e8f5e9;
            --accent-color: #FF9800;
            --text-dark: #2d3436;
            --price-red: #d32f2f;
        }
        body {
            font-family: 'Vazirmatn', sans-serif;
            background-color: #f4f6f8;
            color: var(--text-dark);
            overflow-x: hidden;
        }
        /* --- Navbar & Menu --- */
        .navbar {
            background-color: white;
            padding: 10px 0;
            border-bottom: 1px solid #f0f0f0;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        }
        .navbar-brand {
            font-weight: 900;
            color: var(--primary-color) !important;
            font-size: 1.5rem; /* کمی کوچکتر برای موبایل */
            display: flex; align-items: center; gap: 8px;
        }
        @media (min-width: 992px) {
            .navbar-brand { font-size: 1.8rem; }
        }

        /* --- Beautiful Search Box --- */
        .search-box {
            background: white;
            border: 1px solid #e0e0e0;
            border-radius: 50px;
            padding: 8px 25px;
            width: 100%; max-width: 500px;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 4px 15px rgba(0,0,0,0.03);
            display: flex; align-items: center;
        }
        .search-box:focus-within {
            background: white;
            box-shadow: 0 0 0 3px rgba(15, 157, 88, 0.15);
            border-color: var(--primary-color);
            transform: translateY(-2px);
        }
        .search-input { border: none; background: transparent; width: 100%; outline: none; font-size: 0.95rem; }
        .search-btn-icon { color: var(--primary-color); font-size: 1.1rem; cursor: pointer; transition: 0.2s; }
        .search-btn-icon:hover { transform: scale(1.1); color: var(--primary-dark); }

        .hamburger-btn {
            border: none;
            background: transparent;
            font-size: 1.5rem;
            color: var(--text-dark);
            cursor: pointer;
            padding: 5px;
        }

        /* --- User Dropdown Styles --- */
        .user-dropdown-container {
            position: relative;
        }
        .user-dropdown-menu {
            position: absolute;
            top: 120%;
            left: 0; /* سمت چپ دکمه */
            background: white;
            min-width: 200px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.15);
            border-radius: 12px;
            padding: 10px;
            z-index: 1050;
            display: none;
            opacity: 0;
            transform: translateY(-10px);
            transition: all 0.3s ease;
            border: 1px solid #eee;
        }
        .user-dropdown-menu.show {
            display: block;
            opacity: 1;
            transform: translateY(0);
            position: fixed;
            top: 54px;
            left: auto;
        }
        .user-dropdown-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 15px;
            color: #555;
            text-decoration: none;
            border-radius: 8px;
            transition: 0.2s;
            font-size: 0.9rem;
        }
        .user-dropdown-item:hover {
            background-color: var(--secondary-bg);
            color: var(--primary-color);
        }

        /* --- Desktop Menu Styles --- */
        .secondary-nav {
            background: white;
            border-bottom: 1px solid #eee;
            box-shadow: 0 4px 10px rgba(0,0,0,0.03);
            z-index: 999;
        }
        .nav-item-custom { position: relative; }
        .nav-link-custom {
            color: #555; font-size: 0.95rem; padding: 15px 20px; display: block;
            text-decoration: none; font-weight: 500; transition: 0.2s;
        }
        .nav-link-custom:hover { color: var(--primary-color); background: #f9f9f9; }

        /* Dropdown Level 1 */
        .dropdown-menu-custom {
            display: none; position: absolute; top: 100%; right: 0;
            background: white; min-width: 220px; box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            border-radius: 0 0 15px 15px; border: none; padding: 10px; z-index: 1000;
            animation: slideDown 0.3s ease;
        }
        @keyframes slideDown {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        .nav-item-custom:hover > .dropdown-menu-custom { display: block; }

        .dropdown-item-custom {
            display: flex;align-items: center;
            padding: 10px 15px; color: #666; text-decoration: none;
            border-radius: 8px; font-size: 0.9rem; transition: 0.2s;
        }
        .dropdown-item-custom:hover { background: var(--secondary-bg); color: var(--primary-color); }
        /* Dropdown Level 2 (Nested) */
        .has-submenu > .dropdown-item-custom::after {
            content: '\f053'; /* FontAwesome chevron-left */
            font-family: "Font Awesome 6 Free";
            font-weight: 900;
            font-size: 0.7rem;
        }
        .dropdown-menu-custom.level-2 {
            top: 0; right: 100%; /* باز شدن به سمت چپ */
            margin-right: 5px;
            border-radius: 15px 0 15px 15px;
        }
        .has-submenu:hover > .dropdown-menu-custom.level-2 { display: block; }

        /* --- Mobile Menu Styles --- */
        .mobile-menu-overlay {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0,0,0,0.5); z-index: 1040;
            display: none; opacity: 0; transition: opacity 0.3s;
        }
        .mobile-menu-overlay.active { display: block; opacity: 1; }
        .mobile-menu-container {
            position: fixed; top: 0; right: -280px; width: 280px; height: 100%;
            background: white; z-index: 1050;
            transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex; flex-direction: column;
            box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        }
        .mobile-menu-container.active { right: 0; }
        .mobile-header {
            padding: 15px; border-bottom: 1px solid #eee;
            display: flex; justify-content: space-between; align-items: center;
            background: var(--primary-color); color: white;
        }
        .close-menu-btn { background: none; border: none; color: white; font-size: 1.2rem; }
        .mobile-tabs {
            display: flex; border-bottom: 1px solid #eee;
            background: #f9f9f9;
        }
        .mobile-tab {
            flex: 1; text-align: center; padding: 12px;
            font-size: 0.9rem; font-weight: bold; color: #666;
            cursor: pointer; transition: 0.2s; border-bottom: 3px solid transparent;
        }
        .mobile-tab.active {
            color: var(--primary-color); border-bottom-color: var(--primary-color);
            background: white;
        }
        .mobile-content-area {
            flex: 1; overflow-y: auto; padding: 10px 0;
        }
        .mobile-menu-list { list-style: none; padding: 0; margin: 0; }
        .mobile-menu-item {
            display: block; padding: 12px 20px; color: #444; text-decoration: none;
            border-bottom: 1px solid #f5f5f5; font-size: 0.95rem;
            position: relative;
        }
        .mobile-menu-item:hover { background: #f0f0f0; color: var(--primary-color); }
        .mobile-menu-item i.icon { width: 25px; color: #888; }

        /* Mobile Submenu Toggle */
        .mobile-submenu-toggle {
            position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
            background: none; border: none; color: #aaa; cursor: pointer;
            transition: 0.3s;
        }
        .mobile-submenu-toggle.rotated { transform: translateY(-50%) rotate(-90deg); color: var(--primary-color); }
        /* Mobile Nested Submenu */
        .mobile-nested-list {
            list-style: none; padding: 0; margin: 0;
            background: #f9f9f9; display: none; /* مخفی به صورت پیش‌فرض */
            border-bottom: 1px solid #eee;
        }
        .mobile-nested-list.open { display: block; animation: slideDown 0.3s ease; }
        .mobile-nested-item a {
            display: block; padding: 10px 20px 10px 45px; /* تورفتگی بیشتر */
            font-size: 0.85rem; color: #555; text-decoration: none;
        }
        .mobile-nested-item a:hover { color: var(--primary-color); background: #eee; }
        @media (max-width: 991px) {
            .secondary-nav { display: none; }
        }
        @media (min-width: 992px) {
            .hamburger-btn { display: none; }
            .mobile-menu-overlay, .mobile-menu-container { display: none !important; }
        }
        /* --- Hero Section --- */
        .hero-section {
            background: linear-gradient(180deg, rgba(15, 157, 88, 0.08) 0%, rgba(244, 246, 248, 1) 100%), url('https://via.placeholder.com/1920x600/e8f5e9/0F9D58?text=Narbel+Supermarket');
            background-size: cover;
            background-blend-mode: overlay;
            padding: 60px 0 140px 0;
            border-radius: 0 0 40px 40px;
        }
        /* --- Basket Section --- */
        .basket-wrapper {
            margin-top: -100px;
            position: relative;
            z-index: 10;
        }
        .basket-main-box {
            background: white;
            border-radius: 25px;
            padding: 30px;
            box-shadow: 0 15px 40px rgba(0,0,0,0.08);
            border: 1px solid rgba(0,0,0,0.02);
        }
        .product-card {
            background: white;
            border: 1px solid #f0f0f0;
            border-radius: 16px;
            padding: 15px;
            height: 100%;
            display: flex; flex-direction: column;
            position: relative;
            transition: all 0.3s ease;
        }
        .product-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 10px 25px rgba(15, 157, 88, 0.1);
            border-color: transparent;
        }
        .product-card.featured {
            border: 2px solid #FFC107;
            background: linear-gradient(to bottom, #fffbf0, #fff);
        }
        .card-badges {
            position: absolute; top: 12px; left: 12px; right: 12px;
            display: flex; justify-content: space-between; align-items: flex-start;
            z-index: 2; pointer-events: none;
        }
        .discount-tag {
            background: var(--price-red); color: white;
            padding: 4px 10px; border-radius: 8px; font-weight: 800; font-size: 0.8rem;
            box-shadow: 0 3px 8px rgba(211, 47, 47, 0.3);
        }
        .category-highlight {
            background: #e3f2fd; color: #1565c0;
            padding: 4px 12px; border-radius: 50px;
            font-size: 0.75rem; font-weight: 800;
            border: 1px solid #bbdefb;
            box-shadow: 0 2px 5px rgba(0,0,0,0.05);
        }
        .category-highlight.featured-cat {
            background: #fff8e1; color: #ff8f00; border-color: #ffecb3;
        }
        .img-container {
            text-align: center; margin-top: 30px; margin-bottom: 15px;
            display: flex; align-items: center; justify-content: center;
        }.img-container img{
                     border-radius: 22px;
                 }
        .card-img {
            max-height: 100%; max-width: 100%; object-fit: contain;
            transition: transform 0.3s;
        }
        .product-card:hover .card-img { transform: scale(1.08); }
        .card-title { font-weight: 800; font-size: 1.05rem; margin-bottom: 10px; color: var(--text-dark); }

        .basket-items {
            list-style: none; padding: 10px; margin: 0 0 10px 0;
            flex-grow: 1; background-color: #f0f0f0; border-radius: 10px;
        }
        .basket-items li {
            font-size: 0.8rem; color: #494848; margin-bottom: 5px;
            display: flex; align-items: center; gap: 6px;
        }
        .check-icon { color: var(--primary-color); font-size: 0.7rem; }
        .more-items-link {
            font-size: 0.75rem; color: var(--primary-color); font-weight: bold;
            text-decoration: none; display: block; margin-bottom: 10px; text-align: center;
        }
        .pricing-area {
            border-top: 1px dashed #eee; padding-top: 12px; margin-top: auto;
        }
        .price-row {
            display: flex; justify-content: space-between; align-items: center;
        }
        .old-price { text-decoration: line-through; color: #aaa; font-size: 0.85rem; }
        .final-price { font-size: 1.2rem; font-weight: 900; color: var(--text-dark); }
        .currency { font-size: 0.7rem; font-weight: normal; }
        .btn-add-mini {
            width: 40px; height: 40px; border-radius: 10px; border: none;
            background: var(--primary-color); color: white;
            display: flex; align-items: center; justify-content: center;
            transition: 0.2s; box-shadow: 0 4px 10px rgba(15, 157, 88, 0.2);
        }
        .btn-add-mini:hover { background: var(--primary-dark); transform: scale(1.1); }
        .featured-btn { background: var(--accent-color); box-shadow: 0 4px 10px rgba(255, 152, 0, 0.3); }
        /* --- Amazing Offers --- */
        .offers-wrapper {
            background: linear-gradient(135deg, #FF3D00 0%, #FF9100 100%);
            border-radius: 25px; padding: 40px; margin-top: 60px;
            position: relative; overflow: hidden;
            box-shadow: 0 15px 40px rgba(255, 61, 0, 0.3);
        }
        .offers-wrapper::before {
            content: ''; position: absolute; top: -50px; right: -50px; width: 200px; height: 200px;
            background: rgba(255,255,255,0.1); border-radius: 50%;
        }
        .timer-container {
            display: flex; gap: 8px; font-weight: bold; color: #FF3D00; font-family: sans-serif;
        }
        .timer-digit {
            background: white; padding: 5px 10px; border-radius: 8px; font-size: 1.1rem;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }
        .offer-card {
            background: white; border-radius: 18px; padding: 15px; text-align: center;
            border: 1px solid transparent; height: 100%; transition: 0.3s; position: relative;
        }
        .offer-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.15); }
        .amazing-badge {
            position: absolute; top: 0; right: 10px; background: #FF3D00; color: white;
            padding: 5px 8px; border-radius: 0 0 8px 8px; font-size: 0.75rem; font-weight: bold;
        }
        /* --- Market Section --- */
        .market-section { margin-top: 70px; }
        .category-row-header {
            display: flex; justify-content: space-between; align-items: center;
            margin-bottom: 20px; border-bottom: 2px solid #eee; padding-bottom: 10px;
        }
        .cat-title { font-weight: 800; font-size: 1.2rem; color: #333; position: relative; }
        .cat-title::after {
            content: ''; position: absolute; bottom: -12px; right: 0; width: 50px; height: 3px;
            background: var(--primary-color); border-radius: 2px;
        }

        .market-card {
            background: white; border: 1px solid #f0f0f0; border-radius: 15px; padding: 15px;
            text-align: center; transition: 0.3s; height: 100%; position: relative;
        }
        .market-card:hover {
            box-shadow: 0 10px 20px rgba(0,0,0,0.05); border-color: var(--primary-color);
        }
        .market-img {
            width: 100px; height: 100px; object-fit: contain; margin-bottom: 15px; transition: 0.3s;
        }
        .market-card:hover .market-img { transform: scale(1.1); }
        .add-btn-round {
            width: 35px; height: 35px; border-radius: 50%; background: #f5f5f5; color: #333;
            border: none; display: flex; align-items: center; justify-content: center;
            position: absolute; bottom: 15px; left: 15px; transition: 0.3s;
        }
        .add-btn-round:hover { background: var(--primary-color); color: white; }
        /* --- Support Section --- */
        .support-wrapper {
            background: linear-gradient(135deg, #0F9D58 0%, #00b09b 100%);
            border-radius: 20px; padding: 40px; margin-top: 60px; margin-bottom: 60px;
            color: white;
            box-shadow: 0 15px 30px rgba(15, 157, 88, 0.25);
        }
        /* --- Testimonials --- */
        .testimonial-carousel { margin: 60px 0; }
        .testimonial-card {
            background: white; padding: 25px; border-radius: 15px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.03); border-right: 4px solid var(--accent-color);
            height: 100%; display: flex; align-items: start; gap: 15px;
        }
        .user-avatar { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
        /* --- Footer --- */
        footer {
            background-color: #1b2631; color: #bdc3c7;
            padding-top: 70px; padding-bottom: 30px; margin-top: 80px;
        }
        .footer-logo { font-size: 2rem; color: white; font-weight: bold; margin-bottom: 20px; display: block;}
        .footer-title { color: white; font-weight: 800; margin-bottom: 25px; position: relative; padding-bottom: 10px; }
        .footer-title::after {
            content: ''; position: absolute; bottom: 0; right: 0; width: 40px; height: 3px; background-color: var(--accent-color);
        }
        .footer-about { line-height: 1.9; text-align: justify; font-size: 0.95rem; }
        .footer-highlight {
            color: var(--accent-color); font-weight: 900; font-size: 1.05rem;
            background: rgba(255, 152, 0, 0.1); padding: 0 5px; border-radius: 4px;
        }
        .footer-link { color: #aeb6bf; text-decoration: none; display: block; margin-bottom: 12px; transition: 0.2s; }
        .footer-link:hover { color: white; padding-right: 8px; }

        /* --- Shopping Cart Sidebar Styles --- */
        .cart-overlay {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0,0,0,0.5); z-index: 1060;
            display: none; opacity: 0; transition: opacity 0.3s;
        }
        .cart-overlay.active { display: block; opacity: 1; }

        .cart-sidebar {
            position: fixed; top: 0; left: -400px; /* باز شدن از چپ */
            width: 380px; height: 100%;
            background: white; z-index: 1070;
            transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex; flex-direction: column;
            box-shadow: 5px 0 25px rgba(0,0,0,0.15);
        }
        .cart-sidebar.active { left: 0; }

        .cart-header {
            padding: 20px; border-bottom: 1px solid #eee;
            display: flex; justify-content: space-between; align-items: center;
            background: var(--primary-color); color: white;
        }
        .cart-body {
            flex: 1; overflow-y: auto; padding: 20px;
        }
        .cart-item {
            display: flex;
            gap: 15px;
            margin-bottom: 9px;
            border-bottom: 1px solid #f5f5f5;
            padding: 6px;
            background: #f3f2f2;
            border-radius: 8px;
        }
        .cart-item-img {
            width: 70px; height: 70px; border-radius: 10px; object-fit: cover;
            border: 1px solid #eee;
            margin: auto;
        }
        .cart-item-details { flex: 1; }
        .cart-item-title { font-weight: bold; font-size: 0.9rem; margin-bottom: 5px; }
        .cart-item-price { color: var(--price-red); font-weight: 800; font-size: 0.9rem; }
        .cart-item-remove {
            color: #aaa; font-size: 0.8rem; cursor: pointer; transition: 0.2s;
            display: inline-flex; align-items: center; gap: 5px; margin-top: 5px;
        }
        .cart-item-remove:hover { color: var(--price-red); }

        .cart-footer {
            padding: 20px; border-top: 1px solid #eee;
            background: #f9f9f9;
        }
        .cart-total-row {
            display: flex; justify-content: space-between; font-weight: 900; font-size: 1.1rem;
            margin-bottom: 15px; color: var(--text-dark);
        }
        .btn-checkout {
            width: 100%; background: var(--primary-color); color: white;
            padding: 12px; border-radius: 12px; border: none; font-weight: bold;
            font-size: 1rem; transition: 0.2s;
        }
        .btn-checkout:hover { background: var(--primary-dark); }
        .btn-checkout.danger{
            background: var(--price-red);
        }

        /* Mobile Adjustments for Cart */
        @media (max-width: 480px) {
            .cart-sidebar { width: 100%; left: -100%; }
        }

        /* --- NEW: Back to Top Button --- */
        .back-to-top {
            position: fixed;
            bottom: 90px; /* بالاتر از منوی موبایل */
            left: 20px;
            width: 45px;
            height: 45px;
            background-color: var(--primary-color);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: 0 4px 15px rgba(15, 157, 88, 0.4);
            z-index: 1000;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            font-size: 1.2rem;
        }
        .back-to-top.show {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }
        .back-to-top:hover {
            background-color: var(--primary-dark);
            transform: translateY(-5px);
        }

        /* --- NEW: Mobile Bottom Navigation Bar --- */
        .mobile-bottom-nav {
            position: fixed;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 65px;
            background: white;
            display: none; /* پیش‌فرض مخفی */
            box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
            z-index: 1030;
            justify-content: space-around;
            align-items: center;
            border-top: 1px solid #eee;
        }
        @media (max-width: 767px) {
            .mobile-bottom-nav { display: flex; }
            body { padding-bottom: 65px; }
        }

        .nav-item-mobile {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: #888;
            text-decoration: none;
            font-size: 0.75rem;
            transition: 0.3s;
            width: 25%;
            height: 100%;
        }
        .nav-item-mobile i {
            font-size: 1.3rem;
            margin-bottom: 4px;
            transition: 0.3s;
        }
        .nav-item-mobile.active {
            color: var(--primary-color);
        }
        .nav-item-mobile.active i {
            transform: translateY(-3px);
        }
        .nav-item-mobile:hover {
            color: var(--primary-color);
            background-color: #f9f9f9;
        }
/* استایل‌های مربوط به منوی چسبان و دکمه‌ها */
.nav-actions-wrapper {
    opacity: 0; /* در ابتدا کاملاً شفاف و نامرئی */
    visibility: hidden; /* از دسترس خارج */
    transform: translateY(-10px); /* کمی بالا باشد برای افکت */
    transition: all 0.3s ease-in-out; /* انیمیشن نرم */
    pointer-events: none; /* جلوگیری از کلیک وقتی مخفی است */
}

/* وقتی کلاس .scrolled به منو اضافه شد، دکمه‌ها نمایش داده شوند */
.secondary-nav.scrolled .nav-actions-wrapper {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto; /* فعال کردن کلیک */
}

/* استایل‌های کلی منوی ثانویه */
.secondary-nav {
    z-index: 1020;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

/* افکت سایه بیشتر هنگام اسکرول */
.secondary-nav.scrolled {
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
.shop-card { border: none; border-radius: 16px; transition: all 0.3s ease; background: #fff; overflow: hidden; position: relative; height: 100%; }
.shop-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.08); }
.shop-card .card-img-top { border-radius: 16px 16px 0 0; object-fit: cover; transition: 0.5s; }
.shop-card:hover .card-img-top { transform: scale(1.05); }
.shop-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.05); opacity: 0; transition: 0.3s; pointer-events: none; }
.shop-card:hover .shop-overlay { opacity: 1; }
.filter-sidebar { background: #fff; border-radius: 16px; padding: 20px; box-shadow: 0 4px 12px rgba(0,0,0,0.03);z-index: 999 }
.filter-title { font-weight: 800; color: #333; margin-bottom: 15px; border-bottom: 2px solid #f0f0f0; padding-bottom: 10px; }
.category-item { display: flex; justify-content: space-between; padding: 8px 0; color: #666; transition: 0.2s; cursor: pointer; }
.category-item:hover, .category-item.active { color: var(--primary-color); padding-right: 5px; font-weight: bold; }
.price-tag { font-size: 0.9rem; font-weight: bold; color: var(--primary-color); }
.scrolling-wrapper { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 20px; padding-bottom: 20px; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; }
.scrolling-wrapper::-webkit-scrollbar { height: 8px; }
.scrolling-wrapper::-webkit-scrollbar-thumb { background: #ccc; border-radius: 10px; }
.scrolling-wrapper .shop-card { min-width: 250px; max-width: 250px; }
.product-gallery-thumb { transition: all 0.3s; border: 2px solid transparent; cursor: pointer; }
.product-gallery-thumb:hover, .product-gallery-thumb.active { border-color: var(--primary-color); transform: translateY(-3px); }
.feature-box { background: #ffffff; border-radius: 12px; padding: 15px; text-align: center; transition: 0.3s; }
.feature-box:hover { background: #e9ecef; transform: translateY(-5px); }
.feature-icon { font-size: 1.5rem; color: var(--primary-color); margin-bottom: 10px; }
.nav-tabs .nav-link { border: none; color: #6c757d; font-weight: bold; }
.nav-tabs .nav-link.active { color: var(--primary-color); border-bottom: 3px solid var(--primary-color); background: transparent; }
.quantity-input { width: 50px; text-align: center; border: none; background: transparent; font-weight: bold; }
.btn-modern { border-radius: 12px; padding: 12px 25px; font-weight: bold; transition: all 0.3s; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.btn-modern:hover { transform: translateY(-2px); box-shadow: 0 6px 12px rgba(0,0,0,0.15); }
/* =========================
   Cart & Checkout Styles
   ========================= */

/* General */
.shopping_cart_area,
.checkout_page_bg {
    background: #f8f9fa;
    padding: 40px 0;
}

.blog_details_bg {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

/* =========================
   Cart Table
   ========================= */

.table_desc .table {
    background: #fff;
    border: 1px solid #eee;
}

.table_desc th {
    background: #f1f1f1;
    font-weight: 600;
    text-align: center;
    vertical-align: middle;
}

.table_desc td {
    vertical-align: middle;
    text-align: center;
}

.product_thumb img {
    max-width: 80px;
    border-radius: 4px;
}

.product_name a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.product_name a:hover {
    color: #007bff;
}

/* Quantity input */
.product_quantity input {
    width: 70px;
    text-align: center;
}

/* Remove button */
.product_remove a {
    color: #dc3545;
    font-size: 18px;
}

.product_remove a:hover {
    color: #a71d2a;
}

/* Update Cart Button */
.cart_submit button {
    padding: 8px 20px;
    font-size: 14px;
}

/* =========================
   Coupon Area
   ========================= */

.coupon_area {
    margin-top: 30px;
}

.coupon_code {
    background: #ffffff;
    border: 1px solid #eee;
    padding: 12px 12px 12px 0px;
    border-radius: 6px;
}

.coupon_code h3 {
    font-size: 16px;
    margin-bottom: 15px;
}

.coupon_inner input {
    height: 40px;
}

/* =========================
   Cart Totals
   ========================= */
.cart_page{
    padding-left:12px;
    padding-right:12px;
}
.cart_page table{
    width: 100%;
}
.cart_page table tr{
    border-bottom: 1px solid #dbdbdb;
}
.cart_page table th{
    height: 40px;
}
.cart_subtotal {
    background: #fff;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 6px;
}

.cart_subtotal table {
    width: 100%;
}

.cart_subtotal th {
    text-align: left;
    font-weight: 600;
}

.cart_subtotal td {
    text-align: right;
}

.checkout_btn {
    margin-top: 15px;
}

.checkout_btn a {
    width: 100%;
    padding: 12px;
    font-size: 16px;
}

/* =========================
   Checkout Page
   ========================= */

.user-actions {
    margin-bottom: 20px;
}

.checkout_info {
    background: #fff;
    border: 1px solid #eee;
    padding: 20px;
    margin-top: 10px;
    border-radius: 6px;
    display: flex;
}
.checkout_info input{
    max-width: 230px;
}
.checkout_form {
    margin-top: 8px;
}

.checkout_form label {
    font-weight: 500;
    margin-bottom: 5px;
}

.checkout_form input,
.checkout_form select,
.checkout_form textarea {
    height: 42px;
    border-radius: 4px;
}

.checkout_form textarea {
    height: auto;
    min-height: 100px;
}

.checkout_form_left,
.checkout_form_right {
    background: #fff;
    padding: 25px;
    border: 1px solid #eee;
    border-radius: 6px;
}

/* =========================
   Order Table
   ========================= */

.order_table table {
    width: 100%;
    border: 1px solid #eee;
}

.order_table th {
    background: #f1f1f1;
    font-weight: 600;
}

.order_table td,
.order_table th {
    padding: 10px;
}

.order_total th {
    font-size: 16px;
}

.order_total td {
    font-weight: bold;
    color: #28a745;
}
.order_table tr{
    border-bottom:1px solid #e0e0e0;
}
/* =========================
   Payment Method
   ========================= */

.payment_method {
    margin-top: 20px;
}

.payment_method .card {
    border: 1px solid #eee;
    margin-bottom: 10px;
}

.payment_method label {
    font-weight: 500;
}

.order_button button {
    width: 100%;
    padding: 14px;
    font-size: 16px;
}

/* =========================
   RTL Support (important for Persian)
   ========================= */

body {
    direction: rtl;
    text-align: right;
}

.cart_subtotal th {
    text-align: right;
}

.cart_subtotal td {
    text-align: left;
}

.order_table th,
.order_table td {
    text-align: right;
}

/* =========================
   Small Helpers
   ========================= */

.mb-20 { margin-bottom: 20px; }
.fs-22 { font-size: 22px; }
.color0 { color: #28a745; }

