/* /public/styles.css */
body{
font-family:Arial,sans-serif;
margin:0;
background:#f5f5f5;
color:#111;
}

.site-header{
background:#000;
box-shadow:0 4px 16px rgba(0,0,0,0.24);
}

.banner img{
display:block;
width:100%;
max-width:1200px;
height:auto;
margin:0 auto;
}

.banner{
width:100%;
background:#000;
margin:0;
padding:0;
line-height:0;
display:flex;
justify-content:center;
max-height:140px;   /* 👈 THIS IS THE FINAL TWEAK */
overflow:hidden;
}

.sticky-nav{
position:sticky;
top:0;
z-index:1000;
background:#0c0c0c;
border-top:1px solid rgba(255,255,255,0.08);
border-bottom:1px solid rgba(255,255,255,0.08);
box-shadow:0 2px 8px rgba(0,0,0,0.18);
}

.nav-inner{
max-width:1200px;
margin:auto;
display:flex;
align-items:center;
justify-content:center;
gap:34px;
padding:14px 20px;
flex-wrap:wrap;
}

.nav-inner a{
color:#fff;
text-decoration:none;
font-weight:bold;
font-size:16px;
letter-spacing:.2px;
}

.nav-inner a:hover{
text-decoration:underline;
}

.hero{
background:#fff;
padding:40px 24px;
text-align:center;
border-bottom:1px solid #ddd;
}

.hero h2{
margin-top:0;
font-size:34px;
}

.hero p{
max-width:800px;
margin:auto;
color:#555;
line-height:1.5;
}

.section{
max-width:1200px;
margin:auto;
padding:32px 20px;
}

.section h3{
margin-top:0;
font-size:28px;
}

.container{
max-width:1200px;
margin:auto;
padding:30px;
}

.page-wrap{
padding:30px;
}

.cart-container{
max-width:900px;
margin:auto;
background:#fff;
padding:25px;
border-radius:10px;
box-shadow:0 2px 10px rgba(0,0,0,0.06);
}

.grid{
display:grid;
grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
gap:20px;
}

.home-grid{
display:grid;
grid-template-columns:repeat(auto-fill,minmax(280px,1fr));
gap:20px;
}

.card{
background:#fff;
border:1px solid #ddd;
border-radius:8px;
overflow:hidden;
padding:15px;
box-shadow:0 2px 8px rgba(0,0,0,0.06);
display:flex;
flex-direction:column;
}

.home-card{
background:#fff;
border:1px solid #ddd;
border-radius:10px;
overflow:hidden;
box-shadow:0 2px 8px rgba(0,0,0,0.06);
display:flex;
flex-direction:column;
}

.image{
height:220px;
background:#eee;
display:flex;
align-items:center;
justify-content:center;
overflow:hidden;
padding:10px;
box-sizing:border-box;
}

.image-box{
height:220px;
background:#e9e9e9;
display:flex;
align-items:center;
justify-content:center;
overflow:hidden;
padding:10px;
box-sizing:border-box;
}

.image img,
.image-box img{
width:100%;
height:100%;
object-fit:contain;
display:block;
cursor:pointer;
}

.card h3{
margin:10px 0 4px 0;
font-size:18px;
line-height:1.3;
}

.home-card h4{
margin:0;
font-size:20px;
line-height:1.3;
}

.card-content{
padding:18px;
display:flex;
flex-direction:column;
gap:10px;
flex-grow:1;
}

.category{
display:inline-block;
background:#eee;
color:#444;
font-size:12px;
font-weight:bold;
padding:4px 8px;
border-radius:4px;
margin-bottom:8px;
text-transform:uppercase;
letter-spacing:.5px;
}

.home-card .category{
display:block;
background:none;
padding:0;
margin-bottom:0;
color:#666;
}

.description{
color:#555;
font-size:14px;
line-height:1.5;
min-height:42px;
}

.price{
font-size:20px;
font-weight:bold;
margin-top:auto;
}

.home-card .price{
font-size:22px;
}

.stock{
font-size:13px;
color:#666;
margin-top:6px;
}

.filters{
display:flex;
flex-wrap:wrap;
gap:12px;
margin:20px 0 30px 0;
}

.filters input,
.filters select{
padding:12px;
font-size:15px;
border:1px solid #ccc;
border-radius:6px;
background:#fff;
}

.filters input{
flex:1;
min-width:240px;
}

.result-count{
margin-bottom:20px;
color:#555;
font-size:14px;
}

.quantity-wrap{
display:flex;
align-items:center;
gap:8px;
margin-top:10px;
}

.home-card .quantity-wrap{
margin-top:6px;
}

.quantity-label{
font-size:14px;
font-weight:bold;
color:#333;
min-width:28px;
}

.quantity-controls{
display:inline-flex;
align-items:center;
border:1px solid #ccc;
border-radius:6px;
overflow:hidden;
background:#fff;
}

.quantity-controls button{
margin:0;
padding:0;
width:36px;
height:36px;
background:#f3f3f3;
color:#111;
border:none;
border-radius:0;
font-size:18px;
font-weight:bold;
cursor:pointer;
}

.quantity-controls button:hover{
background:#e3e3e3;
}

