/*
 * AZMY CO - Modern E-commerce Design System
 * Primary Color: #e31e24
 * Tech/Trust Color: #0f172a (Slate 900)
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&family=Cairo:wght@300;400;500;600;700;800&family=Almarai:wght@300;400;700;800&display=swap');

:root {
    --primary: #e31e24;
    --primary-hover: #c1181e;
    --primary-light: rgba(227, 30, 36, 0.08);
    --secondary: #0f172a;
    --accent: #3b82f6;
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.4);
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: #f1f5f9;
    --shadow-premium: 0 20px 40px -15px rgba(0, 0, 0, 0.12);
    --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
    --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --radius-xl: 24px;
    --radius-lg: 18px;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader-logo {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-logo img {
    width: 60px;
    height: auto;
    z-index: 2;
}

.loader-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid #f1f5f9;
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

    100% {
        transform: rotate(360deg);
    }
}

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

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100vw;
    overflow-x: clip !important;
    position: relative;
    touch-action: manipulation;
    /* Disables double-tap zoom */
    -webkit-text-size-adjust: 100%;
}

body {
    padding-bottom: calc(80px + env(safe-area-inset-bottom));
    min-height: 100dvh;
}

@media (min-width: 992px) {
    body {
        padding-bottom: 0;
    }
}

@media (max-width: 991px) {
    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

[lang="ar"] body,
[lang="ar"] *,
[dir="rtl"] body,
[dir="rtl"] * {
    font-family: 'Cairo', 'Almarai', sans-serif !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

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

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

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    padding: 10px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Navbar & Mega Menu */
.navbar {
    padding: 12px 0;
    background: #ffffff !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

header.sticky-top {
    position: sticky;
    top: 0;
    z-index: 1050;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.nav-link {
    font-weight: 500;
    color: var(--secondary);
    padding: 10px 15px !important;
}

.nav-link:hover {
    color: var(--primary);
}

@media (min-width: 992px) {
    .mega-menu {
        position: static !important;
    }
}

.categories-btn {
    padding: 8px 10px !important;
    font-weight: 700 !important;
    color: #334155 !important;
    transition: all 0.3s ease;
}

[dir="rtl"] .categories-btn {
    margin-right: 0;
    margin-left: 10px;
}

.categories-btn:hover,
.categories-btn.show {
    color: var(--primary) !important;
}

.mega-menu .dropdown-menu {
    width: 100%;
    left: 0;
    right: 0;
    border: 1px solid #f1f5f9;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 20px 20px;
    padding: 40px 20px;
    margin-top: 0;
    background: #ffffff;
    animation: megaMenuFade 0.3s ease;
}

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

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

.mega-icon-box {
    width: 45px;
    height: 45px;
    background: #f1f5f9;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.mega-icon-box img {
    width: 70%;
    height: 70%;
    object-fit: contain;
}

.mega-submenu a:hover {
    color: var(--primary) !important;
    transform: translateX(5px);
}

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

.mega-submenu a {
    transition: all 0.2s ease;
}

/* Spacing fixes */
@media (max-width: 768px) {
    .py-5 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    .py-2 {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }

    section {
        margin-bottom: 0 !important;
    }
}

@media (max-width: 991.98px) {
    .navbar .container {
        flex-wrap: wrap;
        padding-top: 5px;
        padding-bottom: 5px;
    }

    @media (max-width: 991.98px) {
        .navbar .container {
            flex-wrap: nowrap !important;
        }
    }

    .navbar form {
        width: 100%;
        max-width: none;
    }

    .navbar .form-control {
        height: 38px;
        /* Slightly smaller to fit in one row */
        font-size: 0.85rem;
        border: none;
        background: #f1f5f9;
        color: #334155;
        text-align: left;
        padding: 0 35px 0 15px !important;
        border-radius: 50px;
        box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
    }

    [dir="rtl"] .navbar .form-control {
        text-align: right;
        padding: 0 20px 0 45px !important;
    }

    .navbar .bi-search {
        display: block;
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        color: #64748b;
        font-size: 0.9rem;
    }

    [dir="rtl"] .navbar .bi-search {
        right: auto;
        left: 12px;
    }

    .badge-cart {
        top: -5px;
        right: -8px;
        font-size: 0.65rem;
        padding: 2px 6px;
    }
}

.product-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    padding: 18px;
    transition: var(--transition-smooth);
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-card);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-premium);
    border-color: var(--primary-light);
}

.product-image-wrapper {
    position: relative;
    background: #fdfdfd;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.product-image-wrapper img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.product-card:hover .product-image-wrapper img {
    transform: scale(1.1);
}

.product-info {
    flex-grow: 1;
    /* Pushes the button to the bottom */
    display: flex;
    flex-direction: column;
    padding: 0 8px;
    text-align: start;
}

.product-category {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 4px;
}

.product-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8em;
    line-height: 1.4;
}

.product-price {
    margin-bottom: 15px;
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

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

.old-price {
    font-size: 0.9rem;
    color: #bbb;
    text-decoration: line-through;
}

.add-to-cart-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 14px;
    font-weight: 800;
    font-size: 0.85rem;
    width: 100%;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0;
    box-shadow: 0 4px 15px rgba(227, 30, 36, 0.2);
}

.add-to-cart-btn:hover {
    background: var(--primary-hover);
    transform: scale(1.02);
    color: #fff;
}

/* Category Cards */
/* Category Cards Redesigned */

.category-img-card {
    padding: 12px 8px !important;
    border-radius: 16px !important;
    transition: var(--transition);
    background: #fff;
    border: 1px solid #f0f0f0 !important;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.category-img-card h6 {
    font-size: 0.8rem;
    font-weight: 700;
    margin-top: 10px;
    text-align: center;
    color: var(--text-main);
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.4em;
    /* Ensure consistent height for 2 lines */
}

