:root {

    --primary: #ff6b00;
    --secondary: #ffb100;
    --dark: #222;
    --light: #fff;

}

* {

    margin: 0;
    padding: 0;
    box-sizing: border-box;

}

html {

    scroll-behavior: smooth;

}

body {

    font-family: Arial, sans-serif;
    background: #fffaf4;
    color: #333;

}

.container {

    width: min(92%, 1200px);
    margin: auto;

}

/* HEADER */

header {

    position: sticky;
    top: 0;
    z-index: 1000;

    background: white;

    box-shadow: 0 2px 10px rgba(0,0,0,.08);

}

.user-menu
{
    position:relative;
    list-style:none;
}

.user-dropdown
{
    display:none;

    position:absolute;

    top:35px;
    right:0;

    background:#fff;

    min-width:180px;

    box-shadow:
    0 4px 12px
    rgba(0,0,0,.15);

    border-radius:8px;

    overflow:hidden;

    z-index:9999;
}

.user-dropdown li
{
    list-style:none;
}

.user-dropdown li a
{
    display:block;

    padding:12px 15px;

    text-decoration:none;

    color:#333;
}

.category-link
{
    text-decoration:none;
    color:inherit;
    display:block;
}

.user-dropdown li a:hover
{
    background:#f5f5f5;
}

.hero-slider{
    margin-top:0;
}

.navbar {

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 0.5rem 0;

}

.logo {

    font-size: 1.4rem;
    font-weight: bold;
    color: var(--primary);

}

.nav-links {

    display: flex;
    list-style: none;
    gap: 2rem;

}


#safetytips{
    scroll-margin-top:100px;
}

#contact{
    scroll-margin-top:100px;
}

.header-cart a{

    position:relative;

    display:inline-block;

}

.header-cart img{

    width:32px;

    height:32px;

    object-fit:contain;

}

#headerCartCount{

    position:absolute;

    top:-6px;

    right:-8px;

    width:20px;

    height:20px;

    border-radius:50%;

    background:red;

    color:#fff;

    font-size:11px;

    font-weight:bold;

    display:flex;

    align-items:center;

    justify-content:center;

}

.cart-text{

    font-weight:600;

    color:#333;
}

.nav-links a {

    text-decoration: none;
    color: #333;
    font-weight: 600;

}

.menu-btn {

    display: none;
    border: none;
    background: none;
    font-size: 1.8rem;
    cursor: pointer;

}

/* CAROUSEL */

.hero-slider {

    position: relative;
    overflow: hidden;

}

.slides{
    position:relative;
    overflow:hidden;
}

.slide{
    position:absolute;
    inset:0;

    opacity:0;

    transform:scale(1.08);

    transition:
        opacity 1.2s ease,
        transform 6s ease;

    pointer-events:none;
}

.slide.active{
    position:relative;

    opacity:1;

    transform:scale(1);

    pointer-events:auto;
}

.hero-slider{
    margin:0;
    padding:0;
    line-height:0;
}

.slide img {

    width: 100%;
    height: 500px;
    display: block;

}

.prev,
.next {

    position:absolute;

    top:50%;
    transform:translateY(-50%);

    width:48px;
    height:48px;

    border:none;

    border-radius:50%;

    background:rgba(255,255,255,.25);

    backdrop-filter:blur(8px);

    color:white;

    font-size:22px;

    cursor:pointer;

    transition:.3s;

    z-index:10;

}

.prev:hover,
.next:hover{

    background:rgba(255,255,255,.5);

}

.prev {

    left: 15px;

}

.next {

    right: 15px;

}

.dots {

    position: absolute;

    bottom: 0px;
    left: 50%;

    transform: translateX(-50%);

    display: flex;
    gap: 10px;

}

.dot {

    width:4px;
    height:4px;

    border-radius:20px;

    background:rgba(255,255,255,.4);

    transition:.4s;

    cursor:pointer;

}

.dot.active {

    width:4px;

    background:white;

}

/* SECTIONS */

section {

    padding: 80px 0;

}

.section-title {

    text-align: center;
    margin-bottom: 40px;

    color: var(--primary);

}

/* PRODUCTS */

.products-grid {

    display:grid;

    grid-template-columns:
    repeat(3,1fr);

    gap:30px;

    margin-top:40px;

}

.card {

    background:white;

    border-radius:15px;

    overflow:hidden;

    box-shadow:0 4px 15px rgba(0,0,0,.08);

    transition:.3s;

}

.card:hover{

    transform:translateY(-6px);

}

.card:hover img{

    transform:scale(1.08);

}

.card img{

    width:100%;

    height:220px;

    object-fit:cover;

    display:block;

}

.card-content{

    padding:20px;

}

.card-content h3{

    color:var(--primary);

    margin-bottom:10px;

}

.card{
    cursor:pointer;
}

.card-content p{
    color:#666;
    line-height:1.6;
}

.card h3 {

    color: var(--primary);
    margin-bottom: 10px;

}

