:root {
  --bg: #f5ede3;
  --bg-strong: #ead8c3;
  --panel: rgba(255, 250, 244, 0.92);
  --panel-strong: #fff8f1;
  --ink: #211915;
  --muted: #6a5a50;
  --line: rgba(72, 35, 29, 0.12);
  --wine: #6b1f2b;
  --wine-deep: #451119;
  --gold: #be8a34;
  --olive: #4f5f4e;
  --green: #2d6b47;
  --red: #9d3939;
  --shadow: 0 24px 60px rgba(77, 41, 29, 0.12);
  --radius-xl: 28px;
  --radius-lg: 18px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(190, 138, 52, 0.18), transparent 22rem),
    radial-gradient(circle at bottom right, rgba(107, 31, 43, 0.14), transparent 28rem),
    linear-gradient(180deg, #f7efe6 0%, #f1e5d7 100%);
  font-family: "Noto Sans KR", sans-serif;
}

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

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

.shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 60px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  margin-bottom: 22px;
  background: rgba(32, 17, 21, 0.78);
  color: #fff7ef;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

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

.brand-mark {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #f3cb7e);
  color: var(--wine-deep);
  font-weight: 800;
}

.brand strong,
.hero h1,
.section-head h1,
.detail-summary h1,
.public-hero h1,
.group-head h2,
.panel-head h2 {
  font-family: "Cormorant Garamond", serif;
}

.brand strong {
  display: block;
  font-size: 1.5rem;
}

.brand small {
  display: block;
  color: rgba(255, 247, 239, 0.75);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.nav a {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.content {
  display: grid;
  gap: 22px;
}

.flash-stack {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.flash {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--panel);
  border: 1px solid var(--line);
}

.flash-success {
  border-color: rgba(45, 107, 71, 0.24);
  color: var(--green);
}

.flash-error {
  border-color: rgba(157, 57, 57, 0.24);
  color: var(--red);
}

.hero,
.public-hero,
.detail-hero,
.panel,
.stat-card {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero,
.public-hero,
.detail-hero,
.panel {
  border-radius: var(--radius-xl);
}

.hero {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 24px;
  padding: 32px;
}

.hero h1,
.public-hero h1,
.detail-summary h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 0.92;
}

.hero-copy,
.public-hero p,
.muted {
  color: var(--muted);
}

.hero-note {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(107, 31, 43, 0.95), rgba(69, 17, 25, 0.98));
  color: #fff7ef;
}

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

.eyebrow {
  margin: 0 0 8px;
  color: var(--wine);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
}

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

.stat-card {
  padding: 24px;
  border-radius: var(--radius-lg);
}

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

.stat-card strong {
  font-size: 2rem;
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding: 28px;
}

.panel {
  padding: 28px;
}

.panel-head {
  margin-bottom: 18px;
}

.panel-head h2,
.section-head h1,
.group-head h2 {
  margin: 0;
  font-size: 2rem;
}

.upload-form,
.filters,
.form-grid {
  display: grid;
  gap: 14px;
}

.upload-form {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.upload-form.single-action {
  grid-template-columns: 1fr;
  justify-items: start;
}

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

input[type="text"],
input[type="file"],
select,
textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(72, 35, 29, 0.14);
  background: var(--panel-strong);
  color: var(--ink);
  font: inherit;
}

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

button,
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--wine), var(--wine-deep));
  color: #fff7ef;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.button-link.subtle {
  background: rgba(33, 25, 21, 0.08);
  color: var(--ink);
}

.import-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.import-list li {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.58);
}

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

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

.wine-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(72, 35, 29, 0.1);
}

.wine-card.public {
  background: rgba(255, 248, 241, 0.84);
}

.wine-card-image {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, rgba(190, 138, 52, 0.12), rgba(107, 31, 43, 0.18));
}

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

.wine-card-body {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.wine-card-kind,
.subhead {
  margin: 0;
  color: var(--muted);
}

.wine-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.price-pair {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.price-pair strong {
  color: var(--wine);
}

.public-price {
  margin-top: 10px;
}

.section-head,
.group-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
}

.filters {
  grid-template-columns: 2fr 1fr 1fr auto;
}

.table-wrap {
  overflow-x: auto;
}

.wine-table {
  width: 100%;
  border-collapse: collapse;
}

.wine-table th,
.wine-table td {
  padding: 14px 10px;
  border-bottom: 1px solid rgba(72, 35, 29, 0.1);
  vertical-align: top;
  text-align: left;
}

.wine-cell {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
}

.wine-cell img,
.image-placeholder.tiny {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
}

.wine-cell small {
  display: block;
  color: var(--muted);
}

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

.badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(33, 25, 21, 0.08);
  color: var(--ink);
  font-size: 0.84rem;
}

.badge-green {
  background: rgba(45, 107, 71, 0.14);
  color: var(--green);
}

.badge-gold {
  background: rgba(190, 138, 52, 0.18);
  color: #8b5a08;
}

.badge-red {
  background: rgba(157, 57, 57, 0.14);
  color: var(--red);
}

.table-link {
  color: var(--wine);
  font-weight: 700;
}

.empty {
  text-align: center;
  color: var(--muted);
}

.detail-hero {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
  padding: 28px;
}

.detail-image img,
.image-placeholder.large {
  width: 100%;
  min-height: 100%;
  border-radius: 22px;
  object-fit: cover;
}

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

.summary-grid div,
.data-list div {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.6);
}

.summary-grid span,
.data-list dt {
  display: block;
  color: var(--muted);
  margin-bottom: 6px;
}

