/* =========================================================================
   EMG Store Platform — Electro Home v11 Flagship Storefront Theme
   Path: assets/store/css/themes/theme_electro_v11.css
   1:1 Authentic Visual & Interactive Replica of https://electro.madrasthemes.com/home-v11/
   Full RTL Arabic + Multi-Store Dynamic Variables + Electro Dark/Light Mode Switcher
   ========================================================================= */

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

*,
*::before,
*::after {
    box-sizing: border-box;
}

.fa, .fas, .fa-solid, .far, .fa-regular, .fab, .fa-brands {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", "FontAwesome", sans-serif !important;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
    display: inline-block;
}

.fab, .fa-brands {
    font-family: "Font Awesome 6 Brands", "FontAwesome", sans-serif !important;
}

:root {
    --ec-primary: #fed700;
    --ec-primary-hover: #e6c200;
    --ec-ink: #333e48;
    --ec-ink-soft: #5c6770;
    --ec-blue: #0062bd;
    --ec-sale: #ea1b25;
    --ec-canvas: #f6f7f9;
    --ec-surface: #ffffff;
    --ec-surface-alt: #f8f9fb;
    --ec-border: #eaeaea;
    --ec-border-strong: #dddddd;
    --ec-radius: 8px;
    --ec-font: 'Cairo', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html,
body.theme-electro_v11 {
    font-family: var(--ec-font) !important;
    background-color: var(--ec-canvas) !important;
    color: var(--ec-ink) !important;
    direction: rtl;
    text-align: right;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Electro Native Dark Mode (Matches electro-mode-switcher) */
body.theme-electro_v11.ec-dark-mode {
    --ec-ink: #f3f4f6;
    --ec-ink-soft: #cbd5e1;
    --ec-blue: #60a5fa;
    --ec-sale: #f87171;
    --ec-canvas: #141414;
    --ec-surface: #1f1f1f;
    --ec-surface-alt: #272727;
    --ec-border: #323232;
    --ec-border-strong: #404040;
    background-color: #141414 !important;
    color: #f3f4f6 !important;
}

/* Protect Electro Storefront from Global Salla/Royal-Navy Overrides & Drawer Leaks */
html[data-theme="dark"] body.theme-electro_v11:not(.ec-dark-mode),
html[data-theme="light"] body.theme-electro_v11:not(.ec-dark-mode) {
    background-color: var(--ec-canvas) !important;
    color: var(--ec-ink) !important;
}

body.theme-electro_v11 .mobile-search-overlay:not(.active),
body.theme-electro_v11 .mobile-nav-drawer-overlay:not(.active),
body.theme-electro_v11 .emg-mobile-bottom-bar,
body.theme-electro_v11 .salla-master-header,
body.theme-electro_v11 .madar-header {
    display: none !important;
}

body.theme-electro_v11 .container,
body.theme-electro_v11 .ec-container {
    width: 100%;
    max-width: 1410px;
    margin: 0 auto;
    padding: 0 18px;
}

body.theme-electro_v11 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

body.theme-electro_v11 img {
    max-width: 100%;
}

/* Global Out-Of-Stock Stamp Support for Inner Pages */
.emg-out-of-stock-stamp {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-12deg);
    z-index: 10;
    border: 2.5px solid #dc2626 !important;
    color: #dc2626 !important;
    background: rgba(255, 255, 255, 0.85) !important;
    padding: 5px 14px !important;
    font-size: 15px;
    font-weight: 900;
    border-radius: 8px !important;
    pointer-events: none;
    white-space: nowrap;
}

/* =========================================================================
   1. HEADER SHELL & SEAMLESS HERO OVERLAY (.ec-header-shell)
   ========================================================================= */
.ec-header-shell {
    position: relative;
    z-index: 1020;
}

.ec-header-shell.ec-is-home {
    background: transparent;
}

.ec-header-shell.ec-is-inner {
    background: linear-gradient(180deg, #cfe1f0 0%, #e7f0f8 100%);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--ec-border);
}

body.theme-electro_v11.ec-dark-mode .ec-header-shell.ec-is-inner {
    background: linear-gradient(180deg, #1b222a 0%, #141414 100%);
    border-bottom-color: #2d2d2d;
}

/* =========================================================================
   2. TRANSPARENT TOP BAR v5 (.ec-topbar)
   ========================================================================= */
.ec-topbar {
    background: transparent;
    border-bottom: none;
    font-size: 12.5px;
    color: #333e48;
    padding-top: 4px;
}

body.theme-electro_v11.ec-dark-mode .ec-topbar {
    color: #cbd5e1;
}

.ec-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 38px;
    gap: 12px;
    flex-wrap: wrap;
}

.ec-topbar-welcome {
    font-weight: 600;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ec-topbar-links {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ec-topbar-links li {
    display: inline-flex;
    align-items: center;
}

.ec-topbar-links li + li::before {
    content: "";
    display: inline-block;
    width: 1px;
    height: 12px;
    background: rgba(51, 62, 72, 0.24);
    margin: 0 12px;
}

body.theme-electro_v11.ec-dark-mode .ec-topbar-links li + li::before {
    background: rgba(255, 255, 255, 0.22);
}

.ec-topbar-links a,
.ec-topbar-links button {
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 600;
    color: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ec-topbar-links a i,
.ec-topbar-links button i {
    opacity: 0.8;
    font-size: 13px;
}

.ec-topbar-links a:hover,
.ec-topbar-links button:hover {
    color: var(--ec-blue);
}

/* =========================================================================
   3. SIGNATURE DARK PILL NAVBAR v11 (.ec-header-v11 & .ec-masthead-pill)
   ========================================================================= */
.ec-header-v11 {
    background: transparent;
    position: relative;
    z-index: 1020;
}

.ec-masthead {
    padding: 4px 0 6px;
}

.ec-masthead-pill {
    background: #181818;
    border-radius: 999px;
    min-height: 68px;
    padding: 10px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
}

body.theme-electro_v11.ec-dark-mode .ec-masthead-pill {
    background: #101010;
    border: 1px solid #2b2b2b;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

/* Brand + Hamburger Group */
.ec-logo-nav-group {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-shrink: 0;
}

.ec-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff !important;
}

.ec-logo-pill-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 999px;
    padding: 4px 10px;
    max-height: 36px;
}

.ec-brand-logo-img {
    max-height: 32px;
    max-width: 120px;
    width: auto;
    object-fit: contain;
    display: block;
}

.ec-wordmark {
    font-family: 'Inter', 'Cairo', sans-serif;
    font-size: 34px;
    font-weight: 900;
    letter-spacing: -1.4px;
    line-height: 1;
    color: #ffffff !important;
    display: inline-flex;
    align-items: baseline;
}

.ec-wordmark-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ec-primary);
    margin-left: 2px;
}

.ec-hamburger-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #ffffff;
    font-size: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.ec-hamburger-btn:hover {
    color: var(--ec-primary);
    background: rgba(255, 255, 255, 0.08);
}

/* Dark-Charcoal Inner Search Pill (.ec-search-pill) */
.ec-search-form {
    flex: 1 1 auto;
    max-width: 690px;
}

.ec-search-pill {
    display: flex;
    align-items: stretch;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    background: #3a3d40;
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.ec-search-pill:focus-within {
    border-color: rgba(254, 215, 0, 0.65);
    box-shadow: 0 0 0 3px rgba(254, 215, 0, 0.2);
}

.ec-search-input {
    flex: 1 1 auto;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    padding: 0 22px;
    font-family: var(--ec-font);
    font-size: 13.5px;
    font-weight: 600;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    min-width: 120px;
}

.ec-search-input::placeholder {
    color: #c5ccd3 !important;
    -webkit-text-fill-color: #c5ccd3 !important;
    opacity: 1;
}

.ec-search-cat-wrap {
    display: flex;
    align-items: center;
    border-inline-start: 1px solid rgba(255, 255, 255, 0.14);
    padding: 0 14px;
    background: transparent;
}

.ec-search-cat-select {
    border: none !important;
    outline: none !important;
    background: transparent !important;
    font-family: var(--ec-font);
    font-size: 13px;
    font-weight: 600;
    color: #e5e7eb !important;
    -webkit-text-fill-color: #e5e7eb !important;
    cursor: pointer;
    max-width: 165px;
    padding-inline-end: 4px;
}

.ec-search-cat-select option {
    background-color: #212529 !important;
    color: #ffffff !important;
}

.ec-search-submit {
    width: 58px;
    border: none;
    background: var(--ec-primary);
    color: #181818;
    font-size: 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    flex-shrink: 0;
    border-start-end-radius: 999px;
    border-end-end-radius: 999px;
}

.ec-search-submit:hover {
    background: var(--ec-primary-hover);
}

/* Header Action Icons (White on #181818 Pill + #fed700 Badges) */
.ec-header-icons {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-shrink: 0;
}

.ec-icon-action {
    position: relative;
    background: none;
    border: none;
    padding: 4px;
    color: #ffffff !important;
    font-size: 21px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--ec-font);
}

.ec-icon-action:hover {
    color: var(--ec-primary) !important;
}

.ec-icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ec-icon-badge {
    position: absolute;
    bottom: -7px;
    inset-inline-end: -9px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--ec-primary);
    color: #181818;
    font-size: 11px;
    font-weight: 900;
    font-family: 'Inter', 'Cairo', sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.ec-cart-action-text {
    font-size: 15px;
    font-weight: 800;
    color: #ffffff;
    font-family: 'Inter', 'Cairo', sans-serif;
    white-space: nowrap;
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
}

.ec-cart-action-text small {
    font-size: 12px;
    font-weight: 700;
    opacity: 0.92;
}

/* =========================================================================
   4. TRANSPARENT SECONDARY NAVIGATION BAR (.ec-secondary-nav)
   ========================================================================= */
.ec-secondary-nav {
    background: transparent;
    border-bottom: none;
    padding: 8px 0 4px;
}

.ec-secondary-nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.ec-secondary-nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

.ec-secondary-nav-list::-webkit-scrollbar {
    display: none;
}

.ec-secondary-nav-item a,
.ec-secondary-nav-item button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 13.5px;
    font-weight: 700;
    color: #22292f;
    white-space: nowrap;
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: var(--ec-font);
}

body.theme-electro_v11.ec-dark-mode .ec-secondary-nav-item a,
body.theme-electro_v11.ec-dark-mode .ec-secondary-nav-item button {
    color: #f3f4f6;
}

/* Signature Crimson Red "All Pages / جميع الأقسام" Trigger */
.ec-secondary-nav-item.ec-all-depts-trigger button {
    color: #ea1b25 !important;
    font-weight: 800;
    padding-inline-start: 6px;
}

body.theme-electro_v11.ec-dark-mode .ec-secondary-nav-item.ec-all-depts-trigger button {
    color: #ff6b6b !important;
}

.ec-secondary-nav-item a:hover {
    color: var(--ec-blue);
}

.ec-nav-hot-badge {
    background: var(--ec-sale);
    color: #ffffff;
    font-size: 10px;
    font-weight: 900;
    padding: 1px 6px;
    border-radius: 4px;
    line-height: 1.3;
}

.ec-secondary-promo-note {
    font-size: 13.5px;
    font-weight: 800;
    color: #22292f;
    white-space: nowrap;
    padding-inline-end: 8px;
}

body.theme-electro_v11.ec-dark-mode .ec-secondary-promo-note {
    color: #e2e8f0;
}

/* Handheld Mobile Header (< 992px) */
.ec-handheld-header {
    display: none;
    background: #181818;
    padding: 10px 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.ec-handheld-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.ec-handheld-brand {
    font-family: 'Inter', 'Cairo', sans-serif;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -1px;
    color: #ffffff !important;
    display: inline-flex;
    align-items: baseline;
    line-height: 1;
}

.ec-handheld-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 19px;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
}

.ec-handheld-btn:hover {
    color: var(--ec-primary);
}

.ec-handheld-search-drawer {
    display: none;
    background: #222528;
    padding: 10px 16px 12px;
    border-bottom: 1px solid #333;
}

.ec-handheld-search-drawer.active {
    display: block;
}

/* =========================================================================
   5. OFF-CANVAS ALL DEPARTMENTS MEGA DRAWER
   ========================================================================= */
.ec-offcanvas-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.58);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.28s ease;
}

