/* Madaan Jewellers - Luxury Gold Theme */
:root {
    --gold: #c9a227;
    --gold-light: #e8d48b;
    --gold-dark: #8b6914;
    --black: #0d0a08;
    --dark: #1a1510;
    --dark2: #2a2218;
    --cream: #f8f4ec;
    --text: #e8e0d0;
    --text-muted: #a89a80;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    background: var(--black);
    color: var(--text);
    line-height: 1.6;
}

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

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; font-weight: 600; }

a { color: var(--gold); text-decoration: none; transition: 0.3s; }
a:hover { color: var(--gold-light); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 1000; background: var(--black); border-bottom: 1px solid rgba(201,162,39,0.2); }
.top-bar { background: var(--dark); padding: 8px 0; font-size: 13px; color: var(--text-muted); }
.top-bar .container { display: flex; gap: 30px; flex-wrap: wrap; justify-content: center; }
.top-bar i { color: var(--gold); margin-right: 6px; }
.live-rate { color: var(--gold-light); }

.main-header { padding: 15px 0; }
.main-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.logo { display: flex; align-items: center; gap: 12px; color: var(--gold); }
.logo-icon {
    width: 48px; height: 48px; border: 2px solid var(--gold);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-family: 'Playfair Display', serif; font-size: 24px; font-weight: 700;
}
.logo-text strong { display: block; font-size: 20px; letter-spacing: 3px; line-height: 1.1; }
.logo-text span { font-size: 11px; letter-spacing: 4px; color: var(--gold-light); }

.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav > a, .dropdown > a {
    color: var(--text); padding: 8px 14px; font-size: 14px; font-weight: 500;
    text-transform: uppercase; letter-spacing: 1px;
}
.main-nav > a:hover, .dropdown > a:hover { color: var(--gold); }

.dropdown { position: relative; }
.dropdown-menu {
    display: none; position: absolute; top: 100%; left: 0;
    background: var(--dark2); min-width: 220px; max-height: 400px; overflow-y: auto;
    border: 1px solid rgba(201,162,39,0.3); border-radius: 8px;
    padding: 10px 0; box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
    display: block; padding: 8px 18px; color: var(--text); font-size: 13px;
    text-transform: none; letter-spacing: 0;
}
.dropdown-menu a:hover { background: rgba(201,162,39,0.15); color: var(--gold); }