.category-img-wrapper {
    height: 70px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.category-img-card:hover .category-img-wrapper img {
    transform: scale(1.1);
}

@media (max-width: 1200px) {
    .category-img-wrapper {
        height: 60px;
    }

    .category-img-card h6 {
        font-size: 0.75rem !important;
    }
}

@media (max-width: 768px) {
    .category-img-wrapper {
        height: 40px;
        /* Even smaller for 4 items */
    }

    .category-img-card {
        padding: 8px 4px !important;
        /* Minimal padding */
    }

    .category-img-card h6 {
        font-size: 0.6rem !important;
        /* Ultra small font */
        font-weight: 800;
        line-height: 1;
        margin-top: 4px;
        letter-spacing: -0.2px;
    }
}

.categories-carousel .product-card {
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    padding: 30px 20px;
}

.categories-carousel .product-card i {
    font-size: 3rem !important;
    color: var(--primary);
    background: none;
    -webkit-text-fill-color: initial;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
    margin-bottom: 15px;
}

.categories-carousel .item:hover .product-card {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.categories-carousel .item:hover .product-card i {
    transform: scale(1.2);
}

.categories-carousel .product-card h6 {
    font-weight: 700;
    font-size: 1rem;
    color: #1e293b !important;
}

/* Hero Section */
.hero-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

@media (max-width: 991px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

/* Cart Sidebar */
/* Premium Cart Sidebar */
.cart-offcanvas {
    width: 420px !important;
    display: flex !important;
    flex-direction: column !important;
    z-index: 1055 !important;
    border-left: 1px solid var(--glass-border) !important;
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.1) !important;
}

@media (max-width: 576px) {
    .cart-offcanvas {
        width: 100% !important;
    }
}

.cart-offcanvas .offcanvas-header {
    padding: 25px;
    border-bottom: 1px solid var(--border-color);
}

.cart-offcanvas .offcanvas-title {
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--secondary);
    letter-spacing: -0.5px;
}

.cart-offcanvas .offcanvas-body {
    flex-grow: 1;
    overflow-y: auto;
}

.cart-offcanvas .offcanvas-footer {
    flex-shrink: 0;
    padding: 25px;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid var(--glass-border);
    z-index: 10;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.05);
    display: none;
    /* Hidden by default - shown via JS when items exist */
}

/* Premium Mobile Bottom Navigation */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0 !important;
    left: 0;
    right: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.08);
    z-index: 9999;
    border-top: 1px solid var(--glass-border);
    height: calc(75px + env(safe-area-inset-bottom));
    display: block;
    transform: translateZ(0);
}

.mobile-bottom-nav .d-flex {
    height: 75px;
    padding-bottom: 0;
    justify-content: space-around;
    align-items: center;
}

.nav-item-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none !important;
    transition: var(--transition-smooth);
    width: 25%;
    position: relative;
}

.nav-item-mobile i {
    font-size: 1.4rem;
    margin-bottom: 4px;
    transition: var(--transition-smooth);
}

.nav-item-mobile span {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-item-mobile.active {
    color: var(--primary);
}

.nav-item-mobile.active i {
    transform: translateY(-4px);
    color: var(--primary);
}

.nav-item-mobile .badge-cart {
    position: absolute;
    top: 5px;
    right: 20%;
    background: var(--primary);
    color: white;
    font-size: 0.6rem;
    padding: 2px 5px;
    border-radius: 50px;
    font-weight: 800;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(227, 30, 36, 0.3);
}

/* Mobile Category Grid */
.category-grid-mobile {
    background: #f8fafc;
    min-height: 100%;
}

.mobile-cat-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border: 1px solid #f1f5f9;
    height: 100%;
}

.mobile-cat-card:active {
    transform: scale(0.95);
    background: #f1f5f9;
}

.mobile-cat-card .cat-img-box {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
}

.mobile-cat-card .cat-img-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.mobile-cat-card .cat-name {
    font-size: 0.85rem;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #64748b;
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 600;
    flex: 1;
    transition: all 0.2s ease;
}

.mobile-bottom-nav .nav-item i {
    font-size: 1.55rem;
    margin-bottom: 2px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mobile-bottom-nav .nav-item span {
    font-size: 0.62rem;
    font-weight: 700;
}

.mobile-bottom-nav .nav-item.active {
    color: var(--primary) !important;
}

.mobile-bottom-nav .nav-item.active i {
    transform: translateY(-4px);
    color: var(--primary);
}

.badge-cart-bottom {
    position: absolute;
    top: -2px;
    right: -10px;
    background: var(--primary);
    color: white;
    font-size: 0.6rem;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 2px solid #fff;
    font-weight: 800;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 5;
}


/* Desktop Header Refinement */
@media (min-width: 992px) {
    .navbar .container {
        padding-left: 30px;
        padding-right: 30px;
    }

    #searchFormGlobal {
        max-width: 550px;
        margin: 0 auto;
    }

      /* Search logic moved to new/js/main.js to prevent conflicts */
    .navbar-nav .nav-link {
        font-weight: 600;
        font-size: 0.95rem;
        padding: 0.5rem 1rem !important;
        transition: all 0.3s ease;
        color: #334155 !important;
    }

    .navbar-nav .nav-link:hover {
        color: var(--primary) !important;
    }

    .navbar-nav .nav-link.active {
        color: var(--primary) !important;
    }
}

.autocomplete-suggestions {
    background: #fff;
    border-radius: 12px;
    margin-top: 8px;
    z-index: 2000;
}

