:root{
    --primary: #1e88e5;   /* blue */
    --secondary: #2ecc71; /* green */
    --dark: #111;
    --light: #fff;
}

header{
    background: linear-gradient(90deg, #1e88e5, #2ecc71);
    display:flex;
    justify-content:space-between;
    align-items:center;
    box-sizing: border-box;
    padding:15px 30px;

    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99999;
    gap: 40px;

    flex-wrap: wrap; /* ✅ IMPORTANT FIX */
}

/* Prevent overflow */
.header{
    max-width: 100%;
    overflow-x: hidden;
}

/* LOGO */
.header .logo img{
    height:40px;
    background:#fff;
    padding:3px 6px;
    border-radius:8px;
}

/* NAV */
.nav{
    display:flex;
    justify-content: center;
    flex-direction:row;
    align-items: center;
    gap:10px;
    flex-wrap: wrap;
    
}
 .nav a{
    background: #1e88e5;   /* BLUE card */
    color: #fff;           /* WHITE text */
    text-decoration: none;
    font-size: 14px;
    padding: 7px 14px;
    border-radius: 20px;
    transition: 0.3s ease;
    font-weight: 500;
    border: 1px solid transparent;
}

/* SOCIAL */
.social{
    display:flex;
   flex-direction: row;
    gap: 5px;
    margin-left: 5px;
}
.social a{
        width: 24px;
        height: 24px;

        font-size: 12px;
    }

    /* CATEGORY BAR */
    .top-categories{
        padding: 6px 8px;
    }

    .top-categories a{
        padding: 5px 10px;
        font-size: 12px;
    }

    /* BODY SPACE */
    body{
        padding-top: 60px;
    }
    
@media (max-width: 768px){

    header{
       flex-direction: row; /* KEEP IN ONE LINE */
        justify-content: space-between;
        align-items: center;

        padding: 6px 10px; /* SLIM HEADER */

        gap: 8px;
    }

    .logo{
        margin-bottom: 10px;
    }

    .nav{
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 8px;
    }

    .social{
        margin-top: 10px;
    }

    .nav a{
         text-decoration: none;

    background: white; /* WHITE BUTTON */

    color: #1e88e5; /* BLUE TEXT */

    padding: 8px 16px;

    border-radius: 20px;

    font-size: 14px;
    font-weight: 600;

    transition: 0.3s ease;

    display: inline-block;
    }
    .nav a:hover{
    background: #2ecc71; /* GREEN */
    color: white;

    transform: translateY(-2px);
}
}
body{
    padding-top: 90px; /* IMPORTANT because header is fixed */
}
/* =========================
   TOP CATEGORIES BAR
========================= */
.top-categories{
    display: flex;
    gap: 10px;
    justify-content: center;
    padding: 10px 20px;
    background: #fff;
    border-bottom: 1px solid #eee;
    position: relative;
    z-index: 10;

    overflow-x: auto;          /* ✅ allows scroll on small screens */
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

/* Hide scrollbar (optional clean look) */
.top-categories::-webkit-scrollbar{
    display: none;
}

/* CATEGORY LINKS */
.top-categories a{
   text-decoration: none; /* REMOVE UNDERLINE */

    background: linear-gradient(90deg, #1e88e5, #2ecc71);

    color: white;

    padding: 8px 16px;

    border-radius: 20px;

    font-size: 14px;
    font-weight: 500;

    transition: 0.3s ease;

    flex-shrink: 0;
}

/* Hover effect */
.top-categories a:hover{
   transform: translateY(-2px);
    opacity: 0.9;
}
@media (max-width: 768px){

    .top-categories{
        padding: 8px 10px;
        gap: 8px;
    }

    .top-categories a{
        font-size: 13px;
        padding: 6px 12px;
    }
}
.home-layout{
    width: 100%;
    overflow-x: hidden;
}

.home-content{
    width: 100%;
    padding: 10px 15px;
}
.category-section{
    margin-bottom: 30px;
}

.section-header{
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 10px 0;
    border-bottom: 2px solid #eee;
}

.section-header h2{
    font-size: 18px;
    margin: 0;
}
.product-row{
    display: flex;
    gap: 15px;

    overflow-x: auto;
    scroll-behavior: smooth;

    padding: 15px 5px;
}

/* Hide scrollbar */
.product-row::-webkit-scrollbar{
    display: none;
}
.product-card{
    min-width: 200px;   /* KEY FOR MOBILE */
    max-width: 220px;

    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;

    padding: 10px;
    flex-shrink: 0;

    transition: 0.3s ease;
}

.product-card:hover{
    transform: translateY(-3px);
}
.card-slider{
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
    border-radius: 8px;
}

.card-slider img{
    width: 100%;
    height: 160px;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;

    opacity: 0;
    transition: 0.3s;
}

.card-slider img.active{
    opacity: 1;
}
@media (max-width: 768px){

    .section-header h2{
        font-size: 16px;
    }

    .product-card{
        min-width: 160px;
        max-width: 160px;
    }

    .card-slider{
        height: 130px;
    }

    .card-slider img{
        height: 130px;
    }

    .actions{
        display: flex;
        justify-content: space-between;
    }

    .scroll-btn{
        display: none; /* hide arrows on mobile */
    }
}
.scroll-btn{
    background: #1e88e5;
    color: #fff;
    border: none;

    width: 30px;
    height: 30px;

    border-radius: 50%;
    cursor: pointer;

    margin-left: 5px;
}

.scroll-btn:hover{
    background: #1565c0;
}
.footer{
    background: linear-gradient(90deg, #1e88e5, #2ecc71);
    color: #fff;
    padding: 40px 20px 20px;
}

.footer-container{
   display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px;
    margin: auto;
}

.footer-box{
   color: white;
    border-bottom: 2px solid rgba(255,255,255,0.3);
    padding-bottom: 8px;
}
.footer-box a{
    color: #f1f1f1;
}

.footer-box h3{
    margin-bottom: 15px;
    color: #1e88e5;
}

.footer-box a{
    color: #f1f1f1;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 8px;
    transition: 0.3s;
}

.footer-box a:hover{
    color: #fff;
}

.footer-bottom{
    text-align: center;
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid #333;
    font-size: 14px;
    color: #aaa;
}
@media (max-width: 768px){

    .footer-container{
        flex-direction: column;
        text-align: center;
    }

    .footer-box{
        margin-bottom: 20px;
    }
}
.actions{
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    gap: 10px;
}

.actions .icon{
    flex: 1;
    text-align: center;
    padding: 8px;
    border-radius: 6px;
    color: white;
    font-size: 16px;
    transition: 0.3s;
}

/* CART BUTTON (BLUE) */
.actions .cart{
    background: var(--primary);
}

.actions .cart:hover{
    background: #1565c0;
}

/* WHATSAPP BUTTON (GREEN) */
.actions .wa{
    background: var(--secondary);
}

.actions .wa:hover{
    background: #1fa85a;
}
.vat{
    font-size:12px;
    color:red;
    margin-left:4px;
}
.nav a::after{
    content: "";

    position: absolute;
    left: 0;
    bottom: -5px;

    width: 0%;
    height: 2px;

    background: white;

    transition: 0.3s;
}

.nav a:hover::after{
    width: 100%;
}
@media (max-width: 768px){

    .top-categories{
        justify-content: flex-start;
        padding: 10px;
    }

    .nav{
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}
.social{
    display: flex;
    align-items: center;
    gap: 10px;
}

/* SOCIAL ICON BUTTONS */
.social a{
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: white;

    color: #1e88e5;

    border-radius: 50%;

    text-decoration: none;

    font-size: 16px;

    transition: 0.3s ease;

    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* HOVER EFFECT */
.social a:hover{
    background: #2ecc71;
    color: white;

    transform: translateY(-3px);
}
@media (max-width: 768px){

    .social{
        margin-top: 10px;
        justify-content: center;
    }

    .social a{
        width: 35px;
        height: 35px;
        font-size: 15px;
    }
}
@media (max-width: 768px){

    /* SLIM HEADER */
    .header{
        padding:8px 10px !important;
        gap:10px !important;
        flex-wrap:nowrap !important;
    }

    /* LOGO SMALLER */
    .header .logo img{
        height:32px !important;
        padding:2px 4px;
    }

    /* NAV DISTRIBUTED EVENLY */
    .nav{
        flex:1;
         display:flex;
    justify-content:center;   /* 🔥 CENTER NAV */
    align-items:center;
    gap:12px;
    margin:0;
    }

    .nav a{
       text-decoration:none;
    color:#333;
    background:#f4f6f8;

    padding:8px 16px;
    border-radius:20px;

    font-size:13px;
    font-weight:500;

    transition:0.3s ease;
    border:1px solid #e5e5e5;
    }
    .nav a:hover{
    background:#0a7cff;
    color:#fff;
    border-color:#0a7cff;
    transform:translateY(-2px);
}
@media (max-width:768px){

    .nav{
        justify-content:center;
        gap:6px;
        flex-wrap:wrap;
    }

    .nav a{
        font-size:11px;
        padding:5px 10px;
        border-radius:14px;
    }
}

    /* SOCIAL ICONS */
    .social{
        flex:0;
        display:flex;
        justify-content:flex-end;
        gap:6px;
    }

    .social a{
        width:22px;
        height:22px;
        font-size:11px;
    }

    /* REMOVE AUTO PUSHING */
    .nav{
        margin-left:0 !important;
    }

    /* BODY OFFSET FOR FIXED HEADER */
    body{
        padding-top:85px !important;
    }
}