/* ==========================================
   CART.CSS
   Luxury Candle Website
========================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:'Inter',sans-serif;
    background:#F8F5F0;
    color:#111;
}

/* ================= NAVIGATION ================= */

header{

    background:rgba(248,245,240,.95);

    position:sticky;

    top:0;

    backdrop-filter:blur(10px);

    border-bottom:1px solid #ddd;

    z-index:999;

}

.navbar{

    max-width:1400px;

    margin:auto;

    padding:20px 60px;

    display:flex;

    justify-content:space-between;

    align-items:center;

}

.logo{

    font-family:'Cormorant Garamond',serif;

    font-size:2rem;

    letter-spacing:2px;

}

.nav-links{

    display:flex;

    gap:35px;

    list-style:none;

}

.nav-links a{

    text-decoration:none;

    color:#111;

    transition:.3s;

}

.nav-links a:hover{

    color:#777;

}

.nav-icons{

    display:flex;

    gap:15px;

}

.nav-icons button{

    background:none;

    border:none;

    font-size:1.2rem;

    cursor:pointer;

    transition:.3s;

}

.nav-icons button:hover{

    transform:translateY(-3px);

}

/* ================= HEADER ================= */

.cart-header{

    text-align:center;

    padding:90px 30px;

}

.cart-header h1{

    font-family:'Cormorant Garamond',serif;

    font-size:4rem;

    margin-bottom:15px;

}

.cart-header p{

    color:#666;

}

/* ================= MAIN CART ================= */

.cart-container{

    max-width:1400px;

    margin:auto;

    padding:50px;

    display:grid;

    grid-template-columns:2fr 1fr;

    gap:40px;

}

.cart-items{

    display:flex;

    flex-direction:column;

    gap:25px;

}

/* Product Card */

.cart-product{

    background:white;

    border-radius:20px;

    padding:25px;

    display:flex;

    align-items:center;

    gap:25px;

    box-shadow:0 10px 25px rgba(0,0,0,.06);

}

.cart-image{

    width:140px;

    height:140px;

    background:#E5E1DB;

    border-radius:20px;

    display:flex;

    justify-content:center;

    align-items:center;

    color:#777;

}

.product-info{

    flex:1;

}

.product-info h2{

    font-family:'Cormorant Garamond',serif;

    margin-bottom:10px;

}

.product-info p{

    color:#666;

}

.product-price{

    font-size:1.2rem;

    font-weight:600;

}

/* Quantity */

.quantity{

    display:flex;

    align-items:center;

    gap:10px;

    margin-top:15px;

}

.quantity button{

    width:35px;

    height:35px;

    border:none;

    border-radius:50%;

    background:#111;

    color:white;

    cursor:pointer;

}

/* Remove */

.remove{

    margin-top:20px;

    background:none;

    border:none;

    color:#888;

    cursor:pointer;

}

.remove:hover{

    color:#111;

}

/* ================= SUMMARY ================= */

.summary{

    background:white;

    border-radius:25px;

    padding:35px;

    box-shadow:0 12px 30px rgba(0,0,0,.08);

    height:fit-content;

    position:sticky;

    top:120px;

}

.summary h2{

    font-family:'Cormorant Garamond',serif;

    margin-bottom:30px;

}

.summary-row{

    display:flex;

    justify-content:space-between;

    margin:18px 0;

}

.total{

    font-size:1.2rem;

    font-weight:700;

}

.summary input{

    width:100%;

    padding:15px;

    margin:20px 0;

    border-radius:50px;

    border:1px solid silver;

}

.summary button{

    width:100%;

    padding:15px;

    border:none;

    border-radius:50px;

    background:#111;

    color:white;

    cursor:pointer;

    margin-top:12px;

    transition:.3s;

}

.summary button:hover{

    background:#444;

}

/* ================= RECOMMENDED ================= */

.recommended{

    padding:100px 60px;

}

.recommended h2{

    text-align:center;

    font-family:'Cormorant Garamond',serif;

    font-size:3rem;

    margin-bottom:50px;

}

.recommend-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));

    gap:30px;

}

.recommend-card{

    background:white;

    border-radius:20px;

    overflow:hidden;

    text-align:center;

    box-shadow:0 10px 25px rgba(0,0,0,.06);

    transition:.3s;

}

.recommend-card:hover{

    transform:translateY(-8px);

}

.recommend-image{

    height:250px;

    background:#E5E1DB;

    display:flex;

    align-items:center;

    justify-content:center;

    color:#777;

}

.recommend-card h3{

    padding:25px;

    font-family:'Cormorant Garamond',serif;

}

.recommend-card button{

    margin-bottom:25px;

    padding:12px 30px;

    border:none;

    border-radius:40px;

    background:#111;

    color:white;

    cursor:pointer;

}

/* ================= FOOTER ================= */

footer{

    text-align:center;

    padding:40px;

    border-top:1px solid #ddd;

    color:#777;

}

/* ================= MOBILE ================= */

@media(max-width:900px){

.cart-container{

grid-template-columns:1fr;

padding:20px;

}

.cart-product{

flex-direction:column;

text-align:center;

}

.navbar{

flex-direction:column;

gap:20px;

}

.nav-links{

flex-wrap:wrap;

justify-content:center;

}

.cart-header h1{

font-size:3rem;

}

}