/* =========================
   GLOBAL
========================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:Arial, Helvetica, sans-serif;
    background:#f5f5f5;
    color:#333;
    overflow-x:hidden;
}

a{
    text-decoration:none;
}

img{
    max-width:100%;
    display:block;
}

button,
input,
textarea{
    font:inherit;
}

/* =========================
   HEADER
========================= */

header,
.header{
    background:#2874f0;
    color:#fff;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:15px 40px;
    flex-wrap:wrap;
    gap:20px;
}

.logo{
    font-size:28px;
    font-weight:bold;
}

nav{
    display:flex;
    gap:18px;
    align-items:center;
    flex-wrap:wrap;
}

nav a{
    color:#fff;
    font-weight:bold;
    padding:8px 10px;
    border-radius:5px;
    transition:.3s;
}

nav a:hover{
    color:#ffd700;
    background:rgba(255,255,255,.12);
}

/* =========================
   SEARCH
========================= */

.search-section{
    padding:35px 20px 10px;
    text-align:center;
}

.search-section h1{
    color:#2874f0;
    font-size:40px;
    margin-bottom:20px;
}

.search-box{
    display:flex;
    gap:10px;
    align-items:center;
    justify-content:center;
    max-width:520px;
    width:100%;
    margin:auto;
}

.search-box input{
    flex:1;
    min-width:0;
    padding:12px 14px;
    border:1px solid #ccc;
    border-radius:7px;
    outline:none;
}

.search-box input:focus{
    border-color:#2874f0;
}

.search-box button{
    padding:12px 18px;
    border:none;
    background:#ffd700;
    cursor:pointer;
    border-radius:7px;
    font-weight:bold;
}

/* =========================
   HERO
========================= */

.hero{
    background:
        linear-gradient(rgba(0,0,0,.25),rgba(0,0,0,.25)),
        url("https://images.unsplash.com/photo-1607082348824-0a96f2a4b9da?q=80&w=1400&auto=format&fit=crop")
        center/cover;
    min-height:400px;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:40px 20px;
}

.hero-content{
    max-width:700px;
    background:rgba(0,0,0,.65);
    color:#fff;
    padding:40px;
    border-radius:15px;
    text-align:center;
}

.hero-content h1{
    font-size:42px;
    margin-bottom:15px;
}

.hero-content p{
    font-size:18px;
    line-height:1.6;
}

/* =========================
   COMMON BUTTON
========================= */

.btn{
    display:inline-block;
    margin-top:20px;
    padding:12px 25px;
    background:#ffd700;
    color:#000;
    border:none;
    border-radius:6px;
    cursor:pointer;
    font-weight:bold;
    transition:.3s;
}

/* =========================
   SECTIONS
========================= */

.section-title{
    text-align:center;
    margin:30px 0;
    font-size:32px;
    color:#2874f0;
}

.categories,
.products{
    padding:40px 20px;
}

.category-container,
.product-container,
.gallery-container{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:20px;
}

/* =========================
   CATEGORY
========================= */

.category-card{
    background:#fff;
    border-radius:12px;
    overflow:hidden;
    box-shadow:0 2px 8px rgba(0,0,0,.1);
    transition:.3s;
}

.category-card:hover{
    transform:translateY(-5px);
}

.category-card img{
    width:100%;
    height:190px;
    object-fit:cover;
}

.category-card h3{
    text-align:center;
    padding:14px;
}

/* =========================
   PRODUCT
========================= */

.product-card{
    background:#fff;
    padding:15px;
    border-radius:12px;
    text-align:center;
    box-shadow:0 2px 8px rgba(0,0,0,.1);
    transition:.3s;
}

.product-card:hover{
    transform:translateY(-5px);
    box-shadow:0 7px 18px rgba(0,0,0,.15);
}

.product-card img{
    width:100%;
    height:220px;
    object-fit:contain;
    background:#fff;
    padding:10px;
    border-radius:10px;
}

