/* Electro Theme — Clinit [build 2026-08-07-v2] */
:root {
    --electro-yellow: #f7c500;
    --electro-yellow-dark: #e0b000;
    --electro-dark: #1a1a2e;
    --electro-gray: #f5f5f5;
    --electro-text: #333333;
    --electro-muted: #777777;
    --electro-border: #e0e0e0;
    --electro-white: #ffffff;
}

* { box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    color: var(--electro-text);
    background: #fff;
    margin: 0;
    padding: 0;
}

a { text-decoration: none; color: inherit; }
a:hover { color: var(--electro-yellow-dark); }

img { max-width: 100%; height: auto; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 16px; }

/* ============================
   TOP BAR
============================= */
.e-topbar {
    background: var(--electro-dark);
    color: #ccc;
    font-size: 12px;
    padding: 6px 0;
}
.e-topbar .container { display: flex; justify-content: space-between; align-items: center; }
.e-topbar a { color: #ccc; }
.e-topbar a:hover { color: var(--electro-yellow); }

/* ============================
   HEADER
============================= */
.e-header {
    background: #fff;
    border-bottom: 1px solid var(--electro-border);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.e-header .container { display: flex; align-items: center; gap: 20px; }

.e-logo img { height: 48px; width: auto; }

.e-search { flex: 1; display: flex; }
.e-search input {
    flex: 1;
    border: 2px solid var(--electro-border);
    border-right: none;
    padding: 10px 16px;
    font-size: 14px;
    border-radius: 4px 0 0 4px;
    outline: none;
    font-family: inherit;
}
.e-search input:focus { border-color: var(--electro-yellow); }
.e-search button {
    background: var(--electro-yellow);
    border: 2px solid var(--electro-yellow);
    padding: 10px 20px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s;
}
.e-search button:hover { background: var(--electro-yellow-dark); }

.e-header-actions { display: flex; align-items: center; gap: 20px; }
.e-header-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 11px;
    color: var(--electro-text);
    cursor: pointer;
    text-decoration: none;
    gap: 2px;
}
.e-header-action svg { width: 22px; height: 22px; }
.e-header-action:hover { color: var(--electro-yellow-dark); }

.e-cart-badge {
    position: relative;
    display: inline-block;
}
.e-cart-count {
    position: absolute;
    top: -8px; right: -8px;
    background: var(--electro-yellow);
    color: #000;
    font-size: 10px;
    font-weight: 700;
    border-radius: 50%;
    width: 18px; height: 18px;
    display: flex; align-items: center; justify-content: center;
}

/* ============================
   NAV BAR
============================= */
.e-navbar {
    background: var(--electro-yellow);
    position: relative;
    z-index: 900;
}
.e-navbar .container { display: flex; align-items: stretch; }

/* Categories button */
.e-nav-cats-btn {
    background: rgba(0,0,0,0.18);
    padding: 0 18px;
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border: none;
    color: #111;
    white-space: nowrap;
    height: 44px;
    transition: background 0.15s;
}
.e-nav-cats-btn:hover, .e-nav-cats-btn[aria-expanded="true"] { background: rgba(0,0,0,0.28); }

/* ── Category mega-menu ── */
.e-cat-menu { position: relative; }

.e-cat-panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 520px;
    background: #fff;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    border-top: 3px solid var(--electro-yellow);
    z-index: 9999;
    flex-direction: row;
}
.e-cat-panel.is-open { display: flex; }

/* Left column: category list */
.e-cat-col-left {
    width: 220px;
    min-width: 220px;
    border-right: 1px solid #f0f0f0;
    overflow-y: auto;
    max-height: 420px;
}

/* Right column: subcategory list */
.e-cat-col-right {
    flex: 1;
    overflow-y: auto;
    max-height: 420px;
    padding: 8px 0;
    display: none;
}
.e-cat-col-right.is-visible { display: block; }
.e-cat-col-right-title {
    padding: 10px 16px 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #aaa;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 4px;
}
.e-cat-col-right ul { list-style: none; margin: 0; padding: 0; }
.e-cat-col-right ul li a {
    display: block;
    padding: 9px 16px;
    font-size: 13px;
    color: var(--electro-text);
    transition: background 0.1s;
}
.e-cat-col-right ul li a:hover { background: var(--electro-gray); color: var(--electro-yellow-dark); }

