:root {
  --bg: #f6ecdf;
  --paper: rgba(255, 248, 239, 0.86);
  --paper-strong: rgba(255, 252, 247, 0.96);
  --ink: #2d2018;
  --muted: #6f5a4d;
  --line: rgba(89, 62, 42, 0.14);
  --accent: #b86d3c;
  --accent-strong: #8e4b24;
  --gold: #ddb36c;
  --sage: #7f8260;
  --rose: #b6817a;
  --shadow: 0 28px 70px rgba(73, 47, 27, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(221, 179, 108, 0.26), transparent 32%),
    radial-gradient(circle at 90% 10%, rgba(182, 129, 122, 0.18), transparent 28%),
    linear-gradient(160deg, #fbf1e6 0%, #fffaf5 45%, #f8efe5 100%);
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
}

.ambient {
  position: fixed;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(28px);
  opacity: 0.55;
  z-index: 0;
}

.ambient-one {
  top: 60px;
  left: -80px;
  width: 260px;
  height: 260px;
  background: rgba(221, 179, 108, 0.42);
}

.ambient-two {
  right: -70px;
  top: 200px;
  width: 320px;
  height: 320px;
  background: rgba(184, 109, 60, 0.24);
}

.ambient-three {
  left: 24%;
  bottom: -110px;
  width: 420px;
  height: 420px;
  background: rgba(127, 130, 96, 0.14);
}

.site-header,
.page-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  padding: 22px 0 18px;
}

.page-shell {
  padding-bottom: 54px;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(184, 109, 60, 0.16), rgba(221, 179, 108, 0.5));
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.6rem;
  font-weight: 700;
}

.brand-copy {
  display: grid;
  gap: 3px;
}

.brand-copy strong {
  font-size: 1rem;
  letter-spacing: 0.14em;
}

.brand-kicker,
.eyebrow,
.spotlight-label,
.product-collection,
.value-number {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  font-weight: 700;
}

.brand-kicker,
.eyebrow,
.product-collection {
  color: var(--muted);
}

.nav-links {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-links a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.34);
  transition:
    background-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.nav-links a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  transform: translateY(-1px);
}

.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  margin-left: 6px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(184, 109, 60, 0.16);
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 700;
}

.card {
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.66);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero-shell {
  display: grid;
  gap: 18px;
}

.hero-card {
  display: grid;
  grid-template-columns: 1.22fr 0.98fr;
  gap: 28px;
  border-radius: 34px;
  padding: 34px;
  overflow: hidden;
  position: relative;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -80px -100px auto;
  width: 280px;
  height: 280px;
  border-radius: 46px;
  transform: rotate(18deg);
  background: linear-gradient(145deg, rgba(221, 179, 108, 0.24), rgba(184, 109, 60, 0.12));
}

.hero-copy,
.hero-feature {
  position: relative;
  z-index: 1;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  line-height: 0.95;
}

h1 {
  font-size: clamp(3.5rem, 7vw, 5.7rem);
  margin-top: 10px;
}

h2 {
  font-size: clamp(2.3rem, 4vw, 3.3rem);
}

h3 {
  font-size: 2rem;
}

h4 {
  font-size: 1.45rem;
}

.hero-text,
.section-copy,
.story-text,
.support-copy,
.product-description,
.admin-product-description,
.cart-product-meta {
  color: var(--muted);
  line-height: 1.75;
}

.hero-text {
  max-width: 56ch;
  margin: 18px 0 0;
}

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

.hero-actions {
  margin-top: 24px;
}

.primary-btn,
.ghost-btn {
  border-radius: 999px;
  padding: 13px 20px;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    opacity 180ms ease;
}

.primary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-1px);
}

.primary-btn {
  color: #fffaf3;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  box-shadow: 0 14px 28px rgba(184, 109, 60, 0.28);
}

.primary-btn:disabled,
.ghost-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.ghost-btn {
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  border: 1px solid var(--line);
}

.hero-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.hero-note,
.mini-stat,
.stat-card,
.owner-entry {
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
}

.hero-note {
  padding: 16px;
}

.hero-note span,
.stat-card span,
.mini-stat span,
.cart-summary span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 6px;
}

.hero-feature {
  display: grid;
  gap: 18px;
  align-content: center;
}