.cart-item {
    display: flex;
    gap: 15px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.cart-item:hover {
    background: rgba(0, 0, 0, 0.01);
}

.cart-item-img {
    width: 90px;
    height: 90px;
    background: #f8fafc;
    border-radius: var(--radius-lg);
    padding: 8px;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

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

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

.cart-item-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cart-item-price {
    font-weight: 800;
    color: var(--primary);
    font-size: 1rem;
}

.banner-card-framed {
    background: #f1f5f9;
    padding: 18px;
    border-radius: 32px;
    transition: var(--transition-smooth);
    cursor: pointer;
    height: 300px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.banner-card-framed:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-premium);
    background: #e2e8f0;
}

.banner-card-framed .banner-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 18px;
    overflow: hidden;
}

.banner-card-framed .banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.1) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 25px;
    color: white;
}

[dir="rtl"] .banner-card-framed .banner-overlay {
    background: linear-gradient(to left, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.1) 60%, transparent 100%);
    text-align: right;
    align-items: flex-end;
}

.banner-card-framed h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 5px;
    letter-spacing: -1px;
}

.banner-card-framed p {
    font-size: 0.9rem;
    opacity: 0.95;
    margin-bottom: 20px;
    max-width: 90%;
    line-height: 1.4;
}

.banner-card-framed .btn-banner {
    background: #d92026;
    color: white !important;
    padding: 10px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    width: fit-content;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(217, 32, 38, 0.3);
}

.banner-card-framed .btn-banner:hover {
    background: #ff2d35;
    transform: scale(1.05);
}

.w-fit {
    width: fit-content;
}

/* Owl Custom Nav */
.owl-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: white !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: #d92026 !important;
    font-size: 1.1rem !important;
    z-index: 10;
    transition: all 0.3s ease;
}

.owl-nav button:hover {
    background: #d92026 !important;
    color: white !important;
}

.owl-nav .owl-prev {
    left: -22px;
}

[dir="rtl"] .owl-nav .owl-prev {
    left: auto;
    right: -22px;
}

.owl-nav .owl-next {
    right: -22px;
}

[dir="rtl"] .owl-nav .owl-next {
    right: auto;
    left: -22px;
}

/* Force LTR for position calculation in RTL mode */
[dir="rtl"] .owl-carousel {
    direction: ltr;
}

[dir="rtl"] .owl-carousel .item {
    direction: rtl;
}

.owl-stage {
    display: flex;
}

.owl-item {
    display: flex;
    flex: 1 0 auto;
}

.owl-item .item {
    width: 100%;
}

/* Badges */
.badge-cart {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary);
    color: white;
    font-size: 0.65rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}



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

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

.animate-up {
    animation: fadeInUp 0.6s ease forwards;
}

.search-autocomplete {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    margin-top: 10px;
    border: 1px solid var(--border-color);
}

.search-item:hover {
    background: #f8fafc;
}

.cursor-pointer {
    cursor: pointer;
}

.smaller {
    font-size: 0.8rem;
}

/* Creative Promo Cards */
.creative-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.creative-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.creative-card .card-img-wrapper {
    height: 260px;
    position: relative;
    overflow: hidden;
    margin: 10px;
    border-radius: 18px;
}

.creative-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.creative-card .card-body {
    padding: 20px 25px 30px;
    text-align: center;
}

.creative-card .card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: #1e293b;
    font-family: 'Outfit', sans-serif;
}

.creative-card .card-text {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 25px;
    line-height: 1.5;
}

.creative-card .btn-view {
    display: inline-block;
    border: 1px solid #f1f5f9;
    padding: 8px 30px;
    border-radius: 10px;
    color: #334155;
    background: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.creative-card .btn-view:hover {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #0f172a;
}

/* Brands Section Redesign */
.brands-section {
    padding: 60px 0;
    background: linear-gradient(to bottom, #ffffff, #f8fafc);
    position: relative;
    overflow: hidden;
}

.brands-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-color), transparent);
}

.brand-card-modern {
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 20px;
    padding: 20px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    margin: 10px 5px;
}

.brand-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: #e2e8f0;
}

.brand-card-modern img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.brand-card-modern:hover img {
    filter: grayscale(0);
    opacity: 1;
}

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

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

/* Modern Sub-header (Utility Bar) */
.sub-header-modern {
    background: var(--primary);
    border-bottom: none;
    padding: 18px 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #ffffff;
}

.sub-header-modern a {
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.sub-header-modern a:hover {
    color: #ffffff !important;
}

.sub-header-modern .bi {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.2s ease;
}

.sub-header-modern a:hover .bi {
    color: #ffffff;
}

.sub-header-modern .vr {
    background-color: rgba(255, 255, 255, 0.3);
    opacity: 1;
    height: 14px !important;
}

.sub-header-modern .contact-link {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: #ffffff !important;
}

/* Floating Buttons */
.floated-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    text-decoration: none;
}

.float-btn:hover {
    transform: scale(1.1);
    color: white;
}

.float-whatsapp {
    background: #25d366;
}

.float-facebook {
    background: #1877f2;
}

.float-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

[dir="rtl"] .floated-buttons {
    right: auto;
    left: 30px;
}

/* Payment Methods Section - Professional Cinematic Design */
.payment-methods-section {
    background: #020617;
    /* Very deep dark slate */
    color: #ffffff;
    padding: 50px 0;
    /* Reduced from 100px */
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Glowing background orbs */
.payment-methods-section::before,
.payment-methods-section::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
}

.payment-methods-section::before {
    top: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: rgba(227, 30, 36, 0.15);
    /* Red glow based on logo */
}

.payment-methods-section::after {
    bottom: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: rgba(227, 30, 36, 0.08);
    /* Lighter red glow */
}

.payment-methods-section h2 {
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 2.5rem;
    letter-spacing: -1px;
}

