:root {
  --clay: #a34f3c;
  --clay-dark: #7d3928;
  --blush: #f6e7e0;
  --sand: #fbf6f1;
  --ink: #2c1c17;
  --muted: #7c6259;
  --gold: #c08b3e;
  --line: #ecdcd3;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 18px 40px rgba(84, 40, 25, 0.12);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.wrap { width: min(1180px, 92vw); margin: 0 auto; }

/* ---------- Header ---------- */
.topbar {
  background: var(--clay-dark);
  color: var(--blush);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  padding: 8px 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(251, 246, 241, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand span { color: var(--clay); }

.nav { display: flex; gap: 22px; align-items: center; }

.nav a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--muted);
  transition: color 0.2s;
}

.nav a:hover { color: var(--clay); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--clay); color: #fff; box-shadow: 0 10px 22px rgba(163, 79, 60, 0.28); }
.btn-primary:hover { background: var(--clay-dark); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-order { background: #1faa59; color: #fff; width: 100%; box-shadow: 0 10px 20px rgba(31, 170, 89, 0.24); }
.btn-order:hover { background: #17914a; }
.btn-sm { padding: 8px 14px; font-size: 0.85rem; }
.btn-danger { background: #b3261e; color: #fff; }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding: 64px 0 72px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.2vw, 3.9rem);
  line-height: 1.05;
  margin: 0 0 18px;
  font-weight: 600;
}

.hero h1 em { font-style: italic; color: var(--clay); }

.hero p { color: var(--muted); font-size: 1.08rem; max-width: 46ch; margin: 0 0 28px; }

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-media { position: relative; }

.hero-media img {
  border-radius: 24px;
  box-shadow: var(--shadow);
  object-fit: cover;
  width: 100%;
  aspect-ratio: 4 / 5;
}

.hero-badge {
  position: absolute;
  left: -18px;
  bottom: 28px;
  background: var(--white);
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: var(--shadow);
  font-size: 0.9rem;
}

.hero-badge strong { display: block; font-family: var(--font-display); font-size: 1.15rem; }

/* ---------- Strip ---------- */
.strip {
  background: var(--blush);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.strip-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 26px 0;
  text-align: center;
  font-size: 0.95rem;
  color: var(--clay-dark);
}

/* ---------- Sections ---------- */
section { padding: 64px 0; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  margin: 0;
  font-weight: 600;
}

.section-head p { margin: 6px 0 0; color: var(--muted); }

/* ---------- Filters ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }

.chip {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--muted);
  border-radius: 999px;
  padding: 9px 18px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: all 0.18s ease;
}

.chip:hover { border-color: var(--clay); color: var(--clay); }
.chip.active { background: var(--clay); border-color: var(--clay); color: #fff; }

.search-box {
  width: 100%;
  max-width: 340px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.search-box:focus { outline: 2px solid var(--clay); outline-offset: 1px; }

/* ---------- Product grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 26px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.card-media { position: relative; background: var(--blush); aspect-ratio: 4 / 5; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }

.card-media .placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); color: var(--clay); opacity: 0.55; font-size: 1.1rem;
}

.tag {
  position: absolute; top: 12px; left: 12px;
  background: var(--clay); color: #fff;
  font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px;
}

.tag.sold { background: #6b5b55; left: auto; right: 12px; }

.card-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }

.card-cat { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }

.card h3 { margin: 0; font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; }

.card p.desc { margin: 0; color: var(--muted); font-size: 0.88rem; flex: 1; }

.meta { font-size: 0.8rem; color: var(--muted); }

.price-row { display: flex; align-items: baseline; gap: 10px; }
.price { font-size: 1.2rem; font-weight: 600; color: var(--clay-dark); }
.price-old { text-decoration: line-through; color: var(--muted); font-size: 0.9rem; }
.save { font-size: 0.78rem; color: #1faa59; font-weight: 600; }

.empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* ---------- About / footer ---------- */
.about { background: var(--blush); }

.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 26px; }

.about-card { background: var(--white); border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.about-card h3 { font-family: var(--font-display); margin: 0 0 8px; }
.about-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

footer { background: var(--ink); color: #e8d7cf; padding: 46px 0 30px; }
footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 26px; }
footer h4 { font-family: var(--font-display); margin: 0 0 8px; color: #fff; }
footer a { color: #e8d7cf; text-decoration: none; }
footer a:hover { color: #fff; }
.legal { margin-top: 28px; border-top: 1px solid rgba(255,255,255,0.12); padding-top: 16px; font-size: 0.83rem; opacity: 0.75; }

.float-order {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
}

/* ---------- Admin ---------- */
.admin-body { background: var(--sand); }

.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; }

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  width: min(430px, 100%);
}

.panel h1 { font-family: var(--font-display); margin: 0 0 6px; }
.panel p.sub { margin: 0 0 20px; color: var(--muted); font-size: 0.92rem; }

label { display: block; font-size: 0.82rem; letter-spacing: 0.04em; color: var(--muted); margin-bottom: 6px; }

input, textarea, select {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--white);
  color: var(--ink);
  margin-bottom: 14px;
}

textarea { min-height: 84px; resize: vertical; }

input:focus, textarea:focus, select:focus { outline: 2px solid var(--clay); outline-offset: 1px; }

.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 16px; }

.admin-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; gap: 12px;
}

.admin-main { padding: 28px 0 70px; display: grid; grid-template-columns: 400px 1fr; gap: 28px; align-items: start; }

.table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.table th, .table td { text-align: left; padding: 10px 12px; font-size: 0.9rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { background: var(--blush); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--clay-dark); }
.table img { width: 46px; height: 56px; object-fit: cover; border-radius: 8px; }

.row-actions { display: flex; gap: 6px; }

.note { font-size: 0.85rem; color: var(--muted); }

.alert { padding: 11px 14px; border-radius: 12px; font-size: 0.9rem; margin-bottom: 14px; }
.alert-error { background: #fdecea; color: #922; }
.alert-ok { background: #e7f6ed; color: #14663a; }

.inline { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.inline input[type="checkbox"] { width: auto; margin: 0; }
.inline label { margin: 0; }

.hidden { display: none !important; }

.spinner { text-align: center; padding: 40px; color: var(--muted); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; }
  .hero-media { order: -1; }
  .admin-main { grid-template-columns: 1fr; }
  .strip-inner { grid-template-columns: 1fr; gap: 10px; }
  .nav { display: none; }
}

/* ---------- Product detail (PDP) ---------- */
.pdp-overlay { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 20px; }
.pdp-backdrop { position: absolute; inset: 0; background: rgba(44, 28, 23, 0.55); backdrop-filter: blur(4px); animation: pdp-fade 0.25s ease; }
.pdp-panel {
  position: relative;
  background: var(--white);
  border-radius: 22px;
  width: min(1080px, 100%);
  max-height: 92vh;
  overflow: auto;
  box-shadow: 0 30px 70px rgba(44, 28, 23, 0.3);
  animation: pdp-rise 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
}
@keyframes pdp-fade { from { opacity: 0 } to { opacity: 1 } }
@keyframes pdp-rise { from { opacity: 0; transform: translateY(22px) scale(0.985) } to { opacity: 1; transform: none } }

.pdp-close {
  position: absolute; top: 14px; right: 14px; z-index: 5;
  width: 38px; height: 38px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--ink); color: #fff; font-size: 1.3rem; line-height: 1;
  transition: transform 0.2s ease, background 0.2s ease;
}
.pdp-close:hover { transform: rotate(90deg); background: var(--clay); }

.pdp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; padding: 26px; }

.pdp-stage { position: relative; overflow: hidden; border-radius: 16px; background: var(--blush); aspect-ratio: 4 / 5; }
.pdp-track { display: flex; height: 100%; transition: transform 620ms cubic-bezier(0.33, 0.02, 0.16, 1); will-change: transform; }
.pdp-slide { flex: 0 0 100%; height: 100%; }
.pdp-slide img, .pdp-slide video { width: 100%; height: 100%; object-fit: cover; background: #000; }
.pdp-slide .placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: var(--clay); font-family: var(--font-display); }

.pdp-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255, 255, 255, 0.92); color: var(--ink);
  font-size: 1.5rem; line-height: 1; display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(44, 28, 23, 0.2);
  transition: background 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
}
.pdp-arrow:hover { background: var(--ink); color: #fff; }
.pdp-arrow.prev { left: 12px; }
.pdp-arrow.next { right: 12px; }
.pdp-arrow.prev:hover { transform: translateY(-50%) translateX(-3px); }
.pdp-arrow.next:hover { transform: translateY(-50%) translateX(3px); }
.pdp-arrow[hidden] { display: none; }

.pdp-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pdp-thumb {
  width: 62px; height: 76px; border-radius: 10px; overflow: hidden; cursor: pointer;
  border: 2px solid transparent; background: var(--blush); padding: 0;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.pdp-thumb img, .pdp-thumb video { width: 100%; height: 100%; object-fit: cover; }
.pdp-thumb:hover { transform: translateY(-2px); }
.pdp-thumb.active { border-color: var(--clay); }

.pdp-info h2 { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 6px 0 4px; font-weight: 600; }
.pdp-brand { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.pdp-price { display: flex; align-items: baseline; gap: 10px; margin: 14px 0 4px; }
.pdp-price .price { font-size: 1.5rem; }
.pdp-desc { color: var(--muted); margin: 10px 0 20px; }
.pdp-label { font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; }
.pdp-options { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.pdp-opt {
  min-width: 52px; padding: 9px 14px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--line); background: var(--white); color: var(--ink);
  font-family: var(--font-body); font-size: 0.9rem;
  transition: all 0.2s ease;
}
.pdp-opt:hover { border-color: var(--clay); }
.pdp-opt.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.pdp-order { margin-top: 6px; }
.pdp-note { margin-top: 10px; }

.card-media { cursor: pointer; }
.card-media img { transition: transform 0.5s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.media-count {
  position: absolute; bottom: 10px; right: 10px;
  background: rgba(44, 28, 23, 0.72); color: #fff;
  font-size: 0.72rem; padding: 4px 9px; border-radius: 999px;
}
body.pdp-open { overflow: hidden; }

@media (max-width: 860px) {
  .pdp-grid { grid-template-columns: 1fr; padding: 18px; gap: 18px; }
  .pdp-panel { border-radius: 18px; }
}

/* ---------- Admin media manager ---------- */
.media-manager { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.media-item { position: relative; width: 68px; height: 84px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--blush); }
.media-item img, .media-item video { width: 100%; height: 100%; object-fit: cover; }
.media-item button {
  position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%;
  border: none; background: rgba(44,28,23,0.8); color: #fff; cursor: pointer; font-size: 0.75rem; line-height: 1; padding: 0;
}
.media-item .vid-tag { position: absolute; bottom: 3px; left: 3px; background: rgba(44,28,23,0.8); color:#fff; font-size:0.6rem; padding: 2px 5px; border-radius: 6px; }