.ec-offcanvas-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.ec-offcanvas-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    width: 320px;
    max-width: 88vw;
    background: var(--ec-surface);
    z-index: 9999;
    transform: translateX(102%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.25);
}

.ec-offcanvas-backdrop.active .ec-offcanvas-drawer {
    transform: translateX(0);
}

.ec-offcanvas-head {
    background: #181818;
    color: #ffffff;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 900;
    font-size: 15px;
    border-bottom: 3px solid var(--ec-primary);
}

.ec-offcanvas-close {
    background: rgba(255, 255, 255, 0.12);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #ffffff;
    font-size: 14px;
    cursor: pointer;
}

.ec-offcanvas-close:hover {
    background: var(--ec-primary);
    color: #181818;
}

.ec-offcanvas-list {
    list-style: none;
    margin: 0;
    padding: 8px 0;
    overflow-y: auto;
    flex: 1;
}

.ec-offcanvas-item {
    border-bottom: 1px solid var(--ec-border);
}

.ec-offcanvas-link-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ec-offcanvas-link-row a {
    flex: 1;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 700;
    color: var(--ec-ink);
    display: flex;
    align-items: center;
    gap: 10px;
}

.ec-offcanvas-link-row a:hover {
    color: var(--ec-blue);
    background: var(--ec-surface-alt);
}

