/* ============================================
   GLOBAL & HOMEPAGE STYLES
   ============================================ */

:root {
    /* Light Theme (Default) */
    --primary-color: #004a8e;
    /* Logo Royal Blue */
    --primary-dark: #003366;
    --secondary-color: #6c757d;
    --accent-color: #ffc107;
    --dark-color: #1a1a1a;
    --light-color: #f8f9fa;
    --white: #ffffff;
    --border-color: #dee2e6;
    --success-color: #198754;
    --danger-color: #e31e24;
    /* Logo Vibrant Red */

    --bg-body: #fcfcfc;
    --card-bg: #ffffff;
    --text-main: #212529;
    --text-muted: #6c757d;
    --nav-bg: #ffffff;
    --footer-bg: #1a1e21;
    --input-bg: #ffffff;
    --input-border: #dee2e6;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow-md: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --dir-factor: 1;
}

[data-theme="dark"] {
    --primary-color: #3d8bfd;
    /* Electric Blue for Dark Mode */
    --primary-dark: #004a8e;
    --secondary-color: #adb5bd;
    --dark-color: #f8f9fa;
    --light-color: #1a1c1e;
    --white: #121214;
    --border-color: #2d2f31;

    --bg-body: #0a0a0b;
    --card-bg: #16181a;
    --text-main: #e0e0e0;
    --text-muted: #8a8a8e;
    --nav-bg: #121214;
    --footer-bg: #050505;
    --input-bg: #1f2123;
    --input-border: #3d3f42;

    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.7);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.8);
}

[data-theme="dark"] .bg-white,
[data-theme="dark"] .bg-white-subtle,
[data-theme="dark"] .card,
[data-theme="dark"] .modal-content,
[data-theme="dark"] .product-card,
[data-theme="dark"] .product-card-lg,
[data-theme="dark"] .product-card-sm,
[data-theme="dark"] .product-card-suggest,
[data-theme="dark"] .tawfiqia-card,
[data-theme="dark"] .vehicle-search-card,
[data-theme="dark"] .category-real-card {
    background-color: var(--card-bg) !important;
}

[data-theme="dark"] .bg-light,
[data-theme="dark"] .bg-light-subtle,
[data-theme="dark"] .card-img-wrapper,
[data-theme="dark"] .product-card-suggest .suggest-img-wrapper,
[data-theme="dark"] .qty-btn {
    background-color: var(--light-color) !important;
}

[data-theme="dark"] .text-dark,
[data-theme="dark"] .navbar-light .navbar-brand,
[data-theme="dark"] .navbar-light .navbar-nav .nav-link,
[data-theme="dark"] .product-name,
[data-theme="dark"] .card-title,
[data-theme="dark"] .suggest-title,
[data-theme="dark"] .product-title-tawfiqia,
[data-theme="dark"] .section-title,
[data-theme="dark"] .category-title {
    color: var(--text-main) !important;
}

[data-theme="dark"] .text-muted,
[data-theme="dark"] .text-secondary {
    color: var(--text-muted) !important;
}

[data-theme="dark"] .border,
[data-theme="dark"] .border-bottom,
[data-theme="dark"] .border-top,
[data-theme="dark"] .border-start,
[data-theme="dark"] .border-end {
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
    background-color: var(--input-bg) !important;
    border-color: var(--input-border) !important;
    color: var(--text-main) !important;
}

[data-theme="dark"] .form-control::placeholder {
    color: var(--text-muted) !important;
    opacity: 0.6;
}

[data-theme="dark"] img:not(.brand-logo-img, .car-brand-img) {
    filter: brightness(0.85) contrast(1.1);
}

[data-theme="dark"] .brand-badge {
    background: var(--light-color) !important;
    color: var(--text-muted) !important;
}

[data-theme="dark"] .navbar {
    background-color: var(--nav-bg) !important;
}

[data-theme="dark"] body.bg-white {
    background-color: var(--bg-body) !important;
}

[data-theme="dark"] .category-overlay {
    background: rgba(30, 32, 35, 0.85) !important;
}

[data-theme="dark"] .modern-footer {
    background: var(--footer-bg) !important;
}

[data-theme="dark"] .newsletter-box {
    background: #0d0f10 !important;
}

[data-theme="dark"] .unique-top-banner {
    background: linear-gradient(90deg, #050505 0%, #1a1a1a 100%) !important;
}

[data-theme="dark"] ::-webkit-scrollbar-track {
    background: #0a0a0b;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: #333;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

[dir="rtl"] {
    --dir-factor: -1;
}

body {
    font-family: 'Cairo', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-body);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Tajawal', sans-serif;
    font-weight: 700;
    color: var(--text-main);
}

/* Unified Action Buttons for Header */
.action-btn-modern,
.theme-toggle {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--light-color);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    position: relative;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid var(--border-color);
    padding: 0;
    /* overflow: hidden; Removed to show badges */
}

[data-theme="dark"] .action-btn-modern,
[data-theme="dark"] .theme-toggle {
    background: #1f2123;
    border-color: #3d3f42;
}

.action-btn-modern:hover,
.theme-toggle:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

[data-theme="dark"] .theme-toggle {
    color: #ffc20a;
    /* Warning yellow for moon/sun */
}

.theme-toggle i {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}


/* Toggle Logic Icons */
.theme-toggle .bi-sun-fill {
    display: none;
}

[data-theme="dark"] .theme-toggle .bi-sun-fill {
    display: block;
}

[data-theme="dark"] .theme-toggle .bi-moon-stars-fill {
    display: none;
}

[data-theme="light"] .theme-toggle .bi-moon-stars-fill {
    display: block;
}

[data-theme="light"] .theme-toggle .bi-sun-fill {
    display: none;
}


