
/* Nyamil by B'MAR styles */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700;900&display=swap');

:root {
  --brand: #ff7a00;
  --brand2: #ffb703;
  --dark: #2a1d13;
  --cream: #fff7ec;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; color: var(--dark); background: var(--cream); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1140px, 92%); margin: 0 auto; }
.btn {
  display:inline-block; padding: 12px 20px; border-radius: 999px; font-weight: 700;
  background: linear-gradient(135deg, var(--brand), var(--brand2)); color: #fff;
  box-shadow: 0 10px 20px rgba(255,122,0,.25); transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(255,122,0,.35); }
.btn.outline { background: transparent; color: var(--brand); border: 2px solid var(--brand); box-shadow: none; }
.tag { display:inline-block; padding: 4px 10px; border-radius: 999px; background: #fff; border: 1px solid #f1e4d3; margin-right: 6px; font-size: 12px; }

/* Navbar */
.navbar { position: sticky; top:0; z-index: 50; background: rgba(255,255,255,.8); backdrop-filter: blur(6px); border-bottom: 1px solid #f3e9dc; }
.navbar .row { display:flex; align-items:center; justify-content:space-between; padding: 10px 0; }
.brand { display:flex; align-items:center; gap: 10px; font-weight: 900; }
.brand img { width: 42px; height: 42px; border-radius: 10px; }
.navlinks { display:flex; gap: 18px; }
.navlinks a { font-weight: 600; opacity: .9; }
.burger { display:none; cursor:pointer; }

/* Hero */
.hero {
  position: relative; overflow: hidden; background: radial-gradient(1200px 600px at 50% -20%, #ffd9a1, transparent),
              linear-gradient(180deg, #fff7ec, #fff);
}
.hero .container { display:grid; grid-template-columns: 1.1fr 0.9fr; gap: 30px; align-items: center; padding: 60px 0 40px; }
.badge { display:inline-flex; align-items:center; gap: 6px; font-weight:700; background:#fff; border:1px solid #f1e4d3; padding:6px 10px; border-radius:999px; }
.hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.05; margin: 10px 0 10px; }
.hero p { font-size: clamp(16px, 2.4vw, 18px); opacity:.85; }
.hero-visual { position:relative; }
.hero-blob {
  position:absolute; inset:auto -30% -40% -30%; z-index:-1; filter: blur(60px); opacity:.55;
  background: radial-gradient(400px 260px at 40% 30%, var(--brand), transparent),
              radial-gradient(480px 340px at 70% 60%, var(--brand2), transparent);
}
.floating { animation: float 6s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-10px) } }

/* Section */
.section { padding: 60px 0; }
.section h2 { font-size: clamp(26px, 4vw, 40px); margin: 0 0 12px; }
.grid { display:grid; gap: 20px; }
.grid.cards { grid-template-columns: repeat(12, 1fr); }
.card {
  grid-column: span 4; border-radius: 22px; background:#fff; border:1px solid #f1e4d3;
  padding: 20px; box-shadow: 0 10px 30px rgba(0,0,0,.03);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,.06); }
.card .price { font-weight:900; color: var(--brand); }
.card .thumb { border-radius: 14px; overflow:hidden; aspect-ratio: 16/12; background: #fff4e5; display:flex; align-items:center; justify-content:center; }
.card .thumb img { width: 80%; }

/* Product detail */
.detail { display:grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.gallery { display:flex; gap: 10px; flex-wrap: wrap; }
.gallery img { width: 86px; height: 86px; object-fit:cover; border-radius: 10px; border:1px solid #f1e4d3; }

/* Newsletter */
.newsletter { background: linear-gradient(180deg, #fff1da, #fff); border-top:1px solid #f1e4d3; }
.newsletter .box { display:flex; gap: 10px; flex-wrap: wrap; }
.newsletter input { flex: 1 1 240px; padding: 14px 16px; border-radius: 12px; border:1px solid #f1e4d3; font-size: 16px; }

/* Footer */
.footer { padding: 30px 0 60px; background:#fff; border-top:1px solid #f1e4d3; }
.footer .cols { display:grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 20px; }

/* Admin */
.admin-nav { background:#111; color:#fff; padding:10px 0; }
.admin-nav a { color:#fff; margin-right: 14px; }
.table { width:100%; border-collapse: collapse; }
.table th, .table td { border:1px solid #eee; padding: 10px; font-size: 14px; }
.form-grid { display:grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid label { font-weight:600; font-size: 14px; }
.form-grid input, .form-grid textarea, .form-grid select { width:100%; padding: 10px; border-radius: 10px; border:1px solid #e9dccb; font-size: 14px; background:#fff; }
.kbd { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; background:#fff; border:1px solid #e6d8c7; padding: 2px 6px; border-radius: 6px; }

/* Responsive */
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; padding: 40px 0 20px; }
  .detail { grid-template-columns: 1fr; }
  .grid.cards .card { grid-column: span 6; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .navlinks { display:none; position:absolute; right:16px; top:58px; flex-direction: column; background:#fff; border:1px solid #f1e4d3; border-radius: 12px; padding: 10px; }
  .navlinks.open { display:flex; }
  .burger { display:block; }
  .grid.cards .card { grid-column: span 12; }
  .footer .cols { grid-template-columns: 1fr; }
}

/* Halal badge */
.halal-badge { display:inline-block; vertical-align:middle; height: 18px; width:auto; }
.halal-badge.big { height: 28px; }
.halal-line { display:flex; align-items:center; gap:8px; }
