:root {
  color-scheme: light;
  --cream-50: #fffaf1;
  --cream-100: #f8eddc;
  --cream-200: #ead7bf;
  --linen: #fffdf8;
  --wine: #5b1022;
  --wine-700: #761a2d;
  --wine-600: #8d2539;
  --rose: #c98b91;
  --gold: #b8893f;
  --gold-soft: #ead2a4;
  --chocolate: #42271f;
  --taupe: #8d7568;
  --sage: #65735d;
  --ink: #261812;
  --muted: #6e5b52;
  --line: rgba(91, 16, 34, 0.16);
  --line-strong: rgba(91, 16, 34, 0.28);
  --surface: rgba(255, 253, 248, 0.92);
  --surface-solid: #fffdf8;
  --shadow-soft: 0 14px 34px rgba(68, 39, 31, 0.09);
  --shadow-lift: 0 18px 42px rgba(68, 39, 31, 0.13);
  --radius: 8px;
  --focus: 0 0 0 3px rgba(184, 137, 63, 0.34);
  --container: min(1180px, calc(100vw - 32px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.94), rgba(248, 237, 220, 0.96)),
    radial-gradient(circle at 12% 18%, rgba(201, 139, 145, 0.1), transparent 34%),
    radial-gradient(circle at 88% 10%, rgba(184, 137, 63, 0.09), transparent 30%);
  color: var(--ink);
  font-family: "Segoe UI", Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: 0;
}

body.drawer-open {
  overflow: hidden;
}

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

button,
a,
select,
input[type="checkbox"],
input[type="radio"] {
  cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

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

img,
canvas,
svg {
  display: block;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.app-shell {
  min-height: 100vh;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(91, 16, 34, 0.12);
  background: rgba(255, 250, 241, 0.82);
  backdrop-filter: blur(18px) saturate(142%);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(91, 16, 34, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.9), rgba(234, 210, 164, 0.72)),
    var(--surface-solid);
  color: var(--wine);
  box-shadow: 0 10px 24px rgba(68, 39, 31, 0.1);
}

.brand-title {
  display: grid;
  gap: 1px;
}

.brand-title strong {
  color: var(--wine);
  font-family: "Palatino Linotype", Georgia, serif;
  font-size: 1.28rem;
  line-height: 1;
}

.brand-title span {
  color: var(--taupe);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  gap: 6px;
}

.nav-link,
.admin-nav-link {
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--chocolate);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 10px 12px;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.nav-link:hover,
.nav-link.active,
.admin-nav-link:hover,
.admin-nav-link.active {
  background: rgba(91, 16, 34, 0.08);
  border-color: rgba(91, 16, 34, 0.14);
  color: var(--wine);
}

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

.nav-actions .btn-secondary {
  background: rgba(255, 253, 248, 0.44);
  box-shadow: none;
}

.icon-btn,
.plain-icon-btn {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(91, 16, 34, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.72);
  color: var(--wine);
  position: relative;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.icon-btn:hover,
.plain-icon-btn:hover {
  border-color: rgba(91, 16, 34, 0.28);
  background: rgba(255, 253, 248, 0.96);
  transform: translateY(-1px);
}

.plain-icon-btn {
  width: 34px;
  height: 34px;
  background: transparent;
}

.cart-count {
  position: absolute;
  top: -7px;
  right: -7px;
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  border: 2px solid var(--cream-50);
  border-radius: 999px;
  background: var(--wine);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 10px 16px;
  font-weight: 800;
  line-height: 1;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--wine), var(--wine-700));
  color: #fff;
  box-shadow: 0 16px 30px rgba(91, 16, 34, 0.22);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--wine-700), var(--wine-600));
  box-shadow: 0 18px 34px rgba(91, 16, 34, 0.28);
}

.btn-secondary {
  border-color: rgba(91, 16, 34, 0.2);
  background: rgba(255, 253, 248, 0.78);
  color: var(--wine);
}

.btn-secondary:hover {
  border-color: rgba(91, 16, 34, 0.32);
  background: var(--surface-solid);
}

.btn-ghost {
  border-color: transparent;
  background: transparent;
  color: var(--wine);
}

.btn-ghost:hover {
  background: rgba(91, 16, 34, 0.08);
}

.btn-danger {
  border-color: rgba(137, 30, 43, 0.22);
  background: rgba(137, 30, 43, 0.08);
  color: #7a1020;
}

.btn-small {
  min-height: 34px;
  padding: 8px 11px;
  font-size: 0.86rem;
}

