/* =====================================================================
   FiveStarA1 Everything Electric — Storefront Theme
   Palette: Deep Navy #0B2545 · Electric Orange #F97316 · Volt Yellow #FBBF24
   Type: Poppins (display) · Inter (body)
   ===================================================================== */

:root {
    --navy: #0B2545;
    --navy-light: #123a6b;
    --navy-dark: #071a33;
    --orange: #F97316;
    --orange-dark: #DC5F0A;
    --yellow: #FBBF24;
    --bg-light: #F5F7FB;
    --text-dark: #101828;
    --text-muted: #64748B;
    --border-color: #E5E9F0;
    --radius-lg: 18px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --shadow-soft: 0 8px 30px rgba(11, 37, 69, 0.08);
    --shadow-hover: 0 16px 40px rgba(11, 37, 69, 0.14);
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--text-dark);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .brand-logo-text strong {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-weight: 700;
    color: var(--navy);
}

a { text-decoration: none; color: inherit; transition: color .2s ease; }
img { max-width: 100%; }

.text-brand-orange { color: var(--orange) !important; }
.text-light-muted { color: rgba(255,255,255,.65); }
.bg-light-section { background: var(--bg-light); }

/* ---------- Buttons ---------- */
.btn-brand-orange {
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    border: none; color: #fff; font-weight: 600; border-radius: var(--radius-sm);
    padding: .65rem 1.4rem; transition: transform .15s ease, box-shadow .15s ease;
}
.btn-brand-orange:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(249,115,22,.35); color:#fff; }

