:root {
    --primary: #F9A825;
    --secondary: #FFB300;
    --accent: #FF6F00;
    --bg: #FFFBF0;
    --bg-warm: #FFF8E1;
    --bg-yellow: #FFECB3;
    --text: #111827;
    --text-muted: #5C6370;
    --border: #F0E6C8;
    --nav-dark: #1F2937;
    --shadow-sm: 0 2px 12px rgba(249, 168, 37, .08);
    --shadow-md: 0 8px 28px rgba(0, 0, 0, .1);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, .12);
    --radius: 16px;
    --radius-lg: 24px;
    --font: 'Plus Jakarta Sans', -apple-system, sans-serif;
    --transition: .3s cubic-bezier(.4, 0, .2, 1);
    --fs-base: 16px;
    --fs-sm: 14px;
    --fs-lg: 18px;
    --fs-xl: 22px;
    --fs-2xl: 28px;
}

* { box-sizing: border-box; }

html { font-size: var(--fs-base); }

body.grsav-app {
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.55;
    color: var(--text);
    background: linear-gradient(180deg, var(--bg-warm) 0%, var(--bg) 35%, #FFFFFF 100%);
    background-attachment: fixed;
    padding-bottom: 88px;
    -webkit-font-smoothing: antialiased;
}

@media (min-width: 992px) {
    html { font-size: 17px; }
    body.grsav-app { padding-bottom: 0; }
}

.main-content { min-height: 50vh; }

/* Top Bar */
.top-bar {
    background: rgba(255, 255, 255, .85);
    font-size: var(--fs-sm);
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.top-bar-items { display: flex; gap: 20px; flex-wrap: wrap; }
.top-bar-items span { color: var(--text); font-weight: 500; }
.top-bar-items i { color: var(--primary); margin-right: 6px; font-size: 1.1em; }
.top-bar a {
    color: var(--text);
    text-decoration: none;
    margin-left: 16px;
    font-weight: 600;
    font-size: var(--fs-sm);
}
.top-bar a i { color: var(--primary); }

/* Header */
.main-header {
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    z-index: 1030;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 14px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(249, 168, 37, .4);
}

.logo-text strong {
    display: block;
    color: var(--accent);
    font-size: 1.5rem;
    line-height: 1.1;
    letter-spacing: -.02em;
}

.logo-text small {
    color: var(--text-muted);
    font-size: var(--fs-sm);
    font-weight: 500;
}

/* Search - no category dropdown */
.search-section { flex: 1; max-width: 620px; position: relative; }

.search-wrapper {
    display: flex;
    align-items: center;
    border: 2px solid var(--primary);
    border-radius: 50px;
    overflow: hidden;
    background: #fff;
    padding-left: 4px;
}

.search-icon-left {
    padding: 0 12px 0 16px;
    color: var(--text-muted);
    font-size: 1.15rem;
    display: flex;
    align-items: center;
}

.search-input {
    flex: 1;
    border: none;
    padding: 14px 8px;
    font-size: var(--fs-base);
    outline: none;
    background: transparent;
    min-width: 0;
}

.search-btn {
    width: 48px;
    height: 48px;
    border: none;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    margin: 4px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.search-btn:hover {
    background: var(--accent);
    transform: scale(1.05);
}

.search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 100;
}

.search-results.active { display: block; }

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    text-decoration: none;
    color: var(--text);
    font-size: var(--fs-base);
    transition: var(--transition);
}

.search-result-item:hover { background: var(--bg-warm); }

.header-actions { display: flex; align-items: center; gap: 4px; }

.header-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text);
    padding: 10px 14px;
    border-radius: 12px;
    transition: var(--transition);
}

.header-action:hover { background: var(--bg-warm); color: var(--accent); }

.action-icon { position: relative; font-size: 1.5rem; }

.action-icon .badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-label {
    font-size: var(--fs-sm);
    font-weight: 600;
    margin-top: 4px;
}

.mobile-menu-btn {
    border: none;
    background: var(--bg-warm);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 1.4rem;
}

/* Nav with icons */
.main-nav { background: var(--nav-dark); }

.nav-inner { display: flex; align-items: stretch; }

