/* ===============================
RESET
================================ */

*{
margin:0;
padding:0;
box-sizing:border-box;
}

body{
font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
font-size:16px;
line-height:1.6;
background:#f5f5f5;
color:#222;
}

/* ===============================
LINK
================================ */

a{
color:inherit;
text-decoration:none;
}

img{
max-width:100%;
display:block;
}

/* ===============================
CONTAINER
================================ */

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

/* ===============================
HEADER
================================ */

header{
background:#fff;
border-bottom:1px solid #eee;
}


.logo{
font-size:20px;
font-weight:700;
color:#0a7cff;
}
/* header sticky */

.site-header{
position:sticky;
top:0;
background:#ffffff;
z-index:1000;
border-bottom:1px solid #eee;
box-shadow:0 2px 6px rgba(0,0,0,0.05);
}

/* header layout */

.header-inner{
display:flex;
align-items:center;
gap:12px;
padding:10px 0;
}

/* logo */

.logo{
font-weight:700;
font-size:18px;
color:#0a7cff;
}

/* search */

.search-box{
flex:1;
display:flex;
gap:6px;
}

.search-box input{
flex:1;
padding:8px 10px;
border:1px solid #ddd;
border-radius:6px;
font-size:14px;
}

.search-box button{
background:#0a7cff;
border:none;
color:#fff;
padding:8px 12px;
border-radius:6px;
cursor:pointer;
}

.search-box button:hover{
opacity:.9;
}
@media(max-width:768px){

.logo{
display:none;
}

.search-box input{
font-size:16px;
}

}

.search-btn{
display:flex;
align-items:center;
justify-content:center;
background:#0a7cff;
border:none;
color:#fff;
padding:8px 12px;
border-radius:6px;
cursor:pointer;
}

.search-btn svg{
width:18px;
height:18px;
}

.search-btn:hover{
opacity:.9;
}

/* ===============================
GRID PRODUCTS
================================ */

.grid{
display:grid;
grid-template-columns:repeat(auto-fill,minmax(200px,1fr));
gap:16px;
margin-top:20px;
}
.related-products{
margin-top:40px;
}

.related-products h2{
margin-bottom:15px;
font-size:20px;
}


/* ===============================
PRODUCT CARD
================================ */

.product-card{
border-radius:8px;
overflow:hidden;
transition:0.2s;
}

.product-card:hover{
box-shadow:0 4px 10px rgba(0,0,0,0.08);
}

.product-img{
aspect-ratio:1/1;
overflow:hidden;
background:#fafafa;
}

.product-img img{
width:100%;
height:100%;
object-fit:cover;
}

.product-info{
padding:10px;
}

.product-title{
font-size:14px;
height:18px;
overflow:hidden;
}

.product-price{
margin-top:6px;
font-weight:700;
color:#e53935;
}

/* ===============================
PRODUCT PAGE
================================ */

.product-page{
display:grid;
grid-template-columns:1fr 1fr;
gap:40px;
margin-top:30px;
}

.product-page img{
border-radius:8px;
}

.product-page h1{
font-size:22px;
margin-bottom:10px;
}

.product-desc{
margin-top:15px;
color:#555;
}
.product-desc-full{
  line-height:1.7;
  margin-top:10px;
  white-space:pre-line;
  font-size:15px;
}

.buy-btn{
display:inline-block;
margin-top:20px;
background:#ff5722;
color:#fff;
padding:12px 18px;
border-radius:6px;
font-weight:600;
}

/* ===============================
FOOTER
================================ */

.site-footer{
margin-top:40px;
margin-bottom: 40px;
padding:30px 0;
background:#ffffff;
border-top:1px solid #eee;
font-size:14px;
color:#666;
text-align:center;
}

.footer-title{
font-weight:600;
margin-bottom:6px;
}

.footer-copy{
margin-bottom:10px;
}

.footer-desc{
max-width:700px;
margin:6px auto;
line-height:1.6;
}
.footer-menu{
margin:10px 0;
}

.menu-footer{
color:#0a7cff;
margin:0 6px;
}

.menu-footer:hover{
text-decoration:underline;
}

/* ===============================
SEARCH RESULTS
================================ */

.search-results{
display:grid;
grid-template-columns:repeat(auto-fill,minmax(200px,1fr));
gap:16px;
margin-top:20px;
}

/* ===============================
RESPONSIVE
================================ */

@media(max-width:768px){

.product-page{
grid-template-columns:1fr;
}

.grid{
grid-template-columns:repeat(2,1fr);
}

}

@media(max-width:480px){

.grid{
grid-template-columns:repeat(2,1fr);
gap:10px;
}

.container{
padding:10px;
}

}

/* sticky buy */

.sticky-buy{
position:fixed;
bottom:0;
left:0;
width:100%;
background:#ffffff;
border-top:1px solid #eee;
display:flex;
align-items:center;
justify-content:space-between;
padding:10px 14px;
z-index:999;
box-shadow:0 -2px 10px rgba(0,0,0,0.08);
}

.sticky-info{
display:flex;
align-items:center;
gap:10px;
max-width:70%;
}

.sticky-info img{
width:40px;
height:40px;
object-fit:cover;
border-radius:6px;
}

.sticky-title{
font-size:13px;
line-height:1.3;
max-height:32px;
overflow:hidden;
}

.sticky-price{
color:#e53935;
font-weight:600;
font-size:14px;
}

.sticky-button{
background:#ff5722;
color:#fff;
padding:10px 16px;
border-radius:6px;
font-weight:600;
white-space:nowrap;
}

.sticky-button:hover{
opacity:.9;
}