.ec-sub-toggle-btn {
    width: 42px;
    height: 42px;
    background: transparent;
    border: none;
    border-inline-start: 1px solid var(--ec-border);
    color: var(--ec-ink-soft);
    cursor: pointer;
}

.ec-offcanvas-sublist {
    display: none;
    list-style: none;
    margin: 0;
    padding: 4px 28px 10px 16px;
    background: var(--ec-surface-alt);
}

.ec-offcanvas-item.open .ec-offcanvas-sublist {
    display: block;
}

.ec-offcanvas-sublist li a {
    display: block;
    padding: 7px 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ec-ink-soft);
}

.ec-offcanvas-sublist li a:hover {
    color: var(--ec-blue);
}

/* =========================================================================
   6. FULL-BLEED HERO SLIDER BLOCK v11 (.ec-hero-block)
   ========================================================================= */
.ec-hero-block {
    position: relative;
    background-color: #d2e2f0;
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    overflow: hidden;
    margin-top: -176px;
    padding: 204px 0 96px;
}

body.theme-electro_v11.ec-dark-mode .ec-hero-block::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(16, 20, 26, 0.84) 0%, rgba(16, 20, 26, 0.72) 100%);
    pointer-events: none;
}

.ec-hero-slider {
    position: relative;
    min-height: 390px;
    z-index: 2;
}

.ec-hero-slide {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
    min-height: 390px;
    padding: 0 36px;
    animation: ecHeroFadeIn 0.55s ease;
}

.ec-hero-slide.active {
    display: flex;
}

