:root {
  /* Core Colors */
  --primary: #0A0A0A;          /* deep black */
  --secondary: #121212;        /* layered black */
  --accent: #C9A227;           /* premium gold */
  --accent-strong: #E0B84E;
  --accent-deep: #8A6A1F;
  --accent-rgb: 201, 162, 39;

  /* Backgrounds */
  --bg: #050505;               /* ultra deep black */
  --bg-elevated: #0F0F0F;      /* subtle lift */
  --surface: #161616;          /* card base */
  --surface-soft: #1C1C1C;     /* softer layer */
  --surface-strong: #101010;
  --surface-panel: #0B0B0B;
  --surface-overlay: rgba(5, 5, 5, 0.86);
  --surface-overlay-soft: rgba(18, 18, 18, 0.72);

  /* Text */
  --text: #F5F5F5;             /* clean white */
  --muted: #A8A8A8;            /* neutral gray */
  --text-soft: #DADADA;
  --text-strong: #FFFFFF;
  --text-on-accent: #0A0A0A;

  /* UI Elements */
  --border: rgba(201, 162, 39, 0.2); /* subtle gold border */
  --danger: #B94A48;           /* refined red (not too loud) */

  /* Shape */
  --radius: 14px;
  --radius-sm: 8px;

  /* Depth */
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
}

html,
body,
#root {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% -10%, rgba(var(--accent-rgb), 0.18) 0%, transparent 38%),
    radial-gradient(circle at 85% 0%, rgba(var(--accent-rgb), 0.08) 0%, transparent 42%),
    var(--bg);
  line-height: 1.45;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 0.5px, transparent 0.5px);
  background-size: 3px 3px;
}

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

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

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

.app-shell {
  position: relative;
  isolation: isolate;
}

main {
  min-height: 70vh;
}

.section-block {
  padding: 3.6rem 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.2rem;
  margin-bottom: 1.6rem;
}

.section-head.compact {
  margin-top: 2.8rem;
}

.section-head h1,
.section-head h2,
.section-head h3,
h1,
h2,
h3,
h4,
h5 {
  margin: 0;
  letter-spacing: 0.01em;
}

.section-head p,
p {
  margin: 0;
  color: var(--muted);
}

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

.small {
  font-size: 0.84rem;
}

.card {
  background: linear-gradient(170deg, rgba(22, 22, 22, 0.94), rgba(11, 11, 11, 0.96));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn-sm {
  padding: 0.46rem 0.88rem;
  font-size: 0.84rem;
}

.btn-md {
  padding: 0.64rem 1.18rem;
  font-size: 0.92rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-strong), var(--accent-deep));
  color: var(--text-on-accent);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ebc96a, #9f7a22);
}

.btn-outline {
  background: transparent;
  border-color: rgba(var(--accent-rgb), 0.55);
  color: var(--accent);
}

.btn-outline:hover {
  border-color: rgba(var(--accent-rgb), 0.85);
  background: rgba(var(--accent-rgb), 0.08);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.full-width {
  width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 24;
  backdrop-filter: blur(10px);
  background: linear-gradient(
    180deg,
    rgba(5, 5, 5, 0.92) 0%,
    rgba(5, 5, 5, 0.78) 100%
  );
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.14);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 74px;
}

.brand-lockup {
  display: grid;
  gap: 0.15rem;
}

.brand-title {
  font-family: 'Times New Roman', serif;
  letter-spacing: 0.1em;
  font-size: 1.08rem;
}

.brand-caption {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  gap: 0.8rem;
}

.nav-link {
  color: var(--text-soft);
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  font-size: 0.86rem;
}

.nav-link.active,
.nav-link:hover {
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--text-strong);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.hero {
  position: relative;
  min-height: min(100vh, 860px);
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.15);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('./assets/hero-drive-tuner.svg');
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
  filter: brightness(0.34) saturate(0.75);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 24% 30%, rgba(var(--accent-rgb), 0.14), transparent 38%),
    linear-gradient(90deg, var(--surface-overlay), var(--surface-overlay-soft));
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(740px, 92vw);
  padding: 2rem 0;
}

.hero-kicker {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
}

