/* =====================================================================
   Valenti Gelato B2B — Premium Design System v6
   ===================================================================== */

/* -------------------------------------------------------------------
   1. Design Tokens
   ------------------------------------------------------------------- */
:root {
  /* Brand */
  --valenti-navy:        #071E3D;
  --valenti-blue:        #0B4F9C;
  --valenti-blue-mid:    #1565C0;
  --valenti-blue-light:  #3B82F6;
  --valenti-gold:        #C28A2E;
  --valenti-gold-light:  #E6AF52;
  --valenti-cream:       #FFF7EA;
  --valenti-ice:         #F8FBFF;

  /* Surfaces */
  --surface:             #FFFFFF;
  --surface-2:           #F8F9FC;
  --surface-3:           #F0F2F8;
  --sidebar-bg:          #071E3D;
  --sidebar-hover:       rgba(255,255,255,.08);
  --sidebar-active:      rgba(194,138,46,.18);

  /* Text */
  --text-main:           #172033;
  --text-muted:          #667085;
  --text-subtle:         #98A2B3;
  --text-on-dark:        #FFFFFF;
  --text-on-sidebar:     rgba(255,255,255,.75);

  /* Border */
  --border:              #E6E8EF;
  --border-soft:         rgba(230,232,239,.6);

  /* Status */
  --success:             #12B76A;
  --success-bg:          #ECFDF3;
  --warning:             #F79009;
  --warning-bg:          #FFFAEB;
  --danger:              #F04438;
  --danger-bg:           #FEF3F2;
  --info:                #2E90FA;
  --info-bg:             #EFF8FF;
  --purple:              #7F56D9;
  --purple-bg:           #F4F3FF;

  /* Fruit / Product Accents */
  --strawberry:          #EF476F;
  --strawberry-light:    #FFE4EC;
  --mango:               #FFB703;
  --mango-light:         #FFF8E1;
  --vanilla:             #D4B483;
  --vanilla-light:       #FFF9F0;
  --oreo:                #2B2D42;
  --oreo-light:          #EEEEF2;
  --pistachio:           #56A35B;
  --pistachio-light:     #EDFAEE;
  --caramel:             #C87533;
  --caramel-light:       #FFF0E0;
  --berry:               #8E2DE2;
  --berry-light:         #F5EEFF;
  --lemon:               #FFD166;
  --lemon-light:         #FFFDE7;

  /* Shadows */
  --shadow-xs:   0 1px 3px rgba(16,24,40,.08);
  --shadow-sm:   0 2px 8px rgba(16,24,40,.10);
  --shadow-md:   0 8px 24px rgba(16,24,40,.10);
  --shadow-lg:   0 20px 48px rgba(16,24,40,.12);
  --shadow-xl:   0 32px 64px rgba(16,24,40,.16);
  --shadow-blue: 0 8px 24px rgba(11,79,156,.28);
  --shadow-gold: 0 8px 20px rgba(194,138,46,.30);
  --shadow-card: 0 4px 16px rgba(16,24,40,.08), 0 1px 3px rgba(16,24,40,.06);

  /* Radii */
  --r-xs:  6px;
  --r-sm:  10px;
  --r-md:  16px;
  --r-lg:  20px;
  --r-xl:  28px;
  --r-2xl: 36px;

  /* Sidebar */
  --sidebar-w: 240px;
  --topbar-h:  64px;

  /* Transitions */
  --t-fast:  120ms ease;
  --t-mid:   200ms ease;
  --t-slow:  360ms cubic-bezier(.4,0,.2,1);
}

/* -------------------------------------------------------------------
   2. Keyframe Animations
   ------------------------------------------------------------------- */
@keyframes fadeUp {
  from { opacity:0; transform:translateY(18px); }
  to   { opacity:1; transform:translateY(0); }
}
@keyframes fadeIn {
  from { opacity:0; }
  to   { opacity:1; }
}
@keyframes slideInLeft {
  from { opacity:0; transform:translateX(-24px); }
  to   { opacity:1; transform:translateX(0); }
}
@keyframes slideInRight {
  from { opacity:0; transform:translateX(100px); }
  to   { opacity:1; transform:translateX(0); }
}
@keyframes slideOutRight {
  from { opacity:1; transform:translateX(0); }
  to   { opacity:0; transform:translateX(100px); }
}
@keyframes tapBounce {
  0%,100% { transform:scale(1); }
  40%     { transform:scale(.88); }
  70%     { transform:scale(1.12); }
}
@keyframes cartPulse {
  0%   { box-shadow:0 0 0 0 rgba(194,138,46,.45); }
  70%  { box-shadow:0 0 0 12px rgba(194,138,46,0); }
  100% { box-shadow:0 0 0 0 rgba(194,138,46,0); }
}
@keyframes successPop {
  0%   { transform:scale(0) rotate(-10deg); opacity:0; }
  60%  { transform:scale(1.18) rotate(3deg); opacity:1; }
  100% { transform:scale(1) rotate(0deg); opacity:1; }
}
@keyframes shimmer {
  from { background-position:-200% center; }
  to   { background-position:200% center; }
}
@keyframes fruitFloat {
  0%,100% { transform:translateY(0) rotate(0deg); }
  25%     { transform:translateY(-12px) rotate(3deg); }
  75%     { transform:translateY(8px) rotate(-3deg); }
}
@keyframes softGlow {
  0%,100% { box-shadow:0 0 30px rgba(194,138,46,.20); }
  50%     { box-shadow:0 0 60px rgba(194,138,46,.45); }
}
@keyframes stagger-up {
  from { opacity:0; transform:translateY(24px); }
  to   { opacity:1; transform:translateY(0); }
}
@keyframes confettiFall {
  0%   { transform:translateY(-20px) rotate(0deg); opacity:1; }
  100% { transform:translateY(100vh) rotate(720deg); opacity:0; }
}
@keyframes spin {
  to { transform:rotate(360deg); }
}
@keyframes badgePop {
  0%   { transform:scale(0.7); opacity:0; }
  80%  { transform:scale(1.08); }
  100% { transform:scale(1); opacity:1; }
}

/* -------------------------------------------------------------------
   3. Utility Classes
   ------------------------------------------------------------------- */
.fade-up { animation:fadeUp var(--t-slow) both; }
.fade-in  { animation:fadeIn var(--t-slow) both; }

/* Stagger children */
.stagger > *:nth-child(1)  { animation:stagger-up .45s .00s ease both; }
.stagger > *:nth-child(2)  { animation:stagger-up .45s .06s ease both; }
.stagger > *:nth-child(3)  { animation:stagger-up .45s .12s ease both; }
.stagger > *:nth-child(4)  { animation:stagger-up .45s .18s ease both; }
.stagger > *:nth-child(5)  { animation:stagger-up .45s .24s ease both; }
.stagger > *:nth-child(6)  { animation:stagger-up .45s .30s ease both; }
.stagger > *:nth-child(7)  { animation:stagger-up .45s .36s ease both; }
.stagger > *:nth-child(8)  { animation:stagger-up .45s .42s ease both; }
.stagger > *:nth-child(9)  { animation:stagger-up .45s .48s ease both; }
.stagger > *:nth-child(10) { animation:stagger-up .45s .54s ease both; }
.stagger > *:nth-child(n+11) { animation:stagger-up .45s .60s ease both; }

.tap-bounce { animation:tapBounce 280ms ease; }
.cart-pulse { animation:cartPulse 600ms ease-out; }

/* -------------------------------------------------------------------
   4. Shared Portal Shell (Sidebar + Topbar)
   ------------------------------------------------------------------- */

/* ---- Topbar ---- */
.portal-topbar {
  position: fixed;
  top: 0;
  left: var(--sidebar-w);
  right: 0;
  height: var(--topbar-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 28px;
  z-index: 60;
  transition: left var(--t-slow);
}
.portal-topbar-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
  flex: 1;
}
.portal-topbar-user {
  display: flex;
  align-items: center;
  gap: 10px;
}
.portal-topbar-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--valenti-blue), var(--valenti-gold));
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}
.portal-topbar-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}
.portal-topbar-role {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 20px;
  background: var(--valenti-cream);
  color: var(--valenti-gold);
}

/* ---- Sidebar ---- */
.portal-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  z-index: 70;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}
.portal-sidebar::-webkit-scrollbar { display:none; }

.sidebar-brand {
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.sidebar-brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--valenti-gold), #9a6418);
  display: grid;
  place-items: center;
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(194,138,46,.40);
}
.sidebar-brand-text strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  letter-spacing: .5px;
}
.sidebar-brand-text small {
  font-size: 11px;
  color: rgba(255,255,255,.45);
  letter-spacing: .8px;
  text-transform: uppercase;
}

.sidebar-nav {
  padding: 12px 12px 0;
  flex: 1;
}
.sidebar-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.30);
  padding: 14px 8px 6px;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  color: var(--text-on-sidebar);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
  margin-bottom: 2px;
}
.sidebar-link:hover {
  background: var(--sidebar-hover);
  color: #fff;
  transform: translateX(2px);
}
.sidebar-link.active {
  background: var(--sidebar-active);
  color: var(--valenti-gold-light);
  font-weight: 700;
}
.sidebar-link.active .sidebar-icon { opacity:1; }
.sidebar-icon {
  font-size: 16px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
  opacity: .7;
}
.sidebar-badge {
  margin-left: auto;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}
.sidebar-footer {
  padding: 12px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.sidebar-logout {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  color: rgba(255,255,255,.50);
  text-decoration: none;
  font-size: 13px;
  transition: all var(--t-fast);
}
.sidebar-logout:hover {
  background: rgba(240,68,56,.15);
  color: #FDA29B;
}

/* ---- Content Area ---- */
.portal-shell {
  min-height: 100vh;
  background: var(--surface-2);
  display: flex;
}
.portal-main {
  margin-left: var(--sidebar-w);
  margin-top: var(--topbar-h);
  flex: 1;
  min-width: 0;
  padding: 32px;
  transition: margin-left var(--t-slow);
}
.portal-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.portal-page-header h1 {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -.3px;
  margin: 0;
}
.portal-page-header p {
  color: var(--text-muted);
  font-size: 14px;
  margin: 4px 0 0;
}
.portal-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--valenti-gold);
  margin-bottom: 4px;
}

/* -------------------------------------------------------------------
   5. Premium Cards
   ------------------------------------------------------------------- */
.vcard {
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.vcard-header {
  padding: 18px 22px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.vcard-header h2, .vcard-header h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}
.vcard-body {
  padding: 20px 22px;
}
.vcard-footer {
  padding: 14px 22px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
}

/* Stat Cards */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  padding: 20px 22px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: box-shadow var(--t-mid), transform var(--t-mid);
}
.stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.stat-orb {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 22px;
  flex-shrink: 0;
}
.stat-orb.blue   { background:var(--info-bg);    color:var(--info); }
.stat-orb.gold   { background:var(--mango-light); color:var(--caramel); }
.stat-orb.green  { background:var(--success-bg);  color:var(--success); }
.stat-orb.red    { background:var(--danger-bg);   color:var(--danger); }
.stat-orb.purple { background:var(--purple-bg);   color:var(--purple); }
.stat-orb.amber  { background:var(--warning-bg);  color:var(--warning); }
.stat-orb.navy   { background:rgba(7,30,61,.08);  color:var(--valenti-navy); }

.stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
}
.stat-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 4px;
}
.stat-sub {
  font-size: 12px;
  color: var(--text-subtle);
  margin-top: 2px;
}

/* -------------------------------------------------------------------
   6. Buttons
   ------------------------------------------------------------------- */
.vbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--t-mid);
  white-space: nowrap;
  line-height: 1.4;
}
.vbtn:disabled { opacity:.5; cursor:not-allowed; }
.vbtn.sm { padding:7px 14px; font-size:13px; }
.vbtn.lg { padding:13px 24px; font-size:15px; }
.vbtn.full { width:100%; }