@keyframes ecHeroFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.ec-hero-copy {
    flex: 1 1 52%;
    max-width: 610px;
    padding: 10px 0;
}

.ec-hero-pretitle {
    font-size: 31px;
    font-weight: 400;
    color: #2b3742;
    letter-spacing: 0.2px;
    margin-bottom: 4px;
    line-height: 1.28;
}

.ec-hero-title {
    font-size: 42px;
    font-weight: 800;
    color: #2b3742;
    line-height: 1.22;
    margin: 0 0 22px;
}

body.theme-electro_v11.ec-dark-mode .ec-hero-pretitle,
body.theme-electro_v11.ec-dark-mode .ec-hero-title,
body.theme-electro_v11.ec-dark-mode .ec-hero-offer-label,
body.theme-electro_v11.ec-dark-mode .ec-hero-price-callout,
body.theme-electro_v11.ec-dark-mode .ec-hero-offer-suffix {
    color: #f8fafc;
}

.ec-hero-offer-wrap {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.ec-hero-offer-label {
    font-size: 14.5px;
    font-weight: 800;
    color: #2b3742;
}

.ec-hero-price-callout {
    display: inline-flex;
    align-items: flex-start;
    gap: 3px;
    color: #2b3742;
    line-height: 0.95;
}

.ec-hero-price-num {
    font-size: 50px;
    font-weight: 900;
    font-family: 'Inter', 'Cairo', sans-serif;
    letter-spacing: -1.5px;
}

.ec-hero-price-cur {
    font-size: 20px;
    font-weight: 800;
    top: 0;
    margin-top: 4px;
}

.ec-hero-offer-suffix {
    font-size: 14px;
    font-weight: 900;
    color: #2b3742;
}

.ec-hero-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--ec-primary);
    color: #22292f !important;
    font-size: 15px;
    font-weight: 800;
    padding: 12px 38px;
    border-radius: 9px;
    box-shadow: 0 8px 20px rgba(254, 215, 0, 0.35);
    transition: all 0.25s ease;
}

.ec-hero-cta-btn:hover {
    background: #181818;
    color: #ffffff !important;
    transform: translateY(-2px);
}

.ec-hero-visual {
    flex: 1 1 45%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.ec-hero-visual img {
    max-height: 365px;
    max-width: 100%;
    width: auto;
    height: auto;
    border-radius: 22px;
    object-fit: contain;
    filter: drop-shadow(0 18px 28px rgba(15, 23, 42, 0.16));
    animation: ecFloatImg 5s ease-in-out infinite;
}

.ec-hero-visual video {
    width: 100%;
    max-width: 520px;
    max-height: 340px;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
}

@keyframes ecFloatImg {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}

/* Electro Pill Pagination Dots */
.ec-hero-dots,
.ec-carousel-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    position: relative;
    z-index: 3;
}

.ec-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(51, 62, 72, 0.26);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

body.theme-electro_v11.ec-dark-mode .ec-dot {
    background: rgba(255, 255, 255, 0.3);
}

.ec-dot.active {
    width: 30px;
    background: var(--ec-primary);
}

.ec-hero-arrow {
    position: absolute;
    top: 48%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.9);
    color: #22292f;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 4;
    transition: all 0.2s ease;
}

.ec-hero-arrow:hover {
    background: var(--ec-primary);
    border-color: var(--ec-primary);
    color: #181818;
}

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

/* =========================================================================
   7. OVERLAPPING BRANDS BAR + 8-CELL CATEGORY MATRIX (.ec-brand-cat-box)
   ========================================================================= */
.ec-brand-cat-section {
    margin-top: -58px;
    margin-bottom: 36px;
    position: relative;
    z-index: 10;
}

.ec-brand-cat-box {
    background: var(--ec-surface);
    border: 1px solid var(--ec-border);
    border-radius: 18px 18px 8px 8px;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.ec-brands-strip {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 22px;
    padding: 20px 30px;
    border-bottom: 1px solid var(--ec-border);
}

.ec-brands-label {
    font-size: 14.5px;
    font-weight: 800;
    color: var(--ec-ink);
    margin: 0;
}

.ec-brands-logos {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 26px;
    flex: 1;
}

.ec-brand-top-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0.72;
    filter: grayscale(100%);
    transition: all 0.22s ease;
}

.ec-brand-top-item:hover {
    opacity: 1;
    filter: grayscale(0%);
}

.ec-brand-top-item img {
    max-height: 34px;
    max-width: 125px;
    width: auto;
    object-fit: contain;
}

.ec-brand-wordmark {
    font-family: 'Inter', 'Cairo', sans-serif;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: var(--ec-ink-soft);
}

.ec-more-brands-link {
    margin-inline-start: auto;
    font-size: 13px;
    font-weight: 700;
    color: var(--ec-ink-soft);
}

.ec-more-brands-link:hover {
    color: var(--ec-blue);
}

/* 8-Cell Category Matrix */
.ec-cat-matrix {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.ec-cat-cell {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid var(--ec-border);
    border-inline-start: 1px solid var(--ec-border);
    background: var(--ec-surface);
    transition: background 0.2s ease;
}

.ec-cat-cell:nth-child(4n + 1) {
    border-inline-start: none;
}

.ec-cat-cell-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 92px;
    padding: 9px 14px;
    overflow: hidden;
    background: var(--ec-surface-alt);
}

