/* ===== GOOGLE FONT ===== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}

body{
    background:#f5f7fb;
}

/* ===== HEADER ===== */
header{
    background:#111;
    color:#fff;
    padding:15px 50px;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.logo{
    font-size:24px;
    font-weight:600;
}

nav a{
    color:#fff;
    margin-left:20px;
    text-decoration:none;
    font-weight:500;
}

nav a:hover{
    color:#ff4d4d;
}

/* ===== HERO ===== */
.hero{
    background:linear-gradient(rgba(0,0,0,.6),rgba(0,0,0,.6)),
    url('https://images.unsplash.com/photo-1521335629791-ce4aec67dd47');
    height:350px;
    color:white;
    display:flex;
    justify-content:center;
    align-items:center;
    text-align:center;
}

.hero h1{
    font-size:42px;
    margin-bottom:10px;
}

.btn{
    background:#ff4d4d;
    color:white;
    padding:10px 25px;
    border:none;
    border-radius:30px;
    cursor:pointer;
    text-decoration:none;
}

.btn:hover{ background:#e60023; }

/* ===== PRODUCT GRID ===== */
.products{
    padding:50px;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:25px;
}

.card{
    background:#fff;
    border-radius:15px;
    padding:20px;
    text-align:center;
    box-shadow:0 5px 15px rgba(0,0,0,.08);
    transition:.3s;
}

.card:hover{
    transform:translateY(-5px);
}

.card img{
    width:100%;
    height:220px;
    object-fit:cover;
    border-radius:10px;
}

.card h3{ margin:10px 0; }
.card p{ color:#ff4d4d; font-weight:600; }

/* ===== FORM STYLE ===== */
form{
    background:#fff;
    padding:30px;
    width:350px;
    margin:40px auto;
    border-radius:15px;
    box-shadow:0 5px 15px rgba(0,0,0,.1);
}

input, textarea, select{
    width:100%;
    padding:10px;
    margin:10px 0;
    border:1px solid #ddd;
    border-radius:8px;
}

button{
    background:#111;
    color:white;
    padding:10px;
    border:none;
    border-radius:8px;
    cursor:pointer;
    width:100%;
}

button:hover{ background:#ff4d4d; }

/* ===== CART ===== */
.cart{
    width:70%;
    margin:40px auto;
    background:white;
    padding:30px;
    border-radius:15px;
}

.cart-item{
    display:flex;
    justify-content:space-between;
    padding:15px 0;
    border-bottom:1px solid #eee;
}

/* ===== ADMIN PANEL ===== */
.admin-box{
    width:80%;
    margin:40px auto;
    background:#fff;
    padding:30px;
    border-radius:15px;
}

.admin-menu a{
    display:inline-block;
    margin-right:15px;
    text-decoration:none;
    font-weight:500;
    color:#111;
}

.admin-menu a:hover{ color:#ff4d4d; }

/* ===== FOOTER ===== */
footer{
    background:#111;
    color:#aaa;
    text-align:center;
    padding:20px;
    margin-top:50px;
}

/* PRODUCT DETAILS PAGE */
.product-details{
    width:80%;
    margin:50px auto;
    display:flex;
    gap:50px;
}

.pd-image img{
    width:400px;
    border-radius:15px;
}

.pd-info h1{ font-size:32px; margin-bottom:10px; }
.pd-info h2{ color:#ff4d4d; margin-bottom:15px; }
.desc{ margin-bottom:20px; }

.cart-form input{
    width:70px;
    padding:8px;
    margin-right:10px;
}

.section-title{
    text-align:center;
    margin-top:50px;
}