.btn-categories {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 16px 26px;
    font-weight: 700;
    font-size: var(--fs-base);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0 12px;
    gap: 2px;
    overflow-x: auto;
    flex: 1;
}

.nav-links li { display: flex; }

.nav-links a {
    color: #fff;
    text-decoration: none;
    padding: 16px 14px;
    font-size: var(--fs-sm);
    font-weight: 600;
    white-space: nowrap;
    transition: var(--transition);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a i {
    font-size: 1rem;
    opacity: .9;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, .1);
    color: var(--primary);
}

.mega-menu {
    min-width: 260px;
    border-radius: var(--radius);
    border: none;
    box-shadow: var(--shadow-lg);
    padding: 10px;
}

.mega-menu .dropdown-item {
    border-radius: 10px;
    padding: 12px 16px;
    font-weight: 600;
    font-size: var(--fs-base);
}

.mega-menu .dropdown-item i {
    color: var(--primary);
    margin-right: 10px;
    font-size: 1.1rem;
}

/* Trust Bar */
.trust-bar {
    background: rgba(255, 255, 255, .7);
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 14px;
    justify-content: center;
    padding: 10px;
}

.trust-item i {
    font-size: 1.75rem;
    color: var(--primary);
    flex-shrink: 0;
}

.trust-item strong {
    display: block;
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--text);
}

.trust-item small {
    color: var(--text-muted);
    font-size: 13px;
}

/* Hero */
.hero-section { padding: 20px 0 28px; }

.hero-swiper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.hero-swiper .swiper-slide { aspect-ratio: 21/9; min-height: 280px; }

@media (max-width: 768px) {
    .hero-swiper .swiper-slide { aspect-ratio: 4/3; min-height: 220px; }
}

.hero-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-fallback {
    background: linear-gradient(135deg, #FFF8E1 0%, #FFE082 50%, #FFCC80 100%);
    min-height: 100%;
    display: flex;
    align-items: center;
}

.hero-fallback-inner { padding: 40px 32px; width: 100%; }

.hero-badge {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    font-size: var(--fs-sm);
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.hero-title {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
    color: var(--text);
}

.hero-title span { color: var(--accent); }

.hero-sub {
    font-size: var(--fs-lg);
    color: var(--text-muted);
    margin-bottom: 20px;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 24px;
    font-size: var(--fs-base);
    font-weight: 600;
}

.hero-features i { color: var(--primary); margin-right: 8px; }

.btn-hero-shop {
    background: var(--primary);
    color: #fff;
    font-weight: 800;
    font-size: var(--fs-base);
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    box-shadow: 0 8px 24px rgba(249, 168, 37, .45);
    transition: var(--transition);
}

.btn-hero-shop:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-2px);
}

.hero-visual-placeholder {
    font-size: 8rem;
    color: rgba(255, 111, 0, .25);
}

.hero-swiper .swiper-pagination-bullet-active { background: var(--primary); }

.hero-swiper .swiper-button-next,
.hero-swiper .swiper-button-prev {
    background: rgba(0, 0, 0, .55);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: #fff;
}

/* Shop by Category */
.shop-category-section {
    padding: 32px 0 40px;
}

.section-title {
    font-size: var(--fs-2xl);
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--text);
}

.section-panel {
    background: rgba(255, 255, 255, .6);
    border-radius: var(--radius-lg);
    padding: 28px 20px;
    border: 1px solid var(--border);
}

.section-bestsellers {
    background: linear-gradient(135deg, rgba(255, 248, 225, .9), rgba(255, 236, 179, .5));
}

/* Category cards with BG + overlay */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

@media (min-width: 992px) {
    .shop-category-section .category-grid.d-lg-block {
        display: grid !important;
    }
}

@media (max-width: 1200px) {
    .category-grid { grid-template-columns: repeat(3, 1fr); }
}

.category-swiper { padding-bottom: 36px !important; overflow: visible; }

.category-swiper .swiper-slide {
    width: 72%;
    max-width: 280px;
    height: auto;
}

.category-swiper .category-card { height: 200px; min-height: 200px; }

.category-pagination { bottom: 0 !important; }

.category-pagination .swiper-pagination-bullet-active { background: var(--primary); }

.cat-card-visual {
    position: relative;
    display: flex;
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    min-height: 180px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    background-size: cover;
    background-position: center;
    background-color: #374151;
}

