/* RTL/LTR Support */
[dir="rtl"] {
    text-align: right;
}

[dir="ltr"] {
    text-align: left;
}

/* Language Toggle Button */
.language-toggle {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.language-toggle:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--secondary);
    padding: 8px;
    z-index: 10001;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
}

.logo {
    height: 48px;
    /* Reverted to 48px */
    flex-shrink: 0;
    transition: all 0.3s ease;
}

/* Mobile adjustment for logo if needed */
/* Mobile adjustment for logo removed to ensure global consistency */

/* Menu Overlay */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

/* RTL Positioning */
[dir="rtl"] .search-box input {
    padding: 12px 18px 12px 50px;
}

[dir="rtl"] .search-box button {
    right: auto;
    left: 4px;
}

[dir="rtl"] .cart-count {
    right: auto;
    left: 8px;
}

[dir="rtl"] .deal-badge,
[dir="rtl"] .product-badge {
    left: auto;
    right: 12px;
}

[dir="rtl"] .slide-btn:hover {
    transform: translateX(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
}

[dir="rtl"] .phone-feature {
    transform: translateX(30px);
}

[dir="rtl"] .phone-feature.visible {
    transform: translateX(0);
}

[dir="rtl"] .app-btn-text {
    text-align: right;
}

[dir="rtl"] .footer-col a:hover {
    padding-inline-start: 5px;
}

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

:root {
    --primary: #E85D04;
    --primary-dark: #D45103;
    --primary-light: #F48C06;
    --secondary: #1A1A1A;
    --dark: #0D0D0D;
    --yellow: #FECC00;
    --green: #38A169;
    --gray-100: #f7f7f7;
    --gray-200: #eeeeee;
    --gray-300: #e0e0e0;
    --gray-400: #bdbdbd;
    --gray-500: #9e9e9e;
    --gray-600: #757575;
    --gray-700: #616161
}

html {
    scroll-behavior: smooth
}

body {
    font-family: 'Cairo', sans-serif;
    background: #fff;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden
}

a {
    text-decoration: none;
    color: inherit
}

.container,
.header .container {
    max-width: 1700px;
    margin: 0 auto;
    padding: 0 30px
}

/* HERO - ENHANCED */
.hero {
    padding: 15px 0;
    background: var(--gray-100)
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px
}

.hero-slider {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 2.8/1
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .5s
}

.slide.active {
    opacity: 1
}

.slide-inner {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 50px
}

.slide-1 {
    background: linear-gradient(135deg, var(--dark) 0%, var(--secondary) 100%)
}

.slide-2 {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%)
}

.slide-3 {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%)
}

.slide-fullimg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent !important
}

.slide-bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.slide-fullimg .slide-inner {
    position: relative;
    z-index: 1;
}

.slide-fullimg .slide-title,
.slide-fullimg .slide-subtitle {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6)
}

.slide-content {
    flex: 1;
    color: #fff
}

.slide-badge {
    display: inline-block;
    background: var(--primary);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
    animation: fadeInUp .6s
}

.slide-2 .slide-badge {
    background: var(--secondary)
}

.slide-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 8px;
    animation: fadeInUp .6s .1s both
}

.slide-subtitle {
    font-size: 14px;
    opacity: .9;
    margin-bottom: 20px;
    animation: fadeInUp .6s .2s both
}

.slide-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: var(--secondary);
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    transition: all .3s;
    animation: fadeInUp .6s .3s both
}

.slide-btn:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .2)
}

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

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

.slide-image {
    width: 280px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px
}

.slide-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .3));
    animation: floatPhone 3s ease-in-out infinite
}

@keyframes floatPhone {

    0%,
    100% {
        transform: translateY(0) rotateY(0)
    }

    50% {
        transform: translateY(-10px) rotateY(5deg)
    }
}

.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .5);
    cursor: pointer;
    transition: all .3s
}

.slider-dot.active {
    width: 24px;
    border-radius: 4px;
    background: #fff
}

.hero-side {
    display: flex;
    flex-direction: column;
    gap: 15px
}

.hero-banner {
    flex: 1;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    cursor: pointer;
    transition: all .3s;
    overflow: hidden;
    position: relative
}

.hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, .1));
    opacity: 0;
    transition: opacity .3s;
    pointer-events: none
}

.hero-banner-text {
    position: relative;
    z-index: 2
}

.hero-banner:hover::before {
    opacity: 1
}

.hero-banner:hover {
    transform: scale(1.02)
}

.hero-banner-1 {
    background: linear-gradient(135deg, #7c3aed, #5b21b6)
}

.hero-banner-2 {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark))
}

.hero-banner-fullimg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent !important
}