.quantity-controls input{
width:56px;
height:36px;
border:none;
border-left:1px solid #ccc;
border-right:1px solid #ccc;
text-align:center;
font-size:15px;
outline:none;
}

.buy-btn{
background:#000;
color:#fff;
border:none;
padding:10px;
margin-top:10px;
cursor:pointer;
border-radius:6px;
font-weight:bold;
}

.home-card .buy-btn{
margin-top:8px;
padding:12px;
font-size:15px;
}

.buy-btn:hover{
background:#333;
}

.top-links{
margin-bottom:20px;
}

.top-links a{
color:#111;
text-decoration:none;
font-weight:bold;
margin-right:16px;
}

.top-links a:hover{
text-decoration:underline;
}

h1{
margin-top:0;
}

.item{
display:flex;
justify-content:space-between;
align-items:center;
gap:16px;
border-bottom:1px solid #ddd;
padding:14px 0;
}

.item-info{
flex:1;
}

.item-name{
font-weight:bold;
margin-bottom:6px;
}

.item-price{
color:#555;
font-size:14px;
}

.item-meta{
color:#666;
font-size:13px;
margin-top:4px;
}

.item-actions{
display:flex;
align-items:center;
gap:10px;
flex-wrap:wrap;
}

.item-actions input{
width:70px;
padding:8px;
font-size:15px;
}

button{
padding:10px 14px;
border:none;
background:#000;
color:#fff;
cursor:pointer;
border-radius:6px;
font-weight:bold;
}

button:hover{
background:#333;
}

.secondary-btn{
background:#777;
}

.secondary-btn:hover{
background:#555;
}

.summary{
margin-top:24px;
padding-top:18px;
border-top:1px solid #ddd;
}

.summary-row{
display:flex;
justify-content:space-between;
align-items:center;
gap:20px;
margin:10px 0;
font-size:16px;
}

.total{
font-size:22px;
font-weight:bold;
}

.grand-total{
font-size:24px;
font-weight:bold;
margin-top:16px;
padding:16px;
border:2px solid #111;
border-radius:8px;
background:#fafafa;
}

.actions{
display:flex;
gap:12px;
flex-wrap:wrap;
margin-top:20px;
}

.empty,
.empty-message{
padding:30px 0;
color:#666;
font-size:16px;
}

.empty-message{
background:#fff;
border:1px solid #ddd;
border-radius:8px;
padding:30px;
text-align:center;
}

.note{
margin-top:12px;
font-size:14px;
color:#666;
}

.estimate{
color:#555;
font-size:14px;
}

.shipping-block{
margin-top:18px;
padding:16px;
background:#fafafa;
border:1px solid #e5e5e5;
border-radius:8px;
}

.shipping-title{
font-weight:bold;
margin-bottom:10px;
font-size:16px;
}

.shipping-option{
display:flex;
justify-content:space-between;
align-items:center;
gap:16px;
padding:12px;
border:1px solid #ddd;
border-radius:8px;
margin-top:10px;
background:#fff;
cursor:pointer;
}

.shipping-option.selected{
border:2px solid #111;
background:#f3f3f3;
}

.shipping-option-left{
display:flex;
align-items:center;
gap:10px;
}

.shipping-option-name{
font-weight:bold;
}

.shipping-option-meta{
font-size:13px;
color:#666;
margin-top:3px;
}

footer{
text-align:center;
padding:30px 20px;
color:#666;
font-size:14px;
}

.lightbox{
display:none;
position:fixed;
inset:0;
background:rgba(0,0,0,.88);
align-items:center;
justify-content:center;
z-index:9999;
padding:20px;
box-sizing:border-box;
}

.lightbox.show{
display:flex;
}

.lightbox-content{
position:relative;
max-width:95vw;
max-height:90vh;
display:flex;
flex-direction:column;
align-items:center;
gap:12px;
}

.lightbox img{
max-width:95vw;
max-height:65vh;
object-fit:contain;
background:#fff;
padding:10px;
border-radius:8px;
}

.lightbox-controls{
display:flex;
align-items:center;
gap:12px;
}

.lightbox-controls button{
margin-top:0;
padding:10px 14px;
font-size:16px;
}

.lightbox-counter{
color:#fff;
font-weight:bold;
min-width:60px;
text-align:center;
}

.thumbnail-strip{
display:flex;
gap:8px;
flex-wrap:wrap;
justify-content:center;
max-width:95vw;
}

.thumbnail{
width:64px;
height:64px;
border:2px solid transparent;
border-radius:6px;
overflow:hidden;
background:#fff;
cursor:pointer;
padding:0;
}

.thumbnail img{
width:100%;
height:100%;
object-fit:cover;
display:block;
}

.thumbnail.active{
border-color:#4da3ff;
}

.close-btn{
position:absolute;
top:-10px;
right:-10px;
background:#fff;
color:#000;
border:none;
border-radius:999px;
width:36px;
height:36px;
font-size:20px;
font-weight:bold;
cursor:pointer;
line-height:1;
padding:0;
}

.close-btn:hover{
background:#ddd;
}

@media (max-width:700px){
.hero h2{
font-size:28px;
}

.nav-inner{
gap:18px;
padding:12px 16px;
}

.page-wrap{
padding:20px;
}

.item{
flex-direction:column;
align-items:flex-start;
}

.item-actions{
width:100%;
}
}