.cat-card-visual[style*="--cat-bg-url"] {
    background-image: linear-gradient(160deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .35) 100%), var(--cat-bg-url);
}

.cat-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(17, 24, 39, .75) 0%, rgba(17, 24, 39, .45) 50%, rgba(249, 168, 37, .35) 100%);
    transition: var(--transition);
}

.cat-card-visual:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.cat-card-visual:hover .cat-card-overlay {
    background: linear-gradient(160deg, rgba(17, 24, 39, .65) 0%, rgba(255, 111, 0, .5) 100%);
}

/* Default category gradients */
.cat-bg-fans { background-image: linear-gradient(160deg, rgba(0,0,0,.6), rgba(0,0,0,.4)), linear-gradient(135deg, #5D4037, #8D6E63); }
.cat-bg-lighting { background-image: linear-gradient(160deg, rgba(0,0,0,.6), rgba(0,0,0,.4)), linear-gradient(135deg, #F57F17, #FFB300); }
.cat-bg-switches-accessories { background-image: linear-gradient(160deg, rgba(0,0,0,.6), rgba(0,0,0,.4)), linear-gradient(135deg, #455A64, #78909C); }
.cat-bg-home-appliances { background-image: linear-gradient(160deg, rgba(0,0,0,.6), rgba(0,0,0,.4)), linear-gradient(135deg, #1565C0, #42A5F5); }
.cat-bg-home-electricals { background-image: linear-gradient(160deg, rgba(0,0,0,.6), rgba(0,0,0,.4)), linear-gradient(135deg, #2E7D32, #66BB6A); }
.cat-bg-switchgears { background-image: linear-gradient(160deg, rgba(0,0,0,.6), rgba(0,0,0,.4)), linear-gradient(135deg, #37474F, #607D8B); }
.cat-bg-plywood { background-image: linear-gradient(160deg, rgba(0,0,0,.6), rgba(0,0,0,.4)), linear-gradient(135deg, #6D4C41, #A1887F); }
.cat-bg-offers { background-image: linear-gradient(160deg, rgba(0,0,0,.6), rgba(0,0,0,.4)), linear-gradient(135deg, #E65100, #FF9800); }
.cat-bg-default { background-image: linear-gradient(160deg, rgba(0,0,0,.6), rgba(0,0,0,.4)), linear-gradient(135deg, #F9A825, #FF6F00); }

.cat-card-content {
    position: relative;
    z-index: 2;
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    flex: 1;
    min-height: 100%;
}

.cat-card-visual .cat-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, .2);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: auto;
    border: 1px solid rgba(255, 255, 255, .3);
}

.cat-card-visual h4 {
    font-size: var(--fs-lg);
    font-weight: 800;
    margin: 0 0 6px;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .3);
}

.cat-card-visual p {
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, .9);
    margin: 0;
    font-weight: 500;
}

.cat-card-visual .arrow-btn {
    position: absolute;
    bottom: 18px;
    right: 18px;
    width: 38px;
    height: 38px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
}

/* Product Cards */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 1200px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }

.product-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.product-card .product-img {
    aspect-ratio: 1;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-card .product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
}

.product-info {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-info .product-rating {
    min-height: 22px;
}

.product-brand {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: .04em;
}

.product-brand-logo {
    height: 22px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
}

.product-brand-logo img {
    max-height: 20px;
    max-width: 100px;
    width: auto;
    object-fit: contain;
}

.product-card-btns {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 8px;
    margin-top: 8px;
    width: 100%;
}

.product-card-btns .btn-cart-icon {
    flex: 0 0 44px;
    width: 44px;
    min-width: 44px;
    max-width: 44px;
    margin: 0;
    padding: 0;
    min-height: 42px;
    height: 42px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #F9A825, #FF6F00);
    color: #1e293b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    box-shadow: 0 2px 8px rgba(249, 168, 37, .35);
    transition: transform .15s, box-shadow .15s;
}

.product-card-btns .btn-cart-icon:hover {
    transform: scale(1.04);
    box-shadow: 0 4px 12px rgba(249, 168, 37, .45);
    color: #111;
}

.product-card-btns .btn-buy-now {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    padding: 0 12px;
    min-height: 42px;
    height: 42px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    border: none;
    background: #1f2937;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
    transition: background .15s, transform .15s;
}

.product-card-btns .btn-buy-now i {
    font-size: 14px;
    flex-shrink: 0;
}

.product-card-btns .btn-buy-now span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card-btns .btn-buy-now:hover {
    background: #111827;
    color: #fff;
    transform: translateY(-1px);
}

.product-name {
    font-size: var(--fs-base);
    font-weight: 700;
    margin: 6px 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text);
    text-decoration: none;
    line-height: 1.35;
}

.product-rating { color: var(--primary); font-size: var(--fs-sm); margin-bottom: 8px; }

.product-price .price-current {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--accent);
}

.product-price .price-old {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    text-decoration: line-through;
}

.product-card .btn-add-cart {
    width: 100%;
    margin-top: 12px;
    background: var(--primary);
    border: none;
    color: #fff;
    padding: 12px;
    border-radius: 12px;
    font-weight: 700;
    font-size: var(--fs-sm);
    cursor: pointer;
}

.product-badges { position: absolute; top: 10px; left: 10px; z-index: 2; }
.product-badge { font-size: 11px; font-weight: 700; padding: 5px 10px; border-radius: 8px; }
.badge-sale { background: var(--accent); color: #fff; }
.badge-new { background: var(--primary); color: #fff; }

.product-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-actions,
.product-card .product-actions:focus-within { opacity: 1; }

@media (max-width: 991.98px) {
    .product-actions { opacity: 1; }
}

.product-action-btn.active,
.product-action-btn.wishlisted {
    background: #F9A825 !important;
    color: #1e293b !important;
}

.product-action-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: #fff;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.testimonial-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    font-size: var(--fs-base);
}

/* Bottom Nav */
.bottom-nav {
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    background: rgba(31, 41, 55, .96);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    display: flex;
    justify-content: space-around;
    padding: 10px 6px;
    z-index: 1050;
    box-shadow: var(--shadow-lg);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255, 255, 255, .65);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 700;
}

.bottom-nav-item i { font-size: 1.35rem; margin-bottom: 4px; }

.bottom-nav-item.active {
    color: var(--nav-dark);
    background: #fff;
}

.bottom-nav-item.active i { color: var(--primary); }

.sticky-call, .sticky-whatsapp { display: none !important; }

.bottom-nav-cart { position: relative; }
.bottom-cart-badge {
    position: absolute;
    top: 2px;
    right: 50%;
    transform: translateX(12px);
    background: #FF6F00;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    border-radius: 50%;
    padding: 0 4px;
}

/* Mobile search */
.mobile-search {
    padding: 14px 0;
    background: rgba(255, 255, 255, .9);
    border-bottom: 1px solid var(--border);
}

.search-form-mobile {
    display: flex;
    align-items: center;
    gap: 0;
    border: 2px solid var(--primary);
    border-radius: 50px;
    background: #fff;
    overflow: hidden;
    padding-left: 4px;
}

.search-form-mobile .search-icon-left { padding: 0 8px 0 14px; color: var(--text-muted); }

.search-form-mobile .form-control {
    border: none;
    box-shadow: none;
    font-size: var(--fs-base);
    padding: 14px 8px;
}

.search-form-mobile button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    border: none;
    color: #fff;
    margin: 4px;
    flex-shrink: 0;
}

/* Footer */
.site-footer {
    background: #111827;
    color: #9CA3AF;
    padding: 48px 0 24px;
    margin-top: 48px;
    font-size: var(--fs-base);
}

.site-footer h5 {
    color: #fff;
    font-size: var(--fs-lg);
    font-weight: 700;
    margin-bottom: 16px;
}

.site-footer a { font-size: var(--fs-sm); }

.filter-sidebar {
    background: rgba(255, 255, 255, .95);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.btn-primary, .btn-warning {
    font-weight: 700;
    font-size: var(--fs-base);
}

.btn-outline-warning {
    font-weight: 600;
    font-size: var(--fs-base);
}

.lead-popup h3 { font-size: var(--fs-xl); }

/* Form controls readable */
.form-control, .form-select {
    font-size: var(--fs-base);
    padding: 12px 16px;
}

.breadcrumb { font-size: var(--fs-sm); }