.hero-title {
  font-family: 'Times New Roman', serif;
  font-size: clamp(2.8rem, 9vw, 6.6rem);
  letter-spacing: 0.12em;
  font-weight: 500;
  line-height: 0.95;
  margin: 0.7rem 0 1rem;
}

.hero-tagline {
  max-width: 54ch;
  color: var(--text-soft);
  font-size: 1.05rem;
}

.hero-cta {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: stretch;
}

.hero-cta-btn {
  position: relative;
  min-width: 258px;
  padding: 0.9rem 1.15rem;
  border-radius: 14px;
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  display: grid;
  gap: 0.16rem;
  overflow: hidden;
  backdrop-filter: blur(4px);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.hero-cta-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 45%);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.hero-cta-btn::after {
  content: '';
  position: absolute;
  top: -140%;
  left: -38%;
  width: 34%;
  height: 320%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.34), transparent);
  transform: rotate(18deg) translateX(-230%);
  transition: transform 0.82s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-cta-btn:hover {
  transform: translateY(-2px);
}

.hero-cta-btn:hover::before {
  opacity: 1;
}

.hero-cta-btn:hover::after {
  transform: rotate(18deg) translateX(460%);
}

.hero-cta-btn:focus-visible {
  outline: 2px solid rgba(var(--accent-rgb), 0.78);
  outline-offset: 2px;
}

.hero-cta-label {
  position: relative;
  z-index: 1;
  font-size: 0.96rem;
  font-weight: 640;
  letter-spacing: 0.02em;
}

