/* ==========================================================================
   JS Parfume - Atelier Boutique POS & Inventory System
   Designed for High-End Mobile & Desktop Experience
   ========================================================================== */

:root {
  --bg-app: #f8fafc;
  --bg-card: #ffffff;
  --bg-subtle: #f1f5f9;
  --border-light: #e2e8f0;
  --border-strong: #cbd5e1;
  --text-main: #09090b;
  --text-secondary: #52525b;
  --text-muted: #71717a;
  --accent-noir: #18181b;
  --accent-emerald: #059669;
  --accent-emerald-light: #ecfdf5;
  --accent-amber: #d97706;
  --accent-amber-light: #fffbeb;
  --accent-rose: #e11d48;
  --accent-rose-light: #fff1f2;
  --accent-blue: #2563eb;
  --accent-blue-light: #eff6ff;
  
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  
  --shadow-subtle: 0 1px 3px 0 rgba(0, 0, 0, 0.04), 0 1px 2px 0 rgba(0, 0, 0, 0.02);
  --shadow-card: 0 4px 16px -2px rgba(15, 23, 42, 0.05), 0 2px 4px -1px rgba(15, 23, 42, 0.02);
  --shadow-sheet: 0 -12px 36px rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-app);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
}

/* Minimalist Scrollbar */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Card Box Surface */
.card-box {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  transition: border-color 0.15s ease;
}

/* Modern Boutique Table Styling */
table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}
td, th {
  padding: 0.75rem 1rem;
  white-space: nowrap;
  font-size: 0.8125rem;
}
th {
  background: #f8fafc;
  color: #64748b;
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid #e2e8f0;
}
tbody tr {
  border-bottom: 1px solid #f1f5f9;
  transition: background-color 0.15s ease;
}
tbody tr:hover {
  background-color: #f8fafc;
}
tbody tr:last-child td {
  border-bottom: none;
}

/* Inputs & Form Elements */
.i {
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 0.625rem 0.875rem;
  width: 100%;
  background: #ffffff;
  color: #09090b;
  font-size: 0.875rem;
  font-weight: 500;
  outline: none;
  transition: all 0.15s ease;
}
.i:focus {
  border-color: #18181b;
  box-shadow: 0 0 0 3px rgba(24, 24, 27, 0.08);
}
.i::placeholder {
  color: #a1a1aa;
  font-weight: 400;
}
select.i {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2371717a' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E");
  background-position: right 0.75rem center;
  background-repeat: no-repeat;
  background-size: 1rem;
  padding-right: 2.25rem;
  -webkit-appearance: none;
  appearance: none;
}

/* Buttons */
.b {
  padding: 0.55rem 1rem;
  border-radius: var(--radius-md);
  background: #f4f4f5;
  color: #27272a;
  font-weight: 600;
  font-size: 0.8125rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  border: 1px solid #e4e4e7;
}
.b:hover {
  background: #e4e4e7;
  color: #09090b;
}
.b:active {
  transform: scale(0.97);
}
/* Primary Button (Luxury Obsidian Noir) */
.b.p {
  background: #18181b;
  color: #ffffff;
  border-color: #18181b;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.b.p:hover {
  background: #27272a;
  border-color: #27272a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
/* Danger Button */
.b.r {
  background: #fff1f2;
  color: #e11d48;
  border-color: #ffe4e6;
}
.b.r:hover {
  background: #ffe4e6;
}

/* Status Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
}
.badge-paid {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}
.badge-paid .badge-dot {
  background: #10b981;
}
.badge-pending {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}
.badge-pending .badge-dot {
  background: #f59e0b;
}
.badge-unpaid {
  background: #fff1f2;
  color: #e11d48;
  border: 1px solid #fecdd3;
}
.badge-unpaid .badge-dot {
  background: #f43f5e;
}

/* Segmented Control Pill Tabs */
.seg-group {
  display: flex;
  background: #f4f4f5;
  padding: 3px;
  border-radius: var(--radius-md);
  gap: 2px;
  border: 1px solid #e4e4e7;
}
.seg-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.5rem 0.75rem;
  border-radius: calc(var(--radius-md) - 2px);
  color: #71717a;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  border: none;
  background: transparent;
}
.seg-btn:hover {
  color: #18181b;
}
.seg-btn.active {
  background: #ffffff;
  color: #09090b;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
}

