/* ==================================================
   TRONIC KENYA LTD
   MAIN WEBSITE STYLES
================================================== */

:root {
    --primary-red: #e11d48;
    --primary-red-dark: #be123c;
    --accent-orange: #f59e0b;
    --text-dark: #111827;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:'Poppins', Arial, sans-serif;
    background:#f5f7fa;
    color:#333;
    line-height:1.6;
}

/* ===========================
   HEADER
=========================== */

.site-header{
    background:var(--primary-red);
    color: white;
    position:sticky;
    top:0;
    z-index:1000;
    box-shadow:0 2px 10px rgba(0,0,0,.15);
}

.header-container{
    max-width:1200px;
    margin:auto;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:18px 20px;
}

.logo a{
    text-decoration:none;
}

.logo{
    display:flex;
    align-items:center;
    gap:12px;
}

.logo img{
    height:50px;
    width:auto;
    display:block;
}

.logo h2{
    color:#fff;
    font-size:28px;
    margin:0;
}

.main-nav{
    display:flex;
    gap:25px;
}

.main-nav a{
    color:white;
    text-decoration:none;
    font-weight:500;
    transition:.3s;
}

.main-nav a:hover{
    color:#f59e0b;
}

/* ===========================
   GENERAL
=========================== */

.container{
    max-width:1200px;
    margin:auto;
    padding:40px 20px;
}

h1{
    color:#0d1b2a;
    font-size:42px;
    margin-bottom:15px;
}

h2{
    color:#0d1b2a;
    margin-bottom:20px;
}

p{
    margin-bottom:15px;
}

/* ===========================
   BUTTONS
=========================== */

.whatsapp-btn{
    background:#22c55e;
    color:white;
    padding:12px 22px;
    border-radius:8px;
    text-decoration:none;
    font-weight:600;
    display:inline-block;
    transition:0.3s;
}

.whatsapp-btn:hover{
    background:#1da851;
}

/* ===========================
   PRODUCTS
=========================== */

.products-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:25px;
    margin-top:30px;
}

.product-card{
    background:white;
    border-radius:12px;
    overflow:hidden;
    box-shadow:0 6px 15px rgba(0,0,0,.08);
    transition:.3s;
    cursor:pointer;
}

.product-card:hover{
    transform:translateY(-8px);
    box-shadow:0 15px 30px rgba(0,0,0,0.18);
}

.product-card img{
    width:100%;
    height:240px;
    object-fit:cover;
}

.product-content{
    padding:20px;
}

.product-content h3{
    margin-bottom:10px;
}

.product-category{
    color:#777;
    font-size:14px;
}

.product-price{
    color:#f59e0b;
    font-size:24px;
    font-weight:bold;
    margin:15px 0;

}


/* ===================================
   HERO SECTION
=================================== */

.hero{
    background:linear-gradient(rgba(13,27,42,.75), rgba(13,27,42,.75)),
               url("../images/hero.jpg");
    background-size:cover;
    background-position:center;
    min-height:420px;

    display:flex;
    justify-content:center;
    align-items:center;

    text-align:center;

    color:white;

    border-radius:15px;

    margin-bottom:50px;

    padding:60px 30px;
}

.hero-content{
    max-width:800px;
}

.hero h1{
    color:white;
    font-size:46px;
    margin-bottom:20px;
}

.hero p{
    font-size:20px;
    margin-bottom:35px;
}

.hero-buttons{
    display:flex;
    justify-content:center;
    gap:20px;
    flex-wrap:wrap;
}

.primary-btn{

    display:inline-block;

    background:var(--primary-red);

    color:white;

    text-decoration:none;

    padding:14px 28px;

    border-radius:8px;

    font-weight:600;

    transition:.3s;

}

.primary-btn:hover{
    background:var(--primary-red-dark);
}

.about-section{
    background:white;
    padding:60px 30px;
    border-radius:15px;
    margin-bottom:50px;
    text-align:center;
    box-shadow:0 5px 20px rgba(0,0,0,0.05);
}

.about-section h2{
    margin-bottom:20px;
}

.about-section p{
    max-width:800px;
    margin:0 auto 15px auto;
    font-size:16px;
    color:#444;
}

.about-features{
    margin-top:30px;
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(200px, 1fr));
    gap:15px;
}

.feature-box{
    background:#f5f7fa;
    padding:15px;
    border-radius:10px;
    font-weight:600;
    color:#0d1b2a;
    transition:0.3s;
}