.product-card h3{
    margin:15px 0 8px;
}

.product-info{
    text-align:center;
}

.price{
    color:green;
    font-size:21px;
    font-weight:bold;
}

.product-card button{
    margin-top:15px;
    width:100%;
    padding:12px;
    border:none;
    background:#2874f0;
    color:#fff;
    border-radius:6px;
    cursor:pointer;
    font-weight:bold;
    transition:.3s;
}

/* =========================
   TRUST
========================= */

.trust-section{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:20px;
    padding:40px 20px;
}

.trust-box{
    background:#fff;
    text-align:center;
    padding:25px;
    border-radius:10px;
    box-shadow:0 2px 8px rgba(0,0,0,.1);
    font-weight:bold;
}

/* =========================
   CART
========================= */

.cart-section{
    max-width:1100px;
    margin:40px auto;
    padding:20px;
}

.cart-section h1{
    text-align:center;
    color:#2874f0;
    margin-bottom:30px;
}

.cart-container{
    display:flex;
    flex-direction:column;
    gap:20px;
}

.cart-item{
    display:flex;
    align-items:center;
    justify-content:space-between;
    background:#fff;
    padding:18px;
    border-radius:10px;
    box-shadow:0 2px 8px rgba(0,0,0,.1);
    gap:20px;
}

.cart-item img{
    width:120px;
    height:120px;
    object-fit:contain;
    border-radius:10px;
}

.item-info{
    flex:1;
}

.item-info h3{
    margin-bottom:8px;
}

.remove-btn{
    background:#d32f2f;
    color:#fff;
    border:none;
    padding:10px 18px;
    border-radius:5px;
    cursor:pointer;
    transition:.3s;
}

.total{
    background:#fff;
    padding:24px;
    text-align:right;
    margin-top:30px;
    border-radius:10px;
    box-shadow:0 2px 8px rgba(0,0,0,.1);
}

.checkout-btn{
    margin-top:15px;
    padding:12px 25px;
    background:green;
    color:#fff;
    border:none;
    border-radius:5px;
    cursor:pointer;
    transition:.3s;
}

/* =========================
   CHECKOUT
========================= */

.checkout-section{
    max-width:1200px;
    margin:40px auto;
    padding:20px;
}

.checkout-section h1{
    text-align:center;
    color:#2874f0;
    margin-bottom:30px;
}

.checkout-container{
    display:flex;
    gap:30px;
    flex-wrap:wrap;
}

.checkout-form,
.order-summary{
    flex:1;
    min-width:320px;
    background:#fff;
    padding:25px;
    border-radius:10px;
    box-shadow:0 2px 10px rgba(0,0,0,.1);
}

.checkout-form h2,
.order-summary h2{
    margin-bottom:18px;
}

.checkout-form input,
.checkout-form textarea{
    width:100%;
    padding:12px;
    margin:10px 0;
    border:1px solid #ccc;
    border-radius:6px;
    outline:none;
}

.checkout-form input:focus,
.checkout-form textarea:focus{
    border-color:#2874f0;
}

.order-item{
    display:flex;
    justify-content:space-between;
    gap:15px;
    margin:15px 0;
    border-bottom:1px solid #ddd;
    padding-bottom:10px;
}

#checkout-total{
    margin-top:20px;
    color:green;
}

/* =========================
   CONTACT
========================= */

.contact-section{
    max-width:1200px;
    margin:50px auto;
    padding:20px;
}

.contact-section > h1{
    text-align:center;
    font-size:36px;
    margin-bottom:15px;
    color:#2874f0;
}

.contact-section > p{
    text-align:center;
    margin-bottom:35px;
    color:#555;
    font-size:18px;
}

.contact-box{
    display:flex;
    justify-content:space-between;
    gap:30px;
    background:#fff;
    padding:30px;
    border-radius:12px;
    box-shadow:0 2px 10px rgba(0,0,0,.1);
    flex-wrap:wrap;
}

.contact-box form{
    flex:1;
    min-width:300px;
}

