:root {
  --bg: #f4ecdf;
  --bg-deep: #eadcca;
  --surface: rgba(255, 251, 246, 0.92);
  --surface-strong: #fffaf3;
  --surface-dark: #24140d;
  --ink: #1f1712;
  --muted: #726155;
  --line: rgba(65, 37, 23, 0.1);
  --accent: #65311c;
  --accent-strong: #2f160d;
  --gold: #cb9a46;
  --gold-soft: rgba(203, 154, 70, 0.16);
  --success: #285544;
  --danger: #9e3030;
  --shadow: 0 24px 70px rgba(51, 28, 18, 0.12);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(203, 154, 70, 0.18), transparent 28%),
    radial-gradient(circle at right 10%, rgba(101, 49, 28, 0.08), transparent 18%),
    linear-gradient(180deg, #fdf9f4 0%, var(--bg) 46%, var(--bg-deep) 100%);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
}

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

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

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

button {
  border: 0;
}

h1,
h2,
h3,
h4,
strong {
  font-family: "Iowan Old Style", "Times New Roman", serif;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

.topbar {
  background: linear-gradient(90deg, #170c08 0%, #35180e 48%, #170c08 100%);
  color: #f4dfbf;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-inner,
.page-shell,
.admin-shell {
  width: min(1360px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar-inner {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.8rem;
  letter-spacing: 0.05rem;
}

.page-shell,
.admin-shell {
  padding: 24px 0 64px;
}

.site-header,
.brand-lockup,
.hero-actions,
.site-nav,
.hero-note,
.cart-summary,
.product-footer,
.section-heading,
.admin-metrics,
.admin-login,
.admin-list-item__meta,
.order-card__header,
.closing-banner {
  display: flex;
}

.site-header,
.hero-grid,
.featured-grid,
.story-section,
.showcase-grid,
.trust-strip,
.shop-layout,
.product-grid,
.admin-grid,
.admin-metrics {
  display: grid;
}

.site-header {
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 4px 0 28px;
}

.brand-lockup {
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 72px;
  height: 72px;
  display: inline-grid;
  place-items: center;
  border-radius: 24px;
  background: linear-gradient(135deg, #2d130a 0%, #733116 58%, #d8ad62 100%);
  color: #fff;
  font-size: 1.45rem;
  letter-spacing: 0.28rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 12px 32px rgba(68, 35, 20, 0.22);
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.16rem;
  font-size: 0.72rem;
}

.site-header h1,
.site-header h2,
.site-header h3,
.site-header h4,
.section-heading h2,
.section-heading h3 {
  margin-bottom: 0;
}

.site-nav {
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border: 1px solid rgba(86, 49, 29, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 32px rgba(51, 28, 18, 0.06);
}

.site-nav a {
  font-size: 0.95rem;
}

.ghost-link,
.secondary-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.primary-link,
.primary-button,
.add-button {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #fff;
}

.primary-link,
.primary-button,
.secondary-button,
.add-button {
  border-radius: 999px;
  padding: 14px 18px;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.primary-link:hover,
.primary-button:hover,
.secondary-button:hover,
.add-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(42, 23, 15, 0.14);
}

.primary-link,
.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.full-width {
  width: 100%;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.82fr);
  gap: 20px;
  align-items: stretch;
}

.hero-card,
.catalog-panel,
.cart-panel,
.story-card,
.showcase-card,
.trust-item,
.admin-sidebar,
.admin-card {
  border-radius: var(--radius-xl);
  padding: 30px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-card {
  min-height: 610px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(115deg, rgba(19, 10, 7, 0.92) 0%, rgba(19, 10, 7, 0.62) 38%, rgba(19, 10, 7, 0.16) 72%),
    url("https://images.unsplash.com/photo-1541643600914-78b084683601?auto=format&fit=crop&w=1600&q=80") center/cover;
  color: #fff7ef;
  overflow: hidden;
}

.hero-card .eyebrow,
.hero-card p {
  color: rgba(255, 247, 239, 0.82);
}

.hero-card h2 {
  margin-bottom: 14px;
  max-width: 10.5ch;
  font-size: clamp(2.8rem, 5vw, 5.3rem);
  line-height: 0.94;
}

.hero-card p:last-of-type {
  max-width: 58ch;
  font-size: 1.02rem;
}

.hero-actions {
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.hero-note {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.hero-note span,
.luxury-pill {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  font-size: 0.84rem;
}

.hero-stat-panel {
  display: grid;
  gap: 16px;
}

.stat-card,
.metric-card,
.admin-list-item,
.order-card,
.cart-item {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 14px 36px rgba(51, 28, 18, 0.06);
}

.stat-card {
  min-height: 190px;
  padding: 24px;
  display: grid;
  align-content: end;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(255, 248, 240, 0.94)),
    var(--surface-strong);
}

.stat-card span {
  color: var(--muted);
  margin-bottom: 10px;
}

.stat-card strong {
  font-size: 1.48rem;
  line-height: 1.1;
}

.luxury-band {
  margin: 22px 0 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.luxury-pill {
  color: #f9efe5;
  background: linear-gradient(135deg, rgba(47, 22, 13, 0.94), rgba(101, 49, 28, 0.92));
}

.brand-ribbon {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 34px;
}

.brand-ribbon span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 10px 30px rgba(51, 28, 18, 0.05);
  font-family: "Iowan Old Style", "Times New Roman", serif;
  font-size: 1.08rem;
  letter-spacing: 0.04rem;
}

.section-heading {
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.section-heading--center {
  justify-content: center;
  text-align: center;
}

.section-heading h3,
.section-heading h2 {
  font-size: clamp(1.9rem, 3vw, 2.8rem);
}

.category-showcase,
.campaign-grid,
.collection-grid,
.featured-section,
.story-section,
.shop-layout,
.closing-banner {
  margin-top: 38px;
}

.campaign-grid,
.collection-grid,
.showcase-grid,
.featured-grid,
.story-section,
.trust-strip,
.service-strip {
  gap: 18px;
}

.campaign-grid {
  grid-template-columns: 1.15fr 0.85fr;
}

.campaign-card,
.collection-card,
.service-item {
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.campaign-card,
.collection-card {
  padding: 30px;
}

.campaign-card h3,
.collection-card h4,
.service-item strong {
  font-size: 1.72rem;
  line-height: 1.08;
}

.campaign-card--hero {
  color: #fff6ed;
  background:
    linear-gradient(135deg, rgba(30, 15, 10, 0.92), rgba(109, 54, 28, 0.78)),
    url("https://images.unsplash.com/photo-1563170351-be82bc888aa4?auto=format&fit=crop&w=1400&q=80") center/cover;
}

.campaign-card--hero .eyebrow,
.campaign-card--hero p {
  color: rgba(255, 246, 237, 0.84);
}

.campaign-card--soft,
.collection-card,
.service-item {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 247, 237, 0.96)),
    var(--surface-strong);
}

.campaign-list {
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 10px;
}

.showcase-grid {
  grid-template-columns: 1.2fr 1fr 1fr;
}

.showcase-card {
  min-height: 240px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 247, 237, 0.96)),
    var(--surface-strong);
}

.showcase-card h4,
.trust-item h4,
.story-card h3 {
  font-size: 1.75rem;
  line-height: 1.08;
  margin-bottom: 12px;
}

.showcase-card--dark {
  color: #fff6ed;
  background:
    linear-gradient(135deg, rgba(28, 14, 9, 0.92), rgba(90, 41, 20, 0.82)),
    url("https://images.unsplash.com/photo-1594035910387-fea47794261f?auto=format&fit=crop&w=1200&q=80") center/cover;
}

.showcase-card--dark .eyebrow,
.showcase-card--dark p {
  color: rgba(255, 246, 237, 0.82);
}

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

.collection-card--dark {
  color: #fff6ed;
  background:
    linear-gradient(135deg, rgba(22, 11, 8, 0.92), rgba(88, 39, 20, 0.82)),
    url("https://images.unsplash.com/photo-1528740561666-dc2479dc08ab?auto=format&fit=crop&w=1200&q=80") center/cover;
}

.collection-card--dark .eyebrow,
.collection-card--dark p {
  color: rgba(255, 246, 237, 0.82);
}

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

.story-section {
  grid-template-columns: 1.05fr 0.95fr;
}

.story-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 248, 240, 0.94)),
    var(--surface-strong);
}

.accent-card {
  color: #fff4ea;
  background:
    linear-gradient(135deg, rgba(40, 18, 11, 0.94), rgba(104, 47, 24, 0.88)),
    url("https://images.unsplash.com/photo-1523293182086-7651a899d37f?auto=format&fit=crop&w=1200&q=80") center/cover;
}

.accent-card .eyebrow,
.accent-card p {
  color: rgba(255, 244, 234, 0.84);
}

.trust-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.trust-item {
  min-height: 190px;
  background: rgba(255, 251, 246, 0.76);
}

.service-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.service-item {
  min-height: 180px;
  padding: 24px;
}

.service-item strong {
  display: block;
  margin-bottom: 12px;
}

.shop-layout {
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.78fr);
  gap: 20px;
  align-items: start;
}

.catalog-panel,
.cart-panel,
.admin-sidebar,
.admin-card {
  background: var(--surface);
  backdrop-filter: blur(14px);
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 12px;
  margin-bottom: 22px;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(88, 51, 31, 0.14);
  border-radius: var(--radius-sm);
  padding: 14px 15px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  outline: none;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(101, 49, 28, 0.34);
  box-shadow: 0 0 0 4px rgba(203, 154, 70, 0.12);
}

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

.product-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 34px rgba(51, 28, 18, 0.07);
}

.product-media {
  position: relative;
  aspect-ratio: 1 / 1.02;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.9), rgba(236, 225, 211, 0.88)),
    #f6ede4;
  overflow: hidden;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(24, 12, 8, 0.86);
  color: #fff4e3;
  font-size: 0.76rem;
  letter-spacing: 0.04rem;
}