a {
    transition: var(--transition);
    text-decoration: none;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* ============================================
   MODERN SUPER NAV
   ============================================ */

.unique-top-banner {
    background: var(--footer-bg);
    color: #fff;
    font-size: 0.8rem;
    padding: 6px 0;
    transition: var(--transition);
}

.modern-nav-wrapper {
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}


.modern-navbar {
    background: var(--nav-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
    padding: 5px 0;
    transition: var(--transition);
}

.header-main-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.nav-brand-modern {
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.nav-logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.modern-nav-wrapper.scrolled .nav-logo-img {
    height: 42px;
}


.nav-brand-modern span {
    color: var(--text-main);
    letter-spacing: -0.5px;
}

/* Elegant Search */
.nav-search-container {
    flex-grow: 1;
    max-width: 600px;
    position: relative;
}

.search-input-modern {
    background: var(--light-color) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 50px !important;
    padding-inline-start: 25px !important;
    padding-inline-end: 50px !important;
    padding-block: 12px !important;
    font-size: 0.95rem;
    transition: var(--transition) !important;
    color: var(--text-main) !important;
}

.search-input-modern:focus {
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1) !important;
    border-color: var(--primary-color) !important;
    background: var(--card-bg) !important;
}

.search-btn-modern {
    position: absolute;
    inset-inline-end: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.search-btn-modern:hover {
    background: var(--primary-dark);
    transform: translateY(-50%) scale(1.05);
}

/* Action Icons Wrapper */
.nav-actions-modern {
    display: flex;
    align-items: center;
    gap: 12px;
}

.badge-modern {
    position: absolute;
    top: -4px;
    inset-inline-start: -4px;
    /* Move to start (right in RTL) for better visibility */
    background: var(--danger-color);
    color: #fff;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--card-bg);
    /* Use themed card bg for border to blend better */
    font-weight: 700;
    z-index: 5;
}

/* Modern Dropdown Stylings */
.dropdown-menu-modern {
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    padding: 10px;
    margin-top: 15px !important;
    animation: dropdownFade 0.3s ease;
    min-width: 220px;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item-modern {
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
}

.dropdown-item-modern:hover {
    background: var(--light-color);
    color: var(--primary-color);
    transform: translateX(-5px);
}

[dir="rtl"] .dropdown-item-modern:hover {
    transform: translateX(5px);
}

.dropdown-item-modern i {
    font-size: 1.1rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.dropdown-item-modern:hover i {
    color: var(--primary-color);
}

.dropdown-divider-modern {
    height: 1px;
    background: var(--border-color);
    margin: 8px 10px;
}

/* User Profile Badge in Menu */
.user-menu-header {
    padding: 15px;
    background: var(--light-color);
    border-radius: 12px;
    margin-bottom: 8px;
    text-align: center;
}

/* Cart Dropdown specific */
.cart-dropdown-modern {
    min-width: 320px;
}

.cart-item-dummy {
    display: flex;
    gap: 12px;
    padding: 10px;
    border-radius: 12px;
    transition: var(--transition);
    align-items: center;
}

.cart-item-dummy:hover {
    background: var(--light-color);
}

.cart-item-img {
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 8px;
    object-fit: contain;
    padding: 5px;
    border: 1px solid var(--border-color);
}

.cart-item-info h6 {
    font-size: 0.9rem;
    margin: 0;
    color: var(--text-main);
}

.cart-item-info p {
    font-size: 0.8rem;
    margin: 0;
    color: var(--primary-color);
    font-weight: 700;
}

.cart-footer-modern {
    padding: 15px 10px 5px;
    border-top: 1px solid var(--border-color);
}

/* Force show badge for demo */
.badge-modern.demo-show {
    display: flex !important;
}



/* Lower Nav - Links */
.bottom-nav-modern {
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    padding: 10px 0;
    transition: var(--transition);
}

.nav-links-modern {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.nav-link-modern {
    color: var(--text-main);
    opacity: 0.8;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 10px 0;
    position: relative;
    transition: var(--transition);
}

.nav-link-modern:hover,
.nav-link-modern.active {
    opacity: 1;
    color: var(--primary-color);
}

.nav-link-modern::after {
    content: '';
    position: absolute;
    bottom: 0;
    inset-inline: 0;
    margin-inline: auto;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px 2px 0 0;
    transition: var(--transition);
}

.nav-link-modern:hover::after,
.nav-link-modern.active::after {
    width: 20px;
}

/* Mobile Toggle */
.mobile-toggle-btn {
    display: none;
    font-size: 1.8rem;
    color: var(--text-main);
    cursor: pointer;
}

@media (max-width: 991px) {
    .nav-search-container {
        display: none;
    }

    .bottom-nav-modern {
        display: none;
    }

    .mobile-toggle-btn {
        display: block;
    }
}


/* ============================================
   HERO SECTION
   ============================================ */

.hero-slider .carousel-item {
    height: 600px;
    position: relative;
}

.hero-slide {
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    inset-inline-end: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.1), transparent);
    z-index: 1;
}

.hero-slide .container {
    position: relative;
    z-index: 2;
}

.hero-slide h1 {
    font-size: 3.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.8s ease-out;
}

.hero-slide h3 {
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-slide p {
    font-size: 1.2rem;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.hero-slide .btn {
    border-radius: 50px;
    padding: 0.8rem 2rem;
    font-weight: 700;
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-slide img {
    max-height: 450px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   SEARCH WIDGET
   ============================================ */

.vehicle-search-section {
    position: relative;
    z-index: 10;
    margin-top: -60px;
}

.vehicle-search-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.vehicle-search-card h2 {
    color: var(--dark-color);
    font-size: 1.8rem;
}

.vehicle-search-card .form-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.vehicle-search-card .form-select {
    padding: 0.8rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    font-weight: 500;
    background-color: #fcfcfc;
    transition: var(--transition);
}

.vehicle-search-card .form-select:focus {
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
    border-color: var(--primary-color);
}

.vehicle-search-card .btn-primary {
    border-radius: var(--radius-md);
    padding: 0.8rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.3);
}

/* ============================================
   CATEGORIES SECTION
   ============================================ */

.category-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    inset-inline-end: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: rgba(13, 110, 253, 0.3);
}

.category-card:hover::before {
    opacity: 1;
}

.category-icon {
    width: 80px;
    height: 80px;
    background: rgba(13, 110, 253, 0.08);
    /* Brighter, subtle background */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary-color);
    font-size: 2.5rem;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.category-card:hover .category-icon {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 20px rgba(13, 110, 253, 0.3);
}

.category-card h5 {
    position: relative;
    z-index: 1;
    font-weight: 700;
}

.category-card p {
    position: relative;
    z-index: 1;
}


/* ============================================
   PRODUCT CARDS
   ============================================ */

.product-card {
    border-radius: var(--radius-lg);
    padding: 1.2rem;
    position: relative;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.category-listing {
    margin-bottom: 3rem;
}

.product-card img {
    height: 220px;
    object-fit: contain;
    width: 100%;
    margin-bottom: 1.5rem;
    transition: var(--transition);
    padding: 1rem;
}

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

.brand-badge {
    position: absolute;
    top: 15px;
    inset-inline-end: 15px;
    background: #f1f3f5;
    color: var(--secondary-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
}

.product-badge {
    position: absolute;
    top: 15px;
    inset-inline-start: 15px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--white);
    z-index: 2;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.product-badge.new {
    background: var(--success-color);
}

.product-badge.sale {
    background: var(--danger-color);
}

.product-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    height: 3em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    color: var(--dark-color);
    transition: var(--transition);
}

.product-card:hover .product-name {
    color: var(--primary-color);
}

.product-code {
    font-size: 0.85rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.product-specs {
    margin-bottom: 1rem;
    flex-grow: 1;
}

.product-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-color);
}

.product-card .btn-primary {
    border-radius: 50px;
    padding: 0.5rem 1.2rem;
    font-weight: 600;
    opacity: 0.9;
    transition: var(--transition);
}

.product-card:hover .btn-primary {
    opacity: 1;
    transform: scale(1.05);
}


/* ============================================
   FEATURED PRODUCTS
   ============================================ */

.featured-products .section-title {
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.featured-products .title-accent {
    position: absolute;
    bottom: 0;
    left: 20%;
    right: 20%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    border-radius: 2px;
}

.category-listing h3 i {
    color: var(--primary-color);
}

.hover-translate {
    transition: var(--transition);
}

.hover-translate:hover {
    transform: translateX(-5px);
}

[dir="rtl"] .hover-translate:hover {
    transform: translateX(5px);
}

.transition-all {
    transition: var(--transition);
}


/* ============================================
   PROMOTIONAL BANNERS
   ============================================ */

.promo-banner {
    border-radius: var(--radius-lg);
    padding: 3rem;
    position: relative;
    overflow: hidden;
    height: 280px;
    display: flex;
    align-items: center;
    border: none;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.promo-banner:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.promo-content {
    position: relative;
    z-index: 2;
    width: 65%;
    color: var(--text-main);
}

.promo-image {
    position: absolute;
    inset-inline-start: -30px;
    bottom: -30px;
    font-size: 12rem;
    color: rgba(255, 255, 255, 0.4);
    transform: rotate(-15deg);
    transition: var(--transition);
}

.promo-banner:hover .promo-image {
    transform: rotate(0deg) scale(1.1);
    color: rgba(255, 255, 255, 0.5);
}

.promo-tag {
    background: var(--white);
    color: var(--dark-color);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 800;
    display: inline-block;
    margin-bottom: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.promo-banner .btn {
    border-radius: 50px;
    padding: 0.6rem 2rem;
    font-weight: 700;
    margin-top: 1rem;
}


/* ============================================
   BRANDS SECTION
   ============================================ */

.brand-card {
    background: var(--white);
    padding: 2rem 1rem;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    cursor: pointer;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.brand-logo {
    font-weight: 900;
    font-size: 1.4rem;
    color: #ced4da;
    transition: var(--transition);
    letter-spacing: 1px;
}

.brand-card:hover .brand-logo {
    color: var(--dark-color);
    transform: scale(1.1);
}


/* ============================================
   WHY CHOOSE US
   ============================================ */

.feature-box {
    background: var(--white);
    padding: 2.5rem 1.5rem;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: rgba(13, 110, 253, 0.1);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.feature-box:hover .feature-icon {
    background: var(--primary-color);
    color: var(--white);
    transform: rotateY(180deg);
}


/* ============================================
   NEWSLETTER
   ============================================ */

.newsletter-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: -50%;
    inset-inline-end: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.newsletter-form .form-control {
    border: none;
    border-start-start-radius: 50px;
    border-end-start-radius: 50px;
    padding: 1rem 1.5rem;
}

.newsletter-form .btn {
    border-start-end-radius: 50px;
    border-end-end-radius: 50px;
}


/* ============================================
   FOOTER
   ============================================ */

footer {
    background-color: var(--footer-bg) !important;
    font-size: 0.95rem;
}

footer h5,
footer h6 {
    color: var(--white);
    font-weight: 700;
}

footer a {
    transition: var(--transition);
}

footer a:hover {
    color: var(--primary-color) !important;
    padding-inline-start: 8px;
    /* Move text slightly left on hover in RTL */
}

footer .bi {
    transition: var(--transition);
    vertical-align: middle;
}

footer .social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-inline-start: 0.5rem;
    transition: var(--transition);
}

footer .social-link:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* Back to Top - Modern Design */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    inset-inline-end: 2rem;
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    border: none;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    font-size: 1.25rem;
}

.back-to-top::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.back-to-top:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.back-to-top:hover::before {
    opacity: 1;
}

.back-to-top:active {
    transform: translateY(-6px) scale(0.98);
}

/* Smooth icon animation */
.back-to-top i {
    transition: transform 0.3s ease;
}

.back-to-top:hover i {
    transform: translateY(-3px);
}

/* Optional: Ripple effect on click */
.back-to-top::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    transform: scale(0);
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.back-to-top:active::after {
    transform: scale(1.5);
    opacity: 1;
    transition: transform 0s, opacity 0s;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 1.5rem;
        inset-inline-end: 1.5rem;
        width: 3rem;
        height: 3rem;
        font-size: 1.1rem;
    }
}


/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 991px) {
    .vehicle-search-card {
        padding: 2rem;
    }

    .hero-slider .carousel-item {
        height: 500px;
    }
}

@media (max-width: 768px) {
    .navbar-collapse {
        background: var(--white);
        padding: 1rem;
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-lg);
        margin-top: 1rem;
    }

    .hero-slider .carousel-item {
        height: 400px;
    }

    .hero-slide h1 {
        font-size: 2.2rem;
    }

    .vehicle-search-section {
        margin-top: 0;
        padding-top: 2rem !important;
    }

    .vehicle-search-card {
        margin-top: 0;
        padding: 1.5rem;
    }

    .promo-banner {
        height: auto;
        min-height: 200px;
    }
}


/* ============================================
   PRODUCT DETAIL PAGE STYLES (Existing)
   ============================================ */

/* Product Images */
.product-images {
    position: relative;
}

.main-image-container {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.main-image-container img {
    max-width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
}

.product-badge-detail {
    position: absolute;
    top: 20px;
    inset-inline-end: 20px;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    z-index: 10;
}

.product-badge-detail.new {
    background: var(--success-color);
    color: var(--white);
}

.wishlist-btn {
    position: absolute;
    top: 20px;
    inset-inline-start: 20px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--secondary-color);
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.wishlist-btn:hover,
.wishlist-btn.active {
    background: var(--danger-color);
    border-color: var(--danger-color);
    color: var(--white);
    transform: scale(1.1);
}

.thumbnail-images {
    overflow-x: auto;
    padding: 10px 0;
}

.thumbnail-images img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.thumbnail-images img.active,
.thumbnail-images img:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

/* Product Detail Info */
.product-detail-info {
    position: sticky;
    top: 100px;
}

.brand-tag {
    background: #e9ecef;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-block;
    margin-inline-end: 0.5rem;
    color: var(--dark-color);
}

.availability-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
}

.availability-badge.in-stock {
    background: rgba(25, 135, 84, 0.1);
    color: var(--success-color);
}

.availability-badge.out-of-stock {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
}

.product-title {
    font-weight: 800;
    line-height: 1.3;
}

/* Product Rating */
.product-rating .stars {
    font-size: 1.1rem;
}

.rating-text {
    font-size: 1.1rem;
    font-weight: 700;
}

/* Product Meta */
.product-meta strong {
    font-weight: 700;
    color: var(--dark-color);
}

/* Price Section */
.product-price-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.current-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
}

.old-price {
    font-size: 1.2rem;
    color: var(--secondary-color);
    text-decoration: line-through;
}

.discount-badge {
    background: var(--danger-color);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}

.installment-info {
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* Compatibility */
.compatibility-section {
    background: var(--white);
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: var(--radius-md);
}

.compatibility-tags .badge {
    margin: 0.25rem;
    padding: 0.5rem 0.8rem;
    font-weight: 600;
}

/* Quantity Selector */
.quantity-selector {
    display: flex;
    align-items: center;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.qty-btn {
    background: #f8f9fa;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    min-width: 45px;
}

.qty-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

.qty-input {
    border: none;
    width: 60px;
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.qty-input:focus {
    outline: none;
}

/* Product Features */
.product-features {
    background: var(--white);
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: var(--radius-md);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    font-weight: 500;
}

.feature-item i {
    font-size: 1.3rem;
}

/* Payment Methods */
.payment-icons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.payment-icons img {
    height: 30px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.25rem;
    background: var(--white);
}

/* Product Tabs */
.product-tabs {
    border-bottom: 2px solid var(--border-color);
}

.product-tabs .nav-link {
    color: var(--dark-color);
    font-weight: 600;
    padding: 1rem 1.5rem;
    border: none;
    background: transparent;
    position: relative;
}

.product-tabs .nav-link.active {
    color: var(--primary-color);
    background: transparent;
}

.product-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    inset-inline-start: 0;
    inset-inline-end: 0;
    height: 3px;
    background: var(--primary-color);
}

.product-tabs .nav-link .badge {
    margin-inline-start: 0.5rem;
}

/* Product Description */
.product-description-list {
    list-style: none;
    padding: 0;
}

.product-description-list li {
    padding: 0.5rem 0;
    padding-inline-start: 1.8rem;
    position: relative;
    font-weight: 500;
}

.product-description-list li::before {
    content: '\F633';
    /* Check circle fill */
    font-family: 'bootstrap-icons';
    position: absolute;
    inset-inline-start: 0;
    color: var(--success-color);
    font-weight: 700;
}

/* Specifications Table */
.specifications-table {
    text-align: start;
}

.specifications-table th {
    background: #f8f9fa;
    font-weight: 700;
    width: 30%;
}

/* Compatibility List */
.compatibility-list {
    max-height: 400px;
    overflow-y: auto;
}

.compatibility-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--white);
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
}

.compatibility-item i {
    font-size: 1.3rem;
}

/* Reviews */
.reviews-summary {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: var(--radius-lg);
}

.overall-rating {
    padding: 1rem;
}

.rating-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    display: block;
    line-height: 1;
}

.overall-rating .stars {
    font-size: 1.5rem;
    margin: 10px 0;
}

.rating-breakdown {
    padding: 1rem;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.rating-bar span:first-child {
    min-width: 80px;
    font-size: 0.9rem;
}

.rating-bar .progress {
    flex: 1;
    height: 8px;
    border-radius: 10px;
    background-color: #e9ecef;
}

.rating-bar span:last-child {
    min-width: 30px;
    text-align: end;
    font-weight: 600;
}

/* Individual Reviews */
.reviews-list {
    margin-top: 2rem;
}

.review-item {
    background: var(--white);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.reviewer-info {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: var(--shadow-sm);
}

.review-stars {
    font-size: 0.9rem;
}

.review-date {
    font-size: 0.85rem;
}

.review-content p {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.review-car-info {
    background: #f8f9fa;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--secondary-color);
    font-weight: 500;
}

/* Responsive Product Detail */
@media (max-width: 991px) {
    .product-detail-info {
        position: static;
        margin-top: 2rem;
    }

    .thumbnail-images {
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .current-price {
        font-size: 1.5rem;
    }

    .thumbnail-images img {
        width: 70px;
        height: 70px;
    }

    .rating-breakdown {
        padding: 0;
        margin-top: 1rem;
    }
}

/* ============================================
   MAINTENANCE CENTERS SECTION
   ============================================ */

.maintenance-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    height: 100%;
    transition: var(--transition);
}

.maintenance-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.card-img-top-wrapper {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.maintenance-card:hover .card-img-top {
    transform: scale(1.05);
}

.logo-overlay {
    position: absolute;
    bottom: -20px;
    inset-inline-start: 20px;
    width: 60px;
    height: 60px;
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 5px;
    box-shadow: var(--shadow-small);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    z-index: 2;
}

.logo-overlay img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.maintenance-card .card-body {
    padding-top: 25px !important;
}

.bg-outline-info {
    background: transparent;
    color: #0dcaf0;
    border: 1px solid #0dcaf0;
}

.brands-mini {
    display: flex;
    gap: 5px;
}

.brands-mini img {
    width: 25px;
    height: 25px;
    object-fit: contain;
    border: 1px solid var(--border-color);
    padding: 2px;
    border-radius: 50%;
    background: var(--white);
}

/* ============================================
   SPECIAL OFFERS SECTION
   ============================================ */

.offer-card {
    border-radius: var(--radius-lg);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-sm);
    min-height: 200px;
    /* Ensure height for stacked cards */
}

.offer-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.decorative-tire {
    animation: rotate 60s linear infinite;
}


/* ============================================
   PRODUCTS PAGE (CATALOG)
   ============================================ */

/* Small Card (Horizontal Scroll) */
.product-card-sm {
    transition: var(--transition);
}

.product-card-sm:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md) !important;
}

.brand-card {
    position: relative;
}

.stock-badge {
    position: absolute;
    top: 5px;
    left: 5px;
    /* For LTR, use 'right: 5px;' for RTL if needed */
    font-size: 0.65rem;
    padding: 0.25rem 0.5rem;
    z-index: 10;
    border-radius: 12px;
}


.scrolling-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.scrolling-wrapper::-webkit-scrollbar {
    height: 6px;
}

.scrolling-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.scrolling-wrapper::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

/* Large Card (Grid) */
.product-card-lg {
    transition: var(--transition);
    overflow: hidden;
}

.product-card-lg:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg) !important;
}

.product-card-lg img {
    height: 180px;
    object-fit: contain;
    transition: var(--transition);
}

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

.cart-btn-lg {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: 1px solid #eee;
}

.cart-btn-lg:hover {
    background-color: var(--primary-color) !important;
    color: var(--white) !important;
    border-color: var(--primary-color);
}

.section-title {
    position: relative;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    inset-inline-start: 0;
    width: 50px;
    height: 2px;
    background: var(--danger-color);
}

/* Product Grid Fix */
.product-card-lg .card-title {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-main);
}

/* ============================================
   TAWFIQIA PRODUCTS PAGE STYLE
   ============================================ */

.tawfiqia-card {
    transition: var(--transition);
    padding: 1rem;
    position: relative;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
}

.tawfiqia-card:hover {
    border-color: var(--border-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.card-img-wrapper {
    position: relative;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-img-wrapper img {
    max-height: 150px;
    width: auto;
    max-width: 100%;
}

.hover-actions {
    position: absolute;
    top: 10px;
    inset-inline-start: 10px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    transform: translateX(10px);
    transition: var(--transition);
}

.tawfiqia-card:hover .hover-actions {
    opacity: 1;
    transform: translateX(0);
}

.product-title-tawfiqia {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-main);
    min-height: 3rem;
    font-weight: 500;
}

.rating-row {
    font-size: 0.8rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
    flex-direction: row-reverse;
    /* Force ltr style display for (0)0.00 */
}

/* Custom form checks for filters */
.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-input[type="radio"] {
    border-radius: 50%;
    width: 1.2em;
    height: 1.2em;
    margin-inline-end: 0.5em;
    /* RTL spacing */
    float: right;
    /* RTL align */
}

/* Ensure navbar in products page overrides or matches seamlessly */
.cursor-pointer {
    cursor: pointer;
}


/* ============================================
   UNIQUE TOP BANNER
   ============================================ */

.unique-top-banner {
    background: linear-gradient(90deg, #1a1a1a 0%, #2c3e50 100%);
    color: #ffffff;
    font-size: 0.85rem;
    padding: 8px 0;
    border-bottom: 2px solid var(--danger-color);
    position: relative;
    overflow: hidden;
}

.unique-top-banner::before {
    content: '';
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    bottom: 0;
    background: var(--danger-color);
}

.unique-top-banner i {
    color: var(--danger-color);
    margin-inline-end: 5px;
    font-size: 1rem;
    vertical-align: middle;
}

.unique-top-banner span {
    display: inline-block;
    vertical-align: middle;
    font-weight: 500;
}

.unique-top-banner .separator {
    display: inline-block;
    margin: 0 15px;
    color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .unique-top-banner .d-flex {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }

    .unique-top-banner span {
        font-size: 0.3rem;
    }

    .unique-top-banner .separator {
        display: none;
    }
}

/* ============================================
   CAR BRANDS SECTION (NEW)
   ============================================ */
.car-brand-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    overflow: hidden;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.car-brand-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.car-brand-img {
    height: 80px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    margin-bottom: 1rem;
    /* filter: grayscale(100%); */
    transition: var(--transition);
    opacity: 0.7;
}

.car-brand-card:hover .car-brand-img {
    /* filter: grayscale(0%); */
    opacity: 1;
    transform: scale(1.1);
}

.car-brand-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--dark-color);
    margin: 0;
}

/* Update Existing Parts Brands to allow images */
.brand-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 1rem;
    display: flex;
    /* Flex to center image */
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
    height: 100px;
    transition: var(--transition);
}

.brand-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.brand-logo-img {
    max-height: 60px;
    max-width: 100%;
    object-fit: contain;
    /* filter: grayscale(100%); */
    opacity: 0.6;
    transition: var(--transition);
}

.brand-card:hover .brand-logo-img {
    /* filter: grayscale(0%); */
    opacity: 1;
}


/* ============================================
   UNIFIED PROFESSIONAL CARD STYLES
   ============================================ */

/* Common Card Base */
.product-card,
.product-card-lg,
.product-card-sm,
.tawfiqia-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.product-card:hover,
.product-card-lg:hover,
.product-card-sm:hover,
.tawfiqia-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(13, 110, 253, 0.3);
}

/* Image Areas */
.product-card img,
.product-card-lg img,
.product-card-sm img {
    width: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
    margin: 0 auto;
    display: block;
}

/* Specific heights for different card types */
.product-card img {
    height: 200px;
    padding: 20px;
}

.product-card-lg img {
    height: 180px;
    padding: 15px;
}

.product-card-sm img {
    height: 100px;
    padding: 10px;
}

.product-card:hover img,
.product-card-lg:hover img,
.product-card-sm:hover img {
    transform: scale(1.08);
}

/* Header / Badges Area */
.card-header-actions {
    position: absolute;
    top: 15px;
    inset-inline-end: 15px;
    inset-inline-start: 15px;
    display: flex;
    justify-content: space-between;
    z-index: 10;
    pointer-events: none;
    /* Allow clicking through to image */
}

.card-header-actions .btn,
.card-header-actions .badge {
    pointer-events: auto;
}

/* Content Area */
.product-card-body,
.product-card .product-info,
.product-card-lg .card-body,
.product-card-sm .card-body {
    padding: 1.25rem;
    background: var(--card-bg);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--border-color);
    text-align: start;
}

