/* ===============================
   GOOGLE FONT
================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Poppins',sans-serif;
    background:#faf8f5;
    color:#222;
}

/* ===============================
TOP BAR
================================== */

.top-bar{
    background:#111;
    color:#fff;
    display:flex;
    justify-content:space-between;
    padding:10px 8%;
    font-size:14px;
}

/* ===============================
HEADER
================================== */

header{
    position:sticky;
    top:0;
    z-index:999;
    background:#fff;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:20px 8%;
    box-shadow:0 5px 20px rgba(0,0,0,.08);
}

.logo h1{
    font-family:'Playfair Display',serif;
    font-size:34px;
}

.logo span{
    color:#b8860b;
}

nav{
    display:flex;
    gap:35px;
}

nav a{
    color:#222;
    text-decoration:none;
    font-weight:500;
    transition:.3s;
}

nav a:hover{
    color:#b8860b;
}

.header-icons{
    display:flex;
    align-items:center;
    gap:20px;
}

.search-box{
    display:flex;
    align-items:center;
    background:#f3f3f3;
    padding:10px 15px;
    border-radius:30px;
}

.search-box input{
    border:none;
    outline:none;
    background:transparent;
    margin-left:10px;
}

.cart-btn{
    width:48px;
    height:48px;
    border-radius:50%;
    background:#111;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    position:relative;
    cursor:pointer;
}

.cart-btn span{
    position:absolute;
    top:-6px;
    right:-6px;
    width:20px;
    height:20px;
    border-radius:50%;
    background:#c89b3c;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:12px;
    font-weight:bold;
}

/* ===============================
HERO
================================== */

.hero{
    height:90vh;
    background:url("https://images.unsplash.com/photo-1529139574466-a303027c1d8b?q=80&w=1600&auto=format&fit=crop")
    center/cover;
    display:flex;
    align-items:center;
    padding:0 8%;
}

.hero-content{
    max-width:600px;
    color:#fff;
}

.hero-content p{
    letter-spacing:3px;
    margin-bottom:15px;
}

.hero-content h1{
    font-size:65px;
    line-height:75px;
    font-family:'Playfair Display',serif;
}

.hero-content h3{
    margin:25px 0;
    font-weight:400;
}

.hero button{
    background:#c89b3c;
    color:#fff;
    border:none;
    padding:16px 40px;
    border-radius:40px;
    cursor:pointer;
    font-size:16px;
    transition:.3s;
}

.hero button:hover{
    transform:translateY(-5px);
}

/* ===============================
FEATURES
================================== */

.features{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:25px;
    padding:70px 8%;
}

.feature{
    background:#fff;
    padding:30px;
    text-align:center;
    border-radius:15px;
    transition:.3s;
    box-shadow:0 8px 25px rgba(0,0,0,.05);
}

.feature:hover{
    transform:translateY(-10px);
}

.feature i{
    font-size:40px;
    color:#b8860b;
    margin-bottom:15px;
}

/* ===============================
TITLE
================================== */

.title{
    text-align:center;
    padding:30px 0;
}

.title h2{
    font-size:42px;
    font-family:'Playfair Display',serif;
}

.title p{
    margin-top:10px;
    color:#666;
}

/* ===============================
PRODUCT GRID
================================== */

#products{
    width:85%;
    margin:auto;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:30px;
    padding:60px 0;
}

/* ===========================
   PRODUCT CARD
=========================== */

.card{

    background:#fff;

    border-radius:18px;

    overflow:hidden;

    box-shadow:0 8px 25px rgba(0,0,0,.08);

    transition:.35s;

    position:relative;

}

.card:hover{

    transform:translateY(-10px);

    box-shadow:0 20px 40px rgba(0,0,0,.15);

}

.card img{

    width:100%;

    height:360px;

    object-fit:cover;

    transition:.5s;

}

.card:hover img{

    transform:scale(1.08);

}

.card-content{

    padding:20px;

}

.card-content h3{

    font-size:20px;

    margin-bottom:10px;

    font-weight:600;

}

.price{

    color:#b8860b;

    font-size:24px;

    font-weight:700;

    margin-bottom:12px;

}

.rating{

    color:#ffc107;

    margin-bottom:15px;

    letter-spacing:2px;

}

.card button{

    width:100%;

    padding:14px;

    border:none;

    border-radius:40px;

    background:#111;

    color:#fff;

    font-size:15px;

    cursor:pointer;

    transition:.3s;

}

.card button:hover{

    background:#b8860b;

}

/* ===========================
BADGES
=========================== */

.badge{

    position:absolute;

    top:15px;

    left:15px;

    background:#d62828;

    color:#fff;

    padding:6px 14px;

    border-radius:30px;

    font-size:12px;

    font-weight:600;

}

.best{

    background:#198754;

}

/* ===========================
CART PANEL
=========================== */

.cart-panel{

    position:fixed;

    top:0;

    right:-430px;

    width:420px;

    height:100vh;

    background:#fff;

    box-shadow:-10px 0 35px rgba(0,0,0,.15);

    z-index:9999;

    transition:.45s;

    display:flex;

    flex-direction:column;

}

.cart-panel.active{

    right:0;

}

.cart-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:22px;

    border-bottom:1px solid #eee;

}

.cart-header h2{

    font-size:24px;

}

.cart-header i{

    font-size:34px;

    cursor:pointer;

}