.vbtn-primary {
  background: var(--valenti-blue);
  color: #fff;
  box-shadow: var(--shadow-blue);
}
.vbtn-primary:hover { background:var(--valenti-blue-mid); transform:translateY(-1px); }
.vbtn-primary:active { transform:translateY(0); box-shadow:none; }

.vbtn-gold {
  background: linear-gradient(135deg, var(--valenti-gold-light), var(--valenti-gold));
  color: #fff;
  box-shadow: var(--shadow-gold);
}
.vbtn-gold:hover { filter:brightness(1.08); transform:translateY(-1px); }

.vbtn-navy {
  background: var(--valenti-navy);
  color: #fff;
}
.vbtn-navy:hover { background:#0d2d5c; transform:translateY(-1px); }

.vbtn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1.5px solid var(--border);
}
.vbtn-outline:hover { border-color:var(--valenti-blue); color:var(--valenti-blue); background:var(--info-bg); }

.vbtn-success {
  background: var(--success);
  color: #fff;
  box-shadow: 0 4px 12px rgba(18,183,106,.30);
}
.vbtn-success:hover { filter:brightness(1.08); transform:translateY(-1px); }

.vbtn-danger {
  background: var(--danger);
  color: #fff;
}
.vbtn-danger:hover { filter:brightness(1.08); }

.vbtn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: none;
}
.vbtn-ghost:hover { background:var(--surface-3); color:var(--text-main); }

/* Shimmer / Loading */
.vbtn.is-loading {
  position: relative;
  overflow: hidden;
  pointer-events: none;
}
.vbtn.is-loading::after {
  content:'';
  position:absolute;
  inset:0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.3) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
}

/* -------------------------------------------------------------------
   7. Badges & Status
   ------------------------------------------------------------------- */
.vbadge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .3px;
}
.vbadge-new       { background:var(--info-bg);    color:var(--info);    }
.vbadge-confirmed { background:var(--mango-light); color:var(--caramel); }
.vbadge-prod      { background:var(--purple-bg);   color:var(--purple);  }
.vbadge-ready     { background:var(--success-bg);  color:var(--success); }
.vbadge-delivered { background:#EEF2FF;            color:#4338CA;        }
.vbadge-invoiced  { background:var(--warning-bg);  color:var(--warning); }
.vbadge-cancelled { background:var(--danger-bg);   color:var(--danger);  }
.vbadge-kg        { background:var(--mango-light); color:var(--caramel); }
.vbadge-unit      { background:var(--info-bg);     color:var(--info);    }

/* -------------------------------------------------------------------
   8. Premium Tables
   ------------------------------------------------------------------- */
.vtable-wrap {
  overflow-x: auto;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
}
.vtable {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
}
.vtable thead th {
  padding: 12px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.vtable tbody tr {
  transition: background var(--t-fast);
}
.vtable tbody tr:hover {
  background: var(--valenti-ice);
}
.vtable tbody td {
  padding: 13px 16px;
  font-size: 14px;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-soft);
  vertical-align: middle;
}
.vtable tbody tr:last-child td {
  border-bottom: none;
}

/* -------------------------------------------------------------------
   9. Form Controls
   ------------------------------------------------------------------- */
.vfield {
  margin-bottom: 16px;
}
.vfield label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}
.vinput, .vselect, .vtextarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 14px;
  color: var(--text-main);
  background: var(--surface);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  appearance: none;
}
.vinput:focus, .vselect:focus, .vtextarea:focus {
  outline: none;
  border-color: var(--valenti-blue);
  box-shadow: 0 0 0 3px rgba(11,79,156,.12);
}
.vinput.lg { padding:14px 16px; font-size:16px; border-radius:var(--r-md); }
.vtextarea { resize: vertical; min-height: 90px; }

/* -------------------------------------------------------------------
   10. Alerts
   ------------------------------------------------------------------- */
.valert {
  padding: 14px 18px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.valert-success { background:var(--success-bg); color:#065f46; border:1px solid #A7F3D0; }
.valert-error   { background:var(--danger-bg);  color:#991B1B; border:1px solid #FECACA; }
.valert-warning { background:var(--warning-bg); color:#92400E; border:1px solid #FDE68A; }
.valert-info    { background:var(--info-bg);    color:#1E40AF; border:1px solid #BFDBFE; }

/* -------------------------------------------------------------------
   11. Toast Notifications
   ------------------------------------------------------------------- */
#vtoasts {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.vtoast {
  background: var(--surface);
  padding: 14px 18px;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--info);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
  max-width: 360px;
  animation: slideInRight .3s ease-out;
  pointer-events: all;
}
.vtoast.success { border-color:var(--success); }
.vtoast.warning { border-color:var(--warning); }
.vtoast.danger  { border-color:var(--danger);  }

/* -------------------------------------------------------------------
   12. ADMIN SHELL
   ------------------------------------------------------------------- */
.admin-shell { background:var(--surface-2); }

/* Override portal-main padding for admin */
.admin-shell .portal-main {
  padding: 28px 32px 48px;
}

/* Admin quick stats row */
.admin-stats { margin-bottom: 24px; }
.admin-shell .stat-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.admin-shell .stat-card {
  min-width: 0;
  min-height: 118px;
  align-items: center;
  padding: 18px;
  border-radius: var(--r-md);
}
.admin-shell .stat-card > div:last-child {
  min-width: 0;
}
.admin-shell .stat-orb {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}
.admin-shell .stat-value {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 24px;
  line-height: 1.08;
}
.admin-shell .stat-label,
.admin-shell .stat-sub {
  line-height: 1.25;
}

/* Admin orders layout */
.admin-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 300px);
  gap: 20px;
  align-items: start;
}
@media (max-width: 1100px) {
  .admin-content-grid { grid-template-columns: 1fr; }
  .admin-shell .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Status filter pills */
.filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  border: 1.5px solid var(--border);
  cursor: pointer;
  text-decoration: none;
  color: var(--text-muted);
  background: var(--surface);
  transition: all var(--t-fast);
}
.filter-pill:hover { border-color:var(--valenti-blue); color:var(--valenti-blue); }
.filter-pill.active { background:var(--valenti-blue); color:#fff; border-color:var(--valenti-blue); }
.filter-pill-count {
  background: rgba(255,255,255,.25);
  border-radius: 10px;
  padding: 0 6px;
  font-size: 11px;
}
.filter-pill:not(.active) .filter-pill-count {
  background: var(--surface-3);
  color: var(--text-muted);
}

/* Quick actions sidebar */
.quick-actions-card { }
.quick-action-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-soft);
  text-decoration: none;
  color: var(--text-main);
  transition: all var(--t-fast);
}
.quick-action-item:last-child { border-bottom: none; }
.quick-action-item:hover { color:var(--valenti-blue); }
.quick-action-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
  background: var(--surface-3);
}

/* -------------------------------------------------------------------
   13. PRODUCTION SHELL
   ------------------------------------------------------------------- */
.production-shell { background: var(--surface-2); }

/* Production sidebar accent */
.production-shell .portal-sidebar {
  background: #0A1628;
}
.production-shell .sidebar-brand-mark {
  background: linear-gradient(135deg, #F79009, #B45309);
}

/* Kanban board */
.kanban-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}
@media (max-width: 900px) {
  .kanban-board { grid-template-columns: 1fr; }
}

.kanban-col {
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.kanban-col-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.kanban-col-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}
.kanban-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.kanban-dot.amber  { background: var(--warning); }
.kanban-dot.purple { background: var(--purple); }
.kanban-dot.green  { background: var(--success); }
.kanban-count {
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
}
.kanban-count.amber  { background:var(--warning-bg); color:var(--warning); }
.kanban-count.purple { background:var(--purple-bg);  color:var(--purple);  }
.kanban-count.green  { background:var(--success-bg); color:var(--success); }

.kanban-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 120px;
}

/* Order cards in kanban */
.order-kanban-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px;
  text-decoration: none;
  display: block;
  transition: all var(--t-mid);
}
.order-kanban-card:hover {
  border-color: var(--valenti-blue);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
.order-kanban-num {
  font-size: 13px;
  font-weight: 800;
  color: var(--valenti-blue);
  margin-bottom: 6px;
  font-family: monospace;
}
.order-kanban-meta {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}
.order-kanban-meta strong { color:var(--text-main); font-weight:600; }
.order-kanban-date {
  font-size: 11px;
  color: var(--text-subtle);
  margin-top: 6px;
}
.order-kanban-actions {
  margin-top: 10px;
}

/* Production order detail */
.prod-detail-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 20px;
  align-items: start;
}
@media (max-width: 900px) {
  .prod-detail-grid { grid-template-columns: 1fr; }
}

.prod-info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 14px;
}
.prod-info-item:last-child { border-bottom:none; }
.prod-info-item span:first-child { color:var(--text-muted); font-weight:500; }
.prod-info-item span:last-child  { color:var(--text-main);  font-weight:600; }

/* KG Table */
.pkg-table { width:100%; border-collapse:collapse; }
.pkg-table th {
  padding: 10px 14px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .7px;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.pkg-table td {
  padding: 12px 14px;
  font-size: 14px;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-soft);
  vertical-align: middle;
}
.pkg-table tr:last-child td { border-bottom:none; }
.pkg-product-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
}
.pkg-product-img {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  border-radius: 14px;
  object-fit: cover;
  background: var(--valenti-cream);
  border: 1px solid var(--border-soft);
}
.pkg-kg-input {
  width: 110px;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  background: var(--surface);
}
.pkg-kg-input:focus {
  outline: none;
  border-color: var(--valenti-blue);
  box-shadow: 0 0 0 3px rgba(11,79,156,.12);
}
.pkg-note-input {
  width: 100%;
  min-width: 160px;
  padding: 9px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 13px;
  transition: border-color var(--t-fast);
}
.pkg-note-input:focus { outline:none; border-color:var(--valenti-blue); }
.pkg-status-done    { color:var(--success); font-size:13px; font-weight:700; }
.pkg-status-pending { color:var(--warning); font-size:13px; font-weight:600; }

/* Production action bar */
.prod-action-bar {
  display: flex;
  gap: 12px;
  padding: 16px 0 0;
  flex-wrap: wrap;
  align-items: center;
}

/* -------------------------------------------------------------------
   14. CUSTOMER MOBILE APP SHELL
   ------------------------------------------------------------------- */
.customer-shell {
  background: var(--surface-2);
  min-height: 100vh;
}

/* App Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 16px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.app-header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.app-header-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--valenti-gold-light), var(--valenti-gold));
  display: grid;
  place-items: center;
  color: #fff;
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 800;
}
.app-header-text strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--text-main);
}
.app-header-text small {
  font-size: 11px;
  color: var(--text-muted);
}

/* Bottom Nav */
.app-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 68px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  z-index: 50;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.app-bottom-nav-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
}
.app-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-decoration: none;
  padding: 8px 4px;
  color: var(--text-subtle);
  font-size: 11px;
  font-weight: 600;
  transition: color var(--t-fast);
}
.app-nav-item .nav-icon {
  font-size: 20px;
  line-height: 1;
}
.app-nav-item.active {
  color: var(--valenti-blue);
}
.app-nav-item.active .nav-icon {
  transform: scale(1.1);
}

.sidebar-backdrop {
  display: none;
}

/* -------------------------------------------------------------------
   15. CUSTOMER ORDER PAGE — DESKTOP GRID
   ------------------------------------------------------------------- */

/* Desktop: 2-column layout (products | cart sidebar) */
.order-desktop-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  align-items: start;
}
@media (max-width: 960px) {
  .order-desktop-layout { grid-template-columns: 1fr; }
}

