/*--------------------------------------------------------------
# Theme Switcher - Color Themes
# Themes: default (original), green (metallic), gray (dark metallic),
#         orange (flame), silver (pure), blue (cold iron)
--------------------------------------------------------------*/

/* ============================================================
   HERO IMAGE SLIDER
   ============================================================ */

/* Slides container fills the full hero */
.hero-slides {
    position: absolute;
    inset: 0;
    z-index: 0;
}

/* Each individual slide */
.hero-slide {
    position: absolute;
    inset: 0;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    will-change: opacity;
}

/* The entering class is set one frame before active to allow GPU to prepare */
.hero-slide.entering {
    opacity: 0;
    z-index: 2;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

/* Dark overlay on top of the slides */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 22, 35, 0.55);
    z-index: 3;
    pointer-events: none;
}

/* Ensure hero content sits above overlay */
#hero .container {
    position: relative;
    z-index: 4;
}

/* ── Navigation Arrows ── */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background: rgba(255, 255, 255, 0.18);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    font-size: 20px;
    line-height: 1;
    user-select: none;
    backdrop-filter: blur(4px);
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-50%) scale(1.1);
}

.hero-arrow-prev { left: 20px; }
.hero-arrow-next { right: 20px; }

/* ── Indicator Dots ── */
.hero-indicators {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 10px;
    align-items: center;
}

.hero-indicator-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    border: 2px solid rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s, width 0.3s;
}

.hero-indicator-dot.active {
    background: #fff;
    width: 26px;
    border-radius: 5px;
    transform: none;
}

/* Responsive arrows */
@media (max-width: 576px) {
    .hero-arrow { width: 36px; height: 36px; font-size: 16px; }
    .hero-arrow-prev { left: 10px; }
    .hero-arrow-next { right: 10px; }
}

/* ============================================================
   PHOTO GALLERY & LIGHTBOX
   ============================================================ */

/* ── Gallery Section ── */
.gallery-section {
    padding: 60px 0 80px;
}

.gallery-meta {
    margin-bottom: 10px;
}

.gallery-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--theme-primary, #273454);
    color: #fff;
    padding: 6px 18px;
    border-radius: 50px;
    font-family: arabicFont, sans-serif;
    font-size: 15px;
    letter-spacing: 0.3px;
}

/* ── Gallery Grid — responsive masonry-style ── */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 14px;
}

@media (max-width: 576px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

/* ── Individual Tile ── */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
    background: #eee;
    /* Give varying heights for a masonry feel */
    aspect-ratio: 4/3;
    transition: box-shadow 0.3s;
}

.gallery-item:nth-child(3n+2) { aspect-ratio: 3/4; }
.gallery-item:nth-child(5n+3) { aspect-ratio: 1/1; }

.gallery-item:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.25);
}

.gallery-thumb {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-thumb img {
    transform: scale(1.08);
}

/* Hover overlay */
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(27, 52, 84, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay-icon {
    color: #fff;
    font-size: 36px;
    transform: scale(0.7);
    transition: transform 0.35s ease;
}

.gallery-item:hover .gallery-overlay-icon {
    transform: scale(1);
}

/* ── Lightbox ── */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.93);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 70px;
    box-sizing: border-box;
}

@media (max-width: 576px) {
    .lightbox-inner { padding: 60px 10px 50px; }
}

.lightbox-img-wrap {
    position: relative;
    max-width: 100%;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#lightboxImg {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 6px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.6);
    transition: opacity 0.3s ease;
    object-fit: contain;
}

/* Spinner while loading */
.lightbox-loader {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox-spinner {
    width: 44px;
    height: 44px;
    border: 4px solid rgba(255,255,255,0.2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: lb-spin 0.8s linear infinite;
}

@keyframes lb-spin {
    to { transform: rotate(360deg); }
}

/* Close button */
.lightbox-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(255,255,255,0.15);
    border: 1.5px solid rgba(255,255,255,0.4);
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.25s;
    z-index: 10;
    backdrop-filter: blur(4px);
}

.lightbox-close:hover { background: rgba(255,255,255,0.3); }

/* Navigation arrows */
.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.12);
    border: 1.5px solid rgba(255,255,255,0.35);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 22px;
    transition: background 0.25s, transform 0.25s;
    z-index: 10;
    backdrop-filter: blur(4px);
}

.lightbox-arrow:hover { background: rgba(255,255,255,0.28); }
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }

.lightbox-arrow:hover.lightbox-prev { transform: translateY(-50%) translateX(-3px); }
.lightbox-arrow:hover.lightbox-next { transform: translateY(-50%) translateX(3px); }

/* Counter */
.lightbox-counter {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.75);
    font-size: 14px;
    font-family: arabicFont, sans-serif;
    background: rgba(0,0,0,0.4);
    padding: 4px 14px;
    border-radius: 20px;
    white-space: nowrap;
}

