/* =====================================================
   ALSHOUF COMPANY — Pro Website with Real Images
   ===================================================== */

/* Global overflow guard — applies on ALL screens, prevents
   decorative blobs / negative offsets from scrolling the page.
   Uses hidden (not clip) for Samsung Internet compatibility. */
html, body { overflow-x: hidden; max-width: 100vw; position: relative; }
.section, .hero, .navbar, .footer { overflow-x: hidden; }

/* Mobile: kill any AOS / decorative transform that could leak right.
   Samsung Internet doesn't always clip transforms on overflow:hidden. */
@media (max-width: 767px) {
    [data-aos] {
        transform: none !important;
        opacity: 1 !important;
    }
    .carousel-btn.prev,
    .carousel-btn.next { right: 6px !important; left: auto !important; }
    .carousel-btn.next { left: 6px !important; right: auto !important; }
    .about-small-img { inset-inline-end: 8px !important; }
    .about-img-badge { inset-inline-start: 8px !important; }
}

:root {
    --primary: #4A8DB8;
    --primary-dark: #2D5F87;
    --primary-darker: #1F3D5A;
    --primary-light: #7AB0D1;
    --accent: #A8D5DA;
    --accent-dark: #7ABCC2;
    --accent-light: #DDF0F3;
    --white: #ffffff;
    --bg-light: #F5F9FB;
    --bg-lighter: #FAFCFD;
    --text: #2A3B4D;
    --text-light: #5B6B7C;
    --border: #E0E8EE;
    --shadow-sm: 0 2px 8px rgba(31, 61, 90, 0.08);
    --shadow-md: 0 6px 24px rgba(31, 61, 90, 0.12);
    --shadow-lg: 0 16px 48px rgba(31, 61, 90, 0.18);
    --gradient: linear-gradient(135deg, #4A8DB8 0%, #2D5F87 100%);
    --gradient-light: linear-gradient(135deg, #A8D5DA 0%, #4A8DB8 100%);
    --radius: 16px;
    --radius-sm: 8px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Cairo', 'Poppins', sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--white);
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ============== SPLASH PRELOADER ============== */
.splash {
    position: fixed;
    inset: 0;
    background: var(--gradient);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
.splash.hide { opacity: 0; visibility: hidden; }
.splash-logo { text-align: center; animation: splashPop 0.8s ease-out; }
@keyframes splashPop {
    0% { transform: scale(0.5); opacity: 0; }
    60% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); }
}
.splash-circle {
    width: 220px; height: 220px;
    background: var(--primary);
    border: 4px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    margin: 0 auto 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    position: relative;
    box-shadow: 0 24px 60px rgba(0,0,0,0.3);
    animation: splashSpin 4s linear infinite;
}
@keyframes splashSpin {
    0% { box-shadow: 0 24px 60px rgba(0,0,0,0.3), 0 0 0 0 rgba(168,213,218,0.6); }
    50% { box-shadow: 0 24px 60px rgba(0,0,0,0.3), 0 0 0 30px rgba(168,213,218,0); }
    100% { box-shadow: 0 24px 60px rgba(0,0,0,0.3), 0 0 0 0 rgba(168,213,218,0); }
}
.splash-swoosh {
    position: absolute;
    top: 50px;
    right: 50%;
    transform: translateX(50%) rotate(-3deg);
    width: 130px; height: 12px;
    background: var(--accent);
    border-radius: 6px;
    opacity: 0.75;
}
.splash-main {
    font-family: 'Poppins', sans-serif;
    font-size: 42px;
    font-weight: 900;
    letter-spacing: -1px;
    position: relative; z-index: 2;
}
.splash-sub {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 6px;
    margin-top: 2px;
    border-top: 2px solid var(--white);
    padding-top: 4px;
    width: 70%;
    margin-inline: auto;
}
.splash-ar {
    font-size: 18px;
    font-weight: 700;
    margin-top: 10px;
    letter-spacing: 2px;
}
.splash-loader {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}
.splash-loader span {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--accent);
    animation: splashBounce 1s infinite ease-in-out;
}
.splash-loader span:nth-child(2) { animation-delay: 0.15s; }
.splash-loader span:nth-child(3) { animation-delay: 0.3s; }
@keyframes splashBounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.6; }
    40% { transform: scale(1); opacity: 1; }
}
.splash-tag {
    color: rgba(255,255,255,0.9);
    font-size: 15px;
    letter-spacing: 1px;
}

/* ============== NAVBAR ============== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}
.navbar.scrolled { box-shadow: var(--shadow-sm); border-bottom-color: var(--border); }
.nav-container { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; }
.nav-logo { display: flex; align-items: center; gap: 12px; }
/* Real logo image (preferred) — circular */
.logo-img {
    height: 56px; width: 56px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 14px rgba(74, 141, 184, 0.35);
    transition: var(--transition);
}
.logo-img:hover { transform: scale(1.06) rotate(3deg); }