.hero-cta-meta {
  position: relative;
  z-index: 1;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-cta-explore {
  color: var(--text-on-accent);
  background: linear-gradient(135deg, #f0cb67 0%, var(--accent) 45%, var(--accent-deep) 100%);
  border-color: rgba(var(--accent-rgb), 0.5);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.hero-cta-explore .hero-cta-meta {
  color: rgba(10, 10, 10, 0.72);
}

.hero-cta-explore:hover {
  border-color: rgba(var(--accent-rgb), 0.78);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.hero-cta-beans {
  color: var(--text);
  background: linear-gradient(150deg, rgba(22, 22, 22, 0.92) 0%, rgba(10, 10, 10, 0.88) 100%);
  border-color: rgba(var(--accent-rgb), 0.48);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hero-cta-beans .hero-cta-meta {
  color: var(--accent);
}

.hero-cta-beans:hover {
  border-color: rgba(var(--accent-rgb), 0.86);
  box-shadow: 0 13px 26px rgba(0, 0, 0, 0.31), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.story-panel {
  margin-top: 2.4rem;
  margin-bottom: 2.4rem;
  padding: 2.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(130deg, rgba(22, 22, 22, 0.94), rgba(10, 10, 10, 0.96));
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
}

.story-panel h2 {
  font-family: 'Times New Roman', serif;
  margin-bottom: 0.6rem;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.filters {
  padding: 1.25rem;
}

.filters-header {
  margin-bottom: 1.05rem;
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.8rem;
}

label {
  display: grid;
  gap: 0.4rem;
  color: var(--text-soft);
  font-size: 0.84rem;
}

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

input,
select,
textarea {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 15, 15, 0.72);
  color: var(--text);
  padding: 0.65rem 0.72rem;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(var(--accent-rgb), 0.34);
  outline-offset: 1px;
}

.range-field {
  align-self: end;
}

.results-head {
  margin: 0.9rem 0 1rem;
}

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

.product-card {
  overflow: hidden;
}

.product-media-wrap {
  position: relative;
  cursor: pointer;
}

.product-media {
  width: 100%;
  aspect-ratio: 1.45;
  object-fit: cover;
}

.wishlist-btn {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(10, 10, 10, 0.76);
  color: var(--text);
  cursor: pointer;
}

.wishlist-btn.active {
  border-color: rgba(var(--accent-rgb), 0.7);
  color: var(--accent);
}

.product-content {
  padding: 0.9rem;
  display: grid;
  gap: 0.7rem;
}

.product-topline {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.pill {
  border: 1px solid rgba(var(--accent-rgb), 0.42);
  color: var(--accent);
  border-radius: 999px;
  padding: 0.15rem 0.54rem;
  font-size: 0.69rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pill.alt {
  border-color: rgba(255, 255, 255, 0.2);
  color: #d6cfc6;
}

.product-content h3 {
  font-size: 1.07rem;
}

.product-content p {
  font-size: 0.87rem;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.pair-note {
  color: var(--accent);
  font-size: 0.79rem;
}

.pairing-wrap {
  display: grid;
  gap: 0.32rem;
}

.pairing-label {
  color: var(--accent);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pairing-chips,
.bean-note-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.36rem;
}

.chip {
  border: 1px solid rgba(var(--accent-rgb), 0.33);
  border-radius: 999px;
  padding: 0.2rem 0.58rem;
  font-size: 0.72rem;
  color: var(--accent);
}

.product-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  margin-top: 0.2rem;
}

.bean-links a {
  color: var(--accent);
  font-size: 0.82rem;
}

.recent-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.recent-card {
  overflow: hidden;
}

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

.recent-card div {
  padding: 0.75rem;
  display: grid;
  gap: 0.45rem;
}

.recent-card a {
  color: var(--accent);
  font-size: 0.82rem;
}

.skeleton-card {
  padding: 0.85rem;
}

.skeleton-media {
  height: 190px;
  border-radius: 10px;
  margin-bottom: 0.8rem;
  background: rgba(255, 255, 255, 0.07);
}

.skeleton-line {
  height: 14px;
  border-radius: 10px;
  margin-bottom: 0.56rem;
  background: rgba(255, 255, 255, 0.07);
}

.skeleton-line.short {
  width: 70%;
}

.skeleton-actions {
  height: 38px;
  border-radius: 10px;
  margin-top: 0.9rem;
  background: rgba(255, 255, 255, 0.07);
}

.shimmer {
  position: relative;
  overflow: hidden;
}

.shimmer::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.11), transparent);
  animation: shimmer 1.3s infinite;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

.empty-state,
.not-found,
.checkout-empty {
  padding: 1.6rem;
  text-align: center;
}

.drawer-backdrop,
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 5, 0.7);
  z-index: 90;
}

.drawer-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(460px, 100vw);
  z-index: 91;
  display: grid;
  grid-template-rows: auto 1fr;
  background: linear-gradient(180deg, rgba(16, 16, 16, 0.98), rgba(8, 8, 8, 0.98));
  border-left: 1px solid rgba(var(--accent-rgb), 0.24);
}

.drawer-head,
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1rem 0.8rem;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.12);
}

.icon-btn {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  width: 34px;
  height: 34px;
  color: var(--text);
  background: transparent;
  cursor: pointer;
}

.drawer-content {
  overflow-y: auto;
  padding: 1rem;
}

.empty-cart {
  display: grid;
  gap: 0.8rem;
  padding-top: 0.5rem;
}

.cart-lines {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

.cart-line {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.58rem;
}

.cart-line img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 10px;
}

.cart-line p {
  font-size: 0.78rem;
}

.qty-stepper {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 0.3rem;
}

.qty-stepper button {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  min-width: 30px;
  height: 28px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
}

.remove-line {
  min-width: 56px !important;
  font-size: 0.72rem;
}

.cart-summary {
  margin-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.9rem;
  display: grid;
  gap: 0.58rem;
}

.cart-summary > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.total-row {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 0.5rem;
}

.checkout-page,
.admin-page,
.shop-page {
  padding-bottom: 3rem;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1rem;
}

.checkout-steps {
  padding: 0.8rem;
  align-self: start;
  position: sticky;
  top: 86px;
}

.step-pill {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border-radius: 10px;
  padding: 0.68rem;
  color: var(--text-soft);
}

.step-pill span {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: grid;
  place-items: center;
}

.step-pill.active {
  background: rgba(var(--accent-rgb), 0.14);
}

.checkout-main {
  padding: 1.25rem;
}

.checkout-step-content {
  display: grid;
  gap: 1rem;
}

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

.full-span {
  grid-column: span 2;
}

.checkbox-label {
  align-items: center;
  display: flex;
  gap: 0.5rem;
}

.checkbox-label input {
  width: auto;
}

.checkout-nav {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
}

.shipping-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.shipping-option {
  text-align: left;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  padding: 0.8rem;
  cursor: pointer;
}

.shipping-option.active {
  border-color: rgba(var(--accent-rgb), 0.7);
  background: rgba(var(--accent-rgb), 0.1);
}

.review-lines {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.56rem;
}

.review-lines li,
.review-summary > div {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
}

.review-summary {
  display: grid;
  gap: 0.56rem;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding-top: 0.9rem;
}

.order-success {
  display: grid;
  gap: 0.8rem;
}

.bean-detail {
  padding: 2.1rem 0 3rem;
  display: grid;
  gap: 1rem;
}

.bean-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  overflow: hidden;
}