.payment-methods-section p.lead {
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto 30px;
    /* Reduced from 50px */
}

/* Unified Glass Panel */
.payment-glass-panel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    /* Reduced from 32px */
    padding: 10px;
    /* Reduced from 20px */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.payment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.payment-method-item {
    padding: 25px 20px;
    /* Reduced from 40px 30px */
    transition: all 0.4s ease;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.payment-method-item:last-child {
    border-right: none;
}

.payment-method-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #ff4d4d);
    transition: width 0.4s ease;
    border-radius: 3px 3px 0 0;
}

.payment-method-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.payment-method-item:hover::after {
    width: 50%;
}

.payment-icon-wrapper {
    width: 60px;
    /* Reduced from 80px */
    height: 60px;
    /* Reduced from 80px */
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    /* Reduced from 20px */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    /* Reduced from 25px */
    color: #94a3b8;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: inset 0 2px 10px rgba(255, 255, 255, 0.05);
}

.payment-icon-wrapper i {
    font-size: 1.5rem !important;
    /* Reduced from 2rem */
}

.payment-method-item:hover .payment-icon-wrapper {
    background: linear-gradient(135deg, var(--primary) 0%, #ff4d4d 100%);
    color: #ffffff;
    transform: translateY(-5px) scale(1.05);
    /* Reduced translate */
    border-color: transparent;
    box-shadow: 0 15px 30px -10px rgba(227, 30, 36, 0.5);
}

.payment-method-item h5 {
    font-weight: 600;
    font-size: 1.05rem;
    /* Reduced from 1.15rem */
    margin: 0 0 5px 0;
    /* Reduced from 10px */
    color: #f8fafc;
}

.payment-method-item p {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0;
}

@media (max-width: 768px) {
    .payment-grid {
        grid-template-columns: 1fr;
    }

    .payment-method-item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .payment-method-item:last-child {
        border-bottom: none;
    }

    .payment-grid {
        grid-template-columns: 1fr;
    }

    .floated-buttons {
        bottom: 20px;
        right: 20px;
    }

    [dir="rtl"] .floated-buttons {
        left: 20px;
    }

    .float-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

/* 
 * -----------------------------------------
 * PRODUCT DETAILS PAGE STYLES
 * -----------------------------------------
 */
/* 
 * -----------------------------------------
 * MODERN LIGHT PRODUCT DETAILS (AZMY CONCEPT)
 * -----------------------------------------
 */
.product-hero-modern {
    background: var(--bg-body);
    min-height: 100dvh;
    padding: 15px 0;
    position: relative;
    overflow: hidden;
}

.product-gallery-modern {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 20px;
    box-shadow: var(--shadow-card);
    height: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.main-product-img {
    max-height: 450px;
    width: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.05));
    transition: transform 0.5s ease;
    cursor: zoom-in;
}

.main-product-img:hover {
    transform: scale(1.1);
}

.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}


.warranty-box-modern {
    background: #10b981;
    color: white;
    border-radius: 12px;
    padding: 12px 18px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.15);
    width: fit-content;
    margin-bottom: 20px;
}

.price-box-modern {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-card);
}

.price-box-modern .current-price {
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1;
    color: var(--primary);
    letter-spacing: -1px;
}

.old-price {
    font-size: 1.1rem;
    color: var(--text-muted);
    text-decoration: line-through;
    font-family: 'Outfit', sans-serif;
    opacity: 0.7;
}

.modern-availability-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    font-weight: 500;
}


/* Global Product Description Bullets */
.product-description-bullets .bullet-item,
.product-description-bullets div,
.product-description-bullets p {
    position: relative;
    padding-inline-start: 25px;
    margin-bottom: 12px;
    display: block;
    font-size: 0.95rem;
    color: #334155;
    /* Slightly darker for better readability */
    font-weight: 600;
    /* Uniform weight for all lines */
    line-height: 1.6;
}

.product-description-bullets .bullet-item::before,
.product-description-bullets div::before,
.product-description-bullets p::before {
    content: '';
    position: absolute;
    top: 10px;
    inset-inline-start: 0;
    width: 8px;
    height: 8px;
    background-color: #d92026;
    /* Azmy Red */
    border-radius: 2px;
    /* Square/Diamond look or 50% for circle */
    box-shadow: 0 0 10px rgba(217, 32, 38, 0.2);
}

[dir="rtl"] .product-description-bullets .bullet-item::before,
[dir="rtl"] .product-description-bullets div::before,
[dir="rtl"] .product-description-bullets p::before {
    top: 8px;
}

@media (max-width: 768px) {
    .page-header-modern-global {
        margin-bottom: 5px !important;
        padding: 10px 0 !important;
    }

    .breadcrumb-wrapper {
        padding: 4px 10px !important;
        border-radius: 8px !important;
    }

    .container.py-4 {
        padding-top: 0 !important;
        padding-bottom: 5px !important;
    }

    .product-detail-modern {
        padding: 15px !important;
        border-radius: 15px !important;
    }

    /* Expert Hierarchy Scaling */
    .product-info-modern h3,
    .product-details-content h1 {
        font-size: 1rem !important;
        margin-bottom: 8px !important;
        line-height: 1.3 !important;
        font-weight: 800 !important;
    }

    .product-info-modern .d-flex.align-items-center.mb-4 {
        margin-bottom: 12px !important;
        gap: 8px !important;
    }

    .product-info-modern img {
        height: 20px !important;
    }

    .product-info-modern .badge {
        padding: 4px 8px !important;
        font-size: 0.6rem !important;
    }

    /* Ultra-Slim Content Cards */
    .product-price-box,
    .price-box-modern {
        padding: 10px 15px !important;
        margin-bottom: 12px !important;
        border-radius: 10px !important;
        background: #f8fafc !important;
    }

    .product-price-box .h1,
    .price-box-modern .current-price {
        font-size: 1.4rem !important;
    }

    .delivery-info,
    .product-info-modern .delivery-info {
        padding: 8px 12px !important;
        margin-bottom: 15px !important;
        border-radius: 8px !important;
    }

    /* Tight Specs & Description */
    .product-description-modern h4 {
        font-size: 0.95rem !important;
        margin-bottom: 8px !important;
    }

    .product-description-modern .text-muted,
    .product-info-modern .text-muted.line-height-lg {
        font-size: 0.8rem !important;
        line-height: 1.4 !important;
    }

    .product-description-modern p,
    .product-description-modern div,
    .product-description-modern br {
        margin-bottom: 2px !important;
        display: block !important;
    }



    .action-buttons .btn-lg {
        padding: 10px !important;
        font-size: 0.9rem !important;
        border-radius: 10px !important;
    }
}