.product-card-sm .card-body {
    padding: 0.8rem;
}

/* Titles */
.product-name,
.product-card-lg .card-title,
.product-card-sm .card-title {
    color: var(--text-main);
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
    font-size: 1rem;

    /* Truncate to 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 3em;
}

.product-card-sm .card-title {
    font-size: 0.9rem;
    height: 2.7em;
}

.product-card:hover .product-name,
.product-card-lg:hover .card-title {
    color: var(--primary-color);
}

/* Prices */
.product-price,
.product-card-lg h5 {
    color: var(--danger-color);
    font-weight: 800;
    font-size: 1.2rem;
    margin-top: auto;
}

.product-card-sm h6.text-primary {
    font-size: 1rem;
    color: var(--danger-color) !important;
    /* Force red for consistency */
}

.text-primary {
    color: var(--primary-color) !important;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #fff !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    box-shadow: 0 5px 15px rgba(0, 74, 142, 0.3) !important;
}

.btn-outline-primary {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #fff !important;
}

/* Add to Cart Buttons */
.btn-primary,
.cart-btn-lg,
.product-card-sm .btn {
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    overflow: hidden;
}

.cart-btn-lg {
    width: 45px;
    height: 45px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: #f1f3f5;
    /* Light gray default */
    color: var(--dark-color);
}

.product-card-lg:hover .cart-btn-lg {
    background: var(--primary-color);
    color: #fff !important;
    transform: rotate(5deg);
}

/* Brand Small Text */
.text-muted.small {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #adb5bd !important;
    margin-bottom: 8px !important;
}


/* ============================================
   MODERN GLASS CATEGORY CARDS
   ============================================ */

.category-real-card {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    height: 280px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    border: none;
    background: #000;
    /* Fallback for image load */
    cursor: pointer;
}

.category-real-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.category-img-wrapper {
    width: 100%;
    height: 100%;
}

.category-real-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
    opacity: 0.9;
}

