:root {
    --primary-red: #dc3545;
    --whatsapp-green: #25d366;
    --dark-blue: #0f172a;
    --light-bg: #fffaf0;
    --text-color: #333;
}

body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background-color: var(--light-bg);
    background-image: linear-gradient(to bottom, #fffaf0 0%, #fff5f5 100%);
    background-attachment: fixed;
    color: var(--text-color);
    padding-bottom: 20px;
}

/* --- HEADER STYLES --- */
.top-bar {
    background: var(--primary-red);
    color: white;
    text-align: center;
    padding: 8px 5px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

header {
    background: white;
    padding: 15px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    position: relative;
    z-index: 100;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.logo-section { display: flex; align-items: center; }
.menu-icon { font-size: 22px; margin-right: 15px; cursor: pointer; color: #222; padding: 5px; }
.header-logo { height: 45px; width: auto; margin-right: 12px; }

.logo-text h1 { margin: 0; font-size: 22px; font-weight: 800; color: #222; line-height: 1.1; letter-spacing: -0.5px; }
.logo-text p { margin: 3px 0; font-size: 12px; color: #666; display: flex; align-items: center; }
.logo-text p i { margin-right: 4px; color: var(--primary-red); }

.verified {
    color: var(--whatsapp-green);
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    background: #e8f5e9;
    padding: 2px 6px;
    border-radius: 10px;
    width: fit-content;
}
.verified i { margin-right: 4px; }

.header-icons { display: flex; align-items: center; gap: 18px; }
.header-icons i, .icon-link { font-size: 22px; color: #444; cursor: pointer; text-decoration: none; transition: color 0.3s; }
.header-icons i:hover, .icon-link:hover { color: var(--primary-red); }

/* Search Bar */
.search-container { width: 100%; transition: all 0.3s ease; overflow: hidden; }
.search-container.hidden { height: 0; opacity: 0; margin: 0; }

.search-form {
    display: flex;
    width: 100%;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    border: 1px solid #eee;
}
.search-form input { flex: 1; padding: 14px 20px; border: none; background: #fbfbfb; font-size: 15px; outline: none; color: #555; }
.search-form button { padding: 12px 30px; background: var(--primary-red); color: white; border: none; font-weight: 700; cursor: pointer; font-size: 15px; transition: background 0.3s; }
.search-form button:hover { background: #c0392b; }

/* --- SIDE MENU --- */
.side-menu {
    height: 100%; width: 250px; position: fixed; z-index: 3000; top: 0; left: -250px;
    background-color: white; overflow-x: hidden; transition: 0.3s; box-shadow: 2px 0 5px rgba(0,0,0,0.2); padding-top: 20px;
}
.side-menu.active { left: 0; }
.side-header { padding: 0 20px 20px 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #eee; }
.side-menu a { padding: 15px 20px; text-decoration: none; font-size: 15px; color: #333; display: block; transition: 0.2s; }
.side-menu a:hover { background-color: #f1f1f1; color: var(--primary-red); }
.side-menu .divider { height: 1px; background: #eee; margin: 10px 0; }
.menu-call { color: var(--primary-red) !important; font-weight: bold; }
.menu-overlay { position: fixed; display: none; width: 100%; height: 100%; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(0,0,0,0.5); z-index: 2500; }
.menu-overlay.active { display: block; }

/* --- HERO SLIDER --- */
.hero-slider-container {
    position: relative; max-width: 100%; margin: 15px auto; overflow: hidden;
    border-radius: 10px; box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.slider-wrapper { display: flex; transition: transform 0.5s ease-in-out; width: 100%; }
.slide { min-width: 100%; box-sizing: border-box; }
.slide img { width: 100%; height: auto; display: block; object-fit: cover; max-height: 250px; }
.slider-dots { text-align: center; position: absolute; bottom: 10px; width: 100%; }
.dot { height: 8px; width: 8px; margin: 0 4px; background-color: rgba(255, 255, 255, 0.5); border-radius: 50%; display: inline-block; cursor: pointer; transition: background-color 0.3s; }
.dot.active { background-color: #fff; width: 10px; height: 10px; }

/* --- HOME PAGE SECTIONS --- */
.home-container { padding: 15px; max-width: 600px; margin: 0 auto; }
.card { background: white; padding: 20px; border-radius: 15px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); margin-bottom: 20px; }
h2, h3 { margin-top: 0; color: black; font-size: 18px; }

/* Trust & Features */
.check-list { list-style: none; padding: 0; }
.check-list li { margin-bottom: 10px; display: flex; align-items: center; font-size: 14px; }
.check-list i { color: var(--whatsapp-green); margin-right: 10px; font-size: 16px; }

.features-row { margin-bottom: 20px; }
.features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.feature-card { background: #eefbf3; padding: 15px; border-radius: 10px; text-align: center; border: 1px solid #d1e7dd; }
.feature-card i { font-size: 24px; margin-bottom: 5px; display: block; }

/* Categories Grid */
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 10px 0; }
.cat-item { display: flex; flex-direction: column; align-items: center; text-align: center; text-decoration: none; color: #333; }
.cat-icon { width: 50px; height: 50px; background: #f5f5f5; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 5px; font-size: 20px; transition: transform 0.2s; box-shadow: 0 2px 10px rgba(0,0,0,0.08); }
.cat-icon img { width: 30px; height: 30px; object-fit: contain; }
.cat-item:hover .cat-icon { transform: scale(1.05); background: #e0e0e0; }
.cat-item span { font-size: 10px; line-height: 1.2; font-weight: 500; }

/* --- SHOP PAGE STYLES --- */
.shop-container { padding: 15px; padding-bottom: 80px; }
.shop-header { margin-bottom: 15px; }
.shop-header h2 { margin: 0; font-size: 20px; }
.shop-header p { color: #666; margin: 0; font-size: 14px; }

/* Filter Horizontal Scroll */
.filter-scroll { display: flex; overflow-x: auto; gap: 10px; padding-bottom: 10px; margin-bottom: 20px; }
.filter-btn { white-space: nowrap; padding: 8px 16px; background: white; border: 1px solid #ddd; border-radius: 20px; text-decoration: none; color: #333; font-size: 13px; }
.filter-btn:hover { background: var(--dark-blue); color: white; border-color: var(--dark-blue); }

/* Products Grid */
.products-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 5px; }
.product-card { background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 5px rgba(0,0,0,0.05); position: relative; border: 1px solid #f0f0f0; }
.bank-offer-badge { position: absolute; top: 10px; left: 10px; background: #fff3cd; color: #856404; padding: 4px 8px; font-size: 11px; border-radius: 4px; font-weight: bold; border: 1px solid #ffeeba; z-index: 10; }

.prod-img-box { height: 120px; background: #f9f9f9; display: flex; align-items: center; justify-content: center; padding: 10px; }
.prod-img-box img { max-height: 100%; max-width: 100%; }

.prod-details { padding: 10px; }
.prod-details h4 { font-size: 13px; margin: 0 0 5px 0; color: #333; height: 36px; overflow: hidden; line-height: 1.3; }
.prod-details .desc { display: none; }
.price { font-size: 15px; font-weight: bold; color: var(--primary-red); margin-bottom: 10px; display: block; }

.prod-actions { display: flex; justify-content: space-between; align-items: center; gap: 5px; width: 100%; flex-direction: column; }
.btn-wa-sm, .btn-quote-sm { flex: 1; width: 100%; text-align: center; padding: 8px 5px; font-size: 11px; border-radius: 5px; text-decoration: none; font-weight: 600; display: flex; justify-content: center; align-items: center; gap: 5px; transition: all 0.3s; }
.btn-wa-sm { border: 1px solid #25d366; color: #25d366; background: #fff; }
.btn-wa-sm:hover { background: #25d366; color: #fff; }
.btn-quote-sm { background: #333; color: #fff; border: 1px solid #333; }
.btn-quote-sm:hover { background: #000; }

@media (min-width: 600px) { .products-grid { grid-template-columns: 1fr 1fr 1fr; } }

/* --- SINGLE PRODUCT PAGE (UPDATED) --- */
.product-page-container { padding: 20px; max-width: 1100px; margin: 0 auto; padding-bottom: 90px; background: #fff; }
.breadcrumb { font-size: 12px; color: #666; margin-bottom: 15px; }
.breadcrumb a { text-decoration: none; color: var(--dark-blue); }

.product-layout { display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 768px) {
    .product-layout { flex-direction: row; gap: 40px; }
    .product-gallery, .product-info { flex: 1; }
    .p-actions { position: static; box-shadow: none; padding: 0; margin-top: 30px; }
}

.main-image { width: 100%; background: #f8f9fa; border-radius: 12px; overflow: hidden; border: 1px solid #eee; margin-bottom: 20px; }
.main-image img { width: 100%; height: auto; display: block; }

.p-title { font-size: 22px; color: #222; margin-bottom: 5px; }
.p-cat { color: #666; font-size: 13px; margin-bottom: 15px; }
.p-price { font-size: 26px; color: var(--primary-red); font-weight: 800; margin-bottom: 15px; }

/* Spec Grid */
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 20px 0; }
.spec-card { background: #fdfdfd; border: 1px solid #e0e0e0; border-radius: 8px; padding: 12px; text-align: center; }
.spec-card i { font-size: 20px; color: var(--dark-blue); margin-bottom: 5px; }
.spec-label { font-size: 11px; text-transform: uppercase; color: #888; font-weight: bold; }
.spec-value { font-size: 14px; color: #333; font-weight: 600; }

.p-desc { margin-top: 25px; padding-top: 20px; border-top: 1px solid #eee; }
.p-desc h3 { font-size: 16px; margin-bottom: 10px; }
.p-desc p { color: #555; line-height: 1.6; font-size: 15px; }
.feature-bullets { list-style: none; padding: 0; margin-top: 15px; }
.feature-bullets li { margin-bottom: 8px; color: #444; font-size: 14px; display: flex; align-items: center; }
.feature-bullets li i { color: var(--whatsapp-green); margin-right: 10px; }

.p-actions { position: fixed; bottom: 0; left: 0; right: 0; background: white; padding: 12px 15px; display: flex; gap: 12px; box-shadow: 0 -4px 15px rgba(0,0,0,0.1); z-index: 1000; }
.buy-btn { flex: 1; text-align: center; padding: 14px; border-radius: 5px; text-decoration: none; color: white; font-weight: bold; font-size: 16px; }

/* --- REVIEWS SECTION --- */
.reviews-section { padding-bottom: 20px; }
.review-card { background: #f8fafc; border-left: 4px solid #ef4444; padding: 15px; margin-bottom: 15px; border-radius: 6px; }
.review-card h4 { color: #0f172a; font-size: 14px; font-weight: 700; margin: 0 0 5px 0; }
.review-card p { color: #475569; font-size: 13px; font-style: italic; margin: 0 0 8px 0; line-height: 1.4; }
.stars { color: #f1c40f; letter-spacing: 2px; font-size: 12px; }

.review-form-box { background: #f9f9f9; padding: 15px; border-radius: 8px; margin-bottom: 20px; border: 1px solid #e0e0e0; margin-top: 20px; }
.review-input { width: 100%; padding: 10px; margin-bottom: 10px; border: 1px solid #ccc; border-radius: 5px; box-sizing: border-box; }
.submit-review-btn { background: #222; color: #fff; padding: 10px 20px; border: none; border-radius: 5px; cursor: pointer; font-weight: bold; }
.rating-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; align-items: center; margin-bottom: 10px; }
.rating-input input { display: none; }
.rating-input label { font-size: 25px; color: #ddd; cursor: pointer; padding: 0 2px; }
.rating-input input:checked ~ label { color: #ffc107; }
.rating-input label:hover, .rating-input label:hover ~ label { color: #ffc107; }

/* --- FOOTER & STICKY NAV --- */
.main-footer { background-color: #0f172a; color: white; padding: 40px 20px 20px 20px; font-size: 14px; margin-top: 20px; }
.footer-brand { font-size: 18px; margin: 0 0 10px 0; font-weight: bold; }
.footer-desc { color: #cbd5e1; font-size: 13px; line-height: 1.5; margin-bottom: 20px; }
.footer-line { border: 0; border-top: 1px solid #334155; margin: 20px 0; }
.footer-section h4 { color: white; font-size: 16px; margin-bottom: 15px; }
.footer-section p { margin: 8px 0; color: #cbd5e1; display: flex; align-items: center; }
.footer-section p i { width: 25px; color: #ef4444; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #cbd5e1; text-decoration: none; }
.copyright { text-align: center; font-size: 12px; color: #64748b; margin-top: 20px; }

.sticky-nav { position: fixed; bottom: 10px; left: 10px; right: 10px; background: white; display: flex; justify-content: space-around; padding: 10px 0; border-radius: 15px; box-shadow: 0 4px 20px rgba(0,0,0,0.15); z-index: 1000; }
.nav-item { text-decoration: none; color: #666; display: flex; flex-direction: column; align-items: center; font-size: 10px; }
.nav-item i { font-size: 18px; margin-bottom: 4px; }
.nav-item.whatsapp-btn { color: var(--whatsapp-green); font-weight: bold; }
.nav-item.call-btn { background: var(--primary-red); color: white; padding: 8px 15px; border-radius: 8px; margin-top: -5px; }

/* --- POPUP STYLES (Cleaned & Optimized) --- */
.popup-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6); justify-content: center; align-items: center; z-index: 10000; backdrop-filter: blur(3px);
}
.popup-content {
    width: 80%; max-width: 280px; /* 30% Smaller */
    border-radius: 10px; background: #fff; position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3); text-align: center; overflow: hidden; padding-bottom: 15px;
    animation: zoomIn 0.3s ease-out;
}
@keyframes zoomIn { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.popup-top-banner { background: linear-gradient(135deg, #d32f2f, #c62828); padding: 15px; color: white; }
.popup-top-banner h3 { margin: 0; font-size: 18px; }
.popup-top-banner p { margin: 5px 0 0; font-size: 12px; opacity: 0.9; }
.close-popup { position: absolute; top: 5px; right: 10px; font-size: 24px; color: #fff; cursor: pointer; }

.popup-body-content { padding: 15px; }
.offer-box { background: #fff9c4; border: 1px dashed #fbc02d; padding: 8px; border-radius: 6px; margin-bottom: 12px; font-size: 13px; color: #856404; }
.pulse-animation { animation: pulse 2s infinite; }
@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.02); } 100% { transform: scale(1); } }

.input-group { margin-bottom: 8px; position: relative; }
.input-group i { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: #888; font-size: 12px; }
.input-group input, .input-group select {
    width: 100%; padding: 8px 8px 8px 30px; height: 34px;
    border: 1px solid #ddd; border-radius: 5px; font-size: 12px;
    box-sizing: border-box; background: #f9f9f9;
}
.popup-cta-btn {
    width: 100%; background: #25d366; color: white; padding: 10px;
    border: none; border-radius: 5px; font-size: 14px; font-weight: bold; cursor: pointer; margin-top: 5px;
}
.privacy-note { font-size: 10px; color: #999; margin-top: 10px; }