.hero-banner-fullimg.hero-banner-1,
.hero-banner-fullimg.hero-banner-2 {
    background: none
}

.hero-banner-fullimg .hero-banner-text h3,
.hero-banner-fullimg .hero-banner-text p {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5)
}

.hero-banner-fullimg .hero-banner-btn {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3)
}

.hero-banner-hasimg {
    padding: 0;
    background: none !important
}

.hero-banner-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1
}

.hero-banner-hasimg .hero-banner-text {
    position: relative;
    z-index: 2;
    padding: 20px
}

.hero-banner-hasimg .hero-banner-text h3,
.hero-banner-hasimg .hero-banner-text p {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5)
}

.hero-banner-hasimg .hero-banner-btn {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3)
}

.hero-banner-badge {
    display: inline-block;
    background: var(--primary);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    margin-bottom: 6px;
    text-transform: uppercase
}

.hero-banner-text h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px
}

.hero-banner-text p {
    font-size: 12px;
    opacity: .9;
    margin-bottom: 8px
}

.hero-banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    color: var(--secondary);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    transition: all .3s;
    text-decoration: none
}

.hero-banner-btn:hover {
    transform: translateX(3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .2)
}

.hero-banner-icon {
    font-size: 40px;
    animation: bounce 2s infinite
}

.hero-banner-img {
    width: 125px;
    height: 125px;
    object-fit: contain;
    border-radius: 8px;
    flex-shrink: 0;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .2));
    animation: bounce 2s infinite
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-5px)
    }
}

/* USP BAR */
.usp-bar {
    padding: 20px 0;
    background: #fff;
    border-bottom: 1px solid var(--gray-200)
}

.usp-bar .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px
}

.usp-item {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all .3s;
    flex: 1;
    min-width: 200px
}

.usp-item:hover {
    transform: translateY(-3px)
}

.usp-icon {
    width: 45px;
    height: 45px;
    background: var(--gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 18px;
    transition: all .3s;
    flex-shrink: 0
}

.usp-item:hover .usp-icon {
    background: var(--primary);
    color: #fff
}

.usp-text strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--secondary)
}

.usp-text span {
    font-size: 11px;
    color: var(--gray-600)
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary)
}

.section-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    transition: all .3s
}

.section-link:hover {
    gap: 10px
}

/* CATEGORIES */
.categories {
    padding: 30px 0
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 12px
}

.category-card {
    text-align: center;
    padding: 20px 10px;
    background: var(--gray-100);
    border-radius: 12px;
    cursor: pointer;
    transition: all .3s;
    position: relative;
}

.category-card:hover {
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .1);
    transform: translateY(-8px)
}

.category-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 10px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary);
    transition: all .3s
}

.category-card:hover .category-icon {
    background: var(--primary);
    color: #fff;
    transform: scale(1.1) rotate(10deg)
}

.category-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-700)
}

.category-discount-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--primary);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 8px;
    z-index: 1;
}

/* ==================== FANCY PHONE SHOWCASE ==================== */
.phone-showcase {
    padding: 80px 0;
    background: #000;
    position: relative;
    overflow: hidden
}

.phone-showcase::before {
    content: 'JUMBOTECH';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 15vw;
    font-weight: 900;
    color: rgba(255, 255, 255, .02);
    white-space: nowrap;
    pointer-events: none
}

.phone-showcase .container {
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 1
}

.phone-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
    perspective: 1500px
}

.phone-wrapper {
    position: relative;
    transform-style: preserve-3d;
    transition: transform .1s
}

.phone-wrapper img {
    width: 300px;
    filter: drop-shadow(0 50px 100px rgba(232, 93, 4, .4))
}

.phone-glow {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 15px;
    background: var(--primary);
    border-radius: 50%;
    filter: blur(25px);
    opacity: .6
}

.phone-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    height: 350px;
    border: 1px solid rgba(232, 93, 4, .2);
    border-radius: 50%;
    animation: ringPulse 3s infinite
}

.phone-ring:nth-child(2) {
    width: 400px;
    height: 400px;
    animation-delay: .5s
}

.phone-ring:nth-child(3) {
    width: 450px;
    height: 450px;
    animation-delay: 1s
}

@keyframes ringPulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: .5
    }

    100% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0
    }
}

.phone-info {
    flex: 1;
    color: #fff
}

.phone-badge {
    display: inline-block;
    background: var(--primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 15px
}

.phone-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 15px
}

.phone-title span {
    color: var(--primary)
}

.phone-desc {
    font-size: 16px;
    color: var(--gray-400);
    margin-bottom: 30px;
    line-height: 1.7
}

.phone-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px
}

.phone-feature {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, .05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .1);
    transition: all .3s;
    opacity: 0;
    transform: translateX(30px)
}