.qty-control-modern {
    background: #f1f5f9;
    border-radius: 100px;
    padding: 5px;
    display: flex;
    align-items: center;
    width: fit-content;
}

.qty-control-modern input {
    width: 50px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: 700;
}

.cart-btn-modern {
    background: var(--primary);
    color: white;
    border-radius: 16px;
    padding: 18px 45px;
    font-weight: 800;
    font-size: 1rem;
    border: none;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 30px rgba(227, 30, 36, 0.2);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.cart-btn-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(227, 30, 36, 0.3);
    background: var(--primary-hover);
}

.massive-text-subtle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20vw;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.02);
    z-index: -1;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    overflow: hidden;
}

/* Modern Products Page Styles */
.filter-sidebar-modern {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.brand-filter-item input:checked+.brand-box {
    border-color: #d92026 !important;
    background: rgba(217, 32, 38, 0.05);
}

.brand-box {
    transition: all 0.2s ease;
    cursor: pointer;
    min-width: 80px;
}

.brand-box:hover {
    border-color: #d92026 !important;
}

/* Single Product View Modernization */
.product-detail-modern {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.product-gallery-modern .carousel-inner {
    border-radius: 15px;
    border: 1px solid #f1f5f9;
    background: #fff;
}

.product-gallery-modern .carousel-item img {
    max-height: 500px;
    object-fit: contain;
}

.product-price-box {
    background: #f8fafc;
    padding: 20px;
    border-radius: 15px;
    border-right: 4px solid #d92026;
}

.installment-tabs-modern .nav-tabs {
    border: none;
    gap: 10px;
    margin-bottom: 20px;
}

.installment-tabs-modern .nav-link {
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    padding: 10px 20px;
    color: #64748b;
    background: #fff;
}

.installment-tabs-modern .nav-link.active {
    background: #d92026 !important;
    color: #fff !important;
    border-color: #d92026 !important;
}

.related-products-modern h3 {
    position: relative;
    padding-bottom: 15px;
    font-weight: 700;
}

.related-products-modern h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 3px;
    background: #d92026;
}

/* Creative & Hyper-Premium Breadcrumb UI/UX */
.page-header-modern-global {
    background: radial-gradient(circle at top right, #ffffff 0%, #fcfdfe 100%);
    padding: 1.2rem 0 1rem;
    margin-bottom: 1.5rem !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
}

.page-header-modern-global::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(217, 32, 38, 0.03) 0%, transparent 70%);
    z-index: 0;
}

.breadcrumb-wrapper {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.breadcrumb {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 6px 22px !important;
    border-radius: 100px !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.03), 0 1px 2px rgba(0, 0, 0, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.9);
    display: inline-flex;
    align-items: center;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0;
}

.breadcrumb-item a {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
}

.breadcrumb-item a i {
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.breadcrumb-item a:hover {
    color: #0f172a;
    transform: scale(1.05);
}

.breadcrumb-item.active {
    color: #0f172a !important;
    display: flex;
    align-items: center;
}

/* Unique Geometric Separator */
.breadcrumb-item+.breadcrumb-item::before {
    content: "" !important;
    width: 4px;
    height: 4px;
    background: #cbd5e1;
    border-radius: 50%;
    margin: 0 15px;
    display: block;
}

/* Signature Red Dot for Active Page */
.breadcrumb-item.active::after {
    content: "";
    width: 6px;
    height: 6px;
    background: #d92026;
    border-radius: 50%;
    margin-right: 10px;
    /* For RTL */
    box-shadow: 0 0 10px rgba(217, 32, 38, 0.4);
}

[dir="ltr"] .breadcrumb-item.active::after {
    margin-right: 0;
    margin-left: 10px;
}

/* Modern Page Title Refinement */
.page-title-global h1 {
    font-size: 3.2rem;
    font-weight: 950;
    color: #0f172a;
    letter-spacing: -2px;
    text-transform: capitalize;
    text-align: start;
    line-height: 1.1;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* Clean Modern Payment Methods Section */
.payment-methods-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    color: white;
    padding: 100px 0;
    position: relative;
}

.payment-grid-modern {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.payment-item-modern {
    padding: 30px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.payment-item-modern:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-5px);
}

.payment-icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    font-size: 1.5rem;
    color: #3b82f6;
    /* Modern Blue Icon */
}

@media (max-width: 768px) {
    .payment-grid-modern {
        grid-template-columns: 1fr;
    }
}

/* Header Accent Lines Redesign */
.modern-header-accent {
    position: relative;
    padding-bottom: 5px;
    display: inline-block;
}

.modern-header-accent .accent-line {
    position: relative;
    width: 60px;
    height: 4px;
    background: #d92026;
    border-radius: 50px;
    margin-top: 10px;
}