.category-real-card:hover img {
    transform: scale(1.15);
    opacity: 1;
}

/* Glassmorphism Overlay - Floating Card Style */
.category-overlay {
    position: absolute;
    bottom: 0;
    inset-inline-end: 0;
    inset-inline-start: 0;
    margin: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.85);
    /* Slightly clearer white */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 2;
    transition: all 0.4s ease;
}

.category-real-card:hover .category-overlay {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: #fff;
}

.category-title {
    font-weight: 800;
    font-size: 1.15rem;
    margin: 0;
    color: #1a1a1a;
    text-shadow: none;
    transform: none;
    letter-spacing: -0.5px;
}

.category-subtitle {
    font-size: 0.85rem;
    color: #666;
    font-weight: 600;
    margin-top: 8px;

    max-height: 0;
    opacity: 0;
    overflow: hidden;

    transition: max-height 0.4s ease, opacity 0.3s ease;
}

/* يظهر عند hover */
.category-real-card:hover .category-subtitle {
    max-height: 40px;
    /* كفاية للنص */
    opacity: 1;
}


/* Modern Badge */
.category-badge-icon {
    position: absolute;
    top: 16px;
    inset-inline-start: 16px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    /* Soft square */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.25rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 3;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.category-real-card:hover .category-badge-icon {
    background: var(--primary-color);
    color: #fff;
    transform: rotate(10deg) scale(1.1);
    border-radius: 50%;
    /* Morph to circle */
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.4);
}