.phone-feature.visible {
    opacity: 1;
    transform: translateX(0)
}

.phone-feature:hover {
    background: rgba(255, 255, 255, .1);
    border-color: var(--primary)
}

.phone-feature .icon {
    width: 45px;
    height: 45px;
    background: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px
}

.phone-feature .text h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px
}

.phone-specs-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 12px;
    opacity: .85
}

.phone-feature .text p {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, .9);
    margin: 0
}

.phone-price {
    display: flex;
    align-items: baseline;
    gap: 15px;
    margin-bottom: 25px
}

.phone-price .current {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary)
}

.phone-price .old {
    font-size: 16px;
    color: var(--gray-500);
    text-decoration: line-through
}

.phone-cta {
    display: flex;
    gap: 15px
}

.btn-primary {
    padding: 14px 35px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: 10px;
    color: #fff;
    font-family: 'Cairo', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all .3s;
    display: flex;
    align-items: center;
    gap: 10px
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(232, 93, 4, .4)
}

.btn-secondary {
    padding: 14px 25px;
    background: transparent;
    border: 2px solid var(--gray-600);
    border-radius: 10px;
    color: #fff;
    font-family: 'Cairo', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all .3s
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary)
}

/* FLASH DEALS */
.flash-deals {
    padding: 40px 0;
    background: #fff
}

.flash-deals .section-title {
    color: #000;
    display: flex;
    align-items: center;
    gap: 10px
}

.flash-deals .section-title i {
    color: var(--primary);
    animation: flash 1s infinite
}

@keyframes flash {
    0%, 100% { opacity: 1 }
    50% { opacity: .5 }
}

.flash-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap
}

.flash-countdown-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #e53e3e;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 8px
}

.flash-countdown-badge i {
    font-size: 12px
}

/* Flash Grid */
.flash-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    margin-top: 20px
}

/* Flash Card */
.flash-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    position: relative;
    transition: all .3s ease;
    display: flex;
    flex-direction: column
}

.flash-card:hover {
    box-shadow: 0 12px 30px rgba(0,0,0,.12);
    transform: translateY(-4px)
}

.flash-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #e53e3e;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    z-index: 2
}

.flash-card-image {
    aspect-ratio: 1/1;
    overflow: hidden;
    background: var(--gray-100)
}

.flash-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease
}

.flash-card:hover .flash-card-image img {
    transform: scale(1.08)
}

.flash-card-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1
}

.flash-card-brand {
    font-size: 10px;
    font-weight: 600;
    color: var(--gray-500);
    margin: 0
}

.flash-card-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--secondary);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    min-height: 36px
}

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

.flash-card-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 4px
}

.flash-price-current {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary)
}

.flash-price-old {
    font-size: 11px;
    color: var(--gray-500);
    text-decoration: line-through
}

/* Stock Bar */
.flash-stock-bar {
    width: 100%;
    height: 6px;
    background: var(--gray-200);
    border-radius: 99px;
    overflow: hidden;
    margin-top: 8px
}

.flash-stock-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 99px;
    transition: width .3s
}

.flash-stock-text {
    font-size: 10px;
    color: var(--gray-500);
    margin: 2px 0 0
}

/* Responsive */
@media (max-width: 1200px) {
    .flash-grid { grid-template-columns: repeat(4, 1fr) }
}

@media (max-width: 768px) {
    .flash-grid { grid-template-columns: repeat(2, 1fr) }
}

.countdown-item {
    background: var(--secondary);
    padding: 5px 10px;
    border-radius: 6px;
    font-weight: 700;
    min-width: 36px;
    text-align: center
}

.products-slider {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-behavior: smooth
}

.products-slider::-webkit-scrollbar {
    height: 6px
}

.products-slider::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .3);
    border-radius: 3px
}

/* PRODUCT CARD */
.product-card {
    min-width: 190px;
    max-width: 190px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: all .4s cubic-bezier(.175, .885, .32, 1.275);
    position: relative
}

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

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #e53e3e;
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    z-index: 2
}

.product-wishlist {
    position: absolute;
    top: 10px;
    right: 10px;
    left: auto;
    width: 32px;
    height: 32px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
    z-index: 2;
    color: var(--gray-400);
    transition: all .3s
}

.product-wishlist:hover {
    transform: scale(1.2)
}

.product-wishlist.active {
    color: #e53e3e;
    animation: heartBeat .5s
}

[dir="rtl"] .product-wishlist {
    right: auto;
    left: 10px;
}

[dir="rtl"] .price-current,
[dir="rtl"] .price-old,
[dir="rtl"] .horizontal-card-price,
[dir="rtl"] .price,
[dir="rtl"] .phone-price .current,
[dir="rtl"] .phone-price .old {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 4px;
    align-items: baseline;
}