.ec-cat-cell-banner img {
    width: auto;
    max-width: 112px;
    height: 74px;
    object-fit: contain;
    border-radius: 8px;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: high-quality;
    transition: transform 0.3s ease;
}

.ec-cat-cell:hover .ec-cat-cell-banner img {
    transform: scale(1.06);
}

.ec-cat-cell-body {
    padding: 16px 20px 18px;
    position: relative;
    flex: 1;
}

.ec-cat-viewall {
    position: absolute;
    top: -16px;
    inset-inline-end: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--ec-surface);
    color: var(--ec-ink);
    border: 1px solid var(--ec-border);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    transition: all 0.22s ease;
}

.ec-cat-cell:hover .ec-cat-viewall,
.ec-cat-viewall:hover {
    background: var(--ec-primary);
    border-color: var(--ec-primary);
    color: #181818;
}

.ec-cat-cell-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--ec-ink);
    margin: 0 0 12px;
}

.ec-cat-cell-title a:hover {
    color: var(--ec-blue);
}

.ec-cat-sublist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ec-cat-sublist li a {
    font-size: 13px;
    font-weight: 600;
    color: var(--ec-ink-soft);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.ec-cat-sublist li a:hover {
    color: var(--ec-blue);
    transform: translateX(-3px);
}

/* =========================================================================
   8. OUTLET CLEARANCE FULL-WIDTH BANNER + CAROUSEL (.ec-outlet-section)
   ========================================================================= */
.ec-outlet-section {
    background-size: cover;
    background-position: center;
    padding: 36px 0;
    margin-bottom: 36px;
    position: relative;
}

body.theme-electro_v11.ec-dark-mode .ec-outlet-section {
    background-blend-mode: multiply;
    background-color: #1c1c1c;
}

.ec-outlet-grid {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 24px;
    align-items: center;
}

.ec-outlet-promo {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(6px);
    padding: 28px 24px;
    border-radius: 12px;
    border: 1px solid var(--ec-border);
}

body.theme-electro_v11.ec-dark-mode .ec-outlet-promo {
    background: rgba(31, 31, 31, 0.95);
}

.ec-outlet-line1 {
    font-size: 25px;
    font-weight: 400;
    color: var(--ec-ink);
    line-height: 1.2;
}

.ec-outlet-line2 {
    font-size: 28px;
    font-weight: 900;
    color: var(--ec-ink);
    margin-bottom: 14px;
    line-height: 1.25;
}

.ec-outlet-sub {
    font-size: 14px;
    font-weight: 700;
    color: var(--ec-ink-soft);
    margin-bottom: 4px;
}

.ec-outlet-discount {
    font-size: 27px;
    font-weight: 900;
    color: var(--ec-sale);
    margin-bottom: 20px;
}

/* =========================================================================
   9. AUTHENTIC ELECTRO PRODUCT CARD (.ec-product-item)
   ========================================================================= */
.ec-carousel-wrap {
    position: relative;
}

.ec-products-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc(20% - 0px);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    background: var(--ec-surface);
    border: 1px solid var(--ec-border);
    border-radius: 8px;
}

.ec-products-track::-webkit-scrollbar {
    display: none;
}

.ec-outlet-section .ec-products-track {
    grid-auto-columns: calc(25% - 0px);
}

.ec-product-item {
    scroll-snap-align: start;
    border-inline-end: 1px solid var(--ec-border);
    background: var(--ec-surface);
    position: relative;
    transition: box-shadow 0.22s ease, z-index 0.1s;
}

.ec-product-item:hover {
    z-index: 6;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.ec-product-inner {
    padding: 16px 16px 14px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ec-loop-categories {
    display: block;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--ec-ink-soft);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ec-loop-categories a {
    color: var(--ec-ink-soft);
}

.ec-loop-categories a:hover {
    color: var(--ec-blue);
}

.ec-loop-product-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--ec-blue);
    line-height: 1.42;
    height: 40px;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ec-loop-product-link:hover .ec-loop-product-title {
    color: var(--ec-ink);
}

.ec-product-thumb {
    position: relative;
    height: 178px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    padding: 6px;
}

.ec-product-thumb img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.28s ease;
}

.ec-product-item:hover .ec-product-thumb img {
    transform: scale(1.04);
}

.ec-onsale-badge {
    position: absolute;
    top: 4px;
    inset-inline-start: 4px;
    background: var(--ec-primary);
    color: #181818;
    font-size: 11px;
    font-weight: 900;
    padding: 2px 8px;
    border-radius: 999px;
    z-index: 2;
}

.ec-product-meta {
    margin-bottom: 8px;
}

.ec-star-row {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    margin-bottom: 2px;
}

.ec-stars-bg {
    position: relative;
    display: inline-block;
    color: #d6d6d6;
    letter-spacing: 1px;
    line-height: 1;
}

.ec-stars-fill {
    position: absolute;
    top: 0;
    right: 0;
    overflow: hidden;
    color: #fed700;
    white-space: nowrap;
}