.logo{
    display:flex;
    align-items:center;
    gap:12px;
    font-weight:bold;
    color:var(--primary);
}

.logo img{
    width:70px;
    height:70px;
    object-fit:contain;
    border-radius:0;
}

.logo img.logo-text {
    width: auto !important;
    height: 60px !important;
    border-radius: 0 !important;
    object-fit: contain !important;
}

/* OFFER */

.offer-box {

    background: linear-gradient(
        135deg,
        var(--primary),
        var(--secondary)
    );

    color: white;

    text-align: center;

    padding: 50px;

    border-radius: 20px;

}

.btn {

    display: inline-block;

    margin-top: 20px;

    background: white;

    color: #222;

    text-decoration: none;

    padding: 12px 25px;

    border-radius: 8px;

    font-weight: bold;
    
    transition:.3s;

}

.btn:hover{
    transform:translateY(-3px);
}

/* FEATURES */

.features {

    display: grid;

    grid-template-columns:
    repeat(auto-fit,minmax(220px,1fr));

    gap: 20px;

}

.feature {

    background: white;

    padding: 25px;

    border-radius: 15px;

    text-align: center;

    box-shadow: 0 4px 15px rgba(0,0,0,.08);

}

/* CONTACT */

.contact-box {

    max-width: 700px;

    margin: auto;

    background: white;

    padding: 30px;

    border-radius: 15px;

    text-align: center;

    box-shadow: 0 4px 15px rgba(0,0,0,.08);

}

.contact-box p {

    margin: 10px 0;

}

/* ==========================
   SAFETY SECTION
========================== */

.safety-section{

    background:#fff8f0;

}

.safety-wrapper{

    display:flex;

    align-items:center;

    gap:50px;

}

.safety-image{

    flex:1;

}

.safety-image img{

    width:100%;

    max-width:500px;

    display:block;

    margin:auto;

}

.safety-content{

    flex:1;

}

.safety-content ul{

    list-style:none;

}

.safety-content li{

    background:#fff;

    padding:15px 18px;

    margin-bottom:12px;

    border-left:5px solid #ff6b00;

    border-radius:8px;

    box-shadow:0 4px 10px rgba(0,0,0,.05);

}

.safety-content li::before{

    content:"✓";

    color:#28a745;

    font-weight:bold;

    margin-right:10px;

}

/* FOOTER */

footer {

    background: #222;

    color: white;

    text-align: center;

    padding: 25px;

}

/* CART */

.cart-float{
    position:fixed;
    bottom:20px;
    right:20px;
    background:none;
    box-shadow:none;
    width:auto;
    height:auto;
}

.cart-float:hover{
    transform:scale(1.1);
}

.cart-float span{
    position:absolute;
    top:-5px;
    right:-5px;
    background:red;
    color:white;
    width:22px;
    height:22px;
    border-radius:50%;
    font-size:12px;
    display:flex;
    align-items:center;
    justify-content:center;
}

.cart-float img{
    width:60px;
    height:60px;
}

.qty-btn{

    width:30px;

    height:30px;

    border:none;

    border-radius:6px;

    background:#ff6b00;

    color:#fff;

    font-weight:bold;

    cursor:pointer;
}

.qty-value{

    margin:0 10px;

    font-weight:bold;
}

.remove-btn
{
    background:#dc3545;
    color:#fff;
    border:none;
    padding:8px 12px;
    border-radius:6px;
    cursor:pointer;
}

.remove-btn:hover
{
    background:#bb2d3b;
}

.mobile-remove-btn
{
    width:100%;
    margin-top:12px;
    background:#dc3545;
    color:#fff;
    border:none;
    padding:10px;
    border-radius:8px;
    font-weight:bold;
}

#userMenu
{
    position:relative;
}

#userMenu > a
{
    text-decoration:none;
    color:#333;
    font-weight:600;
    cursor:pointer;
}

#userDropdown
{
    display:none;

    position:absolute;

    top:40px;
    left:0;

    min-width:180px;

    background:#ffffff;

    border-radius:8px;

    box-shadow:
    0 4px 15px rgba(0,0,0,.15);

    overflow:hidden;

    z-index:9999;
}

#userDropdown li
{
    list-style:none;
}

#userDropdown li a
{
    display:block;

    padding:12px 15px;

    color:#333;

    text-decoration:none;

    font-size:14px;

    transition:.3s;
}

#userDropdown li a:hover
{
    background:#ff6b00;

    color:#fff;
}

.change-password-box
{
    max-width:500px;
    margin:40px auto;
    background:#fff;
    padding:25px;
    border-radius:10px;
    box-shadow:0 2px 10px rgba(0,0,0,.1);
}

.change-password-box h2
{
    margin-bottom:20px;
    text-align:center;
}

.change-password-box input
{
    width:100%;
    padding:12px;
    margin-bottom:15px;
    border:1px solid #ddd;
    border-radius:5px;
}