@keyframes heartBeat {
    0% {
        transform: scale(1)
    }

    25% {
        transform: scale(1.3)
    }

    50% {
        transform: scale(1)
    }

    75% {
        transform: scale(1.3)
    }

    100% {
        transform: scale(1)
    }
}

.product-image {
    height: 170px;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    overflow: hidden
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform .5s
}

.product-card:hover .product-image img {
    transform: scale(1.1) rotate(3deg)
}

.product-info {
    padding: 12px
}

.product-brand {
    font-size: 10px;
    color: var(--gray-500);
    text-transform: uppercase;
    margin-bottom: 4px
}

.product-name {
    font-size: 12px;
    font-weight: 500;
    color: var(--secondary);
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    height: 34px
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px
}

.product-rating i {
    color: #fbbf24;
    font-size: 10px
}

.product-rating span {
    font-size: 10px;
    color: var(--gray-500)
}

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

.price-current {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary)
}

.price-old {
    font-size: 11px;
    color: var(--gray-500);
    text-decoration: line-through
}

.express-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--yellow);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
    color: var(--secondary);
    margin-top: 8px
}

/* ==================== HORIZONTAL SCROLL PRODUCTS ==================== */
.horizontal-products {
    padding: 50px 0;
    background: #000;
    overflow: hidden;
    position: relative
}

.horizontal-products .section-header {
    margin-bottom: 30px
}

.horizontal-products .section-title {
    color: #fff
}

.horizontal-products .section-title span {
    color: var(--primary)
}

.horizontal-products .section-link {
    color: var(--primary)
}

.horizontal-slider-wrapper {
    position: relative;
    overflow: visible;
    padding: 0 70px
}

@media(max-width:768px) {
    .horizontal-slider-wrapper {
        padding: 0 50px
    }
}

.horizontal-track {
    display: flex;
    gap: 20px;
    cursor: grab;
    user-select: none;
    padding: 20px 0;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch
}

.horizontal-track::-webkit-scrollbar {
    display: none
}

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

.horizontal-track:active {
    cursor: grabbing
}

.horizontal-card {
    min-width: 350px;
    height: 450px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    transition: all .5s;
    scroll-snap-align: start
}

.horizontal-card:hover {
    transform: scale(1.03)
}

.horizontal-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, .9) 100%);
    z-index: 1
}

.horizontal-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s
}

.horizontal-card:hover img {
    transform: scale(1.1)
}

.horizontal-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    z-index: 2;
    color: #fff
}

.horizontal-card-tag {
    display: inline-block;
    background: var(--primary);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 10px;
    font-weight: 700;
    margin-bottom: 12px
}

.horizontal-card-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px
}

.horizontal-card-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary)
}

/* Slider Navigation Buttons */
.slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, .2);
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s;
    opacity: 0;
    pointer-events: none;
    border: none;
    outline: none
}

.horizontal-products:hover .slider-nav-btn {
    opacity: 1;
    pointer-events: auto
}

.slider-nav-btn:hover:not(:disabled) {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-50%) scale(1.1)
}

.slider-nav-btn:active:not(:disabled) {
    transform: translateY(-50%) scale(0.95)
}

.slider-nav-btn.prev {
    left: 20px
}

.slider-nav-btn.next {
    right: 20px
}

.slider-nav-btn:disabled {
    opacity: .3;
    cursor: not-allowed;
    pointer-events: none
}

[dir="rtl"] .slider-nav-btn.prev {
    left: auto;
    right: 20px
}

[dir="rtl"] .slider-nav-btn.next {
    right: auto;
    left: 20px
}

/* BANNERS */
.banners {
    padding: 30px 0
}

.banners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px
}

.banner-card {
    border-radius: 12px;
    padding: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    cursor: pointer;
    transition: all .3s;
    min-height: 140px;
    position: relative;
    overflow: hidden
}

.banner-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, .1));
    transform: translateX(-100%);
    transition: transform .5s
}

.banner-card:hover::before {
    transform: translateX(100%)
}

.banner-card:hover {
    transform: scale(1.02)
}

.banner-1 {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark))
}

.banner-2 {
    background: linear-gradient(135deg, #2d3748, #1a202c)
}

.banner-3 {
    background: linear-gradient(135deg, #7c3aed, #5b21b6)
}

.banner-text h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px
}

.banner-text p {
    font-size: 12px;
    opacity: .9;
    margin-bottom: 12px
}

.banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, .2);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    transition: all .3s
}

.banner-card:hover .banner-btn {
    background: rgba(255, 255, 255, .3)
}

.banner-icon {
    font-size: 50px;
    transition: all .3s
}

