:root {
  --ink: #211a1b;
  --ink-soft: #675c59;
  --moon: #f1e9dc;
  --paper: #fbf8f1;
  --green: #702d38;
  --green-dark: #4e202a;
  --copper: #b88a49;
  --line: #e5dbcc;
  --danger: #a63d40;
  --warning: #9a6a18;
  --success-bg: #e9f4ed;
  --danger-bg: #f9e9e9;
  --warning-bg: #fff5dc;
  --shadow: 0 18px 50px rgba(40, 23, 24, 0.14);
  --shadow-soft: 0 8px 28px rgba(40, 23, 24, 0.08);
  --radius: 18px;
  --radius-small: 12px;
  --container: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.55;
}

body.store-body {
  background:
    radial-gradient(circle at top right, #eee7d8 0, transparent 35%),
    var(--moon);
}

img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  max-width: 100%;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

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

p,
h1,
h2,
h3,
h4 {
  overflow-wrap: anywhere;
}

h1,
h2,
h3,
h4 {
  line-height: 1.18;
}

.hidden {
  display: none !important;
}

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

.text-link {
  color: var(--green-dark);
  font-weight: 700;
}

.text-link:hover {
  text-decoration: underline;
}

.container,
.store-container {
  width: min(var(--container), calc(100% - 32px));
  margin-inline: auto;
}

.store-container {
  max-width: var(--container);
}

/* =========================================================================
   AUTHENTICATION
   ========================================================================= */

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 15% 15%, rgba(181, 107, 69, 0.12), transparent 30%),
    radial-gradient(circle at 85% 85%, rgba(47, 111, 79, 0.12), transparent 30%),
    var(--moon);
}

.auth-card {
  width: min(100%, 430px);
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.auth-card .brand {
  padding: 30px;
}

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

.auth-card .brand {
  background: var(--ink);
}

.brand-mark,
.brand-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--copper);
  color: white;
  font-size: 24px;
}

.brand h1 {
  margin: 0;
  font-size: 23px;
}

.brand p {
  margin: 5px 0 0;
  opacity: 0.75;
  font-size: 13px;
}

.auth-content {
  padding: 30px;
}

.auth-content h2 {
  margin: 0 0 7px;
  font-size: 28px;
}

.auth-content .muted {
  margin: 0 0 25px;
}

form {
  display: grid;
  gap: 9px;
}

label {
  font-weight: 600;
  font-size: 14px;
  margin-top: 8px;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: white;
  color: var(--ink);
  outline: none;
}

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

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(47, 111, 79, 0.12);
}

.auth-content button[type="submit"] {
  width: 100%;
  margin-top: 14px;
  border: 0;
  border-radius: 11px;
  padding: 14px;
  background: var(--green);
  color: white;
  font-weight: 700;
}

.auth-content button[type="submit"]:hover {
  background: var(--green-dark);
}

button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.auth-switch {
  text-align: center;
  margin: 25px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.auth-switch a {
  color: var(--green-dark);
  font-weight: 700;
}

.message,
.form-message {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
}

.message.success,
.form-message.success {
  background: var(--success-bg);
  color: var(--green-dark);
}

.message.error,
.form-message.error {
  background: var(--danger-bg);
  color: var(--danger);
}

/* =========================================================================
   HEADER / NAVIGATION
   ========================================================================= */

.store-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 253, 248, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.store-header-inner,
.nav-inner {
  width: min(var(--container), calc(100% - 32px));
  min-height: 76px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.store-logo {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  line-height: 1;
}

.logo-main {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.logo-sub {
  margin-top: 6px;
  color: var(--copper);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.22em;
}

.store-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.store-nav > a {
  position: relative;
  min-height: 42px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 12px;
  color: var(--ink);
  white-space: nowrap;
  font-size: 0.92rem;
  font-weight: 600;
  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.store-nav > a i {
  flex: 0 0 auto;
  font-size: 1.08rem;
  line-height: 1;
}

.store-nav > a:hover {
  background: rgba(22, 50, 79, 0.08);
  color: var(--green-dark);
  transform: translateY(-1px);
}

.store-nav > a.active {
  background: var(--ink);
  color: var(--paper);
}

.store-nav .cart-link {
  position: relative;
}

.store-nav .cart-count {
  position: absolute;
  top: 2px;
  right: 4px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--copper);
  color: white;
  border: 2px solid var(--paper);
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1;
}

.store-nav > a:focus-visible,
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--copper);
  outline-offset: 2px;
}

.admin-nav > a {
  min-width: 42px;
}

/* =========================================================================
   GENERAL STORE ELEMENTS
   ========================================================================= */

.eyebrow {
  margin: 0 0 9px;
  color: var(--copper);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.page-heading {
  margin-bottom: 30px;
}

.page-heading h1,
.shop-heading h1,
.checkout-heading h1 {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3.3rem);
}

.page-heading p:not(.eyebrow) {
  color: var(--ink-soft);
}

.store-button,
.button,
.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-weight: 750;
  line-height: 1.2;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}

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

.store-button.primary,
.button.primary,
.btn-primary {
  background: var(--green);
  color: white;
}

.store-button.primary:hover,
.button.primary:hover,
.btn-primary:hover {
  background: var(--green-dark);
}

.store-button.secondary,
.button.secondary,
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.store-button.secondary:hover,
.button.secondary:hover,
.btn-secondary:hover {
  background: white;
  border-color: #cfc6b6;
}

.full-width {
  width: 100%;
}

/* =========================================================================
   HOME
   ========================================================================= */

.store-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 30%, rgba(181, 107, 69, 0.18), transparent 25%),
    linear-gradient(135deg, #f4efe3 0%, #fffdf8 60%, #edf2eb 100%);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  min-height: 480px;
  padding-top: 70px;
  padding-bottom: 70px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  align-items: center;
  gap: 60px;
}

.hero-copy h1 {
  max-width: 720px;
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
}

.hero-copy h1 span {
  display: block;
  color: var(--green);
}

.hero-text {
  max-width: 620px;
  margin: 25px 0 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

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

.hero-card {
  min-height: 330px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(22, 50, 79, 0.12);
  border-radius: 28px;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.82), transparent 38%),
    var(--ink);
  box-shadow: var(--shadow);
}

.liquor-symbol {
  width: 190px;
  height: 190px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--copper);
  background: var(--moon);
  font-family: Georgia, serif;
  font-size: 8rem;
  line-height: 1;
  box-shadow:
    0 0 0 18px rgba(244, 239, 227, 0.08),
    0 20px 60px rgba(0, 0, 0, 0.2);
}

.featured-section,
.related-section,
.shop-section {
  padding: 70px 0;
}

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

.section-heading h2 {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.section-link {
  flex: 0 0 auto;
  color: var(--green-dark);
  font-weight: 750;
}

.section-link:hover {
  text-decoration: underline;
}

.store-benefits {
  padding: 55px 0 75px;
  background: var(--moon);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.benefit-card {
  padding: 25px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.benefit-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 15px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--ink);
  color: var(--moon);
  font-size: 1.25rem;
}

.benefit-card h3 {
  margin: 0 0 7px;
}

.benefit-card p {
  margin: 0;
  color: var(--ink-soft);
}

/* =========================================================================
   PRODUCT CARDS
   ========================================================================= */

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

.product-card {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.product-image {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--moon);
}

.product-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.product-placeholder,
.product-large-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  background:
    radial-gradient(circle at center, white 0, transparent 50%),
    var(--moon);
  font-family: Georgia, serif;
  font-size: 3rem;
}

.product-info {
  min-width: 0;
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-sku,
.product-detail-sku {
  margin: 0 0 7px;
  color: var(--ink-soft);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.product-info h3 {
  margin: 0;
  font-size: 1.02rem;
}

.product-info h3 a:hover {
  color: var(--green);
}

.product-description {
  color: var(--ink-soft);
}

.product-bottom {
  margin-top: auto;
  padding-top: 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.product-price,
.product-detail-price {
  color: var(--green-dark);
  font-weight: 800;
}

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

.stock-status,
.stock-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--success-bg);
  color: var(--green-dark);
  font-size: 0.72rem;
  font-weight: 750;
}

.stock-status.out {
  background: var(--danger-bg);
  color: var(--danger);
}

.product-loading,
.loading-state {
  min-height: 140px;
  display: grid;
  place-items: center;
  color: var(--ink-soft);
}

.products-error,
.notice.error,
.checkout-error {
  padding: 15px 17px;
  border-radius: 12px;
  background: var(--danger-bg);
  color: var(--danger);
}

/* =========================================================================
   SHOP
   ========================================================================= */

.shop-heading {
  padding: 55px 0 35px;
  background: var(--moon);
  border-bottom: 1px solid var(--line);
}

.shop-heading p:not(.eyebrow) {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--ink-soft);
}

.shop-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.shop-filters {
  position: sticky;
  top: 96px;
  padding: 21px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 20px;
}

.filter-header h2 {
  margin: 0;
  font-size: 1.05rem;
}