.hero-glow {
  min-height: 310px;
  position: relative;
  border-radius: 34px;
  background:
    radial-gradient(circle at 50% 24%, rgba(255, 233, 171, 0.78), transparent 16%),
    radial-gradient(circle at 50% 35%, rgba(255, 208, 143, 0.44), transparent 24%),
    linear-gradient(180deg, rgba(255, 250, 242, 0.96), rgba(242, 220, 197, 0.86));
  border: 1px solid rgba(255, 255, 255, 0.82);
  overflow: hidden;
}

.hero-glow::after {
  content: "";
  position: absolute;
  inset: auto 18% 20px 18%;
  height: 24px;
  border-radius: 999px;
  background: rgba(70, 42, 25, 0.12);
  filter: blur(12px);
}

.flame {
  position: absolute;
  left: 50%;
  top: 52px;
  width: 36px;
  height: 56px;
  margin-left: -18px;
  border-radius: 50% 50% 48% 48%;
  background: radial-gradient(circle at 50% 28%, #fff4bd 0%, #ffd27a 48%, #eb8a34 100%);
  box-shadow: 0 0 36px rgba(255, 181, 92, 0.64);
  animation: flicker 3.2s ease-in-out infinite;
}

.flame::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 10px;
  width: 12px;
  height: 18px;
  margin-left: -6px;
  border-radius: 50%;
  background: rgba(255, 247, 207, 0.9);
}

.wax-vessel {
  position: absolute;
  left: 50%;
  bottom: 36px;
  width: 208px;
  height: 178px;
  margin-left: -104px;
  border-radius: 30px 30px 38px 38px;
  background:
    linear-gradient(180deg, rgba(255, 251, 247, 0.92), rgba(231, 200, 173, 0.82)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0));
  border: 1px solid rgba(255, 255, 255, 0.78);
}

.wax-vessel::before {
  content: "";
  position: absolute;
  inset: 18px 18px auto 18px;
  height: 32px;
  border-radius: 999px;
  background: rgba(255, 245, 228, 0.96);
}

.wax-vessel::after {
  content: "";
  position: absolute;
  inset: 56px 26px 22px 26px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(147, 93, 56, 0.12));
}

.spotlight-card {
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255, 251, 246, 0.95), rgba(244, 228, 211, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.76);
  padding: 22px;
}

.spotlight-label {
  color: var(--accent-strong);
}

.spotlight-text {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.spotlight-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  font-size: 0.95rem;
}

.spotlight-meta span {
  color: var(--muted);
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.stat-card {
  padding: 18px 20px;
  border-radius: 24px;
}

.stat-card strong,
.mini-stat strong,
.cart-summary strong {
  font-size: 1.7rem;
}

.section-heading,
.checkout-heading,
.dashboard-topline,
.inventory-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.section-heading {
  margin: 30px 0 18px;
}

.section-count,
.payment-pill {
  margin: 0;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
  color: var(--muted);
}

.payment-pill {
  color: var(--accent-strong);
  font-weight: 700;
}

.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.filter-btn {
  padding: 11px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--muted);
  border: 1px solid var(--line);
  cursor: pointer;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

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

.filter-btn.active {
  background: linear-gradient(135deg, rgba(184, 109, 60, 0.16), rgba(221, 179, 108, 0.34));
  color: var(--accent-strong);
  box-shadow: 0 12px 24px rgba(184, 109, 60, 0.14);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  border-radius: 30px;
  overflow: hidden;
}

.product-visual {
  min-height: 240px;
  position: relative;
  padding: 20px;
  display: flex;
  align-items: end;
  background: linear-gradient(145deg, var(--visual-start, #8d5d4a), var(--visual-end, #e7c79e));
}

.product-visual::after {
  content: "";
  position: absolute;
  inset: auto 24px 24px;
  height: 18px;
  border-radius: 999px;
  background: rgba(54, 33, 21, 0.12);
  filter: blur(10px);
}

.product-visual-copy {
  position: relative;
  z-index: 1;
  color: #fff6ef;
  max-width: 14ch;
}

.visual-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.82;
  margin-bottom: 10px;
}

.visual-scent {
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  line-height: 1;
}

.product-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-body {
  padding: 22px;
}

.product-header,
.cart-item-topline,
.admin-product-topline {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.product-name {
  margin-top: 8px;
}

.product-price,
.admin-product-price,
.cart-line-total {
  font-size: 1.08rem;
  color: var(--accent-strong);
}

.product-description {
  margin: 14px 0 0;
}

.product-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.product-meta span,
.product-stock,
.product-featured {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.68);
}

.product-notes {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 22px;
}

.product-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.product-stock.in-stock {
  color: #44604a;
  background: rgba(127, 130, 96, 0.14);
}

.product-stock.low-stock {
  color: #8f5e22;
  background: rgba(221, 179, 108, 0.16);
}

.product-stock.sold-out {
  color: #985249;
  background: rgba(182, 129, 122, 0.16);
}

.product-featured {
  color: var(--accent-strong);
  background: rgba(184, 109, 60, 0.12);
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 18px;
  margin-top: 30px;
}

.story-grid {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: 18px;
  margin-top: 30px;
}

.story-card,
.cart-card,
.checkout-card,
.admin-access,
.inventory-card {
  border-radius: 32px;
  padding: 28px;
}

.value-grid {
  display: grid;
  gap: 18px;
}

.value-card {
  border-radius: 30px;
  padding: 24px;
}

.value-number {
  color: var(--accent-strong);
  margin: 0 0 12px;
}

.value-card p:last-child {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.cart-list,
.admin-product-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.cart-item,
.admin-product-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.64);
}

.cart-item-copy,
.admin-product-copy {
  flex: 1;
}

.cart-item-controls {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr auto;
  gap: 12px;
  align-items: end;
  min-width: 420px;
}

.cart-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
}

