:root {
  --bg: #fffdf8;
  --surface: #ffffff;
  --text: #2a1f1d;
  --muted: #796867;
  --line: #efdeda;
  --brand: #c65d4f;
  --brand-dark: #9d4438;
  --accent: #f2b6a9;
  --ok: #1f8a5b;
  --danger: #ac2e2e;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top right, #ffece7 0%, var(--bg) 45%);
}

h1,
h2,
h3,
h4 {
  font-family: "Playfair Display", serif;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.top-notice {
  background: var(--brand-dark);
  color: #fff;
  padding: 10px 16px;
  text-align: center;
  font-size: 0.93rem;
}

.main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  gap: 16px;
}

.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
}

.nav-links {
  display: flex;
  gap: 18px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
}

.nav-actions {
  display: flex;
  gap: 8px;
}

.hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
  margin-top: 22px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  margin: 10px 0;
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 12px 30px rgba(160, 72, 58, 0.1);
}

.hero-card ul {
  margin: 0;
  padding-left: 18px;
}

.kicker {
  color: var(--brand-dark);
  font-weight: 700;
  letter-spacing: 0.03em;
}

.catalog {
  margin-top: 42px;
}

.section-title {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}

.filters {
  display: flex;
  gap: 10px;
}

select,
input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  padding: 10px 12px;
  border-radius: 10px;
  font: inherit;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.product-card {
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-img {
  height: 170px;
  width: 100%;
  object-fit: cover;
  background: #f9f4f3;
}

.product-body {
  padding: 14px;
  display: grid;
  gap: 8px;
}

.price {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--brand-dark);
}

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

.process {
  margin-top: 44px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.steps article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}

.steps span {
  display: inline-grid;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  place-items: center;
  background: var(--accent);
  color: var(--brand-dark);
  font-weight: 800;
}

.about {
  margin-top: 40px;
  margin-bottom: 120px;
}

button {
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  font: inherit;
  cursor: pointer;
  transition: 0.2s ease;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.primary-btn {
  background: var(--brand);
  color: #fff;
}

.primary-btn:hover {
  background: var(--brand-dark);
}

.ghost-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
}

.inline-btn {
  display: inline-block;
  text-decoration: none;
}

.full {
  width: 100%;
}

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

.hidden {
  display: none !important;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 96vw);
  height: 100vh;
  background: #fff;
  border-left: 1px solid var(--line);
  box-shadow: -12px 0 25px rgba(0, 0, 0, 0.08);
  z-index: 100;
}

.drawer-header,
.drawer-footer {
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.drawer-footer {
  border-top: 1px solid var(--line);
  border-bottom: 0;
  position: absolute;
  bottom: 0;
  width: 100%;
}

.drawer-body {
  padding: 14px;
  height: calc(100vh - 130px);
  overflow: auto;
}

.cart-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 10px;
  display: grid;
  gap: 6px;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(20, 12, 10, 0.4);
  backdrop-filter: blur(3px);
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 14px;
}

.modal-box {
  width: min(780px, 100%);
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  position: relative;
  max-height: 90vh;
  overflow: auto;
}

.modal-box.large {
  width: min(920px, 100%);
}

.modal-box.xlarge {
  width: min(1060px, 100%);
}

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
}

.top-right {
  position: absolute;
  right: 12px;
  top: 12px;
}

.two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.two-cols form {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  display: grid;
  gap: 8px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 14px;
}

.summary-box {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  align-self: start;
}

.summary-box hr {
  border: none;
  border-top: 1px solid var(--line);
}

.input-with-btn {
  display: flex;
  gap: 8px;
}

.footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: #fff;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 10px;
  z-index: 20;
  flex-wrap: wrap;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  margin: 10px 0 14px;
}

.tab {
  background: #fff;
  border: 1px solid var(--line);
}

.tab.active {
  background: var(--accent);
}

.inline-form {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.inline-form textarea {
  grid-column: 1 / -1;
  min-height: 80px;
}

.admin-list-item,
.order-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 8px;
}

.status {
  display: inline-block;
  font-size: 0.76rem;
  padding: 3px 8px;
  border-radius: 999px;
  background: #fde6da;
}

.muted {
  color: var(--muted);
}

.ok {
  color: var(--ok);
}

.danger {
  color: var(--danger);
}

@media (max-width: 920px) {
  .hero,
  .checkout-grid,
  .two-cols {
    grid-template-columns: 1fr;
  }

  .section-title {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links {
    display: none;
  }

  .inline-form {
    grid-template-columns: 1fr;
  }
}