/* ============================================
   MODERN FOOTER STYLES
   ============================================ */

.modern-footer {
    background: #111;
    color: #e0e0e0;
    font-family: 'Cairo', sans-serif;
    position: relative;
    overflow: hidden;
    padding-top: 5rem;
    padding-bottom: 2rem;
}

.modern-footer::before {
    content: '';
    position: absolute;
    top: 0;
    inset-inline-end: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--danger-color));
}

.footer-widget-title {
    color: #fff;
    font-weight: 800;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    inset-inline-start: 0;
    width: 40px;
    height: 3px;
    background: var(--danger-color);
    border-radius: 2px;
}

.footer-desc {
    color: #a0a0a0;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.footer-social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-radius: 50%;
    margin-inline-end: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #a0a0a0;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-links a:hover {
    color: var(--white);
    transform: translateX(calc(var(--dir-factor) * 5px));
}

.footer-links a::before {
    content: "\F135";
    /* Bootstrap Icon Chevron Left */
    font-family: "bootstrap-icons";
    font-size: 0.75rem;
    margin-inline-end: 8px;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-links a:hover::before {
    opacity: 1;
    margin-inline-end: 12px;
    color: var(--danger-color);
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.footer-contact-icon {
    min-width: 40px;
    height: 40px;
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-inline-end: 15px;
    font-size: 1.1rem;
}

.footer-contact-info h6 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 4px;
    font-size: 0.95rem;
}

.footer-contact-info p,
.footer-contact-info a {
    color: #a0a0a0;
    margin: 0;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-contact-info a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 3rem;
    padding-top: 2rem;
}

.payment-methods img {
    height: 25px;
    margin-inline-end: 10px;
    opacity: 0.7;
    transition: opacity 0.3s;
    filter: grayscale(100%);
}

.payment-methods img:hover {
    opacity: 1;
    filter: grayscale(0%);
}

.newsletter-box {
    background: #1a1a1a;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid #333;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.newsletter-box::after {
    content: "\F32F";
    font-family: "bootstrap-icons";
    position: absolute;
    top: -20px;
    inset-inline-end: -20px;
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.02);
    transform: rotate(15deg);
}