.feature-box:hover{
    background:#e8f0ff;
    transform:translateY(-3px);
}

#products{
    margin-bottom:60px;
}

.why-section{
    padding:60px 30px;
    text-align:center;
    margin-bottom:60px;
}

.why-intro{
    max-width:700px;
    margin:0 auto 30px auto;
    color:#555;
}

.why-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
    gap:20px;
}

.why-card{
    background:white;
    padding:25px;
    border-radius:12px;
    box-shadow:0 5px 15px rgba(0,0,0,0.06);
    transition:0.3s;
}

.why-card:hover{
    transform:translateY(-5px);
    box-shadow:0 10px 25px rgba(0,0,0,0.12);
}

.why-card h3{
    color:#0d1b2a;
    margin-bottom:10px;
}

.contact-section{
    padding:70px 20px;
    text-align:center;
    margin-bottom:40px;
    background:#f8f9fa;
    color:#333;
    border-radius:15px;
}

.contact-section h2{
    color:#d61f26;
    font-size:36px;
    margin-bottom:15px;
}

.contact-intro{
    max-width:600px;
    margin:0 auto 30px auto;
    color:#555;
    margin-bottom: 40px;
    font-size: 18px;
}

.contact-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(200px, 1fr));
    gap:20px;
}

.contact-card{
    background:#fff;
    padding:25px;
    border-radius:12px;
    box-shadow:0 5px 20px rgba(0,0,0,.08);
    transition:0.3s;
    min-height: 240px;

display:flex;
flex-direction:column;
justify-content:center;
align-items:center;
}

.contact-card:hover{
    transform:translateY(-5px);
    background:rgba(0,0,0,0.15);
}

.contact-card a{
    color:#d61f26;
    text-decoration:none;
    font-weight:600;
}

.contact-card p{
    color:#333;
    font-size:18px;
    font-weight:500;
}

.contact-icon{
    width:70px;
    height:70px;
    margin:0 auto 15px;
    border-radius:50%;
    background:#d61f26;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:28px;
}

.contact-icon.whatsapp{
    background:#25D366;
}

.contact-card h3{
    color:#222;
    margin-bottom:10px;
}

.contact-card p{
    color:#666;
}

section{
    padding:40px 20px;
    margin-bottom:30px;
}



h2{
    font-size:32px;
    text-align:center;
    margin-bottom:25px;
}

.floating-whatsapp{
    position:fixed;
    bottom:20px;
    right:20px;
    background:#25D366;
    color:white;
    width:60px;
    height:60px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:30px;
    text-decoration:none;
    box-shadow:0 5px 15px rgba(0,0,0,0.3);
    z-index:9999;
    transition:0.3s;
}

.floating-whatsapp:hover{
    transform:scale(1.1);
}

html{
    scroll-behavior:smooth;
}



.cat-btn{
    background:var(--primary-red);
    color:white;
    border:none;
    padding:10px 15px;
    margin:5px;
    border-radius:8px;
    cursor:pointer;
    transition:0.3s;
}

.cat-btn:hover{
    background:var(--primary-red);
}

.modal{
    display:none;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.7);
    z-index:9999;

    overflow-y:auto;
    padding:20px;
}

.modal-content{
    background:white;
    width:90%;
    max-width:550px;

    margin:40px auto;

    padding:25px;

    border-radius:12px;

    position:relative;

    max-height:90vh;

    overflow-y:auto;
}

.close{
    position:absolute;
    right:15px;
    top:10px;
    font-size:28px;
    cursor:pointer;
}

.modal-content img{
    width:100%;
    height:250px;
    object-fit:cover;
    border-radius:10px;
}

#modalDetails,
#modalWhatsapp{
    display:inline-block;
    margin-top:15px;
    text-align:center;
}

.social-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    padding:12px 22px;
    border-radius:8px;
    text-decoration:none;
    color:#fff;
    font-weight:600;
    transition:.3s;
}

.social-btn:hover{
    transform:translateY(-3px);
    box-shadow:0 8px 20px rgba(0,0,0,.20);
}



.social-btn.tiktok:hover{
    background:#111;
}

.social-btn.tiktok{
    background:#000;
    position:relative;
    overflow:hidden;
}

.social-btn.tiktok::after{
    content:"";
    position:absolute;
    top:0;
    left:-100%;
    width:100%;
    height:100%;
    background:linear-gradient(90deg,transparent,rgba(255,255,255,0.2),transparent);
    transition:0.5s;
}

