/* =====================================
   ROOT VARIABLES
===================================== */
:root{
--primary:#198754;
--secondary:#ff9800;
--dark:#1f2937;
--light:#f9fafb;
--border:#e5e7eb;
--danger:#dc2626;
--radius:8px;
}

/* =====================================
   RESET
===================================== */
*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:"Inter","Segoe UI",Arial,sans-serif;
}

body{
background:var(--light);
color:var(--dark);
line-height:1.6;
overflow-x:hidden;
}

/* =====================================
   CONTAINER
===================================== */
.container{
max-width:1200px;
margin:auto;
padding:0 15px;
}

/* =====================================
   NAVBAR
===================================== */
.navbar{
background:#fff;
border-bottom:1px solid var(--border);
}

.navbar .nav-link{
color:var(--dark);
font-weight:500;
transition:.3s;
}

.navbar .nav-link:hover,
.navbar .nav-link.active{
color:var(--primary);
}

/* =====================================
   BUTTONS
===================================== */
.btn{
background:var(--primary);
color:#fff;
padding:10px 20px;
border-radius:var(--radius);
border:none;
transition:.3s;
}

.btn:hover{
background:#157347;
}

.btn-sm{
padding:6px 10px;
font-size:12px;
}

.btn-danger{
background:var(--danger);
}

/* =====================================
   HERO SLIDER
===================================== */
.slider-img{
height:420px;
object-fit:cover;
}

.carousel-caption{
bottom:25%;
text-align:left;
max-width:500px;
}

.carousel-item::before{
content:"";
position:absolute;
inset:0;
background:rgba(0,0,0,.4);
}

/* =====================================
   PRODUCTS
===================================== */
.product-card{
border:1px solid var(--border);
border-radius:var(--radius);
transition:.3s;
}

.product-card:hover{
transform:translateY(-5px);
box-shadow:0 10px 25px rgba(0,0,0,.08);
}

.product-card img{
height:200px;
object-fit:contain;
padding:10px;
}

.product-title{
font-size:15px;
font-weight:600;
}

.product-price{
color:var(--primary);
font-weight:bold;
}

/* =====================================
   PRODUCT DETAILS
===================================== */
.product-detail-wrapper{
display:grid;
grid-template-columns:1fr 1fr;
gap:40px;
align-items:center;
}

.current-price{
font-size:28px;
color:var(--secondary);
font-weight:bold;
}

/* =====================================
   FORMS
===================================== */
input,textarea,select{
width:100%;
padding:10px;
border:1px solid var(--border);
border-radius:var(--radius);
margin-bottom:12px;
}

/* =====================================
   FOOTER
===================================== */
.footer{
background:#1f2937;
color:#d1d5db;
padding:40px 0;
}

.footer a{
color:#d1d5db;
text-decoration:none;
}

.footer a:hover{
color:#fff;
}

/* =====================================
   ADMIN PANEL
===================================== */
.admin-wrapper{
display:flex;
min-height:100vh;
}

/* SIDEBAR */
.sidebar{
width:230px;
background:var(--primary);
padding:20px;
}

.sidebar h2{
color:#fff;
margin-bottom:20px;
}

.sidebar a{
display:block;
color:#fff;
margin-bottom:12px;
text-decoration:none;
}

.sidebar a:hover{
opacity:.8;
}

/* CONTENT */
.admin-content{
flex:1;
padding:20px;
}
.product-card-admin{
border-radius:10px;
transition:.3s;
}

.product-card-admin:hover{
box-shadow:0 10px 25px rgba(0,0,0,.08);
}

.qr-img{
width:70px;
height:70px;
}

/* mobile */
@media(max-width:768px){

.product-card-admin{
text-align:center;
}

.qr-img{
width:60px;
height:60px;
}

}
/* FIXED SIDEBAR */

.sidebar{
position: fixed;
top: 0;
left: 0;
width: 230px;
height: 100vh;
background: #198754;
padding: 20px;
overflow-y: auto;
}

/* push content right */
.admin-content{
margin-left: 230px;
padding: 20px;
}
@media (max-width: 768px){

.sidebar{
position: relative;
width: 100%;
height: auto;
}

.admin-content{
margin-left: 0;
}

}


/* =====================================
   ADMIN TOOLS
===================================== */
.admin-tools{
display:flex;
justify-content:space-between;
flex-wrap:wrap;
gap:10px;
margin-bottom:20px;
}

.search-form{
display:flex;
gap:10px;
}

.search-form input{
padding:8px;
border-radius:5px;
border:1px solid #ccc;
}

.add-btn{
background:#2563eb;
color:#fff;
padding:8px 14px;
border-radius:5px;
}

/* =====================================
   PAGINATION
===================================== */
.pagination{
text-align:center;
margin-top:20px;
}

.pagination a{
padding:8px 12px;
background:#eee;
margin:4px;
border-radius:5px;
text-decoration:none;
}

/* =====================================
   MOBILE RESPONSIVE
===================================== */
@media(max-width:768px){

.admin-wrapper{
flex-direction:column;
}

.sidebar{
width:100%;
}

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

.slider-img{
height:250px;
}

.carousel-caption h2{
font-size:22px;
}

.product-card img{
height:140px;
}

}