/* Fallback if logo.png missing — CSS-drawn placeholder */
.logo-circle {
    width: 52px; height: 52px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--white);
    font-weight: 800;
    font-size: 26px;
    box-shadow: 0 4px 12px rgba(74, 141, 184, 0.3);
    position: relative; overflow: hidden;
}
.logo-circle::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(45deg, transparent 40%, var(--accent) 50%, transparent 60%);
    opacity: 0.3;
}
.logo-en { position: relative; z-index: 1; font-family: 'Poppins', sans-serif; }

/* Splash logo (large variant) — circular */
.splash-img {
    width: 220px; height: 220px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 24px 60px rgba(0,0,0,0.35);
    margin: 0 auto 32px;
    display: block;
    animation: splashSpin 4s linear infinite;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-ar { font-weight: 700; color: var(--primary-darker); font-size: 17px; }
.logo-tag { font-size: 11px; color: var(--text-light); letter-spacing: 1px; font-family: 'Poppins', sans-serif; }
.nav-links { display: flex; list-style: none; gap: 28px; align-items: center; }
.nav-link { color: var(--text); font-weight: 600; font-size: 15px; padding: 8px 0; position: relative; transition: var(--transition); }
.nav-link::after {
    content: '';
    position: absolute; bottom: 0; right: 50%;
    width: 0; height: 2px;
    background: var(--gradient);
    transition: var(--transition);
    transform: translateX(50%);
}
.nav-link:hover, .nav-link.active { color: var(--primary); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-toggle { display: none; width: 32px; height: 32px; flex-direction: column; justify-content: center; gap: 6px; }
.nav-toggle span { display: block; width: 100%; height: 2px; background: var(--primary-darker); transition: var(--transition); border-radius: 2px; }

/* Language toggle button */
.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 13px;
    box-shadow: 0 4px 12px rgba(74, 141, 184, 0.3);
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
    margin-inline-start: 12px;
}
.lang-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(74, 141, 184, 0.4);
}
.lang-toggle i { font-size: 14px; }

/* When in English/LTR mode: swap font + adjust the strip + small visual tweaks */
html[lang="en"] body { font-family: 'Poppins', 'Cairo', sans-serif; }
html[lang="en"] .strip-track { animation-direction: reverse; }
html[lang="en"] .nav-link, html[lang="en"] .btn { letter-spacing: 0.3px; }
html[lang="en"] .footer-bottom p { direction: ltr; }
html[lang="en"] .carousel-btn.prev { right: auto; left: -25px; }
html[lang="en"] .carousel-btn.next { left: auto; right: -25px; }
html[lang="en"] .carousel-btn.prev i { transform: rotate(180deg); }
html[lang="en"] .carousel-btn.next i { transform: rotate(180deg); }
html[lang="en"] .lightbox-nav.prev { right: auto; left: 20px; }
html[lang="en"] .lightbox-nav.next { left: auto; right: 20px; }
html[lang="en"] .lightbox-close { left: auto; right: 20px; }
html[lang="en"] .lightbox-nav i { transform: rotate(180deg); }
html[lang="en"] .about-small-img { right: auto; left: -30px; }
html[lang="en"] .about-img-badge { left: auto; right: -20px; }
html[lang="en"] .back-to-top { left: auto; right: 30px; }
html[lang="en"] .footer-col ul li:hover { padding-right: 0; padding-left: 5px; }

/* ============== HERO with auto-rotating product slideshow ============== */
.hero { position: relative; min-height: 100vh; padding-top: 80px; display: flex; align-items: center; overflow: hidden; }
.hero-slideshow { position: absolute; inset: 0; }
.hero-slide {
    position: absolute; inset: 0;
    opacity: 0;
    transform: scale(1.08);
    transition: opacity 1.2s ease-in-out, transform 4s ease-out;
}
.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hero-slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(31,61,90,0.78) 0%, rgba(74,141,184,0.68) 100%);
    z-index: 2;
}
.hero-container { position: relative; z-index: 3; padding: 80px 24px; width: 100%; }