.modern-header-accent .accent-line::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 15px;
    width: 30px;
    height: 4px;
    background: #d92026;
    opacity: 0.3;
    border-radius: 50px;
}

[dir="rtl"] .modern-header-accent .accent-line::after {
    left: auto;
    right: 15px;
}

/* Centered Header Variant */
.modern-header-accent.text-center {
    display: block;
    margin: 0 auto;
    width: fit-content;
}

.modern-header-accent.text-center .accent-line {
    margin-left: auto;
    margin-right: auto;
}

.modern-header-accent.text-center .accent-line::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Payment Methods Redesign (Dark Theme) */
.payment-methods-section {
    background: #0a0a0b;
    padding: 80px 0;
    color: #fff;
    position: relative;
}

.payment-methods-section .container {
    position: relative;
}

.payment-glass-panel {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 28px;
    padding: 15px;
    margin-top: 60px;
}

.payment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.payment-method-item {
    padding: 40px 30px;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.payment-method-item:last-child {
    border-right: none;
}

.payment-icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: #94a3b8;
    transition: all 0.3s ease;
}

.payment-method-item:hover .payment-icon-wrapper {
    background: #d92026;
    color: #fff;
    border-color: #d92026;
    transform: translateY(-5px);
}

.payment-method-item h5 {
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.payment-method-item p {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Filter Sidebar Tiered Redesign */
.filter-sidebar-modern {
    background: #fff;
    padding: 35px 25px;
    border-radius: 28px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.04);
    border: 1px solid #f8fafc;
}

.filter-title {
    font-size: 1.4rem;
    font-weight: 900;
    color: #0f172a;
    text-align: start;
    letter-spacing: -0.5px;
}

/* Brand Masonry Grid */
.brand-filter-masonry {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.brand-filter-item.large {
    grid-column: span 2;
}

.brand-filter-item.medium {
    grid-column: span 1;
}

.brand-filter-item.small {
    grid-column: span 1;
}

/* Adjust for small grid after first 6 items */
.brand-filter-masonry .brand-filter-item:nth-child(n+7) {
    grid-column: span 1;
}

/* If you want 3-column for small ones */
@media (min-width: 992px) {
    .brand-filter-masonry .brand-filter-item:nth-child(n+7) {
        grid-column: span 1;
        /* Keeping it 2 for consistency with screenshot */
    }
}

.brand-box {
    min-height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-color: #f1f5f9 !important;
}

.brand-img {
    max-height: 35px;
    max-width: 85%;
    object-fit: contain;
    filter: grayscale(0);
    transition: transform 0.3s ease;
}

.brand-filter-item.large .brand-img {
    max-height: 45px;
}

.brand-filter-item.small .brand-img {
    max-height: 25px;
}

.brand-filter-item input:checked+.brand-box {
    border-color: #d92026 !important;
    background: #fffafa;
    box-shadow: 0 5px 15px rgba(217, 32, 38, 0.08);
}

/* Modern Checkboxes (Language Aware) */
.modern-check {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 12px;
}

.modern-check input {
    appearance: none;
    width: 22px;
    height: 22px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin: 0 !important;
}

[dir="rtl"] .modern-check {
    flex-direction: row;
    /* Input first (Right), Label second (Left) */
}

[dir="ltr"] .modern-check {
    flex-direction: row;
    /* Input first (Left), Label second (Right) */
}

.modern-check input:checked {
    background: #d92026;
    border-color: #d92026;
}

.modern-check input:checked::after {
    content: "\F26E";
    /* Bootstrap bi-check */
    font-family: "bootstrap-icons";
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
}

.modern-check label {
    font-size: 1rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    margin-bottom: 0;
    text-align: start;
    line-height: 1.4;
}

.modern-check:hover input {
    border-color: #d92026;
}

/* Button Redesign */
.btn-danger.rounded-pill {
    padding: 14px;
    font-size: 1.2rem;
    letter-spacing: 0;
    box-shadow: 0 10px 30px rgba(217, 32, 38, 0.2);
    transition: all 0.3s ease;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(217, 32, 38, 0.3);
}

/* Home Section Titles */
section h2.fw-bold {
    position: relative;
    font-size: 1.75rem;
}

/* Multi-Range Price Slider */
.price-slider-container .range-slider-wrapper {
    display: flex;
    align-items: center;
}

.price-slider-container input[type="range"] {
    pointer-events: none;
    height: 6px;
    background: #e2e8f0;
    border-radius: 5px;
    appearance: none;
    outline: none;
}

.price-slider-container input[type="range"]::-webkit-slider-thumb {
    pointer-events: auto;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #d92026;
    border: 3px solid #fff;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    appearance: none;
    transition: transform 0.2s ease;
}

.price-slider-container input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.price-slider-container #priceMax {
    background: transparent;
}

.price-slider-container .input-group-text {
    font-size: 0.7rem;
    font-weight: 800;
    color: #64748b;
}

.price-slider-container .form-control {
    font-size: 0.8rem;
    font-weight: 700;
    color: #1e293b;
    padding: 0.25rem 0.5rem;
}

/* Product Gallery Scrollbar Fix */
.carousel-indicators-modern {
    scrollbar-width: thin;
    scrollbar-color: #d92026 #f1f5f9;
}

.carousel-indicators-modern::-webkit-scrollbar {
    height: 4px;
}

.carousel-indicators-modern::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.carousel-indicators-modern::-webkit-scrollbar-thumb {
    background: #d92026;
    border-radius: 10px;
}

.carousel-indicators-modern .flex-shrink-0 {
    transition: all 0.2s ease;
}

.carousel-indicators-modern .flex-shrink-0:hover {
    border-color: #d92026 !important;
    transform: translateY(-2px);
}

/* Search Autocomplete Suggestions */
.autocomplete-suggestions {
    position: absolute;
    top: 100%;
    left: auto;
    right: 0;
    width: 450px;
    max-width: 92vw;
    background: #fff;
    z-index: 1100;
    margin-top: 10px;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.15);
    scrollbar-width: thin;
}