.bean-hero img {
  width: 100%;
  min-height: 420px;
  object-fit: cover;
}

.bean-hero-content {
  padding: 1.25rem;
  display: grid;
  align-content: start;
  gap: 0.8rem;
}

.bean-hero-content h1 {
  font-family: 'Times New Roman', serif;
  font-size: clamp(1.7rem, 2.5vw, 2.3rem);
}

.bean-config-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.bean-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.pairings-card {
  padding: 1.2rem;
}

.pair-drink-grid {
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.pair-drink-item {
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.admin-layout {
  padding: 2.1rem 0 3rem;
  display: grid;
  gap: 1rem;
}

.admin-head {
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.admin-tabs {
  display: flex;
  gap: 0.48rem;
  flex-wrap: wrap;
}

.tab-btn {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
  padding: 0.5rem 0.86rem;
  cursor: pointer;
}

.tab-btn.active {
  border-color: rgba(var(--accent-rgb), 0.7);
  background: rgba(var(--accent-rgb), 0.1);
}

.admin-tab-body {
  padding: 1rem;
  display: grid;
  gap: 1rem;
}

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

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.56rem;
  text-align: left;
  font-size: 0.86rem;
}

.inventory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.72rem;
}

.inventory-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0.7rem;
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  gap: 0.5rem;
}

.inventory-actions {
  display: flex;
  gap: 0.48rem;
}

.analytics-wrap {
  padding: 1rem;
  display: grid;
  gap: 1rem;
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.65rem;
}

.analytics-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.75rem;
  display: grid;
  gap: 0.22rem;
}

.analytics-card strong {
  font-size: 1.06rem;
}

.origin-share {
  display: grid;
  gap: 0.62rem;
}

.origin-line {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  align-items: center;
  gap: 0.6rem;
}

.bar-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent-strong));
}

.site-footer {
  border-top: 1px solid rgba(var(--accent-rgb), 0.2);
  margin-top: 2.6rem;
  padding: 2rem 0 2.4rem;
  background: rgba(8, 8, 8, 0.82);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 1rem;
}

.footer-grid h4,
.footer-grid h5 {
  margin-bottom: 0.4rem;
  color: var(--accent);
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(520px, 92vw);
  z-index: 92;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(18, 18, 18, 0.98), rgba(8, 8, 8, 0.98));
  border: 1px solid rgba(var(--accent-rgb), 0.24);
}

.modal-content {
  padding: 1rem;
}

.luxury-mode {
  --shadow: 0 24px 52px rgba(0, 0, 0, 0.42);
}

.luxury-mode .hero-overlay {
  background: radial-gradient(circle at 28% 24%, rgba(var(--accent-rgb), 0.2), transparent 42%),
    linear-gradient(90deg, rgba(5, 5, 5, 0.84), rgba(5, 5, 5, 0.34));
}

.luxury-mode .card {
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.42);
}

@media (max-width: 1080px) {
  .product-grid,
  .inventory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

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

  .bean-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 0.55rem 0;
  }

  .main-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }

  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .checkout-steps {
    position: static;
    display: flex;
    gap: 0.45rem;
    overflow-x: auto;
  }

  .step-pill {
    min-width: 160px;
  }

  .pair-drink-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .product-grid,
  .recent-grid,
  .analytics-grid,
  .inventory-grid,
  .filters-grid,
  .form-grid,
  .shipping-methods {
    grid-template-columns: 1fr;
  }

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

  .hero {
    min-height: 86vh;
  }

  .hero-tagline {
    font-size: 0.98rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta-btn {
    width: 100%;
    min-width: 0;
  }

  .hero-cta-meta {
    font-size: 0.63rem;
  }

  .story-panel {
    padding: 1.2rem;
    flex-direction: column;
    align-items: start;
  }

  .admin-head {
    flex-direction: column;
    align-items: start;
  }
}