.ec-rating-num {
    font-size: 11px;
    color: var(--ec-ink-soft);
}

.ec-sku-line {
    font-size: 11px;
    color: var(--ec-ink-soft);
    font-family: 'Inter', monospace;
}

.ec-product-footer {
    margin-top: auto;
}

.ec-price-cart-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 6px;
}

.ec-price-box {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.ec-price-regular {
    font-size: 18px;
    font-weight: 800;
    color: var(--ec-ink);
    font-family: 'Inter', 'Cairo', sans-serif;
}

.ec-price-ins {
    text-decoration: none;
    font-size: 18px;
    font-weight: 900;
    color: var(--ec-sale);
    font-family: 'Inter', 'Cairo', sans-serif;
}

.ec-price-del {
    font-size: 12px;
    color: var(--ec-ink-soft);
    font-family: 'Inter', 'Cairo', sans-serif;
}

.ec-vat-note {
    font-size: 10px;
    color: var(--ec-ink-soft);
    font-weight: 600;
}

/* Signature Electro Circular Cart Button */
.ec-add-cart-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: #e2e5e9;
    color: #333e48;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.22s ease;
    flex-shrink: 0;
}

body.theme-electro_v11.ec-dark-mode .ec-add-cart-btn {
    background: #333333;
    color: #ffffff;
}

.ec-product-item:hover .ec-add-cart-btn,
.ec-add-cart-btn:hover {
    background: var(--ec-primary);
    color: #181818;
    transform: scale(1.06);
    box-shadow: 0 4px 12px rgba(254, 215, 0, 0.45);
}

/* Hover Wishlist & Compare Footer */
.ec-hover-area {
    border-top: 1px solid var(--ec-border);
    margin-top: 10px;
    padding-top: 8px;
    opacity: 0.75;
    transition: opacity 0.2s ease;
}

.ec-product-item:hover .ec-hover-area {
    opacity: 1;
}

.ec-action-btns {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.ec-action-link {
    background: none;
    border: none;
    padding: 2px 4px;
    font-family: var(--ec-font);
    font-size: 12px;
    font-weight: 600;
    color: var(--ec-ink-soft);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.ec-action-link:hover {
    color: var(--ec-ink);
}

/* Carousel Navigation Chevrons */
.ec-carousel-nav-btn {
    position: absolute;
    top: 46%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--ec-surface);
    border: 1px solid var(--ec-border-strong);
    color: var(--ec-ink);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 8;
    transition: all 0.2s ease;
}

.ec-carousel-nav-btn:hover {
    background: var(--ec-primary);
    border-color: var(--ec-primary);
    color: #181818;
}

.ec-carousel-nav-btn.prev { right: -16px; }
.ec-carousel-nav-btn.next { left: -16px; }

/* =========================================================================
   10. TWO STUDIO PROMO BANNERS (.ec-two-banners)
   ========================================================================= */
.ec-two-banners {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 38px;
}

.ec-promo-banner-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    min-height: 175px;
    display: flex;
    align-items: center;
    border: 1px solid var(--ec-border);
    background: #eef3f8;
}

.ec-promo-banner-card img {
    width: 100%;
    height: 100%;
    min-height: 175px;
    max-height: 215px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.ec-promo-banner-card:hover img {
    transform: scale(1.04);
}

.ec-promo-banner-overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 68%;
    background: linear-gradient(270deg, rgba(244, 247, 251, 0.96) 0%, rgba(244, 247, 251, 0.82) 66%, rgba(244, 247, 251, 0) 100%);
    padding: 22px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: #2b3742;
}

body.theme-electro_v11.ec-dark-mode .ec-promo-banner-overlay {
    background: linear-gradient(270deg, rgba(24, 24, 24, 0.94) 0%, rgba(24, 24, 24, 0.78) 66%, rgba(24, 24, 24, 0) 100%);
    color: #f8fafc;
}

.ec-promo-tag {
    display: inline-block;
    background: var(--ec-primary);
    color: #181818;
    font-size: 11px;
    font-weight: 900;
    padding: 2px 10px;
    border-radius: 999px;
    width: fit-content;
    margin-bottom: 6px;
}

.ec-promo-title {
    font-size: 20px;
    font-weight: 900;
    color: inherit;
    margin: 0 0 4px;
    line-height: 1.3;
}

.ec-promo-sub {
    font-size: 13px;
    font-weight: 600;
    color: #5c6770;
    margin: 0;
}

body.theme-electro_v11.ec-dark-mode .ec-promo-sub {
    color: #cbd5e1;
}

/* =========================================================================
   11. SECTION PRODUCT CAROUSELS & TABS (.ec-section-carousel)
   ========================================================================= */
.ec-section-carousel {
    margin-bottom: 42px;
}

.ec-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    border-bottom: 1px solid var(--ec-border-strong);
    margin-bottom: 18px;
    gap: 16px;
    flex-wrap: wrap;
}

.ec-section-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--ec-ink);
    margin: 0;
    padding-bottom: 10px;
    position: relative;
}

