/* ===========================
   GOOGLE FONT
=========================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ===========================
   RESET
=========================== */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}

html{
    scroll-behavior:smooth;
}

body{
    background:#f5f7fa;
    color:#222;
    overflow-x:hidden;
}

/* ===========================
   HEADER
=========================== */

header{
    width:100%;
    background:#fff4f4;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:18px 8%;
    position:sticky;
    top:0;
    z-index:999;
    box-shadow:0 4px 15px rgba(0,0,0,.08);
}

.logo{
    font-size:28px;
    font-weight:700;
    color: #111;
}

nav{
    display:flex;
    gap:25px;
    flex-wrap:wrap;
}

nav a{
    text-decoration:none;
    color:#333;
    font-weight:500;
    transition:.3s;
}

nav a:hover{
    color:#2563eb;
}

/* ===========================
   HERO
=========================== */

.hero{
    min-height:85vh;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    padding:60px 20px;
    background:
    linear-gradient(rgba(0,0,0,.5),rgba(0,0,0,.5)),
    url("./images/img1.jpg") center/cover;
    transition:0.5s ease;
}

.hero-text{
    max-width:700px;
}

.hero h1{
    color:#fff;
    font-size:55px;
    margin-bottom:20px;
    line-height:1.2;
}

.hero p{
    color:#eee;
    font-size:18px;
    margin-bottom:35px;
}

.shop-btn{
    display:inline-block;
    padding:15px 35px;
   background: linear-gradient(135deg, #2563eb, #1e3a8a);
    color:#fff;
    text-decoration:none;
    border-radius:50px;
    font-weight:600;
    transition:.3s;
}

.shop-btn:hover{
   background: linear-gradient(135deg,#cfa292,#ca6f83);
    transform:translateY(-3px);
}

/* ===========================
   PRODUCTS
=========================== */

.products{
    padding:80px 8%;
}

.products h2{
    text-align:center;
    font-size:38px;
    margin-bottom:50px;
}

.product-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:30px;
}

.card{
    position:relative;
    background:#fff;
    border-radius:15px;
    overflow:hidden;
    box-shadow:0 8px 20px rgba(0,0,0,.1);
}

.discount{
    position:absolute;
    top:12px;
    left:12px;
    background:#ff3b30;
    color:#fff;
    padding:6px 12px;
    border-radius:20px;
    font-size:13px;
    font-weight:700;
    z-index:10;
}

.product-info{
    padding:18px;
}

.price-box{
    display:flex;
    align-items:center;
    gap:12px;
    margin:15px 0;
}

.new-price{
    font-size:26px;
    font-weight:700;
    color:#16a34a;
}

.old-price{
    font-size:18px;
    color:#999;
    text-decoration:line-through;
}

.card:hover{
    transform:translateY(-8px);
    box-shadow:0 15px 35px rgba(0,0,0,.15);
}

.card img{
    width:100%;
    aspect-ratio:1/1;
    object-fit:cover;
}

.card h3{
    font-size:20px;
    padding:18px 18px 10px;
}

.price{
    color:#16a34a;
    font-size:24px;
    font-weight:700;
    padding:0 18px;
}

.buy-btn{
    display:block;
    margin:20px 18px;
    padding:14px;
    text-align:center;
    background:#2563eb;
    color:#fff;
    text-decoration:none;
    border-radius:8px;
    font-weight:600;
    transition:.3s;
}

.buy-btn:hover{
    background:#111;
}

/* ===========================
   FOOTER
=========================== */

footer{
    background:#111;
    color:#fff;
    text-align:center;
    padding:30px;
    margin-top:50px;
}

/* ===========================
   LAPTOP
=========================== */

@media(max-width:1200px){

.hero h1{
    font-size:48px;
}

.products{
    padding:70px 5%;
}

}

/* ===========================
   TABLET
=========================== */

@media(max-width:992px){

header{
    padding:18px 5%;
}

.hero h1{
    font-size:42px;
}

.hero p{
    font-size:16px;
}

.product-grid{
    grid-template-columns:repeat(2,1fr);
}

}

/* ===========================
   MOBILE
=========================== */

@media(max-width:768px){

header{
    flex-direction:column;
    gap:15px;
    padding:15px;
}

nav{
    justify-content:center;
    gap:18px;
}

.logo{
    font-size:24px;
}

.hero{
    min-height:70vh;
    padding:50px 20px;
}

.hero h1{
    font-size:34px;
}

.hero p{
    font-size:15px;
}

.shop-btn{
    width:100%;
    max-width:220px;
}

.products{
    padding:50px 20px;
}

.products h2{
    font-size:30px;
}

.product-grid{
    grid-template-columns:1fr;
}
.crad {
    display: flex;
}
.card img{
    height:auto;
}

.buy-btn{
    margin:20px;
}

}

/* ===========================
   SMALL MOBILE
=========================== */

@media(max-width:480px){

.hero h1{
    font-size:28px;
}

.hero p{
    font-size:14px;
}

.products h2{
    font-size:26px;
}

.logo{
    font-size:22px;
}

nav{
    gap:12px;
}

nav a{
    font-size:14px;
}

.price{
    font-size:22px;
}

.card h3{
    font-size:18px;
}

}