.main {
  min-height: 68vh;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: min(720px, calc(100vh - 70px));
  display: grid;
  align-items: center;
  border-bottom: 1px solid rgba(91, 16, 34, 0.1);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(255, 250, 241, 0.96) 0%, rgba(255, 250, 241, 0.84) 50%, rgba(255, 250, 241, 0.68) 100%),
    linear-gradient(180deg, rgba(255, 250, 241, 0.1), rgba(248, 237, 220, 0.85));
  pointer-events: none;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 720px) minmax(260px, 0.8fr);
  align-items: center;
  gap: 32px;
  padding: 52px 0 50px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: 100%;
  border: 1px solid rgba(91, 16, 34, 0.16);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.72);
  color: var(--wine);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 8px 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero h1,
.section-title h2,
.page-title h1,
.admin-title h1 {
  margin: 0;
  color: var(--wine);
  font-family: "Palatino Linotype", Georgia, serif;
  line-height: 0.96;
}

.hero h1 {
  max-width: 720px;
  margin-top: 20px;
  font-size: clamp(2.9rem, 5.4vw, 5.6rem);
}

.hero-copy {
  max-width: 610px;
  margin: 22px 0 0;
  color: var(--chocolate);
  font-size: clamp(1.05rem, 2vw, 1.24rem);
  line-height: 1.75;
}

.hero-actions,
.section-actions,
.form-actions,
.card-actions,
.toolbar,
.inline-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

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

.hero-panel {
  align-self: stretch;
  display: grid;
  align-content: end;
  gap: 14px;
  min-height: 260px;
  padding: 24px;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 500px;
}

.proof-item {
  border: 1px solid rgba(91, 16, 34, 0.13);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.64);
  padding: 12px;
  box-shadow: 0 10px 20px rgba(68, 39, 31, 0.06);
  backdrop-filter: blur(14px);
}

.proof-item strong {
  display: block;
  color: var(--wine);
  font-size: 1.32rem;
}

.proof-item span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.section {
  padding: 76px 0;
}

.section-alt {
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.66), rgba(255, 250, 241, 0.86)),
    linear-gradient(90deg, rgba(184, 137, 63, 0.1), rgba(201, 139, 145, 0.08));
  border-block: 1px solid rgba(91, 16, 34, 0.09);
}

.section-title,
.page-title,
.admin-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.section-title h2,
.page-title h1,
.admin-title h1 {
  font-size: clamp(2.25rem, 4.8vw, 4.3rem);
}

.admin-title h1 {
  font-size: clamp(2rem, 3.4vw, 3.4rem);
}

.section-title p,
.page-title p,
.admin-title p {
  max-width: 620px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.category-grid,
.product-grid,
.trust-grid,
.stats-grid,
.settings-grid {
  display: grid;
  gap: 16px;
}

.category-grid {
  grid-template-columns: repeat(7, minmax(130px, 1fr));
}

.category-card,
.product-card,
.trust-card,
.stat-card,
.admin-panel,
.cart-line,
.checkout-summary,
.calendar-day,
.customer-card,
.empty-state,
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.category-card {
  display: grid;
  min-height: 132px;
  align-content: space-between;
  padding: 16px;
  overflow: hidden;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.category-card:hover,
.product-card:hover {
  border-color: rgba(91, 16, 34, 0.28);
  box-shadow: var(--shadow-lift);
  transform: translateY(-3px);
}

.category-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(91, 16, 34, 0.14);
  border-radius: var(--radius);
  color: var(--wine);
  background: linear-gradient(135deg, rgba(234, 210, 164, 0.42), rgba(255, 253, 248, 0.9));
}

.category-card h3,
.product-card h3,
.admin-panel h2,
.admin-panel h3,
.trust-card h3,
.contact-card h3 {
  margin: 0;
  color: var(--wine);
}

.category-card p,
.product-card p,
.trust-card p,
.contact-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

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

.product-card {
  display: grid;
  grid-template-rows: 260px 1fr;
  min-height: 100%;
  overflow: hidden;
  background: rgba(255, 253, 248, 0.84);
  box-shadow: 0 14px 36px rgba(68, 39, 31, 0.08);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.product-media {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 250, 241, 0.35), rgba(234, 210, 164, 0.5)),
    var(--art-bg, #f7dfc7);
}

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

.image-media::before {
  z-index: 1;
  border-color: rgba(255, 253, 248, 0.52);
}

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

.image-mini::after {
  display: none;
}

.product-media::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 253, 248, 0.68);
  border-radius: var(--radius);
}

.product-media::after {
  content: "";
  position: absolute;
  inset: auto -10% -28% 20%;
  height: 58%;
  transform: rotate(-8deg);
  background: rgba(255, 253, 248, 0.42);
  filter: blur(16px);
}

