:root {
  --ink: #171419;
  --muted: #746d74;
  --paper: #f7f3ee;
  --paper-2: #eee7df;
  --gold: #b98b46;
  --gold-soft: #e9d4aa;
  --rose: #d9b7b2;
  --white: #fff;
  --danger: #a83f48;
  --success: #2f7551;
  --shadow: 0 22px 60px rgba(32, 24, 24, .11);
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", sans-serif;
  min-height: 100vh;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }

.shell { min-height: 100vh; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 68px);
  background: rgba(247, 243, 238, .84);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(23, 20, 25, .08);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  color: var(--gold-soft); background: var(--ink);
  border-radius: 50%; font-family: "Playfair Display", serif;
  font-size: 22px;
}
.brand-copy strong { display: block; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; }
.brand-copy span { display: block; color: var(--muted); font-size: 11px; }
.nav { display: flex; justify-content: center; gap: 28px; }
.nav button, .icon-btn {
  border: 0; background: transparent; color: var(--ink);
}
.nav button { padding: 10px 0; border-bottom: 1px solid transparent; }
.nav button.active { border-color: var(--ink); }
.actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  position: relative; display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
}
.icon-btn:hover { background: var(--paper-2); }
.count {
  position: absolute; top: -2px; right: -2px;
  min-width: 18px; height: 18px; padding: 0 5px;
  display: grid; place-items: center;
  color: white; background: var(--danger); border-radius: 20px;
  font-size: 10px; font-weight: 700;
}