/* Bottom product info card — content updates as slides rotate */
.hero-product-card {
    position: absolute;
    bottom: 110px;
    inset-inline-end: 24px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: var(--radius);
    padding: 16px 22px;
    color: var(--white);
    display: flex;
    gap: 14px;
    align-items: center;
    max-width: 320px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
    animation: cardSlide 0.6s ease-out;
}
@keyframes cardSlide {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.hero-product-icon {
    width: 52px; height: 52px;
    background: var(--gradient);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.hero-product-info { display: flex; flex-direction: column; line-height: 1.3; }
.hero-product-label { font-size: 11px; opacity: 0.85; letter-spacing: 1px; }
.hero-product-info strong { font-size: 17px; font-weight: 800; margin: 2px 0; }
.hero-product-info > span:last-child { font-size: 12px; opacity: 0.9; }

/* Slide indicators */
.slide-indicators {
    position: absolute;
    bottom: 75px;
    inset-inline-start: 50%;
    transform: translateX(50%);
    display: flex;
    gap: 10px;
    z-index: 4;
}
html[dir="ltr"] .slide-indicators { transform: translateX(-50%); }
.slide-indicators button {
    width: 32px;
    height: 4px;
    border-radius: 100px;
    background: rgba(255,255,255,0.4);
    transition: var(--transition);
    cursor: pointer;
    padding: 0;
}
.slide-indicators button:hover { background: rgba(255,255,255,0.7); }
.slide-indicators button.active {
    background: var(--accent);
    width: 56px;
}
.hero-text { color: var(--white); max-width: 720px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    color: var(--white);
    padding: 10px 22px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.3);
}
.hero-badge i { color: var(--accent); }
.hero-title {
    font-size: clamp(36px, 5.5vw, 64px);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 24px;
    text-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
.hero-highlight {
    background: linear-gradient(135deg, var(--accent) 0%, #fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}
.hero-subtitle {
    font-size: 18px;
    margin-bottom: 32px;
    color: rgba(255,255,255,0.9);
    max-width: 600px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 30px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 15px;
    transition: var(--transition);
    border: 2px solid transparent;
}
.btn-primary { background: var(--gradient); color: var(--white); box-shadow: 0 8px 20px rgba(0,0,0,0.3); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,0,0.4); }
.btn-outline-light { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline-light:hover { background: var(--white); color: var(--primary-dark); transform: translateY(-3px); }
.btn-block { width: 100%; justify-content: center; }

/* Hero scrolling strip */
.hero-strip {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255,255,255,0.2);
    padding: 16px 0;
    overflow: hidden;
}
.strip-track {
    display: flex; gap: 40px;
    color: var(--white);
    font-weight: 600;
    white-space: nowrap;
    animation: strip 30s linear infinite;
    width: max-content;
}
.strip-track span { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; }
.strip-track i { color: var(--accent); }
@keyframes strip {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============== STATS ============== */
.stats { background: var(--white); padding: 60px 0; margin-top: -80px; position: relative; z-index: 5; }
.stats-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}
.stat-card { text-align: center; padding: 16px; border-left: 1px solid var(--border); }
.stat-card:first-child { border-left: none; }
.stat-icon {
    width: 64px; height: 64px;
    background: var(--accent-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
    font-size: 24px;
}
.stat-num { font-size: 42px; font-weight: 900; color: var(--primary-darker); margin-bottom: 8px; font-family: 'Poppins', sans-serif; }
.stat-label { color: var(--text-light); font-weight: 600; }

/* ============== SECTIONS ============== */
.section { padding: 100px 0; }
.section-bg { background: var(--bg-light); }
.section-header { text-align: center; margin-bottom: 60px; }
.section-tag {
    display: inline-block;
    background: var(--accent-light);
    color: var(--primary-dark);
    padding: 6px 18px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 1px;
}
.section-title { font-size: clamp(28px, 4vw, 44px); font-weight: 900; color: var(--primary-darker); margin-bottom: 16px; }
.section-line { width: 80px; height: 4px; background: var(--gradient); margin: 0 auto 20px; border-radius: 100px; }
.section-desc { max-width: 600px; margin: 0 auto; color: var(--text-light); font-size: 16px; }

/* ============== ABOUT with real images ============== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-text h3 { font-size: 28px; color: var(--primary-darker); margin-bottom: 20px; font-weight: 800; }
.about-text p { color: var(--text-light); margin-bottom: 16px; font-size: 16px; }
.about-features { margin-top: 32px; }
.about-feature { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 24px; }
.about-feature i {
    width: 48px; height: 48px;
    background: var(--gradient);
    color: var(--white);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.about-feature h4 { color: var(--primary-darker); margin-bottom: 4px; font-size: 17px; }
.about-feature p { color: var(--text-light); margin: 0; font-size: 14px; }

.about-img-wrap { position: relative; }
.about-main-img {
    width: 100%; height: 420px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: var(--transition);
}
.about-main-img:hover { transform: scale(1.02); }
.about-small-img {
    position: absolute;
    bottom: -30px; right: -30px;
    width: 200px; height: 200px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 8px solid var(--white);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: var(--transition);
}
.about-small-img:hover { transform: scale(1.05) rotate(-2deg); }
.about-img-badge {
    position: absolute;
    top: 20px; left: -20px;
    background: var(--white);
    padding: 16px 22px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 2;
}
.about-img-badge i { color: var(--primary); font-size: 28px; }
.about-img-badge strong { color: var(--primary-darker); display: block; font-size: 18px; }
.about-img-badge span { color: var(--text-light); font-size: 12px; }

/* ============== BRANDS with image cards ============== */
.brands-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.brand-card {
    position: relative;
    height: 280px;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}
.brand-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.brand-img {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}
.brand-card:hover .brand-img { transform: scale(1.15); }
.brand-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(31,61,90,0.95) 0%, rgba(31,61,90,0.7) 50%, transparent 100%);
    color: var(--white);
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: var(--transition);
}
.brand-card:hover .brand-overlay { background: linear-gradient(to top, rgba(74,141,184,0.95) 0%, rgba(74,141,184,0.75) 50%, rgba(0,0,0,0.2) 100%); }
.brand-overlay h3 { font-size: 20px; margin-bottom: 6px; font-weight: 800; }
.brand-overlay p { font-size: 14px; opacity: 0.9; margin-bottom: 12px; }
.brand-tag {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    align-self: flex-start;
}
.brand-card.featured { border: 3px solid var(--accent); }
.brand-badge {
    position: absolute;
    top: 12px; left: 12px;
    background: var(--gradient);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
    box-shadow: var(--shadow-sm);
}

/* ============== PRODUCTS ============== */
.products-filter { display: flex; justify-content: center; gap: 12px; margin-bottom: 40px; flex-wrap: wrap; }
.filter-btn {
    background: var(--white);
    color: var(--text);
    padding: 10px 22px;
    border-radius: 100px;
    font-weight: 600;
    border: 2px solid var(--border);
    transition: var(--transition);
}
.filter-btn.active, .filter-btn:hover {
    background: var(--gradient);
    color: var(--white);
    border-color: transparent;
    box-shadow: var(--shadow-sm);
}

.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.product-card { background: var(--white); border-radius: var(--radius); overflow: hidden; transition: var(--transition); box-shadow: var(--shadow-sm); }
.product-card.hidden { display: none; }
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.product-img-wrap {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: var(--bg-light);
}
.product-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    cursor: pointer;
}
.product-card:hover .product-img-wrap img { transform: scale(1.1); }
.product-img-overlay {
    position: absolute; inset: 0;
    background: rgba(31,61,90,0.5);
    display: flex; align-items: center; justify-content: center;
    color: var(--white);
    font-size: 32px;
    opacity: 0;
    transition: var(--transition);
    cursor: pointer;
}
.product-card:hover .product-img-overlay { opacity: 1; }
.product-info { padding: 20px; }
.product-brand {
    display: inline-block;
    background: var(--accent-light);
    color: var(--primary-dark);
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
}
.product-info h3 { font-size: 17px; color: var(--primary-darker); margin-bottom: 8px; font-weight: 700; }
.product-info p { color: var(--text-light); font-size: 14px; }

/* ============== FEATURED CAROUSEL ============== */
.carousel-wrap { position: relative; max-width: 1200px; margin: 0 auto; }
.carousel-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 20px 0;
    scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide {
    flex: 0 0 calc(33.33% - 14px);
    min-width: 280px;
    scroll-snap-align: start;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: var(--transition);
}
.carousel-slide:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.carousel-slide:hover img { transform: scale(1.1); }
.slide-info {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(31,61,90,0.95) 0%, transparent 60%);
    color: var(--white);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.slide-info h3 { font-size: 22px; margin-bottom: 6px; font-weight: 800; }
.slide-info p { font-size: 14px; opacity: 0.9; }
.carousel-btn {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    width: 50px; height: 50px;
    background: var(--white);
    color: var(--primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    z-index: 5;
}
.carousel-btn:hover { background: var(--gradient); color: var(--white); }
.carousel-btn.prev { right: -25px; }
.carousel-btn.next { left: -25px; }

/* ============== GALLERY ============== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: 16px;
}
.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}
.gallery-item.large { grid-column: span 2; grid-row: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(31,61,90,0.95), transparent);
    color: var(--white);
    padding: 24px 20px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 16px;
    transform: translateY(20px);
    opacity: 0.85;
    transition: var(--transition);
}
.gallery-item:hover .gallery-caption { transform: translateY(0); opacity: 1; }
.gallery-caption i { color: var(--accent); }

/* ============== FEATURES ============== */
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.feature-card {
    background: var(--white);
    padding: 36px 28px;
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute; top: -50px; right: -50px;
    width: 100px; height: 100px;
    background: var(--accent-light);
    border-radius: 50%;
    transition: var(--transition);
}
.feature-card:hover::before { transform: scale(8); }
.feature-card:hover { color: var(--white); }
.feature-card:hover .feature-icon { background: var(--white); color: var(--primary); }
.feature-icon {
    width: 80px; height: 80px;
    background: var(--gradient);
    color: var(--white);
    border-radius: 24px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    transition: var(--transition);
    position: relative; z-index: 1;
}
.feature-card h3 { font-size: 20px; color: var(--primary-darker); margin-bottom: 12px; font-weight: 800; position: relative; z-index: 1; }
.feature-card p { color: var(--text-light); font-size: 15px; position: relative; z-index: 1; }
.feature-card:hover h3, .feature-card:hover p { color: var(--white); }

/* ============== TESTIMONIALS ============== */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
}
.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px; left: 20px;
    font-family: serif;
    font-size: 80px;
    color: var(--accent);
    line-height: 1;
    opacity: 0.4;
}
.testimonial-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.testimonial-stars { color: #FFC107; margin-bottom: 16px; font-size: 16px; }
.testimonial-stars i { margin-left: 2px; }
.testimonial-card > p { color: var(--text); font-style: italic; margin-bottom: 20px; position: relative; z-index: 1; }
.testimonial-author { display: flex; align-items: center; gap: 14px; padding-top: 16px; border-top: 1px solid var(--border); }
.testimonial-author img {
    width: 50px; height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-light);
}
.testimonial-author strong { color: var(--primary-darker); display: block; font-size: 16px; }
.testimonial-author span { color: var(--text-light); font-size: 13px; }