#cartItems{

    flex:1;

    overflow:auto;

    padding:20px;

}

.checkout{

    padding:20px;

    border-top:1px solid #eee;

}

.checkout button{

    width:100%;

    padding:16px;

    background:#111;

    color:#fff;

    border:none;

    border-radius:40px;

    cursor:pointer;

    transition:.3s;

}

.checkout button:hover{

    background:#b8860b;

}

/* ===========================
CHECKOUT
=========================== */

.checkout-modal{

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.6);

    display:none;

    justify-content:center;

    align-items:center;

    z-index:99999;

}

.checkout-box{

    width:500px;

    background:#fff;

    border-radius:18px;

    padding:35px;

}

.checkout-box h2{

    margin-bottom:25px;

    text-align:center;

}

.checkout-box input{

    width:100%;

    padding:15px;

    margin-bottom:15px;

    border:1px solid #ddd;

    border-radius:8px;

    outline:none;

}

.checkout-box button{

    width:100%;

    padding:16px;

    border:none;

    background:#111;

    color:#fff;

    border-radius:40px;

    cursor:pointer;

}

.checkout-box button:hover{

    background:#b8860b;

}

/* ====================================
FOOTER
==================================== */

footer{

    background:#111;

    color:#fff;

    padding:70px 8%;

    text-align:center;

}

footer h2{

    font-size:34px;

    margin-bottom:15px;

    font-family:'Playfair Display',serif;

}

footer p{

    color:#ccc;

    margin:10px 0;

}

footer .social{

    margin-top:25px;

    display:flex;

    justify-content:center;

    gap:20px;

}

footer .social a{

    width:48px;

    height:48px;

    background:#222;

    color:#fff;

    border-radius:50%;

    display:flex;

    justify-content:center;

    align-items:center;

    text-decoration:none;

    font-size:22px;

    transition:.35s;

}

footer .social a:hover{

    background:#c89b3c;

    transform:translateY(-5px);

}

/* ====================================
PRELOADER
==================================== */

#preloader{

    position:fixed;

    inset:0;

    background:#fff;

    display:flex;

    justify-content:center;

    align-items:center;

    z-index:999999;

}

.loader-logo{

    text-align:center;

}

.loader-logo h1{

    font-size:48px;

    letter-spacing:5px;

    font-family:'Playfair Display',serif;

}

.loader-logo span{

    color:#b8860b;

    letter-spacing:10px;

}

/* ====================================
TOAST
==================================== */

.toast{

    position:fixed;

    right:25px;

    bottom:30px;

    background:#111;

    color:#fff;

    padding:16px 25px;

    border-radius:40px;

    opacity:0;

    pointer-events:none;

    transition:.4s;

    z-index:99999;

}

.toast.show{

    opacity:1;

    bottom:45px;

}

/* ====================================
WHATSAPP
==================================== */

.whatsapp{

    position:fixed;

    right:25px;

    bottom:100px;

    width:65px;

    height:65px;

    border-radius:50%;

    background:#25D366;

    color:#fff;

    display:flex;

    justify-content:center;

    align-items:center;

    text-decoration:none;

    font-size:34px;

    box-shadow:0 10px 30px rgba(0,0,0,.25);

    transition:.35s;

    z-index:9999;

}

.whatsapp:hover{

    transform:scale(1.1);

}

/* ====================================
SCROLL BUTTON
==================================== */

.top-btn{

    position:fixed;

    left:25px;

    bottom:30px;

    width:60px;

    height:60px;

    border-radius:50%;

    background:#111;

    color:#fff;

    display:flex;

    justify-content:center;

    align-items:center;

    cursor:pointer;

    transition:.35s;

    opacity:0;

    pointer-events:none;

}

.top-btn.show{

    opacity:1;

    pointer-events:auto;

}

.top-btn:hover{

    background:#b8860b;

}

/* ====================================
SCROLLBAR
==================================== */

::-webkit-scrollbar{

    width:9px;

}

::-webkit-scrollbar-thumb{

    background:#c89b3c;

    border-radius:30px;

}

::-webkit-scrollbar-track{

    background:#efefef;

}

/* ====================================
ANIMATION
==================================== */

.fade{

    opacity:0;

    transform:translateY(60px);

    transition:.8s;

}

.fade.show{

    opacity:1;

    transform:translateY(0);

}

/* ====================================
RESPONSIVE
==================================== */

@media(max-width:992px){

header{

flex-direction:column;

gap:20px;

}

nav{

flex-wrap:wrap;

justify-content:center;

}

.hero{

height:70vh;

}

.hero-content h1{

font-size:45px;

line-height:55px;

}

.features{

grid-template-columns:repeat(2,1fr);

}

.checkout-box{

width:90%;

}

}

@media(max-width:768px){

.top-bar{

display:none;

}

.search-box{

display:none;

}

.hero{

text-align:center;

justify-content:center;

}

.hero-content{

max-width:100%;

}

.hero-content h1{

font-size:36px;

line-height:45px;

}

.features{

grid-template-columns:1fr;

}

#products{

grid-template-columns:repeat(auto-fit,minmax(170px,1fr));

}

.card img{

height:250px;

}

.cart-panel{

width:100%;

}

}

@media(max-width:480px){

.logo h1{

font-size:28px;

}

.title h2{

font-size:30px;

}

.hero button{

width:100%;

}

}