/* Category items in left column */
.e-cat-panel-list { list-style: none; margin: 0; padding: 6px 0; }
.e-cat-panel-item > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--electro-text);
    transition: background 0.1s, color 0.1s;
    border-bottom: 1px solid #f8f8f8;
    cursor: pointer;
    white-space: nowrap;
}
.e-cat-panel-item > a:hover,
.e-cat-panel-item.active > a {
    background: var(--electro-yellow);
    color: #111;
    font-weight: 600;
}

/* Mobile inline sub-list (hidden by default, shown via JS) */
.e-cat-sub-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: none;
    background: #fafafa;
    border-bottom: 1px solid #f0f0f0;
}
.e-cat-sub-list li a {
    display: block;
    padding: 11px 12px 11px 28px;
    font-size: 13px;
    color: #555;
    border-bottom: 1px solid #f0f0f0;
}
.e-cat-sub-list li a:hover { background: #eee; color: var(--electro-yellow-dark); }
.e-cat-panel-item.active > a svg { transform: rotate(90deg); }
.e-cat-panel-item > a svg { transition: transform 0.15s; }

/* Quick links in navbar */
.e-nav-links { display: flex; list-style: none; margin: 0; padding: 0; flex: 1; }
.e-nav-links > li { position: relative; }
.e-nav-links > li > a {
    display: flex;
    align-items: center;
    padding: 0 16px;
    height: 44px;
    font-size: 13px;
    font-weight: 500;
    color: #111;
    white-space: nowrap;
    transition: background 0.15s;
}
.e-nav-links > li > a:hover { background: rgba(0,0,0,0.1); }

/* ============================
   HERO / BANNER
============================= */
.e-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
    color: #fff;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}
.e-hero .container { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.e-hero-text { flex: 1; }
.e-hero-label { color: var(--electro-yellow); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.e-hero-title { font-size: 42px; font-weight: 800; line-height: 1.15; margin-bottom: 16px; }
.e-hero-title span { color: var(--electro-yellow); }
.e-hero-sub { color: #aaa; font-size: 15px; margin-bottom: 28px; }
.e-btn {
    display: inline-block;
    background: var(--electro-yellow);
    color: #000;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 28px;
    border-radius: 4px;
    transition: background 0.2s, transform 0.1s;
}
.e-btn:hover { background: var(--electro-yellow-dark); color: #000; transform: translateY(-1px); }
.e-btn-outline {
    display: inline-block;
    border: 2px solid var(--electro-yellow);
    color: var(--electro-yellow);
    font-weight: 700;
    font-size: 14px;
    padding: 10px 26px;
    border-radius: 4px;
    transition: all 0.2s;
}
.e-btn-outline:hover { background: var(--electro-yellow); color: #000; }

/* ============================
   SECTION TITLES
============================= */
.e-section { padding: 40px 0; }
.e-section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.e-section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 22px;
    background: var(--electro-yellow);
    border-radius: 2px;
}

/* ============================
   PRODUCT CARDS
============================= */
.e-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}
.e-product-card {
    background: #fff;
    border: 1px solid var(--electro-border);
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
    position: relative;
}
.e-product-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.1); transform: translateY(-2px); }
.e-product-card-img {
    aspect-ratio: 1;
    overflow: hidden;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
}
.e-product-card-img img { width: 100%; height: 100%; object-fit: cover; }
.e-product-card-body { padding: 12px; }
.e-product-card-brand { font-size: 11px; color: var(--electro-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.e-product-card-name { font-size: 13px; font-weight: 500; margin: 4px 0 8px; line-height: 1.4; }
.e-product-card-name a { color: var(--electro-text); }
.e-product-card-name a:hover { color: var(--electro-yellow-dark); }
.e-product-card-price { font-size: 16px; font-weight: 700; color: #111; }
.e-product-card-old-price { font-size: 12px; color: var(--electro-muted); text-decoration: line-through; margin-left: 6px; }
.e-product-card-footer { padding: 0 12px 12px; display: flex; gap: 8px; }
.e-add-to-cart {
    flex: 1;
    background: var(--electro-yellow);
    border: none;
    padding: 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}
.e-add-to-cart:hover { background: var(--electro-yellow-dark); }
.e-wishlist-btn {
    background: var(--electro-gray);
    border: none;
    padding: 8px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}
.e-wishlist-btn:hover { background: #ffecec; }

.e-badge {
    position: absolute;
    top: 10px; left: 10px;
    background: var(--electro-yellow);
    color: #000;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 2px;
}
.e-badge-new { background: #28a745; color: #fff; }

/* ============================
   HERO VISUAL BADGES
============================= */
.e-hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}
.e-hero-badges {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    max-width: 280px;
}
.e-hero-badge {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #fff;
    text-align: center;
    transition: background 0.2s;
}
.e-hero-badge-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--electro-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111;
}
.e-hero-badge-icon svg {
    width: 20px;
    height: 20px;
}
.e-hero-badge strong { font-size: 12px; font-weight: 600; }
.e-hero-badge--accent {
    background: rgba(247,197,0,0.15);
    border-color: rgba(247,197,0,0.4);
    color: #f7c500;
}
.e-hero-badge--accent .e-hero-badge-icon {
    background: var(--electro-yellow);
    color: #111;
}

/* ============================
   BENEFITS STRIP
============================= */
.e-benefits-strip {
    background: #fff;
    border-top: 1px solid var(--electro-border);
    border-bottom: 3px solid var(--electro-yellow);
}
.e-benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}
.e-benefit-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
    border-right: 1px solid var(--electro-border);
}
.e-benefit-item:last-child { border-right: none; }
.e-benefit-icon {
    width: 44px;
    height: 44px;
    background: var(--electro-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.e-benefit-icon svg { width: 22px; height: 22px; stroke: #111; }
.e-benefit-text { display: flex; flex-direction: column; gap: 2px; }
.e-benefit-text strong { font-size: 13px; font-weight: 700; color: #111; }
.e-benefit-text span { font-size: 12px; color: var(--electro-muted); }

/* ============================
   CATEGORY ICON CARDS
============================= */
.e-cats-icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 16px;
    margin-bottom: 8px;
}
.e-cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 12px 16px;
    background: #fff;
    border: 2px solid var(--electro-border);
    border-radius: 10px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--electro-text);
    transition: all 0.2s;
    cursor: pointer;
}
.e-cat-card:hover {
    border-color: var(--electro-yellow);
    background: #fffdf0;
    color: #111;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(247,197,0,0.2);
}
.e-cat-card-icon {
    width: 48px;
    height: 48px;
    background: var(--electro-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.e-cat-card:hover .e-cat-card-icon { background: var(--electro-yellow); }
.e-cat-card-icon svg { width: 24px; height: 24px; stroke: #555; }
.e-cat-card:hover .e-cat-card-icon svg { stroke: #111; }
.e-cat-card-name { line-height: 1.3; }

/* Legacy pills kept for compatibility */
.e-cats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-bottom: 32px; }
.e-cat-pill { background: var(--electro-gray); border-radius: 6px; padding: 16px 12px; text-align: center; font-size: 12px; font-weight: 600; color: var(--electro-text); transition: all 0.2s; cursor: pointer; border: 2px solid transparent; }
.e-cat-pill:hover { background: var(--electro-yellow); border-color: var(--electro-yellow-dark); color: #000; }

/* Footer brand text (when no logo) */
.e-footer-brand-text { font-size: 24px; font-weight: 900; color: #fff; margin-bottom: 12px; }
.e-footer-brand-text span { color: var(--electro-yellow); }

/* ============================
   SIDEBAR (Category / Filter)
============================= */
.e-page-layout { display: flex; gap: 24px; align-items: flex-start; }
.e-sidebar { width: 240px; flex-shrink: 0; }
.e-sidebar-box {
    background: #fff;
    border: 1px solid var(--electro-border);
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 16px;
}
.e-sidebar-title { font-size: 14px; font-weight: 700; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--electro-yellow); }
.e-sidebar ul { list-style: none; margin: 0; padding: 0; }
.e-sidebar ul li a { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13px; color: var(--electro-text); border-bottom: 1px solid #f0f0f0; }
.e-sidebar ul li a:hover { color: var(--electro-yellow-dark); }
.e-sidebar ul li a .count { color: var(--electro-muted); font-size: 11px; }

.e-price-filter { display: flex; gap: 8px; align-items: center; font-size: 13px; max-width: 100%; }
.e-price-input {
    flex: 1;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    border: 1px solid #ddd;
    padding: 6px 8px;
    border-radius: 4px;
    font-family: inherit;
    font-size: 13px;
}

.e-content-area { flex: 1; min-width: 0; }

/* ============================
   TOOLBAR (sort/view)
============================= */
.e-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--electro-gray);
    padding: 10px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 13px;
}
.e-toolbar select { border: 1px solid var(--electro-border); padding: 4px 8px; border-radius: 4px; font-size: 13px; font-family: inherit; }

/* ============================
   BREADCRUMB
============================= */
.e-breadcrumb { padding: 12px 0; font-size: 12px; color: var(--electro-muted); }
.e-breadcrumb a { color: var(--electro-muted); }
.e-breadcrumb a:hover { color: var(--electro-yellow-dark); }
.e-breadcrumb span { margin: 0 6px; }

/* ============================
   PRODUCT DETAIL
============================= */
.e-product-detail { display: flex; gap: 40px; align-items: flex-start; padding: 32px 0; }
.e-product-gallery { flex: 1; }
.e-product-main-img { width: 100%; border: 1px solid var(--electro-border); border-radius: 6px; overflow: hidden; aspect-ratio: 1; background: #f9f9f9; display: flex; align-items: center; justify-content: center; }
.e-product-main-img img { width: 100%; height: 100%; object-fit: contain; }
.e-product-thumbs { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.e-product-thumb { width: 72px; height: 72px; border: 2px solid var(--electro-border); border-radius: 4px; overflow: hidden; cursor: pointer; }
.e-product-thumb:hover, .e-product-thumb.active { border-color: var(--electro-yellow); }
.e-product-thumb img { width: 100%; height: 100%; object-fit: cover; }

.e-product-info { flex: 1; }
.e-product-info h1 { font-size: 22px; font-weight: 700; margin-bottom: 8px; line-height: 1.3; }
.e-product-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; color: var(--electro-muted); font-size: 13px; }
.e-stars { color: #f7c500; }
.e-product-price-box { margin: 16px 0; }
.e-product-price { font-size: 28px; font-weight: 800; color: #111; }
.e-product-old-price { font-size: 16px; color: var(--electro-muted); text-decoration: line-through; margin-left: 10px; }
.e-product-sku { font-size: 12px; color: var(--electro-muted); margin-bottom: 16px; }
.e-product-short-desc { font-size: 14px; line-height: 1.7; color: #555; margin-bottom: 20px; }
.e-product-short-desc ul { padding-left: 20px; }

.e-qty-add { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.e-qty { display: flex; align-items: center; border: 1px solid var(--electro-border); border-radius: 4px; overflow: hidden; }
.e-qty button { background: var(--electro-gray); border: none; width: 36px; height: 36px; font-size: 18px; cursor: pointer; font-family: inherit; }
.e-qty button:hover { background: var(--electro-yellow); }
.e-qty input { width: 50px; text-align: center; border: none; border-left: 1px solid var(--electro-border); border-right: 1px solid var(--electro-border); height: 36px; font-size: 14px; font-family: inherit; }

.e-product-actions { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.e-product-actions .e-btn { font-size: 14px; padding: 12px 24px; }

.e-product-tabs { margin-top: 32px; }
.e-tab-nav { display: flex; border-bottom: 2px solid var(--electro-border); margin-bottom: 20px; }
.e-tab-btn { padding: 10px 20px; font-size: 14px; font-weight: 600; border: none; background: none; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; font-family: inherit; color: var(--electro-muted); }
.e-tab-btn.active, .e-tab-btn:hover { color: var(--electro-text); border-bottom-color: var(--electro-yellow); }
.e-tab-content { font-size: 14px; line-height: 1.8; color: #555; }
.e-tab-content p { margin-bottom: 12px; }
.e-tab-content ul { padding-left: 20px; }

/* ============================
   NEWSLETTER
============================= */
.e-newsletter {
    background: var(--electro-yellow);
    border-top: 3px solid var(--electro-yellow-dark);
    padding: 40px 0;
}
.e-newsletter .container { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.e-newsletter-text h3 { font-size: 22px; font-weight: 700; color: #111; margin: 0 0 6px; }
.e-newsletter-text p { font-size: 13px; color: #333; margin: 0; }
.e-newsletter-form { display: flex; gap: 0; flex: 1; max-width: 500px; }
.e-newsletter-form > div { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.e-newsletter-form > div > div { display: flex; gap: 0; }
.e-newsletter-form input[type="email"] { padding: 12px 16px; border: 2px solid #ccc; border-right: none; font-size: 14px; min-width: 0; flex: 1; border-radius: 4px 0 0 4px; font-family: inherit; outline: none; background: #fff; color: #111; }
.e-newsletter-form input[type="email"]::placeholder { color: #888; }
.e-newsletter-form input[type="email"]:focus { border-color: var(--electro-dark); }
.e-newsletter-form button { background: var(--electro-dark); color: #fff; border: 2px solid var(--electro-dark); padding: 12px 20px; font-size: 14px; font-weight: 700; border-radius: 0 4px 4px 0; cursor: pointer; font-family: inherit; white-space: nowrap; }
.e-newsletter-form button:hover:not(:disabled) { background: #16213e; border-color: #16213e; }
.e-newsletter-form button:disabled { opacity: 0.4; cursor: not-allowed; }
.e-newsletter-form label { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: #222; cursor: pointer; line-height: 1.5; }
.e-newsletter-form label input[type="checkbox"] { margin-top: 2px; flex-shrink: 0; accent-color: var(--electro-dark); width: 14px; height: 14px; }

/* ============================
   FOOTER
============================= */
.e-footer { background: var(--electro-dark); color: #ccc; }
.e-footer-top { padding: 48px 0 32px; }
.e-footer-top .container { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.e-footer-col h4 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 16px; }
.e-footer-col ul { list-style: none; margin: 0; padding: 0; }
.e-footer-col ul li { margin-bottom: 8px; }
.e-footer-col ul li a { color: #aaa; font-size: 13px; }
.e-footer-col ul li a:hover { color: var(--electro-yellow); }
.e-footer-logo { height: 40px; width: auto; margin-bottom: 12px; filter: brightness(10); }
.e-footer-desc { font-size: 13px; line-height: 1.7; color: #888; margin-bottom: 16px; }
.e-footer-contact { font-size: 13px; color: #888; }
.e-footer-contact strong { color: #ccc; }
.e-footer-bottom {
    background: rgba(0,0,0,0.3);
    padding: 16px 0;
}
.e-footer-bottom .container { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #666; }

/* ============================
   PAGINATION
============================= */
.e-pagination { display: flex; justify-content: center; gap: 4px; padding: 24px 0; }
.e-page-btn { padding: 8px 12px; border: 1px solid var(--electro-border); border-radius: 4px; font-size: 13px; color: var(--electro-text); background: #fff; cursor: pointer; text-decoration: none; }
.e-page-btn:hover, .e-page-btn.active { background: var(--electro-yellow); border-color: var(--electro-yellow); color: #000; font-weight: 700; }

/* ============================
   RESPONSIVE
============================= */
html, body {
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
}
#app, main#main {
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
}

/* Desktop: hide inline sub-lists, use right column */
.e-cat-sub-list { display: none; }

/* Desktop-only: hide mobile quick links inside cat panel */
.e-cat-mobile-links { display: none; }

@media (max-width: 768px) {
    .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
        max-width: 100% !important;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    /* Top bar */
    .e-topbar { font-size: 11px; }
    .e-topbar .container {
        justify-content: center;
        text-align: center;
    }
    .e-topbar .container > span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
        display: block;
    }
    .e-topbar .container > div { display: none !important; }

    /* Header: logo + icons row, search full width below */
    .e-header { padding: 8px 0; position: relative; }
    .e-header .container {
        flex-wrap: wrap;
        gap: 8px;
        align-items: center;
    }
    .e-logo {
        flex: 1 1 auto;
        min-width: 0;
        max-width: 55%;
    }
    .e-logo img {
        height: 32px;
        max-width: 100%;
        object-fit: contain;
        display: block;
    }
    .e-header-actions {
        flex-shrink: 0;
        margin-left: auto;
        gap: 6px;
        display: flex;
        align-items: center;
    }
    .e-header-action {
        width: 34px;
        height: 34px;
        justify-content: center;
    }
    .e-header-action span { display: none; }
    .e-header-action svg { width: 20px; height: 20px; }
    .e-cart-count {
        top: -4px;
        right: -4px;
        width: 16px;
        height: 16px;
        font-size: 9px;
    }
    .e-search {
        order: 3;
        flex: 0 0 100%;
        width: 100%;
        min-width: 0;
    }
    .e-search input {
        min-width: 0;
        width: 100%;
        font-size: 16px; /* avoid iOS zoom */
        padding: 10px 12px;
    }
    .e-search button { padding: 10px 14px; flex-shrink: 0; }

    /* Navbar: kill container padding so button+panel span full width */
    .e-navbar { width: 100%; position: relative; }
    .e-navbar > .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100%;
        max-width: 100%;
        display: block;
        position: static;
    }
    .e-cat-menu {
        width: 100%;
        display: block;
        position: static;
    }
    .e-nav-cats-btn {
        width: 100%;
        justify-content: flex-start;
        padding: 0 10px;
        height: 46px;
        font-size: 14px;
        gap: 10px;
        border-radius: 0;
        box-sizing: border-box;
    }
    .e-nav-links { display: none; }

    /* Categories drawer: full width, anchored below the bar */
    .e-cat-panel {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100vw;
        max-height: min(70vh, 480px);
        flex-direction: column;
        overflow: hidden;
        border-radius: 0;
        box-shadow: 0 12px 40px rgba(0,0,0,0.25);
        box-sizing: border-box;
        margin: 0;
    }
    .e-cat-panel.is-open { display: flex; }
    .e-cat-col-left {
        width: 100%;
        min-width: 0;
        max-height: none;
        border-right: none;
        overflow-y: auto;
        flex: 1;
    }
    /* Subcategory drawer on mobile: full-width list below parents */
    .e-cat-col-right {
        width: 100%;
        min-width: 0;
        max-height: none;
        border-top: 1px solid #eee;
        background: #fafafa;
        padding: 0;
        display: none;
    }
    .e-cat-col-right ul { display: block; }
    .e-cat-col-right ul li a {
        display: block;
        padding: 12px 12px;
        font-size: 14px;
    }
    .e-cat-panel-list { padding: 0; margin: 0; }
    .e-cat-panel-item > a {
        white-space: normal;
        padding: 13px 12px;
        font-size: 14px;
        box-sizing: border-box;
    }
    /* Mobile: hide the separate right column; use inline sub-lists */
    .e-cat-col-right--desktop { display: none !important; }
    .e-cat-mobile-links {
        display: block;
        border-bottom: 1px solid #f0f0f0;
        background: #fff;
    }
    .e-cat-mobile-links a {
        display: block;
        padding: 13px 12px;
        font-size: 14px;
        font-weight: 600;
        color: #111;
        border-bottom: 1px solid #f8f8f8;
    }
    .e-cat-mobile-links a:last-child { border-bottom: none; }

    /* Hero: let text use full width */
    .e-hero { padding: 32px 0; }
    .e-hero .container {
        flex-direction: column;
        gap: 24px;
        align-items: stretch;
    }
    .e-hero-text { max-width: 100%; }
    .e-hero-title { font-size: 25px; }
    .e-hero-sub { font-size: 14px; margin-bottom: 18px; }
    .e-hero-visual { justify-content: stretch; }
    .e-hero-badges { max-width: 100%; width: 100%; gap: 8px; }
    .e-hero-badge { padding: 10px 8px; }

    /* Benefits */
    .e-benefits-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 14px 0;
    }
    .e-benefit-item { gap: 8px; }
    .e-benefit-icon { width: 34px; height: 34px; }
    .e-benefit-icon svg { width: 17px; height: 17px; }
    .e-benefit-text strong { font-size: 12px; }
    .e-benefit-text span { font-size: 11px; }

    /* Section spacing */
    .e-section { padding: 28px 0; }
    .e-section-title { font-size: 18px; margin-bottom: 16px; }

    /* Category icon grid */
    .e-cats-icon-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    /* Category / products page */
    .e-page-layout {
        flex-direction: column;
        gap: 14px;
        width: 100%;
        max-width: 100%;
    }
    .e-sidebar { width: 100%; max-width: 100%; }
    .e-sidebar-box { padding: 12px; }
    .e-content-area { width: 100%; max-width: 100%; min-width: 0; }

    .e-toolbar {
        flex-wrap: wrap;
        gap: 8px;
        padding: 10px 12px;
    }
    .e-toolbar > span {
        flex: 1 1 auto;
        white-space: nowrap;
        min-width: 0;
    }
    .e-toolbar select {
        flex: 0 1 auto;
        max-width: 100%;
        min-width: 0;
    }

    .e-breadcrumb {
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        padding: 10px 0;
        max-width: 100%;
    }

    .e-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
        max-width: 100%;
    }
    .e-product-card { min-width: 0; max-width: 100%; }
    .e-product-card-body { padding: 10px; }
    .e-product-card-name {
        font-size: 12px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .e-product-card-price { font-size: 14px; }
    .e-product-card-footer { padding: 0 10px 10px; }
    .e-add-to-cart { font-size: 11px; padding: 8px 6px; }

    .e-product-detail { flex-direction: column; gap: 20px; padding: 18px 0; }
    .e-footer-top { padding: 32px 0 24px; }
    .e-footer-top .container { grid-template-columns: 1fr 1fr; gap: 20px; }
    .e-footer-bottom .container {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .e-products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .e-footer-top .container { grid-template-columns: 1fr; }
    .e-newsletter .container { flex-direction: column; }
    .e-newsletter-form,
    .e-newsletter-form > div,
    .e-newsletter-form > div > div { width: 100%; max-width: 100%; }
    .e-newsletter-form input[type="email"] { min-width: 0; width: 100%; }
    .e-auth-card { padding: 28px 20px; }
    .e-benefits-grid { grid-template-columns: 1fr; }
}
/* ============================
   AUTH PAGES
============================= */
.e-auth-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
    background: #f5f6f8;
}
.e-auth-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.10);
    padding: 40px 36px;
    width: 100%;
    max-width: 420px;
}
.e-auth-logo { text-align: center; margin-bottom: 24px; }
.e-auth-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--electro-text);
    text-align: center;
    margin-bottom: 4px;
}
.e-auth-sub {
    font-size: 13px;
    color: #888;
    text-align: center;
    margin-bottom: 24px;
}
.e-auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: #ccc;
    font-size: 12px;
}
.e-auth-divider::before,
.e-auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #eee;
}
.e-auth-switch {
    text-align: center;
    font-size: 13px;
    color: #666;
    margin: 0;
}
.e-auth-link {
    color: var(--electro-yellow-dark);
    font-weight: 600;
    text-decoration: underline;
}
.e-auth-link:hover { color: var(--electro-text); }
.e-btn-full { width: 100%; justify-content: center; }
.e-alert {
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 16px;
}
.e-alert-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fca5a5; }
.e-alert-success { background: #f0fdf4; color: #15803d; border: 1px solid #86efac; }

/* ============================
   PAGE HERO (breadcrumb style)
============================= */
.e-page-hero {
    background: var(--electro-dark);
    border-bottom: 3px solid var(--electro-yellow);
    padding: 32px 0;
}
.e-page-hero h1 { font-size: 28px; font-weight: 800; color: #fff; margin: 0 0 6px; }
.e-page-hero p { font-size: 14px; color: #aaa; margin: 0; }

/* ============================
   CONTACT PAGE
============================= */
.e-contact-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 32px;
    align-items: flex-start;
}
.e-contact-info-card {
    background: var(--electro-dark);
    border-radius: 10px;
    padding: 28px;
    color: #fff;
}
.e-contact-info-card h3 { font-size: 16px; font-weight: 700; color: #fff; margin: 0 0 24px; padding-bottom: 12px; border-bottom: 2px solid var(--electro-yellow); }
.e-contact-detail { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.e-contact-detail:last-child { margin-bottom: 0; }
.e-contact-icon { width: 40px; height: 40px; background: rgba(247,197,0,0.15); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.e-contact-icon svg { width: 18px; height: 18px; stroke: var(--electro-yellow); }
.e-contact-detail strong { display: block; font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 2px; }
.e-contact-detail span { font-size: 13px; color: #aaa; }

.e-contact-form-card {
    background: #fff;
    border: 1px solid var(--electro-border);
    border-radius: 10px;
    padding: 32px;
}
.e-contact-form-card h2 { font-size: 20px; font-weight: 700; margin: 0 0 4px; }

/* ============================
   FORM ELEMENTS
============================= */
.e-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.e-form-group { margin-bottom: 18px; }
.e-form-label { display: block; font-size: 13px; font-weight: 600; color: #444; margin-bottom: 6px; }
.e-input, .e-form-group input[type="text"], .e-form-group input[type="email"], .e-form-group textarea {
    width: 100%;
    border: 1.5px solid var(--electro-border);
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 14px;
    font-family: inherit;
    color: var(--electro-text);
    background: #fff;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.e-input:focus, .e-form-group input:focus, .e-form-group textarea:focus {
    outline: none;
    border-color: var(--electro-yellow);
    box-shadow: 0 0 0 3px rgba(247,197,0,0.15);
}
.e-form-group textarea { resize: vertical; min-height: 120px; }

@media (max-width: 768px) {
    .e-contact-layout { grid-template-columns: 1fr; }
    .e-form-row { grid-template-columns: 1fr; }
    .e-contact-form-card { padding: 20px; }
}

/* Desktop-only: hide mobile quick links inside cat panel — moved above media query */

/* ==========================================================================
   Checkout & Cart Custom Overrides - Electro Aesthetic
   ========================================================================== */

/* Buttons: Primary & NavyBlue to Electro Dark */
.primary-button, 
.bg-navyBlue, 
button.bg-navyBlue,
.btn-primary {
    background-color: var(--electro-dark) !important;
    color: #fff !important;
    border: 1px solid var(--electro-dark) !important;
    font-family: 'Poppins', sans-serif !important;
    transition: all 0.25s ease-in-out !important;
    border-radius: 4px !important;
}

.primary-button:hover, 
.bg-navyBlue:hover, 
button.bg-navyBlue:hover,
.btn-primary:hover {
    background-color: var(--electro-yellow) !important;
    color: var(--electro-dark) !important;
    border-color: var(--electro-yellow) !important;
}

/* Secondary Buttons: Electro Dark borders and text */
.secondary-button,
.btn-secondary {
    background-color: transparent !important;
    color: var(--electro-dark) !important;
    border: 2px solid var(--electro-dark) !important;
    font-family: 'Poppins', sans-serif !important;
    transition: all 0.25s ease-in-out !important;
    border-radius: 4px !important;
}

.secondary-button:hover,
.btn-secondary:hover {
    background-color: var(--electro-dark) !important;
    color: #fff !important;
}

/* Input Focus Glow in Yellow */
input:focus, 
select:focus, 
textarea:focus {
    border-color: var(--electro-yellow) !important;
    box-shadow: 0 0 0 3px rgba(247, 197, 0, 0.2) !important;
}

/* Steps and checkout details */
.text-navyBlue,
.peer-checked\:text-navyBlue {
    color: var(--electro-dark) !important;
}

.peer-checked\:text-navyBlue {
    color: var(--electro-yellow) !important;
}

/* Breadcrumbs text matching site theme */
.breadcrumbs a:hover {
    color: var(--electro-yellow-dark) !important;
}