.banner-card:hover .banner-icon {
    transform: scale(1.2) rotate(10deg)
}

/* ==================== CATEGORY BANNERS ==================== */
.cat-banners {
    padding: 50px 0
}

.cat-banners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px
}

.cat-banner-card {
    position: relative;
    height: 260px;
    border-radius: 14px;
    overflow: hidden;
    display: block;
    cursor: pointer;
    text-decoration: none
}

.cat-banner-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease
}

.cat-banner-card:hover img {
    transform: scale(1.07)
}

.cat-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.78) 0%, rgba(0,0,0,.15) 55%, transparent 100%)
}

.cat-banner-content {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 24px;
    color: #fff
}

.cat-banner-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.2
}

.cat-banner-subtitle {
    font-size: 13px;
    opacity: .88;
    margin-bottom: 12px
}

.cat-banner-link {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 2px;
    color: #fff
}

[dir="rtl"] .cat-banner-content {
    left: auto;
    right: 0
}

@media (max-width: 991px) {
    .cat-banners-grid { grid-template-columns: repeat(2, 1fr) }
    .cat-banner-card:last-child { grid-column: span 2 }
}

@media (max-width: 575px) {
    .cat-banners-grid { grid-template-columns: 1fr }
    .cat-banner-card:last-child { grid-column: span 1 }
    .cat-banner-card { height: 200px }
}

/* ==================== BEST SELLERS BENTO ==================== */
.best-sellers-section {
    padding: 60px 0;
    background: var(--gray-100)
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto;
    gap: 20px
}

.bento-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0,0,0,.07);
    border: 2px solid transparent;
    transition: border-color .25s, box-shadow .25s, transform .25s;
    position: relative
}

.bento-card:hover {
    border-color: var(--primary-light);
    box-shadow: 0 6px 24px rgba(0,0,0,.11);
    transform: translateY(-3px)
}

.bento-card--featured {
    grid-column: span 2;
    grid-row: span 2;
    display: flex;
    flex-direction: column
}

.bento-card--small {
    display: flex;
    flex-direction: column
}

/* Images */
.bento-card__image {
    overflow: hidden;
    position: relative;
    background: var(--gray-100)
}

.bento-card__image--large {
    height: 280px
}

.bento-card__image--small {
    height: 160px
}

.bento-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .6s ease
}

.bento-card:hover .bento-card__image img {
    transform: scale(1.05)
}

/* Trending badge inside image */
.bento-trending-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(4px);
    font-size: 11px;
    font-weight: 700;
    color: var(--secondary);
    padding: 4px 10px;
    border-radius: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,.1)
}

/* Discount badge */
.bento-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #e53e3e;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    z-index: 2
}

/* Wishlist */
.bento-wishlist {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    box-shadow: 0 1px 4px rgba(0,0,0,.12);
    transition: background .2s, color .2s
}

.bento-wishlist:hover,
.bento-wishlist.active {
    background: var(--primary);
    color: #fff
}

/* Body */
.bento-card__body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1
}

.bento-card__body--small {
    padding: 14px
}

.bento-card__brand {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
    letter-spacing: .5px
}

.bento-card__name {
    font-size: 17px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 8px;
    line-height: 1.35
}

.bento-card__name--small {
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.bento-card__desc {
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.55;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden
}

/* Footer */
.bento-card__footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px
}

.bento-card__footer--small {
    padding-top: 10px;
    border-top: 1px solid var(--gray-200)
}

.bento-card__price {
    display: flex;
    align-items: baseline;
    gap: 8px
}

.bento-price-current {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary)
}

.bento-card--small .bento-price-current {
    font-size: 15px
}

.bento-price-old {
    font-size: 13px;
    color: var(--gray-500);
    text-decoration: line-through
}

.bento-btn {
    background: var(--secondary);
    color: #fff;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s
}

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

.bento-cart-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--gray-100);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    transition: background .2s, color .2s;
    text-decoration: none
}

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

/* Responsive */
@media (max-width: 1199px) {
    .bento-grid { grid-template-columns: repeat(3, 1fr) }
    .bento-card--featured { grid-column: span 2; grid-row: span 1 }
    .bento-card__image--large { height: 220px }
}

@media (max-width: 767px) {
    .bento-grid { grid-template-columns: repeat(2, 1fr) }
    .bento-card--featured { grid-column: span 2; grid-row: span 1 }
    .bento-card__image--large { height: 200px }
    .bento-card__name { font-size: 14px }
    .bento-price-current { font-size: 16px }
}

@media (max-width: 480px) {
    .bento-grid { grid-template-columns: 1fr }
    .bento-card--featured { grid-column: span 1 }
}