.detail-form {
  display: grid;
  gap: 18px;
}

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

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

.toggle-row label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.form-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.note-block,
.source-html {
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.62);
}

.source-html img {
  margin-top: 16px;
  border-radius: 16px;
}

.data-list {
  margin: 0;
  display: grid;
  gap: 10px;
}

.data-list dd {
  margin: 0;
}

.public-hero {
  padding: 44px 32px;
  text-align: center;
}

.public-group {
  display: grid;
  gap: 16px;
}

.ribbon {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(107, 31, 43, 0.92);
  color: #fff7ef;
  font-size: 0.82rem;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.public-description {
  margin: 0;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sold-out {
  margin: 0;
  color: var(--red);
  font-weight: 700;
}

.image-placeholder {
  display: grid;
  place-items: center;
  height: 100%;
  color: rgba(33, 25, 21, 0.45);
  background: linear-gradient(135deg, rgba(190, 138, 52, 0.14), rgba(107, 31, 43, 0.14));
}

.reserve-hero {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 28px;
  padding: 32px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(255, 248, 241, 0.96), rgba(248, 238, 227, 0.95)),
    var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.reserve-visual {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: 100%;
  background: linear-gradient(145deg, rgba(190, 138, 52, 0.14), rgba(107, 31, 43, 0.16));
}

.reserve-visual img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
}

.reserve-summary {
  display: grid;
  gap: 16px;
  align-content: start;
}

.reserve-summary h1 {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 0.92;
  font-family: "Cormorant Garamond", serif;
}

.reserve-subtitle,
.reserve-note,
.reserve-contact-copy,
.rich-copy {
  color: var(--muted);
}

.reserve-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
}

.reserve-price-row strong {
  font-size: 2rem;
  color: var(--wine);
}

.reserve-lead {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.7;
}

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

.reserve-facts div,
.palate-card {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.62);
}

.reserve-facts dt,
.palate-card span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
}

.reserve-facts dd {
  margin: 0;
  font-weight: 600;
}

.reserve-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

.reserve-panel,
.reserve-story,
.reserve-contact {
  overflow: hidden;
}

.rich-copy {
  line-height: 1.8;
}

.palate-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.story-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.story-card {
  display: block;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(72, 35, 29, 0.08);
}

.story-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.page-public-detail {
  background: #f7f5f8;
}

.page-public-bottle-home,
.page-public-bottle-browse,
.page-public-bottle-selector,
.page-public-bottle-variety,
.page-public-bottle-cart {
  background: #f7f5f8;
}

.page-public-detail .topbar,
.page-public-detail .flash-stack,
.page-public-bottle-home .topbar,
.page-public-bottle-home .flash-stack,
.page-public-bottle-selector .topbar,
.page-public-bottle-selector .flash-stack,
.page-public-bottle-variety .topbar,
.page-public-bottle-variety .flash-stack,
.page-public-bottle-cart .topbar,
.page-public-bottle-cart .flash-stack,
.page-public-bottle-browse .topbar,
.page-public-bottle-browse .flash-stack {
  display: none;
}

.page-public-detail .shell,
.page-public-bottle-home .shell,
.page-public-bottle-selector .shell,
.page-public-bottle-variety .shell,
.page-public-bottle-cart .shell,
.page-public-bottle-browse .shell {
  width: min(100%, 430px);
}

.page-public-detail .shell {
  padding: 0 0 180px;
}

.page-public-bottle-home .shell,
.page-public-bottle-selector .shell,
.page-public-bottle-variety .shell,
.page-public-bottle-cart .shell,
.page-public-bottle-browse .shell {
  padding: 0 0 96px;
}

.page-public-detail .content,
.page-public-bottle-home .content,
.page-public-bottle-selector .content,
.page-public-bottle-variety .content,
.page-public-bottle-cart .content,
.page-public-bottle-browse .content {
  gap: 0;
}

.mobile-detail-shell {
  display: grid;
  gap: 14px;
  min-height: 100vh;
  padding: 14px 14px 0;
}

.reserve-mobile-header {
  display: grid;
  grid-template-columns: minmax(92px, 1fr) auto minmax(92px, 1fr);
  gap: 6px;
  align-items: center;
}

.reserve-back,
.reserve-header-pill,
.page-home-button {
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(25, 48, 136, 0.08);
  color: #233f9b;
  box-shadow: 0 10px 24px rgba(20, 33, 76, 0.06);
  position: relative;
  z-index: 2;
  pointer-events: auto;
}

.reserve-back {
  min-width: 44px;
  padding: 0 9px;
  font-size: 0.7rem;
  font-weight: 800;
  white-space: nowrap;
}

.page-nav-actions {
  display: inline-flex;
  gap: 4px;
  justify-self: start;
  min-width: 0;
}

.page-home-button {
  min-width: 40px;
  padding: 0 9px;
  font-size: 0.7rem;
  font-weight: 800;
  white-space: nowrap;
}

.header-side-left,
.header-side-right {
  min-width: 0;
  display: flex;
  align-items: center;
}

.header-side-left {
  justify-self: start;
  justify-content: flex-start;
}

.header-side-right {
  justify-self: end;
  justify-content: flex-end;
}

.page-admin-button,
.page-cart-button {
  height: 34px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(25, 48, 136, 0.08);
  color: #233f9b;
  box-shadow: 0 10px 24px rgba(20, 33, 76, 0.06);
  font-size: 0.68rem;
  font-weight: 800;
  white-space: nowrap;
  max-width: 100%;
}

.page-admin-button {
  min-width: 56px;
}