.product-body {
  padding: 20px;
}

.product-category,
.cart-item small,
.admin-list-item__meta,
.order-card small,
.status-text {
  color: var(--muted);
}

.product-name {
  margin-bottom: 10px;
  font-size: 1.45rem;
}

.product-description {
  min-height: 48px;
}

.product-pricing {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 18px 0 14px;
}

.product-price {
  font-size: 1.4rem;
}

.product-compare-price {
  color: var(--muted);
}

.product-footer {
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.stock-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--accent-strong);
  font-size: 0.82rem;
}

.cart-list,
.admin-list,
.order-list,
.checkout-form,
.admin-form {
  display: grid;
  gap: 14px;
}

.cart-item {
  padding: 16px;
}

.cart-summary {
  align-items: center;
  justify-content: space-between;
  margin: 20px 0 18px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cart-summary strong {
  font-size: 1.5rem;
}

.checkout-form label,
.admin-form label {
  display: grid;
  gap: 8px;
}

.status-text {
  margin: 0;
  font-size: 0.94rem;
}

.closing-banner {
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(135deg, rgba(31, 16, 10, 0.94), rgba(101, 49, 28, 0.84)),
    url("https://images.unsplash.com/photo-1515377905703-c4788e51af15?auto=format&fit=crop&w=1400&q=80") center/cover;
  color: #fff4ea;
  box-shadow: var(--shadow);
}

.closing-banner .eyebrow,
.closing-banner p {
  color: rgba(255, 244, 234, 0.82);
}

.admin-body {
  background:
    radial-gradient(circle at top left, rgba(203, 154, 70, 0.16), transparent 24%),
    linear-gradient(180deg, #fbf6ef 0%, #efe3d3 100%);
}

.admin-shell {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 20px;
}

.admin-sidebar {
  position: sticky;
  top: 24px;
  align-self: start;
}

.admin-main {
  display: grid;
  gap: 20px;
}

.admin-login,
.admin-metrics {
  gap: 14px;
}

.admin-login {
  flex-direction: column;
  margin-top: 26px;
}

.admin-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-card {
  padding: 20px;
}

.metric-card strong {
  display: block;
  font-size: 2rem;
  margin-top: 10px;
}

.admin-grid {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.86fr);
  gap: 20px;
}

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

.admin-form .full-span {
  grid-column: 1 / -1;
}

.inline-check {
  display: flex;
  align-items: center;
  gap: 10px;
}

.inline-check input {
  width: auto;
}

.admin-list,
.order-list {
  max-height: 720px;
  overflow: auto;
}

.admin-list-item,
.order-card {
  padding: 18px;
}

.admin-list-item__meta,
.order-card__header {
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.order-card__header {
  margin-bottom: 10px;
}

.is-featured {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 250, 243, 0.98));
}