/* ==================== 3D FLIP CARDS ==================== */
.flip-section {
    padding: 60px 0;
    background: var(--gray-100)
}

.flip-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px
}

.flip-card {
    height: 380px;
    perspective: 1000px;
    cursor: pointer
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform .8s;
    transform-style: preserve-3d
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg)
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    border-radius: 16px;
    overflow: hidden
}

.flip-card-front {
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .1)
}

.flip-card-front img {
    width: 100%;
    height: 65%;
    object-fit: contain;
    padding: 20px;
    background: var(--gray-100)
}

.flip-card-front-content {
    padding: 15px 20px
}

.flip-card-front h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--secondary)
}

.flip-card-front p {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary)
}

.flip-card-back {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px;
    color: #fff;
    text-align: center
}

.flip-card-back h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 10px
}

.flip-card-back p {
    font-size: 13px;
    opacity: .9;
    margin-bottom: 20px;
    line-height: 1.6
}

.flip-card-back .price {
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 15px
}

.flip-card-back button {
    padding: 12px 30px;
    background: #fff;
    border: none;
    border-radius: 25px;
    color: var(--primary);
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: all .3s
}

.flip-card-back button:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, .2)
}

/* BRANDS */
.brands {
    padding: 30px 0;
    background: var(--gray-100)
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px
}

.brand-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all .3s;
    min-height: 100px
}

.brand-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, .1);
    transform: translateY(-5px)
}

.brand-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-600);
    transition: color .3s
}

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

.brand-logo {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain
}

/* ==================== MARQUEE ==================== */
.marquee {
    background: var(--secondary);
    padding: 15px 0;
    overflow: hidden
}

.marquee-track {
    display: flex;
    animation: marquee 25s linear infinite
}

.marquee-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 40px;
    white-space: nowrap;
    color: #fff;
    font-size: 14px;
    font-weight: 500
}

.marquee-item i {
    color: var(--primary);
    font-size: 18px
}

@keyframes marquee {
    0% {
        transform: translateX(0)
    }

    100% {
        transform: translateX(-50%)
    }
}

[dir="rtl"] .marquee-track {
    animation: marqueeRTL 25s linear infinite
}

@keyframes marqueeRTL {
    0% {
        transform: translateX(-50%)
    }

    100% {
        transform: translateX(0)
    }
}

/* FEATURES SECTION */
.features-section {
    padding: 50px 0;
    background: var(--secondary)
}

.features-section .section-title {
    color: #fff;
    text-align: center;
    margin-bottom: 30px
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px
}

.feature-card {
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    transition: all .3s;
    cursor: pointer
}

.feature-card:hover {
    background: rgba(255, 255, 255, .1);
    border-color: var(--primary);
    transform: translateY(-10px)
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 24px;
    color: #fff;
    transition: all .3s
}

.feature-card:hover .feature-icon {
    transform: scale(1.2) rotate(10deg)
}

.feature-card h3 {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px
}

.feature-card p {
    color: var(--gray-500);
    font-size: 12px;
    line-height: 1.5
}

/* ==================== TESTIMONIALS ==================== */
.testimonials {
    padding: 60px 0;
    background: #fff
}

.testimonials .section-title {
    text-align: center;
    margin-bottom: 40px
}

.testimonials .section-title span {
    color: var(--primary)
}

.testimonials-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px;
    scroll-snap-type: x mandatory
}

.testimonials-track::-webkit-scrollbar {
    display: none
}

.testimonial-card {
    min-width: 350px;
    padding: 30px;
    background: var(--gray-100);
    border-radius: 16px;
    scroll-snap-align: start;
    transition: all .3s
}

.testimonial-card:hover {
    background: #fff;
    box-shadow: 0 15px 40px rgba(0, 0, 0, .1);
    transform: translateY(-5px)
}

.testimonial-stars {
    color: var(--primary);
    font-size: 16px;
    margin-bottom: 15px
}

.testimonial-text {
    font-size: 14px;
    color: var(--gray-700);
    line-height: 1.8;
    margin-bottom: 20px
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px
}

.testimonial-avatar {
    width: 45px;
    height: 45px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700
}

.testimonial-info h4 {
    font-weight: 600;
    font-size: 14px
}

.testimonial-info p {
    font-size: 12px;
    color: var(--gray-500)
}

/* APP SECTION */
.app-section {
    padding: 50px 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    position: relative;
    overflow: hidden
}

.app-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: rgba(255, 255, 255, .05);
    transform: rotate(-20deg)
}

.app-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1
}

.app-text {
    color: #fff;
    max-width: 500px
}

.app-text h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px
}

.app-text p {
    font-size: 14px;
    opacity: .9;
    margin-bottom: 20px
}

