:root {
  --c-bg: #ffffff;
  --c-text: #0f0f10;
  --c-muted: #5c5f66;
  --c-border: #e7e7ea;
  --c-primary: #8b0000;
  --c-primary-2: #a40000;
  --c-black: #000;
  --radius: 14px;
  --shadow: 0 18px 40px rgba(0,0,0,.08);
  --container: 1100px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.l-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.l-main { padding: 0; }

/* Header */
.l-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-border);
}

.l-header__inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
}

.l-header__nav { display: none; }

.c-brand { display: inline-flex; align-items: center; gap: 10px; }
.c-brand__mark {
  width: 14px;
  height: 14px;
  background: var(--c-primary);
  border-radius: 6px;
  box-shadow: 0 10px 20px rgba(139,0,0,.25);
}
.c-brand__text { font-weight: 650; letter-spacing: .2px; }

.c-nav__list { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; }
.c-nav__list a { color: var(--c-muted); font-weight: 550; }
.c-nav__list a:hover { color: var(--c-text); }

.c-burger {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--c-border);
  border-radius: 12px;
  background: #fff;
}
.c-burger__line { width: 18px; height: 2px; background: var(--c-text); display:block; }

.l-mobile-nav {
  border-top: 1px solid var(--c-border);
  padding: 14px 0 18px;
}
.c-nav__list--mobile { flex-direction: column; gap: 12px; }

@media (min-width: 960px) {
  .l-header__inner { grid-template-columns: 1fr auto auto; }
  .l-header__nav { display: block; }
  .c-burger, .l-mobile-nav { display: none !important; }
}

/* Buttons */
.c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--c-border);
  font-weight: 650;
  letter-spacing: .2px;
  transition: transform .08s ease, background .2s ease, border-color .2s ease;
}
.c-btn:active { transform: translateY(1px); }

.c-btn--primary {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #fff;
}
.c-btn--primary:hover { background: var(--c-primary-2); border-color: var(--c-primary-2); }

.c-btn--ghost { background: #fff; color: var(--c-text); }
.c-btn--ghost:hover { border-color: #cfd1d6; }

.c-btn--lg { padding: 14px 18px; border-radius: 16px; }

/* Badges */
.c-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.35);
  backdrop-filter: blur(6px);
}
.c-badge--nonhalal { background: rgba(139,0,0,.85); color: #fff; }
.c-badge--label { background: rgba(0,0,0,.65); color: #fff; }

/* Sections */
.s-section { padding: 70px 0; }
.s-section--muted { background: #fafafa; border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border); }
.s-section__head { margin-bottom: 26px; }
.s-section__title { margin: 0 0 8px; font-size: 28px; letter-spacing: -.3px; }
.s-section__desc { margin: 0; color: var(--c-muted); }

/* Hero */
.s-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  background: #111;
  background-size: cover;
  background-position: center;
}
.s-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(0,0,0,.78), rgba(0,0,0,.35));
}
.s-hero__inner { position: relative; padding: 80px 0; }
.s-hero__content { max-width: 560px; }
.s-hero__title { color: #fff; margin: 14px 0 10px; font-size: 44px; line-height: 1.08; letter-spacing: -.8px; }
.s-hero__subtitle { color: rgba(255,255,255,.82); margin: 0 0 22px; }

/* Grids */
.c-grid { display: grid; gap: 16px; }
.c-grid--products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.c-grid--categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.c-grid--testimonials { grid-template-columns: 1fr; }

@media (min-width: 720px) {
  .c-grid--products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .c-grid--categories { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .c-grid--testimonials { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Product Card */
.c-card {
  border: 1px solid var(--c-border);
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
  transition: transform .12s ease, box-shadow .2s ease;
}
.c-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.c-card__media { position: relative; display: block; aspect-ratio: 4 / 3; background: #f3f3f5; }
.c-card__img { width: 100%; height: 100%; object-fit: cover; }
.c-card__img--placeholder { width: 100%; height: 100%; }
.c-card__badges { position: absolute; left: 12px; top: 12px; display:flex; flex-wrap:wrap; gap: 8px; }

.c-card__body { padding: 14px; }
.c-card__title { margin: 0 0 6px; font-size: 16px; letter-spacing: -.2px; }
.c-card__title a:hover { text-decoration: underline; }
.c-card__price { font-weight: 800; color: var(--c-primary); margin-bottom: 12px; }
.c-card__actions { display: flex; }

/* Category tile */
.c-tile {
  border: 1px solid var(--c-border);
  background: #fff;
  border-radius: var(--radius);
  padding: 18px;
  transition: border-color .2s ease, transform .12s ease;
}
.c-tile:hover { border-color: #cfd1d6; transform: translateY(-1px); }
.c-tile__title { font-weight: 800; letter-spacing: -.2px; margin-bottom: 4px; }
.c-tile__meta { color: var(--c-muted); font-size: 14px; }

/* Prose */
.c-prose { max-width: 760px; }
.c-prose__content { color: var(--c-text); }
.c-muted { color: var(--c-muted); }

/* Archive */
.s-archive__head { display:flex; align-items:flex-end; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.s-archive__title { margin: 0 0 6px; font-size: 34px; letter-spacing: -.6px; }
.s-archive__desc { margin: 0; color: var(--c-muted); }

.c-filter { display:flex; flex-wrap:wrap; gap: 10px; padding: 14px 0 22px; }
.c-filter__item {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--c-border);
  background: #fff;
  color: var(--c-muted);
  font-weight: 650;
}
.c-filter__item:hover { color: var(--c-text); border-color: #cfd1d6; }
.c-filter__item.is-active { background: var(--c-text); color:#fff; border-color: var(--c-text); }

.c-sort { display:flex; align-items:center; gap: 10px; }
.c-sort__label { color: var(--c-muted); font-size: 14px; }
.c-sort__select { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--c-border); background:#fff; }

/* Breadcrumb */
.c-breadcrumb { display:flex; flex-wrap:wrap; gap: 8px; color: var(--c-muted); font-size: 14px; margin-bottom: 18px; }
.c-breadcrumb a:hover { color: var(--c-text); }

/* Product detail */
.p-product { display:grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 960px) { .p-product { grid-template-columns: 1fr 1fr; gap: 34px; } }

.p-product__media { position: relative; border-radius: var(--radius); overflow:hidden; border: 1px solid var(--c-border); background:#f3f3f5; }
.p-product__img { width:100%; height:auto; object-fit:cover; }
.p-product__badges { position:absolute; left: 14px; top: 14px; }

.p-product__title { margin: 0 0 10px; font-size: 36px; letter-spacing: -.8px; }
.p-product__price { font-size: 22px; font-weight: 900; color: var(--c-primary); margin-bottom: 8px; }
.p-product__meta { margin-bottom: 16px; }

/* Quote */
.c-quote { border: 1px solid var(--c-border); border-radius: var(--radius); background:#fff; padding: 18px; }
.c-quote__text { margin: 0 0 10px; color: var(--c-text); }
.c-quote__author { color: var(--c-muted); font-weight: 700; }

/* CTA */
.s-cta { padding: 60px 0; background: #0f0f10; }
.s-cta__inner { display:flex; flex-direction:column; gap: 16px; align-items:flex-start; justify-content: space-between; }
@media (min-width: 860px) { .s-cta__inner { flex-direction: row; align-items: center; } }

.s-cta__title { color:#fff; margin: 0 0 6px; font-size: 30px; letter-spacing: -.6px; }
.s-cta__desc { color: rgba(255,255,255,.75); margin: 0; }

/* Pagination */
.c-pagination { margin-top: 22px; }

/* Utility */
.u-sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}