.page-cart-button span {
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #1f3fa1;
  color: #ffffff;
  font-size: 0.62rem;
}

.reserve-header-pill {
  padding: 0 14px;
  font-size: 0.76rem;
  font-weight: 700;
}

.reserve-wordmark {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  min-width: 0;
  min-height: 36px;
  padding: 0 2px;
  pointer-events: none;
  overflow: hidden;
}

.reserve-wordmark img {
  display: block;
  width: min(100%, 128px);
  height: auto;
}

.reserve-wordmark strong {
  color: #1f3fa1;
}

.reserve-mobile-hero,
.reserve-info-card,
.reserve-accordion {
  background: #ffffff;
  border-radius: 22px;
  border: 1px solid rgba(25, 48, 136, 0.08);
  box-shadow: 0 16px 34px rgba(20, 33, 76, 0.07);
}

.reserve-mobile-hero {
  padding: 20px 18px 18px;
}

.reserve-title-wrap {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
  margin-bottom: 14px;
}

.reserve-title-wrap h1 {
  margin: 0;
  font-size: 1.7rem;
  line-height: 1.1;
  font-family: "Noto Sans KR", sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.reserve-subtitle {
  margin: 6px 0 0;
  font-size: 0.92rem;
}

.reserve-vivino {
  min-width: 56px;
  padding-top: 8px;
  text-align: right;
  color: #b8b3ba;
}

.reserve-vivino span {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
}

.reserve-vivino strong {
  display: block;
  margin-top: 2px;
  color: #8f8895;
  font-size: 1.05rem;
}

.reserve-bottle-stage {
  display: grid;
  place-items: center;
  padding: 10px 0 14px;
}

.reserve-bottle-stage img {
  width: min(56vw, 220px);
  max-height: 360px;
  object-fit: contain;
  filter: drop-shadow(0 18px 26px rgba(22, 30, 58, 0.22));
}

.reserve-price-card {
  text-align: center;
  padding: 16px 14px 8px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(243, 247, 255, 0.95), rgba(255, 255, 255, 1));
  border: 1px solid rgba(31, 63, 161, 0.08);
}

.reserve-price-label {
  display: block;
  color: #7a7480;
  font-size: 0.82rem;
}

.reserve-price-card strong {
  display: block;
  margin-top: 4px;
  color: #d43a87;
  font-size: 1.95rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.reserve-price-card p {
  margin: 8px 0 0;
  color: #8f8895;
  font-size: 0.76rem;
}

.reserve-inline-cart-button {
  width: 100%;
  min-height: 46px;
  margin-top: 14px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #1f3fa1, #2f5ed8);
  color: #ffffff;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  box-shadow: 0 16px 34px rgba(20, 33, 76, 0.12);
}

.reserve-info-card {
  padding: 18px 16px;
}

.reserve-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.reserve-card-title h2 {
  margin: 0;
  font-size: 1.02rem;
  font-family: "Noto Sans KR", sans-serif;
  font-weight: 800;
}

.reserve-card-icon {
  color: #d43a87;
  font-size: 1rem;
  line-height: 1;
}

.reserve-basic-list {
  margin: 0;
  display: grid;
  gap: 12px;
}

.reserve-basic-list div {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
}

.reserve-basic-list dt {
  color: #7c7783;
  font-weight: 700;
  white-space: nowrap;
  font-size: 0.88rem;
}

.reserve-basic-list dd {
  margin: 0;
  line-height: 1.55;
}

.reserve-copy {
  color: #34313a;
  line-height: 1.8;
  font-size: 0.95rem;
}

.mobile-tasting-block {
  display: grid;
  gap: 10px;
}

.mobile-tasting-block h3 {
  margin: 0;
  color: #1f2433;
  font-size: 0.98rem;
  font-weight: 800;
}

.reserve-accordion {
  overflow: hidden;
}

.reserve-accordion summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 16px;
  font-weight: 800;
  color: #1f2433;
}

.reserve-accordion summary::-webkit-details-marker {
  display: none;
}

.reserve-accordion summary::after {
  content: "+";
  float: right;
  color: #1f3fa1;
  font-size: 1.2rem;
  line-height: 1;
}

.reserve-accordion[open] summary::after {
  content: "−";
}

.reserve-accordion-body {
  display: grid;
  gap: 14px;
  padding: 0 16px 18px;
}

.mobile-palate-meter-grid {
  display: grid;
  gap: 10px;
}

.mobile-palate-meter-row {
  display: grid;
  gap: 8px;
}

.mobile-palate-meter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-palate-meter-head span {
  color: #5d6575;
  font-size: 0.84rem;
  font-weight: 700;
}

