/* style.css - simple clean styling */

:root{
  --bg: #f6f8fa;
  --card: #ffffff;
  --accent: #007bff;
  --muted: #6b7280;
  --danger: #e53935;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background:var(--bg);
  color:#111827;
  line-height:1.4;
}

.container{
  max-width:1100px;
  margin:0 auto;
  padding:16px;
}

.site-header{
  background:var(--accent);
  color:white;
  padding:14px 0;
}
.site-header .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.site-header nav a{
  color:white;
  margin-left:12px;
  text-decoration:none;
}
.section-title{
  margin:12px 0 8px;
}

/* Product list */
.product-list{
  display:flex;
  flex-wrap:wrap;
  gap:16px;
}
.product-card{
  background:var(--card);
  width:260px;
  border-radius:10px;
  padding:12px;
  box-shadow:0 6px 18px rgba(15,23,42,0.06);
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}
.product-image{
  width:100%;
  height:150px;
  object-fit:cover;
  border-radius:8px;
  margin-bottom:8px;
}
.product-desc{
  color:var(--muted);
  font-size:14px;
  min-height:38px;
}
.product-price{
  font-weight:700;
  margin:8px 0;
}
.btn-wrap{
  display:flex;
  gap:8px;
  margin-top:10px;
}
.btn{
  display:inline-block;
  padding:8px 10px;
  text-decoration:none;
  border-radius:8px;
  cursor:pointer;
  font-size:14px;
  text-align:center;
  border:none;
}
.btn-wa{
  background:#25D366;
  color:#ffffff;
  flex:1;
}
.btn-order{
  background:#ff8a00;
  color:#ffffff;
  flex:1;
}
.btn-primary{
  background:var(--accent);
  color:white;
  border-radius:8px;
  padding:10px 14px;
  border:none;
}
.btn-link{
  background:transparent;
  color:var(--muted);
  text-decoration:underline;
  padding:10px 14px;
  border:none;
  margin-left:8px;
}
.btn-danger{
  background:var(--danger);
  color:white;
  border:none;
  border-radius:8px;
  padding:8px 12px;
}
.btn-small{
  padding:6px 8px;
  font-size:13px;
}

/* Order form and preview */
.order-section{
  display:grid;
  grid-template-columns: 1fr;
  gap:16px;
}
.product-preview-card{
  display:flex;
  gap:12px;
  background:var(--card);
  padding:12px;
  border-radius:10px;
  box-shadow:0 6px 18px rgba(15,23,42,0.04);
  align-items:center;
}
.product-preview-card img{
  width:120px;
  height:80px;
  object-fit:cover;
  border-radius:8px;
}
.preview-info h3{margin:0 0 6px 0;}
.order-form{
  background:var(--card);
  padding:12px;
  border-radius:10px;
  box-shadow:0 6px 18px rgba(15,23,42,0.04);
}
.order-form label{display:block;margin-top:8px;font-size:14px;color:var(--muted);}
.order-form input, .order-form textarea{
  width:100%;
  padding:8px;
  margin-top:6px;
  border-radius:6px;
  border:1px solid #e6e9ee;
}

/* Admin table */
.table-wrap{
  overflow:auto;
  background:var(--card);
  padding:12px;
  border-radius:10px;
  box-shadow:0 6px 18px rgba(15,23,42,0.04);
}
.orders-table{
  width:100%;
  border-collapse:collapse;
}
.orders-table th, .orders-table td{
  padding:10px;
  border-bottom:1px solid #eef2f6;
  text-align:left;
}
.orders-table th{
  background:var(--accent);
  color:white;
  position:sticky;
  top:0;
}
.wrap-cell{max-width:240px; word-wrap:break-word;}

/* Responsive */
@media (min-width:900px){
  .order-section{
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width:899px){
  .product-card{width:calc(50% - 12px);}
}
@media (max-width:520px){
  .product-card{width:100%;}
  .site-header .container{flex-direction:column;gap:8px;align-items:flex-start}
}