/* ============== CONTACT ============== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; }
.contact-info, .contact-form { padding: 40px; border-radius: var(--radius); box-shadow: var(--shadow-md); }
.contact-info { background: var(--gradient); color: var(--white); }
.contact-form { background: var(--white); }
.contact-info h3, .contact-form h3 { font-size: 24px; margin-bottom: 24px; font-weight: 800; }
.contact-form h3 { color: var(--primary-darker); }
.info-item { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 24px; }
.info-icon {
    width: 48px; height: 48px;
    background: rgba(255,255,255,0.15);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.info-item h4 { margin-bottom: 4px; font-weight: 700; font-size: 16px; }
.info-item p, .info-item a { color: rgba(255,255,255,0.9); font-size: 15px; margin: 0; }
.contact-social { display: flex; gap: 12px; margin-top: 30px; }
.social-link {
    width: 44px; height: 44px;
    background: rgba(255,255,255,0.15);
    color: var(--white);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.social-link:hover { background: var(--white); color: var(--primary); transform: translateY(-3px); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; color: var(--primary-darker); font-weight: 600; margin-bottom: 6px; font-size: 14px; }
.form-field input, .form-field textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    transition: var(--transition);
    background: var(--bg-lighter);
}
.form-field input:focus, .form-field textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px var(--accent-light);
}
.form-field textarea { resize: vertical; min-height: 100px; }

/* ============== FOOTER ============== */
.footer { background: var(--primary-darker); color: rgba(255,255,255,0.85); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-logo .logo-ar, .footer-logo .logo-tag { color: var(--white); }
.footer-logo .logo-ar { font-size: 20px; font-weight: 700; }
.footer-col h4 { color: var(--white); font-weight: 700; margin-bottom: 18px; font-size: 18px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; transition: var(--transition); }
.footer-col ul li:hover { padding-right: 5px; color: var(--accent); }
.footer-col p { margin-bottom: 10px; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.footer-col p i { color: var(--accent); width: 16px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 24px 0; text-align: center; font-size: 14px; }

/* ============== LIGHTBOX ============== */
.lightbox {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
    animation: fadeIn 0.3s ease;
}
.lightbox.open { display: flex; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: var(--radius);
    box-shadow: 0 24px 60px rgba(0,0,0,0.5);
    animation: zoomIn 0.4s ease;
}
@keyframes zoomIn { from { transform: scale(0.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.lightbox-close {
    position: absolute; top: 20px; left: 20px;
    width: 50px; height: 50px;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border-radius: 50%;
    font-size: 32px;
    transition: var(--transition);
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); transform: rotate(90deg); }
.lightbox-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 55px; height: 55px;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border-radius: 50%;
    font-size: 22px;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.lightbox-nav:hover { background: var(--primary); }
.lightbox-nav.prev { right: 20px; }
.lightbox-nav.next { left: 20px; }
.lightbox-caption {
    position: absolute;
    bottom: 30px; left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    background: rgba(0,0,0,0.5);
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 14px;
    backdrop-filter: blur(10px);
}

/* ============== BACK TO TOP ============== */
.back-to-top {
    position: fixed; bottom: 30px; left: 30px;
    width: 50px; height: 50px;
    background: var(--gradient);
    color: var(--white);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    box-shadow: var(--shadow-md);
    opacity: 0; visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-3px); }

/* clickable cursor */
.clickable-img { cursor: zoom-in; }

/* ============== RESPONSIVE ============== */
/* ============== RESPONSIVE — Mobile + iPad polished ============== */

/* iPad Pro / desktop small (1024–1199px) */
@media (max-width: 1199px) {
    .container { max-width: 100%; padding: 0 28px; }
    .nav-links { gap: 22px; }
    .nav-link { font-size: 14px; }
    .hero-product-card { max-width: 280px; padding: 14px 18px; }
    .brands-grid { grid-template-columns: repeat(3, 1fr); }
    .products-grid { grid-template-columns: repeat(3, 1fr); }
}

/* iPad portrait (768–1023px) */
@media (max-width: 1023px) {
    .nav-container { padding: 14px 20px; }
    .nav-links { gap: 18px; }
    .nav-link { font-size: 13.5px; }
    .lang-toggle { padding: 7px 14px; font-size: 12.5px; }
    .logo-img { height: 46px; }
    .logo-ar { font-size: 16px; }
    .logo-tag { font-size: 10px; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-small-img { width: 160px; height: 160px; bottom: -20px; inset-inline-end: -10px; }
    .about-img-badge { top: 10px; inset-inline-start: -10px; padding: 12px 16px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); padding: 28px; }
    .stat-card { border-left: none !important; border-right: none !important; padding: 16px; }
    .stat-card:nth-child(odd) { border-inline-end: 1px solid var(--border); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 240px; }
    .gallery-item.large { grid-column: span 2; grid-row: span 1; }
    .brands-grid { grid-template-columns: repeat(2, 1fr); }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .carousel-slide { flex: 0 0 calc(50% - 10px); }
    .hero-product-card { bottom: 130px; padding: 12px 16px; max-width: 260px; }
    .hero-product-icon { width: 44px; height: 44px; font-size: 18px; }
    .hero-product-info strong { font-size: 15px; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ═══════════════════ MOBILE — Tablet & Large Phones (≤767px) ═══════════════════ */
@media (max-width: 767px) {
    /* Prevent any horizontal overflow at the root */
    html, body { overflow-x: hidden; width: 100%; }
    .container { padding: 0 16px; }

    /* ─── NAVBAR — compact, sticky, dark logo always visible ─── */
    .navbar { background: rgba(255,255,255,0.98); }
    .nav-container { padding: 10px 14px; gap: 8px; }
    .nav-toggle { display: flex; width: 38px; height: 38px; }
    .nav-toggle span { background: var(--primary-darker); }

    .nav-logo { gap: 8px; flex-shrink: 1; min-width: 0; }
    .logo-img { height: 38px; width: 38px; flex-shrink: 0; }
    .logo-text { display: flex; min-width: 0; }
    .logo-ar { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .logo-tag { font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

    .lang-toggle {
        padding: 6px 10px;
        font-size: 11px;
        margin-inline-start: 4px;
        flex-shrink: 0;
        min-height: 36px;
    }
    .lang-toggle i { font-size: 12px; }

    /* Off-canvas menu drawer */
    .nav-links {
        position: fixed;
        top: 58px; inset-inline-end: 0;
        background: var(--white);
        width: min(300px, 88vw);
        height: calc(100vh - 58px);
        flex-direction: column;
        gap: 0;
        padding: 12px 18px 32px;
        box-shadow: -16px 0 40px rgba(31,61,90,0.18);
        transform: translateX(100%);
        transition: transform 0.32s ease;
        overflow-y: auto;
        z-index: 999;
    }
    html[dir="ltr"] .nav-links { transform: translateX(-100%); }
    .nav-links.open { transform: translateX(0); }
    .nav-link {
        display: block;
        padding: 15px 6px;
        border-bottom: 1px solid var(--border);
        font-size: 16px;
        font-weight: 700;
        min-height: 50px;
    }

    /* ─── HERO — full screen on mobile, fills the viewport ─── */
    .hero {
        min-height: 100vh;        /* fall back for old browsers */
        min-height: 100svh;       /* small viewport height = excludes browser UI */
        padding-top: 58px;
        display: flex;
        align-items: center;
    }
    .hero-container {
        padding: 30px 16px 40px;
        display: flex;
        flex-direction: column;
        gap: 18px;
        justify-content: center;
        min-height: calc(100svh - 58px);
    }
    .hero-badge {
        font-size: 11px;
        padding: 6px 14px;
        margin-bottom: 14px;
    }
    .hero-title {
        font-size: clamp(24px, 8vw, 36px);
        line-height: 1.25;
        margin-bottom: 16px;
    }
    .hero-title span { display: inline; }
    .hero-highlight { display: inline; }
    .hero-subtitle {
        font-size: 14px;
        line-height: 1.55;
        margin-bottom: 20px;
    }
    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    .btn {
        width: 100%;
        justify-content: center;
        padding: 13px 20px;
        font-size: 14px;
        min-height: 48px;
    }

    /* Product card under the buttons, not floating */
    .hero-product-card {
        position: static;
        margin: 0;
        max-width: 100%;
        padding: 12px 14px;
        background: rgba(255,255,255,0.18);
        border-radius: 14px;
        gap: 12px;
    }
    .hero-product-icon { width: 44px; height: 44px; font-size: 18px; flex-shrink: 0; }
    .hero-product-label { font-size: 10px; }
    .hero-product-info strong { font-size: 14px; }
    .hero-product-info > span:last-child { font-size: 11px; }

    /* Tighter slide indicators */
    .slide-indicators {
        bottom: 18px;
        gap: 6px;
    }
    .slide-indicators button { width: 22px; height: 3px; }
    .slide-indicators button.active { width: 38px; }

    /* Hide cluttered strip on mobile */
    .hero-strip { display: none; }

    /* ─── SECTIONS — tighter rhythm ─── */
    .section { padding: 44px 0; }
    .section-header { margin-bottom: 28px; }
    .section-title { font-size: 24px; line-height: 1.3; }
    .section-tag { font-size: 11px; padding: 5px 14px; margin-bottom: 8px; }
    .section-desc { font-size: 13.5px; padding: 0 6px; }
    .section-line { width: 60px; height: 3px; margin-bottom: 14px; }

    /* ─── STATS — 2×2 grid, comes AFTER hero (not overlapping) ─── */
    .stats { padding: 36px 0; margin-top: 0; }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 18px;
        gap: 8px;
        border-radius: 18px;
    }
    .stat-card { padding: 12px 6px; border: none !important; }
    .stat-num { font-size: 24px; margin-bottom: 4px; }
    .stat-label { font-size: 11.5px; }
    .stat-icon {
        width: 42px; height: 42px;
        font-size: 16px;
        margin-bottom: 10px;
    }

    /* ─── ABOUT ─── */
    .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
    .about-text h3 { font-size: 22px; }
    .about-feature h4 { font-size: 16px; }
    .about-feature i { width: 42px; height: 42px; font-size: 18px; }
    .about-main-img { height: 240px; }
    .about-small-img { width: 110px; height: 110px; bottom: -14px; inset-inline-end: -6px; border-width: 4px; }
    .about-img-badge {
        top: 10px;
        inset-inline-start: -8px;
        padding: 8px 12px;
        gap: 8px;
    }
    .about-img-badge i { font-size: 18px; }
    .about-img-badge strong { font-size: 13px; }
    .about-img-badge span { font-size: 10px; }

    /* ─── BRANDS — 2 columns for visual impact ─── */
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .brand-card { height: 180px; border-radius: 12px; }
    .brand-overlay { padding: 14px 12px; }
    .brand-overlay h3 { font-size: 14px; line-height: 1.25; margin-bottom: 4px; }
    .brand-overlay p { font-size: 11px; line-height: 1.35; margin-bottom: 6px; }
    .brand-tag { font-size: 10px; padding: 3px 8px; }
    .brand-badge { font-size: 9px; padding: 3px 8px; top: 8px; inset-inline-start: 8px; }

    /* ─── PRODUCTS ─── */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .product-card { border-radius: 12px; }
    .product-img-wrap { height: 130px; }
    .product-info { padding: 12px; }
    .product-brand { font-size: 10px; padding: 3px 8px; margin-bottom: 6px; }
    .product-info h3 { font-size: 13px; line-height: 1.3; margin-bottom: 4px; }
    .product-info p { font-size: 11px; line-height: 1.35; }
    .products-filter { gap: 6px; margin-bottom: 24px; }
    .filter-btn {
        padding: 7px 14px;
        font-size: 12px;
        min-height: 36px;
    }

    /* ─── FEATURED CAROUSEL ─── */
    .carousel-slide { flex: 0 0 calc(100% - 8px); min-width: 0; }
    .carousel-btn {
        width: 38px; height: 38px;
        font-size: 14px;
    }
    .carousel-btn.prev { inset-inline-end: 4px; }
    .carousel-btn.next { inset-inline-start: 4px; }
    .slide-info { padding: 16px; }
    .slide-info h3 { font-size: 18px; }
    .slide-info p { font-size: 12px; }

    /* ─── GALLERY — 2 columns ─── */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 140px;
        gap: 8px;
    }
    .gallery-item { border-radius: 10px; }
    .gallery-item.large { grid-column: span 2; grid-row: span 1; grid-auto-rows: 180px; }
    .gallery-caption { padding: 12px 10px 8px; font-size: 12px; }

    /* ─── FEATURES ─── */
    .features-grid { grid-template-columns: 1fr; gap: 12px; }
    .feature-card { padding: 24px 18px; }
    .feature-icon { width: 64px; height: 64px; font-size: 26px; border-radius: 18px; }
    .feature-card h3 { font-size: 17px; margin-bottom: 8px; }
    .feature-card p { font-size: 13px; }

    /* ─── TESTIMONIALS ─── */
    .testimonials-grid { grid-template-columns: 1fr; gap: 14px; }
    .testimonial-card { padding: 22px 18px; }
    .testimonial-card > p { font-size: 14px; }
    .testimonial-author img { width: 44px; height: 44px; }

    /* ─── CONTACT ─── */
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .contact-info, .contact-form { padding: 22px 18px; border-radius: 14px; }
    .contact-info h3, .contact-form h3 { font-size: 18px; margin-bottom: 18px; }
    .info-item { gap: 12px; margin-bottom: 16px; }
    .info-icon { width: 40px; height: 40px; font-size: 16px; }
    .info-item h4 { font-size: 14px; }
    .info-item p, .info-item a { font-size: 13px; }
    .form-field { margin-bottom: 14px; }
    .form-field label { font-size: 13px; }
    .form-field input, .form-field textarea {
        font-size: 16px;     /* prevent iOS zoom on focus */
        padding: 10px 14px;
    }
    .contact-social { gap: 10px; }
    .social-link { width: 40px; height: 40px; }

    /* ─── FOOTER ─── */
    .footer { padding: 36px 0 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; margin-bottom: 24px; }
    .footer-logo .logo-ar { font-size: 17px; }
    .footer-col h4 { font-size: 15px; margin-bottom: 12px; }
    .footer-col p, .footer-col ul li { font-size: 13px; }
    .footer-bottom { padding: 16px 0; font-size: 12px; }

    /* ─── SPLASH ─── */
    .splash-img { width: 150px; height: 150px; }   /* keep it circular */
    .splash-loader span { width: 9px; height: 9px; }
    .splash-tag { font-size: 12px; padding: 0 24px; }

    /* ─── FAB / Lightbox ─── */
    .back-to-top {
        width: 44px; height: 44px;
        bottom: 16px;
        inset-inline-start: 16px;
        font-size: 14px;
    }
    .lightbox { padding: 12px; }
    .lightbox-close {
        width: 40px; height: 40px;
        top: 10px; inset-inline-start: 10px;
        font-size: 22px;
    }
    .lightbox-nav { width: 42px; height: 42px; font-size: 16px; }
    .lightbox-nav.prev { inset-inline-end: 8px; }
    .lightbox-nav.next { inset-inline-start: 8px; }
    .lightbox-caption { font-size: 12px; bottom: 16px; padding: 6px 14px; }
}

/* ═══════════════════ SMALL PHONES (≤414px) — iPhone SE/12/13 ═══════════════════ */
@media (max-width: 414px) {
    .container { padding: 0 12px; }
    .nav-container { padding: 8px 12px; }
    .logo-img { height: 34px; width: 34px; }
    .logo-ar { font-size: 12px; }
    .logo-tag { font-size: 8px; }
    .lang-toggle {
        padding: 0;
        width: 34px; height: 34px;
        min-height: 34px;
        justify-content: center;
    }
    .lang-toggle span { display: none; }

    .hero-title { font-size: 22px; }
    .hero-badge { font-size: 10px; padding: 5px 12px; }
    .hero-subtitle { font-size: 13px; }

    .section-title { font-size: 20px; }
    .stat-num { font-size: 21px; }

    .brand-card { height: 160px; }
    .brand-overlay h3 { font-size: 13px; }
    .brand-overlay p { font-size: 10.5px; }

    .product-img-wrap { height: 110px; }
    .product-info h3 { font-size: 12.5px; }

    .gallery-grid { grid-auto-rows: 120px; }
    .gallery-item.large { grid-auto-rows: 150px; }

    .feature-card { padding: 20px 16px; }
    .feature-icon { width: 56px; height: 56px; font-size: 22px; }
    .feature-card h3 { font-size: 15.5px; }
    .feature-card p { font-size: 12.5px; }

    .splash-img { width: 130px; height: 130px; }   /* keep it circular */
}

/* ═══════════════════ EXTRA SMALL (≤360px) — older Androids ═══════════════════ */
@media (max-width: 360px) {
    .brands-grid { grid-template-columns: 1fr; gap: 10px; }
    .brand-card { height: 200px; }
    .products-grid { grid-template-columns: 1fr; }
    .product-img-wrap { height: 180px; }
}

/* Touch-device niceties */
@media (hover: none) and (pointer: coarse) {
    .brand-card:hover { transform: none; }
    .product-card:hover { transform: none; }
    .product-img-overlay { opacity: 0.4; }  /* always slightly visible to hint tappability */
    .clickable-img { cursor: pointer; }
}