.pastry-art {
  position: relative;
  z-index: 1;
  width: min(58%, 150px);
  aspect-ratio: 1;
  transform: rotate(var(--art-tilt, -6deg));
  filter: drop-shadow(0 22px 18px rgba(68, 39, 31, 0.23));
}

.pastry-art span {
  position: absolute;
  display: block;
}

.art-muffin .cup {
  left: 17%;
  right: 17%;
  bottom: 8%;
  height: 42%;
  border-radius: 6px 6px 22px 22px;
  background: linear-gradient(135deg, #8d4d32, #c58055 55%, #69311f);
}

.art-muffin .top {
  left: 8%;
  right: 8%;
  top: 14%;
  height: 54%;
  border-radius: 48% 52% 44% 48%;
  background: radial-gradient(circle at 35% 30%, #f8d199 0 12%, transparent 13%),
    radial-gradient(circle at 66% 38%, #5f2b25 0 8%, transparent 9%),
    linear-gradient(135deg, #b86b3f, #f0ad69);
}

.art-cupcake .base {
  left: 24%;
  right: 24%;
  bottom: 8%;
  height: 36%;
  border-radius: 5px 5px 18px 18px;
  background: repeating-linear-gradient(90deg, #9a3546 0 10px, #f0c1b9 10px 18px);
}

.art-cupcake .frost {
  left: 12%;
  right: 12%;
  top: 13%;
  height: 58%;
  border-radius: 50% 50% 45% 45%;
  background: radial-gradient(circle at 42% 24%, #fff7e6 0 16%, transparent 17%),
    linear-gradient(135deg, #f7e4d5, #c98b91);
}

.art-cookie .cookie {
  inset: 14%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 33% 38%, #5c2f26 0 7%, transparent 8%),
    radial-gradient(circle at 63% 31%, #6a3427 0 6%, transparent 7%),
    radial-gradient(circle at 56% 66%, #4d271f 0 8%, transparent 9%),
    linear-gradient(135deg, #d19458, #f2c37d);
}

.art-cake .plate {
  left: 9%;
  right: 9%;
  bottom: 15%;
  height: 15%;
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.72);
}

.art-cake .slice {
  left: 18%;
  right: 18%;
  bottom: 25%;
  height: 48%;
  clip-path: polygon(0 0, 100% 18%, 78% 100%, 0 78%);
  background: linear-gradient(180deg, #fff2db 0 22%, #7c3040 22% 34%, #f2c98e 34% 58%, #7c3040 58% 70%, #e9b77f 70%);
}

.art-brownie .brownie {
  inset: 20% 12%;
  border-radius: 7px;
  transform: perspective(180px) rotateX(16deg) rotateZ(-5deg);
  background:
    radial-gradient(circle at 38% 35%, #f2d19a 0 5%, transparent 6%),
    radial-gradient(circle at 62% 62%, #e8c589 0 6%, transparent 7%),
    linear-gradient(135deg, #3d1f18, #754030);
}

.art-pastry .swirl {
  inset: 8%;
  border: 18px solid #c17742;
  border-right-color: #f2c98e;
  border-bottom-color: #f6d9a9;
  border-radius: 50%;
  transform: rotate(28deg);
}

.art-custom .box {
  left: 13%;
  right: 13%;
  bottom: 13%;
  height: 56%;
  border-radius: 7px;
  background: linear-gradient(135deg, #fff3dc, #e7b78b);
}

.art-custom .ribbon-v {
  left: 45%;
  top: 15%;
  bottom: 12%;
  width: 12%;
  background: var(--wine-700);
}

.art-custom .ribbon-h {
  left: 13%;
  right: 13%;
  top: 43%;
  height: 12%;
  background: var(--wine-700);
}

.badges {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge,
.status-badge {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  border: 1px solid rgba(91, 16, 34, 0.14);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.72);
  color: var(--wine);
  font-size: 0.74rem;
  font-weight: 800;
  padding: 5px 9px;
  white-space: nowrap;
}

.badge-gold {
  border-color: rgba(184, 137, 63, 0.32);
  background: rgba(234, 210, 164, 0.82);
  color: #5d3b12;
}

.status-badge {
  text-transform: capitalize;
}

.status-PENDING,
.status-APPROVED {
  background: rgba(234, 210, 164, 0.45);
  color: #68420e;
}

.status-IN_PROGRESS {
  background: rgba(201, 139, 145, 0.26);
  color: #6a1828;
}

.status-READY {
  background: rgba(101, 115, 93, 0.2);
  color: #3f5138;
}

.status-OUT_FOR_DELIVERY {
  background: rgba(184, 137, 63, 0.24);
  color: #5d3b12;
}

.status-COMPLETED {
  background: rgba(101, 115, 93, 0.28);
  color: #304a2f;
}

.status-DECLINED,
.status-CANCELLED {
  background: rgba(137, 30, 43, 0.1);
  color: #7a1020;
}

.product-body {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.product-meta,
.line-meta,
.small-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--taupe);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.price {
  color: var(--wine);
  font-size: 1.18rem;
  font-weight: 900;
}

.availability {
  color: var(--sage);
  font-size: 0.82rem;
  font-weight: 800;
}

.product-unavailable {
  opacity: 0.76;
}

.product-unavailable .product-media {
  filter: saturate(0.65);
}

.product-unavailable .btn-primary {
  background: rgba(91, 16, 34, 0.16);
  color: var(--wine);
  box-shadow: none;
}

.availability.off {
  color: #8d2539;
}

.filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.shop-menu {
  background: rgba(255, 253, 248, 0.44);
}

.menu-title .eyebrow,
.request-section .eyebrow {
  margin-bottom: 14px;
}

.menu-grid .product-card {
  box-shadow: 0 10px 26px rgba(68, 39, 31, 0.09);
}

.request-section {
  border-top: 1px solid rgba(91, 16, 34, 0.08);
}

.filter-btn {
  border: 1px solid rgba(91, 16, 34, 0.16);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.58);
  color: var(--chocolate);
  font-weight: 800;
  padding: 9px 13px;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.filter-btn:hover,
.filter-btn.active {
  border-color: rgba(91, 16, 34, 0.26);
  background: var(--wine);
  color: #fff;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 22px;
  align-items: start;
}

.feature-band {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
}

.feature-copy h2 {
  margin: 0;
  color: var(--wine);
  font-family: "Palatino Linotype", Georgia, serif;
  font-size: clamp(2.2rem, 4.5vw, 4.6rem);
  line-height: 1;
}

.feature-copy p {
  color: var(--muted);
  line-height: 1.72;
}

.feature-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.feature-row {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  align-items: start;
}

.feature-row .category-icon {
  width: 38px;
  height: 38px;
}

.feature-row h3 {
  margin: 0;
  color: var(--chocolate);
}

.feature-row p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

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

.trust-card {
  padding: 22px;
}

.page {
  padding: 44px 0 78px;
}

.cart-layout,
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
  gap: 24px;
  align-items: start;
}

.cart-lines,
.admin-list,
.orders-list,
.calendar-list,
.customer-grid {
  display: grid;
  gap: 14px;
}

.cart-line {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  box-shadow: 0 10px 22px rgba(68, 39, 31, 0.06);
}

.mini-art {
  width: 76px;
  height: 76px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 250, 241, 0.22), rgba(234, 210, 164, 0.46)),
    var(--art-bg, #f3d5b1);
  position: relative;
  overflow: hidden;
}

.mini-art::after {
  content: "";
  position: absolute;
  inset: 20%;
  border-radius: 50%;
  background: rgba(91, 16, 34, 0.14);
  box-shadow: 12px 10px 0 rgba(255, 253, 248, 0.34);
}

.line-title {
  display: grid;
  gap: 5px;
}

.line-title strong {
  color: var(--wine);
}

.qty-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.qty-controls span {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  color: var(--chocolate);
  font-weight: 900;
}

.summary-card,
.checkout-summary,
.admin-panel {
  padding: 20px;
}

.summary-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.94), rgba(255, 250, 241, 0.9));
  box-shadow: var(--shadow-soft);
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(91, 16, 34, 0.1);
  color: var(--muted);
}

.summary-row:last-child {
  border-bottom: 0;
}

.summary-row strong {
  color: var(--wine);
}

.total-row {
  color: var(--wine);
  font-size: 1.12rem;
  font-weight: 900;
}

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

.field {
  display: grid;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label,
.radio-group legend {
  color: var(--chocolate);
  font-size: 0.84rem;
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid rgba(91, 16, 34, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.9);
  color: var(--ink);
  padding: 11px 12px;
}

.delivery-field[hidden] {
  display: none;
}

.field textarea {
  min-height: 104px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(91, 16, 34, 0.38);
}

.radio-group {
  display: grid;
  grid-column: 1 / -1;
  gap: 9px;
  margin: 0;
  padding: 0;
  border: 0;
}

.segmented {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.segmented label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(91, 16, 34, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.76);
  padding: 10px 12px;
  font-weight: 800;
}

.error-text,
.success-text,
.note-text {
  margin: 0;
  color: #7a1020;
  font-size: 0.86rem;
  font-weight: 800;
}

.success-text {
  color: #365436;
}

.note-text {
  color: var(--muted);
  font-weight: 600;
  line-height: 1.55;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 240px;
  padding: 28px;
  text-align: center;
}

.empty-state h2,
.empty-state h3 {
  margin: 0;
  color: var(--wine);
  font-family: "Palatino Linotype", Georgia, serif;
  font-size: 2.2rem;
}

.empty-state p {
  max-width: 520px;
  margin: 9px auto 18px;
  color: var(--muted);
  line-height: 1.6;
}

.drawer-scrim {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(38, 24, 18, 0.36);
  backdrop-filter: blur(4px);
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 90;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(440px, 100vw);
  height: 100vh;
  border-left: 1px solid rgba(91, 16, 34, 0.16);
  background: linear-gradient(180deg, var(--cream-50), #f7ead8);
  box-shadow: -18px 0 50px rgba(38, 24, 18, 0.16);
}

.drawer-head,
.drawer-foot {
  padding: 20px;
  border-bottom: 1px solid rgba(91, 16, 34, 0.12);
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.drawer-head h2 {
  margin: 0;
  color: var(--wine);
}

.drawer-body {
  overflow: auto;
  padding: 18px;
}

.drawer-foot {
  border-top: 1px solid rgba(91, 16, 34, 0.12);
  border-bottom: 0;
}

.site-footer {
  border-top: 1px solid rgba(91, 16, 34, 0.1);
  background: linear-gradient(180deg, rgba(91, 16, 34, 0.95), #3b0c18);
  color: #fff8ed;
  padding: 44px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, minmax(140px, 1fr));
  gap: 28px;
}

.footer-grid h3,
.footer-grid h4 {
  margin: 0 0 12px;
  color: #fff;
}

.footer-grid p,
.footer-grid a,
.footer-grid li {
  color: rgba(255, 248, 237, 0.78);
  line-height: 1.7;
}

.footer-grid ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.96), rgba(248, 237, 220, 0.82)),
    radial-gradient(circle at 90% 12%, rgba(184, 137, 63, 0.08), transparent 28%);
}

.admin-sidebar {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100vh;
  border-right: 1px solid rgba(91, 16, 34, 0.14);
  background: rgba(255, 253, 248, 0.52);
  padding: 18px;
  backdrop-filter: blur(16px);
}

.admin-sidebar > .btn {
  align-self: end;
  justify-self: stretch;
}

.admin-nav {
  display: grid;
  align-content: start;
  gap: 6px;
  margin-top: 28px;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  padding: 11px 10px;
}

.admin-main {
  padding: 34px 34px 48px;
}

.atelier-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 380px);
  gap: 20px;
  align-items: start;
}

.overview-main,
.atelier-list,
.vault-list {
  display: grid;
  gap: 14px;
}

.overview-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.atelier-panel,
.atelier-calendar-panel,
.vault-lock-panel {
  border: 1px solid rgba(91, 16, 34, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.62);
  box-shadow: 0 10px 28px rgba(68, 39, 31, 0.06);
  padding: 18px;
}

.atelier-calendar-panel {
  position: sticky;
  top: 22px;
  display: grid;
  gap: 16px;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.panel-heading h2,
.atelier-panel h2,
.vault-lock-panel h2,
.recipe-viewer h2 {
  margin: 0;
  color: var(--wine);
  font-family: "Palatino Linotype", Georgia, serif;
  font-size: 1.6rem;
  line-height: 1.05;
}

.panel-heading a,
.panel-heading span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.summary-chip-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.summary-chip {
  border-bottom: 1px solid rgba(91, 16, 34, 0.14);
  padding: 4px 0 12px;
}

.summary-chip span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.summary-chip strong {
  display: block;
  margin-top: 6px;
  color: var(--wine);
  font-size: 1.15rem;
}

.mini-calendar-weekdays,
.mini-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.mini-calendar-weekdays {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-align: center;
  margin-bottom: 8px;
}

.mini-day {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--chocolate);
  font-weight: 800;
}

.mini-day span {
  line-height: 1;
}

.mini-day:hover,
.mini-day.selected {
  border-color: rgba(91, 16, 34, 0.26);
  background: rgba(91, 16, 34, 0.07);
  color: var(--wine);
}

.mini-day.today {
  border-color: rgba(184, 137, 63, 0.5);
  box-shadow: inset 0 0 0 1px rgba(184, 137, 63, 0.22);
}

.mini-day.selected {
  border-color: rgba(91, 16, 34, 0.58);
  background: rgba(91, 16, 34, 0.12);
}

.mini-day.muted {
  opacity: 0.46;
}

.mini-day em {
  position: absolute;
  left: 50%;
  bottom: 3px;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 0.48rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.mini-day b {
  position: absolute;
  top: 3px;
  right: 4px;
  display: grid;
  place-items: center;
  min-width: 15px;
  height: 15px;
  border-radius: 999px;
  background: var(--wine);
  color: var(--cream);
  font-size: 0.58rem;
  line-height: 1;
}

.mini-day i {
  position: absolute;
  bottom: 5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

.order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.image-preview {
  display: grid;
  gap: 10px;
  border: 1px dashed rgba(91, 16, 34, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 250, 241, 0.58);
  padding: 10px;
}

.image-preview img {
  width: 100%;
  max-height: 220px;
  border-radius: 6px;
  object-fit: cover;
}

.empty-preview {
  min-height: 72px;
  place-items: center;
  color: var(--muted);
  font-weight: 800;
}

.vault-lock-panel {
  max-width: 560px;
}

.vault-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(360px, 1fr);
  gap: 16px;
  align-items: start;
}

.recipe-viewer {
  grid-column: 1 / -1;
}

.vault-search {
  margin-bottom: 14px;
}

.recipe-block {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(91, 16, 34, 0.1);
}

.recipe-block h3 {
  margin: 0 0 6px;
  color: var(--chocolate);
}

.recipe-block p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.stat-card {
  padding: 18px;
}

.stat-card span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.stat-card strong {
  display: block;
  margin-top: 8px;
  color: var(--wine);
  font-size: 1.8rem;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr);
  gap: 18px;
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  padding: 13px 12px;
  border-bottom: 1px solid rgba(91, 16, 34, 0.1);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--chocolate);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

td strong {
  color: var(--wine);
}

.admin-panel + .admin-panel {
  margin-top: 18px;
}

.orders-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.order-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 16px;
}

.order-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.order-card h3 {
  margin: 0;
  color: var(--wine);
}

.order-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.detail-box {
  border: 1px solid rgba(91, 16, 34, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 250, 241, 0.64);
  padding: 10px;
}

.detail-box span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.detail-box strong {
  color: var(--chocolate);
  font-size: 0.9rem;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(130px, 1fr));
  gap: 10px;
}

.calendar-day {
  min-height: 150px;
  padding: 10px;
}

.calendar-day.muted {
  opacity: 0.55;
}

.day-number {
  color: var(--wine);
  font-weight: 900;
  margin-bottom: 8px;
}

.calendar-event {
  display: grid;
  gap: 3px;
  margin-top: 7px;
  border-left: 3px solid var(--wine);
  border-radius: 6px;
  background: rgba(255, 250, 241, 0.86);
  padding: 8px;
  color: var(--muted);
  font-size: 0.78rem;
}

.calendar-event strong {
  color: var(--wine);
}

.form-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.88);
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.management-grid {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.admin-list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 14px;
}

.admin-list-item h3 {
  margin: 0;
  color: var(--wine);
}

.admin-list-item p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.toggle-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.toggle-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--chocolate);
  font-weight: 800;
}

.login-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
  background:
    linear-gradient(120deg, rgba(91, 16, 34, 0.88), rgba(66, 39, 31, 0.82)),
    linear-gradient(180deg, #fffaf1, #ead7bf);
}

.login-card {
  width: min(460px, 100%);
  border: 1px solid rgba(255, 253, 248, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.95);
  padding: 28px;
  box-shadow: 0 28px 80px rgba(38, 24, 18, 0.32);
}

.login-card h1 {
  margin: 18px 0 8px;
  color: var(--wine);
  font-family: "Palatino Linotype", Georgia, serif;
  font-size: 3rem;
  line-height: 1;
}

.login-card p {
  color: var(--muted);
  line-height: 1.6;
}

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

.customer-card,
.contact-card {
  padding: 18px;
}

.confirmation {
  display: grid;
  gap: 18px;
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.confirmation .category-icon {
  margin: 0 auto;
  width: 64px;
  height: 64px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
}

@media (max-width: 1120px) {
  .category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

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

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

@media (max-width: 900px) {
  .nav {
    align-items: stretch;
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .nav-links {
    order: 3;
    flex: 1 0 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    min-height: auto;
  }

  .hero-content,
  .feature-band,
  .split,
  .cart-layout,
  .checkout-layout,
  .admin-grid,
  .atelier-overview,
  .overview-two,
  .vault-layout,
  .management-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: 190px;
    padding: 0 0 20px;
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
    padding: 16px;
  }

  .admin-nav {
    display: flex;
    overflow-x: auto;
    margin-top: 14px;
    padding-bottom: 4px;
  }

  .admin-main {
    padding: 22px 16px 44px;
  }

  .atelier-calendar-panel {
    position: static;
  }

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

@media (max-width: 640px) {
  :root {
    --container: min(100vw - 24px, 1180px);
  }

  .brand-title span,
  .admin-link-label {
    display: none;
  }

  .nav-actions .btn-secondary {
    padding-inline: 11px;
  }

  .hero-content {
    padding-top: 48px;
  }

  .hero h1 {
    font-size: clamp(3rem, 16vw, 4.6rem);
  }

  .hero-proof,
  .category-grid,
  .product-grid,
  .trust-grid,
  .stats-grid,
  .summary-chip-row,
  .settings-grid,
  .customer-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .section,
  .page {
    padding: 46px 0;
  }

  .section-title,
  .page-title,
  .admin-title {
    display: grid;
    align-items: start;
  }

  .cart-line {
    grid-template-columns: 62px minmax(0, 1fr);
  }

  .cart-line > .inline-actions {
    grid-column: 1 / -1;
  }

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

  .order-detail-grid,
  .calendar-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* Dulce order-flow patch */
.admin-shell {
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
}

.admin-sidebar {
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.9), rgba(255, 250, 241, 0.78));
}

.admin-sidebar > div:first-child {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.admin-nav {
  min-height: 0;
  overflow-y: auto;
  padding-right: 2px;
}

.admin-sidebar > .btn {
  margin-top: 18px;
}

.order-view-tabs {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  padding: 6px;
  border: 1px solid rgba(91, 16, 34, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.54);
}

.order-number {
  display: inline-flex;
  margin-left: 8px;
  padding: 3px 8px;
  border: 1px solid rgba(184, 137, 63, 0.28);
  border-radius: 999px;
  color: var(--chocolate);
  background: rgba(234, 210, 164, 0.28);
  font-family: "Segoe UI", Inter, system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
  vertical-align: middle;
}

.order-card-closed {
  background: rgba(255, 253, 248, 0.58);
}

.closed-order-note,
.closed-reason {
  margin-top: 12px;
  border: 1px solid rgba(91, 16, 34, 0.12);
  border-radius: var(--radius);
  background: rgba(248, 237, 220, 0.42);
  padding: 11px 12px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.closed-reason strong {
  display: block;
  color: var(--wine);
  margin-bottom: 4px;
}

.closed-reason p {
  margin: 0;
  line-height: 1.55;
}

.order-admin-grid {
  grid-template-columns: 0.7fr 1fr;
}

.order-timeline,
.status-timeline {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(91, 16, 34, 0.1);
}

.order-timeline h4 {
  margin: 0 0 10px;
  color: var(--wine);
}

.timeline-entry {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  padding: 8px 0;
}

.timeline-entry.compact {
  padding: 5px 0;
}

.timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 5px;
  background: var(--wine);
  box-shadow: 0 0 0 4px rgba(91, 16, 34, 0.08);
}

.timeline-entry strong {
  color: var(--chocolate);
  text-transform: capitalize;
}

.timeline-entry p {
  margin: 2px 0;
  color: var(--muted);
  line-height: 1.45;
}

.timeline-entry small {
  color: var(--taupe);
  font-size: 0.76rem;
}

.tracking-result {
  align-self: start;
}

.track-copy {
  margin-top: 10px;
}

.admin-error {
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid rgba(118, 26, 45, 0.18);
  border-radius: var(--radius);
  background: rgba(118, 26, 45, 0.06);
}

@media (max-width: 900px) {
  .admin-sidebar {
    max-height: none;
    overflow: visible;
  }

  .admin-nav {
    overflow-x: auto;
    overflow-y: hidden;
  }

  .order-admin-grid {
    grid-template-columns: 1fr;
  }
}

/* Patch: in-app dialogs, product previews, and pack options */
.media-preview-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: inherit;
}

.media-preview-button:focus-visible,
.pack-option:focus-visible,
.app-dialog button:focus-visible,
.product-preview-modal button:focus-visible {
  outline: 3px solid rgba(118, 26, 45, 0.22);
  outline-offset: 3px;
}

.modal-scrim {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(31, 24, 21, 0.48);
  backdrop-filter: blur(7px);
}

.product-preview-modal,
.app-dialog {
  position: fixed;
  z-index: 90;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(920px, calc(100vw - 32px));
  max-height: calc(100vh - 42px);
  overflow: auto;
  border: 1px solid rgba(91, 16, 34, 0.14);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 251, 244, 0.98), rgba(250, 239, 222, 0.98));
  box-shadow: 0 28px 80px rgba(91, 16, 34, 0.22);
}

.app-dialog {
  width: min(560px, calc(100vw - 32px));
  padding: 24px;
}

.app-dialog h2 {
  margin: 0 0 8px;
  color: var(--wine);
  font-family: var(--display-font);
  font-size: clamp(1.6rem, 2vw, 2.25rem);
}

.preview-head {
  border-bottom: 1px solid rgba(91, 16, 34, 0.1);
  padding: 20px 22px;
}

.preview-head h2 {
  margin: 0;
  color: var(--wine);
  font-family: var(--display-font);
  font-size: clamp(1.8rem, 2.8vw, 3rem);
}

.preview-head p {
  margin: 4px 0 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 800;
}

.preview-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(280px, 1fr);
  gap: 22px;
  padding: 22px;
}

.preview-grid .product-media {
  min-height: 390px;
  border-radius: 22px;
}

.preview-copy {
  display: grid;
  align-content: start;
  gap: 15px;
}

.preview-copy > p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.preview-copy h3 {
  margin: 8px 0 0;
  color: var(--wine);
  font-size: 1rem;
}

.pack-option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pack-option {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(91, 16, 34, 0.14);
  border-radius: 18px;
  background: rgba(255, 251, 244, 0.82);
  color: var(--chocolate);
  cursor: pointer;
  text-align: left;
}

.pack-option.active {
  border-color: rgba(118, 26, 45, 0.45);
  background: rgba(118, 26, 45, 0.08);
  box-shadow: inset 0 0 0 1px rgba(118, 26, 45, 0.18);
}

.pack-option span {
  font-weight: 800;
}

.pack-option strong {
  color: var(--wine);
}

.preview-quantity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid rgba(91, 16, 34, 0.1);
  border-bottom: 1px solid rgba(91, 16, 34, 0.1);
}