main { overflow: hidden; }
.page { min-height: calc(100vh - 76px); }
.container { width: min(1240px, calc(100% - 36px)); margin: 0 auto; }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  min-height: 710px;
  overflow: hidden;
  background:
    radial-gradient(circle at 75% 18%, rgba(255,255,255,.9), transparent 20%),
    linear-gradient(135deg, #f5ede4 0%, #e7d1bd 46%, #b28b72 100%);
}
.hero-copy { padding: clamp(72px, 9vw, 132px) clamp(22px, 6vw, 96px); z-index: 2; }
.eyebrow { display: flex; align-items: center; gap: 12px; color: #765d50; text-transform: uppercase; letter-spacing: .2em; font-size: 12px; font-weight: 700; }
.eyebrow::before { content: ""; width: 42px; height: 1px; background: currentColor; }
h1, h2, h3 { font-family: "Playfair Display", serif; font-weight: 600; }
h1 { margin: 24px 0; max-width: 720px; font-size: clamp(54px, 7vw, 104px); line-height: .94; letter-spacing: -.045em; }
h1 em { font-weight: 500; }
.hero-copy p { max-width: 570px; color: #5d4c46; font-size: 18px; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 22px;
  border: 1px solid var(--ink); border-radius: 100px;
  background: var(--ink); color: white; font-weight: 700;
}
.btn:hover { transform: translateY(-1px); }
.btn.secondary { background: transparent; color: var(--ink); }
.btn.light { background: white; color: var(--ink); border-color: white; }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 13px; }
.btn.danger { background: var(--danger); border-color: var(--danger); }
.hero-art { position: relative; min-height: 580px; }
.orbit { position: absolute; border: 1px solid rgba(255,255,255,.58); border-radius: 50%; }
.orbit.one { width: 530px; height: 530px; top: 76px; left: 3%; }
.orbit.two { width: 390px; height: 390px; top: 145px; left: 14%; }
.jewel {
  position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%);
  width: min(70%, 420px); aspect-ratio: 1;
  border: 38px solid #cf9e47; border-radius: 50%;
  box-shadow: inset 0 0 0 8px #f6dda2, 0 42px 70px rgba(75, 47, 31, .25);
}
.jewel::before { content: ""; position: absolute; width: 28px; height: 28px; background: #ffe8a6; border: 12px solid #ba812a; border-radius: 50%; bottom: -92px; left: 50%; transform: translateX(-50%); }
.floating-card {
  position: absolute; right: 7%; bottom: 12%; width: 230px;
  padding: 20px; border-radius: 22px;
  background: rgba(255,255,255,.82); backdrop-filter: blur(16px); box-shadow: var(--shadow);
}
.floating-card span { color: var(--muted); font-size: 12px; }
.floating-card strong { display: block; margin-top: 6px; font-size: 18px; }

.trust-strip { display: grid; grid-template-columns: repeat(4,1fr); background: var(--ink); color: white; }
.trust-item { padding: 24px; text-align: center; border-right: 1px solid rgba(255,255,255,.12); }
.trust-item strong { display: block; font-size: 13px; }
.trust-item span { color: rgba(255,255,255,.58); font-size: 11px; }
.section { padding: 88px 0; }
.section.soft { background: #eee7df; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.section-head h2 { margin: 0; font-size: clamp(36px, 5vw, 62px); letter-spacing: -.03em; }
.section-head p { max-width: 480px; color: var(--muted); line-height: 1.65; }

.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.category-card {
  position: relative; min-height: 280px; padding: 30px;
  border-radius: var(--radius); overflow: hidden; border: 0; text-align: left;
  color: var(--ink); box-shadow: var(--shadow);
}
.category-card:nth-child(1) { background: linear-gradient(145deg, #e7c6b7, #f5e5dc); }
.category-card:nth-child(2) { background: linear-gradient(145deg, #c8b69c, #eee3d0); }
.category-card:nth-child(3) { background: linear-gradient(145deg, #c4b9be, #eee7eb); }
.category-card h3 { position: relative; z-index: 2; margin: 0; font-size: 34px; }
.category-card p { position: relative; z-index: 2; max-width: 220px; color: #625658; }
.category-circle { position: absolute; width: 180px; height: 180px; right: -26px; bottom: -38px; border: 28px solid rgba(255,255,255,.55); border-radius: 50%; }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-card { position: relative; }
.product-image {
  position: relative; aspect-ratio: .82; overflow: hidden; border-radius: 24px;
  background: #e9e0d8;
}
.product-image img { height: 100%; object-fit: cover; transition: transform .45s ease; }
.product-card:hover .product-image img { transform: scale(1.035); }
.badge { position: absolute; left: 14px; top: 14px; z-index: 2; padding: 7px 11px; background: rgba(255,255,255,.88); border-radius: 20px; font-size: 11px; font-weight: 700; }
.favorite {
  position: absolute; right: 14px; top: 14px; z-index: 2;
  display: grid; place-items: center; width: 38px; height: 38px;
  border: 0; border-radius: 50%; background: rgba(255,255,255,.88); font-size: 19px;
}
.favorite.active { color: var(--danger); }
.quick-add {
  position: absolute; left: 14px; right: 14px; bottom: 14px;
  min-height: 45px; border: 0; border-radius: 100px;
  color: white; background: rgba(23,20,25,.9); font-weight: 700;
  transform: translateY(70px); transition: transform .25s ease;
}
.product-card:hover .quick-add { transform: translateY(0); }
.product-info { padding: 16px 4px 6px; }
.product-info .category { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .15em; }
.product-info h3 { margin: 7px 0; font-family: "DM Sans", sans-serif; font-size: 16px; }
.price { display: flex; gap: 10px; align-items: center; font-weight: 700; }
.price del { color: var(--muted); font-size: 13px; font-weight: 400; }

.catalog-hero { padding: 70px 0 38px; }
.catalog-hero h1 { margin: 0 0 14px; font-size: clamp(46px, 7vw, 82px); }
.catalog-hero p { color: var(--muted); font-size: 17px; }
.filters { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; padding: 20px; background: white; border-radius: 22px; box-shadow: 0 14px 40px rgba(32,24,24,.06); }
.input, .select, .textarea {
  width: 100%; border: 1px solid #d9d1cb; border-radius: 14px; background: white; color: var(--ink); outline: 0;
}
.input, .select { min-height: 48px; padding: 0 15px; }
.textarea { min-height: 120px; padding: 15px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(185,139,70,.13); }
.empty { padding: 70px 20px; text-align: center; color: var(--muted); background: white; border-radius: 24px; }

.drawer-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(16,12,16,.44); backdrop-filter: blur(4px); }
.drawer { position: fixed; z-index: 81; top: 0; right: 0; width: min(480px, 100%); height: 100%; padding: 24px; background: var(--paper); box-shadow: -20px 0 60px rgba(0,0,0,.18); overflow-y: auto; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.drawer-head h2 { margin: 0; font-size: 36px; }
.cart-item { display: grid; grid-template-columns: 92px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid #ddd4cc; }
.cart-item img { width: 92px; height: 110px; object-fit: cover; border-radius: 14px; }
.cart-item h4 { margin: 5px 0; }
.qty { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.qty button { width: 28px; height: 28px; border: 1px solid #cfc5bc; border-radius: 50%; background: white; }
.cart-summary { margin-top: 26px; padding: 20px; background: white; border-radius: 20px; }
.summary-row { display: flex; justify-content: space-between; margin: 9px 0; }
.summary-row.total { padding-top: 12px; border-top: 1px solid #ded6cf; font-size: 20px; font-weight: 700; }

.admin-page { min-height: 100vh; background: #f2f0ed; }
.admin-login { min-height: calc(100vh - 76px); display: grid; place-items: center; padding: 30px; }
.login-card { width: min(460px, 100%); padding: 34px; background: white; border-radius: 28px; box-shadow: var(--shadow); }
.login-card h1 { margin: 0 0 10px; font-size: 48px; }
.form-stack { display: grid; gap: 14px; margin-top: 26px; }
.field label { display: block; margin: 0 0 7px; font-size: 12px; font-weight: 700; }
.form-message { min-height: 20px; color: var(--danger); font-size: 13px; }
.dashboard { display: grid; grid-template-columns: 250px 1fr; min-height: calc(100vh - 76px); }
.sidebar { padding: 28px 18px; background: var(--ink); color: white; }
.sidebar-title { margin: 0 12px 28px; color: var(--gold-soft); font-family: "Playfair Display", serif; font-size: 26px; }
.side-nav { display: grid; gap: 7px; }
.side-nav button { padding: 13px 14px; border: 0; border-radius: 12px; text-align: left; color: rgba(255,255,255,.7); background: transparent; }
.side-nav button.active, .side-nav button:hover { color: white; background: rgba(255,255,255,.1); }
.admin-content { padding: 34px; overflow: auto; }
.admin-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 28px; }
.admin-header h1 { margin: 0; font-size: 48px; }
.stat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.stat { padding: 22px; background: white; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,.04); }
.stat span { color: var(--muted); font-size: 12px; }
.stat strong { display: block; margin-top: 10px; font-size: 28px; }
.admin-panels { display: grid; grid-template-columns: 1.3fr .7fr; gap: 18px; margin-top: 18px; }
.panel { padding: 22px; background: white; border-radius: 22px; }
.panel h3 { margin: 0 0 18px; font-family: "DM Sans", sans-serif; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 13px 10px; border-bottom: 1px solid #eee8e3; text-align: left; font-size: 13px; }
th { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.status { display: inline-flex; padding: 6px 9px; border-radius: 20px; background: #e7f2eb; color: var(--success); font-size: 11px; font-weight: 700; }
.status.low { background: #f8e3e4; color: var(--danger); }
.product-form { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.product-form .wide { grid-column: 1 / -1; }

.toast { position: fixed; z-index: 120; left: 50%; bottom: 26px; transform: translate(-50%, 120px); padding: 13px 20px; border-radius: 100px; background: var(--ink); color: white; box-shadow: var(--shadow); transition: transform .25s ease; }
.toast.show { transform: translate(-50%, 0); }
.demo-chip { position: fixed; z-index: 40; left: 16px; bottom: 16px; padding: 9px 12px; border-radius: 18px; color: #6a4b1f; background: #f5dfae; font-size: 11px; font-weight: 700; box-shadow: var(--shadow); }

@media (max-width: 980px) {
  .nav { display: none; }
  .topbar { grid-template-columns: 1fr auto; }
  .hero { grid-template-columns: 1fr; }
  .hero-art { min-height: 500px; }
  .trust-strip { grid-template-columns: repeat(2,1fr); }
  .category-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2,1fr); }
  .dashboard { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .stat-grid { grid-template-columns: repeat(2,1fr); }
  .admin-panels { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .brand-copy span { display: none; }
  .topbar { padding: 12px 14px; }
  .hero { min-height: auto; }
  .hero-copy { padding-top: 72px; }
  .hero-copy p { font-size: 16px; }
  .hero-art { min-height: 420px; }
  .orbit.one { width: 390px; height: 390px; left: -5%; }
  .orbit.two { width: 290px; height: 290px; left: 8%; }
  .jewel { width: 62%; border-width: 26px; }
  .floating-card { right: 16px; bottom: 20px; }
  .trust-strip { grid-template-columns: 1fr 1fr; }
  .trust-item { padding: 17px 8px; }
  .section { padding: 58px 0; }
  .section-head { align-items: start; flex-direction: column; }
  .product-grid { gap: 12px; }
  .product-image { border-radius: 18px; }
  .quick-add { position: static; transform: none; margin: 10px; width: calc(100% - 20px); }
  .filters { grid-template-columns: 1fr; }
  .admin-content { padding: 20px 14px; }
  .admin-header h1 { font-size: 38px; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 16px; }
  .product-form { grid-template-columns: 1fr; }
  .product-form .wide { grid-column: auto; }
}