/* RTL adjustments for lightbox */
html[dir="rtl"] .lightbox-close { right: auto; left: 14px; }
html[dir="rtl"] .lightbox-prev  { left: auto;  right: 12px; }
html[dir="rtl"] .lightbox-next  { right: auto; left: 12px; }

/* ── Section title accent (reuse theme color) ── */
#gallery .section-title h2::after {
    background: var(--theme-primary, #273454);
}

/* ============================================================
   LOGO STYLING
   ============================================================ */

.logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none !important;
    margin: 0;
    padding: 2px 0;
}

.logo-img {
    height: 62px;
    width: auto;
    object-fit: contain;
    /* White background removed — logo has its own white bg already */
    border-radius: 6px;
    /* Subtle shadow to make it pop against any header bg */
    filter: drop-shadow(0 1px 4px rgba(0,0,0,0.18));
    transition: transform 0.25s ease, filter 0.25s ease;
}

.logo-img:hover {
    transform: scale(1.04);
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.28));
}

/* Slightly smaller on mobile */
@media (max-width: 768px) {
    .logo-img { height: 48px; }
}

/* ===== THEME SWITCHER PANEL ===== */
.theme-panel {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(0,0,0,0.10);
    border-radius: 50px;
    padding: 5px 12px;
    flex-shrink: 0;
}
.theme-panel-label {
    font-size: 11px;
    color: #555;
    white-space: nowrap;
    font-family: arabicFont, sans-serif;
    margin-inline-end: 4px;
}
.theme-swatch {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    border: 2.5px solid transparent;
    outline: none;
    padding: 0;
    transition: transform .2s, border-color .2s, box-shadow .2s;
    box-shadow: 0 1px 5px rgba(0,0,0,.35);
    flex-shrink: 0;
}
.theme-swatch:hover  { transform: scale(1.3);  box-shadow: 0 2px 10px rgba(0,0,0,.45); }
.theme-swatch.active { border-color: #fff; transform: scale(1.22); box-shadow: 0 0 0 3px rgba(0,0,0,.28); }
.theme-swatch[data-theme="default"] { background: #273454; }
.theme-swatch[data-theme="green"]   { background: linear-gradient(135deg, #1D5C3E, #2D7A54); }
.theme-swatch[data-theme="gray"]    { background: linear-gradient(135deg, #3C4352, #272E3D); }
.theme-swatch[data-theme="orange"]  { background: linear-gradient(135deg, #C04A15, #8B3210); }
.theme-swatch[data-theme="silver"]  { background: linear-gradient(135deg, #607B8B, #415A6B); }
.theme-swatch[data-theme="blue"]    { background: linear-gradient(135deg, #0E4272, #092A4A); }
@media (max-width: 576px) {
    .theme-panel  { gap: 3px; padding: 4px 8px; }
    .theme-swatch { width: 20px; height: 20px; }
    .theme-panel-label { display: none; }
}

/* ===== LOGO ===== */
.logo-img {
    height: 76px;
    width: auto;
    object-fit: contain;
    border-radius: 6px;
    filter: drop-shadow(0 1px 4px rgba(0,0,0,.20));
    transition: transform .25s, filter .25s;
}
.logo-img:hover { transform: scale(1.04); filter: drop-shadow(0 2px 8px rgba(0,0,0,.30)); }
@media (max-width: 768px) { .logo-img { height: 52px; } }

/* ===== FACTORY NAME ===== */
.factory-name-block {
    line-height: 1.25;
    padding-inline-end: 10px;
    border-inline-end: 3px solid var(--theme-primary, #273454);
}
.factory-name-ar {
    display: block;
    font-family: arabicFont, sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--theme-primary, #273454);
    white-space: nowrap;
}
.factory-name-en {
    display: block;
    font-family: Raleway, sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: var(--theme-secondary, #1C2847);
    letter-spacing: .4px;
    white-space: nowrap;
    opacity: .82;
}

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
    --theme-primary:   #273454;
    --theme-secondary: #1C2847;
    --theme-dark:      #12192E;
    --theme-light:     rgba(39, 52, 84, 0.10);
    --theme-hover:     rgba(39, 52, 84, 0.18);
}
body.theme-green  {
    --theme-primary:   #1D5C3E;
    --theme-secondary: #155030;
    --theme-dark:      #0C3020;
    --theme-light:     rgba(29, 92, 62, 0.10);
    --theme-hover:     rgba(29, 92, 62, 0.18);
}
body.theme-gray   {
    --theme-primary:   #3C4352;
    --theme-secondary: #2A303E;
    --theme-dark:      #181D28;
    --theme-light:     rgba(60, 67, 82, 0.10);
    --theme-hover:     rgba(60, 67, 82, 0.18);
}
body.theme-orange {
    --theme-primary:   #C04A15;
    --theme-secondary: #8B320E;
    --theme-dark:      #5C1E05;
    --theme-light:     rgba(192, 74, 21, 0.10);
    --theme-hover:     rgba(192, 74, 21, 0.18);
}
body.theme-silver {
    --theme-primary:   #4A6370;
    --theme-secondary: #354D5A;
    --theme-dark:      #213540;
    --theme-light:     rgba(74, 99, 112, 0.10);
    --theme-hover:     rgba(74, 99, 112, 0.18);
}
body.theme-blue   {
    --theme-primary:   #0E4272;
    --theme-secondary: #092A4A;
    --theme-dark:      #051828;
    --theme-light:     rgba(14, 66, 114, 0.10);
    --theme-hover:     rgba(14, 66, 114, 0.18);
}

.text-container {
    white-space: pre-wrap;
}


/*================================================================
  UNIVERSAL OVERRIDES
  RULE: colored/dark background => white text
        light background         => dark/var(--theme-primary) text
================================================================*/

a, a:hover                           { color: var(--theme-primary); }
.back-to-top                         { background: var(--theme-primary); color: #fff; }
.back-to-top:hover                   { background: var(--theme-secondary); }
ul li::marker                        { color: var(--theme-primary); }
#preloader:before                    { border-color: var(--theme-primary); border-top-color: #fff; }

/* Header (white bg) */
#header                              { background: #fff; }
#header .logo a                      { color: var(--theme-primary); }
.factory-name-ar                     { color: var(--theme-primary) !important; }
.factory-name-en                     { color: var(--theme-secondary) !important; }
.factory-name-block                  { border-color: var(--theme-primary) !important; }

/* Navbar (white bg => dark text) */
.navbar a, .navbar a:focus           { color: var(--theme-dark); }
.navbar a:hover, .navbar .active, .navbar li:hover > a { color: var(--theme-primary); }
.navbar-mobile a                     { color: var(--theme-secondary); }
.navbar-mobile a:hover, .navbar-mobile .active { color: var(--theme-primary); }
.mobile-nav-toggle                   { color: var(--theme-secondary); }

/* Lang button (colored bg => white text) */
.lang-switcher .lang-btn, a.lang-btn {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none !important;
    background: var(--theme-primary) !important;
    color: #ffffff !important;
    border: 2px solid var(--theme-primary) !important;
    transition: all .3s ease;
}
.lang-switcher .lang-btn:hover, a.lang-btn:hover {
    background: var(--theme-secondary) !important;
    border-color: var(--theme-secondary) !important;
    color: #ffffff !important;
}

/* Hero (dark overlay => always white) */
#hero                                { color: #fff !important; }
#hero h1, #hero h2, #hero p         { color: #fff !important; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
#hero .btn-get-started {
    background: var(--theme-primary) !important;
    border-color: var(--theme-primary) !important;
    color: #fff !important;
}
#hero .btn-get-started:hover {
    background: transparent !important;
    border-color: #fff !important;
    color: #fff !important;
}

/* Section titles (light bg) */
.section-title h2                    { color: var(--theme-secondary); }
.section-title h2::after,
.section-title h2::before            { background: var(--theme-primary); }
.section-title p                     { color: #4a5568; }

/* Icon boxes */
.icon-box i { color: var(--theme-primary) !important; background: var(--theme-light) !important; }
.icon-box h4 a                       { color: var(--theme-dark); }
.icon-box h4 a:hover                 { color: var(--theme-primary); }
.icon-box:hover                      { border-color: var(--theme-primary); }
.services .icon-box:hover            { border-bottom-color: var(--theme-primary); }

/* About */
.about .content h3                   { color: var(--theme-secondary); }
.about .content ul i                 { color: var(--theme-primary); }

/* WHY US — colored bg => white text */
.why-us .content {
    background: var(--theme-primary) !important;
    color: #ffffff !important;
}
.why-us .content h3                  { color: #ffffff !important; font-weight: 700; }
.why-us .content p                   { color: rgba(255,255,255,.90) !important; }
.why-us .content ul li               { color: rgba(255,255,255,.88) !important; }
.why-us .content .more-btn {
    color: #fff !important;
    border: 1px solid rgba(255,255,255,.5);
    background: transparent;
    border-radius: 50px;
    padding: 6px 20px;
}
.why-us .content .more-btn:hover     { background: #fff !important; color: var(--theme-primary) !important; }
.why-us .icon-boxes .icon-box        { background: #fff; border-radius: 4px; }
.why-us .icon-boxes .icon-box i      { color: var(--theme-primary) !important; background: var(--theme-light) !important; }
.why-us .icon-boxes .icon-box h4     { color: var(--theme-dark) !important; }
.why-us .icon-boxes .icon-box p      { color: #555 !important; }
.why-us .accordion-list a            { color: var(--theme-dark); }
.why-us .accordion-list a.collapsed  { color: var(--theme-secondary); }
.why-us .accordion-list .icon-help   { color: var(--theme-primary); }

/* COUNTS */
.counts .counters span               { color: var(--theme-primary) !important; font-size: 46px; font-weight: 700; }
.counts .counters p                  { color: #2C3A47 !important; font-weight: 600; }
.counts.section-bg {
    background: linear-gradient(135deg, #1a2636 0%, var(--theme-dark, #12192E) 55%, #243040 100%) !important;
}
.counts.section-bg .counters span,
.counts.section-bg .purecounter      { color: #d4e8f8 !important; }
.counts.section-bg .counters p,
.counts.section-bg p                 { color: rgba(255,255,255,.88) !important; }

/* CONTACT — fix #657a6d gray */
.contact .info h4                    { color: #12192E !important; font-weight: 700; }
.contact .info p,
.contact .info .address p,
.contact .info .phone p,
.contact .info .email p              { color: #2C3A47 !important; font-weight: 500 !important; }
.contact .info i                     { color: var(--theme-primary) !important; background: var(--theme-light) !important; }
.contact .info .email:hover i,
.contact .info .address:hover i,
.contact .info .phone:hover i        { background: var(--theme-primary) !important; color: #fff !important; }
.contact .php-email-form button[type=submit] { background: var(--theme-primary) !important; color: #fff !important; }

/* FOOTER (dark bg) => white text */
#footer                              { background: var(--theme-secondary) !important; color: #fff !important; }
#footer .footer-top                  { background: var(--theme-dark) !important; }
#footer .footer-links h4,
#footer .footer-contact h3,
#footer .footer-contact h3 a         { color: #fff !important; }
#footer .footer-contact p            { color: rgba(255,255,255,.85) !important; }
#footer .footer-links ul a           { color: rgba(255,255,255,.75) !important; }
#footer .footer-links ul a:hover     { color: #fff !important; }
#footer .copyright, #footer .credits { color: rgba(255,255,255,.65) !important; }

/* Testimonials */
.testimonials .testimonial-item h3   { color: var(--theme-dark); }
.testimonials .swiper-pagination-bullet        { border-color: var(--theme-primary) !important; }
.testimonials .swiper-pagination-bullet-active { background: var(--theme-primary) !important; }

/* Breadcrumbs */
.breadcrumbs                         { background: var(--theme-light); }
.breadcrumbs h2                      { color: var(--theme-dark); }

/* Get started / CTA buttons */
.get-started-btn, .btn-learn-more {
    background: var(--theme-primary);
    border-color: var(--theme-primary);
    color: #fff;
}
.get-started-btn:hover, .btn-learn-more:hover {
    background: var(--theme-secondary);
    border-color: var(--theme-secondary);
    color: #fff;
}



/* ============================================================
   WHATSAPP FLOATING BUTTON
   ============================================================ */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    left: 28px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 0;
    cursor: pointer;
    text-decoration: none !important;
    direction: ltr;
}

.whatsapp-float .wa-icon {
    width: 58px;
    height: 58px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.5);
    transition: transform 0.3s, box-shadow 0.3s;
    flex-shrink: 0;
    position: relative;
}

.whatsapp-float .wa-icon svg {
    width: 32px;
    height: 32px;
    fill: #fff;
}

.whatsapp-float .wa-label {
    background: #25D366;
    color: #fff;
    font-family: arabicFont, sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 16px 8px 10px;
    border-radius: 0 50px 50px 0;
    margin-left: -8px;
    box-shadow: 2px 4px 12px rgba(37, 211, 102, 0.35);
    white-space: nowrap;
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-width 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
    padding-right: 0;
    padding-left: 0;
}

.whatsapp-float:hover .wa-label {
    max-width: 200px;
    opacity: 1;
    padding: 8px 16px 8px 10px;
}

.whatsapp-float:hover .wa-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* Pulse ring animation */
.whatsapp-float .wa-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.4);
    animation: wa-pulse 2s ease-out infinite;
}

@keyframes wa-pulse {
    0% { transform: scale(1); opacity: 0.8; }
    70% { transform: scale(1.5); opacity: 0; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* RTL adjustment */
body[dir="rtl"] .whatsapp-float,
html[dir="rtl"] .whatsapp-float {
    left: auto;
    right: 28px;
    direction: rtl;
}

html[dir="rtl"] .whatsapp-float .wa-label,
body[dir="rtl"] .whatsapp-float .wa-label {
    margin-left: 0;
    margin-right: -8px;
    border-radius: 50px 0 0 50px;
    padding: 8px 10px 8px 16px;
}

html[dir="rtl"] .whatsapp-float:hover .wa-label,
body[dir="rtl"] .whatsapp-float:hover .wa-label {
    padding: 8px 10px 8px 16px;
}

/* Responsive */
@media (max-width: 576px) {
    .whatsapp-float {
        bottom: 18px;
        left: 18px;
    }
    .whatsapp-float .wa-icon {
        width: 50px;
        height: 50px;
    }
    html[dir="rtl"] .whatsapp-float,
    body[dir="rtl"] .whatsapp-float {
        left: auto;
        right: 18px;
    }
    .theme-panel {
        gap: 4px;
        padding: 4px 7px;
    }
    .theme-dot {
        width: 18px;
        height: 18px;
    }
    .theme-panel-label { display: none; }
}


  /* =============================================
     ENGLISH LANGUAGE HEADER OVERFLOW FIX
     Navbar items are longer in English — reduce
     font-size and padding to keep everything on one row
     ============================================= */
  body.lang-en .navbar a,
  body.lang-en .navbar a:focus {
      font-size: 15px !important;
      padding: 10px 0 10px 16px !important;
      font-weight: 600;
      letter-spacing: 0;
  }

  body.lang-en #header .container {
      flex-wrap: nowrap;
      overflow: visible;
  }

  body.lang-en .theme-panel {
      gap: 3px;
      padding: 4px 8px;
  }

  body.lang-en .theme-panel-label {
      display: none;
  }

  body.lang-en .theme-swatch {
      width: 20px;
      height: 20px;
  }

  body.lang-en .lang-switcher {
      margin-inline-start: 8px !important;
      margin-inline-end: 4px !important;
  }

  body.lang-en .lang-btn {
      font-size: 12px !important;
      padding: 4px 10px !important;
  }

  body.lang-en .factory-name-block {
      display: none !important;
  }

  @media (max-width: 1199px) {
      body.lang-en .navbar ul {
          display: none;
      }
      body.lang-en .mobile-nav-toggle {
          display: block;
      }
  }
  

  /* ================================================================
     TOPBAR + HEADER REDESIGN
     - Topbar: thin colored bar at top with lang + color switcher
     - Header: white bar below topbar with logo + name + nav + brochure
  ================================================================ */

  /* ── Topbar ── */
  #topbar {
      height: 36px;
      background: var(--theme-primary, #273454);
      color: rgba(255,255,255,0.88);
      font-size: 12px;
      z-index: 999;
      top: 0;
      transition: background 0.4s;
  }

  #topbar .topbar-contact {
      font-family: arabicFont, sans-serif;
      font-size: 12px;
      color: rgba(255,255,255,0.80);
      gap: 16px !important;
  }

  #topbar .topbar-contact i {
      opacity: 0.75;
      font-size: 11px;
  }

  .topbar-label {
      font-size: 11px;
      color: rgba(255,255,255,0.70);
      font-family: arabicFont, sans-serif;
      white-space: nowrap;
  }

  /* ── Topbar Theme Swatches ── */
  .theme-panel-top {
      display: inline-flex;
      align-items: center;
      gap: 4px;
  }

  .theme-swatch-top {
      width: 18px;
      height: 18px;
      border-radius: 50%;
      cursor: pointer;
      border: 2px solid rgba(255,255,255,0.35);
      outline: none;
      padding: 0;
      transition: transform .2s, border-color .2s, box-shadow .2s;
      box-shadow: 0 1px 4px rgba(0,0,0,.4);
  }
  .theme-swatch-top:hover  { transform: scale(1.3); border-color: rgba(255,255,255,0.9); }
  .theme-swatch-top.active { border-color: #fff; transform: scale(1.2); box-shadow: 0 0 0 2px rgba(255,255,255,0.5); }
  .theme-swatch-top[data-theme="default"] { background: #4a6090; }
  .theme-swatch-top[data-theme="green"]   { background: linear-gradient(135deg, #2D7A54, #1D5C3E); }
  .theme-swatch-top[data-theme="gray"]    { background: linear-gradient(135deg, #5a6275, #3C4352); }
  .theme-swatch-top[data-theme="orange"]  { background: linear-gradient(135deg, #E05A20, #C04A15); }
  .theme-swatch-top[data-theme="silver"]  { background: linear-gradient(135deg, #7a9aaa, #4A6370); }
  .theme-swatch-top[data-theme="blue"]    { background: linear-gradient(135deg, #1a6aaa, #0E4272); }

  /* ── Topbar Language Button ── */
  .lang-btn-top {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 34px;
      height: 24px;
      padding: 0 10px;
      border-radius: 4px;
      font-weight: 700;
      font-size: 12px;
      text-decoration: none !important;
      background: rgba(255,255,255,0.15) !important;
      color: #fff !important;
      border: 1.5px solid rgba(255,255,255,0.45) !important;
      transition: all .25s;
      font-family: arabicFont, sans-serif;
      letter-spacing: 0.5px;
  }
  .lang-btn-top:hover {
      background: rgba(255,255,255,0.30) !important;
      color: #fff !important;
      border-color: rgba(255,255,255,0.75) !important;
  }

  /* ── Header offset — sits below topbar ── */
  #header.header-inner {
      top: 36px !important;
      padding: 12px 0;
      box-shadow: 0 2px 14px rgba(0,0,0,0.10);
  }

  /* Push page content down to account for topbar + header */
  body {
      scroll-padding-top: 90px;
  }

  /* Sections that need offset for fixed header */
  #hero, .breadcrumbs, .section-title {
      /* handled by existing padding/margin-top rules */
  }

  /* ── Company Name Block ── */
  .company-name-block {
      line-height: 1.2;
      padding-inline-end: 12px;
      border-inline-end: 3px solid var(--theme-primary, #273454);
      max-width: 220px;
  }

  .company-name-primary {
      display: block;
      font-family: arabicFont, sans-serif;
      font-size: 18px;
      font-weight: 800;
      color: var(--theme-primary, #273454);
      white-space: nowrap;
      line-height: 1.3;
  }

  .company-name-secondary {
      display: block;
      font-family: 'Raleway', sans-serif;
      font-size: 13px;
      font-weight: 600;
      color: var(--theme-secondary, #1C2847);
      letter-spacing: 0.3px;
      white-space: nowrap;
      opacity: 0.70;
      line-height: 1.3;
  }

  /* ── Compact Navbar — fits both AR & EN ── */
  .navbar a,
  .navbar a:focus {
      font-size: 19px !important;
      padding: 10px 0 10px 22px !important;
      font-weight: 700;
      white-space: nowrap;
  }

  .navbar a:hover,
  .navbar .active,
  .navbar .active:focus,
  .navbar li:hover > a {
      color: var(--theme-primary, #273454) !important;
  }

  /* English: slightly tighter */
  body.lang-en .navbar a,
  body.lang-en .navbar a:focus {
      font-size: 15px !important;
      padding: 10px 0 10px 16px !important;
      font-weight: 600;
      letter-spacing: 0;
  }

  /* ── Brochure Button ── */
  .brochure-btn {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 7px 14px;
      border-radius: 6px;
      background: var(--theme-primary, #273454);
      color: #fff !important;
      font-size: 13px;
      font-weight: 600;
      font-family: arabicFont, sans-serif;
      text-decoration: none !important;
      transition: all 0.3s;
      white-space: nowrap;
      flex-shrink: 0;
      border: 2px solid transparent;
  }
  .brochure-btn i {
      font-size: 15px;
      color: #ff8a8a;
  }
  .brochure-btn:hover {
      background: transparent;
      color: var(--theme-primary, #273454) !important;
      border-color: var(--theme-primary, #273454);
  }
  .brochure-btn:hover i { color: var(--theme-primary, #273454); }

  /* ── Logo image size in new header ── */
  #header.header-inner .logo-img {
      height: 68px;
  }

  /* ── Mobile adjustments ── */
  @media (max-width: 991px) {
      #topbar .topbar-contact { display: none !important; }
      #header.header-inner    { padding: 6px 0; }
      #header.header-inner .logo-img { height: 52px; }
      .company-name-block     { display: none !important; }
      .brochure-btn span      { display: none !important; }
      .brochure-btn           { padding: 7px 10px; }
  }

  @media (max-width: 576px) {
      #topbar { height: 32px; font-size: 11px; }
      #header.header-inner { top: 32px !important; }
      .theme-swatch-top   { width: 15px; height: 15px; }
      .lang-btn-top       { min-width: 28px; font-size: 11px; padding: 0 7px; }
      .topbar-label       { display: none !important; }
  }

  /* ── Override old theme-panel (now hidden in topbar-based layout) ── */
  .theme-panel { display: none !important; }
  .lang-switcher { display: none !important; }
  .factory-name-block { display: none !important; }

  /* ── Topbar uses theme primary bg, keep overrides ── */
  #topbar { background: var(--theme-primary, #273454) !important; }
  

  /* ================================================================
     PRODUCTS PAGE — 3-column cards + WhatsApp button
  ================================================================ */

  .product-card {
      background: #fff;
      border-radius: 10px;
      box-shadow: 0 4px 20px rgba(0,0,0,0.08);
      overflow: hidden;
      display: flex;
      flex-direction: column;
      transition: box-shadow 0.3s, transform 0.3s;
  }
  .product-card:hover {
      box-shadow: 0 8px 30px rgba(0,0,0,0.14);
      transform: translateY(-4px);
  }

  .product-img-wrap {
      width: 100%;
      height: 200px;
      overflow: hidden;
  }
  .product-img-wrap img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.4s;
  }
  .product-card:hover .product-img-wrap img {
      transform: scale(1.05);
  }

  .product-body {
      padding: 18px 20px 20px;
      display: flex;
      flex-direction: column;
      flex-grow: 1;
  }
  .product-body h4 {
      font-family: arabicFont, sans-serif;
      font-size: 16px;
      font-weight: 700;
      color: var(--theme-primary, #273454);
      margin-bottom: 8px;
  }
  .product-body p {
      font-family: arabicFont, sans-serif;
      font-size: 13.5px;
      color: #666;
      line-height: 1.6;
      flex-grow: 1;
      margin-bottom: 16px;
  }

  /* ── WhatsApp Button ── */
  .wa-order-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      width: 100%;
      padding: 10px 16px;
      border-radius: 8px;
      background: #25D366;
      color: #fff !important;
      font-family: arabicFont, sans-serif;
      font-size: 14px;
      font-weight: 700;
      text-decoration: none !important;
      transition: background 0.25s, transform 0.2s;
      margin-top: auto;
  }
  .wa-order-btn i {
      font-size: 18px;
  }
  .wa-order-btn:hover {
      background: #1ebe5d;
      color: #fff !important;
      transform: scale(1.02);
  }

  /* ── Responsive ── */
  @media (max-width: 576px) {
      .product-img-wrap { height: 160px; }
      .product-body { padding: 14px 15px 16px; }
      .col-sm-6 { flex: 0 0 50%; max-width: 50%; }
  }
  

  /* ================================================================
     CONTACT MAP SECTION
  ================================================================ */

  .map-header {
      background: var(--theme-primary, #273454);
      color: #fff;
      border-radius: 10px 10px 0 0;
  }

  .map-title {
      font-family: arabicFont, sans-serif;
      font-size: 16px;
      font-weight: 700;
      color: #fff;
  }

  .map-title i {
      color: #ff9f9f;
  }

  .map-subtitle {
      color: rgba(255,255,255,0.70);
      font-size: 13px;
      font-family: arabicFont, sans-serif;
  }

  /* الخريطة الدائرية */
  .map-circle-wrapper {
      display: flex;
      justify-content: center;
      align-items: center;
      padding: 30px 0 10px;
      background: transparent;
  }

  .map-circle-frame {
      width: 480px;
      height: 480px;
      border-radius: 50%;
      overflow: hidden;
      position: relative;
      box-shadow: 0 0 0 6px var(--theme-primary, #b8984a),
                  0 0 0 10px rgba(184,143,64,0.25),
                  0 12px 40px rgba(0,0,0,0.28);
      transition: box-shadow 0.3s ease, transform 0.3s ease;
  }

  .map-circle-frame:hover {
      box-shadow: 0 0 0 6px var(--theme-primary, #b8984a),
                  0 0 0 14px rgba(184,143,64,0.35),
                  0 18px 50px rgba(0,0,0,0.38);
      transform: scale(1.02);
  }

  .map-circle-frame iframe {
      width: 180%;
      height: 180%;
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      border: 0;
      pointer-events: auto;
      filter: saturate(1.1) contrast(1.02);
  }

  .map-footer {
      background: transparent;
      border-top: none;
      padding-bottom: 20px;
  }

  .open-map-btn {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      color: var(--theme-primary, #273454) !important;
      font-family: arabicFont, sans-serif;
      font-size: 14px;
      font-weight: 600;
      text-decoration: none !important;
      padding: 8px 20px;
      border-radius: 25px;
      border: 1.5px solid var(--theme-primary, #273454);
      transition: all 0.25s;
  }

  .open-map-btn:hover {
      background: var(--theme-primary, #273454);
      color: #fff !important;
  }

  @media (max-width: 768px) {
      .map-circle-frame {
          width: 320px;
          height: 320px;
      }
  }

  @media (max-width: 480px) {
      .map-circle-frame {
          width: 260px;
          height: 260px;
      }
  }
  
  /* ================================================================
     FINAL OVERRIDE — Topbar Dark Steel
     يُحمَّل هذا الملف بعد style.css لذا تكون هذه القواعد هي الأخيرة
     ================================================================ */

  /* الـ Topbar يأخذ لون الفوتر الداكن — بصرف النظر عن الثيم المختار */
  #topbar {
      background: #0D1520 !important;
      border-bottom: 1px solid rgba(212, 160, 23, 0.22) !important;
  }
  #topbar .topbar-contact {
      color: #94A3B8 !important;
  }
  #topbar .topbar-contact i {
      color: #D4A017 !important;
      opacity: 1 !important;
  }
  #topbar .topbar-label {
      color: rgba(255, 255, 255, 0.50) !important;
  }

  /* الـ theme swatches تظل مرئية على الخلفية الداكنة */
  .theme-swatch-top {
      box-shadow: 0 1px 5px rgba(0,0,0,0.6) !important;
      border-color: rgba(255,255,255,0.30) !important;
  }
  .theme-swatch-top:hover {
      border-color: #D4A017 !important;
  }
  .theme-swatch-top.active {
      border-color: #D4A017 !important;
      box-shadow: 0 0 0 2px rgba(212, 160, 23, 0.4) !important;
  }

  /* زر اللغة يتكيّف مع الخلفية الداكنة */
  .lang-btn-top {
      background: rgba(212, 160, 23, 0.12) !important;
      border-color: rgba(212, 160, 23, 0.40) !important;
      color: #D4A017 !important;
  }
  .lang-btn-top:hover {
      background: #D4A017 !important;
      border-color: #D4A017 !important;
      color: #fff !important;
  }

  /* ── نهاية Final Override ── */

  /* ================================================================
     BUTTON THEME COMPATIBILITY — أزرار متوافقة مع الثيم المختار
     يجب أن يكون هذا القسم الأخير دائماً (يُحمَّل بعد style.css)
     كل الأزرار التفاعلية تتبع var(--theme-primary)
     الذهبي #D4A017 يبقى للعناصر الزخرفية فقط
  ================================================================ */

  /* ── زر البروشور ── */
  .brochure-btn {
      background:    var(--theme-primary, #273454) !important;
      border-color:  var(--theme-primary, #273454) !important;
      color:         #fff !important;
  }
  .brochure-btn:hover {
      background:    var(--theme-secondary, #1C2847) !important;
      border-color:  var(--theme-secondary, #1C2847) !important;
      color:         #fff !important;
  }
  .brochure-btn i {
      color: #fff !important;
  }
  .brochure-btn:hover i {
      color: #fff !important;
  }

  /* ── زر Hero ── */
  #hero .btn-get-started {
      background:    transparent !important;
      border-color:  rgba(255,255,255,0.80) !important;
      color:         #fff !important;
  }
  #hero .btn-get-started:hover {
      background:    var(--theme-primary, #273454) !important;
      border-color:  var(--theme-primary, #273454) !important;
      color:         #fff !important;
  }

  /* ── زر "اعرف أكثر" في Why-Us ──
     يعيش على خلفية داكنة → ghost button أبيض يتحول لأبيض معكوس */
  .why-us .content .more-btn {
      background:    rgba(255,255,255,0.10) !important;
      border:        1.5px solid rgba(255,255,255,0.55) !important;
      color:         #fff !important;
      border-radius: 50px !important;
  }
  .why-us .content .more-btn:hover {
      background:    #fff !important;
      border-color:  #fff !important;
      color:         var(--theme-primary, #273454) !important;
  }

  /* ── نموذج التواصل — زر الإرسال ── */
  .contact .message-form button[type=submit] {
      background:  var(--theme-primary, #273454) !important;
      border:      none !important;
      color:       #fff !important;
  }
  .contact .message-form button[type=submit]:hover {
      background:  var(--theme-secondary, #1C2847) !important;
      color:       #fff !important;
  }

  /* ── تركيز حقول التواصل ── */
  .contact .message-form input:focus,
  .contact .message-form textarea:focus {
      border-color: var(--theme-primary, #273454) !important;
      box-shadow:   0 0 0 3px var(--theme-light, rgba(39,52,84,0.12)) !important;
  }

  /* ── خريطة — زر فتح في جوجل ── */
  .open-map-btn {
      color:        var(--theme-primary, #273454) !important;
      border-color: var(--theme-primary, #273454) !important;
  }
  .open-map-btn:hover {
      background:   var(--theme-primary, #273454) !important;
      color:        #fff !important;
      border-color: var(--theme-primary, #273454) !important;
  }

  /* ── زر تفاصيل المنتج ── */
  .product-detail-btn {
      background: var(--theme-primary, #273454) !important;
      color:      #fff !important;
  }
  .product-detail-btn:hover {
      background: var(--theme-secondary, #1C2847) !important;
      color:      #fff !important;
  }

  /* ── صفحة تفاصيل المنتج — زر الإرسال ── */
  .pd-submit-btn {
      background: var(--theme-primary, #273454) !important;
      color:      #fff !important;
  }
  .pd-submit-btn:hover {
      background: var(--theme-secondary, #1C2847) !important;
      color:      #fff !important;
  }

  /* ── تركيز حقول نموذج المنتج ── */
  .pd-email-form .form-control:focus {
      border-color: var(--theme-primary, #273454) !important;
      box-shadow:   0 0 0 3px var(--theme-light, rgba(39,52,84,0.12)) !important;
  }

  /* ── زر Back-to-Top ── */
  .back-to-top {
      background: var(--theme-primary, #273454) !important;
  }
  .back-to-top:hover {
      background: var(--theme-secondary, #1C2847) !important;
  }

  /* ── روابط Product Detail (رابط العودة) ── */
  .product-back-link,
  .pd-back-link {
      color: var(--theme-primary, #273454) !important;
  }
  .product-back-link:hover,
  .pd-back-link:hover {
      color: var(--theme-secondary, #1C2847) !important;
  }

  /* ── استعادة الـ Navbar لألوان الثيم ── */
  .navbar a:hover,
  .navbar .active,
  .navbar .active:focus,
  .navbar li:hover > a {
      color: var(--theme-primary, #273454) !important;
  }
  .navbar-mobile a:hover,
  .navbar-mobile .active,
  .navbar-mobile .active:focus,
  .navbar-mobile li:hover > a {
      color: var(--theme-primary, #273454) !important;
  }

  /* ── Badge معرض الصور — لون الثيم للخلفية الداكنة ── */
  /* (نبقيه داكن/ذهبي لأنه عنصر زخرفي وليس زراً) */

  /* ── نهاية BUTTON THEME COMPATIBILITY ── */