.ec-section-title::after {
    content: "";
    position: absolute;
    bottom: -1px;
    right: 0;
    width: 100%;
    min-width: 90px;
    height: 2px;
    background: var(--ec-primary);
}

.ec-section-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 6px;
}

.ec-tab-btn {
    background: transparent;
    border: 2px solid transparent;
    border-radius: 999px;
    padding: 4px 16px;
    font-family: var(--ec-font);
    font-size: 13.5px;
    font-weight: 800;
    color: var(--ec-ink-soft);
    cursor: pointer;
    transition: all 0.2s ease;
}

.ec-tab-btn.active,
.ec-tab-btn:hover {
    border-color: var(--ec-primary);
    color: var(--ec-ink);
    background: var(--ec-surface);
}

.ec-section-action-link {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ec-ink-soft);
    padding-bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ec-section-action-link:hover {
    color: var(--ec-blue);
}

.ec-tab-pane {
    display: none;
}

.ec-tab-pane.active {
    display: block;
}

/* =========================================================================
   12. BOTTOM BRANDS CAROUSEL & FOOTER v2 (.ec-footer-v2)
   ========================================================================= */
.ec-bottom-brands {
    background: var(--ec-surface);
    border-top: 1px solid var(--ec-border);
    border-bottom: 1px solid var(--ec-border);
    padding: 20px 0;
    margin-top: 24px;
}

.ec-bottom-brands-row {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 24px;
    overflow-x: auto;
    scrollbar-width: none;
}

.ec-bottom-brands-row::-webkit-scrollbar {
    display: none;
}

.ec-footer-v2 {
    background: var(--ec-surface);
    color: var(--ec-ink);
}

.ec-footer-top-widgets {
    padding: 42px 0 32px;
}

.ec-footer-widgets-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.ec-widget-title {
    font-size: 16.5px;
    font-weight: 800;
    color: var(--ec-ink);
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--ec-border);
    position: relative;
}

.ec-widget-title::after {
    content: "";
    position: absolute;
    bottom: -1px;
    right: 0;
    width: 72px;
    height: 2px;
    background: var(--ec-primary);
}

.ec-mini-prod-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ec-mini-prod-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ec-mini-prod-thumb {
    width: 68px;
    height: 68px;
    border: 1px solid var(--ec-border);
    border-radius: 6px;
    padding: 4px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ec-mini-prod-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.ec-mini-prod-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--ec-blue);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
}

.ec-mini-prod-price {
    font-size: 14px;
    font-weight: 800;
    color: var(--ec-ink);
    font-family: 'Inter', 'Cairo', sans-serif;
}

.ec-footer-promo-img {
    width: 100%;
    max-height: 310px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--ec-border);
}

/* Signature Electro Yellow Newsletter Strip */
.ec-newsletter-bar {
    background: var(--ec-primary);
    color: #22292f;
    padding: 18px 0;
}

.ec-newsletter-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.ec-newsletter-copy {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.ec-newsletter-title {
    font-size: 20px;
    font-weight: 800;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #22292f;
}

.ec-newsletter-sub {
    font-size: 14.5px;
    color: #22292f;
}

.ec-newsletter-form {
    flex: 1 1 380px;
    max-width: 490px;
    display: flex;
    height: 44px;
    background: #ffffff;
    border-radius: 999px;
    overflow: hidden;
}

.ec-newsletter-form input {
    flex: 1;
    border: none !important;
    outline: none !important;
    background: #ffffff !important;
    color: #22292f !important;
    -webkit-text-fill-color: #22292f !important;
    padding: 0 20px;
    font-family: var(--ec-font);
    font-size: 13.5px;
}

.ec-newsletter-form button {
    border: none;
    background: #181818;
    color: #ffffff;
    padding: 0 28px;
    font-family: var(--ec-font);
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s ease;
}

.ec-newsletter-form button:hover {
    background: #333e48;
}

/* Footer Bottom Contact + Menus */
.ec-footer-bottom {
    background: var(--ec-surface-alt);
    padding: 46px 0 38px;
    border-top: 1px solid var(--ec-border);
}

.ec-footer-bottom-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr 1fr;
    gap: 30px;
}

.ec-footer-brand-link {
    display: inline-flex;
    align-items: center;
}

.ec-footer-wordmark {
    font-family: 'Inter', 'Cairo', sans-serif;
    font-size: 34px;
    font-weight: 900;
    letter-spacing: -1.4px;
    line-height: 1;
    color: var(--ec-ink);
    display: inline-flex;
    align-items: baseline;
}

.ec-call-us-box {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 20px 0;
}

.ec-headset-icon {
    font-size: 44px;
    color: var(--ec-primary);
    line-height: 1;
}

.ec-call-label {
    display: block;
    font-size: 12.5px;
    color: var(--ec-ink-soft);
    font-weight: 600;
}

.ec-call-number {
    display: block;
    font-size: 21px;
    font-weight: 800;
    color: var(--ec-ink);
    font-family: 'Inter', 'Cairo', sans-serif;
    direction: ltr;
    text-align: right;
}

.ec-footer-address {
    font-size: 13.5px;
    color: var(--ec-ink-soft);
    margin-bottom: 16px;
    line-height: 1.65;
}

