/* =========================
   GLOBAL
========================= */

body{
    background:#f4f4f4;
    font-family:system-ui,sans-serif;
    margin:0;
    padding:0;
}

a{
    text-decoration:none;
}

img{
    max-width:100%;
}

/* =========================
   TOP BAR
========================= */

.top-bar{
    background:#000;
    color:#fff;
    font-size:12px;
    text-align:center;
    padding:6px;
    letter-spacing:1px;
}

/* =========================
   HEADER
========================= */

.header{
    background:#e53935;
    padding:12px 0;
    position:sticky;
    top:0;
    z-index:1000;
}

.logo{
    font-weight:900;
    color:#fff;
    font-size:22px;
    letter-spacing:1px;
}

/* =========================
   SEARCH
========================= */

.search{
    width:55%;
}

.search input{
    border:none;
    border-radius:0;
}

.search button{
    background:#000;
    border:none;
    color:#fff;
}

.search button:hover{
    background:#222;
}

/* =========================
   HERO
========================= */

.hero{
    background:linear-gradient(135deg,#000,#e53935);
    color:#fff;
    padding:40px;
    border-radius:12px;
    margin-top:15px;
}

.hero h1{
    font-weight:900;
    text-transform:uppercase;
}

/* =========================
   FLASH STRIP
========================= */

.flash-strip{
    background:#e53935;
    color:#fff;
    padding:10px;
    text-align:center;
    font-weight:700;
    margin-top:15px;
    border-radius:8px;
}

/* =========================
   PRODUCT CARD
========================= */

.product{
    background:#fff;
    border-radius:10px;
    overflow:hidden;
    border:2px solid #eee;
    position:relative;
    transition:.3s;
    height:100%;
}

.product:hover{
    transform:translateY(-5px);
    border-color:#e53935;
    box-shadow:0 10px 25px rgba(0,0,0,.1);
}

.product img{
    width:100%;
    height:140px;
    object-fit:contain;
    background:#fff;
    padding:10px;
}

.product .p-2,
.product .p-3{
    padding:15px;
}

/* =========================
   BADGES
========================= */

.badge{
    position:absolute;
    top:10px;
    left:10px;
    background:#e53935;
    color:#fff;
    padding:5px 10px;
    border-radius:20px;
    font-size:11px;
}

/* =========================
   PRICE
========================= */

.price{
    color:#e53935;
    font-weight:900;
    font-size:18px;
}

.old{
    text-decoration:line-through;
    color:#888;
    font-size:13px;
}

/* =========================
   BUTTONS
========================= */

.btn-buy{
    background:#000;
    color:#fff;
    border:none;
    width:100%;
}

.btn-buy:hover{
    background:#e53935;
    color:#fff;
}

.btn-outline-dark{
    border-radius:20px;
    font-weight:600;
    padding:6px 14px;
}

/* =========================
   TITLES
========================= */

.title{
    font-weight:900;
    margin-top:25px;
    text-transform:uppercase;
    border-left:5px solid #e53935;
    padding-left:10px;
}

/* =========================
   CATEGORY BOXES
========================= */

.cat-box{
    flex:1;
    min-width:90px;
    padding:10px;
    margin:5px;
    border-radius:8px;
    font-size:12px;
    font-weight:700;
    cursor:pointer;
    transition:.2s;
    color:#fff;
}

.fridge-box{ background:#1e88e5; }
.cooker-box{ background:#ff5722; }
.tv-box{ background:#8e24aa; }
.appliance-box{ background:#43a047; }
.commercial-box{ background:#546e7a; }
.toys-box{ background:#fb8c00; }
.cat-box:hover{
    transform:translateY(-3px);
}

.cat-box.active{
    outline:3px solid #000;
    transform:scale(1.05);
}

/* =========================
   SHOP CATEGORY GRID
========================= */

.shop-cat{
    background:#fff;
    border:2px solid #eee;
    border-radius:12px;
    padding:20px;
    text-align:center;
    font-weight:700;
    cursor:pointer;
    transition:.25s;
    height:100%;
}

.shop-cat:hover{
    transform:translateY(-5px);
    border-color:#e53935;
    background:#e53935;
    color:#fff;
}

.shop-cat.active{
    background:#000;
    color:#fff;
    border-color:#000;
}

/* =========================
   SHOP AT A GLANCE
========================= */

.glance-box{
    background:#fff;
    border:2px solid #eee;
    border-radius:12px;
    padding:20px;
    transition:.3s;
    height:100%;
}

.glance-box:hover{
    transform:translateY(-5px);
    border-color:#e53935;
    box-shadow:0 10px 25px rgba(0,0,0,.08);
}

.glance-box h6{
    font-weight:900;
}

.glance-box p{
    font-size:13px;
    color:#666;
}

/* =========================
   PROMO BOXES
========================= */

.promo-box{
    padding:30px;
    border-radius:12px;
    color:#fff;
    transition:.3s;
}

.promo-box:hover{
    transform:translateY(-5px);
    box-shadow:0 10px 25px rgba(0,0,0,.25);
}

.weekly-box{
    background:linear-gradient(135deg,#146eb4,#000);
}

.discount-box{
    background:linear-gradient(135deg,#e53935,#000);
}

/* =========================
   COMMERCIAL SECTION
========================= */

.commercial-box{
    background:linear-gradient(135deg,#111,#e53935);
    color:#fff;
    border-radius:12px;
    padding:30px;
}

.commercial-box h3{
    font-weight:900;
}

.commercial-list{
    list-style:none;
    padding:0;
}

.commercial-list li{
    margin-bottom:8px;
}

/* =========================
   FOOTER
========================= */

footer{
    width:100%;
    background:#000;
    color:#aaa;
    padding:40px 0;
    margin-top:40px;
}

footer h5{
    color:#fff;
    font-weight:700;
}

footer a{
    color:#fff;
    text-decoration:none;
}

footer a:hover{
    color:#e53935;
}

/* =========================
   RESPONSIVE
========================= */

@media(max-width:768px){

    .search{
        width:100%;
    }

    .logo{
        font-size:18px;
    }

    .product img{
        height:180px;
    }

    .hero{
        padding:25px;
    }

    .hero h1{
        font-size:22px;
    }
}
.category-sidebar{
    position:sticky;
    top:120px;
}
.list-group-item{
    padding:8px 10px;
    font-size:14px;
}
.card-header{
    font-size:15px;
    font-weight:700;
}

.list-group-item{
    font-size:11px;
    padding:8px 10px;
    font-weight:500;
    transition:0.3s;
}

.list-group-item:hover{
    background:#e53935;
    color:#fff !important;
    padding-left:18px;
    font-weight:600;
}
.logo-link{
    color:white;
}

.logo-link:hover{
    color:white;
}

.logo-icon{
    width:50px;
    height:50px;
    background:white;
    color:#e53935;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:22px;
    margin-right:10px;
    font-weight:bold;
}

.logo-text small{
    color:#ffe6e6;
    display:block;
    font-size:11px;
}

.search-btn{
    background:#000;
    color:white;
    border:none;
    padding:0 18px;
}

.header-actions{
    display:flex;
    gap:10px;
}

.header-btn{
    display:flex;
    align-items:center;
    justify-content:center;

    min-height:44px;
    padding:10px 16px;

    background:rgba(255,255,255,.15);
    color:#fff;

    border-radius:8px;
    text-decoration:none;

    gap:8px;

    cursor:pointer;

    transition:.3s;
}

.header-btn:hover{
    background:#fff;
    color:#e53935;
}

.logo{
    font-size:24px;
    font-weight:900;
}

/* HERO BACKGROUNDS */

.hero-1{
    background:
    linear-gradient(rgba(0,0,0,.55),rgba(0,0,0,.55)),
    url('images/hero/fridge-banner.jpg');
    background-size:cover;
    background-position:center;
}

.hero-2{
    background:
    linear-gradient(rgba(0,0,0,.55),rgba(0,0,0,.55)),
    url('images/hero/tv-banner.jpg');
    background-size:cover;
    background-position:center;
}

.hero-3{
    background:
    linear-gradient(rgba(0,0,0,.55),rgba(0,0,0,.55)),
    url('images/hero/cooker-banner.jpg');
    background-size:cover;
    background-position:center;
}

.hero-4{
    background:
    linear-gradient(rgba(0,0,0,.55),rgba(0,0,0,.55)),
    url('images/hero/appliance-banner.jpg');
    background-size:cover;
    background-position:center;
}
#searchResults{
    position:absolute;
    background:#fff;
    width:100%;
    top:100%;
    left:0;
    border-radius:0 0 10px 10px;
    box-shadow:0 5px 15px rgba(0,0,0,.15);
    z-index:9999;
    display:none;
    max-height:350px;
    overflow-y:auto;
}

.search-item{
    padding:12px;
    border-bottom:1px solid #eee;
    cursor:pointer;
}

.search-item:hover{
    background:#f5f5f5;
}

.search{
    position:relative;
}
.search-wrapper{
    position:relative;
    z-index:10;

}

#clearSearch{
    position:absolute;
    right:15px;
    top:50%;
    transform:translateY(-50%);
    font-size:14px;
    color:#999;
    cursor:pointer;
    display:none;
    z-index:100;
}

#clearSearch:hover{
    color:#e53935;
}
input[type="search"]::-webkit-search-cancel-button{
    display:block;
    cursor:pointer;
}
.search-wrapper{
    position:relative;
    width:100%;
}

#searchResults{
    position:absolute;
    top:100%;
    left:0;
    width:100%;
    background:#fff;
    border-radius:0 0 10px 10px;
    box-shadow:0 5px 20px rgba(0,0,0,.15);
    z-index:9999;
    display:none;
    max-height:350px;
    overflow-y:auto;
}

.search-item{
    display:flex;
    align-items:center;
    gap:10px;
    padding:10px;
    border-bottom:1px solid #eee;
    text-decoration:none;
    color:#333;
}

.search-item:hover{
    background:#f5f5f5;
}

.search-thumb{
    width:50px;
    height:50px;
    object-fit:cover;
    border-radius:6px;
}
.products-row{
    display:grid;
    grid-template-columns:repeat(4, 1fr);
    gap:15px;
}

@media(max-width:992px){
    .products-row{
        grid-template-columns:repeat(3, 1fr);
    }
}

@media(max-width:768px){
    .products-row{
        grid-template-columns:repeat(2, 1fr);
    }
}
.cat-box{
    flex:1;
    min-width:90px;
    padding:10px;
    margin:5px;
    border-radius:8px;
    font-size:12px;
    font-weight:700;
    cursor:pointer;
    transition:0.2s;
    color:#fff;
    text-decoration:none;
}
.action-btn{
    font-size:12px;
    padding:8px 4px;
    white-space:nowrap;
}
.product-link{
    text-decoration:none;
    color:#222;
}

.product-link:hover{
    color:#222;
}
.discount-badge{
    position:absolute;
    top:8px;
    left:8px;
    background:#ff5722;
    color:#fff;
    padding:3px 8px;
    border-radius:4px;
    font-size:11px;
    font-weight:700;
    z-index:10;
}
/* ADD TO CART */
.cart-btn{
    background:#00a651;
    height: 35px;
}

.cart-btn:hover{
    background:#000;
    color:#fff;
}

/* BUY NOW */
.buy-btn{
    background:#e53935;
    color:#fff;
    text-align:center;
}

.buy-btn:hover{
    background:#000;
    color:#fff;
}
/* DISCOUNT TAG */
.product{
    position:relative;
    background:#fff;
}

.discount-badge{
    position:absolute;
    top:10px;
    left:10px;
    background:#e53935;
    color:#fff;
    font-size:12px;
    font-weight:700;
    padding:5px 10px;
    border-radius:20px;
    z-index:10;
}

/* OLD PRICE */
.old-price{
    color:#999;
    text-decoration:line-through;
    font-size:13px;
    margin-top:3px;
}
.product h6{
    height:44px;          /* fixed height for 2 lines */
    line-height:22px;
    overflow:hidden;

    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;

    font-size:14px;
    font-weight:600;
    color:#222;
    margin-bottom:8px;
}
.related-price{
    color:#00a651;
    font-weight:700;
    font-size:14px;
}

#cartToast{
    position:fixed;
    top:20px;
    right:20px;

    background:#00a651;
    color:#fff;

    padding:14px 20px;
    border-radius:12px;

    font-weight:700;

    z-index:99999;

    opacity:0;
    transform:translateY(-20px);

    transition:.3s;
}

#cartToast.show{
    opacity:1;
    transform:translateY(0);
}

.cart-popup-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.45);

    display:none;
    align-items:center;
    justify-content:center;

    z-index:99999;
}

.cart-popup{
    background:#fff;
    width:500px;
    max-width:95%;
    border-radius:15px;
    padding:25px;
    box-shadow:0 20px 60px rgba(0,0,0,.25);
}

.popup-product{
    display:flex;
    gap:15px;
    align-items:center;
    margin:20px 0;
}

.popup-product img{
    width:80px;
    height:80px;
    object-fit:contain;
}

.popup-name{
    font-weight:700;
}

.popup-actions{
    display:flex;
    gap:10px;
    justify-content:flex-end;
}
.footer-full{
    width:100vw;
    margin-left:calc(50% - 50vw);
    background:#000;
    color:#aaa;
    padding:40px 0;
    margin-top:40px;
}

.footer-full a{
    color:#fff;
    text-decoration:none;
}

.footer-full{
    background:#000;
    color:#aaa;
    padding:50px 0 20px;
    margin-top:40px;
}

.footer-full h5{
    color:#fff;
    font-weight:800;
    margin-bottom:15px;
}

.footer-full a{
    color:#ccc;
    text-decoration:none;
    line-height:2;
    transition:.3s;
}

.footer-full a:hover{
    color:#00a651;
    padding-left:5px;
}

.footer-full p{
    color:#aaa;
}

.social-links{
    display:flex;
    gap:15px;
    align-items:center;
    margin-top:10px;
}

.social-icon{
    width:42px;
    height:42px;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:50%;

    background:#222;
    color:#fff;

    font-size:18px;

    transition:.3s;
}

.social-icon:hover{
    background:#00a651;
    color:#fff;
    transform:translateY(-3px);
}

.contact-hero{
    background:
    linear-gradient(rgba(0,0,0,.65),
    rgba(0,0,0,.65)),
    url('images/contact-banner.jpg');

    background-size:cover;
    background-position:center;

    color:#fff;

    padding:90px 0;

    text-align:center;
}

.contact-hero h1{
    font-size:52px;
    font-weight:900;
}

.contact-hero p{
    max-width:700px;
    margin:auto;
    font-size:18px;
}

.contact-card{
    background:#fff;
    padding:30px;
    border-radius:15px;
    box-shadow:0 10px 25px rgba(0,0,0,.08);
}

.contact-item{
    display:flex;
    gap:15px;
    margin-bottom:20px;
    align-items:flex-start;
}

.contact-item span{
    font-size:28px;
}

.contact-btn{
    background:#00a651;
    color:#fff;
    padding:12px 30px;
    border:none;
    font-weight:700;
}

.contact-btn:hover{
    background:#000;
    color:#fff;
}

.whatsapp-btn{
    background:#25D366;
    color:#fff;
    font-weight:700;
    padding:14px;
}

.contact-item i{
    font-size:26px;
    color:#00a651;
}

.whatsapp-btn i{
    margin-right:8px;
    font-size:18px;
}

.contact-btn{
    background:#00a651;
    color:#fff;
    padding:12px 30px;
    border:none;
    font-weight:700;
    transition:.3s;
}

.contact-btn:hover{
    background:#111;
    color:#fff;
    transform:translateY(-3px);
    box-shadow:0 10px 25px rgba(0,0,0,.2);
}

/* POPUP */

#messagePopup{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.5);

    display:none;
    align-items:center;
    justify-content:center;

    z-index:99999;
}

.popup-content{
    background:#fff;
    padding:35px;
    border-radius:15px;
    text-align:center;
    width:400px;
    max-width:90%;
}

.popup-content i{
    font-size:60px;
    color:#00a651;
    margin-bottom:15px;
}

.popup-content h4{
    font-weight:800;
}

.contact-btn{
    background:#00a651;
    color:#fff;
    border:none;
    padding:12px 30px;
    font-weight:700;
    transition:.3s;
}

.contact-btn:hover{
    background:#111;
    color:#fff;
    transform:translateY(-3px);
    box-shadow:0 10px 25px rgba(0,0,0,.25);
}

.category-menu{
    position:relative;
    margin-right:15px;
}

.category-btn{
    background:#111;
    color:#fff;
    border:none;
    padding:10px 15px;
    border-radius:10px;
    font-weight:700;
}

.category-dropdown{
    position:absolute;
    top:100%;
    left:0;

    width:250px;

    background:#fff;

    border-radius:12px;

    box-shadow:0 10px 25px rgba(0,0,0,.15);

    display:none;

    z-index:9999;

    overflow:hidden;
}

.category-dropdown a{
    display:block;
    padding:12px 15px;
    color:#222;
    text-decoration:none;
    border-bottom:1px solid #eee;
}

.category-dropdown a:hover{
    background:#e53935;
    color:#fff;
}