@media (max-width: 1100px) {
  .hero-grid,
  .shop-layout,
  .story-section,
  .admin-shell,
  .admin-grid,
  .showcase-grid,
  .campaign-grid {
    grid-template-columns: 1fr;
  }

  .brand-ribbon,
  .collection-grid,
  .featured-grid,
  .trust-strip,
  .luxury-band,
  .service-strip,
  .admin-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-grid {
    grid-template-columns: 1fr 1fr;
  }

  .admin-sidebar {
    position: static;
  }
}

@media (max-width: 760px) {
  .topbar-inner,
  .site-header,
  .section-heading,
  .closing-banner,
  .product-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-header {
    display: flex;
    padding-top: 12px;
  }

  .hero-card,
  .catalog-panel,
  .cart-panel,
  .story-card,
  .showcase-card,
  .trust-item,
  .admin-sidebar,
  .admin-card,
  .closing-banner {
    padding: 22px;
  }

  .hero-card {
    min-height: 520px;
  }

  .hero-card h2 {
    max-width: 100%;
    font-size: clamp(2.4rem, 12vw, 3.6rem);
  }

  .featured-grid,
  .brand-ribbon,
  .collection-grid,
  .trust-strip,
  .luxury-band,
  .service-strip,
  .product-grid,
  .admin-metrics,
  .admin-form {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    grid-template-columns: 1fr;
  }

  .site-nav {
    width: 100%;
    border-radius: 24px;
  }
}
