/* Base styles */
:root {
  --red: #d7263d;
  --text: #0f0f12;
  --muted: #6b6e75;
  --border: #e5e7eb;
  --bg: #ffffff;
}
* { box-sizing: border-box }
html, body { height: 100% }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}
a { color: inherit }
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px }

/* Header */
header { position: sticky; top: 0; background: #fff; border-bottom: 1px solid var(--border); backdrop-filter: saturate(180%) blur(8px); z-index: 50 }
header .bar { display: grid; align-items: center; grid-template-columns: 1fr auto 1fr; height: 64px }
header nav { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-self: end }
header nav a { display: inline-block; padding: 8px 12px; border-radius: 8px; color: #3f3f46; text-decoration: none; font-size: 14px }
header nav a:hover { background: #f4f4f5; color: #18181b }
.header-actions { display: flex; gap: 6px; justify-self: end }
.btn { display: inline-block; padding: 10px 14px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 14px }
.btn-primary { background: var(--red); color: #fff }
.btn-primary:hover { background: #c41f33 }
.btn-outline { border: 1px solid var(--border); color: #18181b; background: #fff }
.btn-outline:hover { background: #f8f8f8 }

/* Hamburger centered */
.hamburger { justify-self: center; width: 40px; height: 40px; display: none; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; position: relative }
.hamburger span { position: absolute; left: 50%; transform: translateX(-50%); display: block; width: 18px; height: 2px; background: #18181b; border-radius: 2px }
.hamburger span:nth-child(1) { top: 12px }
.hamburger span:nth-child(2) { top: 19px }
.hamburger span:nth-child(3) { top: 26px }
@media (max-width: 960px) {
  header nav { display: none }
  .header-actions { display: none }
  .hamburger { display: inline-flex }
}

/* Mobile menu overlay */
.mobile-menu { position: fixed; inset: 0; background: rgba(0,0,0,.25); z-index: 60; opacity: 0; pointer-events: none; transition: opacity .2s ease }
.mobile-menu.show { opacity: 1; pointer-events: auto }
.mobile-menu .sheet { position: absolute; left: 0; top: 0; bottom: 0; width: 78%; max-width: 380px; background: #fff; border-right: 1px solid var(--border); padding: 16px; display: flex; flex-direction: column; gap: 12px; transform: translateX(-8px); opacity: 0; transition: transform .24s ease, opacity .24s ease }
.mobile-menu.show .sheet { transform: translateX(0); opacity: 1 }
.mobile-menu .sheet-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px }
.mobile-menu .sheet-header img { height: 28px }
.divider { height: 1px; background: var(--border); margin: 8px 0 }
.menu-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px }
.menu-item .icon { width: 18px; height: 18px; display: inline-flex; color: #3f3f46 }
.menu-item:hover { background: #f4f4f5 }
.mobile-menu .group { display: flex; flex-direction: column; gap: 6px; margin-top: 6px }
.mobile-menu .group-title { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em }
.mobile-menu a { padding: 10px 12px; border-radius: 8px; text-decoration: none; color: #18181b }
.mobile-menu a:hover { background: #f4f4f5 }
.mobile-menu .close { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; cursor: pointer }
.hidden { display: none }

/* Hero */
.hero { position: relative; min-height: 420px; background: url('/home/hero.jpg') center/cover no-repeat }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.6), rgba(0,0,0,.35), transparent) }
.hero .content { position: relative; z-index: 2; padding: 72px 0 }
.hero h1 { color: #fff; font-size: 44px; margin: 0 }
.hero p { color: #e5e7eb; max-width: 680px; margin-top: 12px; font-size: 16px }
.hero .actions { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap }
.btn-secondary { border: 1px solid rgba(255,255,255,.8); color: #fff; background: transparent }
.btn-secondary:hover { background: rgba(255,255,255,.15) }

/* Cards */
.cards { padding: 40px 0 }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr) }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(2, 1fr) } }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr } }
.card { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: #fff; transition: transform .2s, box-shadow .2s }
.card:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0,0,0,.06) }
.card img { height: 160px; width: 100%; object-fit: cover }
.card .body { padding: 12px }
.card h3 { margin: 0; font-size: 16px }
.card p { margin: 6px 0 0; color: var(--muted); font-size: 13px }

/* Sections */
.section { padding: 40px 0; border-top: 1px solid var(--border) }
.section h2 { font-size: 24px; margin: 0 0 8px }
.muted { color: var(--muted); font-size: 14px }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center }
.pill { padding: 6px 10px; border-radius: 999px; border: 1px solid var(--border); font-size: 13px; background: #fff; cursor: pointer }
.pill.active { background: #18181b; color: #fff; border-color: #18181b }
.range { display: grid; gap: 6px; margin-left: 12px }
.range label { font-size: 12px; color: var(--muted) }
.range input[type=range] { width: 220px }

/* Details page */
.gallery { display: grid; gap: 12px }
.gallery .hero-img { border: 1px solid var(--border); border-radius: 12px; overflow: hidden }
.gallery .hero-img img { width: 100%; height: 400px; object-fit: cover }
.gallery .thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px }
.gallery .thumbs img { width: 100%; height: 80px; object-fit: cover; border-radius: 8px }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 20px 0; color: var(--muted); font-size: 13px; text-align: center }

/* Utility */
.badge { font-size: 12px; color: #52525b }
.price { color: var(--red); font-weight: 600 }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr } }

/* Forms */
input, textarea, select { padding: 10px; border: 1px solid var(--border); border-radius: 8px; font: inherit }
textarea { min-height: 110px }
.form-actions { margin-top: 8px }
.form-actions .btn { padding: 10px 16px }

/* Tables (admin) */
.table { width: 100%; border-collapse: collapse; font-size: 14px }
.table th, .table td { padding: 10px; border-bottom: 1px solid var(--border); text-align: left }
.table th { color: #3f3f46; font-weight: 600 }
.table tr:hover { background: #fafafa }
.tabs { display: flex; gap: 8px; margin-bottom: 12px }
.tab { padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; background: #fff }
.tab.active { background: #18181b; color: #fff; border-color: #18181b }