.app-buttons {
    display: flex;
    gap: 12px
}

.app-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, .3);
    padding: 10px 20px;
    border-radius: 8px;
    transition: all .3s
}

.app-btn:hover {
    background: rgba(0, 0, 0, .5);
    transform: translateY(-3px)
}

.app-btn i {
    font-size: 24px
}

.app-btn-text {
    text-align: left
}

.app-btn-text span {
    display: block;
    font-size: 10px;
    opacity: .8
}

.app-btn-text strong {
    font-size: 14px
}

.app-image {
    font-size: 150px;
    color: rgba(255, 255, 255, .2)
}

/* RESPONSIVE */
@media (max-width: 1800px) {
    .container,
    .header .container {
        max-width: 1600px;
    }
}

@media (max-width: 1600px) {
    .container,
    .header .container {
        max-width: 1400px;
    }
}

@media (max-width: 1400px) {
    .container,
    .header .container {
        max-width: 1280px;
    }

    .categories-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 1200px) {
    .container,
    .header .container {
        max-width: 1140px;
    }

    .categories-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .flip-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .phone-showcase .container {
        flex-direction: column;
        text-align: center;
        gap: 50px;
    }

    .phone-info {
        text-align: center;
        max-width: 800px;
        margin: 0 auto;
    }

    .phone-features {
        align-items: center;
    }

    .phone-price {
        justify-content: center;
    }

    .phone-cta {
        justify-content: center;
    }

    .phone-feature {
        transform: translateX(0);
        opacity: 1;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hero-side {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .hero-banner {
        aspect-ratio: 2.5/1;
        height: auto;
    }

    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .banners-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .banner-card:last-child {
        grid-column: span 2;
    }

    .brands-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 540px;
        padding: 0 20px;
    }

    .hero-slider {
        aspect-ratio: 2/1;
        min-height: auto;
    }

    .slide-inner {
        flex-direction: column;
        text-align: center;
        justify-content: center;
        padding: 40px 20px;
    }

    .slide-fullimg .slide-inner {
        padding: 20px;
    }

    .slide-content {
        margin-bottom: 30px;
        width: 100%;
    }

    .slide-image {
        width: 240px;
        height: 240px;
        margin: 0 auto;
    }

    .slide-title {
        font-size: 28px;
    }

    .hero-side {
        grid-template-columns: 1fr;
    }

    .hero-banner {
        aspect-ratio: 3/1;
        height: auto;
    }

    .banner-card:last-child {
        grid-column: auto;
    }

    .usp-bar .container {
        justify-content: flex-start;
        padding: 10px 20px;
        overflow-x: auto;
        flex-wrap: nowrap;
        gap: 15px;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }

    .usp-item {
        min-width: 220px;
        flex: 0 0 auto;
        background: var(--gray-100);
        padding: 15px;
        border-radius: 10px;
        scroll-snap-align: start;
    }

    .usp-bar ::-webkit-scrollbar {
        display: none;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .section-link {
        align-self: flex-end;
    }

    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .category-card {
        padding: 15px 5px;
    }

    .app-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
        padding: 30px 0;
    }

    .app-buttons {
        justify-content: center;
    }

    .app-image i {
        font-size: 100px;
    }

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

    .flip-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .flip-card {
        height: auto;
        perspective: none;
    }

    .flip-card-inner {
        transform: none !important;
        transition: none;
        transform-style: flat;
        height: auto;
    }

    .flip-card-back {
        display: none;
    }

    .flip-card-front {
        position: static;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
    }

    .flip-card-front img {
        height: 150px;
        object-fit: contain;
        padding: 12px;
    }

    .flip-card-front-content {
        padding: 10px 12px 12px;
    }

    .flip-card-front h3 {
        font-size: 13px;
        margin-bottom: 4px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .flip-card-front p {
        font-size: 14px;
    }

    .horizontal-card {
        min-width: 200px;
        height: 280px;
    }

    .horizontal-slider-wrapper {
        padding: 0;
    }

    .slider-nav-btn {
        display: none;
    }

    .testimonial-card {
        min-width: 280px;
    }
}

@media (max-width: 576px) {
    .container {
        width: 100%;
        padding: 0 15px;
    }

    .hero-slider {
        aspect-ratio: 16/9;
        min-height: auto;
    }

    .hero-banner {
        aspect-ratio: 2.5/1;
        height: auto;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .product-card {
        min-width: 160px;
        max-width: 160px;
    }

    .phone-title {
        font-size: 24px;
    }

    .phone-price .current {
        font-size: 26px;
    }

    .phone-visual {
        min-height: 300px;
    }

    .phone-wrapper img {
        width: 180px;
    }

    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* =====================================================================
   LATEST PRODUCTS SECTION
   ===================================================================== */
.latest-products {
    padding: 50px 0;
    background: #fff;
}

.latest-products .products-grid {
    grid-template-columns: repeat(5, 1fr);
}

@media (max-width: 1200px) {
    .latest-products .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .latest-products .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .latest-products .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* ===== MOBILE HERO BANNER FIXES ===== */
@media (max-width: 768px) {
    .hero-slider-wrap {
        border-radius: 10px;
    }

    .slide-fullimg .slide-inner {
        padding: 16px 18px;
        align-items: flex-start;
        justify-content: flex-end;
        padding-bottom: 28px;
    }

    .slide-fullimg .slide-content {
        margin-bottom: 0;
        width: 100%;
    }

    .slide-fullimg .slide-title {
        font-size: 20px;
        margin-bottom: 5px;
    }

    .slide-fullimg .slide-subtitle {
        font-size: 12px;
        margin-bottom: 12px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .slide-fullimg .slide-btn {
        padding: 7px 16px;
        font-size: 12px;
    }

    .slide-fullimg .slide-badge {
        font-size: 10px;
        padding: 3px 10px;
        margin-bottom: 8px;
    }
}

@media (max-width: 576px) {
    .slide-fullimg .slide-inner {
        padding: 12px 14px;
        padding-bottom: 24px;
    }

    .slide-fullimg .slide-title {
        font-size: 17px;
    }

    .slide-fullimg .slide-subtitle {
        font-size: 11px;
        margin-bottom: 10px;
    }

    .slide-fullimg .slide-btn {
        padding: 6px 14px;
        font-size: 11px;
        gap: 5px;
    }
}

/* ===== HIGHLIGHT SECTION MOBILE IMAGE FIX ===== */
@media (max-width: 576px) {
    .phone-visual {
        min-height: 360px;
    }

    .phone-wrapper img {
        width: 260px;
    }
}

/* ===== HIGHLIGHT SECTION MOBILE RING FIX ===== */
.phone-visual {
    position: relative;
}

@media (max-width: 768px) {
    .phone-ring {
        width: 290px;
        height: 290px;
    }

    .phone-ring:nth-child(2) {
        width: 340px;
        height: 340px;
    }

    .phone-ring:nth-child(3) {
        width: 390px;
        height: 390px;
    }
}

@media (max-width: 576px) {
    .phone-ring {
        width: 260px;
        height: 260px;
    }

    .phone-ring:nth-child(2) {
        width: 305px;
        height: 305px;
    }

    .phone-ring:nth-child(3) {
        width: 350px;
        height: 350px;
    }
}

/* ===== HIGHLIGHT IMAGE POSITION MOBILE ===== */
@media (max-width: 768px) {
    [dir="rtl"] .phone-wrapper {
        transform: translate(25px, 65px);
    }
    [dir="ltr"] .phone-wrapper {
        transform: translate(-36px, 65px);
    }
}

/* ===== SPECS 2-COLUMN ON MOBILE ===== */
@media (max-width: 768px) {
    .phone-features {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .phone-feature {
        padding: 10px;
        gap: 8px;
        flex-direction: row;
        align-items: center;
    }

    .phone-feature .icon {
        width: 34px;
        height: 34px;
        font-size: 14px;
        border-radius: 8px;
    }

    .phone-feature .text p {
        font-size: 12px;
    }
}

/* ===== SPECS TITLE FULL WIDTH + CENTERED ON MOBILE ===== */
@media (max-width: 768px) {
    .phone-features .phone-specs-title {
        grid-column: span 2;
        text-align: center;
    }
}

/* ===== FOOTER SHOP ON THE GO ===== */
.shop-on-the-go {
    padding: 24px 0;
    border-top: 1px solid var(--gray-200)
}

.shop-on-the-go h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--secondary)
}

.shop-on-the-go .app-store-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap
}

.shop-on-the-go .app-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #1a1a1a;
    color: #fff;
    padding: 10px 18px;
    border-radius: 10px;
    border: 1px solid #333;
    text-decoration: none;
    transition: all .25s
}

.shop-on-the-go .app-btn:hover {
    background: #000;
    border-color: #555;
    transform: translateY(-2px)
}

.shop-on-the-go .app-btn i {
    font-size: 28px;
    color: #fff
}

.shop-on-the-go .app-btn-apple i {
    color: #fff
}

.shop-on-the-go .app-btn-huawei i {
    color: #cf0a2c
}

.shop-on-the-go .app-btn-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    text-align: left
}

.shop-on-the-go .app-btn-text span {
    font-size: 10px;
    opacity: .75
}

.shop-on-the-go .app-btn-text strong {
    font-size: 15px;
    font-weight: 700
}