.checkout-form,
.stack-form,
.product-form {
  display: grid;
  gap: 14px;
}

.form-row,
.product-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.checkout-actions {
  margin-top: 4px;
}

.checkout-note {
  margin: 0;
}

.small-textarea {
  min-height: 110px;
}

.owner-shell {
  margin-top: 30px;
}

.owner-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
}

.owner-toggle {
  white-space: nowrap;
}

.owner-panel {
  margin-top: 16px;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 18px;
}

.dashboard-topline,
.inventory-heading {
  align-items: start;
}

.dashboard-stats {
  display: flex;
  gap: 12px;
  margin: 20px 0;
}

.mini-stat {
  flex: 1;
  padding: 16px;
}

label span {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(184, 109, 60, 0.66);
  box-shadow: 0 0 0 4px rgba(184, 109, 60, 0.1);
  transform: translateY(-1px);
}

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

.checkbox-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 0 0 2px;
}

.checkbox-field input {
  width: 22px;
  height: 22px;
  margin-left: auto;
  accent-color: var(--accent);
}

.inline-message {
  min-height: 1.4em;
  margin: 2px 0 0;
  color: var(--accent-strong);
  font-size: 0.92rem;
}

.empty-state {
  padding: 30px;
  border-radius: 28px;
  border: 1px dashed rgba(89, 62, 42, 0.26);
  background: rgba(255, 255, 255, 0.52);
  text-align: center;
  color: var(--muted);
}

.reveal {
  animation: riseIn 700ms ease both;
}

@keyframes flicker {
  0%,
  100% {
    transform: translateX(0) scale(1);
  }

  30% {
    transform: translateX(-2px) scale(1.04);
  }

  60% {
    transform: translateX(2px) scale(0.98);
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .hero-card,
  .story-grid,
  .checkout-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .cart-item-controls {
    grid-template-columns: 1fr;
    min-width: 0;
    width: 100%;
  }

  .cart-item,
  .admin-product-item,
  .cart-summary,
  .owner-entry,
  .dashboard-topline,
  .inventory-heading,
  .section-heading,
  .checkout-heading,
  .product-footer {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 780px) {
  .site-header,
  .page-shell {
    width: min(100% - 20px, 1180px);
  }

  .nav-shell,
  .nav-links {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-card,
  .story-card,
  .cart-card,
  .checkout-card,
  .admin-access,
  .inventory-card,
  .value-card {
    padding: 22px;
    border-radius: 28px;
  }

  .hero-notes,
  .stats-band,
  .dashboard-stats,
  .product-grid,
  .form-row,
  .product-form-row {
    grid-template-columns: 1fr;
  }

  .hero-glow {
    min-height: 260px;
  }

  .wax-vessel {
    width: 170px;
    height: 150px;
    margin-left: -85px;
  }
}