.app-notice {
  position: fixed;
  z-index: 110;
  right: 22px;
  top: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: min(440px, calc(100vw - 44px));
  padding: 13px 15px;
  border: 1px solid rgba(91, 16, 34, 0.16);
  border-radius: 18px;
  background: rgba(255, 251, 244, 0.96);
  color: var(--chocolate);
  box-shadow: 0 18px 50px rgba(91, 16, 34, 0.18);
}

.app-notice.success {
  border-color: rgba(75, 115, 82, 0.28);
  background: rgba(247, 252, 245, 0.96);
}

.app-notice.error {
  border-color: rgba(118, 26, 45, 0.26);
  background: rgba(255, 246, 244, 0.96);
}

.pack-admin-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(91, 16, 34, 0.12);
  border-radius: 20px;
  background: rgba(250, 239, 222, 0.45);
}

.pack-admin-panel h3 {
  margin: 0 0 4px;
  color: var(--wine);
}

.pack-admin-grid {
  display: grid;
  gap: 12px;
}

.pack-admin-row {
  display: grid;
  grid-template-columns: 90px 1fr 90px 120px;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid rgba(91, 16, 34, 0.1);
  border-radius: 16px;
  background: rgba(255, 251, 244, 0.76);
}

.pack-enable {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 12px;
  color: var(--chocolate);
  font-weight: 800;
}

@media (max-width: 760px) {
  .product-preview-modal,
  .app-dialog {
    width: min(100vw - 18px, 620px);
    border-radius: 22px;
  }

  .preview-grid,
  .pack-admin-row {
    grid-template-columns: 1fr;
  }

  .preview-grid .product-media {
    min-height: 260px;
  }

  .pack-option-grid {
    grid-template-columns: 1fr;
  }

  .app-notice {
    left: 12px;
    right: 12px;
    top: 12px;
    max-width: none;
  }
}

/* Dulce card image visibility fix
   Product card media sits inside a button after the product-preview patch.
   Give that button and media layer a real height so uploaded product images
   display on the card before opening the preview modal. */
.product-card > .media-preview-button {
  display: block;
  width: 100%;
  height: 260px;
  min-height: 260px;
  overflow: hidden;
}

.product-card > .media-preview-button .product-media {
  width: 100%;
  height: 100%;
  min-height: 260px;
}

.product-card > .media-preview-button .image-media img {
  display: block;
}

@media (max-width: 760px) {
  .product-card > .media-preview-button,
  .product-card > .media-preview-button .product-media {
    height: 220px;
    min-height: 220px;
  }
}