.newsletter-input-group .form-control {
    background: #2a2a2a;
    border: 1px solid #333;
    color: #fff;
    padding: 12px 20px;
    border-start-start-radius: 50px !important;
    border-end-start-radius: 50px !important;
}

.newsletter-input-group .form-control:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

.newsletter-input-group .btn {
    border-start-end-radius: 50px !important;
    border-end-end-radius: 50px !important;
    padding-inline-end: 25px;
    padding-inline-start: 25px;
}

/* ============================================
   PROFESSIONAL FLASH SALE TOAST
   ============================================ */

.flash-sale-toast {
    position: fixed;
    top: 30px;
    /* Moved to top */
    inset-inline: 0;
    margin-inline: auto;
    transform: translateY(-100px);
    /* Centered and started off-screen top */
    width: 420px;
    /* Slightly wider for inputs */
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    padding: 20px;
    z-index: 9999;
    font-family: 'Cairo', sans-serif;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-top: 4px solid var(--danger-color);
    /* Changed to top border */
}

.flash-sale-toast.show {
    transform: translateY(0);
    /* Drop down to position */
    opacity: 1;
    visibility: visible;
}

.flash-toast-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.flash-badge {
    background: var(--danger-color);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    animation: pulse-red 2s infinite;
    display: flex;
    align-items: center;
    gap: 5px;
}

.clean-close-btn {
    background: transparent;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
    line-height: 1;
    transition: color 0.3s;
}

.clean-close-btn:hover {
    color: #fff;
}

.flash-content {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 15px;
}

.flash-img {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    object-fit: cover;
    background: var(--dark-color);
    /* Just a hint of contrast */
    padding: 5px;
}

.flash-info h5 {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1.3;
}

.flash-timer {
    display: flex;
    gap: 10px;
    margin-top: 8px;
    font-size: 0.9rem;
    color: #bbb;
    font-family: monospace;
    /* For fixed width numbers */
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 6px;
    width: fit-content;
}

.timer-unit span {
    color: var(--primary-color);
    font-weight: bold;
}

/* Flash Inputs */
.flash-input-group {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.flash-input {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 12px;
    color: #fff;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s;
}

.flash-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--danger-color);
}

.flash-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.flash-action {
    width: auto;
}

.btn-flash {
    /* width: 100%; Removed full width */
    background: linear-gradient(45deg, var(--danger-color), #ff4757);
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-flash:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.4);
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

/* Mobile Responsive */
@media (max-width: 576px) {
    .flash-sale-toast {
        inset-inline-end: 20px;
        inset-inline-start: 20px;
        width: auto;
        top: 20px;
        transform: translateY(-150%);
    }

    .flash-sale-toast.show {
        transform: translateY(0);
    }
}

/* Flash Toast Buttons */
.flash-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    width: 100%;
}

.btn-flash-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #eee;
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
}

.btn-flash-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff;
    text-decoration: none;
}

.btn-flash {
    flex: 1;
    /* Make both buttons equal width */
}

/* ============================================
   SCROLLABLE SUGGESTIONS
   ============================================ */