/* Product Type Selection Cards (Kasir Modal) */
.type-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.85rem 0.6rem;
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 1.5px solid #e4e4e7;
  color: #52525b;
  font-weight: 600;
  font-size: 0.8125rem;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}
.type-card:hover {
  border-color: #a1a1aa;
  background: #fafafa;
}
.type-card.active {
  border-color: #18181b;
  background: #fafafa;
  color: #18181b;
  box-shadow: 0 0 0 1px #18181b, 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Stepper Quantity Control */
.stepper-btn {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-sm);
  background: #f4f4f5;
  border: 1px solid #e4e4e7;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #18181b;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.1s ease;
}
.stepper-btn:hover {
  background: #e4e4e7;
}
.stepper-btn:active {
  transform: scale(0.92);
}

/* Native Mobile Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(228, 228, 231, 0.8);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 0.5rem;
  z-index: 40;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #71717a;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-md);
  transition: all 0.15s ease;
  min-width: 54px;
}
.nav-item svg {
  stroke: #71717a;
  transition: transform 0.15s ease, stroke 0.15s ease;
}
.nav-item.active {
  color: #09090b;
  font-weight: 700;
}
.nav-item.active svg {
  stroke: #09090b;
  transform: translateY(-1px);
}

/* Floating Action Button (FAB) */
.fab {
  position: fixed;
  right: 1.25rem;
  bottom: 5.25rem;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  background: #18181b;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  z-index: 35;
  transition: all 0.15s ease;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.fab:hover {
  background: #27272a;
  transform: translateY(-2px);
}
.fab:active {
  transform: scale(0.92);
}

/* Boutique Transaction Card (Clean, Non-AI-Slop) */
.tx-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-subtle);
  padding: 1.125rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.tx-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-card);
}

/* Modal Bottom Sheet */
@keyframes sheetSlideUp {
  from {
    transform: translateY(100%);
    opacity: 0.8;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 640px) {
  #modal {
    align-items: flex-end !important;
    padding: 0 !important;
  }
  #modal > form {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-top-left-radius: var(--radius-xl) !important;
    border-top-right-radius: var(--radius-xl) !important;
    max-height: 94vh !important;
    overflow-y: auto !important;
    margin-top: 0 !important;
    box-shadow: var(--shadow-sheet) !important;
    animation: sheetSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }
}