.autocomplete-item {
    padding: 12px 16px !important;
    border-bottom: 1px solid #f8f9fa !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff;
    display: flex !important;
    align-items: center;
}

.autocomplete-item:hover {
    background: #f8fafc !important;
}

.autocomplete-item .item-name {
    color: #2d3436 !important;
    line-height: 1.4 !important;
    transition: color 0.2s ease;
    font-size: 12px;
}

.autocomplete-item:hover .item-name {
    color: #e31e24 !important;
}

.autocomplete-item .item-price {
    color: #e31e24 !important;
    font-weight: 800 !important;
}

.autocomplete-item img {
    background: #fff;
    padding: 2px;
    max-width: 80px;
}

[dir="rtl"] .autocomplete-item .flex-shrink-0 {
    margin-right: 0 !important;
    margin-left: 0.75rem !important;
}

[dir="rtl"] .autocomplete-suggestions {
    left: 0;
    right: auto;
    text-align: right;
}

/* Enhanced Price Slider Styling */
.price-slider-container {
    background: #fcfcfc;
    padding: 20px;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.range-slider-wrapper {
    height: 30px !important;
}

.price-slider-container input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 5px;
    background: #edf2f7;
    border-radius: 10px;
    outline: none;
    position: absolute;
    margin: 0;
}

.price-slider-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    background: #d92026;
    border: 4px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(217, 32, 38, 0.2);
    position: relative;
    z-index: 2;
}

.price-slider-container .input-group {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.price-slider-container .input-group:focus-within {
    border-color: #d92026;
    box-shadow: 0 0 0 3px rgba(217, 32, 38, 0.05);
}

.price-slider-container .input-group-text {
    background: #f8fafc;
    border: none;
    font-size: 0.75rem;
    color: #94a3b8;
    padding: 0 12px;
}

.price-slider-container .form-control {
    background: transparent;
    border: none;
    font-weight: 700;
    font-size: 0.9rem;
    color: #1e293b;
    padding: 10px;
}

[dir="rtl"] .price-slider-container .input-group-text {
    border-right: none;
    border-left: 1px solid #e2e8f0;
}

.price-value-label {
    font-size: 0.85rem;
    font-weight: 800;
    color: #1e293b;
}

.price-currency {
    font-size: 0.65rem;
    color: #94a3b8;
    text-transform: uppercase;
    margin-right: 4px;
}

/* Floating Buttons Modernization */
.floated-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

[dir="rtl"] .floated-buttons {
    right: auto;
    left: 30px;
}

.float-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white !important;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
}

.float-btn:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.float-whatsapp {
    background: #25d366;
    animation: whatsapp-pulse 2s infinite;
}

.float-facebook {
    background: #1877f2;
}