.social-btn.tiktok:hover::after{
    left:100%;
}

.social-btn.whatsapp{
    background:#25D366;
}


.social-btn.facebook{
    background:#1877F2;
}

.social-btn.instagram{
    background:linear-gradient(
        45deg,
        #f58529,
        #dd2a7b,
        #8134af,
        #515bd4
    );
}

.social-btn i{
    font-size:18px;
}

.social-btn:hover{
    transform:translateY(-4px) scale(1.05);
    box-shadow:0 10px 25px rgba(0,0,0,.25);
}

/* ===============================
   MOBILE RESPONSIVENESS
================================ */

@media (max-width: 768px){

    /* HERO */
    .hero h1{
        font-size:32px;
        line-height:1.2;
    }

    .hero p{
        font-size:16px;
    }

    .hero-buttons{
        flex-direction:column;
        gap:10px;
    }

    /* PRODUCT GRID */
    .products-grid{
        grid-template-columns:1fr;
    }

    /* CONTACT GRID */
    .contact-grid{
        grid-template-columns:1fr;
    }

    /* WHY GRID */
    .why-grid{
        grid-template-columns:1fr;
    }

    /* ABOUT */
    .about-section{
        padding:40px 15px;
    }

}

/* ===========================
   QUOTATION CART
=========================== */

.quote-table{
    width:100%;
    border-collapse:collapse;
    background:#fff;
    border-radius:12px;
    overflow:hidden;
    box-shadow:0 5px 20px rgba(0,0,0,.08);
}

.quote-table th{
    background:#0d1b2a;
    color:#fff;
    padding:15px;
}

.quote-table td{
    padding:15px;
    border-bottom:1px solid #eee;
    text-align:center;
}

.quote-table tr:hover{
    background:#f8fafc;
}

/* ===============================
   PRODUCT DETAILS PAGE
================================ */

.product-details{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:50px;
    align-items:start;
    margin:50px 0;
}

.product-image img{
    width:100%;
    border-radius:15px;
    box-shadow:0 8px 25px rgba(0,0,0,.12);
}

.product-info h1{
    margin-bottom:15px;
}

.product-info .product-price{
    font-size:32px;
    color:#f59e0b;
    font-weight:bold;
    margin:20px 0;
}

.product-info p{
    margin-bottom:15px;
}

.product-info .primary-btn,
.product-info .whatsapp-btn{
    margin-right:15px;
    margin-top:15px;
}

@media(max-width:768px){

.product-details{

    grid-template-columns:1fr;

}

}

/* ===========================
   CART SUMMARY
=========================== */

.cart-summary{
    margin-top:30px;
    padding:25px;
    background:#fff;
    border-radius:12px;
    box-shadow:0 5px 15px rgba(0,0,0,.08);
}

.cart-summary h2{
    text-align:right;
    margin-bottom:20px;
}

.cart-actions{
    display:flex;
    justify-content:space-between;
    align-items:center;
    flex-wrap:wrap;
    gap:15px;
}

@media(max-width:768px){

.cart-summary h2{
    text-align:center;
}

.cart-actions{
    flex-direction:column;
}

.cart-actions a{
    width:100%;
    text-align:center;
}

}

/* AJAX Notification */

.cart-notification{

    position:fixed;

    top:20px;

    right:20px;

    background:#16a34a;

    color:white;

    padding:15px 22px;

    border-radius:8px;

    font-weight:600;

    box-shadow:0 6px 20px rgba(0,0,0,.2);

    opacity:0;

    transform:translateY(-20px);

    transition:.3s;

    z-index:99999;

}

.cart-notification.show{

    opacity:1;

    transform:translateY(0);

}

/* ===========================
   CATEGORIES SECTION
=========================== */

.categories-section{
    padding:70px 20px;
    text-align:center;
}

.categories-section h2{
    color:#d61f26;
    font-size:36px;
    margin-bottom:15px;
}

.categories-intro{
    max-width:700px;
    margin:0 auto 45px;
    color:#666;
    font-size:18px;
}

.categories-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
    gap:25px;
}

.category-card{
    background:#fff;
    border-radius:15px;
    padding:35px 25px;
    text-decoration:none;
    color:#333;
    box-shadow:0 8px 20px rgba(0,0,0,.08);
    transition:.35s;
    border-top:4px solid transparent;
}

.category-card:hover{
    transform:translateY(-8px);
    border-top:4px solid #d61f26;
    box-shadow:0 15px 35px rgba(0,0,0,.15);
}