.scrolling-wrapper-flexbox {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    gap: 1.5rem;
    padding: 1rem 0;
    /* Add vertical padding for shadows */
    margin-bottom: 2rem;
    scrollbar-width: thin;
    scrollbar-color: var(--danger-color) transparent;
}

.scrolling-wrapper-flexbox::-webkit-scrollbar {
    height: 8px;
}

.scrolling-wrapper-flexbox::-webkit-scrollbar-track {
    background: var(--light-color);
    border-radius: 4px;
}

.scrolling-wrapper-flexbox::-webkit-scrollbar-thumb {
    background: var(--danger-color);
    border-radius: 4px;
}

.scrolling-wrapper-flexbox .suggestion-card-wrapper {
    flex: 0 0 auto;
    width: 250px;
    /* Fixed width for consistent cards */
}

/* Professional Card - Small Variant */
.product-card-suggest {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card-suggest:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.1);
}

.suggest-img-wrapper {
    background: var(--light-color);
    padding: 1.5rem;
    text-align: center;
    position: relative;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.suggest-img-wrapper img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.suggest-badge {
    position: absolute;
    top: 10px;
    inset-inline-start: 10px;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
}

.suggest-info {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: end;
}

.suggest-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8em;
}

.suggest-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

.suggest-price {
    color: var(--danger-color);
    font-weight: 800;
    font-size: 1.1rem;
}

.btn-suggest-add {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--danger-color);
    color: var(--danger-color);
    background: transparent;
    transition: all 0.3s;
}

.btn-suggest-add:hover {
    background: var(--danger-color);
    color: #fff;
    transform: rotate(90deg);
}

/* ============================================
   AUTH PAGES (LOGIN & REGISTER)
   ============================================ */

.auth-wrapper {
    min-height: calc(100vh - 400px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    background: var(--bg-body);
}

.auth-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 500px;
    padding: 40px;
    transition: var(--transition);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: inline-block;
    filter: drop-shadow(0 0 10px rgba(0, 74, 142, 0.2));
}

.auth-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}


.auth-title {
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 10px;
}

.auth-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.auth-form .form-label {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-main);
    margin-bottom: 8px;
}

.auth-form .form-control {
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: var(--radius-md);
    padding: 12px 15px;
    color: var(--text-main);
    transition: var(--transition);
}

.auth-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(0, 74, 142, 0.1);
    background: var(--card-bg);
}

.auth-btn {
    width: 100%;
    padding: 14px;
    font-weight: 800;
    border-radius: var(--radius-md);
    margin-top: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.social-auth {
    margin-top: 30px;
    text-align: center;
}

.social-divider {
    position: relative;
    margin-bottom: 25px;
}

.social-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
    z-index: 1;
}

.social-divider span {
    position: relative;
    background: var(--card-bg);
    padding: 0 15px;
    color: var(--text-muted);
    font-size: 0.85rem;
    z-index: 2;
}