.mobile-palate-meter {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.mobile-palate-pill {
  height: 10px;
  border-radius: 999px;
  background: #ebedf3;
}

.mobile-palate-pill.is-active {
  background: var(--meter-tone, #1f3fa1);
  box-shadow: 0 4px 10px rgba(31, 63, 161, 0.18);
}

.mobile-story-gallery {
  display: grid;
  gap: 10px;
}

.mobile-story-card {
  display: block;
  overflow: hidden;
  border-radius: 18px;
  background: #f7f7fa;
}

.mobile-story-card img {
  width: 100%;
  display: block;
}

.collection-mobile-shell,
.bottle-home-shell,
.bottle-selector-shell,
.bottle-variety-shell,
.bottle-browse-shell {
  display: grid;
  gap: 14px;
  min-height: 100vh;
  padding: 14px;
}

.collection-mobile-header,
.bottle-home-header,
.bottle-browse-header {
  display: grid;
  grid-template-columns: minmax(92px, 1fr) auto minmax(92px, 1fr);
  gap: 6px;
  align-items: center;
}

.collection-wordmark {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  pointer-events: none;
  overflow: hidden;
}

.collection-wordmark img {
  display: block;
  width: min(100%, 128px);
  height: auto;
}

.collection-header-pill,
.collection-hero-card,
.collection-wine-card {
  background: #ffffff;
  border-radius: 22px;
  border: 1px solid rgba(25, 48, 136, 0.08);
  box-shadow: 0 16px 34px rgba(20, 33, 76, 0.07);
}

.collection-header-pill {
  height: 40px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #233f9b;
  font-size: 0.76rem;
  font-weight: 700;
}

.collection-hero-card,
.bottle-home-hero,
.bottle-nav-card,
.bottle-home-section,
.bottle-home-guide-panel,
.bottle-browse-hero,
.bottle-browse-group,
.bottle-browse-card {
  padding: 22px 18px 18px;
}

.collection-eyebrow {
  margin: 0 0 8px;
  color: #1f3fa1;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.collection-hero-card h1 {
  margin: 0;
  font-size: 1.9rem;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.collection-hero-card p,
.bottle-home-hero p,
.bottle-browse-hero p {
  margin: 10px 0 0;
  color: #686271;
  line-height: 1.7;
}

.bottle-home-copy {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.bottle-home-copy p {
  margin: 0;
  color: #4f5d7a;
  line-height: 1.8;
}

.bottle-home-contact a {
  color: #1f3fa1;
  font-size: 1.02rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.bottle-home-note {
  display: grid;
  gap: 6px;
  padding: 14px 12px;
  border-radius: 18px;
  background: rgba(31, 63, 161, 0.05);
}

.bottle-home-note p {
  margin: 0;
  color: #51617f;
  line-height: 1.7;
}

.collection-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.collection-hero-meta span {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #eef4ff, #f8fbff);
  color: #3453ad;
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(31, 63, 161, 0.08);
}

.collection-card-list {
  display: grid;
  gap: 12px;
}

.collection-wine-card,
.bottle-browse-card {
  display: grid;
  gap: 14px;
  padding: 14px;
  color: inherit;
}

.collection-wine-card {
  grid-template-columns: 96px 1fr;
}

.bottle-browse-card {
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
}

.collection-wine-image,
.bottle-browse-image {
  display: grid;
  place-items: center;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, #f3f7ff, #fafbfd);
}

.collection-wine-image img,
.bottle-browse-image img {
  width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(22, 30, 58, 0.18));
}

.collection-wine-image img {
  height: 148px;
}

.bottle-browse-image img {
  width: 100%;
  height: auto;
  max-height: 176px;
  display: block;
  margin: 0 auto;
}

.bottle-home-hero h1,
.bottle-browse-hero h1 {
  margin: 0;
  font-size: 1.9rem;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.bottle-home-hero {
  background:
    radial-gradient(circle at top right, rgba(31, 63, 161, 0.12), transparent 38%),
    linear-gradient(180deg, #ffffff, #f8fbff);
  border-color: rgba(31, 63, 161, 0.12);
}

.bottle-home-guide-panel {
  padding: 18px 16px 16px;
  background: linear-gradient(180deg, #f7faff, #ffffff);
  border: 1px solid rgba(31, 63, 161, 0.1);
  border-radius: 22px;
  box-shadow: 0 16px 34px rgba(20, 33, 76, 0.07);
}

.bottle-home-guide-head {
  display: grid;
  gap: 4px;
  margin-bottom: 10px;
}

.bottle-home-guide-head h2 {
  margin: 0;
  color: #182746;
  font-size: 1.08rem;
}

.bottle-home-guide-grid {
  display: grid;
  gap: 8px;
}

.bottle-home-guide-step {
  padding: 12px 13px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 0 0 1px rgba(31, 63, 161, 0.08);
}

.bottle-home-guide-step span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: #ecf2ff;
  color: #1f3fa1;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.bottle-home-guide-step strong {
  display: block;
  margin-top: 10px;
  color: #182746;
  font-size: 0.96rem;
}

.bottle-home-guide-step p {
  margin: 6px 0 0;
  color: #58657f;
  line-height: 1.58;
  font-size: 0.84rem;
}

.bottle-home-nav-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.bottle-nav-card {
  display: grid;
  gap: 8px;
  color: inherit;
  min-height: 132px;
  align-content: start;
  background:
    radial-gradient(circle at top right, rgba(31, 63, 161, 0.16), transparent 42%),
    linear-gradient(180deg, #ffffff, #f4f8ff);
  border: 1px solid rgba(31, 63, 161, 0.1);
  border-radius: 24px;
  box-shadow: 0 16px 34px rgba(20, 33, 76, 0.07);
}

.button-card {
  display: grid;
  width: 100%;
  padding: 18px 16px;
  border: 1px solid rgba(31, 63, 161, 0.1);
  appearance: none;
  -webkit-appearance: none;
  align-items: start;
  justify-content: normal;
  justify-items: stretch;
  text-align: left;
  font: inherit;
  font-weight: 400;
  line-height: 1.4;
  color: inherit;
  background:
    radial-gradient(circle at top right, rgba(31, 63, 161, 0.16), transparent 42%),
    linear-gradient(180deg, #ffffff, #f4f8ff);
  cursor: pointer;
}

.bottle-nav-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 8px;
}

.bottle-nav-kicker,
.bottle-nav-count {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.bottle-nav-kicker {
  background: #edf3ff;
  color: #1f3fa1;
}

.bottle-nav-count {
  background: #f5f7fb;
  color: #60708f;
}

.bottle-nav-card strong {
  font-size: 1rem;
  color: #132445;
}

.bottle-nav-card span {
  color: #5f6e88;
  font-size: 0.8rem;
  line-height: 1.6;
}

.bottle-nav-card em {
  display: inline-flex;
  align-items: center;
  margin-top: auto;
  color: #1f3fa1;
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 800;
}

.bottle-nav-card:hover,
.button-card:hover {
  transform: translateY(-1px);
}

.bottle-home-section,
.bottle-browse-group,
.bottle-browse-hero,
.bottle-selector-panel,
.variety-selector-panel {
  background: #ffffff;
  border-radius: 22px;
  border: 1px solid rgba(25, 48, 136, 0.08);
  box-shadow: 0 16px 34px rgba(20, 33, 76, 0.07);
}

.bottle-home-section-head,
.bottle-browse-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.bottle-home-section-head h2,
.bottle-browse-group-head h2 {
  margin: 0;
  font-size: 1rem;
}

.bottle-home-section-head a,
.bottle-browse-group-head span {
  color: #566178;
  font-size: 0.8rem;
  font-weight: 700;
}

.bottle-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bottle-chip-card {
  min-width: calc(50% - 4px);
  padding: 12px 14px;
  border-radius: 16px;
  background: #f4f7ff;
  color: inherit;
}

.bottle-chip-card strong {
  display: block;
  color: #1f3fa1;
  font-size: 0.88rem;
}

.bottle-chip-card span {
  display: block;
  margin-top: 4px;
  color: #6d7281;
  font-size: 0.78rem;
}

.bottle-featured-list {
  display: grid;
  gap: 10px;
}

.bottle-featured-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #f4f7ff;
  color: inherit;
}

.bottle-featured-copy {
  display: grid;
  gap: 4px;
}

.bottle-featured-copy strong {
  color: #1f2433;
}

.bottle-featured-copy span,
.bottle-featured-arrow {
  color: #687186;
  font-size: 0.84rem;
}

.bottle-browse-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.filter-panel,
.cart-panel {
  display: grid;
  gap: 12px;
  padding: 18px 16px;
  background: #ffffff;
  border-radius: 22px;
  border: 1px solid rgba(25, 48, 136, 0.08);
  box-shadow: 0 16px 34px rgba(20, 33, 76, 0.07);
}

.bottle-search-form {
  display: grid;
  gap: 8px;
  padding: 16px 16px 14px;
  background: #ffffff;
  border-radius: 22px;
  border: 1px solid rgba(25, 48, 136, 0.08);
  box-shadow: 0 16px 34px rgba(20, 33, 76, 0.07);
}

.bottle-search-form-list {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.bottle-search-label {
  color: #44516d;
  font-size: 0.82rem;
  font-weight: 800;
}

.bottle-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.bottle-search-input {
  height: 46px;
  padding: 0 14px;
  border-radius: 16px;
  border: 1px solid rgba(31, 63, 161, 0.12);
  background: #f8fbff;
  color: #1f2433;
  font-size: 0.9rem;
}

.bottle-search-input::placeholder {
  color: #8b93a5;
}

.bottle-search-submit {
  min-width: 64px;
  height: 46px;
  padding: 0 14px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #1f3fa1, #2f5ed8);
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 800;
}

.filter-action-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.filter-modal-button {
  min-height: 58px;
  padding: 12px 10px;
  display: grid;
  gap: 4px;
  justify-items: start;
  border: 0;
  border-radius: 18px;
  background: #f4f7ff;
  color: #2e3442;
  text-align: left;
  box-shadow: inset 0 0 0 1px rgba(31, 63, 161, 0.06);
}

.filter-modal-button span {
  color: #778198;
  font-size: 0.74rem;
  font-weight: 700;
}

.filter-modal-button strong {
  max-width: 100%;
  overflow: hidden;
  color: #1f2433;
  font-size: 0.88rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-modal-button.is-active {
  background: #eef3ff;
  box-shadow: inset 0 0 0 1px rgba(31, 63, 161, 0.16);
}

.filter-modal-button.is-active strong,
.filter-modal-button.is-active span {
  color: #1f3fa1;
}

.filter-summary,
.filter-chip-row,
.sort-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sort-chip-row {
  justify-content: center;
}

.filter-pill,
.filter-chip,
.sort-chip,
.filter-clear-link {
  min-height: 34px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.filter-pill {
  background: #eef3ff;
  color: #2c4ea8;
}

.filter-chip,
.sort-chip {
  background: #f6f7fa;
  color: #7a7782;
}

.filter-chip.is-active,
.sort-chip.is-active {
  background: #1f3fa1;
  color: #ffffff;
}

.filter-clear-link {
  background: #fff4f8;
  color: #d43a87;
}

.bottle-browse-tab {
  height: 38px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(25, 48, 136, 0.08);
  color: #687186;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.bottle-browse-tab.is-active {
  background: #1f3fa1;
  color: #ffffff;
}

.bottle-browse-card-list {
  display: grid;
  gap: 12px;
}

.bottle-list-status {
  margin-top: 14px;
  color: #6f7688;
  font-size: 0.82rem;
  text-align: center;
}

.bottle-list-sentinel {
  width: 100%;
  height: 1px;
}

.bottle-browse-card {
  padding: 14px;
  display: grid;
  gap: 12px;
  align-items: stretch;
  border: 1px solid rgba(31, 63, 161, 0.12);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(16, 24, 40, 0.05);
}

.bottle-browse-image-link,
.bottle-browse-title-link {
  color: inherit;
}

.bottle-browse-image-link {
  display: flex;
  align-items: center;
  justify-content: center;
}

.bottle-selector-panel,
.variety-selector-panel {
  padding: 18px 16px;
}

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

.bottle-selector-card,
.variety-chip-card {
  display: grid;
  gap: 4px;
  padding: 14px 12px;
  border-radius: 16px;
  background: #f4f7ff;
  color: inherit;
}

.bottle-selector-card strong,
.variety-chip-card strong {
  color: #1f3fa1;
  font-size: 0.9rem;
}

.bottle-selector-card span,
.variety-chip-card span {
  color: #6d7281;
  font-size: 0.78rem;
}

.bottle-browse-body {
  display: grid;
  gap: 10px;
}

.bottle-browse-card + .bottle-browse-card {
  margin-top: 2px;
}

.bottle-browse-body h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 800;
}

.list-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8f2f8, #fff7fb);
}

.list-price-row span {
  color: #8c7c89;
  font-size: 0.76rem;
  font-weight: 700;
}

.list-price-row strong {
  color: #d43a87;
  font-size: 1rem;
  letter-spacing: -0.03em;
}

.bottle-browse-meta {
  margin: 0;
  display: grid;
  gap: 8px;
  padding-top: 4px;
  border-top: 1px solid rgba(31, 63, 161, 0.08);
}

.bottle-browse-meta div {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(31, 63, 161, 0.06);
}

.bottle-browse-meta dt {
  color: #6f7688;
  font-size: 0.8rem;
  font-weight: 700;
}

.bottle-browse-meta dd {
  margin: 0;
  color: #2e3442;
  font-size: 0.83rem;
  line-height: 1.55;
}

.list-card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding-top: 2px;
}

.list-detail-button,
.list-cart-button {
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.list-detail-button {
  background: #eef3ff;
  color: #1f3fa1;
}

.list-cart-button {
  border: 0;
  background: linear-gradient(135deg, #1f3fa1, #2f5ed8);
  color: #ffffff;
  cursor: pointer;
}

.variety-family-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.variety-family-tab {
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(25, 48, 136, 0.08);
  color: #8a8691;
  font-weight: 800;
}

.variety-family-tab.is-active {
  color: #d43a87;
  border-color: rgba(212, 58, 135, 0.42);
}

.variety-initial-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(25, 48, 136, 0.08);
}

.variety-initial-chip {
  min-width: 40px;
  height: 38px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #f6f7fa;
  color: #9a96a1;
  font-size: 0.86rem;
  font-weight: 800;
}

.variety-initial-chip.is-active {
  background: #ffffff;
  color: #d43a87;
  border: 1px solid rgba(212, 58, 135, 0.42);
}

.variety-chip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding-top: 14px;
}

.variety-chip-grid-modal,
.variety-modal-panel {
  display: none;
}

.variety-modal-panel.is-active,
.variety-chip-grid-modal.is-active {
  display: grid;
}

.modal-overlay[hidden] {
  display: none;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: end center;
  padding: 20px 14px;
  background: rgba(20, 23, 31, 0.4);
}

.modal-sheet {
  width: min(100%, 430px);
  max-height: min(86vh, 760px);
  overflow: auto;
  padding: 18px 16px;
  background: #ffffff;
  border-radius: 26px;
  box-shadow: 0 24px 60px rgba(20, 33, 76, 0.18);
}

.modal-sheet-wide {
  max-height: min(90vh, 820px);
}

.modal-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.modal-sheet-head h2 {
  margin: 0;
  font-size: 1.08rem;
}

.modal-close {
  height: 36px;
  padding: 0 12px;
  border-radius: 12px;
  border: 0;
  background: #f6f7fa;
  color: #6f7688;
  font-weight: 800;
  cursor: pointer;
}

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

.modal-option-card {
  display: grid;
  gap: 4px;
  padding: 14px 12px;
  border-radius: 16px;
  background: #f4f7ff;
}

.modal-option-card-reset {
  margin-bottom: 12px;
}

.modal-option-card strong {
  color: #1f3fa1;
}

.admin-modal-copy {
  margin: 0 0 12px;
  color: #5f6e88;
  line-height: 1.7;
}

.modal-option-card span {
  color: #6d7281;
  font-size: 0.78rem;
}

body.modal-open {
  overflow: hidden;
}

.order-sync-card,
.order-history-card,
.cart-empty-state,
.cart-group-card,
.cart-overview-card {
  padding: 16px;
  border-radius: 18px;
  background: #f8f9fc;
}

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

.cart-overview-item {
  padding: 14px 12px;
  border-radius: 16px;
  background: #ffffff;
  display: grid;
  gap: 4px;
}

.cart-overview-item span {
  color: #6f7688;
  font-size: 0.8rem;
  font-weight: 700;
}

.cart-overview-item strong {
  color: #182746;
  font-size: 1rem;
}

.order-sync-head strong,
.order-history-card strong {
  display: block;
  font-size: 1rem;
}

.order-sync-head p,
.order-history-card p {
  margin: 8px 0 0;
  color: #6f7688;
  line-height: 1.6;
}

.order-sync-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.order-sync-actions-single {
  grid-template-columns: 1fr;
}

.cart-section-block {
  display: grid;
  gap: 10px;
}

.cart-section-head strong {
  display: block;
  color: #182746;
  font-size: 1rem;
}

.order-sync-button {
  min-height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1f3fa1, #2f5ed8);
  color: #ffffff;
  font-weight: 800;
}

.order-sync-button.subtle {
  background: #eef3ff;
  color: #1f3fa1;
}

.order-sync-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.order-sync-note {
  margin: 10px 0 0;
  color: #6f7688;
  font-size: 0.82rem;
  line-height: 1.6;
}

.order-status-line {
  min-height: 20px;
  margin-top: 10px;
  font-size: 0.82rem;
  font-weight: 700;
}

.order-status-line.is-success {
  color: #2d6b47;
}

.order-status-line.is-warning {
  color: #c04b6a;
}

.order-status-line.is-loading {
  color: #1f3fa1;
}

.cart-empty-state p {
  margin: 8px 0 0;
  color: #6f7688;
  line-height: 1.6;
}

.cart-group-meta span {
  padding: 12px;
  border-radius: 14px;
  background: #ffffff;
}

.cart-group-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  color: #6f7688;
}

.order-history-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.order-history-entry {
  border-radius: 16px;
  background: #ffffff;
  overflow: hidden;
}

.order-history-summary {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 14px 12px;
  cursor: pointer;
}

.order-history-summary::-webkit-details-marker {
  display: none;
}

.order-history-summary-main {
  display: grid;
  gap: 4px;
}

.order-history-summary-main strong {
  color: #182746;
  font-size: 0.92rem;
}

.order-history-summary-main span,
.order-history-toggle-text {
  color: #6f7688;
  font-size: 0.8rem;
}

.order-history-toggle-text {
  font-weight: 800;
}

.order-history-entry[open] .order-history-toggle-text {
  color: #1f3fa1;
}

.order-history-body {
  padding: 0 12px 12px;
}

.order-history-importers {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.order-history-importers li {
  padding: 10px 12px;
  border-radius: 14px;
  background: #f8f9fc;
}

.order-history-item-link {
  display: grid;
  gap: 2px;
  color: inherit;
}

.order-history-importers span {
  color: #6f7688;
  font-size: 0.8rem;
}

.cart-group-head {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.cart-group-head-main {
  display: grid;
  gap: 4px;
}

.cart-group-head h2 {
  margin: 0;
  font-size: 1rem;
}

.cart-group-head p {
  margin: 4px 0 0;
  color: #6f7688;
  font-size: 0.84rem;
}

.cart-group-status {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
}

.cart-group-status.is-ok {
  background: #ecf8f0;
  color: #2d6b47;
}

.cart-group-status.is-warning,
.cart-group-status.is-caution {
  background: #fff2f4;
  color: #c04b6a;
}

.cart-group-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.8rem;
  font-weight: 700;
}

.cart-group-meta .is-warning {
  color: #c04b6a;
}

.cart-group-meta .is-ok {
  color: #2d6b47;
}

.cart-group-items {
  display: grid;
  gap: 10px;
}

.cart-item-card {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  background: #ffffff;
}

.cart-item-thumb {
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #f4f7ff;
  overflow: hidden;
}

.cart-item-thumb img {
  width: 100%;
  height: 88px;
  object-fit: contain;
}

.cart-item-body {
  display: grid;
  gap: 4px;
  align-content: start;
}

.cart-item-link,
.cart-item-title-link {
  color: inherit;
}

.cart-item-title-link strong {
  color: #182746;
}

.cart-item-body p,
.cart-item-body span {
  margin: 0;
  color: #6f7688;
  font-size: 0.8rem;
}

.cart-item-controls {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 6px;
}

.cart-item-controls button {
  min-width: 30px;
  height: 30px;
  border: 0;
  border-radius: 10px;
  background: #eef3ff;
  color: #1f3fa1;
  font-weight: 800;
}

.cart-remove-button {
  min-width: auto !important;
  padding: 0 10px;
}

.admin-auth-shell,
.admin-orders-shell {
  width: min(100%, 760px);
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.admin-page-header .header-side-right form {
  margin: 0;
}

.admin-auth-card,
.admin-orders-header,
.admin-orders-summary,
.admin-orders-search,
.admin-order-card,
.admin-orders-empty {
  background: #ffffff;
  border-radius: 22px;
  border: 1px solid rgba(25, 48, 136, 0.08);
  box-shadow: 0 16px 34px rgba(20, 33, 76, 0.07);
}

.admin-auth-card {
  padding: 28px 22px 22px;
  display: grid;
  gap: 14px;
}

.admin-orders-header {
  padding: 24px 22px;
  display: grid;
  gap: 12px;
}

.admin-auth-card h1,
.admin-orders-header h1 {
  margin: 0;
  color: #182746;
  font-size: 1.4rem;
}

.admin-auth-card p,
.admin-orders-header p {
  margin: 0;
  color: #5f6e88;
  line-height: 1.7;
}

.admin-auth-form,
.admin-orders-search {
  display: grid;
  gap: 10px;
}

.admin-auth-form label {
  display: grid;
  gap: 6px;
}

.admin-auth-form span {
  color: #44516d;
  font-size: 0.82rem;
  font-weight: 700;
}

.admin-auth-form input,
.admin-orders-search input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(31, 63, 161, 0.12);
  background: #f9fbff;
  color: #182746;
  font: inherit;
}

.admin-auth-form button,
.admin-orders-search button,
.admin-logout-button {
  min-height: 46px;
  padding: 0 16px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #1f3fa1, #2f5ed8);
  color: #ffffff;
  font: inherit;
  font-weight: 800;
}

.admin-auth-error {
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff2f4;
  color: #c04b6a;
  font-size: 0.86rem;
  font-weight: 700;
}

.admin-auth-back {
  color: #1f3fa1;
  font-size: 0.84rem;
  font-weight: 700;
}

.admin-orders-header {
  border: 1px solid rgba(31, 63, 161, 0.12);
  box-shadow: none;
}

.admin-orders-summary {
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.admin-orders-stat {
  padding: 14px 12px;
  border-radius: 16px;
  background: #f7f9ff;
  display: grid;
  gap: 4px;
}

.admin-orders-stat span {
  color: #6f7688;
  font-size: 0.8rem;
}

.admin-orders-stat strong {
  color: #182746;
  font-size: 1rem;
}

.admin-orders-search {
  padding: 0;
}

.admin-orders-list {
  display: grid;
  gap: 10px;
}

.admin-order-card {
  overflow: hidden;
}

.admin-order-summary {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 16px 14px;
  cursor: pointer;
}

.admin-order-summary::-webkit-details-marker {
  display: none;
}

.admin-order-main,
.admin-order-meta {
  display: grid;
  gap: 4px;
}

.admin-order-main strong {
  color: #182746;
  font-size: 0.94rem;
}

.admin-order-main span,
.admin-order-meta span,
.admin-order-sync-line span {
  color: #6f7688;
  font-size: 0.82rem;
}

.admin-order-body {
  padding: 0 14px 14px;
  display: grid;
  gap: 10px;
}

.admin-order-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-order-status-form {
  display: flex;
  justify-content: flex-end;
}

.admin-order-status-button {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #2a9d66, #1b7c4d);
  color: #ffffff;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
}

.admin-order-status-button.is-complete {
  background: linear-gradient(135deg, #d64559, #b82f42);
}

.admin-order-status-button.is-delete {
  background: linear-gradient(135deg, #8f98a8, #697385);
}

.admin-order-sync-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.admin-order-items {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.admin-order-items li {
  padding: 12px;
  border-radius: 14px;
  background: #f8f9fc;
  display: grid;
  gap: 2px;
}

.admin-orders-empty {
  padding: 22px 18px;
  color: #6f7688;
  text-align: center;
}

.admin-header-button {
  min-width: 74px;
}

.admin-orders-filter-panel {
  padding: 16px 14px;
}

.admin-orders-list-section {
  gap: 14px;
}

.public-mobile-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 85;
  display: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  width: min(100%, 430px);
  transform: translateX(-50%);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(247, 245, 248, 0), rgba(247, 245, 248, 0.97) 26%);
}

.public-mobile-nav-button {
  min-height: 48px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(31, 63, 161, 0.1);
  color: #1f3fa1;
  box-shadow: 0 12px 24px rgba(20, 33, 76, 0.08);
  font-size: 0.74rem;
  font-weight: 800;
  text-align: center;
}

.public-mobile-nav-button span {
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #1f3fa1;
  color: #ffffff;
  font-size: 0.68rem;
}

.customer-gate-overlay {
  place-items: center;
}

.customer-gate-sheet {
  width: min(100%, 360px);
  padding: 24px 20px 20px;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(20, 33, 76, 0.18);
}

.customer-gate-sheet h2 {
  margin: 0;
  color: #182746;
  font-size: 1.3rem;
}

.customer-gate-copy {
  margin: 10px 0 0;
  color: #5f6e88;
  line-height: 1.7;
}

.customer-gate-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.customer-gate-form label {
  display: grid;
  gap: 6px;
}

.customer-gate-form span {
  color: #44516d;
  font-size: 0.82rem;
  font-weight: 700;
}

.collection-wine-body {
  display: grid;
  gap: 8px;
  align-content: start;
}

.collection-card-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.collection-kind-pill,
.collection-score-pill {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
}

.collection-kind-pill {
  background: #eef3ff;
  color: #1f3fa1;
}

.collection-score-pill {
  background: #f7f0f5;
  color: #a84d7f;
}

.collection-wine-body h2 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 800;
}

.collection-origin,
.collection-producer,
.collection-summary {
  margin: 0;
}

.collection-origin {
  color: #5d6678;
  font-size: 0.86rem;
  font-weight: 700;
}

.collection-producer {
  color: #777180;
  font-size: 0.82rem;
}

.collection-summary {
  color: #575262;
  font-size: 0.88rem;
  line-height: 1.6;
}

.collection-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.collection-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
}

.collection-card-footer strong {
  color: #d43a87;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

.collection-card-footer span {
  color: #6d7281;
  font-size: 0.78rem;
  font-weight: 700;
}

.page-public-detail .public-mobile-nav,
.page-public-bottle-home .public-mobile-nav,
.page-public-bottle-selector .public-mobile-nav,
.page-public-bottle-variety .public-mobile-nav,
.page-public-bottle-cart .public-mobile-nav,
.page-public-bottle-browse .public-mobile-nav {
  display: grid;
}

@media (min-width: 981px) {
  .filter-action-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .hero,
  .split,
  .detail-hero,
  .reserve-hero,
  .reserve-grid,
  .filters,
  .stats-grid,
  .wine-grid,
  .wine-grid.compact,
  .form-grid,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .topbar,
  .section-head,
  .group-head {
    align-items: start;
    flex-direction: column;
  }

  .palate-grid,
  .story-gallery,
  .reserve-facts,
  .bottle-selector-grid,
  .variety-chip-grid,
  .modal-option-grid,
  .admin-orders-summary {
    grid-template-columns: 1fr;
  }

  .wine-cell {
    grid-template-columns: 52px 1fr;
  }

  .cart-item-card {
    grid-template-columns: 64px 1fr;
  }

  .cart-item-controls {
    grid-column: 1 / -1;
    grid-auto-flow: column;
    justify-content: start;
  }
}