.clear-filter {
  border: 0;
  background: none;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.filter-label {
  display: block;
  margin: 16px 0 7px;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 750;
}

.store-input,
.sort-select {
  min-height: 43px;
}

.checkbox-filter,
.check-control {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  font-size: 0.85rem;
  cursor: pointer;
}

.checkbox-filter input,
.check-control input {
  width: 17px;
  height: 17px;
  accent-color: var(--green);
}

.results-toolbar {
  min-height: 43px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.results-toolbar p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.sort-select {
  width: auto;
  min-width: 175px;
}

.shop-empty,
.cart-empty,
.checkout-message {
  padding: 55px 25px;
  text-align: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.empty-symbol,
.cart-empty-symbol,
.checkout-message-symbol,
.product-message-symbol {
  margin-bottom: 12px;
  color: var(--copper);
  font-family: Georgia, serif;
  font-size: 3rem;
}

.shop-empty h2,
.cart-empty h2,
.checkout-message h2 {
  margin: 0 0 8px;
}

.shop-empty p,
.cart-empty p {
  color: var(--ink-soft);
}

/* =========================================================================
   PRODUCT DETAIL
   ========================================================================= */

.product-page {
  padding: 55px 0 75px;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 55px;
  align-items: start;
}

.product-gallery {
  min-width: 0;
}

.product-main-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: block;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--moon);
}

.product-main-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.product-main-image .product-large-placeholder {
  width: 100%;
  height: 100%;
}

.product-thumbnails {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
}

.product-thumbnails button,
.product-thumbnail {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 10px;
  background: var(--moon);
  cursor: pointer;
}

.product-thumbnails button.active,
.product-thumbnail.active {
  border-color: var(--green);
}

.product-thumbnails img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.product-detail-info h1 {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
}

.product-detail-price {
  margin: 20px 0 10px;
  font-size: 1.6rem;
}

.product-detail-stock {
  margin-bottom: 25px;
  font-weight: 750;
}

.product-description {
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.product-meta {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.product-meta > div {
  padding: 13px;
  background: var(--moon);
  border-radius: 11px;
}

.product-meta span {
  display: block;
  margin-bottom: 4px;
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.product-meta strong {
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}

.purchase-area {
  margin-top: 25px;
}

.quantity-control {
  width: fit-content;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
}

.quantity-control button {
  width: 42px;
  height: 44px;
  border: 0;
  background: var(--moon);
  color: var(--ink);
  font-size: 1.1rem;
}

.quantity-control input {
  width: 58px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  text-align: center;
}

.add-cart-button {
  width: 100%;
  margin-top: 12px;
}

.cart-message {
  margin-top: 12px;
  padding: 11px 13px;
  border-radius: 10px;
  background: var(--success-bg);
  color: var(--green-dark);
  font-size: 0.85rem;
}

/* =========================================================================
   CART
   ========================================================================= */

.cart-page {
  padding: 55px 0 75px;
}

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

.cart-items {
  min-width: 0;
}

.cart-item {
  min-width: 0;
  padding: 17px;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 17px;
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
}

.cart-item + .cart-item {
  margin-top: 12px;
}

.cart-item-image {
  width: 92px;
  height: 92px;
  overflow: hidden;
  border-radius: 11px;
  background: var(--moon);
}

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

.cart-item-details {
  min-width: 0;
}

.cart-item-sku {
  margin: 0 0 4px;
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.cart-item-name {
  display: block;
  margin-bottom: 5px;
  font-weight: 750;
}

.cart-item-price {
  margin: 0;
  color: var(--green-dark);
  font-size: 0.88rem;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-quantity {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
}

.cart-quantity button {
  width: 34px;
  height: 36px;
  border: 0;
  background: var(--moon);
}

.cart-quantity span {
  min-width: 35px;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 700;
}

.remove-item {
  border: 0;
  background: transparent;
  color: var(--danger);
  cursor: pointer;
}

.cart-item-total {
  color: var(--green-dark);
  font-weight: 800;
  white-space: nowrap;
}

.cart-summary,
.checkout-summary {
  position: sticky;
  top: 96px;
  padding: 23px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.summary-row,
.checkout-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 9px 0;
  color: var(--ink-soft);
}

.summary-divider,
.checkout-summary-divider {
  height: 1px;
  margin: 13px 0;
  background: var(--line);
}

.summary-total,
.checkout-summary-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  color: var(--ink);
  font-size: 1.12rem;
}

.checkout-button {
  width: 100%;
  margin-top: 18px;
}

.continue-button {
  width: 100%;
  margin-top: 9px;
}

.checkout-note,
.checkout-security-note {
  margin: 15px 0 0;
  color: var(--ink-soft);
  font-size: 0.76rem;
}

/* =========================================================================
   CHECKOUT
   ========================================================================= */

.checkout-page {
  padding: 50px 0 75px;
}

.checkout-heading {
  margin-bottom: 30px;
}

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

.checkout-card {
  padding: 25px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.checkout-card + .checkout-card {
  margin-top: 18px;
}

.checkout-card h2 {
  margin: 0 0 6px;
}

.checkout-card-description {
  margin-top: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

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

.checkout-field label {
  margin-top: 8px;
}

.delivery-map {
  width: 100%;
  min-height: 300px;
  margin-top: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--moon);
}

.delivery-map-panel {
  display: grid;
  gap: 8px;
}

.delivery-address-results {
  display: grid;
  max-height: 240px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  box-shadow: var(--shadow-soft);
}

.delivery-address-results.hidden {
  display: none;
}

.delivery-address-result {
  padding: 11px 13px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.delivery-address-result:last-child {
  border-bottom: 0;
}

.delivery-address-result:hover,
.delivery-address-result:focus-visible {
  background: var(--moon);
}

.delivery-location-message {
  color: var(--ink-soft);
  line-height: 1.5;
}

.place-order-button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.checkout-form-section .checkout-card form {
  gap: 10px;
}

.checkout-error {
  margin-top: 14px;
}

.place-order-button {
  width: 100%;
  margin-top: 18px;
}

.checkout-item {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 11px 0;
}

.checkout-item-image {
  width: 62px;
  height: 62px;
  overflow: hidden;
  border-radius: 9px;
  background: var(--moon);
}

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

.checkout-item-info {
  min-width: 0;
}

.checkout-item-info strong {
  display: block;
  overflow-wrap: anywhere;
}

.checkout-item-info small {
  color: var(--ink-soft);
}

.checkout-success {
  max-width: 600px;
  margin: 40px auto;
  padding: 45px 25px;
  text-align: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.success-symbol {
  width: 70px;
  height: 70px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--success-bg);
  color: var(--green-dark);
  font-size: 2rem;
  font-weight: 800;
}

.success-order-number,
.success-total {
  margin: 18px auto 0;
  padding: 15px;
  border-radius: 12px;
  background: var(--moon);
}

.success-order-number span,
.success-total span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.75rem;
}

.success-actions {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

/* =========================================================================
   ACCOUNT / CUSTOMER ORDERS
   ========================================================================= */

.account-page {
  position: relative;
  padding-top: 58px;
  padding-bottom: 90px;
}

.account-page::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(720px, 100%);
  height: 220px;
  transform: translateX(-50%);
  pointer-events: none;
  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(181, 107, 69, 0.13),
      transparent 68%
    );
}

.account-dashboard {
  position: relative;
  display: grid;
  gap: 24px;
}

/* -------------------------------------------------------------------------
   Customer profile hero
   ------------------------------------------------------------------------- */

.account-profile-card {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  padding: 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  background:
    radial-gradient(
      circle at 92% 12%,
      rgba(181, 107, 69, 0.22),
      transparent 28%
    ),
    linear-gradient(135deg, #16324f 0%, #214966 58%, #234f39 100%);
  color: white;
  border: 1px solid rgba(22, 50, 79, 0.16);
  border-radius: 26px;
  box-shadow: 0 24px 60px rgba(22, 50, 79, 0.18);
}

.account-profile-card::before {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  right: -70px;
  bottom: -120px;
  border: 1px solid rgba(244, 239, 227, 0.18);
  border-radius: 50%;
}

.account-profile-card::after {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  right: 28px;
  top: -72px;
  border: 1px solid rgba(244, 239, 227, 0.12);
  border-radius: 50%;
}

.account-avatar,
.customer-avatar {
  position: relative;
  z-index: 1;
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    linear-gradient(145deg, var(--copper), #d18a61);
  color: white;
  border: 4px solid rgba(255, 253, 248, 0.18);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  font-size: 1.75rem;
}

.account-profile-info {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.account-profile-info h2 {
  margin: 0;
  color: white;
  font-size: clamp(1.65rem, 4vw, 2.15rem);
  letter-spacing: -0.025em;
}

.account-profile-info p {
  margin: 7px 0 0;
  color: rgba(255, 255, 255, 0.76);
  overflow-wrap: anywhere;
}

/* -------------------------------------------------------------------------
   Account information
   ------------------------------------------------------------------------- */

.account-info-grid,
.customer-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.account-info-card,
.account-card {
  position: relative;
  padding: 24px;
  background: rgba(255, 253, 248, 0.92);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 10px 32px rgba(22, 50, 79, 0.07);
}

.account-info-card {
  min-height: 145px;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.account-info-card:hover {
  transform: translateY(-3px);
  border-color: rgba(181, 107, 69, 0.38);
  box-shadow: 0 16px 38px rgba(22, 50, 79, 0.10);
}

.account-info-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--moon);
  color: var(--green-dark);
  border: 1px solid rgba(181, 107, 69, 0.12);
  font-size: 1rem;
}

.account-info-card span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.account-info-card strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 1rem;
  overflow-wrap: anywhere;
}

/* -------------------------------------------------------------------------
   Customer actions
   ------------------------------------------------------------------------- */

.account-actions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.account-action {
  min-width: 0;
  min-height: 78px;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(22, 50, 79, 0.055);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.account-action:hover {
  transform: translateY(-2px);
  border-color: var(--green);
  background: #fbfdfb;
  box-shadow: 0 14px 32px rgba(22, 50, 79, 0.09);
}

.account-action > i:first-child {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--moon);
  color: var(--green-dark);
  font-size: 1rem;
}

.account-action small {
  display: block;
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 500;
}

.account-action-danger {
  color: var(--danger);
}

.account-action-danger > i:first-child {
  color: var(--danger);
  background: var(--danger-bg);
}

/* -------------------------------------------------------------------------
   Account empty/error state
   ------------------------------------------------------------------------- */

.account-empty-icon {
  width: 58px;
  height: 58px;
  margin-bottom: 17px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--danger-bg);
  color: var(--danger);
  font-size: 1.4rem;
}

/* -------------------------------------------------------------------------
   Orders
   ------------------------------------------------------------------------- */

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

.order-card {
  padding: 22px;
}

.order-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.order-card-top h2 {
  margin: 0;
}

.order-card-top p {
  margin: 0;
}

.order-status,
.status-badge,
.payment-badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--moon);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: capitalize;
}

.order-status.pending,
.status-badge.pending {
  background: var(--warning-bg);
  color: var(--warning);
}

.order-status.confirmed,
.order-status.processing,
.order-status.shipped {
  background: #eaf0f7;
  color: var(--ink);
}

.order-status.delivered,
.status-badge.delivered {
  background: var(--success-bg);
  color: var(--green-dark);
}

.order-status.cancelled,
.status-badge.cancelled {
  background: var(--danger-bg);
  color: var(--danger);
}

.payment-badge {
  background: #edf2f7;
}

.order-card-meta {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.order-card-meta div {
  padding: 12px;
  background: var(--moon);
  border-radius: 10px;
}

.order-card-meta span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.order-card-actions {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
}

.order-item-row {
  padding: 13px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 15px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

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

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 22px;
  color: var(--green-dark);
  font-weight: 700;
}

.order-notes {
  margin: 0;
  color: var(--ink-soft);
  white-space: pre-wrap;
}

/* =========================================================================
   FOOTER
   ========================================================================= */

.store-footer {
  padding: 45px 0;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.82);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a:hover {
  color: white;
}

/* =========================================================================
   ADMIN
   ========================================================================= */

.admin-container {
  padding-top: 45px;
  padding-bottom: 75px;
}

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 25px;
}

.admin-stat-card {
  min-width: 0;
  padding: 20px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  column-gap: 13px;
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  box-shadow: var(--shadow-soft);
}

.admin-stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(47, 111, 79, 0.35);
}

.admin-stat-icon {
  grid-row: span 2;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--moon);
  color: var(--green-dark);
  font-size: 1.2rem;
}

.admin-stat-label {
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 700;
}

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

.admin-section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.admin-panel {
  min-width: 0;
  padding: 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

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

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

.admin-panel-heading h2 {
  margin: 0;
}

.admin-count {
  min-width: 30px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--moon);
  text-align: center;
  font-size: 0.75rem;
  font-weight: 800;
}

.admin-list {
  display: grid;
}

.admin-list-row {
  min-width: 0;
  padding: 13px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid var(--line);
}

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

.admin-list-right {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 9px;
}

.admin-quick-actions {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.admin-action {
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-weight: 750;
}

.admin-action:hover {
  border-color: var(--green);
  color: var(--green-dark);
}

.admin-toolbar {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-search {
  position: relative;
  flex: 1 1 280px;
}

.admin-search i {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-soft);
  pointer-events: none;
}

.admin-search input {
  padding-left: 40px;
}

.admin-toolbar > select {
  width: auto;
  min-width: 150px;
}

.admin-orders-table,
.admin-products-list,
.admin-customers-list {
  display: grid;
}

.admin-order-row,
.admin-product-row,
.admin-customer-row {
  min-width: 0;
  padding: 15px 0;
  display: grid;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid var(--line);
}

.admin-order-row {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.admin-product-row {
  grid-template-columns: 65px minmax(0, 1fr) 110px 120px;
}

.admin-customer-row {
  grid-template-columns: 48px minmax(0, 1fr) auto;
}

.admin-order-row:last-child,
.admin-product-row:last-child,
.admin-customer-row:last-child {
  border-bottom: 0;
}

.admin-order-row:hover,
.admin-product-row:hover,
.admin-customer-row:hover {
  background: #fffefa;
}

.order-main {
  min-width: 0;
}

.order-main strong,
.admin-product-info strong {
  display: block;
  overflow-wrap: anywhere;
}

.order-main small,
.order-meta {
  color: var(--ink-soft);
}

.order-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.78rem;
}

.order-payment-balance {
  display: grid;
  justify-items: end;
}

.order-payment-balance small {
  font-size: 0.72rem;
}

.admin-product-image,
.admin-item-image {
  width: 60px;
  height: 60px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--moon);
  color: var(--ink-soft);
}

.admin-product-image img,
.admin-item-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.admin-product-info {
  min-width: 0;
}

.admin-product-status,
.admin-stock {
  font-size: 0.82rem;
}

.stock-warning {
  color: var(--danger);
  font-weight: 750;
}

.stock-badge.warning {
  background: var(--warning-bg);
  color: var(--warning);
}

.stock-badge.good {
  background: var(--success-bg);
  color: var(--green-dark);
}

.admin-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

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

.payment-method-box {
  padding: 13px;
  margin-bottom: 14px;
  background: var(--moon);
  border-radius: 10px;
}

.customer-detail-grid {
  grid-template-columns: repeat(2, 1fr);
}

.customer-detail-grid > div {
  min-width: 0;
  padding: 15px;
  background: var(--moon);
  border-radius: 11px;
}

.customer-detail-grid span {
  display: block;
  margin-bottom: 4px;
  color: var(--ink-soft);
  font-size: 0.73rem;
}

.customer-detail-grid strong {
  overflow-wrap: anywhere;
}

.admin-items {
  display: grid;
}

.admin-item-row {
  padding: 14px 0;
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) 70px 100px;
  gap: 15px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

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

.admin-item-info {
  min-width: 0;
}

.admin-item-info strong {
  display: block;
  overflow-wrap: anywhere;
}

.admin-item-info small {
  color: var(--ink-soft);
}

.admin-item-qty,
.admin-item-price {
  text-align: right;
}

.admin-total-box {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.admin-total-box > div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 5px 0;
  color: var(--ink-soft);
}

.admin-total-box > .delivery-charge-row {
  margin-top: 4px;
  padding: 9px 10px;
  border-radius: 8px;
  background: rgba(47, 111, 79, 0.08);
  color: var(--green-dark);
}

.admin-total-box .grand-total {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 1.1rem;
}

/* =========================================================================
   MISC / LEGACY COMPATIBILITY
   ========================================================================= */

.good {
  color: var(--green-dark);
}

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

.error {
  color: var(--danger);
}

.out {
  color: var(--danger);
}

.notice {
  margin-bottom: 20px;
  padding: 13px 15px;
  border-radius: 11px;
}

.empty-state {
  padding: 30px 15px;
  text-align: center;
  color: var(--ink-soft);
}

.account-field {
  padding: 14px 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-bottom: 1px solid var(--line);
}

.account-field span {
  color: var(--ink-soft);
  font-size: 13px;
}

.account-field strong {
  font-size: 15px;
  overflow-wrap: anywhere;
}

.account-phone-form {
  display: grid;
  gap: 8px;
  margin-top: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: white;
}

.account-phone-form > label {
  font-weight: 700;
}

.account-phone-form p {
  margin: 0;
}

.account-phone-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.account-phone-controls input {
  flex: 1 1 220px;
  min-width: 0;
}

.account-phone-message {
  min-height: 1.3em;
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */

@media (min-width: 1201px) {
  .store-nav {
    gap: 8px;
  }

  .store-nav > a {
    min-height: 44px;
    padding-inline: 15px;
  }
}

@media (max-width: 1200px) and (min-width: 901px) {
  .store-nav > a {
    padding-inline: 10px;
  }

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

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

@media (max-width: 900px) {
  .store-header-inner,
  .nav-inner {
    min-height: 68px;
    gap: 14px;
  }

  .logo-main {
    font-size: 18px;
  }

  .logo-sub {
    font-size: 7px;
  }

  .store-nav {
    gap: 3px;
  }

  .store-nav > a {
    min-height: 40px;
    padding-inline: 8px;
    gap: 5px;
    font-size: 0.84rem;
  }

  .store-nav > a i {
    font-size: 1rem;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 35px;
    padding-top: 50px;
    padding-bottom: 55px;
  }

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

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

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

  .shop-filters {
    position: static;
  }

  .product-detail {
    grid-template-columns: 1fr;
    gap: 35px;
  }

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

  .cart-summary,
  .checkout-summary {
    position: static;
  }

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

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

  .admin-quick-actions {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .admin-product-row {
    grid-template-columns: 60px minmax(0, 1fr) auto;
  }

  .admin-product-status {
    grid-column: 2 / -1;
  }

  .admin-item-row {
    grid-template-columns: 60px minmax(0, 1fr) auto;
  }

  .admin-item-price {
    grid-column: 3;
  }
}

@media (max-width: 640px) {
  .container,
  .store-container,
  .store-header-inner,
  .nav-inner {
    width: min(100% - 24px, var(--container));
  }

  .store-header-inner,
  .nav-inner {
    min-height: 62px;
    gap: 8px;
  }

  .store-logo {
    min-width: 0;
  }

  .logo-main {
    font-size: 15px;
    letter-spacing: 0.05em;
  }

  .logo-sub {
    margin-top: 4px;
    font-size: 6px;
    letter-spacing: 0.16em;
  }

  .brand-mark,
  .brand-icon {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .store-nav {
    gap: 2px;
  }

  .store-nav > a {
    width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;
    gap: 0;
    border-radius: 10px;
    font-size: 0;
  }

  .store-nav > a i {
    font-size: 1.12rem;
  }

  .store-nav > a span:not(.cart-count) {
    display: none;
  }

  .store-nav .cart-count {
    top: 0;
    right: -1px;
  }

  .auth-page {
    padding: 12px;
  }

  .auth-card {
    border-radius: 18px;
  }

  .auth-card .brand,
  .auth-content {
    padding: 24px;
  }

  .hero-inner {
    padding-top: 40px;
    padding-bottom: 45px;
  }

  .hero-copy h1 {
    font-size: clamp(2.65rem, 14vw, 4.2rem);
  }

  .hero-text {
    font-size: 0.95rem;
  }

  .hero-actions,
  .success-actions {
    flex-direction: column;
  }

  .hero-actions .store-button,
  .success-actions .store-button {
    width: 100%;
  }

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

  .liquor-symbol {
    width: 145px;
    height: 145px;
    font-size: 6rem;
  }

  .featured-section,
  .related-section,
  .shop-section,
  .cart-page,
  .checkout-page,
  .product-page {
    padding-top: 40px;
    padding-bottom: 50px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .product-grid {
    gap: 12px;
  }

  .product-info {
    padding: 14px;
  }

  .product-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .results-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .sort-select {
    width: 100%;
  }

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

  .cart-item {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 12px;
  }

  .cart-item-image {
    width: 68px;
    height: 68px;
  }

  .cart-item-actions {
    grid-column: 1 / -1;
    justify-content: space-between;
  }

  .cart-item-total {
    margin-left: auto;
  }

  .checkout-card {
    padding: 19px;
  }

  .account-profile-card {
    align-items: flex-start;
  }

  .account-info-grid,
  .account-actions-grid,
  .customer-detail-grid {
    grid-template-columns: 1fr;
  }

  .order-card {
    padding: 18px;
  }

  .order-card-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

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

  .order-item-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-container {
    padding-top: 32px;
  }

  .admin-stat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .admin-stat-card {
    padding: 15px;
    grid-template-columns: 38px minmax(0, 1fr);
    column-gap: 10px;
  }

  .admin-stat-icon {
    width: 38px;
    height: 38px;
  }

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

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

  .admin-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-toolbar > select,
  .admin-toolbar .button {
    width: 100%;
  }

  .admin-order-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .admin-order-row .order-meta {
    grid-column: 1 / -1;
  }

  .admin-product-row {
    grid-template-columns: 55px minmax(0, 1fr);
  }

  .admin-product-status,
  .admin-stock {
    grid-column: 2;
  }

  .admin-customer-row {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .admin-customer-row > *:last-child {
    grid-column: 2;
  }

  .admin-item-row {
    grid-template-columns: 55px minmax(0, 1fr);
  }

  .admin-item-qty,
  .admin-item-price {
    grid-column: 2;
    text-align: left;
  }

  input,
  select,
  textarea {
    font-size: 16px;
  }

  .button,
  .btn,
  button {
    min-height: 42px;
  }
}

@media (max-width: 380px) {
  .container,
  .store-container,
  .store-header-inner,
  .nav-inner {
    width: calc(100% - 18px);
  }

  .store-nav {
    gap: 0;
  }

  .store-nav > a {
    width: 36px;
    height: 36px;
    min-height: 36px;
  }

  .store-nav > a i {
    font-size: 1rem;
  }

  .store-nav .cart-count {
    min-width: 16px;
    height: 16px;
    font-size: 0.6rem;
  }

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

  .admin-stat-grid,
  .admin-quick-actions {
    grid-template-columns: 1fr;
  }

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

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

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

  .cart-item-image {
    width: 58px;
    height: 58px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .store-nav > a:hover,
  .product-card:hover,
  .store-button:hover,
  .button:hover,
  .btn:hover {
    transform: none;
  }
}


/* ==========================================================================
   THE BLUE MOON — FINAL ADMIN UI POLISH
   Admin-only overrides. Customer storefront styles remain untouched.
   ========================================================================== */

.admin-page,
.admin-shell {
  min-height: 100%;
}

.admin-shell {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 64px;
}

.admin-nav {
  gap: 6px;
  flex-wrap: wrap;
}

.admin-nav a {
  min-height: 42px;
  padding: 9px 13px;
  border-radius: 10px;
  gap: 7px;
  transition:
    background-color .18s ease,
    color .18s ease,
    transform .18s ease;
}

.admin-nav a:hover {
  transform: translateY(-1px);
}

.admin-nav a.active {
  font-weight: 700;
}

.admin-page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 10px 0 26px;
}

.admin-page-heading h1 {
  margin: 5px 0 7px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.1;
}

.admin-page-heading p {
  margin: 0;
  opacity: .72;
}

.admin-panel {
  background: var(--paper, #fff);
  border: 1px solid rgba(22, 50, 79, .12);
  border-radius: 18px;
  box-shadow: 0 12px 35px rgba(22, 50, 79, .08);
  padding: 22px;
}

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

.admin-panel-header h2 {
  margin: 4px 0 0;
}

.admin-account-layout {
  display: grid;
  grid-template-columns: minmax(220px, .75fr) minmax(0, 1.75fr);
  gap: 22px;
  align-items: stretch;
}

.admin-profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 360px;
}

.admin-profile-avatar {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  margin-bottom: 18px;
  font-size: 2.3rem;
  background: rgba(47, 111, 79, .12);
  color: var(--ledger-green, #2f6f4f);
}

.admin-profile-card h2 {
  margin: 0 0 6px;
  font-size: 1.45rem;
}

.admin-profile-card p {
  margin: 0 0 14px;
  opacity: .68;
  overflow-wrap: anywhere;
}

.admin-role-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(47, 111, 79, .12);
  color: var(--ledger-green, #2f6f4f);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .06em;
}

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

.admin-info-item {
  min-width: 0;
  padding: 15px;
  border: 1px solid rgba(22, 50, 79, .09);
  border-radius: 12px;
  background: rgba(22, 50, 79, .025);
}

.admin-info-item span {
  display: block;
  margin-bottom: 6px;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  opacity: .6;
}

.admin-info-item strong {
  display: block;
  overflow-wrap: anywhere;
}

.admin-account-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(22, 50, 79, .1);
}

.admin-account-actions .btn {
  min-height: 44px;
}


/* Better admin cards/tables/forms */

.admin-shell .admin-stat-card,
.admin-shell .admin-action {
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    border-color .18s ease;
}

.admin-shell .admin-stat-card:hover,
.admin-shell .admin-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(22, 50, 79, .10);
}

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

.admin-shell th {
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  opacity: .65;
}

.admin-shell th,
.admin-shell td {
  padding: 13px 12px;
  border-bottom: 1px solid rgba(22, 50, 79, .09);
  text-align: left;
  vertical-align: middle;
}

.admin-shell tbody tr:hover {
  background: rgba(22, 50, 79, .025);
}


/* Mobile admin layout */

@media (max-width: 900px) {
  .admin-account-layout {
    grid-template-columns: 1fr;
  }

  .admin-profile-card {
    min-height: auto;
    padding: 30px 20px;
  }

  .admin-page-heading {
    align-items: flex-start;
  }
}

@media (max-width: 700px) {
  .admin-shell {
    width: min(100% - 20px, 680px);
    padding-top: 20px;
  }

  .admin-nav {
    width: 100%;
    justify-content: center;
  }

  .admin-nav a {
    flex: 1 1 auto;
    justify-content: center;
    min-width: 78px;
  }

  .admin-nav a span {
    display: inline;
  }

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

  .admin-panel {
    padding: 16px;
    border-radius: 14px;
  }

  .admin-account-actions {
    flex-direction: column;
  }

  .admin-account-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .admin-shell .table-wrapper,
  .admin-shell .admin-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .admin-shell table {
    min-width: 650px;
  }
}

.public-info-page {
  max-width: 860px;
  min-height: 60vh;
  padding-top: clamp(36px, 7vw, 76px);
  padding-bottom: clamp(48px, 8vw, 92px);
}

.public-info-page > h1 {
  margin: 0 0 16px;
  color: var(--ink);
  font-family: var(--bm-font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.12;
}

.public-info-intro {
  max-width: 700px;
  margin: 0 0 30px;
  color: var(--ink-soft);
  font-size: 1.1rem;
  line-height: 1.7;
}

.public-info-card {
  margin-top: 18px;
  padding: clamp(20px, 4vw, 30px);
  border: 1px solid var(--bm-line);
  border-radius: var(--bm-radius-md);
  background: rgba(255, 255, 255, 0.72);
}

.public-info-card h2 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 1.25rem;
}

.public-info-card p,
.public-info-card li {
  color: var(--ink-soft);
  line-height: 1.75;
}

.public-info-card p:last-child {
  margin-bottom: 0;
}

.public-info-card ul {
  padding-left: 1.35rem;
}

.public-info-card a {
  color: var(--bm-green);
  font-weight: 650;
  text-underline-offset: 3px;
}

.contact-details p {
  margin: 8px 0;
  font-size: 1.05rem;
}

.contact-hours {
  margin-top: 20px !important;
  font-size: 0.95rem;
}

.public-info-page + .store-footer .footer-links {
  flex-wrap: wrap;
  row-gap: 12px;
}

html.age-gate-required,
html.age-gate-required body {
  overflow: hidden;
}

html.age-gate-required body > :not(.age-gate-overlay) {
  visibility: hidden !important;
}

.age-gate-overlay {
  position: fixed;
  z-index: 2147483000;
  inset: 0;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: 20px;
  background: rgba(25, 18, 19, 0.88);
  color: var(--ink);
  visibility: visible;
}

.age-gate-panel {
  width: min(100%, 520px);
  padding: clamp(24px, 6vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.age-gate-eyebrow {
  margin: 0 0 12px;
  color: var(--green-dark);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.age-gate-panel h1 {
  margin: 0 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 6vw, 2.4rem);
}

.age-gate-panel p {
  line-height: 1.65;
}

.age-gate-notice {
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.age-gate-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}

.age-gate-button {
  min-height: 48px;
  border: 1px solid var(--green-dark);
  border-radius: var(--radius-small);
  padding: 10px 16px;
  font-weight: 750;
}

.age-gate-yes {
  background: var(--green-dark);
  color: #fff;
}

.age-gate-no {
  background: transparent;
  color: var(--ink);
}

.age-gate-button:focus-visible {
  outline: 3px solid var(--copper);
  outline-offset: 3px;
}

@media (max-width: 480px) {
  .age-gate-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .admin-nav a {
    min-width: 0;
    padding: 8px 9px;
    font-size: .78rem;
  }

  .admin-nav a i {
    font-size: 1rem;
  }

  .admin-page-heading h1 {
    font-size: 1.75rem;
  }
}

/* ==========================================================================
   SEARCH FIELD — FINAL LAYOUT FIX
   Removes accidental vertical space and keeps icon inside the field.
   ========================================================================== */

/* Common search containers */
.search-box,
.search-bar,
.search-wrapper,
.search-input-wrapper,
.search-field,
.product-search,
.shop-search,
.catalog-search,
.filters-search {
  position: relative;
  height: auto;
  min-height: 0;
  margin-bottom: 0;
  padding-bottom: 0;
  overflow: visible;
}

/* Forms inside search areas should not create extra vertical space */
.search-box form,
.search-bar form,
.search-wrapper form,
.search-input-wrapper form,
.search-field form,
.product-search form,
.shop-search form,
.catalog-search form,
.filters-search form {
  position: relative;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
}

/* Actual search input */
.search-box input,
.search-bar input,
.search-wrapper input,
.search-input-wrapper input,
.search-field input,
.product-search input,
.shop-search input,
.catalog-search input,
.filters-search input,
input[type="search"] {
  box-sizing: border-box;
  width: 100%;
  height: 46px;
  min-height: 46px;
  margin: 0;
  padding-top: 0;
  padding-bottom: 0;
  line-height: 46px;
}

/* Prevent search input from creating a giant lower area */
.search-box .form-group,
.search-bar .form-group,
.search-wrapper .form-group,
.search-input-wrapper .form-group,
.search-field .form-group,
.product-search .form-group,
.shop-search .form-group,
.catalog-search .form-group,
.filters-search .form-group {
  margin: 0;
  padding: 0;
  min-height: 0;
}

/* Search icon */
.search-box > i,
.search-bar > i,
.search-wrapper > i,
.search-input-wrapper > i,
.search-field > i,
.product-search > i,
.shop-search > i,
.catalog-search > i,
.filters-search > i {
  position: absolute;
  left: 15px;
  top: 50%;
  z-index: 5;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  transform: translateY(-50%);
  pointer-events: none;
  line-height: 1;
}

/* Search icon when wrapped inside the form */
.search-box form > i,
.search-bar form > i,
.search-wrapper form > i,
.search-input-wrapper form > i,
.search-field form > i,
.product-search form > i,
.shop-search form > i,
.catalog-search form > i,
.filters-search form > i {
  position: absolute;
  left: 15px;
  top: 50%;
  z-index: 5;
  margin: 0;
  padding: 0;
  transform: translateY(-50%);
  pointer-events: none;
  line-height: 1;
}

/* Give text enough room for the icon */
.search-box input,
.search-bar input,
.search-wrapper input,
.search-input-wrapper input,
.search-field input,
.product-search input,
.shop-search input,
.catalog-search input,
.filters-search input {
  padding-left: 44px;
}

/* If the icon is an icon-button, make it invisible as a button */
.search-box button.search-icon,
.search-bar button.search-icon,
.search-wrapper button.search-icon,
.search-input-wrapper button.search-icon,
.search-field button.search-icon,
.product-search button.search-icon,
.shop-search button.search-icon,
.catalog-search button.search-icon,
.filters-search button.search-icon {
  position: absolute;
  left: 7px;
  top: 50%;
  z-index: 6;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
}

/* Search results/status text should sit immediately below */
.search-box + *,
.search-bar + *,
.search-wrapper + *,
.search-input-wrapper + *,
.search-field + *,
.product-search + *,
.shop-search + *,
.catalog-search + *,
.filters-search + * {
  margin-top: 10px;
}

/* Remove accidental fixed heights/min-heights from search sections */
.search-section,
.search-area,
.search-panel,
.catalog-search-area,
.shop-search-area {
  height: auto;
  min-height: 0;
  padding-bottom: 0;
}

/* ==========================================================================
   ADMIN SESSION — GLOBAL NAVIGATION
   ========================================================================== */

.admin-global-link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 13px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
}

.admin-global-link i {
  font-size: 1rem;
}

.admin-session-active .admin-global-link {
  color: var(--ledger-green, #2f6f4f);
  background: rgba(47, 111, 79, .10);
}

.admin-session-active .admin-global-link:hover {
  background: rgba(47, 111, 79, .17);
}

/*
 * Admins should not see customer account/order navigation.
 */
.admin-session-active .admin-customer-control,
.admin-session-active .admin-hide-for-admin {
  display: none !important;
}

/*
 * Admin account replacement.
 */
.admin-session-active a[href="/admin/account"] {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
}

/* Mobile search */
@media (max-width: 700px) {
  .search-box input,
  .search-bar input,
  .search-wrapper input,
  .search-input-wrapper input,
  .search-field input,
  .product-search input,
  .shop-search input,
  .catalog-search input,
  .filters-search input,
  input[type="search"] {
    height: 44px;
    min-height: 44px;
    line-height: 44px;
  }

  .search-box > i,
  .search-bar > i,
  .search-wrapper > i,
  .search-input-wrapper > i,
  .search-field > i,
  .product-search > i,
  .shop-search > i,
  .catalog-search > i,
  .filters-search > i {
    left: 13px;
  }

  .admin-global-link {
    width: 100%;
  }
}

/* ==========================================================================
   THE BLUE MOON — MOBILE / SEARCH FINAL FIX
   ========================================================================== */

/* -----------------------------
   ADMIN SEARCH
   ----------------------------- */

.admin-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 0 0 22px;
}

.admin-search {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  flex: 1 1 420px !important;
  width: 100% !important;
  height: 46px !important;
  min-height: 46px !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

.admin-search i {
  position: absolute !important;
  left: 14px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 3 !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 1rem !important;
  line-height: 1 !important;
  pointer-events: none !important;
}

.admin-search input,
.admin-search input[type="search"] {
  display: block !important;
  width: 100% !important;
  height: 46px !important;
  min-height: 46px !important;
  margin: 0 !important;
  padding: 0 14px 0 42px !important;
  box-sizing: border-box !important;
  line-height: normal !important;
}

/* Remove browser search decorations that can distort the field */
.admin-search input[type="search"]::-webkit-search-decoration,
.admin-search input[type="search"]::-webkit-search-cancel-button,
.admin-search input[type="search"]::-webkit-search-results-button,
.admin-search input[type="search"]::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
}

/* Never allow the search container to create a lower blank area */
.admin-search::after,
.admin-search::before {
  display: none !important;
}

.admin-toolbar > select,
.admin-toolbar > .button {
  flex: 0 0 auto;
  margin: 0 !important;
}

/* -----------------------------
   SHOP SEARCH / FILTERS
   ----------------------------- */

.shop-filters {
  box-sizing: border-box;
}

.shop-filters .filter-label {
  display: block;
  margin: 0 0 6px;
  line-height: 1.25;
}

.shop-filters .store-input,
.shop-filters input[type="search"],
.shop-filters select {
  box-sizing: border-box;
  width: 100%;
  margin: 0 0 14px;
}

/* Search itself must not inherit strange height */
.shop-filters input[type="search"] {
  height: 46px;
  min-height: 46px;
  line-height: normal;
  padding-top: 0;
  padding-bottom: 0;
}

/* -----------------------------
   ADMIN HEADER
   ----------------------------- */

.admin-nav {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
}

.admin-nav > a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
}

/* -----------------------------
   PHONE LAYOUT
   ----------------------------- */

@media (max-width: 700px) {

  .admin-shell {
    width: calc(100% - 20px) !important;
    max-width: none !important;
    margin: 0 auto !important;
    padding: 18px 0 42px !important;
  }

  /* Header becomes two clean rows */
  .store-header-inner {
    width: calc(100% - 20px) !important;
    max-width: none !important;
    margin: 0 auto !important;
    min-height: auto !important;
    padding: 10px 0 !important;
  }

  .store-header-inner .brand,
  .store-header-inner .store-brand {
    flex-shrink: 0 !important;
  }

  .store-header-inner {
    flex-wrap: wrap !important;
  }

  .admin-nav {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
    margin-top: 8px !important;
  }

  .admin-nav > a {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 40px !important;
    height: 40px !important;
    padding: 7px 5px !important;
    border-radius: 9px !important;
    font-size: .78rem !important;
    gap: 5px !important;
    box-sizing: border-box !important;
  }

  .admin-nav > a i {
    font-size: .95rem !important;
    flex-shrink: 0 !important;
  }

  .admin-nav > a span {
    display: inline !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  /* Search toolbar becomes a proper vertical stack */
  .admin-toolbar {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    margin-bottom: 18px !important;
  }

  .admin-search {
    width: 100% !important;
    flex: none !important;
    height: 44px !important;
    min-height: 44px !important;
  }

  .admin-search input,
  .admin-search input[type="search"] {
    height: 44px !important;
    min-height: 44px !important;
    padding-left: 40px !important;
  }

  .admin-search i {
    left: 13px !important;
  }

  .admin-toolbar > select,
  .admin-toolbar > .button {
    width: 100% !important;
    max-width: none !important;
    min-height: 44px !important;
  }

  /* Heading should never create huge empty vertical space */
  .admin-page-heading {
    display: block !important;
    margin: 0 0 18px !important;
  }

  .admin-page-heading h1 {
    margin: 0 0 6px !important;
    font-size: 1.65rem !important;
    line-height: 1.15 !important;
  }

  .admin-page-heading p {
    margin: 0 !important;
    line-height: 1.45 !important;
  }

  .admin-panel {
    padding: 14px !important;
    margin: 0 !important;
  }

  /* Prevent tables from forcing the whole page wider */
  .admin-panel,
  .admin-panel * {
    max-width: 100%;
  }

  .admin-shell .table-wrapper,
  .admin-shell .admin-table-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
  }
}

/* Smaller phones */
@media (max-width: 430px) {

  .admin-shell {
    width: calc(100% - 14px) !important;
    padding-top: 14px !important;
  }

  .store-header-inner {
    width: calc(100% - 14px) !important;
  }

  .admin-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 5px !important;
  }

  .admin-nav > a {
    height: 38px !important;
    min-height: 38px !important;
    font-size: .75rem !important;
    padding: 6px 4px !important;
  }

  .admin-nav > a i {
    font-size: .9rem !important;
  }

  .admin-search,
  .admin-search input,
  .admin-search input[type="search"] {
    height: 42px !important;
    min-height: 42px !important;
  }

  .admin-search input,
  .admin-search input[type="search"] {
    padding-left: 38px !important;
    font-size: .9rem !important;
  }

  .admin-search i {
    left: 12px !important;
    font-size: .9rem !important;
  }

  .admin-page-heading h1 {
    font-size: 1.5rem !important;
  }
}

/* Very small phones */
@media (max-width: 360px) {

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

  .admin-nav > a {
    font-size: .7rem !important;
  }

  .admin-nav > a i {
    font-size: .85rem !important;
  }
}


/* ==========================================================================
   THE BLUE MOON — FINAL MOBILE NAVIGATION
   One consistent mobile navigation system.
   ========================================================================== */

/* Keep desktop navigation normal */
@media (min-width: 701px) {
  .store-nav {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
  }

  .store-nav > a {
    width: auto !important;
    height: auto !important;
    min-height: 42px !important;
    padding: 0 13px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    font-size: .92rem !important;
  }

  .store-nav > a span:not(.cart-count) {
    display: inline !important;
  }
}

/* ==========================================================================
   MOBILE HEADER
   ========================================================================== */

@media (max-width: 700px) {

  .store-header-inner {
    width: calc(100% - 20px) !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 10px 0 12px !important;

    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
  }

  /* Brand stays on the first row */
  .store-header-inner > .brand,
  .store-header-inner > .store-brand,
  .store-header-inner .brand,
  .store-header-inner .store-brand {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  .logo-main {
    font-size: 18px !important;
    line-height: 1.1 !important;
  }

  .logo-sub {
    margin-top: 4px !important;
    font-size: 6px !important;
  }

  /* ================================================================
     ALL MOBILE NAVIGATION
     ================================================================ */

  .store-nav,
  .store-nav.admin-nav {
    order: 20 !important;

    width: 100% !important;
    max-width: 100% !important;

    margin: 2px 0 0 !important;
    padding: 6px !important;

    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;

    align-items: stretch !important;
    justify-content: stretch !important;

    gap: 6px !important;

    box-sizing: border-box !important;

    border-radius: 14px !important;
    background: rgba(22, 50, 79, .045) !important;
  }

  /* Every navigation item */
  .store-nav > a,
  .store-nav.admin-nav > a,
  .admin-nav > a {
    position: relative !important;

    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;

    height: 42px !important;
    min-height: 42px !important;

    margin: 0 !important;
    padding: 6px 5px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    gap: 5px !important;

    box-sizing: border-box !important;

    border-radius: 10px !important;

    font-size: .76rem !important;
    font-weight: 650 !important;

    line-height: 1 !important;

    white-space: nowrap !important;
    overflow: hidden !important;

    transform: none !important;
  }

  /* Icons */
  .store-nav > a i,
  .store-nav.admin-nav > a i,
  .admin-nav > a i {
    display: inline-flex !important;

    flex: 0 0 auto !important;

    width: auto !important;
    height: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    font-size: .95rem !important;
    line-height: 1 !important;
  }

  /* IMPORTANT:
     Remove the old icon-only mobile behavior */
  .store-nav > a span:not(.cart-count),
  .store-nav.admin-nav > a span:not(.cart-count),
  .admin-nav > a span:not(.cart-count) {
    display: inline !important;

    min-width: 0 !important;
    max-width: 100% !important;

    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  /* Active navigation */
  .store-nav > a.active,
  .store-nav.admin-nav > a.active,
  .admin-nav > a.active {
    background: var(--ink) !important;
    color: var(--paper) !important;
  }

  /* Hover should not move buttons on phones */
  .store-nav > a:hover,
  .admin-nav > a:hover {
    transform: none !important;
  }

  /* Cart badge */
  .store-nav .cart-count {
    position: absolute !important;

    top: 2px !important;
    right: 3px !important;

    width: auto !important;
    min-width: 16px !important;
    height: 16px !important;

    padding: 0 4px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    border-radius: 999px !important;

    font-size: .58rem !important;
    line-height: 1 !important;
  }

  /* ================================================================
     ADMIN NAV
     ================================================================ */

  .admin-nav {
    margin-top: 2px !important;
  }

  .admin-nav > a {
    min-width: 0 !important;
  }

  /* ================================================================
     ADMIN HEADER
     ================================================================ */

  .admin-shell {
    width: calc(100% - 20px) !important;
    max-width: none !important;
    margin: 0 auto !important;
    padding: 18px 0 42px !important;
  }
}

/* ==========================================================================
   SMALL PHONES
   ========================================================================== */

@media (max-width: 430px) {

  .store-header-inner {
    width: calc(100% - 14px) !important;
    padding-top: 8px !important;
    padding-bottom: 10px !important;
    gap: 8px !important;
  }

  .logo-main {
    font-size: 17px !important;
  }

  .logo-sub {
    font-size: 5.5px !important;
  }

  .store-nav,
  .store-nav.admin-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 5px !important;
    padding: 5px !important;
    border-radius: 12px !important;
  }

  .store-nav > a,
  .store-nav.admin-nav > a,
  .admin-nav > a {
    height: 40px !important;
    min-height: 40px !important;

    padding: 5px 6px !important;

    font-size: .75rem !important;

    gap: 5px !important;
  }

  .store-nav > a i,
  .store-nav.admin-nav > a i,
  .admin-nav > a i {
    font-size: .9rem !important;
  }
}

/* ==========================================================================
   VERY SMALL PHONES
   ========================================================================== */

@media (max-width: 360px) {

  .store-header-inner {
    width: calc(100% - 10px) !important;
  }

  .store-nav,
  .store-nav.admin-nav {
    gap: 4px !important;
    padding: 4px !important;
  }

  .store-nav > a,
  .store-nav.admin-nav > a,
  .admin-nav > a {
    height: 38px !important;
    min-height: 38px !important;

    padding: 4px !important;

    font-size: .70rem !important;
    gap: 4px !important;
  }

  .store-nav > a i,
  .store-nav.admin-nav > a i,
  .admin-nav > a i {
    font-size: .84rem !important;
  }

  .store-nav .cart-count {
    min-width: 15px !important;
    height: 15px !important;
    font-size: .55rem !important;
  }
}


/* ==========================================================================
   FINAL MOBILE NAV — ICON ONLY
   Desktop = icon + text
   Mobile = icon only
   ========================================================================== */

@media (max-width: 700px) {

  .store-nav,
  .store-nav.admin-nav {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 4px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
  }

  .store-nav > a,
  .store-nav.admin-nav > a,
  .admin-nav > a {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;

    flex: 0 0 40px !important;

    padding: 0 !important;
    margin: 0 !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    gap: 0 !important;
    border-radius: 10px !important;

    font-size: 0 !important;
    line-height: 1 !important;

    white-space: nowrap !important;
  }

  /* ICON ONLY */
  .store-nav > a i,
  .store-nav.admin-nav > a i,
  .admin-nav > a i {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: auto !important;
    height: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    font-size: 1.1rem !important;
    line-height: 1 !important;
  }

  /* Hide navigation text */
  .store-nav > a span:not(.cart-count),
  .store-nav.admin-nav > a span:not(.cart-count),
  .admin-nav > a span:not(.cart-count) {
    display: none !important;
  }

  /* Cart badge stays visible */
  .store-nav .cart-count,
  .admin-nav .cart-count {
    display: inline-flex !important;

    position: absolute !important;
    top: 0 !important;
    right: -1px !important;

    min-width: 16px !important;
    width: auto !important;
    height: 16px !important;

    padding: 0 4px !important;

    font-size: .58rem !important;
    line-height: 1 !important;
  }

  .store-nav > a:hover,
  .admin-nav > a:hover {
    transform: none !important;
  }
}

/* Smaller phones */
@media (max-width: 430px) {

  .store-nav,
  .store-nav.admin-nav {
    gap: 2px !important;
  }

  .store-nav > a,
  .store-nav.admin-nav > a,
  .admin-nav > a {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    flex-basis: 38px !important;
    border-radius: 9px !important;
  }

  .store-nav > a i,
  .store-nav.admin-nav > a i,
  .admin-nav > a i {
    font-size: 1rem !important;
  }
}

/* Very small phones */
@media (max-width: 360px) {

  .store-nav,
  .store-nav.admin-nav {
    gap: 1px !important;
  }

  .store-nav > a,
  .store-nav.admin-nav > a,
  .admin-nav > a {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    flex-basis: 36px !important;
  }

  .store-nav > a i,
  .store-nav.admin-nav > a i,
  .admin-nav > a i {
    font-size: .95rem !important;
  }
}

/* ==========================================================================
   DESKTOP — ICON + TEXT
   ========================================================================== */

@media (min-width: 701px) {

  .store-nav > a,
  .store-nav.admin-nav > a,
  .admin-nav > a {
    width: auto !important;
    min-width: 42px !important;
    height: auto !important;
    min-height: 42px !important;

    flex: 0 0 auto !important;

    padding: 0 13px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    gap: 7px !important;

    font-size: .92rem !important;
  }

  .store-nav > a i,
  .store-nav.admin-nav > a i,
  .admin-nav > a i {
    font-size: 1.08rem !important;
  }

  .store-nav > a span:not(.cart-count),
  .store-nav.admin-nav > a span:not(.cart-count),
  .admin-nav > a span:not(.cart-count) {
    display: inline !important;
  }
}


/* ==========================================================================
   THE BLUE MOON — SHARED ADMIN BRAND
   Uses the same moon identity as the storefront hero.
   ========================================================================== */

.blue-moon-admin-brand {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;

  text-decoration: none !important;
  color: var(--ink) !important;

  min-width: 0 !important;
}

.blue-moon-admin-brand .moon-brand-mark {
  width: 44px !important;
  height: 44px !important;

  flex: 0 0 44px !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  border-radius: 50% !important;

  background: var(--ink) !important;
  color: var(--paper) !important;

  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 30px !important;
  line-height: 1 !important;

  box-shadow: 0 5px 16px rgba(22, 50, 79, .16) !important;
}

.blue-moon-admin-brand > span:last-child {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
  line-height: 1 !important;
}

.blue-moon-admin-brand strong {
  display: block !important;

  font-size: 15px !important;
  font-weight: 850 !important;
  letter-spacing: .08em !important;

  white-space: nowrap !important;
}

.blue-moon-admin-brand small {
  display: block !important;

  margin-top: 5px !important;

  color: var(--copper) !important;

  font-size: 8px !important;
  font-weight: 800 !important;
  letter-spacing: .22em !important;
}

/* Mobile: keep the brand compact */
@media (max-width: 700px) {

  .blue-moon-admin-brand {
    gap: 8px !important;
  }

  .blue-moon-admin-brand .moon-brand-mark {
    width: 40px !important;
    height: 40px !important;
    flex-basis: 40px !important;

    font-size: 27px !important;
  }

  .blue-moon-admin-brand strong {
    font-size: 13px !important;
  }

  .blue-moon-admin-brand small {
    margin-top: 4px !important;
    font-size: 7px !important;
  }
}

/* Very small phones */
@media (max-width: 360px) {

  .blue-moon-admin-brand .moon-brand-mark {
    width: 37px !important;
    height: 37px !important;
    flex-basis: 37px !important;

    font-size: 25px !important;
  }

  .blue-moon-admin-brand strong {
    font-size: 12px !important;
  }

  .blue-moon-admin-brand small {
    font-size: 6px !important;
  }
}


/* ============================================================
   Checkout payment methods
   ============================================================ */

.payment-method-options {
  display: grid;
  gap: 12px;
}

.payment-method-option {
  display: block;
  cursor: pointer;
}

.payment-method-option > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.payment-method-content {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px;
  border: 1px solid rgba(23, 32, 51, 0.16);
  border-radius: 12px;
  background: #fff;
  transition:
    border-color .18s ease,
    box-shadow .18s ease,
    transform .18s ease;
}

.payment-method-option:hover
.payment-method-content {
  transform: translateY(-1px);
}

.payment-method-option > input:checked
+ .payment-method-content {
  border-color: #237a57;
  box-shadow:
    0 0 0 2px rgba(35, 122, 87, 0.12);
}

.payment-method-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #f4f0e6;
  font-size: 22px;
  flex: 0 0 42px;
}

.payment-method-content strong,
.payment-method-content small {
  display: block;
}

.payment-method-content small {
  margin-top: 3px;
  opacity: .68;
}

.esewa-logo {
  min-width: 70px;
  height: 38px;
  padding: 0 10px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #60bb46;
  color: white;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -.3px;
}

/* =========================================================================
   ADMIN PROMOTIONS / STORE SETTINGS
   ========================================================================= */

/* =========================================================================
   ADMIN PROMOTIONS / STORE SETTINGS
   ========================================================================= */

.admin-promo-section {
  margin-top: 24px;
}

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

.admin-promo-card {
  min-width: 0;
  padding: 18px;
  background: #fffefa;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.admin-promo-card h3 {
  margin: 0 0 7px;
  font-size: 1rem;
}

.admin-promo-card > p {
  margin: 0 0 14px;
  color: var(--ink-soft);
}

.admin-promo-form {
  display: grid;
  gap: 8px;
}

.admin-promo-form label {
  margin-top: 7px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
}

.admin-promo-form input,
.admin-promo-form select,
.admin-promo-form textarea {
  width: 100%;
}

.admin-promo-form textarea {
  min-height: 82px;
  resize: vertical;
}

.admin-promo-button {
  width: 100%;
  margin-top: 9px;
  border: 1px solid var(--line);
  cursor: pointer;
}

.admin-promo-button.primary {
  background: var(--green);
  border-color: var(--green);
  color: white;
}

.admin-promo-button.primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: white;
}

/* Active promotion toggle */
.admin-promo-active {
  margin-top: 9px;
  padding: 10px 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  cursor: pointer;
  user-select: none;
}

.admin-promo-active input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.admin-promo-switch {
  position: relative;
  width: 38px;
  height: 22px;
  flex: 0 0 38px;
  border-radius: 999px;
  background: #d7d4cc;
  transition: background 0.18s ease;
}

.admin-promo-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
  transition: transform 0.18s ease;
}

.admin-promo-active input:checked + .admin-promo-switch {
  background: var(--green);
}

.admin-promo-active input:checked + .admin-promo-switch::after {
  transform: translateX(16px);
}

.admin-promo-active input:focus-visible + .admin-promo-switch {
  outline: 3px solid rgba(47, 111, 79, 0.18);
  outline-offset: 2px;
}

.admin-promo-active-text {
  font-size: 0.84rem;
  font-weight: 750;
}

.admin-promo-list {
  margin-top: 32px;
}

.admin-promo-list-heading {
  margin-bottom: 10px;
}

.admin-promo-list-heading h3 {
  margin: 0;
}

.admin-promo-list .admin-list-row {
  align-items: flex-start;
}

.admin-promo-meta {
  min-width: 0;
}

.admin-promo-meta strong {
  display: block;
  overflow-wrap: anywhere;
}

.admin-promo-meta small {
  display: block;
  margin-top: 4px;
  color: var(--ink-soft);
}

.admin-promo-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 760px) {
  .admin-promo-grid {
    grid-template-columns: 1fr;
  }

  .admin-promo-list .admin-list-row {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-promo-actions {
    width: 100%;
  }

  .admin-promo-actions .admin-action {
    flex: 1;
  }
}

/* =========================================================================
   FINAL SITE-WIDE BRAND / ADMIN NAV OVERRIDES
   ========================================================================= */

/* =========================================================================
   FINAL SITE-WIDE BRAND / ADMIN NAV OVERRIDES
   ========================================================================= */

/*
 * The landing page logo is the canonical Blue Moon brand:
 *
 * THE BLUE MOON
 * EVERYDAY ESSENTIALS
 */

.store-header .store-logo,
.store-header .brand,
.store-header .blue-moon-admin-brand {
  text-decoration: none;
}

.store-header .store-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  flex: 0 0 auto;
  color: var(--ink);
  line-height: 1;
}

.store-header .store-logo .logo-main {
  display: block;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  line-height: 1.1;
}

.store-header .store-logo .logo-sub {
  display: block;
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 0.55rem;
  font-weight: 750;
  letter-spacing: 0.18em;
  line-height: 1;
}

/* Admin header: brand left, navigation centered */
.store-header:has(.admin-nav) .store-header-inner {
  position: relative;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.store-header:has(.admin-nav) .store-header-inner > .store-logo {
  flex: 0 0 auto;
}

.store-header:has(.admin-nav) .admin-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  justify-content: center;
}

.store-header:has(.admin-nav) .admin-nav > a {
  justify-content: center;
}

/* Keep the navigation usable when the viewport becomes narrow. */
@media (max-width: 900px) {
  .store-header:has(.admin-nav) .store-header-inner {
    min-height: 68px;
  }

  .store-header:has(.admin-nav) .admin-nav {
    position: static;
    transform: none;
    margin-left: auto;
    justify-content: flex-end;
  }
}

@media (max-width: 620px) {
  .store-header .store-logo .logo-main {
    font-size: 0.88rem;
  }

  .store-header .store-logo .logo-sub {
    font-size: 0.48rem;
    letter-spacing: 0.14em;
  }
}

/* Promo code apply UI */
.promo-input-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.promo-input-row input {
  flex: 1;
  min-width: 0;
}

.promo-apply-button {
  flex: 0 0 auto;
  min-width: 90px;
  border: 1px solid var(--ink, #17212b);
  border-radius: 6px;
  padding: 10px 16px;
  background: var(--ink, #17212b);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.promo-apply-button:hover:not(:disabled) {
  opacity: 0.9;
}

.promo-apply-button:active:not(:disabled) {
  transform: translateY(1px);
}

.promo-apply-button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.promo-apply-button.is-applied {
  background: #2f6b45;
  border-color: #2f6b45;
  cursor: default;
}

.promo-message {
  display: block;
  margin-top: 7px;
}

.promo-message.promo-success {
  font-weight: 600;
}

.promo-message.promo-error {
  font-weight: 600;
}

.promo-message.promo-loading {
  opacity: 0.7;
}

.delivery-discount-row strong {
  font-weight: 700;
}

@media (max-width: 480px) {
  .promo-input-row {
    gap: 8px;
  }

  .promo-apply-button {
    min-width: 78px;
    padding: 10px 12px;
  }
}

/* =========================================================================
   THE BLUE MOON — FIGMA REDESIGN / GLOBAL DESIGN LAYER
   Preserves existing functionality and component selectors.
   ========================================================================= */

/* Typography */
:root {
  --bm-font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --bm-font-sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bm-font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --bm-ink: #211a1b;
  --bm-ink-soft: #675c59;
  --bm-paper: #fbf8f1;
  --bm-paper-2: #f1e9dc;
  --bm-white: #ffffff;
  --bm-green: #702d38;
  --bm-green-dark: #4e202a;
  --bm-copper: #b88a49;
  --bm-line: rgba(55, 33, 31, 0.15);

  --bm-radius-sm: 8px;
  --bm-radius-md: 14px;
  --bm-radius-lg: 22px;

  --bm-shadow-soft: 0 10px 30px rgba(40, 23, 24, 0.07);
  --bm-shadow-card: 0 16px 40px rgba(40, 23, 24, 0.1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--bm-font-sans);
  color: var(--bm-ink);
  background: var(--bm-paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6,
.hero-copy h1,
.section-heading h2 {
  font-family: var(--bm-font-display);
  color: var(--bm-ink);
  letter-spacing: -0.025em;
}

button,
input,
select,
textarea {
  font-family: var(--bm-font-sans);
}

/* Shared page container */
.store-container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

/* Header */
.store-header {
  background: rgba(247, 244, 237, 0.96);
  border-bottom: 1px solid var(--bm-line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.store-header .store-container {
  min-height: 76px;
}

.store-header .store-logo .logo-main {
  font-family: var(--bm-font-display);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.075em;
}

.store-header .store-logo .logo-sub {
  font-family: var(--bm-font-mono);
  color: var(--bm-copper);
  font-weight: 600;
  letter-spacing: 0.14em;
}

.store-nav {
  gap: 6px;
}

.store-nav a {
  border-radius: 999px;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.store-nav a:hover {
  background: var(--bm-paper-2);
  color: var(--bm-green-dark);
  transform: translateY(-1px);
}

.store-nav .cart-link {
  position: relative;
}

.cart-count {
  font-family: var(--bm-font-mono);
}

/* Hero */
.store-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 22%, rgba(167, 101, 59, 0.10), transparent 30%),
    radial-gradient(circle at 8% 80%, rgba(47, 107, 69, 0.09), transparent 32%),
    var(--bm-paper);
  border-bottom: 1px solid var(--bm-line);
}

.hero-inner {
  min-height: 620px;
  align-items: center;
}

.hero-copy {
  max-width: 690px;
}

.hero-copy .eyebrow,
.eyebrow {
  font-family: var(--bm-font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bm-copper);
}

.hero-copy h1 {
  font-size: clamp(3.2rem, 7vw, 6.4rem);
  line-height: 0.94;
  max-width: 760px;
  margin-block: 18px 24px;
}

.hero-copy h1 span {
  color: var(--bm-green);
}

.hero-text {
  max-width: 570px;
  color: var(--bm-ink-soft);
  font-size: 1.05rem;
  line-height: 1.75;
}

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

.whatsapp-order-button,
.whatsapp-order-button:hover {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  background: #168a4a;
  border-color: #168a4a;
  text-decoration: none;
}

.whatsapp-order-button:hover {
  background: #11743d;
  border-color: #11743d;
}

.whatsapp-order-floating {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 1000;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
  font-weight: 700;
}

.whatsapp-order-floating i {
  font-size: 1.35rem;
}

.whatsapp-order-floating:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.store-button {
  border-radius: 999px;
  min-height: 48px;
  padding-inline: 24px;
  font-weight: 600;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

.store-button:hover {
  transform: translateY(-2px);
}

.store-button.primary {
  background: var(--bm-green);
  box-shadow: 0 8px 20px rgba(47, 107, 69, 0.20);
}

.store-button.primary:hover {
  background: var(--bm-green-dark);
}

.store-button.secondary {
  border-color: var(--bm-line);
  background: var(--bm-white);
}

/* Hero identity card */
.hero-card {
  border: 1px solid var(--bm-line);
  border-radius: var(--bm-radius-lg);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: var(--bm-shadow-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-card .liquor-symbol {
  color: var(--bm-copper);
}

/* Sections */
.featured-section,
.store-benefits {
  padding-block: 90px;
}

.section-heading {
  margin-bottom: 34px;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.section-link {
  font-family: var(--bm-font-mono);
  color: var(--bm-green);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* Product cards */
.product-grid {
  gap: 24px;
}

.product-card {
  overflow: hidden;
  border: 1px solid var(--bm-line);
  border-radius: var(--bm-radius-md);
  background: var(--bm-white);
  box-shadow: 0 5px 20px rgba(23, 33, 43, 0.045);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--bm-shadow-card);
}

.product-image {
  background: var(--bm-paper-2);
}

.product-info {
  padding: 18px;
}

.product-sku {
  font-family: var(--bm-font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
}

.product-price {
  font-family: var(--bm-font-display);
  font-size: 1.25rem;
}

.stock-status {
  color: var(--bm-green);
}

.stock-status.out {
  color: #a13d35;
}

/* Benefits */
.benefits-grid {
  gap: 18px;
}

.benefit-card {
  border: 1px solid var(--bm-line);
  border-radius: var(--bm-radius-md);
  background: rgba(255, 255, 255, 0.62);
  padding: 28px;
}

.benefit-icon {
  color: var(--bm-copper);
  font-size: 1.4rem;
}

/* Footer */
.store-footer {
  border-top: 1px solid var(--bm-line);
  background: var(--bm-ink);
  color: #fff;
}

.store-footer strong {
  font-family: var(--bm-font-display);
  letter-spacing: 0.06em;
}

.store-footer p {
  color: rgba(255, 255, 255, 0.68);
}

.store-footer a {
  color: rgba(255, 255, 255, 0.82);
}

.store-footer a:hover {
  color: #fff;
}

/* Forms */
input,
select,
textarea {
  border-radius: var(--bm-radius-sm);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--bm-green);
  box-shadow: 0 0 0 3px rgba(47, 107, 69, 0.12);
}

/* Tables / utility data */
.mono,
.sku,
.order-number,
.price-code {
  font-family: var(--bm-font-mono);
}

/* Responsive */
@media (max-width: 900px) {
  .store-container {
    width: min(100% - 36px, 760px);
  }

  .hero-inner {
    min-height: auto;
    padding-block: 76px;
  }

  .hero-copy h1 {
    font-size: clamp(2.8rem, 9vw, 4.8rem);
  }

  .featured-section,
  .store-benefits {
    padding-block: 70px;
  }
}

@media (max-width: 640px) {
  .store-container {
    width: min(100% - 28px, 560px);
  }

  .store-header .store-container {
    min-height: 68px;
  }

  .hero-inner {
    padding-block: 58px;
  }

  .hero-copy h1 {
    font-size: clamp(2.45rem, 13vw, 4rem);
    line-height: 0.98;
  }

  .hero-text {
    font-size: 0.96rem;
    line-height: 1.65;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .store-button {
    flex: 1;
    text-align: center;
  }

  .hero-card {
    margin-top: 34px;
  }

  .featured-section,
  .store-benefits {
    padding-block: 56px;
  }

  .section-heading h2 {
    font-size: 2rem;
  }

  .product-grid {
    gap: 14px;
  }
}

@media (max-width: 420px) {
  .store-container {
    width: calc(100% - 22px);
  }

  .hero-copy h1 {
    font-size: 2.35rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .store-button {
    width: 100%;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}


/* =========================================================================
   THE BLUE MOON — SHOP / FIGMA PRODUCT EXPERIENCE
   Visual-only layer. Existing Shop functionality is preserved.
   ========================================================================= */

.shop-heading {
  position: relative;
  overflow: hidden;
  padding: 92px 0 72px;
  background:
    radial-gradient(circle at 88% 30%, rgba(167, 101, 59, 0.10), transparent 28%),
    var(--bm-paper);
  border-bottom: 1px solid var(--bm-line);
}

.shop-heading .store-container {
  position: relative;
}

.shop-heading h1 {
  margin: 10px 0 12px;
  font-family: var(--bm-font-display);
  font-size: clamp(3.2rem, 7vw, 6rem);
  line-height: .94;
  letter-spacing: -.035em;
}

.shop-heading p:last-child {
  max-width: 570px;
  margin: 0;
  color: var(--bm-ink-soft);
  font-size: 1.02rem;
  line-height: 1.7;
}

.shop-section {
  padding: 58px 0 100px;
}

.shop-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 42px;
  align-items: start;
}

/* Filter panel */
.shop-filters {
  position: sticky;
  top: 24px;
  padding: 24px;
  border: 1px solid var(--bm-line);
  border-radius: var(--bm-radius-md);
  background: rgba(255, 255, 255, .72);
  box-shadow: var(--bm-shadow-soft);
}

.filter-header {
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--bm-line);
}

.filter-header h2 {
  font-family: var(--bm-font-display);
  font-size: 1.45rem;
  letter-spacing: -.02em;
}

.clear-filter {
  font-family: var(--bm-font-mono);
  color: var(--bm-copper);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.filter-label {
  display: block;
  margin: 18px 0 8px;
  color: var(--bm-ink);
  font-family: var(--bm-font-mono);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.shop-filters .store-input {
  width: 100%;
  min-height: 45px;
  border: 1px solid var(--bm-line);
  border-radius: var(--bm-radius-sm);
  background: var(--bm-white);
  color: var(--bm-ink);
}

.checkbox-filter {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 22px;
  color: var(--bm-ink-soft);
  font-size: .84rem;
  line-height: 1.45;
  cursor: pointer;
}

.checkbox-filter input {
  accent-color: var(--bm-green);
  margin-top: 3px;
}

/* Results toolbar */
.results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--bm-line);
}

.results-toolbar p {
  margin: 0;
  color: var(--bm-ink-soft);
  font-family: var(--bm-font-mono);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.sort-select {
  min-height: 42px;
  min-width: 170px;
  padding: 0 14px;
  border: 1px solid var(--bm-line);
  border-radius: 999px;
  background: var(--bm-white);
  color: var(--bm-ink);
  font-family: var(--bm-font-sans);
  font-size: .82rem;
}

/* Shop grid */
.shop-product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.shop-product-grid .product-card {
  min-width: 0;
}

.shop-product-grid .product-image {
  aspect-ratio: 4 / 4.8;
  overflow: hidden;
}

.shop-product-grid .product-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 350ms ease;
}

.shop-product-grid .product-card:hover .product-image img {
  transform: scale(1.035);
}

.shop-product-grid .product-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle, rgba(167, 101, 59, .10), transparent 45%),
    var(--bm-paper-2);
  color: var(--bm-copper);
  font-family: var(--bm-font-display);
  font-size: 2.8rem;
}

.shop-product-grid .product-info {
  padding: 18px 18px 20px;
}

.shop-product-grid .product-info h3 {
  margin: 6px 0 18px;
  font-family: var(--bm-font-display);
  font-size: 1.18rem;
  line-height: 1.15;
  letter-spacing: -.015em;
}

.shop-product-grid .product-info h3 a {
  color: var(--bm-ink);
  text-decoration: none;
}

.shop-product-grid .product-info h3 a:hover {
  color: var(--bm-green);
}

.shop-product-grid .product-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.shop-product-grid .product-price {
  font-size: 1.12rem;
  white-space: nowrap;
}

.shop-product-grid .stock-status {
  font-family: var(--bm-font-mono);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-align: right;
}

/* Empty shop */
.shop-empty {
  padding: 80px 24px;
  border: 1px solid var(--bm-line);
  border-radius: var(--bm-radius-md);
  background: rgba(255, 255, 255, .58);
  text-align: center;
}

.shop-empty .empty-symbol {
  color: var(--bm-copper);
  font-family: var(--bm-font-display);
  font-size: 3rem;
}

.shop-empty h2 {
  margin: 10px 0;
  font-family: var(--bm-font-display);
}

.shop-empty p {
  color: var(--bm-ink-soft);
  margin-bottom: 24px;
}

/* Tablet */
@media (max-width: 1100px) {
  .shop-layout {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 28px;
  }

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

/* Mobile */
@media (max-width: 760px) {
  .shop-heading {
    padding: 64px 0 52px;
  }

  .shop-heading h1 {
    font-size: clamp(3rem, 15vw, 4.5rem);
  }

  .shop-section {
    padding: 36px 0 70px;
  }

  .shop-layout {
    display: block;
  }

  .shop-filters {
    position: static;
    margin-bottom: 32px;
    padding: 20px;
  }

  .filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .results-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .sort-select {
    width: 100%;
  }

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

  .shop-product-grid .product-info {
    padding: 14px;
  }

  .shop-product-grid .product-info h3 {
    font-size: 1rem;
  }

  .shop-product-grid .product-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .shop-product-grid .stock-status {
    text-align: left;
  }
}

@media (max-width: 460px) {
  .shop-product-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .shop-product-grid .product-image {
    aspect-ratio: 4 / 4.3;
  }

  .shop-product-grid .product-info h3 {
    font-size: 1.15rem;
  }

  .shop-product-grid .product-bottom {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

  .shop-product-grid .stock-status {
    text-align: right;
  }
}


/* =========================================================================
   THE BLUE MOON — SHOP HTML / EDITORIAL LAYOUT
   ========================================================================= */

.shop-heading-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

.shop-heading-copy {
  max-width: 760px;
}

.shop-heading h1 span {
  color: var(--bm-green);
}

.shop-intro {
  max-width: 570px;
}

.shop-heading-mark {
  display: flex;
  width: 170px;
  height: 170px;
  flex: 0 0 170px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  border: 1px solid var(--bm-line);
  border-radius: 50%;
  background: rgba(255,255,255,.52);
  box-shadow: var(--bm-shadow-soft);
}

.shop-heading-mark span {
  color: var(--bm-copper);
  font-family: var(--bm-font-display);
  font-size: 3.3rem;
  line-height: 1;
}

.shop-heading-mark small {
  color: var(--bm-ink-soft);
  font-family: var(--bm-font-mono);
  font-size: .48rem;
  font-weight: 600;
  letter-spacing: .13em;
  line-height: 1.4;
  text-align: center;
}

.shop-toolbar-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 30px;
}

.shop-toolbar-top h2 {
  margin: 5px 0 0;
  font-family: var(--bm-font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -.025em;
}

.shop-toolbar-note {
  max-width: 280px;
  margin: 0;
  color: var(--bm-ink-soft);
  font-size: .84rem;
  line-height: 1.6;
  text-align: right;
}

.filter-kicker,
.results-label {
  display: block;
  color: var(--bm-copper);
  font-family: var(--bm-font-mono);
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .13em;
}

.filter-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 15px;
}

.filter-header h2 {
  margin-top: 4px;
}

.filter-group {
  margin-top: 18px;
}

.filter-group .filter-label {
  margin-top: 0;
}

.shop-search-wrap {
  position: relative;
}

.shop-search-wrap > i {
  position: absolute;
  left: 14px;
  top: 50%;
  z-index: 1;
  color: var(--bm-ink-soft);
  transform: translateY(-50%);
  pointer-events: none;
}

.shop-search-wrap input {
  padding-left: 40px;
}

.filter-stock {
  padding: 15px 0;
  margin-top: 18px;
  border-top: 1px solid var(--bm-line);
  border-bottom: 1px solid var(--bm-line);
}

.filter-stock span {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.filter-stock strong {
  color: var(--bm-ink);
  font-size: .8rem;
  font-weight: 600;
}

.filter-stock small {
  color: var(--bm-ink-soft);
  font-size: .7rem;
}

.filter-decoration {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
  color: var(--bm-ink-soft);
  font-family: var(--bm-font-mono);
  font-size: .48rem;
  letter-spacing: .11em;
}

.filter-decoration i {
  color: var(--bm-copper);
  font-size: .9rem;
  font-style: normal;
}

.results-count-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.results-count-wrap p {
  margin: 0;
}

.sort-control {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sort-control > span {
  color: var(--bm-ink-soft);
  font-family: var(--bm-font-mono);
  font-size: .62rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.shop-product-grid .product-card {
  display: flex;
  flex-direction: column;
}

.shop-product-grid .product-info {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.shop-product-grid .product-bottom {
  margin-top: auto;
}

.footer-brand .store-logo {
  display: inline-flex;
  margin-bottom: 12px;
}

.footer-brand .store-logo .logo-main {
  color: #fff;
}

.footer-brand .store-logo .logo-sub {
  color: rgba(255,255,255,.6);
}

.footer-brand p {
  margin: 0;
}

/* Tablet */
@media (max-width: 760px) {
  .shop-heading-inner {
    align-items: flex-start;
  }

  .shop-heading-mark {
    width: 120px;
    height: 120px;
    flex-basis: 120px;
  }

  .shop-heading-mark span {
    font-size: 2.4rem;
  }

  .shop-toolbar-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .shop-toolbar-note {
    max-width: none;
    text-align: left;
  }

  .results-count-wrap {
    justify-content: space-between;
  }

  .sort-control {
    justify-content: space-between;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .shop-heading-inner {
    display: block;
  }

  .shop-heading-mark {
    width: 96px;
    height: 96px;
    margin-top: 28px;
  }

  .shop-heading-mark span {
    font-size: 2rem;
  }

  .shop-heading-mark small {
    font-size: .4rem;
  }

  .shop-toolbar-top {
    margin-bottom: 24px;
  }

  .results-count-wrap {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .sort-control {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .sort-control,
  .sort-control .sort-select {
    width: 100%;
  }
}


/* =========================================================
   THE BLUE MOON — SHOP CATALOG
   ========================================================= */

.shop-page {
  background: var(--bm-paper);
  color: var(--bm-ink);
}

/* Compact heading */

.shop-top {
  border-bottom: 1px solid var(--bm-line);
  padding: 42px 0 34px;
}

.shop-top-inner {
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.shop-eyebrow {
  font-family: var(--bm-font-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--bm-copper);
  margin-bottom: 12px;
}

.shop-top h1 {
  margin: 0;
  font-family: var(--bm-font-display);
  font-size: clamp(42px, 5vw, 68px);
  line-height: .95;
  font-weight: 600;
  letter-spacing: -.035em;
}

.shop-top p {
  margin: 15px 0 0;
  color: var(--bm-ink-soft);
  font-family: var(--bm-font-sans);
  font-size: 15px;
}

.shop-top-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  font-family: var(--bm-font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--bm-ink-soft);
  white-space: nowrap;
}

/* Catalog */

.shop-catalog {
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
  padding: 26px 0 90px;
}

/* Toolbar */

.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  margin-bottom: 24px;
}

.shop-filter-toggle,
.shop-sort-toggle {
  appearance: none;
  border: 1px solid var(--bm-line);
  background: transparent;
  color: var(--bm-ink);
  min-height: 42px;
  padding: 0 17px;
  border-radius: 999px;
  font-family: var(--bm-font-sans);
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  transition: .2s ease;
}

.shop-filter-toggle:hover,
.shop-sort-toggle:hover {
  background: var(--bm-paper-2);
  border-color: rgba(23,33,43,.25);
}

.shop-filter-toggle i {
  font-size: 15px;
}

.shop-toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.shop-sort-select {
  min-height: 42px;
  border: 1px solid var(--bm-line);
  border-radius: 999px;
  padding: 0 38px 0 16px;
  background: var(--bm-paper);
  color: var(--bm-ink);
  font-family: var(--bm-font-sans);
  font-size: 13px;
}

/* Hide duplicate sort button on desktop */

.shop-sort-toggle {
  display: none;
}

/* Layout */

.shop-catalog-layout {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  gap: 42px;
  align-items: start;
}

/* Filters */

.shop-filters {
  position: sticky;
  top: 90px;
  border-top: 1px solid var(--bm-line);
  padding-top: 20px;
}

.shop-filter-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 30px;
}

.filter-label,
.shop-results-label {
  display: block;
  font-family: var(--bm-font-mono);
  font-size: 9px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--bm-copper);
  margin-bottom: 7px;
}

.shop-filter-header h2 {
  margin: 0;
  font-family: var(--bm-font-display);
  font-size: 24px;
  line-height: 1.05;
  font-weight: 600;
}

.shop-filter-close {
  display: none;
  border: 0;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
  color: var(--bm-ink);
}

.shop-filter-group {
  margin-bottom: 25px;
}

.shop-filter-group label {
  display: block;
  font-family: var(--bm-font-sans);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 9px;
}

.shop-search {
  position: relative;
}

.shop-search i {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--bm-ink-soft);
  font-size: 13px;
}

.shop-search input,
.shop-filter-group select {
  width: 100%;
  height: 44px;
  box-sizing: border-box;
  border: 1px solid var(--bm-line);
  background: rgba(255,255,255,.45);
  color: var(--bm-ink);
  border-radius: 8px;
  font-family: var(--bm-font-sans);
  font-size: 13px;
  outline: none;
  transition: .2s ease;
}

.shop-search input {
  padding: 0 13px 0 38px;
}

.shop-filter-group select {
  padding: 0 12px;
}

.shop-search input:focus,
.shop-filter-group select:focus {
  border-color: var(--bm-green);
  background: var(--bm-white);
  box-shadow: 0 0 0 3px rgba(47,107,69,.08);
}

.shop-stock-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--bm-font-sans);
  font-size: 13px;
  cursor: pointer;
  margin: 8px 0 24px;
}

.shop-stock-filter input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.shop-check {
  width: 17px;
  height: 17px;
  border: 1px solid rgba(23,33,43,.3);
  border-radius: 4px;
  display: inline-block;
  position: relative;
  flex: 0 0 17px;
}

.shop-stock-filter input:checked + .shop-check {
  background: var(--bm-green);
  border-color: var(--bm-green);
}

.shop-stock-filter input:checked + .shop-check::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.shop-clear {
  border: 0;
  padding: 0;
  background: none;
  color: var(--bm-ink-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-family: var(--bm-font-sans);
  font-size: 12px;
  cursor: pointer;
}

/* Results */

.shop-results {
  min-width: 0;
}

.shop-results-head {
  height: 30px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid var(--bm-line);
  margin-bottom: 22px;
}

.shop-results-head #resultCountDesktop {
  font-family: var(--bm-font-mono);
  font-size: 10px;
  color: var(--bm-ink-soft);
}

/* Product grid */

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

/*
   Existing product-card markup remains untouched.
   These rules make the catalog cards feel like the
   Figma ecommerce structure rather than landing cards.
*/

.shop-product-grid .product-card {
  min-width: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.shop-product-grid .product-card:hover {
  transform: none;
}

.shop-product-grid .product-card img {
  aspect-ratio: 4 / 5;
  width: 100%;
  object-fit: cover;
  display: block;
  background: var(--bm-paper-2);
}

#relatedProducts .product-image img {
  aspect-ratio: auto;
  object-fit: contain;
}

.shop-empty {
  text-align: center;
  padding: 100px 20px;
  border: 1px solid var(--bm-line);
}

.shop-empty i {
  font-size: 32px;
  color: var(--bm-green);
}

.shop-empty h3 {
  font-family: var(--bm-font-display);
  font-size: 30px;
  margin: 18px 0 8px;
}

.shop-empty p {
  color: var(--bm-ink-soft);
}

/* Tablet */

@media (max-width: 1050px) {

  .shop-catalog-layout {
    grid-template-columns: 215px minmax(0, 1fr);
    gap: 28px;
  }

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

}

/* Mobile */

@media (max-width: 760px) {

  .shop-top {
    padding: 30px 0 25px;
  }

  .shop-top-inner {
    width: min(100% - 32px, 600px);
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .shop-top h1 {
    font-size: 43px;
  }

  .shop-top p {
    margin-top: 10px;
  }

  .shop-top-meta {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .shop-catalog {
    width: min(100% - 32px, 600px);
    padding-top: 18px;
  }

  .shop-toolbar {
    margin-bottom: 18px;
  }

  .shop-filter-toggle {
    min-height: 40px;
  }

  .shop-sort-select {
    display: none;
  }

  .shop-sort-toggle {
    display: inline-flex;
  }

  .shop-catalog-layout {
    display: block;
  }

  .shop-filters {
    display: none;
    position: relative;
    top: auto;
    background: var(--bm-paper);
    border: 1px solid var(--bm-line);
    padding: 22px;
    margin-bottom: 22px;
    z-index: 20;
  }

  .shop-filters.is-open {
    display: block;
  }

  .shop-filter-close {
    display: block;
  }

  .shop-filter-header {
    margin-bottom: 25px;
  }

  .shop-results-head {
    margin-bottom: 18px;
  }

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

}

/* Small phones */

@media (max-width: 430px) {

  .shop-top h1 {
    font-size: 38px;
  }

  .shop-product-grid {
    gap: 20px 10px;
  }

  .shop-filter-toggle,
  .shop-sort-toggle {
    padding: 0 13px;
  }

}


/* Mobile shop search */
.shop-mobile-search {
  display: none;
}

@media (max-width: 760px) {
  .shop-mobile-search {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 16px 12px;
    padding: 0 14px;
    min-height: 46px;
    background: var(--bm-white);
    border: 1px solid var(--bm-line);
    border-radius: 4px;
  }

  .shop-mobile-search i {
    color: var(--bm-ink-soft);
    font-size: 16px;
    flex: 0 0 auto;
  }

  .shop-mobile-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--bm-ink);
    font-family: var(--bm-font-sans);
    font-size: 14px;
  }

  .shop-mobile-search input::placeholder {
    color: var(--bm-ink-soft);
  }
}

/* =========================================================
   SHOP — UNIFIED SEARCH + FILTER PANEL
   Desktop and mobile use the same interaction model.
   ========================================================= */

.shop-catalog {
  position: relative;
}

.shop-mobile-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(100%, 620px);
  min-height: 48px;
  margin: 0 auto 16px;
  padding: 0 15px;
  background: var(--bm-white);
  border: 1px solid var(--bm-line);
  border-radius: 4px;
}

.shop-mobile-search i {
  flex: 0 0 auto;
  color: var(--bm-ink-soft);
  font-size: 16px;
}

.shop-mobile-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--bm-ink);
  font-family: var(--bm-font-sans);
  font-size: 14px;
}

.shop-mobile-search input::placeholder {
  color: var(--bm-ink-soft);
}

/* Toolbar */
.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.shop-filter-toggle,
.shop-sort-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--bm-line);
  border-radius: 4px;
  background: var(--bm-white);
  color: var(--bm-ink);
  font-family: var(--bm-font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.shop-filter-toggle:hover,
.shop-sort-toggle:hover {
  border-color: var(--bm-green);
}

.shop-toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.shop-sort-toggle {
  display: none;
}

.shop-sort-select {
  min-height: 42px;
  padding: 0 36px 0 13px;
  border: 1px solid var(--bm-line);
  border-radius: 4px;
  background: var(--bm-white);
  color: var(--bm-ink);
  font-family: var(--bm-font-sans);
  font-size: 13px;
  cursor: pointer;
}

/* Filter panel — hidden until opened */
.shop-filters {
  display: none;
  position: relative;
  width: 100%;
  margin-bottom: 20px;
  padding: 20px;
  background: var(--bm-white);
  border: 1px solid var(--bm-line);
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(23, 33, 43, 0.08);
}

.shop-filters.is-open {
  display: block;
}

.shop-filter-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.shop-filter-header h2 {
  margin: 4px 0 0;
  font-family: var(--bm-font-display);
  font-size: 24px;
}

.shop-filter-close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--bm-line);
  border-radius: 50%;
  background: transparent;
  color: var(--bm-ink);
  cursor: pointer;
}

.shop-filters .shop-filter-group {
  display: inline-flex;
  vertical-align: top;
  flex-direction: column;
  gap: 7px;
  width: min(280px, 100%);
  margin-right: 14px;
}

.shop-filters .shop-filter-group label {
  font-family: var(--bm-font-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--bm-ink-soft);
}

.shop-filters select {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--bm-line);
  border-radius: 4px;
  background: var(--bm-paper);
  color: var(--bm-ink);
  font-family: var(--bm-font-sans);
}

.shop-stock-filter {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  margin-right: 14px;
  font-family: var(--bm-font-sans);
  font-size: 13px;
  cursor: pointer;
}

.shop-stock-filter input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.shop-stock-filter .shop-check {
  width: 18px;
  height: 18px;
  border: 1px solid var(--bm-line);
  border-radius: 3px;
  background: var(--bm-white);
}

.shop-stock-filter input:checked + .shop-check {
  background: var(--bm-green);
  border-color: var(--bm-green);
  box-shadow: inset 0 0 0 4px var(--bm-white);
}

.shop-clear {
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  background: transparent;
  color: var(--bm-green);
  font-family: var(--bm-font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

/* No permanent sidebar */
.shop-catalog-layout {
  display: block;
}

.shop-results {
  width: 100%;
}

@media (max-width: 760px) {
  .shop-mobile-search {
    width: auto;
    margin: 0 0 12px;
  }

  .shop-toolbar {
    margin-bottom: 14px;
  }

  .shop-filter-toggle,
  .shop-sort-toggle {
    flex: 1;
  }

  .shop-toolbar-right {
    flex: 1;
  }

  .shop-sort-select {
    display: none;
  }

  .shop-sort-toggle {
    display: inline-flex;
    width: 100%;
  }

  .shop-filters {
    padding: 16px;
  }

  .shop-filters .shop-filter-group {
    display: flex;
    width: 100%;
    margin: 0 0 14px;
  }

  .shop-stock-filter {
    margin-bottom: 10px;
  }

  .shop-clear {
    padding-left: 0;
  }
}

/* Keep admin navigation consistent and wrap it below the brand on smaller screens. */
@media (max-width: 1100px) {
  .store-header:has(.admin-nav) .store-header-inner {
    min-height: 0;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 10px 0;
  }

  .store-header:has(.admin-nav) .store-header-inner > a {
    flex: 0 0 100%;
    justify-content: center;
  }

  .store-header:has(.admin-nav) .admin-nav {
    position: static;
    width: 100%;
    margin: 0;
    transform: none;
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .store-header:has(.admin-nav) .admin-nav > a {
    width: auto;
    height: auto;
    min-height: 40px;
    min-width: max-content;
    padding: 8px 10px;
    gap: 6px;
    font-size: .78rem;
  }

  .store-header:has(.admin-nav) .admin-nav > a span:not(.cart-count) {
    display: inline;
  }
}

/* Premium liquor storefront theme */
.store-header {
  background: rgba(251, 248, 241, 0.96);
  border-bottom-color: var(--line);
}

.store-header .store-logo {
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.store-header .store-logo .logo-main {
  display: flex;
  align-items: center;
  gap: 10px;
}

.store-header .store-logo .logo-main::before {
  content: "OLL";
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(184, 138, 73, 0.55);
  border-radius: 50%;
  background: linear-gradient(145deg, #702d38, #4e202a);
  color: #f8e7c6;
  font-family: var(--bm-font-sans);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 5px 16px rgba(78, 32, 42, 0.16);
}

.store-header .store-logo .logo-sub {
  margin-top: 4px;
  margin-left: 48px;
}

.store-nav > a:hover,
.store-nav > a.active {
  background: rgba(112, 45, 56, 0.09);
  color: var(--green-dark);
}

.store-hero {
  background:
    radial-gradient(ellipse at 82% 18%, rgba(184, 138, 73, 0.18), transparent 30%),
    linear-gradient(125deg, #f8f2e7 0%, #fbf8f1 54%, #eee4d6 100%);
}

.hero-card {
  border-color: rgba(184, 138, 73, 0.4);
  background:
    radial-gradient(circle at 50% 35%, rgba(184, 138, 73, 0.25), transparent 35%),
    linear-gradient(145deg, #702d38, #321b22);
}

.hero-card p,
.hero-card > span {
  color: #fbf8f1;
  text-align: center;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
}

.hero-card p {
  margin: 0;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.hero-card > span {
  max-width: 24rem;
  padding-inline: 18px;
}

.brand-mark,
.brand-icon,
.moon-brand-mark {
  background: linear-gradient(145deg, #8b3c46, #4e202a);
  color: #f8e7c6;
  box-shadow: 0 8px 22px rgba(78, 32, 42, 0.2);
}

.auth-card .brand {
  background: linear-gradient(125deg, #702d38, #321b22);
}

.store-button.primary,
.button.primary,
.btn-primary {
  background: linear-gradient(135deg, #7a303c, #541f2a);
  box-shadow: 0 8px 20px rgba(78, 32, 42, 0.19);
}

.store-button.primary:hover,
.button.primary:hover,
.btn-primary:hover {
  background: #431923;
}

.admin-stat-card,
.admin-panel,
.admin-card,
.account-card,
.order-card,
.panel {
  border-color: var(--line);
  box-shadow: var(--shadow-soft);
}

.admin-stat-icon,
.benefit-icon {
  background: linear-gradient(145deg, #702d38, #4e202a);
  color: #f8e7c6;
}

.store-footer {
  background: #211a1b;
  color: #fbf8f1;
}

.store-footer a:hover {
  color: #d7b778;
}

.liquor-admin-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.liquor-admin-brand .brand-mark {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 21px;
}

.liquor-admin-brand > span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.liquor-admin-brand strong {
  font-size: 15px;
  font-weight: 850;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.liquor-admin-brand small {
  margin-top: 5px;
  color: var(--copper);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.22em;
}

@media (max-width: 700px) {
  .liquor-admin-brand {
    gap: 7px;
  }

  .liquor-admin-brand .brand-mark {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .liquor-admin-brand strong {
    font-size: 12px;
  }

  .liquor-admin-brand small {
    font-size: 7px;
  }

  .store-header .store-logo .logo-main::before {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    font-size: 9px;
  }

  .store-header .store-logo .logo-sub {
    margin-left: 44px;
  }
}