.btn-brand-blue {
    background: var(--navy); border: none; color: #fff; font-weight: 600; border-radius: var(--radius-sm);
    padding: .65rem 1.4rem; transition: transform .15s ease, box-shadow .15s ease;
}
.btn-brand-blue:hover { transform: translateY(-2px); background: var(--navy-light); color: #fff; box-shadow: 0 10px 24px rgba(11,37,69,.3); }

/* Re-theme Bootstrap's stock outline buttons (used for secondary/tertiary
   actions like "Continue Shopping") to the site's navy brand instead of
   Bootstrap's default blue/gray. Outline-success/-danger keep their
   semantic green/red since those signal safe vs destructive actions. */
.btn-outline-primary, .btn-outline-secondary {
    color: var(--navy);
    border-color: var(--navy);
}
.btn-outline-primary:hover, .btn-outline-secondary:hover {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

/* ---------- Top bar & Header ---------- */
.top-bar { background: var(--navy-dark); color: rgba(255,255,255,.8); font-size: .85rem; padding: .5rem 0; }
.top-bar a { color: rgba(255,255,255,.8); margin-left: 1rem; }
.top-bar a:hover { color: var(--yellow); }

.site-header { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.05); z-index: 1030; }

.brand-logo { display: flex; align-items: center; gap: .6rem; }
.brand-logo-icon {
    width: 46px; height: 46px; border-radius: 12px;
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    color: var(--yellow); display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
}
.brand-logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-logo-text strong { font-size: 1.15rem; color: var(--navy); }
.brand-logo-text small { color: var(--text-muted); font-size: .72rem; }

.search-form { max-width: 620px; }
.search-form .form-control { border-radius: var(--radius-sm) 0 0 var(--radius-sm); border: 2px solid var(--border-color); border-right: none; padding: .65rem 1rem; }
.search-form .form-control:focus { box-shadow: none; border-color: var(--orange); }
.btn-search { background: var(--orange); color: #fff; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 0 1.2rem; }
.search-suggestions {
    position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-radius: var(--radius-sm);
    box-shadow: var(--shadow-hover); z-index: 20; display: none; max-height: 400px; overflow-y: auto; margin-top: 6px;
}
.search-suggestions.show { display: block; }
.search-suggestion-item { display: flex; align-items: center; gap: .75rem; padding: .6rem 1rem; border-bottom: 1px solid var(--border-color); }
.search-suggestion-item:hover { background: var(--bg-light); }
.search-suggestion-item img { width: 40px; height: 40px; object-fit: contain; }

.header-icon-link { display: flex; align-items: center; gap: .4rem; color: var(--navy); font-weight: 500; font-size: .9rem; position: relative; }
.header-icon-link i { font-size: 1.25rem; }
.cart-link .cart-count {
    position: absolute; top: -8px; left: 14px; background: var(--orange); color: #fff;
    font-size: .65rem; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.btn-toggle-menu { border: 1px solid var(--border-color); border-radius: var(--radius-sm); }

/* Mega menu */
.mega-nav { background: var(--navy); }
.mega-nav-list { display: flex; list-style: none; margin: 0; padding: 0; gap: 1.8rem; }
.mega-nav-list > li { position: relative; padding: .85rem 0; }
.mega-nav-list > li > a { color: #fff; font-weight: 500; font-size: .92rem; }
.mega-nav-list > li > a:hover { color: var(--yellow); }
.mega-dropdown {
    display: none; position: absolute; top: 100%; left: 0; background: #fff; color: var(--text-dark);
    width: 680px; padding: 1.5rem; border-radius: 0 0 var(--radius-md) var(--radius-md); box-shadow: var(--shadow-hover); z-index: 50;
}
.mega-dropdown a { display: block; padding: .3rem 0; color: var(--text-dark); font-size: .88rem; }
.mega-dropdown a:hover { color: var(--orange); }
.mega-nav-item:hover .mega-dropdown { display: block; }

/* ---------- Hero ---------- */
.hero-section { padding: 1.5rem 0; background: var(--bg-light); }
.hero-carousel { border-radius: var(--radius-lg); overflow: hidden; }
.hero-slide {
    height: 420px; background-size: cover; background-position: center;
    display: flex; align-items: center; position: relative;
    background-color: var(--navy);
}
.hero-slide::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,37,69,.85), rgba(11,37,69,.15)); }
.hero-slide-content { position: relative; z-index: 2; color: #fff; padding: 0 4rem; max-width: 560px; }
.hero-slide-content h1 { color: #fff; font-size: 2.4rem; margin-bottom: .75rem; }
.hero-slide-content p { font-size: 1.1rem; margin-bottom: 1.5rem; color: rgba(255,255,255,.85); }

/* ---------- Services strip ---------- */
.services-strip { padding: 2rem 0; }
.service-card { text-align: center; padding: 1.25rem; border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow-soft); height: 100%; }
.service-card i { font-size: 1.8rem; color: var(--orange); margin-bottom: .6rem; }
.service-card h6 { margin-bottom: .3rem; }
.service-card p { font-size: .82rem; color: var(--text-muted); margin: 0; }

/* ---------- Sections ---------- */
.section-block { padding: 3rem 0; }
.section-title-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.section-title { font-size: 1.6rem; margin: 0; position: relative; padding-left: 1rem; border-left: 5px solid var(--orange); }
.section-link { color: var(--orange); font-weight: 600; font-size: .9rem; }
.section-link:hover { color: var(--navy); }

/* Category cards */
.category-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .6rem; }
.category-card-icon {
    width: 100%; aspect-ratio: 1/1; border-radius: 50%; background: #fff; box-shadow: var(--shadow-soft);
    display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 1rem; transition: transform .2s ease;
}
.category-card:hover .category-card-icon { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.category-card-icon img { width: 100%; height: 100%; object-fit: contain; }
.category-card span { font-size: .85rem; font-weight: 600; color: var(--text-dark); }

/* Product cards */
.product-card {
    background: #fff; border-radius: var(--radius-md); border: 1px solid var(--border-color);
    position: relative; overflow: hidden; height: 100%; display: flex; flex-direction: column;
    transition: box-shadow .2s ease, transform .2s ease;
}
.product-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.product-card-img { display: block; padding: 1.2rem; background: #fff; }
.product-card-img img { width: 100%; height: 180px; object-fit: contain; }
.product-card-body { padding: 0 1rem 1rem; display: flex; flex-direction: column; gap: .5rem; flex-grow: 1; }
.product-card-title {
    font-size: .92rem; font-weight: 600; color: var(--text-dark); display: -webkit-box;
    -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em;
}
.product-card-title:hover { color: var(--orange); }
.product-card-price { display: flex; align-items: baseline; gap: .5rem; }
.price-now { font-weight: 700; color: var(--navy); font-size: 1.05rem; }
.price-old { text-decoration: line-through; color: var(--text-muted); font-size: .82rem; }
.ask-price { font-weight: 700; color: var(--orange); }
.badge-discount, .badge-flash {
    position: absolute; top: 12px; left: 12px; background: var(--orange); color: #fff;
    font-size: .72rem; font-weight: 700; padding: .25rem .55rem; border-radius: 999px; z-index: 3;
}
.badge-flash { top: 40px; background: var(--yellow); color: var(--navy); }
.badge-discount-inline { background: var(--yellow); color: var(--navy); padding: .2rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.btn-wishlist-toggle {
    position: absolute; top: 10px; right: 10px; z-index: 3; background: #fff; border: none; border-radius: 50%;
    width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-soft);
}
.btn-wishlist-toggle.active i, .btn-wishlist-toggle:hover i { color: var(--orange); }

/* Wholesale banner */
.wholesale-banner { background: linear-gradient(120deg, var(--navy), var(--navy-light)); padding: 3rem 0; margin: 1rem 0; }
.wholesale-banner-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; color: #fff; }
.wholesale-banner-inner h3 { color: #fff; margin-bottom: .4rem; }
.wholesale-banner-inner p { color: rgba(255,255,255,.75); margin: 0; }

/* Testimonials */
.testimonial-card { background: #fff; border-radius: var(--radius-md); padding: 1.5rem; box-shadow: var(--shadow-soft); height: 100%; }
.testimonial-rating { color: var(--yellow); margin-bottom: .6rem; }

/* Partners */
.partners-strip { padding: 2.5rem 0; }
.partner-logo { max-height: 45px; filter: grayscale(1); opacity: .6; transition: all .2s ease; }
.partner-logo:hover { filter: none; opacity: 1; }

/* Blog cards */
.blog-card { display: block; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-soft); background: #fff; }
.blog-card img { width: 100%; height: 180px; object-fit: cover; }
.blog-card-body { padding: 1rem; }
.blog-card-body h6 { margin-bottom: .4rem; }
.blog-card-body p { color: var(--text-muted); font-size: .85rem; margin: 0; }

/* ---------- Filters / Shop ---------- */
.filter-box { background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 1.25rem; }
.filter-heading { font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--navy); margin: 1rem 0 .5rem; }
.filter-category-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.filter-category-list li a { display: block; padding: .35rem 0; color: var(--text-dark); font-size: .88rem; }
.filter-category-list li a.active, .filter-category-list li a:hover { color: var(--orange); font-weight: 600; }

/* ---------- Product page ---------- */
.product-gallery-main { border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 1.5rem; margin-bottom: 1rem; }
.product-gallery-main img { width: 100%; height: 400px; object-fit: contain; }
.product-gallery-thumbs { display: flex; gap: .6rem; }
.thumb-img { width: 70px; height: 70px; object-fit: contain; border: 1px solid var(--border-color); border-radius: var(--radius-sm); padding: .3rem; cursor: pointer; }
.thumb-img:hover { border-color: var(--orange); }
.product-title { font-size: 1.8rem; }
.rating-stars { color: var(--yellow); }
.product-short-desc { color: var(--text-muted); }
.review-item { padding: .75rem 0; }
.qa-item { border-bottom: 1px solid var(--border-color); padding-bottom: .75rem; }

/* ---------- Cart / Checkout ---------- */
.cart-summary-box, .checkout-box { background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 1.5rem; }
.cart-table img { border-radius: var(--radius-sm); }

/* ---------- Auth / Account ---------- */
.auth-card { background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 2.5rem; box-shadow: var(--shadow-soft); }
.account-sidebar { background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius-md); overflow: hidden; }
.account-sidebar a { display: block; padding: .8rem 1.2rem; border-bottom: 1px solid var(--border-color); color: var(--text-dark); font-size: .9rem; }
.account-sidebar a:last-child { border-bottom: none; }
.account-sidebar a.active, .account-sidebar a:hover { background: var(--bg-light); color: var(--orange); }
.dash-stat-card { background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 1.25rem; text-align: center; }
.dash-stat-card i { font-size: 1.5rem; color: var(--orange); }
.dash-stat-card h4 { font-size: 1.1rem; margin: .4rem 0 0; word-break: break-word; }
.dash-stat-card p { color: var(--text-muted); margin: 0; font-size: .82rem; }

/* ---------- CMS content ---------- */
.cms-content { line-height: 1.8; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,.75); margin-top: 2rem; }
.footer-newsletter { background: var(--navy); }
.footer-newsletter h4 { color: #fff; }
.footer-newsletter .form-control { border-radius: var(--radius-sm); min-width: 260px; }
.footer-logo { color: #fff; font-size: 1.3rem; }
.footer-heading { color: #fff; font-size: .95rem; margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { color: rgba(255,255,255,.65); font-size: .88rem; }
.footer-links a:hover { color: var(--yellow); }
.social-icons a { display: inline-flex; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; align-items: center; justify-content: center; margin-right: .5rem; }
.social-icons a:hover { background: var(--orange); }
.payment-icons i { font-size: 1.6rem; margin-right: .8rem; color: rgba(255,255,255,.6); }
.footer-bottom { background: var(--navy-dark); border-top: 1px solid rgba(255,255,255,.08); font-size: .82rem; }

/* ---------- Floating buttons ---------- */
.floating-btn {
    position: fixed; right: 22px; width: 52px; height: 52px; border-radius: 50%; color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 1.3rem; box-shadow: var(--shadow-hover);
    z-index: 1000; border: none; cursor: pointer;
}
.floating-whatsapp { bottom: 90px; background: #25D366; }
.floating-call { bottom: 160px; background: var(--navy); }
.floating-top { bottom: 22px; background: var(--orange); display: none; }
.floating-top.show { display: flex; }

/* ---------- Map ---------- */
.map-section { line-height: 0; }

/* ---------- Skeleton loading ---------- */
.skeleton { background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%); background-size: 200% 100%; animation: skeleton-loading 1.4s infinite; border-radius: var(--radius-sm); }
@keyframes skeleton-loading { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .hero-slide { height: 300px; }
    .hero-slide-content { padding: 0 1.5rem; }
    .hero-slide-content h1 { font-size: 1.6rem; }
    .section-title { font-size: 1.3rem; }
    .floating-btn { width: 46px; height: 46px; right: 14px; }
}