.category-card i{
    font-size:50px;
    color:#d61f26;
    margin-bottom:20px;
}

.category-card h3{
    font-size:22px;
    margin-bottom:15px;
    color:#222;
}

.category-count{
    display:inline-block;
    background:#f8f9fa;
    color:#d61f26;
    padding:8px 18px;
    border-radius:30px;
    font-weight:600;
    margin-bottom:20px;
}

.category-link{
    color:#555;
    font-weight:600;
    transition:.3s;
}

.category-card:hover .category-link{
    color:#d61f26;
}


/* ================= FOOTER ================= */

.site-footer{
    background:#d61f26;
    color:#fff;
    margin-top:20px;
}

.footer-container{
    max-width:1200px;
    margin:auto;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
    gap:40px;
    padding:45px 25px 25px;
}

.footer-column h3{
    margin-bottom:20px;
    font-size:24px;
    font-weight: 700;
    color:#fff;
}

.footer-column p{
    color:#f5f5f5;
    line-height:1.8;
    margin-bottom:12px;
}

.footer-column a{
    display:block;
    color:#fff;
    text-decoration:none;
    margin-bottom:12px;
    transition:.3s;
}

.footer-column a:hover{
    color:#ffd54f;
    padding-left:8px;
    transition: .3s;
}

.footer-column i{
    width:28px;
    text-align:center;
    margin-right:8px;
}

.footer-bottom{
    text-align:center;
    background:#b71c1c;
    color:#fff;
    padding:18px;
    font-size:15px;
}

.footer-column h3::after{
    content:"";
    display:block;
    width:45px;
    height:3px;
    background:#FFD54F;
    margin:10px auto 0;
    border-radius:5px;
}

.footer-column{
    display:flex;
    flex-direction:column;
}

/* ===========================
   MOBILE MENU
=========================== */

.menu-toggle{
    display:none;
    background:none;
    border:none;
    color:#fff;
    font-size:28px;
    cursor:pointer;
}

/* ===========================
   MOBILE MENU
=========================== */

.menu-toggle{
    display:none;
    background:none;
    border:none;
    color:#fff;
    font-size:30px;
    cursor:pointer;
    padding:5px;
}

/* ===========================
   MOBILE RESPONSIVE HEADER
=========================== */

@media (max-width:768px){

    .header-container{
        display:flex;
        justify-content:space-between;
        align-items:center;
        flex-wrap:wrap;
        padding:15px;
        position:relative;
    }

    .logo{
        display:flex;
        align-items:center;
        gap:10px;
        min-width:0;
        flex:1;
    }

    .logo img{
        height:40px;
        width:auto;
    }

    .logo h2{
        font-size:20px;
        white-space:nowrap;
        overflow:hidden;
        text-overflow:ellipsis;
    }

    .menu-toggle{
        display:block;
        flex-shrink:0;
    }

    .main-nav{
        display:none;
        width:100%;
        flex-direction:column;
        background:var(--primary-red);
        margin-top:15px;
        border-top:1px solid rgba(255,255,255,.2);
    }

    .main-nav.active{
        display:flex;
    }

    .main-nav a{
        display:block;
        width:100%;
        padding:16px;
        text-align:left;
        color:#fff;
        border-bottom:1px solid rgba(255,255,255,.15);
        transition:.3s;
    }

    .main-nav a:hover{
        background:rgba(255,255,255,.1);
        color:#FFD54F;
        padding-left:25px;
    }

    /* General mobile adjustments */

    .container{
        padding:25px 15px;
    }

    .hero{
        padding:50px 20px;
        min-height:350px;
    }

    .hero h1{
        font-size:30px;
        line-height:1.3;
    }

    .hero p{
        font-size:16px;
    }

    .hero-buttons{
        flex-direction:column;
        gap:12px;
    }

    .products-grid,
    .contact-grid,
    .why-grid,
    .footer-container{
        grid-template-columns:1fr;
    }

    .product-details{
        grid-template-columns:1fr;
    }

    .footer-column{
        text-align:center;
    }

    .footer-column i{
        margin-right:10px;
    }

    .contact-card{
        min-height:auto;
    }

    .floating-whatsapp{
        width:58px;
        height:58px;
        font-size:28px;
    }

    .categories-grid{
    grid-template-columns:1fr;
}
}

.category-intro{
    text-align:center;
    color:#666;
    margin-bottom:35px;
    font-size:18px;
}