/* Branch + category + search bar */
.order-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.branch-picker {
  display: grid;
  gap: 6px;
  min-width: 220px;
}
.branch-picker span {
  color: var(--valenti-gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.order-select-branch {
  padding: 11px 38px 11px 14px;
  border: 1.5px solid rgba(11, 79, 156, .24);
  border-radius: 14px;
  font-size: 15px;
  font-weight: 850;
  color: var(--text-main);
  background-color: var(--surface);
  cursor: pointer;
  min-width: 220px;
  box-shadow: 0 10px 26px rgba(7, 30, 61, .06);
}
.order-select-branch:focus { outline:none; border-color:var(--valenti-blue); box-shadow:0 0 0 4px rgba(11,79,156,.1); }
.order-search {
  flex: 1;
  min-width: 160px;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  font-size: 14px;
  background: var(--surface);
}
.order-search:focus { outline:none; border-color:var(--valenti-blue); }

/* Category tabs */
.category-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.cat-pill {
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 850;
  border: 1.5px solid var(--border);
  cursor: pointer;
  color: var(--text-muted);
  background: var(--surface);
  transition: all var(--t-fast);
}
.cat-pill:hover { border-color:var(--valenti-blue); color:var(--valenti-blue); }
.cat-pill.active {
  background: var(--valenti-navy);
  color: #fff;
  border-color: var(--valenti-navy);
  box-shadow: 0 12px 28px rgba(7, 30, 61, .16);
}
.cat-pill span {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(11, 79, 156, .10);
  color: inherit;
  font-size: 12px;
  font-weight: 900;
}
.cat-pill.active span {
  background: rgba(255,255,255,.16);
}
.order-mode-note {
  margin: -4px 0 12px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
}

/* Product Grid — Desktop */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.product-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 2px solid var(--border);
  padding: 18px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all var(--t-mid);
  position: relative;
  overflow: hidden;
}
.product-card::before {
  content:'';
  position:absolute;
  top:0; left:0; right:0;
  height:3px;
  background: var(--product-accent, var(--border));
  opacity: 0;
  transition: opacity var(--t-fast);
}
.product-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(11,79,156,.20);
  transform: translateY(-2px);
}
.product-card.selected {
  border-color: var(--valenti-blue);
  box-shadow: 0 0 0 3px rgba(11,79,156,.10), var(--shadow-md);
}
.product-card.selected::before { opacity:1; }

.product-card-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--r-md);
  align-self: center;
  background: var(--surface-2);
}
.product-card-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  text-align: center;
}
.product-card-price {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}
.product-card-hint {
  font-size: 11px;
  color: var(--text-subtle);
  text-align: center;
}

/* Product List — Mobile */
.product-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 16px;
}
.product-list-item {
  background: var(--surface);
  border-radius: var(--r-md);
  border: 2px solid var(--border);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all var(--t-mid);
}
.product-list-item.selected {
  border-color: var(--valenti-blue);
  background: var(--valenti-ice);
}
.product-list-img {
  width: 64px;
  height: 64px;
  border-radius: var(--r-sm);
  object-fit: cover;
  background: var(--surface-2);
  flex-shrink: 0;
}
.product-list-info {
  flex: 1;
  min-width: 0;
}
.product-list-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}
.product-list-price {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}
.product-list-hint {
  font-size: 11px;
  color: var(--text-subtle);
  margin-top: 1px;
}

/* Stepper */
.app-stepper {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: 40px;
  overflow: hidden;
  width: fit-content;
}
.stepper-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all var(--t-fast);
  background: transparent;
}
.stepper-btn.minus {
  color: var(--text-muted);
}
.stepper-btn.minus:hover {
  background: var(--danger-bg);
  color: var(--danger);
}
.stepper-btn.plus {
  background: var(--valenti-blue);
  color: #fff;
}
.stepper-btn.plus:hover { background:var(--valenti-blue-mid); }
.stepper-btn.plus:active { animation:tapBounce 240ms ease; }
.stepper-value {
  min-width: 36px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  padding: 0 4px;
}

/* Cart Sidebar (Desktop sticky) */
.cart-sidebar {
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  position: sticky;
  top: calc(var(--topbar-h) + 16px);
  overflow: hidden;
}
.cart-sidebar-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cart-sidebar-header h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
}
.cart-sidebar-body {
  padding: 12px 16px;
  max-height: calc(100vh - 280px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cart-sidebar-empty {
  text-align: center;
  padding: 32px 20px;
  color: var(--text-muted);
  font-size: 14px;
}
.cart-sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-soft);
}
.cart-sidebar-item:last-child { border-bottom:none; }
.cart-sidebar-img {
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  object-fit: cover;
  background: var(--surface-2);
  flex-shrink: 0;
}
.cart-sidebar-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  flex: 1;
  min-width: 0;
}
.cart-sidebar-qty {
  font-size: 12px;
  color: var(--text-muted);
}
.cart-sidebar-footer {
  padding: 14px 16px;
  border-top: 1px solid var(--border);
}
.cart-sidebar-count {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.cart-sidebar-count strong {
  color: var(--valenti-blue);
  font-size: 16px;
}

.mobile-submit-order-bar {
  display: none;
}

/* Sticky Cart Mobile Bottom Bar */
.sticky-cart-bar {
  position: fixed;
  bottom: 68px; /* above bottom nav */
  left: 0;
  right: 0;
  z-index: 45;
  padding: 0 16px 8px;
  display: none;
}
.sticky-cart-bar.active { display: block; }
.sticky-cart-inner {
  background: var(--valenti-navy);
  border-radius: var(--r-lg);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-xl);
  animation: fadeUp .3s ease;
}
.sticky-cart-info { color:rgba(255,255,255,.80); font-size:13px; }
.sticky-cart-info strong { color:#fff; font-size:16px; font-weight:800; display:block; }

/* -------------------------------------------------------------------
   16. CART PAGE
   ------------------------------------------------------------------- */
.cart-page-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
  align-items: start;
}
@media (max-width: 820px) {
  .cart-page-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .customer-shell .cart-page-layout {
    padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  }

  .mobile-submit-order-bar {
    position: fixed;
    left: 12px;
    right: auto;
    bottom: calc(88px + env(safe-area-inset-bottom, 0px));
    z-index: 118;
    width: min(calc(100vw - 24px), 366px);
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 10px 10px 14px;
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(230, 232, 239, .9);
    border-radius: 22px;
    box-shadow: 0 18px 46px rgba(7, 30, 61, .18);
    backdrop-filter: blur(18px);
  }

  .mobile-submit-order-bar > div {
    min-width: 0;
  }

  .mobile-submit-order-bar strong,
  .mobile-submit-order-bar small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-submit-order-bar strong {
    color: var(--text-main);
    font-size: 13px;
    line-height: 1.15;
    font-weight: 800;
  }

  .mobile-submit-order-bar small {
    margin-top: 2px;
    color: var(--text-muted);
    font-size: 11px;
  }

  .mobile-submit-order-button {
    flex: 0 0 auto;
    min-height: 44px;
    max-width: 150px;
    padding: 0 16px;
    border: 0;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--valenti-blue), #0E6AC7);
    box-shadow: 0 12px 24px rgba(11, 79, 156, .24);
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
    cursor: pointer;
  }

  .mobile-submit-order-button:disabled {
    cursor: not-allowed;
    opacity: .55;
    box-shadow: none;
  }
}

.cart-items-card { }
.cart-line {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-soft);
}
.cart-line:last-child { border-bottom:none; }
.cart-line-img {
  width: 60px;
  height: 60px;
  border-radius: var(--r-sm);
  object-fit: cover;
  background: var(--surface-2);
  flex-shrink: 0;
}
.cart-line-info { flex:1; min-width:0; }
.cart-line-name { font-size:15px; font-weight:700; color:var(--text-main); }
.cart-line-price { font-size:13px; color:var(--text-muted); margin-top:2px; }
.cart-line-qty {
  font-size: 13px;
  font-weight: 700;
  color: var(--valenti-blue);
  background: var(--info-bg);
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

/* Order note */
.cart-note-card { }
.cart-note-card label {
  font-size:13px; font-weight:600; color:var(--text-main); display:block; margin-bottom:8px;
}
.cart-note-card textarea {
  width:100%;
  padding:12px 14px;
  border:1.5px solid var(--border);
  border-radius:var(--r-md);
  font-size:14px;
  min-height:90px;
  resize:vertical;
  font-family:inherit;
  transition:border-color var(--t-fast);
}
.cart-note-card textarea:focus { outline:none; border-color:var(--valenti-blue); }

/* Summary card */
.cart-summary-card { }
.cart-summary-info-note {
  background: var(--info-bg);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  font-size: 13px;
  color: var(--info);
  border: 1px solid #BFDBFE;
  margin-bottom: 14px;
  line-height: 1.5;
}

/* -------------------------------------------------------------------
   17. SUCCESS SCREEN
   ------------------------------------------------------------------- */
.success-screen {
  text-align: center;
  padding: 48px 24px;
}
.success-check {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--success), #059669);
  color: #fff;
  font-size: 36px;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  box-shadow: 0 8px 24px rgba(18,183,106,.35);
  animation: successPop 0.5s ease both;
}
.success-animation {
  width: 118px;
  min-height: 118px;
  margin: 0 auto 18px;
}
.success-screen h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}
.success-screen p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 24px;
}
.success-order-num {
  display: inline-block;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 8px 18px;
  font-family: monospace;
  font-size: 16px;
  font-weight: 700;
  color: var(--valenti-blue);
  margin-bottom: 28px;
}
.success-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.order-success-hero {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  display: grid;
  justify-items: center;
  align-content: center;
  padding: 46px 20px 56px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 16% 86%, rgba(255,255,255,.18) 0 70px, transparent 71px),
    radial-gradient(circle at 92% 2%, rgba(255,255,255,.20) 0 104px, transparent 105px),
    linear-gradient(145deg, #159447 0%, #05712d 58%, #00451e 100%);
  color: #fff;
  box-shadow: 0 22px 50px rgba(4, 95, 45, .22);
}
.order-success-check {
  width: 118px;
  height: 118px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border: 6px solid rgba(255,255,255,.45);
  border-radius: 50%;
  color: #fff;
  font-size: 76px;
  line-height: 1;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.16);
}
.order-success-hero h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 950;
  text-align: center;
}
.order-success-hero p {
  margin: 0 0 26px;
  color: rgba(255,255,255,.94);
  font-size: 14px;
  font-weight: 750;
  text-align: center;
}
.order-success-number {
  width: min(100%, 322px);
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 18px;
  border-radius: 999px;
  background: #fff;
  color: #172033;
  box-shadow: 0 14px 30px rgba(0,0,0,.12);
}
.order-success-number span {
  color: #172033;
  font-size: 13px;
  font-weight: 500;
}
.order-success-number strong {
  color: #172033;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .02em;
  white-space: nowrap;
}
.cart-loading-animation {
  width: 116px;
  min-height: 116px;
  margin: 12px auto 0;
}
.production-motion-card {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px 22px;
  margin-bottom: 20px;
  background:
    radial-gradient(circle at 8% 20%, rgba(194,138,46,.16), transparent 24%),
    linear-gradient(135deg, #fff, var(--valenti-ice));
}
.production-motion-card h3 {
  margin: 0 0 6px;
  color: var(--text-main);
  font-size: 17px;
}
.production-motion-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
}
.production-motion-visual {
  width: 118px;
  min-height: 118px;
}

/* Confetti */
.confetti-piece {
  position: fixed;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  top: -20px;
  animation: confettiFall linear forwards;
  z-index: 9998;
  pointer-events: none;
}

/* -------------------------------------------------------------------
   17b. Lottie and Premium Motion Fallbacks
   ------------------------------------------------------------------- */