.float-top {
    background: #1e293b;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.float-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@media (max-width: 768px) {
    .floated-buttons {
        bottom: 85px;
        /* Positioned above the mobile bottom nav */
        right: 20px;
        gap: 10px;
    }

    [dir="rtl"] .floated-buttons {
        left: auto;
        right: 20px;
    }

    .float-btn {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}

/* Auth Pages Styling */
.auth-page-wrapper {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.auth-card {
    transition: transform 0.3s ease;
}

.auth-header {
    background: linear-gradient(45deg, #d92026 0%, #b01a1f 100%);
    position: relative;
}

.auth-header::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 15px 15px 0 15px;
    border-style: solid;
    border-color: #b01a1f transparent transparent transparent;
}

.input-group-auth {
    position: relative;
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 2px solid #f1f5f9;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.input-group-auth:focus-within {
    border-color: #b01a1f;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(176, 26, 31, 0.05);
}

.input-group-auth.border-danger {
    border-color: #dc3545 !important;
    background: #fff8f8 !important;
}

.input-group-auth i {
    position: absolute;
    left: 18px;
    color: #94a3b8;
    font-size: 1.1rem;
    z-index: 5;
    transition: color 0.3s ease;
}

.input-group-auth:focus-within i {
    color: #b01a1f;
}

[dir="rtl"] .input-group-auth i {
    left: auto;
    right: 18px;
}

.auth-input {
    padding: 14px 15px 14px 45px !important;
    border: none !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-weight: 500;
    width: 100%;
    outline: none !important;
}

[dir="rtl"] .auth-input {
    padding: 14px 45px 14px 15px !important;
}

.auth-input:focus {
    box-shadow: none !important;
    outline: none !important;
}

/* Suppress Bootstrap default validation feedback on the input element */
.auth-input.is-invalid,
.auth-input.is-valid,
.auth-input:invalid,
.auth-input:valid {
    border: none !important;
    background-image: none !important;
    box-shadow: none !important;
}

.filter-white {
    filter: brightness(0) invert(1);
}

.auth-card .btn-danger {
    padding: 14px;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .auth-page-wrapper {
        padding: 20px !important;
    }

    .card-body {
        padding: 30px !important;
    }
}

/* Auth Logo Refinement */
.auth-logo {
    background: #fff;
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.auth-logo img {
    max-width: 60%;
    height: auto;
}

/* Home Page Category Grid */
.category-name-home {
    font-size: 0.8rem;
    line-height: 1.2;
    margin-top: 5px;
    color: #334155;
    display: block;
}

.category-img-wrapper img {
    max-height: 80px;
    object-fit: contain;
}

.category-img-card {
    transition: transform 0.2s ease;
    padding: 10px;
}

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

/* Mobile Product Card Refinements */
@media (max-width: 768px) {
    .product-card {
        padding: 8px !important;
        border-radius: 20px !important;
    }

    .product-image-wrapper {
        height: 160px !important;
        margin-bottom: 12px !important;
        border-radius: 18px !important;
    }

    .product-info {
        padding: 0 4px !important;
    }

    .product-title {
        font-size: 0.82rem !important;
        margin-bottom: 8px !important;
        height: 2.6em !important;
    }

    .current-price {
        font-size: 1.15rem !important;
    }

    .old-price {
        font-size: 0.75rem !important;
    }

    .product-price {
        margin-bottom: 10px !important;
        gap: 4px !important;
    }

    .add-to-cart-btn {
        padding: 8px !important;
        font-size: 0.75rem !important;
        border-radius: 12px !important;
    }

    .product-category {
        font-size: 0.65rem !important;
    }
}

/* Premium Section Titles */
h2.fw-bold.display-5 {
    font-family: 'Outfit', 'Cairo', sans-serif !important;
    font-weight: 900 !important;
    letter-spacing: -1.5px;
    color: var(--secondary);
    position: relative;
}

h2.fw-bold.display-5::after {
    content: '';
    display: block;
    width: 60px;
    height: 5px;
    background: var(--primary);
    margin: 15px auto 0;
    border-radius: 10px;
}

/* Final Premium Polish */
.btn,
.nav-link,
.nav-item-mobile,
.product-card,
.brand-card-modern,
.category-img-card {
    -webkit-tap-highlight-color: transparent;
}

.add-to-cart-btn:active {
    transform: scale(0.95);
}

.category-img-card:active {
    transform: scale(0.92);
}

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

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

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Elegant Text Selection */
::selection {
    background: var(--primary-light);
    color: var(--primary);
}

/* Premium Cart Refinements Continued */
.cart-empty-state {
    padding: 60px 20px;
    text-align: center;
}

.cart-empty-state i {
    font-size: 5rem;
    color: var(--primary-light);
    margin-bottom: 25px;
    display: block;
}

.cart-empty-state h5 {
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 10px;
}

.cart-empty-state p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.cart-summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.cart-summary-item .label {
    color: var(--text-muted);
    font-weight: 600;
}

.cart-summary-item .value {
    color: var(--secondary);
    font-weight: 800;
}

.cart-total {
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    margin-top: 15px;
    font-size: 1.25rem;
}

.cart-total .value {
    color: var(--primary);
}

.checkout-btn-premium {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: white !important;
    border: none;
    width: 100%;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 25px rgba(227, 30, 36, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.checkout-btn-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(227, 30, 36, 0.35);
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    background: #f1f5f9;
    width: fit-content;
    padding: 4px;
    border-radius: 100px;
}

.cart-qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: white;
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
}

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

/* Cart Footer Toggle Helper */
.cart-offcanvas .offcanvas-footer.show-footer {
    display: block !important;
}

/* Premium About Page Refinements */
.about-hero {
    background: linear-gradient(to bottom, #f8fafc 0%, #ffffff 100%);
    border-bottom: 1px solid var(--glass-border);
}

.about-page-modern .lead {
    line-height: 1.6;
    font-weight: 500;
}

.value-card {
    background: #ffffff;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: var(--transition-smooth);
}

.value-card:hover {
    box-shadow: var(--shadow-card);
    transform: translateY(-8px);
    border-color: var(--primary-light);
}

.value-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: var(--transition-smooth);
}

.value-card:hover .value-icon {
    background: var(--primary);
    color: #ffffff;
    transform: rotate(10deg);
}

@media (max-width: 768px) {
    .about-hero {
        padding: 40px 0 !important;
    }

    .about-main .row {
        flex-direction: column-reverse;
    }

    .about-values {
        margin: 0 15px !important;
        border-radius: 30px !important;
    }

    .value-card {
        border: none !important;
        background: transparent !important;
    }
}

/* Utility Classes */
.transition-all {
    transition: all 0.3s ease;
}

.hover-opacity-100:hover {
    opacity: 1 !important;
}

.opacity-75 {
    opacity: 0.75;
}

/* Contact Page Modernization */
.contact-page-modern {
    background: #f8fafc;
}

.contact-card-wrapper {
    border: none;
    transition: transform 0.3s ease;
}

.contact-info-list .info-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.contact-info-list .d-flex:hover .info-icon {
    background-color: rgba(255, 255, 255, 0.4) !important;
    transform: scale(1.1);
}

.modern-form .form-floating>.form-control {
    background-color: #ffffff;
    padding-top: 1.625rem;
    padding-bottom: 0.625rem;
}

.modern-form .form-floating>label {
    padding: 1rem 0.75rem;
    color: #64748b;
}

.modern-form .form-control:focus {
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(217, 32, 38, 0.1);
    border-color: rgba(217, 32, 38, 0.2);
}

.social-links-contact a {
    transition: all 0.3s ease;
}

.social-links-contact a:hover {
    background-color: #ffffff !important;
    color: var(--primary) !important;
    transform: translateY(-3px);
}

#successRow .success-icon i {
    animation: scale-up 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes scale-up {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

@media (max-width: 991px) {
    .contact-card-wrapper {
        border-radius: 20px !important;
    }
}

/* Search Autocomplete Utilities */
.transition-all {
    transition: all 0.3s ease;
}

.hover-bg-light:hover {
    background-color: #f8f9fa !important;
}

#autocomplete-results {
    max-height: 400px;
    overflow-y: auto;
    z-index: 9999;
    width: 100%;
}

.min-w-0 {
    min-width: 0;
}