/* v2 refinement: clearer hierarchy, touch-first controls and app-like mobile shell */
:root { --radius-lg: 1.125rem; --radius-xl: 1.5rem; }
button, a, input, select, summary { touch-action: manipulation; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid rgba(16, 185, 129, .28); outline-offset: 2px;
}
.card-box { box-shadow: 0 2px 10px rgba(15,23,42,.035), 0 1px 2px rgba(15,23,42,.025); }
.b { min-height: 38px; border-radius: 10px; transition: transform .16s ease, background .16s ease, box-shadow .16s ease; }
.b:active { transform: scale(.98); }
.i { min-height: 42px; border-radius: 10px; }
#view { animation: view-in .22s ease both; }
@keyframes view-in { from { opacity: .65; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.bottom-nav { padding-bottom: max(env(safe-area-inset-bottom), 8px); min-height: calc(66px + env(safe-area-inset-bottom)); }
.fab { bottom: calc(82px + env(safe-area-inset-bottom)); box-shadow: 0 12px 28px rgba(24,24,27,.25); }
#modal { padding-top: max(env(safe-area-inset-top), 0px); }
#modal form { overscroll-behavior: contain; }
@media (max-width: 767px) {
  body { min-height: 100dvh; }
  main { padding-top: 16px !important; padding-left: 14px !important; padding-right: 14px !important; }
  .bottom-nav { position: fixed; z-index: 40; left: 10px; right: 10px; bottom: 8px; border: 1px solid rgba(228,228,231,.9); border-radius: 18px; background: rgba(255,255,255,.94); box-shadow: 0 12px 36px rgba(24,24,27,.13); backdrop-filter: blur(18px); }
  .bottom-nav .nav-item { flex: 1; min-width: 0; min-height: 54px; gap: 4px; padding-left: .15rem; padding-right: .15rem; font-size: 9px; }
  .bottom-nav .nav-item.active { color: #047857; }
  .bottom-nav .nav-item.active svg { stroke-width: 2.4; }
  #modal { align-items: flex-end !important; padding: 0 !important; }
  #modal form { width: 100%; max-width: none; max-height: min(92dvh, 900px); border-radius: 24px 24px 0 0; padding: 20px 18px calc(22px + env(safe-area-inset-bottom)); }
  #bar .flex.flex-wrap.items-center.justify-between.gap-3 { align-items: flex-start; }
  #bar .flex.flex-wrap.items-center.gap-2 { width: 100%; }
  #bar .flex.flex-wrap.items-center.gap-2 button { flex: 1; }
  table { min-width: 720px; }
  .card-box { border-radius: 16px; }
  .tx-card { border-radius: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
#nl-badge-frame { display: none !important; }

#receipt-print { display: none; }

/* Public storefront and seller tools */
.store-app-mode { background: #faf9f6 !important; }
.store-app-mode [hidden] { display: none !important; }
.store-app-mode #nav,
.store-app-mode > header,
.store-app-mode .bottom-nav,
.store-app-mode #fab-add,
.store-app-mode #bar { display: none !important; }
.login-app-mode #nav,
.login-app-mode > header,
.login-app-mode .bottom-nav,
.login-app-mode #fab-add { display: none !important; }
.login-app-mode main { max-width: 100% !important; }
.store-app-mode main { max-width: none !important; padding: 0 !important; }
.store-app-mode #view { animation: none; }
.store-shell { max-width: 1280px; margin: 0 auto; padding: 0 28px; color: #24231f; font-family: "Plus Jakarta Sans", sans-serif; }
.store-header { min-height: 82px; display: flex; justify-content: space-between; align-items: center; gap: 20px; border-bottom: 1px solid #e8e4dc; }
.store-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.store-brand img { width: 43px; height: 43px; object-fit: contain; }
.store-brand strong,.store-brand small { display: block; }
.store-brand strong { font-size: 13px; letter-spacing: .12em; }
.store-brand small { margin-top: 3px; color: #858174; font-size: 10px; letter-spacing: .04em; }
.store-nav { display: flex; align-items: center; gap: clamp(12px, 3vw, 36px); }
.store-nav a { color: #57554d; text-decoration: none; font-size: 12px; font-weight: 650; }
.store-nav a:hover,.store-quiet-link:hover { color: #a57840; }
.store-nav b { display: inline-flex; min-width: 19px; height: 19px; align-items: center; justify-content: center; margin-left: 3px; padding: 0 5px; border-radius: 99px; background: #efe9dd; font-size: 10px; }
.store-nav .store-nav-staff { padding: 10px 15px; border: 1px solid #ddd7ca; border-radius: 99px; }
.store-hero { position: relative; display: flex; min-height: 400px; justify-content: space-between; align-items: center; overflow: hidden; margin: 28px 0 76px; padding: clamp(32px, 7vw, 84px); border-radius: 8px; background: #20201d; color: #fff; }
.store-hero-copy { position: relative; z-index: 1; max-width: 590px; }
.store-eyebrow { margin: 0 0 12px; color: #a57840; font-size: 9px; font-weight: 800; letter-spacing: .18em; }
.store-hero h1,.store-page-heading h1 { margin: 0; font-family: Georgia, serif; font-size: clamp(38px, 6vw, 70px); font-weight: 400; line-height: 1.08; letter-spacing: -.045em; }
.store-hero h1 em { color: #d3b88a; font-weight: 400; }
.store-hero-copy > p:not(.store-eyebrow) { max-width: 435px; margin: 19px 0 26px; color: #c3c0b9; font-size: 13px; line-height: 1.8; }
.store-button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 9px; border: 1px solid transparent; border-radius: 4px; padding: 0 17px; font-size: 11px; font-weight: 750; text-decoration: none; cursor: pointer; transition: .15s ease; }
.store-button:disabled { opacity: .55; cursor: wait; }
.store-button-dark { background: #282722; color: white; }
.store-button-dark:hover { background: #a57840; }
.store-button-light { background: #e3cda9; color: #29261f; }
.store-button-light:hover { background: #f0dfc2; }
.store-button-outline { border-color: #d9d4ca; background: transparent; color: #38362f; }
.store-button-outline:hover { background: #f0ede7; }
.store-hero-mark { position: relative; display: flex; width: clamp(170px, 27vw, 320px); height: clamp(170px, 27vw, 320px); flex: 0 0 auto; flex-direction: column; align-items: center; justify-content: center; margin-left: 28px; color: #d3b88a; }
.store-hero-mark span { font-family: Georgia,serif; font-size: clamp(72px, 11vw, 130px); line-height: .9; }
.store-hero-mark small { margin-top: 13px; font-size: 8px; letter-spacing: .35em; }
.store-hero-ring { position: absolute; inset: 5%; border: 1px solid rgba(211,184,138,.42); border-radius: 50%; }
.store-hero-ring:before,.store-hero-ring:after { position: absolute; inset: 10%; border: 1px solid rgba(211,184,138,.25); border-radius: 50%; content: ""; }
.store-hero-ring:after { inset: -10%; border-color: rgba(211,184,138,.15); }
.store-collection { margin-bottom: 72px; scroll-margin-top: 20px; }
.store-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 25px; }
.store-section-heading h2,.store-page-heading h1 { font-family: Georgia,serif; }
.store-section-heading h2 { margin: 0; font-size: 34px; font-weight: 400; }
.store-section-heading > p,.store-page-heading > p:not(.store-eyebrow) { max-width: 350px; margin: 0; color: #858174; font-size: 11px; line-height: 1.7; }
.store-product-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.store-product { overflow: hidden; border: 1px solid #e8e4dc; border-radius: 5px; background: #fff; }
.store-product-image { display: block; width: 100%; aspect-ratio: 1.22 / 1; object-fit: cover; background: #ece9e2; }
.store-product-placeholder { display: grid; place-items: center; background: linear-gradient(145deg,#eeece6,#dfd8ca); color: #a57840; }
.store-product-placeholder span { font: 64px Georgia,serif; }
.store-product-body { padding: 18px; }
.store-product-body .store-eyebrow { margin-bottom: 7px; font-size: 8px; }
.store-product h3 { margin: 0 0 7px; font: 25px Georgia,serif; }
.store-product-description { min-height: 35px; margin: 0 0 17px; color: #817e74; font-size: 10px; line-height: 1.6; }
.store-product label,.store-form label,.seller-product-form > label,.seller-add-product > label { display: grid; gap: 6px; margin: 10px 0; color: #69665c; font-size: 10px; font-weight: 700; }
.store-select,.store-form input,.store-form textarea,.seller-product input,.seller-product textarea,.seller-add-product select,.seller-order-form input { width: 100%; min-height: 40px; border: 1px solid #e3dfd6; border-radius: 4px; background: #fff; padding: 8px 10px; color: #35332d; font: inherit; font-size: 11px; }
.store-form textarea,.seller-product textarea { resize: vertical; }
.store-add-button,.store-full-button { width: 100%; margin-top: 9px; }
.store-promise { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; padding: 30px 0 55px; border-top: 1px solid #e8e4dc; }
.store-promise > div { max-width: 250px; }
.store-promise span { color: #a57840; font: 22px Georgia,serif; }
.store-promise h3 { margin: 10px 0 5px; font: 17px Georgia,serif; }
.store-promise p,.store-fine-print { color: #898579; font-size: 10px; line-height: 1.7; }
.store-footer { display: flex; justify-content: space-between; gap: 15px; padding: 18px 0 25px; border-top: 1px solid #e8e4dc; color: #898579; font-size: 9px; }
.store-page-heading { margin: 54px 0 28px; }
.store-page-heading h1 { font-size: clamp(38px,5vw,56px); }
.store-page-heading > p:not(.store-eyebrow) { margin-top: 10px; }
.store-cart-layout,.store-checkout-layout { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(260px,.8fr); gap: 24px; align-items: start; margin-bottom: 65px; }
.store-cart-lines,.store-summary,.store-form,.store-tracking-card,.seller-product,.seller-order,.seller-add-product,.seller-bottles,.seller-notification-log { border: 1px solid #e8e4dc; border-radius: 5px; background: #fff; }
.store-cart-line { display: flex; justify-content: space-between; gap: 20px; padding: 19px; border-bottom: 1px solid #eeece7; }
.store-cart-line:last-child { border-bottom: 0; }
.store-cart-line h3,.store-summary h2,.store-form h2,.seller-add-product h2,.seller-bottles h2,.seller-notification-log h2 { margin: 0 0 7px; font: 20px Georgia,serif; }
.store-cart-line p { margin: 0 0 10px; color: #898579; font-size: 10px; }
.store-unavailable { color: #a34134 !important; }
.store-cart-line strong { font-size: 12px; }
.store-cart-controls { display: flex; flex-direction: column; align-items: end; gap: 8px; }
.store-quantity { width: 65px; height: 36px; border: 1px solid #e3dfd6; border-radius: 4px; padding: 5px; }
.store-link-danger,.store-quiet-link { border: 0; background: none; color: #898579; font-size: 10px; text-decoration: underline; cursor: pointer; }
.store-link-danger { color: #a34134; }
.store-summary { padding: 21px; }
.store-summary h2 { margin-bottom: 18px; }
.store-summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid #eeece7; color: #656258; font-size: 10px; }
.store-summary-row strong { color: #292820; white-space: nowrap; }
.store-summary-row small { display: block; margin-top: 4px; color: #929084; }
.store-summary-item { align-items: start; }
.store-summary-total { margin: 8px 0 12px; color: #28261f; font-weight: 800; }
.store-quiet-link { display: block; margin: 15px auto 0; text-align: center; }
.store-form { padding: 23px; }
.store-form h2 { margin-bottom: 18px; }
.store-form label { margin: 14px 0; }
.store-form-two { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.store-empty { margin: 24px 0 65px; padding: 42px 25px; border: 1px solid #e8e4dc; background: #fff; text-align: center; }
.store-empty h2,.store-empty h3 { margin: 0 0 9px; font: 26px Georgia,serif; }
.store-empty p { margin: 0 auto 18px; color: #858174; font-size: 11px; }
.store-alert { margin: 14px 0; padding: 12px 14px; border: 1px solid #efd0c9; border-radius: 4px; background: #fff5f2; color: #963f30; font-size: 11px; line-height: 1.6; }
.store-loading { display: grid; min-height: 230px; place-content: center; justify-items: center; color: #898579; font-size: 11px; }
.store-loading span { width: 26px; height: 26px; border: 2px solid #e5dfd3; border-top-color: #a57840; border-radius: 50%; animation: store-spin .8s linear infinite; }
@keyframes store-spin { to { transform: rotate(360deg); } }
.store-tracking-card { max-width: 760px; margin-bottom: 60px; padding: 24px; }
.store-tracking-top,.seller-product-head,.seller-order-head { display: flex; justify-content: space-between; gap: 15px; align-items: center; }
.store-tracking-top h2,.seller-order-head h2 { margin: 0; font: 24px Georgia,serif; }
.store-status { padding: 8px 10px; border-radius: 20px; background: #f0eadc; color: #755628; font-size: 10px; font-weight: 750; }
.store-tracking-items { margin: 18px 0 12px; }
.store-tracking-card > p { color: #656258; font-size: 11px; }
.seller-toolbar { display: flex; justify-content: end; gap: 10px; margin: 18px 0; }
.seller-add-product,.seller-bottles,.seller-notification-log { margin-bottom: 18px; padding: 20px; }
.seller-add-product { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 10px 18px; }
.seller-add-product h2 { grid-column: 1 / -1; }
.seller-add-product .store-fine-print { grid-column: 1 / -1; margin: 0; }
.seller-products,.seller-orders { display: grid; gap: 15px; margin: 18px 0 34px; }
.seller-product,.seller-order { padding: 20px; }
.seller-product-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 15px; }
.seller-product-head { grid-column: 1 / -1; align-items: start; }
.seller-product-head h2 { margin: 0; font: 23px Georgia,serif; }
.seller-product-form > label:nth-of-type(2) { grid-column: 1 / -1; }
.seller-variants { margin-top: 14px; padding-top: 15px; border-top: 1px solid #eeece7; }
.seller-variants h3 { margin: 0 0 12px; font: 17px Georgia,serif; }
.seller-variant-row { display: grid; grid-template-columns: minmax(70px,.55fr) minmax(110px,1fr) auto auto; align-items: end; gap: 10px; padding: 9px 0; border-bottom: 1px solid #f0eee9; }
.seller-variant-row label { display: grid; gap: 5px; color: #777368; font-size: 9px; }
.seller-variant-row input:not([type="checkbox"]):not([type="hidden"]) { width: 100%; min-width: 55px; height: 36px; border: 1px solid #e3dfd6; border-radius: 4px; padding: 6px; font-size: 10px; }
.seller-new-variant { grid-template-columns: minmax(80px,.6fr) minmax(110px,1fr); }
.seller-image-current { color: #898579; font-size: 9px; font-weight: 500; }
.seller-image-current a { color: #755628; text-decoration: underline; }
.seller-save-status { min-height: 18px; margin: -8px 0 12px; color: #39734b; font-size: 11px; }
.seller-save-status.is-error { color: #b42318; }
.store-success { margin: 12px 0; padding: 10px 12px; border: 1px solid #b8d8c0; border-radius: 5px; background: #eff8f1; color: #28643a; font-size: 11px; }
.store-toggle { display: inline-flex; align-items: center; gap: 7px; color: #656258; font-size: 10px; white-space: nowrap; }
.store-toggle input { accent-color: #a57840; }
.seller-bottle-list { display: flex; flex-wrap: wrap; gap: 14px 22px; }
.seller-order-head h2 { font-size: 20px; }
.seller-order-head p:not(.store-eyebrow) { margin: 6px 0 0; color: #898579; font-size: 10px; }
.seller-order-head > strong { white-space: nowrap; }
.seller-order-items { padding: 12px 0; border-top: 1px solid #eeece7; color: #656258; font-size: 10px; line-height: 1.8; }
.seller-order-form { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)) auto; align-items: end; gap: 10px; }
.seller-order-form label { display: grid; gap: 5px; color: #777368; font-size: 9px; }
.seller-notification-log p { color: #777368; font-size: 10px; }
@media (max-width: 760px) {
  .store-shell { padding: 0 16px; }
  .store-header { min-height: 70px; }
  .store-brand img { width: 37px; height: 37px; }
  .store-nav { gap: 11px; }
  .store-nav a { font-size: 10px; }
  .store-nav .store-nav-staff { padding: 8px 10px; }
  .store-hero { min-height: 345px; margin: 18px 0 50px; padding: 33px 25px; }
  .store-hero-mark { width: 110px; height: 110px; margin-left: 6px; opacity: .65; }
  .store-hero-mark span { font-size: 54px; }
  .store-hero-mark small { font-size: 6px; }
  .store-hero-copy > p:not(.store-eyebrow) { font-size: 11px; }
  .store-product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .store-product-body { padding: 13px; }
  .store-product h3 { font-size: 20px; }
  .store-product-description { font-size: 9px; }
  .store-product label { font-size: 9px; }
  .store-product .store-select { min-height: 37px; padding: 6px; font-size: 10px; }
  .store-section-heading { align-items: start; flex-direction: column; gap: 8px; }
  .store-promise { gap: 12px; }
  .store-promise h3 { font-size: 14px; }
  .store-promise p { font-size: 9px; }
  .store-footer { flex-direction: column; }
  .store-cart-layout,.store-checkout-layout { grid-template-columns: 1fr; }
  .store-summary { order: 2; }
  .seller-order-form { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .seller-order-form button { grid-column: 1 / -1; }
  .seller-variant-row { grid-template-columns: .7fr 1fr auto auto; }
}
@media (max-width: 430px) {
  .store-shell { padding: 0 12px; }
  .store-brand { gap: 6px; }
  .store-brand img { width: 32px; height: 32px; }
  .store-brand strong { font-size: 10px; }
  .store-brand small { font-size: 8px; }
  .store-nav { gap: 8px; }
  .store-nav a { font-size: 9px; }
  .store-hero-mark { position: absolute; right: 12px; top: 18px; width: 88px; height: 88px; opacity: .28; }
  .store-hero { min-height: 330px; padding: 30px 22px; }
  .store-product-grid { grid-template-columns: 1fr; }
  .store-product { display: grid; grid-template-columns: 36% 1fr; }
  .store-product-image { height: 100%; min-height: 235px; aspect-ratio: auto; }
  .store-product-body { padding: 12px 10px; }
  .store-product h3 { font-size: 18px; }
  .store-add-button { padding: 0 8px; font-size: 9px; }
  .store-promise { grid-template-columns: 1fr; }
  .store-form-two { grid-template-columns: 1fr; gap: 0; }
  .store-cart-line { padding: 14px 10px; }
  .seller-product,.seller-order { padding: 14px; }
  .seller-product-form { grid-template-columns: 1fr; }
  .seller-product-head { grid-column: auto; flex-direction: column; align-items: start; }
  .seller-product-form > label:nth-of-type(2) { grid-column: auto; }
  .seller-variant-row,.seller-new-variant { grid-template-columns: 1fr 1fr; }
  .seller-toolbar { justify-content: stretch; }
  .seller-toolbar > * { flex: 1; padding: 0 8px; text-align: center; }
}
@media print {
  body.printing-receipt {
    width: 58mm !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
  }
  body.printing-receipt > *:not(#receipt-print) { display: none !important; }
  body.printing-receipt #receipt-print {
    display: block !important;
    width: 58mm !important;
    margin: 0 !important;
    padding: 3mm !important;
    color: #000 !important;
    background: #fff !important;
    font: 10px/1.4 Arial, sans-serif !important;
    letter-spacing: 0 !important;
  }
  .receipt-sheet { width: 100%; }
  .receipt-header { text-align: center; padding-bottom: 3mm; }
  .receipt-header img {
    display: block;
    width: 24mm;
    height: 24mm;
    object-fit: contain;
    margin: 0 auto 3.5mm;
    filter: grayscale(1) contrast(1.35);
  }
  .receipt-header h1 { margin: 0; font-size: 15px; font-weight: 800; letter-spacing: 1px; }
  .receipt-header p { margin: 0; font-size: 9px; }
  .receipt-rule { border-top: 1px dashed #555; margin: 2.5mm 0; }
  .receipt-rule-strong { border-top: 1px solid #000; }
  .receipt-meta div, .receipt-line, .receipt-total {
    display: flex;
    justify-content: space-between;
    gap: 2mm;
    margin: 1mm 0;
  }
  .receipt-meta strong, .receipt-line span:last-child { text-align: right; }
  .receipt-product-name { font-weight: 700; }
  .receipt-items > p { margin: 1mm 0 2mm; overflow-wrap: anywhere; }
  .receipt-total { align-items: baseline; font-size: 13px; font-weight: 800; }
  .receipt-total strong { text-align: right; }
  .receipt-payment { margin-top: 3mm; }
  .receipt-note { margin-top: 2mm; overflow-wrap: anywhere; }
  .receipt-footer { margin-top: 5mm; text-align: center; }
  .receipt-footer p { margin: 1mm 0; }
  .receipt-ornament { margin: 2mm 0; color: #555; letter-spacing: 1.5mm; }
}