.ec-social-list {
    display: flex;
    align-items: center;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.ec-social-list a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--ec-surface);
    border: 1px solid var(--ec-border);
    color: var(--ec-ink-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.ec-social-list a:hover {
    background: var(--ec-primary);
    border-color: var(--ec-primary);
    color: #181818;
}

.ec-footer-menu-title {
    font-size: 15.5px;
    font-weight: 800;
    color: var(--ec-ink);
    margin: 0 0 16px;
}

.ec-footer-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.ec-footer-menu-list a {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ec-ink-soft);
}

.ec-footer-menu-list a:hover {
    color: var(--ec-ink);
}

/* Copyright Bar */
.ec-copyright-bar {
    background: var(--ec-border);
    padding: 12px 0;
}

.ec-copyright-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13px;
    font-weight: 700;
    color: var(--ec-ink);
}

.ec-payment-strip {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ec-payment-strip img {
    max-height: 28px;
    width: auto;
}

/* =========================================================================
   13. VERTICAL PILL DARK/LIGHT MODE SWITCHER (1:1 Electro Home v11) & MODAL
   ========================================================================= */
.ec-mode-switcher {
    position: fixed;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1035;
    background: #9aa3ab;
    border-radius: 999px;
    padding: 3px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

body.theme-electro_v11.ec-dark-mode .ec-mode-switcher {
    background: #33383e;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.ec-mode-btn {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    border: none;
    border-radius: 999px;
    padding: 12px 6px;
    font-family: 'Inter', 'Cairo', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.3px;
    cursor: pointer;
    background: transparent;
    color: #ffffff;
    transition: all 0.2s ease;
    line-height: 1;
}

.ec-mode-btn.active {
    background: #ffffff;
    color: #22292f;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16);
}

/* Compare Modal */
.ec-compare-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.ec-compare-modal.active {
    display: flex;
}

.ec-compare-dialog {
    background: var(--ec-surface);
    color: var(--ec-ink);
    border-radius: 14px;
    width: 100%;
    max-width: 960px;
    max-height: 86vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.ec-compare-header {
    background: #181818;
    color: #ffffff;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 900;
    border-bottom: 3px solid var(--ec-primary);
}

.ec-compare-header button {
    color: #ffffff !important;
}

.ec-compare-body {
    padding: 20px;
    overflow: auto;
}

/* =========================================================================
   14. RESPONSIVE BREAKPOINTS (LAPTOP, TABLET, MOBILE)
   ========================================================================= */
@media (max-width: 1200px) {
    .ec-products-track {
        grid-auto-columns: calc(25% - 0px);
    }
    .ec-outlet-section .ec-products-track {
        grid-auto-columns: calc(33.333% - 0px);
    }
    .ec-cat-matrix {
        grid-template-columns: repeat(2, 1fr);
    }
    .ec-cat-cell:nth-child(2n + 1) {
        border-inline-start: none;
    }
    .ec-footer-widgets-grid,
    .ec-footer-bottom-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .ec-hero-slide {
        padding: 0 18px;
    }
}

@media (max-width: 991px) {
    .ec-topbar,
    .ec-masthead,
    .ec-secondary-nav {
        display: none !important;
    }
    .ec-handheld-header {
        display: block;
    }
    .ec-header-shell.ec-is-inner {
        padding-bottom: 0;
        border-bottom: none;
    }
    .ec-hero-block {
        margin-top: 0 !important;
        padding: 28px 0 72px !important;
    }
    .ec-brand-cat-section {
        margin-top: -38px;
    }
    .ec-outlet-grid {
        grid-template-columns: 1fr;
    }
    .ec-products-track,
    .ec-outlet-section .ec-products-track {
        grid-auto-columns: calc(33.333% - 0px);
    }
    .ec-hero-slide {
        flex-direction: column-reverse;
        text-align: center;
        min-height: auto;
        padding: 12px 0;
        gap: 20px;
    }
    .ec-hero-offer-wrap {
        justify-content: center;
    }
    .ec-hero-title {
        font-size: 28px;
    }
    .ec-hero-pretitle {
        font-size: 20px;
    }
    .ec-hero-price-num {
        font-size: 38px;
    }
    .ec-hero-visual img {
        max-height: 220px;
    }
    .ec-two-banners {
        grid-template-columns: 1fr;
    }
    .ec-mode-switcher {
        left: 8px;
    }
}

@media (max-width: 576px) {
    .ec-products-track,
    .ec-outlet-section .ec-products-track {
        grid-auto-columns: 50%;
    }
    .ec-cat-matrix {
        grid-template-columns: 1fr;
    }
    .ec-cat-cell {
        border-inline-start: none !important;
    }
    .ec-footer-widgets-grid,
    .ec-footer-bottom-grid {
        grid-template-columns: 1fr;
    }
    .ec-promo-banner-overlay {
        width: 82%;
        padding: 16px 18px;
    }
    .ec-promo-title {
        font-size: 17px;
    }
    .ec-carousel-nav-btn.prev { right: 4px; }
    .ec-carousel-nav-btn.next { left: 4px; }
}