.btn-whatsapp {
    background: #25D366; color: #fff !important; padding: 10px 18px;
    border-radius: 30px; font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 8px;
}
.btn-whatsapp:hover { background: #1da851; color: #fff !important; }

.menu-toggle { display: none; background: none; border: none; color: var(--gold); font-size: 24px; cursor: pointer; }

/* Hero */
.hero {
    position: relative; min-height: 85vh; display: flex; align-items: center;
    background: linear-gradient(135deg, #1a1208 0%, #0d0a08 50%, #1a1008 100%);
    overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(201,162,39,0.12) 0%, transparent 60%);
}
.hero-content { position: relative; z-index: 2; max-width: 600px; }
.hero-badge {
    display: inline-block; border: 1px solid var(--gold); color: var(--gold);
    padding: 6px 18px; border-radius: 30px; font-size: 12px; letter-spacing: 2px;
    text-transform: uppercase; margin-bottom: 25px;
}
.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.2rem); line-height: 1.15;
    color: var(--gold-light); margin-bottom: 20px;
}
.hero h1 span { display: block; color: #fff; }
.hero p { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 35px; max-width: 480px; }
.hero-btns { display: flex; gap: 15px; flex-wrap: wrap; }
.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #0d0a08 !important; padding: 14px 32px; border-radius: 40px;
    font-weight: 600; font-size: 15px; border: none; cursor: pointer;
    display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(201,162,39,0.4); color: #0d0a08 !important; }
.btn-outline {
    border: 1.5px solid var(--gold); color: var(--gold) !important;
    padding: 13px 28px; border-radius: 40px; font-weight: 500;
}
.btn-outline:hover { background: rgba(201,162,39,0.15); }

/* Features bar */
.features-bar {
    margin-top: -30px;
    position: relative;
    z-index: 5;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
    background: rgba(201,162,39,0.2); margin-top: 0; position: relative; z-index: 5;
}
.feature-item {
    background: var(--dark); padding: 30px 20px; text-align: center;
}
.feature-item i { font-size: 28px; color: var(--gold); margin-bottom: 12px; }
.feature-item h4 { font-size: 15px; color: #fff; margin-bottom: 5px; }
.feature-item p { font-size: 13px; color: var(--text-muted); }

/* Sections */
.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header .badge {
    display: inline-block; color: var(--gold); font-size: 12px;
    letter-spacing: 3px; text-transform: uppercase; margin-bottom: 12px;
}
.section-header h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); color: #fff; margin-bottom: 15px; }
.section-header p { color: var(--text-muted); max-width: 550px; margin: 0 auto; }

/* Category Grid */
.cat-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.cat-card {
    background: var(--dark2); border: 1px solid rgba(201,162,39,0.15);
    border-radius: 12px; padding: 30px 15px; text-align: center;
    transition: 0.3s; cursor: pointer;
}
.cat-card:hover {
    border-color: var(--gold); transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(201,162,39,0.15);
}
.cat-card i { font-size: 32px; color: var(--gold); margin-bottom: 15px; }
.cat-card h3 { font-size: 14px; color: #fff; text-transform: uppercase; letter-spacing: 1px; }

/* Product Grid */
.product-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.product-card {
    background: var(--dark2); border-radius: 14px; overflow: hidden;
    border: 1px solid rgba(201,162,39,0.12); transition: 0.3s;
}
.product-card:hover {
    border-color: var(--gold); transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}
.product-img {
    aspect-ratio: 1; background: var(--dark); position: relative; overflow: hidden;
}
.product-img img {
    width: 100%; height: 100%; object-fit: cover; transition: 0.4s;
}
.product-card:hover .product-img img { transform: scale(1.05); }
.product-img .badge-feat {
    position: absolute; top: 12px; left: 12px; background: var(--gold);
    color: #0d0a08; font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 20px;
}
.product-info { padding: 18px; }
.product-info h3 { font-size: 16px; color: #fff; margin-bottom: 6px; font-family: 'Poppins', sans-serif; font-weight: 500; }
.product-info .price { color: var(--gold); font-size: 18px; font-weight: 600; margin-bottom: 12px; }
.product-info .price span { font-size: 13px; color: var(--text-muted); font-weight: 400; }
.btn-wa-sm {
    display: inline-flex; align-items: center; gap: 6px; background: #25D366;
    color: #fff !important; padding: 8px 16px; border-radius: 25px; font-size: 13px; font-weight: 500;
}
.btn-wa-sm:hover { background: #1da851; color: #fff !important; }

/* About */
.about-section { background: var(--dark); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-text h2 { font-size: 2.2rem; color: #fff; margin-bottom: 20px; }
.about-text p { color: var(--text-muted); margin-bottom: 15px; }
.about-stats { display: flex; gap: 40px; margin-top: 30px; }
.stat h3 { font-size: 2rem; color: var(--gold); }
.stat p { font-size: 13px; color: var(--text-muted); }

/* Contact */
.contact-section { background: linear-gradient(180deg, var(--black), var(--dark)); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-card {
    background: var(--dark2); padding: 30px; border-radius: 14px;
    border: 1px solid rgba(201,162,39,0.15);
}
.contact-card h3 { color: var(--gold); margin-bottom: 15px; }
.contact-card p { margin-bottom: 10px; color: var(--text-muted); }
.contact-card i { color: var(--gold); width: 22px; }

/* Footer */
.site-footer { background: var(--dark); padding: 60px 0 0; border-top: 1px solid rgba(201,162,39,0.15); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 40px; }
.footer-col h3, .footer-col h4 { color: var(--gold); margin-bottom: 18px; font-size: 16px; }
.footer-col p, .footer-col a { display: block; color: var(--text-muted); font-size: 14px; margin-bottom: 8px; }
.footer-col a:hover { color: var(--gold); }
.social-links { display: flex; gap: 12px; margin-top: 15px; }
.social-links a {
    width: 40px; height: 40px; border: 1px solid rgba(201,162,39,0.3);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: var(--gold); font-size: 18px;
}
.social-links a:hover { background: var(--gold); color: #0d0a08; }
.footer-bottom {
    border-top: 1px solid rgba(201,162,39,0.1); padding: 20px 0;
    text-align: center; color: var(--text-muted); font-size: 13px;
}

/* Floating WhatsApp */
.floating-whatsapp {
    position: fixed; bottom: 25px; right: 25px; width: 60px; height: 60px;
    background: #25D366; border-radius: 50%; display: flex; align-items: center;
    justify-content: center; color: #fff !important; font-size: 32px;
    box-shadow: 0 6px 25px rgba(37,211,102,0.5); z-index: 999;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 6px 25px rgba(37,211,102,0.5); }
    50% { box-shadow: 0 6px 35px rgba(37,211,102,0.8); }
}

/* Product detail */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; padding: 60px 0; }
.gallery-main { aspect-ratio: 1; background: var(--dark2); border-radius: 14px; overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 15px; flex-wrap: wrap; }
.gallery-thumbs img {
    width: 80px; height: 80px; object-fit: cover; border-radius: 8px;
    border: 2px solid transparent; cursor: pointer;
}
.gallery-thumbs img.active, .gallery-thumbs img:hover { border-color: var(--gold); }
.product-detail-info h1 { font-size: 2rem; color: #fff; margin-bottom: 10px; }
.product-detail-info .price { font-size: 1.8rem; color: var(--gold); margin: 15px 0; }
.product-meta { margin: 20px 0; }
.product-meta span { display: inline-block; background: var(--dark2); padding: 6px 14px; border-radius: 20px; font-size: 13px; margin-right: 8px; margin-bottom: 8px; }
.product-detail-info .desc { color: var(--text-muted); margin: 20px 0 30px; line-height: 1.8; }

/* Admin styles */
.admin-body { background: #111; min-height: 100vh; }
.admin-login { max-width: 400px; margin: 100px auto; background: var(--dark2); padding: 40px; border-radius: 16px; border: 1px solid rgba(201,162,39,0.2); }
.admin-login h1 { text-align: center; color: var(--gold); margin-bottom: 30px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 6px; color: var(--text-muted); font-size: 13px; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 12px 15px; background: var(--dark); border: 1px solid rgba(201,162,39,0.25);
    border-radius: 8px; color: #fff; font-size: 14px;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: var(--gold);
}
.btn-admin {
    width: 100%; padding: 14px; background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #0d0a08; border: none; border-radius: 8px; font-weight: 600; font-size: 15px; cursor: pointer;
}
.admin-nav { background: var(--dark); padding: 15px 0; border-bottom: 1px solid rgba(201,162,39,0.2); margin-bottom: 30px; }
.admin-nav .container { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.admin-nav a { color: var(--text); padding: 8px 16px; border-radius: 6px; }
.admin-nav a:hover, .admin-nav a.active { background: rgba(201,162,39,0.2); color: var(--gold); }
.admin-table { width: 100%; border-collapse: collapse; background: var(--dark2); border-radius: 12px; overflow: hidden; }
.admin-table th, .admin-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid rgba(201,162,39,0.1); }
.admin-table th { background: var(--dark); color: var(--gold); font-size: 13px; text-transform: uppercase; }
.admin-table img { width: 50px; height: 50px; object-fit: cover; border-radius: 6px; }
.alert { padding: 12px 18px; border-radius: 8px; margin-bottom: 20px; }
.alert-success { background: rgba(37,211,102,0.15); color: #25D366; border: 1px solid rgba(37,211,102,0.3); }
.alert-error { background: rgba(255,80,80,0.15); color: #ff5050; border: 1px solid rgba(255,80,80,0.3); }

/* Responsive */
@media (max-width: 992px) {
    .features-bar {
    margin-top: -30px;
    position: relative;
    z-index: 5; grid-template-columns: repeat(2, 1fr); }
    .about-grid, .contact-grid, .product-detail, .footer-grid { grid-template-columns: 1fr; }
    .footer-grid { gap: 30px; }
}
@media (max-width: 768px) {
    .main-nav {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        background: var(--dark2); flex-direction: column; padding: 20px;
        border-bottom: 1px solid rgba(201,162,39,0.2);
    }
    .main-nav.active { display: flex; }
    .dropdown-menu { position: static; display: none; box-shadow: none; border: none; max-height: 200px; }
    .dropdown:hover .dropdown-menu, .dropdown.open .dropdown-menu { display: block; }
    .menu-toggle { display: block; }
    .btn-whatsapp span { display: none; }
    .features-bar {
    margin-top: -30px;
    position: relative;
    z-index: 5; grid-template-columns: 1fr 1fr; }
    .hero { min-height: 70vh; text-align: center; }
    .hero-content { margin: 0 auto; }
    .hero-btns { justify-content: center; }
}

/* ===== HERO SLIDER ===== */
.hero-slider {
    position: relative;
    height: 85vh;
    min-height: 500px;
    overflow: hidden;
    background: #0d0a08;
}
.hero-slider .slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
    background-size: cover;
    background-position: center;
}
.hero-slider .slide.active { opacity: 1; z-index: 1; }
.hero-slider .slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(13,10,8,0.85) 0%, rgba(13,10,8,0.4) 50%, rgba(13,10,8,0.2) 100%);
}
.hero-slider .slide-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
}
.slider-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}
.slider-nav button {
    width: 12px; height: 12px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    background: transparent;
    cursor: pointer;
    padding: 0;
}
.slider-nav button.active { background: var(--gold); }
.slider-arrows {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 50px; height: 50px;
    border: 1px solid rgba(201,162,39,0.5);
    background: rgba(0,0,0,0.4);
    color: var(--gold);
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex; align-items: center; justify-content: center;
}
.slider-arrows.prev { left: 20px; }
.slider-arrows.next { right: 20px; }
.slider-arrows:hover { background: var(--gold); color: #0d0a08; }

/* Category card with image */
.cat-card .cat-img {
    width: 80px; height: 80px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(201,162,39,0.3);
    background: var(--dark);
}
.cat-card .cat-img img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.cat-card:hover .cat-img {
    border-color: var(--gold);
}

/* Logo image */
.logo img {
    height: 48px;
    width: auto;
}

/* ========== MOBILE OPTIMIZATION ========== */

/* Tablets */
@media (max-width: 992px) {
    .cat-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 14px;
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px;
    }
    .hero-slider {
        height: 70vh;
        min-height: 420px;
    }
    .features-bar {
        grid-template-columns: repeat(2, 1fr);
        margin-top: -20px;
    }
}

/* Mobile phones */
@media (max-width: 768px) {
    .container {
        padding: 0 14px;
    }

    /* Header */
    .top-bar {
        font-size: 11px;
        padding: 6px 0;
    }
    .top-bar .container {
        gap: 12px;
        justify-content: center;
    }
    .top-bar .live-rate {
        display: none;
    }
    .main-header {
        padding: 10px 0;
    }
    .logo img {
        height: 38px !important;
    }
    .btn-whatsapp {
        padding: 8px 12px;
        font-size: 12px;
    }
    .btn-whatsapp span,
    .btn-whatsapp {
        font-size: 12px;
    }

    /* Hero slider */
    .hero-slider {
        height: 55vh;
        min-height: 340px;
    }
    .hero-content {
        text-align: center;
        max-width: 100%;
        padding: 0 10px;
    }
    .hero h1 {
        font-size: 2rem !important;
    }
    .hero p {
        font-size: 0.95rem;
        margin-left: auto;
        margin-right: auto;
    }
    .hero-btns {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    .hero-btns .btn-primary,
    .hero-btns .btn-outline {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        text-align: center;
    }
    .slider-arrows {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    .slider-arrows.prev { left: 8px; }
    .slider-arrows.next { right: 8px; }
    .slider-nav {
        bottom: 16px;
    }

    /* Features */
    .features-bar {
        grid-template-columns: 1fr 1fr !important;
        margin-top: -15px;
    }
    .feature-item {
        padding: 18px 10px;
    }
    .feature-item i {
        font-size: 22px;
    }
    .feature-item h4 {
        font-size: 13px;
    }
    .feature-item p {
        font-size: 11px;
    }

    /* Sections */
    .section {
        padding: 45px 0;
    }
    .section-header {
        margin-bottom: 28px;
    }
    .section-header h2 {
        font-size: 1.6rem;
    }

    /* CATEGORY GRID - 2 columns on mobile */
    .cat-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    .cat-card {
        padding: 16px 10px !important;
        border-radius: 10px;
    }
    .cat-card .cat-img {
        width: 64px !important;
        height: 64px !important;
        margin-bottom: 10px !important;
    }
    .cat-card h3 {
        font-size: 11px !important;
        letter-spacing: 0.5px;
        line-height: 1.3;
    }
    .cat-card i {
        font-size: 24px !important;
        margin-bottom: 8px;
    }

    /* PRODUCT GRID - 2 columns on mobile */
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    .product-card {
        border-radius: 10px;
    }
    .product-info {
        padding: 12px 10px !important;
    }
    .product-info h3 {
        font-size: 13px !important;
        line-height: 1.3;
        margin-bottom: 4px;
    }
    .product-info .price {
        font-size: 14px !important;
        margin-bottom: 8px;
    }
    .btn-wa-sm {
        padding: 6px 10px !important;
        font-size: 11px !important;
        width: 100%;
        justify-content: center;
    }
    .product-img .badge-feat {
        font-size: 10px;
        padding: 3px 8px;
        top: 8px;
        left: 8px;
    }

    /* Product detail */
    .product-detail {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
        padding: 30px 0 !important;
    }
    .product-detail-info h1 {
        font-size: 1.5rem;
    }
    .product-detail-info .price {
        font-size: 1.4rem;
    }
    .gallery-thumbs img {
        width: 60px;
        height: 60px;
    }

    /* About / Contact */
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 28px;
    }
    .about-stats {
        gap: 20px;
        justify-content: space-between;
    }
    .stat h3 {
        font-size: 1.5rem;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 28px;
    }
    .site-footer {
        padding: 40px 0 0;
    }

    /* Floating WhatsApp */
    .floating-whatsapp {
        width: 52px;
        height: 52px;
        font-size: 26px;
        bottom: 18px;
        right: 18px;
    }

    /* Category page banner */
    .section > div[style*="height:220px"] {
        height: 160px !important;
    }
}

/* Very small phones */
@media (max-width: 400px) {
    .cat-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    .cat-card {
        padding: 12px 6px !important;
    }
    .cat-card .cat-img {
        width: 52px !important;
        height: 52px !important;
    }
    .cat-card h3 {
        font-size: 10px !important;
    }
    .product-grid {
        gap: 8px !important;
    }
    .product-info h3 {
        font-size: 12px !important;
    }
    .hero h1 {
        font-size: 1.7rem !important;
    }
    .features-bar {
        grid-template-columns: 1fr 1fr !important;
    }
}

/* Fix dropdown on mobile */
@media (max-width: 768px) {
    .dropdown-menu {
        max-height: 260px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .main-nav > a,
    .dropdown > a {
        padding: 12px 16px;
        width: 100%;
        border-bottom: 1px solid rgba(201,162,39,0.1);
    }
}

@media (max-width: 768px) {
    .dropdown.open .dropdown-menu {
        display: block !important;
    }
}

/* ========================================
   FORCE MOBILE COLUMNS (must be last)
   ======================================== */

/* Tablet: 3 columns */
@media screen and (max-width: 991px) {
    .cat-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 14px !important;
    }
    .product-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 14px !important;
    }
}

/* Mobile: 2 columns only */
@media screen and (max-width: 767px) {
    .cat-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
        width: 100% !important;
    }
    .cat-card {
        padding: 14px 8px !important;
        min-width: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .cat-card .cat-img {
        width: 56px !important;
        height: 56px !important;
        margin: 0 auto 8px !important;
    }
    .cat-card .cat-img img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    .cat-card h3 {
        font-size: 11px !important;
        line-height: 1.25 !important;
        word-break: break-word !important;
        margin: 0 !important;
    }

    .product-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
        width: 100% !important;
    }
    .product-card {
        min-width: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .product-info {
        padding: 10px 8px !important;
    }
    .product-info h3 {
        font-size: 12px !important;
        line-height: 1.3 !important;
    }
    .product-info .price {
        font-size: 13px !important;
        margin-bottom: 6px !important;
    }
    .btn-wa-sm {
        display: flex !important;
        width: 100% !important;
        justify-content: center !important;
        font-size: 11px !important;
        padding: 7px 6px !important;
        box-sizing: border-box !important;
    }
}

/* Tiny phones: still 2 columns but tighter */
@media screen and (max-width: 380px) {
    .cat-grid,
    .product-grid {
        gap: 8px !important;
    }
    .cat-card h3 {
        font-size: 10px !important;
    }
    .cat-card .cat-img {
        width: 48px !important;
        height: 48px !important;
    }
}