.login-lottie-stage {
  position: absolute;
  right: 86px;
  top: 132px;
  width: 176px;
  height: 176px;
  z-index: 1;
  opacity: .95;
  pointer-events: none;
}
.lottie-fallback {
  display: grid;
  place-items: center;
  min-height: 120px;
}
.lottie-fallback-icon {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 42px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--success), #08915a);
  box-shadow: 0 20px 46px rgba(22,163,74,.30);
  animation: successPop .6s cubic-bezier(.34,1.56,.64,1) both;
}
.gelato-loader {
  position: relative;
  width: 128px;
  height: 128px;
  border-radius: 34px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 28px 70px rgba(7,30,61,.22);
}
.gelato-loader span {
  position: absolute;
  border-radius: 50%;
  animation: fruitFloat 3.8s ease-in-out infinite;
}
.gelato-loader span:nth-child(1) {
  width: 62px;
  height: 62px;
  left: 24px;
  top: 28px;
  background: radial-gradient(circle at 34% 28%, #fff, var(--strawberry) 50%, #b92d4f);
}
.gelato-loader span:nth-child(2) {
  width: 58px;
  height: 58px;
  right: 20px;
  top: 40px;
  background: radial-gradient(circle at 34% 28%, #fff7d6, var(--mango) 58%, #d88400);
  animation-delay: .35s;
}
.gelato-loader span:nth-child(3) {
  width: 86px;
  height: 30px;
  left: 22px;
  bottom: 18px;
  border-radius: 0 0 28px 28px;
  background: linear-gradient(180deg, #fff, var(--valenti-cream));
  border: 1px solid var(--border);
  animation-delay: .7s;
}
.production-loader {
  position: relative;
  width: 132px;
  height: 132px;
  border-radius: 34px;
  background: linear-gradient(135deg, #fff, var(--valenti-ice));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.production-loader span {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 28px;
  height: 42px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--valenti-cream), #fff);
  border: 3px solid var(--valenti-navy);
}
.production-loader i {
  position: absolute;
  left: 58px;
  top: 24px;
  width: 16px;
  height: 74px;
  border-radius: 10px;
  background: var(--valenti-gold);
  transform-origin: center 70px;
  animation: productionMix 1.6s ease-in-out infinite alternate;
}
.empty-illustration {
  width: 132px;
  height: 112px;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--valenti-cream), #fff);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
}
.empty-illustration span {
  display: block;
  height: 8px;
  border-radius: 12px;
  background: rgba(11,79,156,.22);
}
.empty-illustration span:nth-child(1) { width: 76px; }
.empty-illustration span:nth-child(2) { width: 54px; }
.empty-illustration span:nth-child(3) { width: 90px; }
.empty-state-visual {
  margin: 0 auto 12px;
  width: 140px;
  min-height: 116px;
}
.badge-enter {
  animation: badgePop .42s cubic-bezier(.34,1.56,.64,1) both;
}
.sidebar-link-hovered {
  box-shadow: inset 3px 0 0 var(--valenti-gold);
}
@keyframes productionMix {
  from { transform: rotate(-14deg); }
  to { transform: rotate(14deg); }
}

/* -------------------------------------------------------------------
   18. MOBILE-ONLY OVERRIDES
   ------------------------------------------------------------------- */
@media (max-width: 768px) {

  /* Sidebar: hidden on mobile, replaced by bottom nav */
  .portal-sidebar {
    transform: translateX(-100%);
    transition: transform var(--t-slow);
  }
  .portal-sidebar.open {
    transform: translateX(0);
  }
  .portal-topbar {
    left: 0;
  }
  .portal-main {
    margin-left: 0;
    padding: 16px;
  }

  /* Customer mobile: no topbar/sidebar, use app-header */
  .customer-shell .portal-topbar,
  .customer-shell .portal-sidebar { display:none; }
  .customer-shell .portal-main { margin:0; padding:0 0 140px; }

  /* Product grid → list on mobile */
  .product-grid { display:none; }
  .product-list { display:flex; }

  /* Order desktop layout */
  .order-desktop-layout { grid-template-columns:1fr; }

  /* Hide desktop cart sidebar */
  .cart-sidebar.desktop-only { display:none; }

  /* Show sticky bottom bar */
  .sticky-cart-bar { display:block; }

  /* Admin: hide sidebar on mobile */
  .admin-shell .portal-sidebar { display:none; }
  .admin-shell .portal-main { margin-left:0; padding:16px; }
  .admin-shell .portal-topbar { left:0; }

  /* Production: same */
  .production-shell .portal-sidebar { display:none; }
  .production-shell .portal-main { margin-left:0; padding:16px; }
  .production-shell .portal-topbar { left:0; }

  /* Stat grid */
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap:12px; }
  .stat-card { padding:14px; }
  .admin-shell .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-shell .stat-card {
    min-height: 104px;
    padding: 14px;
    gap: 10px;
  }
  .admin-shell .stat-orb {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }
  .admin-shell .stat-value { font-size: 20px; }
  .admin-shell .stat-label { font-size: 12px; }
  .admin-shell .stat-sub { font-size: 11px; }

  /* Kanban → single col */
  .kanban-board { grid-template-columns:1fr; }

  /* Admin content grid → single col */
  .admin-content-grid { grid-template-columns:1fr; }

  /* Production detail */
  .prod-detail-grid { grid-template-columns:1fr; }
}

@media (min-width: 769px) {
  /* Desktop: show product grid, hide list */
  .product-grid  { display:grid; }
  .product-list  { display:none; }

  /* Hide sticky bottom bar on desktop */
  .sticky-cart-bar { display:none !important; }

  /* Hide mobile app header + bottom nav on desktop for portal pages */
  .portal-shell .app-header { display:none; }
  .app-bottom-nav { display:none; }
}

/* Customer mobile app header is controlled by the responsive portal rules below. */
.customer-shell .app-header { display:flex !important; }

/* -------------------------------------------------------------------
   19. KG Entry Responsive
   ------------------------------------------------------------------- */
.pkg-mobile-cards { display:none; }
.pkg-desktop-table { display:block; }
@media (max-width:680px) {
  .pkg-mobile-cards { display:block; }
  .pkg-desktop-table { display:none; }
}

.pkg-mobile-card {
  background: var(--surface);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  padding: 16px;
  margin-bottom: 12px;
}
.pkg-mobile-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.pkg-mobile-img {
  width: 68px;
  height: 68px;
  flex: 0 0 auto;
  border-radius: 16px;
  object-fit: cover;
  background: var(--valenti-cream);
  border: 1px solid var(--border-soft);
}
.pkg-mobile-card-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0;
  line-height: 1.2;
}
.pkg-mobile-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.pkg-mobile-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 6px;
}
.pkg-mobile-val {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

/* -------------------------------------------------------------------
   20. Misc Portal Components
   ------------------------------------------------------------------- */

/* Eyebrow text */
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--valenti-gold);
  display: block;
  margin-bottom: 4px;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 56px 24px;
  color: var(--text-muted);
}
.empty-state-icon { font-size:48px; margin-bottom:12px; line-height:1; }
.empty-state-title { font-size:16px; font-weight:700; color:var(--text-main); margin-bottom:6px; }
.empty-state-text  { font-size:14px; color:var(--text-muted); }

/* Icon pills (header buttons) */
.icon-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  text-decoration: none;
  transition: all var(--t-fast);
  cursor: pointer;
}
.icon-pill:hover { border-color:var(--valenti-blue); color:var(--valenti-blue); }
.icon-pill.primary { background:var(--valenti-blue); color:#fff; border-color:var(--valenti-blue); }
.icon-pill.danger  { background:var(--danger-bg); color:var(--danger); border-color:var(--danger-bg); }
.icon-pill.danger:hover { background:var(--danger); color:#fff; }

/* Section divider */
.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 20px 0;
}

/* Responsive helper */
.desktop-only { }
.mobile-only { display:none; }
@media (max-width:768px) {
  .desktop-only { display:none !important; }
  .mobile-only  { display:block !important; }
}

/* -------------------------------------------------------------------
   21. Unified Premium Portal Refactor
   ------------------------------------------------------------------- */
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--surface-2); }
body.portal-shell {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at 88% 0%, rgba(11,79,156,.08), transparent 28%),
    linear-gradient(180deg, #fbfdff, var(--surface-2));
}
a { color: inherit; }

.sidebar-logo {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  object-fit: cover;
  background: rgba(255,255,255,.08);
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}
.sidebar-icon,
.nav-icon,
.mobile-menu-btn {
  font-family: inherit;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}
.sidebar-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.82);
}
.sidebar-link.active .sidebar-icon {
  background: var(--valenti-gold);
  color: #fff;
}
.mobile-menu-btn {
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--valenti-navy);
}
.topbar-user-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 1px;
}
.portal-support-pill {
  margin-left: auto;
  margin-right: 18px;
  max-width: min(38vw, 430px);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
  border: 1px solid rgba(194, 138, 46, .28);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255,247,234,.96), rgba(255,255,255,.94));
  color: var(--text-main);
  box-shadow: 0 14px 34px rgba(7, 30, 61, .08);
}
.support-dot {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--valenti-gold);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}
.support-copy {
  min-width: 0;
  display: grid;
  gap: 1px;
}
.support-copy strong,
.support-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.support-copy strong {
  font-size: 12px;
  line-height: 1.1;
}
.support-copy span {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
}
.page-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.portal-page-subtitle {
  color: var(--text-muted);
  font-size: 14px;
  margin: 6px 0 0;
}

.vgrid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.vgrid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.vgrid-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.vgrid-form .full { grid-column: 1 / -1; }
.vstack { display: grid; gap: 18px; }
.vactions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.switch-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-main);
  font-weight: 750;
}
.switch-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--valenti-blue);
}
.muted { color: var(--text-muted); }
.amount { font-weight: 800; color: var(--valenti-navy); white-space: nowrap; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.nowrap { white-space: nowrap; }

.vmetric-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 14px;
}
.vmetric-row:last-child { border-bottom: 0; }
.vmetric-row span:first-child { color: var(--text-muted); }
.vmetric-row strong { color: var(--text-main); text-align: right; }
.vmetric-row.total {
  font-size: 17px;
  font-weight: 800;
  color: var(--valenti-navy);
}

.soft-panel {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--valenti-ice), #fff);
  padding: 16px;
}
.upload-note {
  border: 1px dashed rgba(11,79,156,.28);
  border-radius: var(--r-md);
  background: var(--info-bg);
  color: #1d4ed8;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.55;
}
.doc-preview {
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  padding: 12px 14px;
}

.thumb {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  object-fit: cover;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.product-upload-inline {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 250px;
}
.product-upload-inline .vinput {
  padding: 8px 10px;
  font-size: 12px;
}
.check-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 650;
}
.check-row input { width: auto; }