.change-password-box button
{
    width:100%;
    padding:12px;
    background:#ff6a00;
    color:#fff;
    border:none;
    border-radius:5px;
    cursor:pointer;
}

/* WHATSAPP 

.whatsapp {

    position: fixed;

    bottom: 20px;
    right: 20px;

    width: 60px;
    height: 60px;

    display: flex;
    justify-content: center;
    align-items: center;

    border-radius: 50%;

    background: #25D366;

    color: white;

    text-decoration: none;

    font-size: 28px;

} */

@media(max-width:991px){

    .slide img{
        height:350px;
        object-fit:cover;
    }
    
    .products-grid{

        grid-template-columns:
        repeat(2,1fr);

    }

}

/* ==========================
   CART PAGE
========================== */

.cart-table-wrapper{
    background:#ffffff;
    padding:20px;
    border-radius:10px;
    box-shadow:0 2px 10px rgba(0,0,0,.08);
    margin-top:20px;
    overflow-x:auto;
}

.cart-table{
    width:100%;
    border-collapse:collapse;
}

.cart-table th{
    background:#ff6a00;
    color:#ffffff;
    padding:12px;
    text-align:center;
}

.cart-table td{
    padding:12px;
    border:1px solid #dddddd;
    text-align:center;
    vertical-align:middle;
}

.cart-product-image{
    width:60px;
    height:60px;
    object-fit:cover;
    border-radius:6px;
}

.cart-product-name{
    font-weight:bold;
    margin-bottom:5px;
}

.cart-summary{
    margin-top:20px;
    max-width:350px;
    margin-left:auto;
}

.cart-summary-row{
    display:flex;
    justify-content:space-between;
    padding:10px 0;
    border-bottom:1px solid #eeeeee;
    font-weight:bold;
}

.cart-buttons{
    margin-top:20px;
    display:flex;
    gap:15px;
    justify-content:flex-end;
}

.cart-btn{
    background:#ff6a00;
    color:#ffffff;
    border:none;
    padding:12px 20px;
    border-radius:5px;
    cursor:pointer;
    font-weight:bold;
}

.cart-btn:hover{
    opacity:0.9;
}

.mobile-cart-container
{
    display:none;
}

.mobile-cart-card
{
    background:#ffffff;

    padding:15px;

    margin-bottom:15px;

    border-radius:10px;

    box-shadow:0 2px 8px rgba(0,0,0,.08);
}

.mobile-cart-image
{
    width:120px;

    display:block;

    margin:auto;

    border-radius:8px;
}

.mobile-cart-name
{
    text-align:center;

    font-weight:bold;

    margin-top:10px;
}

.mobile-cart-local
{
    text-align:center;

    color:#666;

    margin-top:5px;

    margin-bottom:10px;
}

.mobile-cart-row
{
    display:flex;

    justify-content:space-between;

    padding:8px 0;

    border-bottom:1px solid #eeeeee;
}

/* MOBILE */

@media(max-width:768px){
    
    #userDropdown
    {
        position:static;
    
        box-shadow:none;
    
        border:1px solid #eee;
    
        margin-top:10px;
    
        width:100%;
    }
    
    .cart-table-wrapper
    {
        display:none;
    }
    
    .mobile-cart-container
    {
        display:block;
    }
    
    .cart-table th:nth-child(1),
    .cart-table td:nth-child(1)
    {
        width:70px;
    }
    
    .cart-product-image
    {
        width:50px;
        height:50px;
    }
    
    .cart-table th,
    .cart-table td
    {
        padding:8px;
        font-size:12px;
    }
    
    .cart-product-name
    {
        font-size:13px;
    }
    
    .cart-summary
    {
        max-width:100%;
        margin-top:15px;
    }
    
    .cart-buttons
    {
        flex-direction:column;
    }
    
    .cart-btn
    {
        width:100%;
    }

    .menu-btn {

        display: block;

    }
    
    .slide img{
        height:220px;
        object-fit:cover;
    }
    
    .products-grid{

        grid-template-columns:1fr;

    }

    .header-cart{

       margin-top:10px;

    }

    .header-cart img{

        width:28px;

        height:28px;

    }

    .nav-links {

        display: none;

        position: absolute;

        top: 70px;
        left: 0;

        width: 100%;

        background: white;

        flex-direction: column;

        padding: 20px;

    }

    .nav-links.active {

        display: flex;

    }
    
    .safety-wrapper{

        flex-direction:column;

        text-align:left;

    }

    .prev,
    .next {

        width: 25px;
        height: 30px;

    }
    
    .logo{
        display:flex;
        align-items:center;
        gap:6px;
        font-weight:bold;
        color:var(--primary);
}

.logo img{
    width:50px;
    height:50px;
    object-fit:cover;
    border-radius:50%;
}

.logo img.logo-text {
    width: auto !important;
    height: 32px !important;
    border-radius: 0 !important;
}

}

