/* ===== THEME COLORS ===== */
:root{
--main1:#5c1b0c;
--main2:#e36c6c;
--dark:#5c1b0c;
--light:#f8a13d;
--bg:#fff7ec;
}

/* ===== FONT ===== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

body{
font-family:'Poppins',sans-serif;
margin:0;
background:linear-gradient(#fff7ec,#ffe8cc);
color:#333;
text-align:center;
}

/* ===== HEADER ===== */
header{
background:linear-gradient(135deg,var(--main1),var(--main2));
color:white;
padding:18px 10px 22px;
}

.logo{
width:110px;
height:110px;
object-fit:contain;
background:white;
padding:6px;
border-radius:50%;
box-shadow:0 6px 18px rgba(0,0,0,0.2);
}

/* ===== NAVBAR ===== */
.main-header{
position:sticky;
top:0;
z-index:1000;
background:linear-gradient(135deg,var(--main1),var(--main2));
color:white;
display:flex;
align-items:center;
justify-content:space-between;
padding:10px 28px;
box-shadow:0 4px 14px rgba(0,0,0,0.15);
}

.brand{
display:flex;
align-items:center;
gap:10px;
font-weight:600;
font-size:18px;
}

.brand img{
width:45px;
height:45px;
border-radius:50%;
background:white;
padding:4px;
}

.nav-links{
display:flex;
gap:26px;
}

.nav-links a{
color:white;
text-decoration:none;
font-weight:500;
}

.nav-links a:hover{
color:var(--light);
}

.nav-cart{
background:var(--light);
color:var(--dark);
padding:6px 12px;
border-radius:20px;
font-weight:bold;
cursor:pointer;
}

/* ===== SECTION TITLES ===== */
.section-title{
margin-top:60px;
font-size:28px;
color:var(--dark);
}

.section-title::after{
content:"";
width:70px;
height:4px;
background:var(--main1);
display:block;
margin:8px auto;
border-radius:4px;
}

/* ===== PRODUCT GRID ===== */
.products{
display:grid;
grid-template-columns:repeat(3,260px);
justify-content:center;
gap:34px;
padding:40px 20px;
max-width:1200px;
margin:auto;
}

.product{
background:white;
border-radius:18px;
padding:18px 16px;
width:260px;
height:360px;
display:flex;
flex-direction:column;
justify-content:space-between;
box-shadow:0 8px 18px rgba(0,0,0,0.08);
transition:.25s;
}

.product:hover{
transform:translateY(-6px);
box-shadow:0 14px 26px rgba(0,0,0,.15);
}

.product img{
width:100%;
height:170px;
object-fit:cover;
border-radius:12px;
}

.price{
color:var(--dark);
font-weight:600;
}

/* ===== BUTTONS ===== */
.product button,
.cart-btn{
background:linear-gradient(135deg,var(--main1),var(--main2));
color:white;
border:none;
padding:10px;
border-radius:12px;
cursor:pointer;
font-weight:600;
}

.product button:hover,
.cart-btn:hover{
transform:scale(1.05);
}

/* ===== INPUT ===== */
input,select,textarea{
border-radius:10px;
border:1px solid #ddd;
padding:10px;
font-family:Poppins;
}

/* ===== POPUP ===== */
.popup-overlay{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,0.5);
display:none;
justify-content:center;
align-items:center;
z-index:9999;
}

.popup-box{
background:white;
padding:25px;
border-radius:16px;
width:280px;
}

/* ===== BENEFIT BAR ===== */
.benefit-bar{
width:100%;
overflow:hidden;
background:linear-gradient(90deg,var(--main1),var(--main2));
color:white;
padding:12px 0;
font-weight:600;
}

.benefit-track{
display:flex;
width:max-content;
gap:80px;
animation:scrollBenefits 55s linear infinite;
}

.benefit-item{
white-space:nowrap;
font-size:16px;
letter-spacing:.3px;
}

@keyframes scrollBenefits{
from{ transform:translateX(0); }
to{ transform:translateX(-50%); }
}

/* ===== CART DESIGN ===== */
.cart-row{
display:grid;
grid-template-columns:2.5fr 1fr 1fr .5fr;
align-items:center;
padding:14px 10px;
border-bottom:1px solid #eee;
}

.c-qty{
display:flex;
justify-content:center;
align-items:center;
gap:8px;
}

.c-qty button{
background:linear-gradient(135deg,var(--main1),var(--main2));
color:white;
border:none;
width:28px;
height:28px;
border-radius:6px;
cursor:pointer;
}

.total-box{
margin-top:20px;
padding:18px;
background:#fff4ec;
border-radius:12px;
text-align:right;
font-weight:600;
}

.total-box .grand{
font-size:20px;
color:var(--main1);
}

/* ===== DELIVERY ADDRESS ===== */
.address-box{
background:white;
padding:24px 26px;
border-radius:20px;
box-shadow:0 12px 30px rgba(0,0,0,0.12);
height:fit-content;
text-align:left;
}

.address-box h2{
margin-top:0;
margin-bottom:18px;
color:var(--main1);
font-size:22px;
}

.field{
display:flex;
flex-direction:column;
margin-bottom:14px;
}

.field label{
font-size:13px;
margin-bottom:6px;
color:#777;
font-weight:600;
}

.field input,
.field textarea{
padding:12px 14px;
border-radius:12px;
border:1px solid #e3e3e3;
background:#fafafa;
font-size:15px;
transition:.2s;
}

.field input:focus,
.field textarea:focus{
outline:none;
border:1px solid #ff9800;
background:#fff;
box-shadow:0 0 0 3px rgba(255,152,0,.15);
}

.field textarea{
min-height:110px;
resize:none;
}

.row2{
display:grid;
grid-template-columns:1fr 1fr;
gap:12px;
}

/* ===== MOBILE ===== */
@media(max-width:900px){
.products{grid-template-columns:repeat(2,260px);}
}

@media(max-width:500px){
.products{grid-template-columns:1fr;}
.nav-links{display:none}
.brand span{display:none}
}
/* ===== FINAL DELIVERY BOX FIX ===== */

.cart-layout{
  align-items:start;
}

.address-box{
  background:#ffffff !important;
  padding:30px !important;
  border-radius:24px !important;
  box-shadow:0 18px 40px rgba(0,0,0,0.08) !important;
  border:1px solid #f0f0f0 !important;
  text-align:left !important;
}

.address-box h2{
  font-size:24px;
  margin-bottom:22px;
  color:#5c1b0c;
  font-weight:700;
}

.field{
  margin-bottom:18px;
}

.field input,
.field textarea{
  width:100%;
  padding:14px 16px;
  border-radius:14px;
  border:1px solid #e5e5e5;
  background:#ffffff;
  font-size:15px;
  transition:all .25s ease;
}

.field input:focus,
.field textarea:focus{
  outline:none;
  border:1px solid #e36c6c;
  box-shadow:0 0 0 4px rgba(227,108,108,.15);
}

.field textarea{
  min-height:120px;
  resize:none;
}