.quick-action-icon {
  color: var(--valenti-blue);
  font-size: 12px;
  font-weight: 900;
}
.stat-orb {
  color: currentColor;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(420px, .9fr);
  background: var(--valenti-navy);
}
.login-visual {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 54px;
  color: #fff;
  background:
    radial-gradient(circle at 25% 24%, rgba(194,138,46,.28), transparent 26%),
    radial-gradient(circle at 72% 72%, rgba(11,79,156,.42), transparent 30%),
    linear-gradient(145deg, #071E3D, #0b2d5b 58%, #071E3D);
}
.login-hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  text-align: center;
  width: 100%;
}
.login-premium-logo {
  width: min(520px, 80%);
  height: auto;
  display: block;
  margin-bottom: 32px;
  filter: drop-shadow(0 24px 40px rgba(0,0,0,.35));
}
.login-brand-logo {
  width: 260px;
  max-width: 70%;
  height: auto;
  margin-bottom: 70px;
}
.login-portal-label {
  margin: 0 0 12px;
  color: rgba(255,255,255,.78);
  font-size: 17px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.login-visual h1 {
  max-width: 560px;
  margin: 0;
  font-size: 44px;
  line-height: 1.12;
  letter-spacing: 0;
}
.login-visual p {
  max-width: 500px;
  color: rgba(255,255,255,.76);
  font-size: 17px;
  line-height: 1.7;
  margin-top: 20px;
}
.login-visual .login-portal-label {
  margin: 0 0 12px;
  color: rgba(255,255,255,.78);
  font-size: 17px;
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.fruit-stage {
  position: absolute;
  inset: auto 42px 38px auto;
  width: 420px;
  max-width: 46vw;
  height: 320px;
  opacity: .38;
  pointer-events: none;
}
.fruit-card {
  position: absolute;
  width: 112px;
  height: 112px;
  border-radius: 30px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.94);
  box-shadow: 0 26px 60px rgba(0,0,0,.24);
  animation: fruitFloat 5.5s ease-in-out infinite;
}
.fruit-card img { width: 82px; height: 82px; object-fit: cover; border-radius: 20px; }
.fruit-card:nth-child(1) { left: 0; top: 80px; animation-delay: 0s; }
.fruit-card:nth-child(2) { left: 128px; top: 18px; animation-delay: .4s; }
.fruit-card:nth-child(3) { left: 258px; top: 96px; animation-delay: .8s; }
.fruit-card:nth-child(4) { left: 118px; top: 182px; animation-delay: 1.2s; }
.login-form-side {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  background: linear-gradient(180deg, #fff, var(--valenti-cream));
}
.login-card-premium {
  width: min(100%, 440px);
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(230,232,239,.9);
  border-radius: 30px;
  box-shadow: 0 36px 80px rgba(7,30,61,.16);
  padding: 36px;
}
.login-card-premium h2 { margin: 0; font-size: 28px; color: var(--text-main); }
.login-card-premium .subtitle { color: var(--text-muted); margin: 8px 0 28px; }
/* -------------------------------------------------------------------
   Premium Login Hero v2
   ------------------------------------------------------------------- */
.login-page {
  grid-template-columns: minmax(0, 1.18fr) minmax(420px, .82fr);
  background:
    linear-gradient(135deg, #071E3D, #0A2348 55%, #F8FBFF 55%);
}

.login-visual {
  isolation: isolate;
  place-items: stretch;
  padding: clamp(34px, 5vw, 68px);
  background:
    linear-gradient(90deg, rgba(7,30,61,.90), rgba(7,30,61,.54)),
    url("/assets/hero/login-premium-hero.webp") center / cover no-repeat,
    linear-gradient(145deg, #061832, #0b2d5b 58%, #071E3D);
}

.login-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(7,30,61,.14), rgba(7,30,61,.48)),
    linear-gradient(115deg, rgba(7,30,61,.18), transparent 58%);
  pointer-events: none;
}

.login-hero-content {
  align-content: center;
  justify-items: start;
  text-align: left;
  max-width: 600px;
}

.login-premium-logo {
  width: min(390px, 74%);
  margin-bottom: 28px;
}

.login-portal-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 13px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  background: rgba(255,255,255,.09);
  backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
}

.login-portal-label::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--valenti-gold-light);
  box-shadow: 0 0 18px rgba(230,175,82,.78);
}

.login-visual h1 {
  max-width: 620px;
  font-size: clamp(38px, 5.3vw, 68px);
  line-height: .98;
  text-wrap: balance;
  text-shadow: 0 24px 64px rgba(0,0,0,.34);
}

.login-hero-copy {
  max-width: 500px;
  margin: 22px 0 0;
  color: rgba(255,255,255,.82);
  font-size: 18px;
  line-height: 1.65;
}

.gelato-showcase {
  position: absolute;
  right: clamp(18px, 4.4vw, 72px);
  bottom: clamp(30px, 5vw, 78px);
  width: min(455px, 43vw);
  aspect-ratio: 1;
  z-index: 3;
  pointer-events: none;
  transform: translateZ(0);
}

.gelato-glow {
  position: absolute;
  inset: 18% 4% 8% 4%;
  border-radius: 48% 52% 44% 56% / 58% 44% 56% 42%;
  background:
    linear-gradient(135deg, rgba(255,255,255,.78), rgba(230,175,82,.34) 46%, rgba(7,30,61,.12));
  filter: blur(22px);
  opacity: .92;
  transform: rotate(-9deg);
}

.gelato-hero-scoop {
  position: absolute;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.72);
  background: rgba(255,255,255,.92);
  box-shadow: 0 34px 90px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.62);
}

.gelato-hero-scoop.main {
  width: 62%;
  height: 62%;
  left: 18%;
  top: 16%;
  border-radius: 40% 60% 44% 56% / 54% 42% 58% 46%;
  transform: rotate(-7deg);
}

.gelato-hero-scoop.side {
  width: 31%;
  height: 31%;
  border-radius: 30px;
}

.gelato-hero-scoop.side-a {
  right: 4%;
  top: 12%;
  transform: rotate(9deg);
}

.gelato-hero-scoop.side-b {
  left: 2%;
  bottom: 20%;
  transform: rotate(-12deg);
}

.gelato-hero-scoop.side-c {
  right: 12%;
  bottom: 0;
  transform: rotate(8deg);
}

.hero-shine {
  position: absolute;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.88), transparent);
  filter: drop-shadow(0 0 12px rgba(230,175,82,.42));
  transform: rotate(-18deg);
}

.hero-shine.shine-a {
  width: 82px;
  top: 12%;
  left: 24%;
}

.hero-shine.shine-b {
  width: 58px;
  right: 13%;
  top: 56%;
}

.fruit-stage {
  inset: auto 22px 24px auto;
  width: min(560px, 51vw);
  height: 420px;
  opacity: .82;
}

.fruit-card {
  width: 96px;
  height: 96px;
  background: transparent;
  border: 0;
  backdrop-filter: none;
  box-shadow: 0 24px 52px rgba(0,0,0,.22);
}

.fruit-card img {
  width: 96px;
  height: 96px;
  border-radius: 26px;
}

.fruit-card:nth-child(1) { left: 4%; top: 34%; }
.fruit-card:nth-child(2) { left: 30%; top: 2%; }
.fruit-card:nth-child(3) { left: 74%; top: 24%; }
.fruit-card:nth-child(4) { left: 42%; top: 72%; }
.fruit-card:nth-child(5) { left: 8%; top: 78%; animation-delay: 1.5s; }
.fruit-card:nth-child(6) { left: 84%; top: 70%; animation-delay: 1.9s; }

.login-form-side {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,247,234,.92) 68%, #F8FBFF);
}

.login-form-side::before {
  content: "";
  position: absolute;
  inset: 26px 26px auto auto;
  width: 118px;
  height: 118px;
  border-radius: 34px;
  background: url("/assets/illustrations/fruits/gelato-scoop.webp") center / cover no-repeat;
  opacity: .12;
  transform: rotate(10deg);
}

.login-card-premium {
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(230,232,239,.72);
  box-shadow: 0 36px 90px rgba(7,30,61,.16), inset 0 1px 0 rgba(255,255,255,.88);
  backdrop-filter: blur(24px);
}

.login-card-premium::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(194,138,46,.12), transparent 34%, rgba(11,79,156,.07));
  pointer-events: none;
}

.login-card-premium > * {
  position: relative;
  z-index: 1;
}

.customer-order-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: start;
}
.customer-products-card .vcard-body { padding: 18px; }
.desktop-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.premium-product-card {
  border: 2px solid var(--border);
  border-radius: 22px;
  background: #fff;
  padding: 16px;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 138px;
  transition: border-color var(--t-mid), box-shadow var(--t-mid), transform var(--t-mid);
}
.premium-product-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.premium-product-card.selected {
  border-color: var(--valenti-blue);
  box-shadow: 0 0 0 4px rgba(11,79,156,.08), var(--shadow-md);
}
.premium-product-media {
  width: 104px;
  height: 104px;
  border-radius: 18px;
  object-fit: cover;
  background: var(--valenti-cream);
}
.premium-product-title { font-size: 16px; font-weight: 850; color: var(--text-main); }
.premium-product-price { color: var(--valenti-blue); font-size: 13px; font-weight: 800; }
.premium-product-meta { color: var(--text-muted); font-size: 12px; }
.premium-product-card .app-stepper {
  grid-column: 2;
  justify-self: start;
}
.desktop-cart-card { position: sticky; top: calc(var(--topbar-h) + 22px); }
.cart-total-line {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 0;
  font-size: 13px;
  color: var(--text-muted);
}
.cart-total-line strong { color: var(--text-main); }
.cart-total-line.total {
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 4px;
  font-size: 16px;
  font-weight: 900;
}