.social-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--card-bg);
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.social-btn:hover {
    background: var(--light-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

[data-theme="dark"] .social-btn:hover {
    background: #1f2123;
}

.auth-footer {
    margin-top: 30px;
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-main);
}

.auth-footer a {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.password-toggle {
    position: absolute;
    inset-inline-end: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.auth-floating-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.auth-shape {
    position: absolute;
    filter: blur(80px);
    opacity: 0.1;
    z-index: -1;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-color);
    top: -100px;
    right: -100px;
    border-radius: 50%;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--danger-color);
    bottom: -50px;
    left: -50px;
    border-radius: 50%;
}

/* ============================================
   CONTACT PAGE STYLE
   ============================================ */

.contact-card-modern {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.contact-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.contact-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(0, 74, 142, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-icon-box.primary {
    background: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

.contact-icon-box.danger {
    background: rgba(227, 30, 36, 0.1);
    color: var(--danger-color);
}

.contact-info-content h6 {
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-main);
}

.social-btn-contact {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.2rem;
}

.social-btn-contact:hover {
    transform: scale(1.1);
    color: #fff;
}

.social-btn-contact.fb {
    background: #1877F2;
}

.social-btn-contact.tw {
    background: #000000;
}

.social-btn-contact.ig {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.social-btn-contact.wa {
    background: #25D366;
}

.contact-form .form-control,
.contact-form .form-select {
    padding: 12px 20px;
    border-radius: 12px;
}

.contact-form .form-control:focus {
    background: var(--white);
    box-shadow: none;
    border: 1px solid var(--primary-color);
}

.map-section iframe {
    filter: grayscale(0.5);
    transition: var(--transition);
}

.map-section iframe:hover {
    filter: grayscale(0);
}

/* Dark Mode Adjustments for Contact */
[data-theme="dark"] .contact-card-modern {
    background: #1e1e1e;
}

[data-theme="dark"] .bg-light {
    background: #121212 !important;
}

[data-theme="dark"] .page-header {
    background: #1a1a1a !important;
}


/* ============================================
   OFFERS PAGE STYLE
   ============================================ */

.offers-hero {
    min-height: 400px;
    background: linear-gradient(135deg, #004a8e 0%, #002d57 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.offers-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1486262715619-67b85e0b08d3?q=80&w=1500&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    mix-blend-mode: overlay;
}

.backdrop-blur {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.countdown-item {
    min-width: 80px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.offer-card {
    transition: var(--transition);
    border: 1px solid var(--border-color) !important;
}

.offer-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08) !important;
    border-color: var(--primary-color) !important;
}

.offer-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--danger-color);
    color: #fff;
    padding: 8px 15px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.9rem;
    box-shadow: 0 5px 15px rgba(227, 30, 36, 0.3);
    z-index: 2;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.fw-800 {
    font-weight: 800;
}

/* Dark Mode Adjustments for Offers */
[data-theme="dark"] .offer-card {
    background: #1e1e1e !important;
    border-color: #333 !important;
}

[data-theme="dark"] .offer-card .text-muted {
    color: #aaa !important;
}

[data-theme="dark"] .bg-light-subtle {
    background: #121212 !important;
}


/* Mobile Header Refinements */
@media (max-width: 991px) {
    .nav-logo-img {
        height: 35px !important;
    }

    .modern-navbar {
        padding: 8px 0 !important;
    }

    .action-btn-modern {
        width: 38px !important;
        height: 38px !important;
        font-size: 1.1rem !important;
    }
}

/* Offers Filter Bar Enhancements */
.offers-filter-sticky {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .offers-filter-sticky {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

/* RTL Scaling Helper */
[dir="rtl"] .scale-rtl {
    transform: scaleX(-1);
    display: inline-block;
}

/* Fix for input-group in RTL Pills */
[dir="rtl"] .rounded-pill-start {
    border-top-right-radius: 50px !important;
    border-bottom-right-radius: 50px !important;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

[dir="rtl"] .rounded-pill-end {
    border-top-left-radius: 50px !important;
    border-bottom-left-radius: 50px !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

/* ============================================
   PREMIUM TOAST STYLES
   ============================================ */

.toast-container-custom {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: 90%;
    max-width: 450px;
}

.premium-toast {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.15);
    padding: 1.25rem;
    display: none;
    align-items: center;
    gap: 1.25rem;
    animation: toastSlideUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.premium-toast.show {
    display: flex;
}

.toast-icon {
    width: 50px;
    height: 50px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.toast-icon.warning {
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
}

.toast-icon.success {
    background: rgba(25, 135, 84, 0.15);
    color: #198754;
}

.toast-content {
    flex-grow: 1;
}

.toast-title {
    font-weight: 800;
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
    color: var(--text-main);
}

.toast-message {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.toast-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

@keyframes toastSlideUp {
    from {
        opacity: 0;
        transform: translateY(100%) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

[data-theme="dark"] .premium-toast {
    background: rgba(22, 24, 26, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
}

@media (max-width: 576px) {
    .toast-container-custom {
        bottom: 1rem;
    }

    .premium-toast {
        padding: 1rem;
        gap: 0.75rem;
    }

    .toast-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
}

/* ============================================
   PREMIUM CART PAGE STYLES
   ============================================ */

.cart-item-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    padding: 1.5rem;
    transition: var(--transition);
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

.cart-item-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.cart-item-img-box {
    width: 100px;
    height: 100px;
    background: #f8f9fa;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    flex-shrink: 0;
}

.cart-item-img-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.cart-item-info {
    flex-grow: 1;
}

.cart-item-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 0.25rem;
    display: block;
    text-decoration: none;
}

.cart-item-title:hover {
    color: var(--primary-color);
}

.quantity-control {
    display: flex;
    align-items: center;
    background: var(--bg-light);
    border-radius: 50px;
    padding: 2px;
    width: fit-content;
    border: 1px solid var(--border-color);
}

.qty-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--card-bg);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.qty-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

.qty-input {
    width: 45px;
    border: none;
    background: transparent;
    text-align: center;
    font-weight: 700;
    color: var(--text-main);
    font-size: 0.95rem;
}

.cart-summary-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    padding: 2rem;
    position: sticky;
    top: 100px;
    box-shadow: var(--shadow-sm);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}

.summary-row.total {
    border-top: 1px dashed var(--border-color);
    padding-top: 1rem;
    margin-top: 1rem;
    color: var(--text-main);
    font-weight: 800;
    font-size: 1.25rem;
}

.coupon-input-group {
    background: var(--bg-light);
    border-radius: 50px;
    padding: 5px;
    display: flex;
    border: 1px solid var(--border-color);
}

.coupon-input-group input {
    background: transparent;
    border: none;
    padding: 0 1rem;
    flex-grow: 1;
    font-size: 0.9rem;
    outline: none;
}

[data-theme="dark"] .cart-item-img-box {
    background: #1e1e1e;
}

[data-theme="dark"] .qty-btn {
    background: #2a2a2a;
}

@media (max-width: 576px) {
    .cart-item-card {
        padding: 1rem;
    }

    .cart-item-img-box {
        width: 80px;
        height: 80px;
    }

    .cart-item-title {
        font-size: 1rem;
    }
}

/* ============================================
   CHECKOUT PROGRESS STEPS
   ============================================ */
.checkout-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 600px;
    margin: 0 auto 3rem;
    position: relative;
    padding: 0;
}

.checkout-steps::before {
    content: '';
    position: absolute;
    top: 25px;
    inset-inline-start: 10%;
    inset-inline-end: 10%;
    height: 2px;
    background: #f1f3f5;
    z-index: 1;
}

.step-item {
    position: relative;
    z-index: 2;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.step-number {
    width: 50px;
    height: 50px;
    background: #000826;
    /* Deep Dark from Image */
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 10px;
    transition: var(--transition);
}

.step-label {
    font-size: 0.95rem;
    color: #6c757d;
    font-weight: 600;
}

.step-item.active .step-number {
    background: #ff4d4d;
    /* Red from Image */
    box-shadow: 0 0 0 5px rgba(255, 77, 77, 0.15);
}

.step-item.active .step-label {
    color: #ff4d4d;
}

@media (max-width: 576px) {
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .step-label {
        font-size: 0.8rem;
    }
}

/* ============================================
   MOBILE NAVIGATION OPTIMIZATIONS
   ============================================ */
@media (max-width: 991px) {

    /* Top Banner - Exactly like Desktop */
    .unique-top-banner .container>.d-flex {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: center !important;
        /* Centered like desktop */
        align-items: center !important;
        gap: 8px !important;
    }

    .unique-top-banner span {
        font-size: 0.6rem !important;
        /* Scale down to fit */
        white-space: nowrap !important;
        display: inline-flex !important;
        align-items: center !important;
    }

    .unique-top-banner .separator {
        display: inline-block !important;
        /* Show on mobile */
        /* margin: 0 4px !important;
        opacity: 0.5;
        font-size: 0.8rem; */
        display: none !important;

    }

    /* Nav Bar - Tighter spacing for one line */
    .header-main-row {
        gap: 5px !important;
        justify-content: space-between !important;
    }

    .nav-actions-modern {
        gap: 4px !important;
    }

    .action-btn-modern {
        width: 32px !important;
        height: 32px !important;
        font-size: 1rem !important;
    }

    .nav-logo-img {
        height: 30px !important;
    }
}

/* Premium Mobile Nav Design */
@media (max-width: 480px) {
    .nav-logo-img {
        height: 30px;
        /* Even smaller for very small screens */
    }

    .action-btn-modern {
        width: 32px;
        height: 32px;
        font-size: 0.95rem;
    }

    .nav-actions-modern {
        gap: 4px;
    }

    .unique-top-banner {
        font-size: 0.65rem;
    }
}

/* Ensure the user icon has a premium look on mobile */
.action-btn-modern#userDropdown {
    /* background: var(--primary-color); */
    color: var(--dark-color);
    /* border-color: var(--primary-color); */
}

.action-btn-modern#userDropdown:hover {
    background: var(--primary-dark);
    color: var(--light-color);
    border-color: var(--light-color);
}

/* Mobile Nav Active State */
#mobileMenu .nav-link {
    color: var(--text-main);
    padding: 12px 15px;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

#mobileMenu .nav-link:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
}

#mobileMenu .nav-link.active {
    background-color: #fff5f5;
    color: var(--primary-color) !important;
    font-weight: 700 !important;
}

.offcanvas-lg,
.offcanvas,
.dropdown-menu {
    background-color: var(--bg-body) !important;
}