.input-box{
    margin-bottom:20px;
}

.input-box label{
    display:block;
    font-weight:bold;
    margin-bottom:8px;
}

.input-box input,
.input-box textarea{
    width:100%;
    padding:12px;
    border:1px solid #ccc;
    border-radius:6px;
    font-size:16px;
    outline:none;
}

.input-box input:focus,
.input-box textarea:focus{
    border-color:#2874f0;
}

.input-box textarea{
    min-height:150px;
    resize:vertical;
}

.contact-box .btn{
    width:100%;
    margin-top:0;
    background:#2874f0;
    color:#fff;
}

.contact-info{
    flex:1;
    min-width:250px;
    background:#f8f8f8;
    padding:25px;
    border-radius:10px;
}

.contact-info h3{
    color:#2874f0;
    margin-bottom:20px;
}

.contact-info p{
    margin-bottom:15px;
    color:#333;
}

.contact-info a{
    color:#2874f0;
}

/* =========================
   LOGIN & SIGNUP
========================= */

.login-section,
.signup-section{
    min-height:75vh;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:40px 20px;
}

.login-box,
.signup-box{
    width:420px;
    max-width:100%;
    background:#fff;
    padding:35px;
    border-radius:12px;
    box-shadow:0 2px 10px rgba(0,0,0,.1);
}

.login-box h1,
.signup-box h1{
    text-align:center;
    color:#2874f0;
    margin-bottom:25px;
}

.login-btn,
.signup-btn{
    width:100%;
    padding:12px;
    border:none;
    border-radius:6px;
    background:#2874f0;
    color:#fff;
    cursor:pointer;
    font-size:17px;
    transition:.3s;
}

.signup-text,
.login-text{
    text-align:center;
    margin-top:20px;
}

.signup-text a,
.login-text a{
    color:#2874f0;
    font-weight:bold;
}

/* =========================
   GALLERY
========================= */

.gallery{
    padding:50px 20px;
    text-align:center;
}

.gallery h1{
    color:#2874f0;
    margin-bottom:30px;
}

.gallery-card{
    background:#fff;
    border-radius:12px;
    overflow:hidden;
    box-shadow:0 2px 8px rgba(0,0,0,.1);
    transition:.3s;
}

.gallery-card:hover{
    transform:translateY(-5px);
}

.gallery-card img{
    width:100%;
    height:240px;
    object-fit:contain;
    padding:10px;
    background:#fff;
}

.gallery-card h3{
    padding:15px;
}

/* =========================
   HOVER EFFECTS
========================= */

.btn:hover,
.remove-btn:hover,
.checkout-btn:hover,
.product-card button:hover,
.search-box button:hover,
.login-btn:hover,
.signup-btn:hover{
    opacity:.9;
    transform:scale(1.03);
}

/* =========================
   FOOTER
========================= */

footer,
.footer{
    background:#172337;
    color:#fff;
    text-align:center;
    padding:20px;
    margin-top:40px;
}

/* =========================
   MOBILE
========================= */

@media(max-width:768px){

    header,
    .header{
        flex-direction:column;
        text-align:center;
        padding:15px 20px;
    }

    nav{
        justify-content:center;
        gap:8px;
    }

    nav a{
        font-size:14px;
    }

    .search-box{
        width:100%;
    }

    .hero-content{
        padding:28px 20px;
    }

    .hero-content h1{
        font-size:30px;
    }

    .category-container,
    .product-container,
    .gallery-container{
        grid-template-columns:1fr;
    }

    .cart-item{
        flex-direction:column;
        text-align:center;
    }

    .item-info{
        text-align:center;
    }

    .total{
        text-align:center;
    }

    .checkout-container,
    .contact-box{
        flex-direction:column;
    }

    .checkout-form,
    .order-summary,
    .contact-box form,
    .contact-info{
        min-width:0;
        width:100%;
    }

    .order-item{
        flex-direction:column;
        text-align:left;
    }
}