@media (max-width: 1200px) {
  .desktop-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .customer-order-layout { grid-template-columns: 1fr; }
  .desktop-cart-card { display: none; }
}
@media (max-width: 768px) {
  .mobile-menu-btn { display: grid; place-items: center; }
  .portal-topbar { padding: 0 14px; }
  .topbar-user-meta, .portal-topbar .icon-pill { display: none; }
  .portal-support-pill {
    flex: 1 1 auto;
    min-width: 0;
    margin-left: 8px;
    margin-right: 8px;
    padding: 7px 9px;
    max-width: none;
  }
  .support-dot {
    width: 22px;
    height: 22px;
    font-size: 11px;
  }
  .support-copy strong {
    display: none;
  }
  .support-copy span {
    font-size: 11px;
  }
  .portal-sidebar {
    display: flex !important;
    box-shadow: 24px 0 80px rgba(7,30,61,.28);
  }
  .portal-sidebar.open { transform: translateX(0); }
  .portal-main { margin-left: 0; margin-top: var(--topbar-h); padding: 18px 14px 100px; }
  .vgrid-2, .vgrid-3, .vgrid-form { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .admin-shell .stat-grid { grid-template-columns: 1fr; }
  .portal-page-header h1 { font-size: 22px; }
  .login-page { grid-template-columns: 1fr; }
  .login-visual { min-height: 390px; padding: 38px 24px; }
  .login-premium-logo {
    width: min(320px, 85%);
    margin-bottom: 22px;
  }
  .login-portal-label {
    font-size: 13px;
  }
  .login-visual h1 {
    font-size: 25px;
  }
  .login-brand-logo { width: 210px; margin-bottom: 34px; }
  .fruit-stage { opacity: .24; right: 12px; bottom: 0; transform: scale(.62); transform-origin: bottom right; }
  .login-form-side { min-height: auto; padding: 20px; }
  .login-card-premium { padding: 26px; border-radius: 24px; }
  .login-lottie-stage {
    width: 128px;
    height: 128px;
    right: 24px;
    top: 118px;
  }
  .desktop-product-grid { grid-template-columns: 1fr; }
  .premium-product-card {
    grid-template-columns: 74px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 10px;
  }
  .premium-product-media { width: 74px; height: 74px; aspect-ratio: auto; }
  .premium-product-card .app-stepper { justify-self: end; }
}

@media (max-width: 768px) {
  body.portal-shell,
  .portal-main,
  .customer-shell {
    max-width: 100vw;
    overflow-x: hidden;
  }
  .portal-main {
    width: 100%;
    min-width: 0;
  }
  .customer-shell .vcard {
    width: 100%;
    max-width: 100%;
  }
  .customer-shell .portal-topbar {
    display: flex !important;
    left: 0;
  }
  .customer-shell .portal-main {
    margin-left: 0;
    margin-top: var(--topbar-h);
    padding: 18px 14px 108px;
  }
  .customer-shell .portal-sidebar {
    display: flex !important;
  }
  .premium-product-card {
    grid-template-columns: 64px minmax(0, 1fr) 88px;
    width: 100%;
  }
  .premium-product-title,
  .premium-product-price,
  .premium-product-meta {
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .premium-product-title { white-space: nowrap; }
  .premium-product-card .app-stepper {
    width: 88px;
    justify-content: space-between;
  }
  .premium-product-card .stepper-btn {
    width: 28px;
    height: 28px;
  }
  .premium-product-card .stepper-value {
    min-width: 24px;
    font-size: 13px;
  }
}

@media (max-width: 420px) {
  .premium-product-card {
    grid-template-columns: 58px minmax(0, 1fr) 78px;
    gap: 8px;
    padding: 9px;
  }
  .premium-product-media {
    width: 58px;
    height: 58px;
  }
  .premium-product-card .app-stepper { width: 78px; }
  .premium-product-card .stepper-btn {
    width: 25px;
    height: 25px;
    font-size: 15px;
  }
  .premium-product-card .stepper-value { min-width: 22px; }
}

@media (max-width: 520px) {
  .customer-shell .portal-main {
    width: 100vw;
    max-width: 100vw;
    overflow-x: clip;
    padding-left: 14px;
    padding-right: 14px;
  }
  .customer-shell .customer-order-layout,
  .customer-shell .customer-products-card,
  .customer-shell .cart-page-layout,
  .customer-shell .portal-main > .vcard,
  .customer-shell .portal-main > .vgrid-2,
  .customer-shell .portal-main > .vstack {
    width: min(calc(100vw - 28px), 362px);
    max-width: min(calc(100vw - 28px), 362px);
    min-width: 0;
  }
  .customer-shell .portal-page-header .page-actions {
    display: none;
  }
  .customer-shell .desktop-product-grid {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .customer-shell .customer-products-card {
    justify-self: start;
  }
  .customer-shell .customer-products-card .vcard-body {
    min-width: 0;
    overflow: hidden;
  }
  .customer-products-card .vcard-header {
    padding: 14px 16px 10px;
  }
  .customer-products-card .vcard-header .muted {
    display: none;
  }
  .customer-products-card .vcard-body {
    padding: 14px;
  }
  .order-toolbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .order-select-branch,
  .order-search {
    min-width: 0;
    width: 100%;
  }
  .category-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }
  .category-tabs::-webkit-scrollbar {
    display: none;
  }
  .cat-pill {
    flex: 0 0 auto;
    padding: 7px 13px;
    font-size: 12px;
  }
  .premium-product-card {
    grid-template-columns: 62px minmax(0, 1fr);
    grid-template-areas:
      "media info"
      "media stepper";
    align-items: center;
    gap: 8px 12px;
    padding: 10px;
    border-radius: 18px;
  }
  .premium-product-media {
    grid-area: media;
    width: 62px;
    height: 62px;
    border-radius: 16px;
  }
  .premium-product-card > div:not(.app-stepper) {
    grid-area: info;
    min-width: 0;
  }
  .premium-product-card .app-stepper {
    grid-area: stepper;
    justify-self: start;
    width: 116px;
  }
  .premium-product-card .stepper-btn {
    width: 34px;
    height: 30px;
  }
  .premium-product-card .stepper-value {
    min-width: 38px;
  }
  .premium-product-title {
    font-size: 14px;
  }
  .premium-product-price {
    font-size: 12px;
  }
  .premium-product-meta {
    display: none;
  }
  .sticky-cart-bar {
    padding-inline: 12px;
  }
  .sticky-cart-inner {
    padding: 12px 14px;
    border-radius: 18px;
  }
  .sticky-cart-info strong {
    font-size: 14px;
  }
  .sticky-cart-bar .vbtn {
    padding: 9px 13px;
    font-size: 13px;
  }
  .cart-line {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px 12px;
  }
  .cart-line-img {
    width: 58px;
    height: 58px;
  }
  .cart-line-qty {
    justify-self: end;
    font-size: 12px;
  }
  .cart-line .amount {
    grid-column: 2 / 4;
    justify-self: end;
    font-size: 14px;
  }
  .cart-line-name,
  .cart-line-price {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* -------------------------------------------------------------------
   22. Fixed Mobile Bottom Menu Board
   ------------------------------------------------------------------- */
.app-bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  .app-bottom-nav {
    position: fixed;
    left: 12px;
    right: auto;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    width: min(calc(100vw - 24px), 366px);
    height: 64px;
    display: flex !important;
    align-items: center;
    padding: 6px;
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(230, 232, 239, .88);
    border-radius: 24px;
    box-shadow: 0 18px 50px rgba(7, 30, 61, .18);
    backdrop-filter: blur(18px);
    z-index: 120;
  }

  .app-bottom-nav-items {
    height: 100%;
    gap: 4px;
  }

  .app-nav-item {
    min-width: 0;
    border-radius: 18px;
    padding: 6px 4px;
    color: var(--text-muted);
  }

  .app-nav-item .nav-icon {
    width: 24px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: transparent;
    color: inherit;
    font-size: 11px;
    font-weight: 900;
  }

  .app-nav-item.active {
    color: var(--valenti-blue);
    background: var(--valenti-ice);
  }

  .app-nav-item.active .nav-icon {
    background: var(--valenti-blue);
    color: #fff;
    transform: none;
  }

  .portal-main,
  .admin-shell .portal-main,
  .production-shell .portal-main {
    padding-bottom: calc(108px + env(safe-area-inset-bottom, 0px));
  }

  .customer-shell .portal-main {
    padding-bottom: calc(128px + env(safe-area-inset-bottom, 0px));
  }

  .sticky-cart-bar {
    bottom: calc(84px + env(safe-area-inset-bottom, 0px));
    z-index: 115;
  }
}

@media (min-width: 769px) {
  .app-bottom-nav {
    display: none !important;
  }
}

/* -------------------------------------------------------------------
   23. Compact Product Cards Alignment Fix
   ------------------------------------------------------------------- */
.desktop-product-grid {
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.premium-product-card {
  position: relative;
  grid-template-columns: 96px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  gap: 7px 14px;
  min-height: 124px;
  padding: 14px;
  border-radius: 20px;
}

.premium-product-card[hidden] {
  display: none !important;
}

.favorite-toggle {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1.5px solid rgba(194, 138, 46, .28);
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 10px 22px rgba(7, 30, 61, .10);
  color: var(--valenti-gold);
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  transition: transform var(--t-fast), background var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
}

.favorite-toggle:hover {
  transform: translateY(-1px) scale(1.04);
  border-color: var(--valenti-gold);
  box-shadow: 0 14px 30px rgba(194, 138, 46, .20);
}

.favorite-toggle.active {
  background: linear-gradient(135deg, #fff7df, #f1c46f);
  border-color: rgba(194, 138, 46, .65);
  color: var(--valenti-navy);
}

.compact-empty {
  margin-top: 12px;
  padding: 18px;
}

.premium-product-media {
  grid-column: 1;
  grid-row: 1 / 3;
  width: 96px;
  height: 96px;
  border-radius: 16px;
}

.premium-product-card > div:not(.app-stepper) {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  min-width: 0;
}

.premium-product-title {
  font-size: 15px;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.premium-product-price {
  font-size: 12px;
  line-height: 1.15;
}

.premium-product-meta {
  font-size: 11px;
  line-height: 1.15;
}

.premium-product-card .app-stepper {
  grid-column: 2;
  grid-row: 2;
  justify-self: start;
  align-self: start;
  width: 112px;
  height: 34px;
}

.premium-product-card .stepper-btn {
  width: 34px;
  height: 34px;
}

.premium-product-card .stepper-value {
  min-width: 38px;
  font-size: 15px;
}

@media (max-width: 1180px) and (min-width: 901px) {
  .desktop-product-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 900px) {
  .category-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .category-tabs::-webkit-scrollbar {
    display: none;
  }

  .cat-pill {
    flex: 0 0 auto;
    padding: 9px 16px;
    font-size: 13px;
  }

  .premium-product-card {
    grid-template-columns: 72px minmax(0, 1fr) 104px;
    grid-template-rows: 1fr;
    min-height: 96px;
    padding: 10px;
    gap: 10px;
    border-radius: 18px;
  }

  .premium-product-media {
    grid-column: 1;
    grid-row: 1;
    width: 72px;
    height: 72px;
    border-radius: 15px;
  }

  .premium-product-card > div:not(.app-stepper) {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
  }

  .premium-product-card .app-stepper {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    align-self: center;
    width: 104px;
    height: 34px;
  }

  .premium-product-meta {
    display: none;
  }

  .favorite-toggle {
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    font-size: 16px;
  }
}

@media (max-width: 520px) {
  .customer-products-card .vcard-body {
    padding: 12px;
  }

  .premium-product-card {
    grid-template-columns: 62px minmax(0, 1fr) 92px;
    grid-template-areas: none;
    min-height: 86px;
    padding: 9px;
    gap: 9px;
  }

  .premium-product-media {
    grid-area: auto;
    grid-column: 1;
    grid-row: 1;
    width: 62px;
    height: 62px;
    border-radius: 14px;
  }

  .premium-product-card > div:not(.app-stepper) {
    grid-area: auto;
    grid-column: 2;
    grid-row: 1;
  }

  .premium-product-title {
    font-size: 14px;
    white-space: normal;
  }

  .premium-product-price {
    font-size: 12px;
  }

  .premium-product-card .app-stepper {
    grid-area: auto;
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    align-self: center;
    width: 92px;
    height: 30px;
  }

  .premium-product-card .stepper-btn {
    width: 30px;
    height: 30px;
    font-size: 17px;
  }

  .premium-product-card .stepper-value {
    min-width: 30px;
    font-size: 13px;
  }

  .favorite-toggle {
    top: 7px;
    right: 7px;
    width: 26px;
    height: 26px;
    font-size: 15px;
  }
}

@media (max-width: 380px) {
  .premium-product-card {
    grid-template-columns: 58px minmax(0, 1fr) 84px;
    gap: 8px;
  }

  .premium-product-media {
    width: 58px;
    height: 58px;
  }

  .premium-product-card .app-stepper {
    width: 84px;
  }

  .premium-product-card .stepper-btn {
    width: 27px;
    height: 27px;
  }

  .premium-product-card .stepper-value {
    min-width: 28px;
  }
}

/* -------------------------------------------------------------------
   24. Customer Order Page Vertical Rhythm and Cart Summary
   ------------------------------------------------------------------- */
.customer-shell .portal-main {
  padding-top: 20px;
}

.customer-shell .portal-page-header {
  margin-bottom: 16px;
}

.customer-shell .portal-page-header h1 {
  font-size: 24px;
}

.customer-shell .customer-order-layout {
  gap: 18px;
}

.customer-shell .desktop-cart-card {
  top: calc(var(--topbar-h) + 12px);
}

.desktop-cart-card .vcard-body {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - var(--topbar-h) - 118px);
  min-height: 0;
}

.desktop-cart-items {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}

.desktop-cart-items::-webkit-scrollbar {
  width: 6px;
}

.desktop-cart-items::-webkit-scrollbar-thumb {
  background: rgba(102, 112, 133, .24);
  border-radius: 999px;
}

.desktop-cart-card .cart-summary-info-note,
.desktop-cart-card .vbtn {
  flex: 0 0 auto;
}

/* Order page scroll workspace */
.customer-shell .customer-order-layout {
  height: calc(100dvh - var(--topbar-h) - 132px);
  min-height: 520px;
}

.customer-products-card,
.customer-shell .desktop-cart-card {
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.customer-products-card {
  display: flex;
  flex-direction: column;
}

.customer-products-card .vcard-header {
  flex: 0 0 auto;
}

.customer-products-card .vcard-body {
  flex: 1 1 auto;
  display: flex;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
}

.order-toolbar,
.category-tabs,
.order-mode-note {
  flex: 0 0 auto;
}

.order-scroll-area {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 6px;
  margin-right: -6px;
}

.order-scroll-area .desktop-product-grid {
  padding-bottom: 6px;
}

.order-scroll-area::-webkit-scrollbar,
.desktop-cart-items::-webkit-scrollbar {
  width: 7px;
}

.order-scroll-area::-webkit-scrollbar-thumb,
.desktop-cart-items::-webkit-scrollbar-thumb {
  background: rgba(102, 112, 133, .26);
  border-radius: 999px;
}

.order-scroll-area::-webkit-scrollbar-track,
.desktop-cart-items::-webkit-scrollbar-track {
  background: transparent;
}

.customer-shell .desktop-cart-card {
  display: flex;
  flex-direction: column;
  max-height: none;
}

.desktop-cart-card .vcard-header {
  flex: 0 0 auto;
}

.desktop-cart-card .vcard-body {
  flex: 1 1 auto;
  max-height: none;
}

@media (max-width: 900px) {
  .customer-shell .customer-order-layout {
    height: auto;
    min-height: 0;
  }

  .customer-products-card {
    height: calc(100dvh - var(--topbar-h) - 152px);
    min-height: 410px;
  }
}

@media (max-width: 520px) {
  .customer-products-card {
    height: calc(100dvh - var(--topbar-h) - 142px);
    min-height: 390px;
  }

  .order-scroll-area {
    padding-right: 3px;
    margin-right: -3px;
  }
}

@media (max-width: 768px) {
  .customer-shell .portal-main {
    padding-top: 14px;
  }

  .customer-shell .portal-page-header {
    margin-bottom: 12px;
  }
}

@media (max-width: 900px) {
  .login-page {
    grid-template-columns: 1fr;
    background: var(--valenti-navy);
  }

  .login-visual {
    min-height: 58vh;
    padding: 34px 22px 120px;
  }

  .login-hero-content {
    justify-items: center;
    text-align: center;
    margin: 0 auto;
  }

  .login-premium-logo {
    width: min(300px, 76vw);
    margin-bottom: 20px;
  }

  .login-visual h1 {
    max-width: 520px;
    font-size: 44px;
  }

  .login-hero-copy {
    max-width: 420px;
    font-size: 15px;
  }

  .gelato-showcase {
    right: 50%;
    bottom: 10px;
    width: min(300px, 76vw);
    transform: translateX(50%);
    opacity: .82;
  }

  .fruit-stage {
    right: 50%;
    bottom: 0;
    width: min(360px, 90vw);
    height: 240px;
    opacity: .34;
    transform: translateX(50%) scale(.74);
    transform-origin: bottom center;
  }

  .login-form-side {
    min-height: auto;
    padding: 22px;
  }

  .login-card-premium {
    width: min(100%, 430px);
    border-radius: 26px;
  }
}

@media (max-width: 520px) {
  .login-visual {
    min-height: 540px;
    padding: 28px 18px 130px;
  }

  .login-visual h1 {
    font-size: 34px;
  }

  .login-portal-label {
    font-size: 11px;
    padding: 7px 11px;
  }

  .login-hero-copy {
    display: none;
  }

  .gelato-showcase {
    width: min(280px, 82vw);
  }

  .fruit-card {
    width: 88px;
    height: 88px;
    border-radius: 24px;
  }

  .fruit-card img {
    width: 68px;
    height: 68px;
    border-radius: 18px;
  }

  .login-card-premium {
    padding: 24px;
  }
}

/* -------------------------------------------------------------------
   25. Valenti Modern Giriş Ekranı
   ------------------------------------------------------------------- */
.login-page {
  min-height: 100dvh;
  grid-template-columns: minmax(0, 1.08fr) minmax(430px, .92fr);
  background:
    linear-gradient(118deg, #061A34 0 52%, #F7FAFF 52% 100%);
  overflow-x: hidden;
}

.login-visual {
  min-height: 100dvh;
  padding: clamp(38px, 5vw, 76px);
  background:
    linear-gradient(90deg, rgba(5, 20, 42, .96), rgba(7, 30, 61, .74) 54%, rgba(7, 30, 61, .38)),
    url("/assets/hero/login-premium-hero.webp") center / cover no-repeat;
}

.login-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, transparent 0 58%, rgba(5, 20, 42, .52)),
    radial-gradient(circle at 18% 45%, rgba(184, 121, 26, .24), transparent 26%),
    radial-gradient(circle at 82% 24%, rgba(37, 99, 235, .22), transparent 26%);
  pointer-events: none;
}

.login-visual::after {
  background:
    linear-gradient(120deg, rgba(255,255,255,.08), transparent 22% 72%, rgba(255,255,255,.12)),
    linear-gradient(180deg, rgba(7,30,61,.08), rgba(7,30,61,.44));
}

.login-hero-content {
  z-index: 4;
  max-width: 680px;
  align-content: center;
}

.login-premium-logo {
  width: min(430px, 80%);
  margin-bottom: 30px;
  filter: drop-shadow(0 22px 34px rgba(0,0,0,.38));
}

.login-portal-label {
  color: #FFF6E8;
  border-color: rgba(255,255,255,.26);
  background: rgba(255,255,255,.11);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 16px 34px rgba(0,0,0,.18);
}

.login-visual h1 {
  max-width: 720px;
  color: #fff;
  font-size: clamp(46px, 6vw, 82px);
  line-height: .94;
  letter-spacing: 0;
}

.login-hero-copy {
  max-width: 540px;
  color: rgba(255,255,255,.84);
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.55;
}

.login-feature-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.login-feature-row span {
  min-height: 36px;
  display: inline-grid;
  place-items: center;
  padding: 0 15px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  color: rgba(255,255,255,.9);
  background: rgba(255,255,255,.09);
  backdrop-filter: blur(16px);
  font-size: 12px;
  font-weight: 850;
}

.gelato-showcase {
  right: clamp(14px, 4vw, 68px);
  bottom: clamp(34px, 5vw, 82px);
  width: min(510px, 45vw);
  z-index: 3;
}

.gelato-glow {
  inset: 12% 0 6%;
  background:
    radial-gradient(circle at 50% 44%, rgba(255,255,255,.78), rgba(255,255,255,.2) 42%, transparent 63%),
    linear-gradient(135deg, rgba(230,175,82,.36), rgba(11,79,156,.18));
  filter: blur(26px);
}

.gelato-hero-scoop {
  border-width: 2px;
  box-shadow: 0 34px 90px rgba(0,0,0,.38), 0 0 0 8px rgba(255,255,255,.08);
}

.gelato-hero-scoop.main {
  width: 64%;
  height: 64%;
  left: 14%;
  top: 16%;
}

.gelato-hero-scoop.side-a {
  right: 0;
  top: 9%;
}

.gelato-hero-scoop.side-b {
  left: 0;
  bottom: 18%;
}

.gelato-hero-scoop.side-c {
  right: 9%;
  bottom: -2%;
}

.fruit-stage {
  z-index: 2;
  opacity: .48;
  filter: saturate(.92);
}

.login-form-side {
  min-height: 100dvh;
  position: relative;
  padding: clamp(28px, 4vw, 58px);
  background:
    linear-gradient(135deg, rgba(255,255,255,.72), rgba(247,250,255,.96) 42%, rgba(255,248,239,.94)),
    radial-gradient(circle at 90% 9%, rgba(184,121,26,.16), transparent 22%),
    #F7FAFF;
}

.login-form-side::before {
  width: 138px;
  height: 138px;
  opacity: .1;
}

.login-card-premium {
  width: min(100%, 500px);
  padding: clamp(28px, 3.5vw, 48px);
  border-radius: 34px;
  background: rgba(255,255,255,.84);
  border: 1px solid rgba(255,255,255,.76);
  box-shadow:
    0 34px 90px rgba(7, 30, 61, .16),
    0 2px 0 rgba(255,255,255,.72) inset;
}

.login-card-premium::before {
  background:
    linear-gradient(135deg, rgba(255,255,255,.72), transparent 28%),
    radial-gradient(circle at 88% 14%, rgba(184,121,26,.12), transparent 28%),
    radial-gradient(circle at 12% 94%, rgba(11,79,156,.08), transparent 30%);
}

.login-card-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.login-card-brand img {
  width: min(210px, 62%);
  height: auto;
}

.login-card-brand span {
  min-height: 30px;
  display: inline-grid;
  place-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--valenti-blue);
  background: rgba(238,246,255,.95);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.login-card-heading {
  margin-bottom: 20px;
}

.login-kicker {
  margin: 0 0 8px;
  color: var(--valenti-gold);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.login-card-premium h2 {
  margin: 0;
  color: #101828;
  font-size: clamp(32px, 3vw, 42px);
  line-height: 1;
  font-weight: 900;
}

.login-card-premium .subtitle {
  max-width: 390px;
  margin: 12px 0 0;
  color: #667085;
  font-size: 14px;
  line-height: 1.55;
}

.login-role-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 22px;
}

.login-role-grid div {
  min-height: 66px;
  padding: 11px 10px;
  border: 1px solid rgba(230,232,239,.88);
  border-radius: 16px;
  background: rgba(255,255,255,.72);
}

.login-role-grid strong,
.login-role-grid span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.login-role-grid strong {
  color: #101828;
  font-size: 12px;
  font-weight: 900;
}

.login-role-grid span {
  margin-top: 4px;
  color: #667085;
  font-size: 11px;
  font-weight: 750;
}

.login-field {
  margin-bottom: 14px;
}

.login-field label {
  margin-bottom: 7px;
  color: #172033;
  font-size: 13px;
  font-weight: 850;
}

.login-field .vinput {
  height: 58px;
  border-radius: 18px;
  border-color: rgba(208,213,221,.9);
  background: rgba(255,255,255,.94);
  box-shadow: 0 10px 22px rgba(16,24,40,.04);
}

.login-field .vinput:focus {
  border-color: var(--valenti-blue);
  box-shadow: 0 0 0 4px rgba(11,79,156,.12), 0 12px 26px rgba(16,24,40,.06);
}

.login-submit {
  min-height: 58px;
  margin-top: 6px;
  border-radius: 18px;
  background: linear-gradient(135deg, #071E3D, #0B4F9C);
  box-shadow: 0 18px 34px rgba(11,79,156,.24);
  font-size: 16px;
}

@media (max-width: 1080px) {
  .login-page {
    grid-template-columns: 1fr;
    background: #071E3D;
  }

  .login-visual {
    min-height: 620px;
    padding: 42px 24px 150px;
  }

  .login-hero-content {
    justify-items: center;
    text-align: center;
    margin: 0 auto;
  }

  .login-feature-row {
    justify-content: center;
  }

  .gelato-showcase {
    right: 50%;
    bottom: 16px;
    width: min(360px, 78vw);
    transform: translateX(50%);
  }

  .fruit-stage {
    right: 50%;
    bottom: 0;
    transform: translateX(50%) scale(.72);
    transform-origin: bottom center;
    opacity: .28;
  }

  .login-form-side {
    min-height: auto;
    padding: 26px 18px 34px;
  }
}

@media (max-width: 560px) {
  .order-success-hero {
    min-height: 430px;
    border-radius: 22px;
    padding: 42px 20px 52px;
  }

  .order-success-check {
    width: 116px;
    height: 116px;
    font-size: 74px;
  }

  .order-success-hero h2 {
    font-size: 28px;
  }

  .login-visual {
    min-height: 560px;
    padding: 28px 16px 128px;
  }

  .login-premium-logo {
    width: min(310px, 82vw);
    margin-bottom: 22px;
  }

  .login-visual h1 {
    font-size: 40px;
  }

  .login-hero-copy {
    display: block;
    font-size: 14px;
  }

  .login-feature-row {
    margin-top: 20px;
  }

  .login-feature-row span {
    min-height: 32px;
    padding: 0 11px;
    font-size: 11px;
  }

  .gelato-showcase {
    width: min(300px, 84vw);
  }

  .fruit-stage {
    display: none;
  }

  .login-card-premium {
    padding: 24px;
    border-radius: 26px;
  }

  .login-card-brand {
    margin-bottom: 24px;
    align-items: flex-start;
    flex-direction: column;
  }

  .login-card-brand img {
    width: 190px;
    max-width: 78%;
  }

  .login-role-grid {
    grid-template-columns: 1fr;
  }

  .login-role-grid div {
    min-height: 54px;
  }
}

/* Final Türkçe Valenti giriş tasarımı */
.login-page {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr);
  background: #071E3D;
  overflow-x: hidden;
}

.login-visual {
  min-height: 100dvh;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center start;
  padding: clamp(42px, 5.2vw, 78px);
  color: #fff;
  background:
    linear-gradient(90deg, rgba(5, 20, 42, .96), rgba(7, 30, 61, .82) 52%, rgba(7, 30, 61, .36)),
    url("/assets/hero/login-premium-hero.webp") center / cover no-repeat;
}

.login-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(7,30,61,.08), rgba(7,30,61,.54)),
    radial-gradient(circle at 20% 34%, rgba(184, 121, 26, .22), transparent 26%);
  pointer-events: none;
}

.login-visual::after {
  content: "";
  position: absolute;
  inset: auto -18% -22% 32%;
  z-index: 1;
  height: 46%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.16), transparent);
  transform: rotate(-12deg);
  pointer-events: none;
}

.login-hero-content {
  position: relative;
  z-index: 4;
  max-width: 690px;
  display: grid;
  justify-items: start;
  text-align: left;
}

.login-premium-logo {
  width: min(430px, 82%);
  height: auto;
  margin: 0 0 30px;
  display: block;
  filter: drop-shadow(0 24px 38px rgba(0,0,0,.38));
}

.login-portal-label {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  padding: 0 16px;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 999px;
  color: #FFF6E8;
  background: rgba(255,255,255,.11);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 16px 34px rgba(0,0,0,.18);
  backdrop-filter: blur(16px);
  font-size: 13px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.login-portal-label::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--valenti-gold-light);
  box-shadow: 0 0 18px rgba(230,175,82,.82);
}

.login-visual h1 {
  max-width: 720px;
  margin: 0;
  color: #fff;
  font-size: clamp(46px, 6vw, 82px);
  line-height: .94;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 24px 64px rgba(0,0,0,.34);
}

.login-hero-copy {
  max-width: 540px;
  margin: 24px 0 0;
  color: rgba(255,255,255,.84);
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.55;
}

.login-feature-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.login-feature-row span {
  min-height: 36px;
  display: inline-grid;
  place-items: center;
  padding: 0 15px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  color: rgba(255,255,255,.9);
  background: rgba(255,255,255,.09);
  backdrop-filter: blur(16px);
  font-size: 12px;
  font-weight: 850;
}

.gelato-showcase {
  position: absolute;
  right: clamp(14px, 4vw, 68px);
  bottom: clamp(34px, 5vw, 82px);
  width: min(510px, 45vw);
  aspect-ratio: 1;
  z-index: 3;
  pointer-events: none;
}

.login-form-side {
  min-height: 100dvh;
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(28px, 4vw, 58px);
  background:
    linear-gradient(135deg, rgba(255,255,255,.78), rgba(247,250,255,.97) 42%, rgba(255,248,239,.94)),
    radial-gradient(circle at 90% 9%, rgba(184,121,26,.16), transparent 22%),
    #F7FAFF;
}

.login-card-premium {
  position: relative;
  overflow: hidden;
  width: min(100%, 500px);
  padding: clamp(28px, 3.5vw, 48px);
  border: 1px solid rgba(255,255,255,.76);
  border-radius: 34px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 34px 90px rgba(7, 30, 61, .16), 0 2px 0 rgba(255,255,255,.72) inset;
  backdrop-filter: blur(24px);
}

.login-card-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.login-card-brand img {
  width: min(210px, 62%);
  height: auto;
}

.login-card-brand span {
  min-height: 30px;
  display: inline-grid;
  place-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--valenti-blue);
  background: rgba(238,246,255,.95);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.login-card-heading {
  margin-bottom: 20px;
}

.login-kicker {
  margin: 0 0 8px;
  color: var(--valenti-gold);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.login-card-premium h2 {
  margin: 0;
  color: #101828;
  font-size: clamp(32px, 3vw, 42px);
  line-height: 1;
  font-weight: 900;
}

.login-card-premium .subtitle {
  max-width: 390px;
  margin: 12px 0 0;
  color: #667085;
  font-size: 14px;
  line-height: 1.55;
}

.login-role-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 22px;
}

.login-role-grid div {
  min-height: 66px;
  padding: 11px 10px;
  border: 1px solid rgba(230,232,239,.88);
  border-radius: 16px;
  background: rgba(255,255,255,.72);
}

.login-role-grid strong,
.login-role-grid span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.login-role-grid strong {
  color: #101828;
  font-size: 12px;
  font-weight: 900;
}

.login-role-grid span {
  margin-top: 4px;
  color: #667085;
  font-size: 11px;
  font-weight: 750;
}

.login-field {
  margin-bottom: 14px;
}

.login-field label {
  margin-bottom: 7px;
  color: #172033;
  font-size: 13px;
  font-weight: 850;
}

.login-field .vinput {
  height: 58px;
  border-radius: 18px;
  border-color: rgba(208,213,221,.9);
  background: rgba(255,255,255,.94);
  box-shadow: 0 10px 22px rgba(16,24,40,.04);
}

.login-field .vinput:focus {
  border-color: var(--valenti-blue);
  box-shadow: 0 0 0 4px rgba(11,79,156,.12), 0 12px 26px rgba(16,24,40,.06);
}

.login-submit {
  min-height: 58px;
  margin-top: 6px;
  border-radius: 18px;
  background: linear-gradient(135deg, #071E3D, #0B4F9C);
  box-shadow: 0 18px 34px rgba(11,79,156,.24);
  font-size: 16px;
}

@media (max-width: 1080px) {
  .login-page {
    grid-template-columns: 1fr;
  }

  .login-visual {
    min-height: 620px;
    padding: 42px 24px 150px;
    place-items: center;
  }

  .login-hero-content {
    justify-items: center;
    text-align: center;
    margin: 0 auto;
  }

  .login-feature-row {
    justify-content: center;
  }

  .gelato-showcase {
    right: 50%;
    bottom: 16px;
    width: min(360px, 78vw);
    transform: translateX(50%);
  }

  .login-form-side {
    min-height: auto;
    padding: 26px 18px 34px;
  }
}

@media (max-width: 560px) {
  .login-visual {
    min-height: 560px;
    padding: 28px 16px 128px;
  }

  .login-premium-logo {
    width: min(310px, 82vw);
    margin-bottom: 22px;
  }

  .login-visual h1 {
    font-size: 40px;
  }

  .login-hero-copy {
    font-size: 14px;
  }

  .login-card-premium {
    padding: 24px;
    border-radius: 26px;
  }

  .login-card-brand {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 24px;
  }

  .login-card-brand img {
    width: 190px;
    max-width: 78%;
  }

  .login-role-grid {
    grid-template-columns: 1fr;
  }
}

/* -------------------------------------------------------------------
   26. Sade Valenti Giriş Ekranı
   ------------------------------------------------------------------- */
.simple-login-page {
  min-height: 100dvh;
  display: block;
  background:
    linear-gradient(135deg, rgba(7, 30, 61, .96), rgba(11, 79, 156, .86)),
    #071E3D;
  overflow-x: hidden;
}

.simple-login-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 18%, rgba(230,175,82,.18), transparent 26%),
    radial-gradient(circle at 82% 76%, rgba(255,255,255,.10), transparent 30%);
}

.simple-login-shell {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.simple-login-panel {
  width: min(100%, 520px);
  padding: 38px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 28px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 30px 80px rgba(3, 14, 31, .28);
}

.simple-login-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 34px;
}

.simple-login-brand img {
  width: 190px;
  max-width: 62%;
  height: auto;
}

.simple-login-brand span {
  min-height: 30px;
  display: inline-grid;
  place-items: center;
  padding: 0 11px;
  border-radius: 999px;
  color: var(--valenti-blue);
  background: rgba(238,246,255,.95);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.simple-login-heading {
  margin-bottom: 28px;
}

.simple-login-heading p {
  margin: 0 0 8px;
  color: var(--valenti-gold);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.simple-login-heading h1 {
  margin: 0;
  color: #101828;
  font-size: 40px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}

.simple-login-heading span {
  display: block;
  margin-top: 12px;
  color: #667085;
  font-size: 14px;
  line-height: 1.55;
}

.simple-login-form {
  display: grid;
  gap: 14px;
}

.simple-login-form .vfield {
  margin: 0;
}

.simple-login-form label {
  margin-bottom: 7px;
  color: #172033;
  font-size: 13px;
  font-weight: 850;
}

.simple-login-form .vinput {
  height: 56px;
  border-radius: 16px;
  border-color: rgba(208,213,221,.95);
  background: #fff;
  box-shadow: none;
}

.simple-login-form .vinput:focus {
  border-color: var(--valenti-blue);
  box-shadow: 0 0 0 4px rgba(11,79,156,.12);
}

.simple-login-submit {
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, #071E3D, #0B4F9C);
  box-shadow: 0 16px 30px rgba(11,79,156,.24);
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
}

.simple-login-submit:hover {
  background: linear-gradient(135deg, #061832, #0A4487);
}

.register-panel {
  width: min(100%, 780px);
}

.register-form .vgrid-form {
  gap: 14px;
}

@media (max-width: 560px) {
  .simple-login-shell {
    padding: 16px;
  }

  .simple-login-panel {
    padding: 26px;
    border-radius: 22px;
  }

  .simple-login-brand {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 28px;
  }

  .simple-login-brand img {
    width: 178px;
    max-width: 78%;
  }

  .simple-login-heading h1 {
    font-size: 34px;
  }
}

/* -------------------------------------------------------------------
   30. Customer Mobile Stability Fixes
   ------------------------------------------------------------------- */
@media (max-width: 768px) {
  html,
  body.customer-shell {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .customer-shell .portal-sidebar {
    top: var(--topbar-h);
    width: min(82vw, 318px);
    height: calc(100dvh - var(--topbar-h));
    display: flex !important;
    visibility: visible !important;
    transform: translateX(-105%) !important;
    box-shadow: 24px 0 70px rgba(7, 30, 61, .25);
    pointer-events: none;
    z-index: 130;
  }

  .customer-shell .portal-sidebar.open {
    transform: translateX(0) !important;
    pointer-events: auto;
  }

  .customer-shell .mobile-menu-btn {
    display: grid !important;
  }

  .customer-shell .portal-topbar {
    left: 0 !important;
    z-index: 140;
  }

  .customer-shell .portal-main {
    width: 100% !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    overflow-x: hidden !important;
    box-sizing: border-box;
  }

  .customer-shell .portal-page-header,
  .customer-shell .vcard,
  .customer-shell .customer-order-layout,
  .customer-shell .customer-products-card,
  .customer-shell .order-scroll-area,
  .customer-shell .desktop-product-grid {
    max-width: 100%;
    min-width: 0;
  }

  .customer-shell .vtable-wrap {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .customer-shell .vtable {
    min-width: 520px;
  }

  .sidebar-backdrop {
    position: fixed;
    inset: var(--topbar-h) 0 0;
    display: none;
    background: rgba(7, 30, 61, .28);
    backdrop-filter: blur(2px);
    z-index: 125;
  }

  body.sidebar-is-open.customer-shell .sidebar-backdrop {
    display: block;
  }
}

@media (max-width: 520px) {
  .customer-shell .customer-products-card .vcard-body {
    padding: 12px;
  }

  .customer-shell .desktop-product-grid {
    gap: 10px;
  }

  .customer-shell .premium-product-card {
    grid-template-columns: 62px minmax(0, 1fr) 92px !important;
    grid-template-rows: auto auto !important;
    min-height: 104px;
    width: 100%;
    padding: 10px;
    gap: 8px 10px;
    overflow: hidden;
  }

  .customer-shell .premium-product-media {
    grid-column: 1;
    grid-row: 1 / 3;
    width: 62px;
    height: 62px;
    align-self: center;
  }

  .customer-shell .premium-product-card > div:not(.app-stepper) {
    grid-column: 2 / 4;
    grid-row: 1;
    align-self: end;
    min-width: 0;
    padding-right: 36px;
  }

  .customer-shell .premium-product-title,
  .customer-shell .premium-product-price {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .customer-shell .premium-product-title {
    white-space: nowrap;
  }

  .customer-shell .premium-product-card .app-stepper {
    grid-column: 3;
    grid-row: 2;
    align-self: end;
    justify-self: end;
    width: 92px;
    height: 30px;
  }

  .customer-shell .favorite-toggle {
    top: 9px;
    right: 10px;
    width: 30px;
    height: 30px;
    font-size: 16px;
  }
}

@media (max-width: 380px) {
  .customer-shell .premium-product-card {
    grid-template-columns: 58px minmax(0, 1fr) 86px !important;
  }

  .customer-shell .premium-product-media {
    width: 58px;
    height: 58px;
  }

  .customer-shell .premium-product-card .app-stepper {
    width: 86px;
  }
}
