/* ==========================================================================
   WARASPANGAN DESIGN SYSTEM: "warm-neighborhood"
   Warna ramah tetangga, tipografi Quicksand & Inter, mobile-first 2 kolom,
   kontras rasio WCAG AA/AAA, bebas dari AI slop.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Nunito+Sans:ital,opsz,wght@0,6..12,400;0,6..12,600;0,6..12,700;1,6..12,400&family=Quicksand:wght@500;600;700&display=swap');

:root {
  /* Color Tokens - Modern Silver & Slate Palette */
  --bg-cream: #F8FAFC;
  --bg-cream-dark: #F1F5F9;
  --primary-terracotta: #334155;
  --primary-terracotta-hover: #1E293B;
  --primary-terracotta-dark: #0F172A;
  --primary-terracotta-soft: #F1F5F9;
  --primary-slate: #334155;
  --primary-slate-hover: #1E293B;
  --primary-slate-soft: #F1F5F9;
  --accent-green: #4E7A51;
  --accent-green-hover: #3E6341;
  --accent-green-soft: #EBF2EC;
  --text-charcoal: #0F172A;
  --text-muted: #64748B;
  --card-white: #FFFFFF;
  --border-tan: #E2E8F0;
  --border-tan-dark: #CBD5E1;
  --warning-amber: #B45309;
  --warning-bg: #FEF3C7;
  --muted-grey: #64748B;
  --muted-bg: #F1F5F9;

  /* Typography */
  --font-heading: 'Quicksand', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', 'Nunito Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Sizing & Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-full: 9999px;

  /* Elevation */
  --shadow-subtle: 0 2px 8px -2px rgba(43, 38, 32, 0.05);
  --shadow-card: 0 4px 16px -2px rgba(43, 38, 32, 0.06);
  --shadow-card-hover: 0 8px 24px -4px rgba(43, 38, 32, 0.10);
  --shadow-modal: 0 20px 40px -10px rgba(43, 38, 32, 0.25);

  /* Layout */
  --container-max: 1160px;
  --nav-height: 72px;
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-cream);
  color: var(--text-charcoal);
  line-height: 1.55;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Focus Accessibility */
:focus-visible {
  outline: 2px solid var(--primary-terracotta);
  outline-offset: 3px;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Typography Defaults */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-charcoal);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

img, svg {
  display: block;
  max-width: 100%;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  transition: all 0.15s ease;
}

/* ==========================================================================
   1. ANNOUNCEMENT BAR
   ========================================================================== */
.announcement-bar {
  background-color: var(--accent-green);
  color: #FFFFFF;
  padding: 0.4rem 0.75rem;
  font-size: 0.825rem;
  font-weight: 500;
  text-align: center;
  line-height: 1.35;
}

.announcement-bar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.announcement-content {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
}

.announcement-main {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
}

.announcement-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.announcement-divider {
  color: rgba(255, 255, 255, 0.75);
}

.announcement-sub {
  color: rgba(255, 255, 255, 0.95);
}

.announcement-tag {
  background-color: rgba(255, 255, 255, 0.25);
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

@media (max-width: 540px) {
  .announcement-bar {
    padding: 0.35rem 0.5rem;
    font-size: 0.75rem;
  }
  .announcement-bar .container {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    gap: 0.35rem;
  }
  .announcement-content {
    flex-direction: column;
    gap: 0.15rem;
  }
  .announcement-divider {
    display: none;
  }
  .announcement-main {
    font-size: 0.775rem;
  }
  .announcement-sub {
    font-size: 0.725rem;
    color: rgba(255, 255, 255, 0.92);
  }
  .announcement-icon {
    width: 14px;
    height: 14px;
  }
  .announcement-tag {
    font-size: 0.65rem;
    padding: 0.05rem 0.35rem;
  }
}

/* ==========================================================================
   2. NAVBAR GLOBAL
   ========================================================================== */
.site-header {
  background-color: var(--card-white);
  border-bottom: 1px solid var(--border-tan);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-subtle);
}

.navbar {
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.nav-brand img {
  height: 44px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1.5rem;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-charcoal);
  padding: 0.5rem 0.25rem;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-terracotta);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--primary-terracotta);
  border-radius: var(--radius-full);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.btn-wishlist {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-tan);
  background-color: #FFFDF8;
  color: var(--text-charcoal);
  font-size: 0.875rem;
  font-weight: 600;
  min-height: 42px;
  box-shadow: 0 1px 3px rgba(43, 38, 32, 0.04);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-wishlist:hover {
  background-color: #F7EFE4;
  border-color: var(--primary-terracotta);
  color: var(--primary-terracotta);
}

.btn-wishlist svg {
  flex-shrink: 0;
  color: var(--text-charcoal);
  transition: transform 0.2s ease;
}

.btn-wishlist:hover svg {
  color: var(--primary-terracotta);
  transform: scale(1.08);
}

.wishlist-badge {
  background-color: var(--primary-terracotta);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 0.725rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  line-height: 20px;
  padding: 0 4px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-sizing: border-box;
  text-align: center;
}

.btn-cart-header {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  background-color: var(--primary-terracotta);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  min-height: 42px;
  box-shadow: 0 2px 6px rgba(51, 65, 85, 0.25);
  transition: all 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
}

.btn-cart-header:hover {
  background-color: var(--primary-terracotta-dark);
  color: #FFFFFF;
  box-shadow: 0 4px 10px rgba(51, 65, 85, 0.35);
  transform: translateY(-1px);
}

.cart-badge {
  background-color: #FFFFFF;
  color: var(--primary-terracotta);
  font-family: var(--font-heading);
  font-size: 0.725rem;
  font-weight: 800;
  min-width: 20px;
  height: 20px;
  line-height: 20px;
  padding: 0 4px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-sizing: border-box;
  text-align: center;
}

.btn-wa-header {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--primary-terracotta);
  color: #FFFFFF;
  padding: 0.55rem 1.125rem;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  min-height: 44px;
  box-shadow: 0 2px 8px rgba(51, 65, 85, 0.25);
}

.btn-wa-header:hover {
  background-color: var(--primary-terracotta-hover);
  color: #FFFFFF;
}

.btn-mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-tan);
  color: var(--text-charcoal);
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  background-color: rgba(43, 38, 32, 0.5);
  z-index: 100;
  display: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.mobile-drawer.open {
  display: block;
  opacity: 1;
}

.mobile-drawer-content {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 82%;
  max-width: 320px;
  background-color: var(--card-white);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: var(--shadow-modal);
  transform: translateX(100%);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer.open .mobile-drawer-content {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-tan);
  padding-bottom: 1rem;
}

.mobile-drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-drawer-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  padding: 0.625rem 0.5rem;
  display: block;
  border-radius: var(--radius-sm);
}

.mobile-drawer-link:hover,
.mobile-drawer-link.active {
  background-color: var(--bg-cream);
  color: var(--primary-terracotta);
}

/* ==========================================================================
   3. BUTTONS & UI CONTROLS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  min-height: 44px;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary-terracotta);
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: var(--primary-terracotta-hover);
  color: #FFFFFF;
}

.btn-secondary {
  background-color: var(--card-white);
  color: var(--text-charcoal);
  border: 1px solid var(--border-tan);
}

.btn-secondary:hover {
  background-color: var(--bg-cream);
  border-color: var(--text-muted);
}

.btn-accent {
  background-color: var(--accent-green);
  color: #FFFFFF;
}

.btn-accent:hover {
  background-color: var(--accent-green-hover);
  color: #FFFFFF;
}

.btn-sm {
  padding: 0.4rem 0.75rem;
  font-size: 0.825rem;
  min-height: 38px;
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   4. HERO SECTION
   ========================================================================== */
.hero-section {
  padding: 3.5rem 0 2.5rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 3rem;
}

.hero-badge-tetangga {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--primary-terracotta-soft);
  color: var(--primary-terracotta);
  border: 1px solid rgba(51, 65, 85, 0.25);
  padding: 0.35rem 0.875rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  color: var(--text-charcoal);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero-visual {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-tan);
  background-color: var(--card-white);
  aspect-ratio: 4 / 3;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-quick-note {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-quick-note svg {
  width: 18px;
  height: 18px;
  color: var(--accent-green);
  flex-shrink: 0;
}

/* ==========================================================================
   5. TRUST STRIP
   ========================================================================== */
.trust-strip {
  background-color: var(--card-white);
  border-top: 1px solid var(--border-tan);
  border-bottom: 1px solid var(--border-tan);
  padding: 1.25rem 0;
  box-shadow: var(--shadow-subtle);
}

.trust-items-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.trust-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background-color: var(--bg-cream);
  border: 1px solid var(--border-tan);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-terracotta);
  flex-shrink: 0;
}

.trust-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.trust-text p {
  font-size: 0.825rem;
  color: var(--text-muted);
}

/* ==========================================================================
   6. KATALOG POPULER & CARDS
   ========================================================================== */
.section {
  padding: 4rem 0;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.section-header-centered {
  text-align: center;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2.5rem;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.825rem;
  color: var(--accent-green);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-muted);
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* Product Card */
.product-card {
  background-color: var(--card-white);
  border: 1px solid var(--border-tan);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--border-tan-dark);
}

/* Image Container */
.product-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background-color: var(--bg-cream);
  border-bottom: 1px solid var(--border-tan);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 0;
  transition: transform 0.25s ease;
}

.product-card:hover .product-image-wrap img {
  transform: scale(1.04);
}

/* Stock Badges (Bulat Kecil di Pojok) */
.badge-stock {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 2;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.badge-stock-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.badge-stock.tersedia {
  background-color: var(--accent-green-soft);
  color: var(--accent-green);
  border: 1px solid rgba(78, 122, 81, 0.3);
}
.badge-stock.tersedia .badge-stock-dot {
  background-color: var(--accent-green);
}

.badge-stock.menipis {
  background-color: var(--warning-bg);
  color: var(--warning-amber);
  border: 1px solid rgba(180, 83, 9, 0.3);
}
.badge-stock.menipis .badge-stock-dot {
  background-color: var(--warning-amber);
}

.badge-stock.habis {
  background-color: var(--muted-bg);
  color: var(--muted-grey);
  border: 1px solid #CBD5E1;
}
.badge-stock.habis .badge-stock-dot {
  background-color: var(--muted-grey);
}

.badge-best-seller {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background-color: var(--primary-terracotta);
  color: #FFFFFF;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  z-index: 2;
}

/* Wishlist Button On Card */
.btn-card-wishlist {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--card-white);
  border: 1px solid var(--border-tan);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  z-index: 3;
}

.btn-card-wishlist:hover {
  color: var(--primary-terracotta);
  border-color: var(--primary-terracotta);
}

.btn-card-wishlist.active {
  color: #DC2626;
  fill: #DC2626;
  border-color: #DC2626;
}

/* Card Body */
.product-card-body {
  padding: 1.125rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-category-text {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-green);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}

.product-name-link {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-charcoal);
  line-height: 1.35;
  margin-bottom: 0.5rem;
  display: block;
}

.product-name-link:hover {
  color: var(--primary-terracotta);
}

.product-unit-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.product-price-row {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border-tan);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.875rem;
}

.product-price {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-terracotta);
}

.product-unit-small {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.product-card-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

/* ==========================================================================
   7. SIGNATURE BLOCK: BELANJA SESUAI KEBUTUHAN
   ========================================================================== */
.signature-section {
  background-color: #FFFDF8;
  border-top: 1px solid var(--border-tan);
  border-bottom: 1px solid var(--border-tan);
  padding: 4.5rem 0;
}

.signature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3.5rem;
}

.signature-visual {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-tan);
  background-color: #FFFDF8;
}

.signature-visual img {
  width: 100%;
  height: auto;
  display: block;
}

/* Native Component for Signature Block */
.signature-card-box {
  background-color: #FFFDF8;
  padding: 1.75rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.signature-cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.875rem;
  align-items: stretch;
}

.signature-mini-card {
  background-color: var(--bg-cream);
  border: 1px solid var(--border-tan);
  border-radius: var(--radius-lg);
  padding: 1.25rem 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.signature-mini-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-subtle);
}

.signature-mini-card.featured {
  background-color: #FFFDF8;
  border: 2px solid var(--primary-terracotta);
  transform: translateY(-6px);
  box-shadow: 0 6px 18px -2px rgba(51, 65, 85, 0.15);
  padding-top: 1.5rem;
}

.signature-mini-card.featured:hover {
  transform: translateY(-8px);
}

.signature-mini-badge {
  position: absolute;
  top: -11px;
  background-color: var(--primary-terracotta);
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 6px rgba(51, 65, 85, 0.25);
  white-space: nowrap;
}

.mini-card-circle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background-color: #FFFFFF;
  border: 1px solid var(--border-tan);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  box-shadow: 0 2px 6px rgba(43, 38, 32, 0.04);
}

.mini-card-qty {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary-terracotta);
  line-height: 1;
}

.mini-card-name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-charcoal);
  margin-bottom: 0.25rem;
}

.mini-card-price {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent-green);
  margin-bottom: 0.2rem;
}

.mini-card-sub {
  font-size: 0.725rem;
  color: var(--text-muted);
  font-weight: 500;
}

.signature-banner-bottom {
  background-color: #F5EFE6;
  border: 1px solid var(--border-tan);
  border-radius: var(--radius-md);
  padding: 1.125rem 1.25rem;
  text-align: center;
}

.signature-banner-bottom h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-charcoal);
  margin-bottom: 0.35rem;
  line-height: 1.35;
}

.signature-banner-bottom p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

.signature-points {
  list-style: none;
  margin: 1.75rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

.signature-point-item {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
}

.signature-point-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: var(--accent-green-soft);
  color: var(--accent-green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.signature-point-text strong {
  display: block;
  font-size: 1rem;
  color: var(--text-charcoal);
  margin-bottom: 0.2rem;
}

.signature-point-text p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   8. KATEGORI CHIPS
   ========================================================================== */
.kategori-chips-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.kategori-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.125rem;
  background-color: var(--card-white);
  border: 1px solid var(--border-tan);
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-charcoal);
  white-space: nowrap;
  min-height: 44px;
}

.kategori-chip:hover {
  background-color: var(--bg-cream-dark);
  border-color: var(--primary-terracotta);
}

.kategori-chip.active {
  background-color: var(--primary-terracotta);
  color: #FFFFFF;
  border-color: var(--primary-terracotta);
}

/* ==========================================================================
   9. CARA PESAN STRIP 3 LANGKAH
   ========================================================================== */
.cara-pesan-section {
  padding: 4.5rem 0;
  background-color: var(--bg-cream);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
}

.step-card {
  background-color: var(--card-white);
  border: 1px solid var(--border-tan);
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-card);
  position: relative;
  display: flex;
  flex-direction: column;
}

.step-number-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--primary-terracotta);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 10px rgba(51, 65, 85, 0.2);
}

.step-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.step-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ==========================================================================
   10. TESTIMONI 3 CARDS
   ========================================================================== */
.testimoni-section {
  padding: 4.5rem 0;
  background-color: #FFFDF8;
  border-top: 1px solid var(--border-tan);
  border-bottom: 1px solid var(--border-tan);
}

.testimoni-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.testimoni-card {
  background-color: var(--card-white);
  border: 1px solid var(--border-tan);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimoni-quote {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-charcoal);
  margin-bottom: 1.5rem;
  position: relative;
}

.testimoni-quote::before {
  content: '“';
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--primary-terracotta-soft);
  position: absolute;
  top: -1.5rem;
  left: -0.5rem;
  z-index: 0;
  opacity: 0.8;
}

.testimoni-quote-text {
  position: relative;
  z-index: 1;
}

.testimoni-author {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-tan);
}

.testimoni-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--bg-cream-dark);
  color: var(--primary-terracotta);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-tan);
  flex-shrink: 0;
}

.testimoni-author-info strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-charcoal);
}

.testimoni-author-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   11. CTA BAND TERRACOTTA
   ========================================================================== */
.cta-band {
  background-color: var(--primary-terracotta);
  color: #FFFFFF;
  padding: 3.5rem 0;
  text-align: center;
}

.cta-band-content {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.cta-band h2 {
  color: #FFFFFF;
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  margin-bottom: 1rem;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.btn-cta-band {
  background-color: #FFFFFF;
  color: var(--primary-terracotta);
  font-size: 1.05rem;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.btn-cta-band:hover {
  background-color: var(--bg-cream);
  color: var(--primary-terracotta-hover);
}

/* ==========================================================================
   12. FOOTER
   ========================================================================== */
.site-footer {
  background-color: #0F172A;
  color: #CBD5E1;
  padding: 4rem 0 2rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  color: #FFFFFF;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  color: var(--border-tan);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.footer-hours-box {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem;
  border-radius: var(--radius-md);
}

.footer-hours-box h4 {
  color: #FFFFFF;
  font-size: 0.875rem;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-hours-box p {
  font-size: 0.85rem;
  color: var(--border-tan);
}

.footer-column h4 {
  color: #FFFFFF;
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
  font-family: var(--font-heading);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-link {
  color: #D4BEA0;
  font-size: 0.9rem;
}

.footer-link:hover {
  color: #FFFFFF;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: #A3907C;
}

/* ==========================================================================
   13. UI STATES: EMPTY, LOADING, ERROR
   ========================================================================== */
.state-box {
  background-color: var(--card-white);
  border: 1px solid var(--border-tan);
  border-radius: var(--radius-xl);
  padding: 3.5rem 2rem;
  text-align: center;
  max-width: 540px;
  margin: 2rem auto;
  box-shadow: var(--shadow-card);
}

.state-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.state-icon.empty {
  background-color: var(--bg-cream);
  color: var(--primary-terracotta);
}

.state-icon.error {
  background-color: #FEE2E2;
  color: #DC2626;
}

.state-icon.loading {
  background-color: var(--accent-green-soft);
  color: var(--accent-green);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.state-title {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.state-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 110;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background-color: var(--text-charcoal);
  color: #FFFFFF;
  padding: 0.875rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  box-shadow: var(--shadow-modal);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: slideUp 0.25s ease forwards;
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ==========================================================================
   14. DETAIL PRODUK, FILTER, & FORMS
   ========================================================================== */
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: flex-start;
  background-color: var(--card-white);
  border: 1px solid var(--border-tan);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
}

.product-detail-gallery {
  position: relative;
  background-color: var(--bg-cream);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-tan);
  padding: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-detail-gallery img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
}

.product-detail-info h1 {
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  margin-bottom: 0.5rem;
}

.product-detail-price {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-terracotta);
  margin: 1rem 0;
}

.product-specs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.925rem;
}

.product-specs-table th,
.product-specs-table td {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-tan);
  text-align: left;
}

.product-specs-table th {
  color: var(--text-muted);
  font-weight: 500;
  width: 35%;
}

.product-specs-table td {
  color: var(--text-charcoal);
  font-weight: 600;
}

/* Forms */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  color: var(--text-charcoal);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-tan);
  background-color: var(--card-white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-charcoal);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--primary-terracotta);
  box-shadow: 0 0 0 3px rgba(51, 65, 85, 0.15);
  outline: none;
}

/* ==========================================================================
   15. RESPONSIVE BREAKPOINTS (Mobile First 2 Kolom)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .signature-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  .nav-links,
  .btn-wa-header {
    display: none;
  }
  .btn-mobile-toggle {
    display: inline-flex;
  }
  .trust-items-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .testimoni-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-section {
    padding: 2rem 0 1.5rem;
  }
  .section {
    padding: 2.75rem 0;
  }
}

/* MOBILE VIEW: Rapat 2 Kolom untuk Katalog Sembako */
@media (max-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }
  .product-card-body {
    padding: 0.75rem;
  }
  .product-name-link {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
  }
  .product-price {
    font-size: 1.05rem;
  }
  .product-unit-text {
    font-size: 0.75rem;
    margin-bottom: 0.4rem;
  }
  .product-price-row {
    padding-top: 0.5rem;
    margin-bottom: 0.6rem;
  }
  .badge-stock {
    padding: 0.15rem 0.45rem;
    font-size: 0.6875rem;
    top: 0.5rem;
    right: 0.5rem;
  }
  .badge-best-seller {
    top: 0.5rem;
    left: 0.5rem;
    padding: 0.15rem 0.4rem;
    font-size: 0.625rem;
  }
  .hero-title {
    font-size: 1.85rem;
  }
  .hero-subtitle {
    font-size: 0.95rem;
  }
  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-wishlist span:not(.wishlist-badge) {
    display: none;
  }
  .signature-cards-row {
    gap: 0.5rem;
  }
  .signature-mini-card {
    padding: 1rem 0.35rem 0.75rem;
  }
  .mini-card-circle {
    width: 46px;
    height: 46px;
    margin-bottom: 0.5rem;
  }
  .mini-card-qty {
    font-size: 0.8rem;
  }
  .mini-card-name {
    font-size: 0.75rem;
  }
  .mini-card-price {
    font-size: 0.85rem;
  }
  .signature-banner-bottom {
    padding: 0.875rem 0.75rem;
  }
  .signature-banner-bottom h4 {
    font-size: 0.95rem;
  }
  .signature-banner-bottom p {
    font-size: 0.8rem;
  }
}


/* ==========================================================================
   16. CUSTOMER AUTHENTICATION & PROFILE STYLES
   ========================================================================== */
.auth-wrapper {
  padding: 3.5rem 0 4.5rem;
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-card {
  width: 100%;
  max-width: 480px;
  background-color: var(--card-white);
  border: 1px solid var(--border-tan);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-card);
  margin: 0 auto;
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-header h1 {
  font-size: 1.6rem;
  color: var(--text-charcoal);
  margin: 0.75rem 0 0.35rem;
}

.auth-header p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.auth-demo-box {
  background-color: var(--bg-cream);
  border: 1px dashed var(--border-tan-dark);
  border-radius: var(--radius-md);
  padding: 0.875rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.825rem;
  color: var(--text-charcoal);
}

.auth-demo-box strong {
  display: block;
  color: var(--primary-terracotta);
  margin-bottom: 0.2rem;
}

.auth-footer-links {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-tan);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.auth-footer-links a {
  color: var(--primary-terracotta);
  font-weight: 600;
}

.auth-footer-links a:hover {
  text-decoration: underline;
}

/* User Account Profile Page */
.profile-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: flex-start;
  margin-top: 2rem;
}

.profile-sidebar-card {
  background-color: var(--card-white);
  border: 1px solid var(--border-tan);
  border-radius: var(--radius-xl);
  padding: 1.75rem 1.25rem;
  box-shadow: var(--shadow-card);
  text-align: center;
}

.profile-avatar-large {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-color: var(--bg-cream);
  color: var(--primary-terracotta);
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  border: 2px solid var(--border-tan);
}

.profile-main-card {
  background-color: var(--card-white);
  border: 1px solid var(--border-tan);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-card);
}

.profile-tabs {
  display: flex;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border-tan);
  padding-bottom: 1rem;
  margin-bottom: 1.75rem;
}

.profile-tab-btn {
  padding: 0.5rem 1rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  min-height: 40px;
}

.profile-tab-btn.active {
  background-color: var(--primary-terracotta-soft);
  color: var(--primary-terracotta);
}

.order-history-card {
  border: 1px solid var(--border-tan);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1rem;
  background-color: #FFFDF8;
}

.order-history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed var(--border-tan);
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
}

/* ==========================================================================
   17. ADMIN PANEL STYLES (WARASPANGAN PENGELOLA)
   ========================================================================== */
.admin-header-bar {
  background-color: var(--card-white);
  border-bottom: 1px solid var(--border-tan);
  padding: 0.65rem 0;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.admin-header-bar .container {
  max-width: 1400px;
  width: 100%;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.admin-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 44px;
  width: 100%;
}

.admin-nav-brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  min-width: max-content;
}

.admin-menu-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  flex-wrap: nowrap;
}

.admin-menu-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.35rem 0.55rem;
  border-radius: var(--radius-md);
  color: var(--text-charcoal);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  text-decoration: none;
  line-height: 1.25;
  transition: all 0.15s ease;
  border: none;
  background: transparent;
  cursor: pointer;
}

.admin-menu-link:hover,
.admin-menu-link.active {
  background-color: var(--bg-cream);
  color: var(--primary-terracotta);
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.admin-stat-card {
  background-color: var(--card-white);
  border: 1px solid var(--border-tan);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.admin-stat-label {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}

.admin-stat-val {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--text-charcoal);
  margin-bottom: 0.25rem;
}

.admin-stat-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.admin-table-wrap {
  background-color: var(--card-white);
  border: 1px solid var(--border-tan);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: 2.5rem;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.admin-table th {
  background-color: var(--bg-cream);
  color: var(--text-charcoal);
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 1rem 1.125rem;
  border-bottom: 1px solid var(--border-tan);
}

.admin-table td {
  padding: 1rem 1.125rem;
  border-bottom: 1px solid var(--border-tan);
  vertical-align: middle;
}

.admin-table tr:hover td {
  background-color: #FFFDF8;
}

/* Order Status Badges */
.badge-order-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-order-status.menunggu {
  background-color: #FEF3C7;
  color: #B45309;
  border: 1px solid rgba(180, 83, 9, 0.3);
}

.badge-order-status.disiapkan {
  background-color: #E0E7FF;
  color: #3730A3;
  border: 1px solid rgba(55, 48, 163, 0.3);
}

.badge-order-status.sedang-diantar {
  background-color: #E0F2FE;
  color: #0369A1;
  border: 1px solid rgba(2, 132, 199, 0.3);
}

.badge-order-status.selesai {
  background-color: #DCFCE7;
  color: #15803D;
  border: 1px solid rgba(21, 128, 61, 0.3);
}

.admin-order-grid-columns {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: flex-start;
}

@media (max-width: 900px) {
  .admin-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .profile-grid {
    grid-template-columns: 1fr;
  }
  .admin-order-grid-columns {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

@media (max-width: 640px) {
  .admin-stats-grid {
    grid-template-columns: 1fr;
  }
  .admin-menu-links {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 0.25rem;
  }
  .admin-table {
    display: block;
    overflow-x: auto;
  }
}

/* ==========================================================================
   18. SLIDING CART TOAST NOTIFICATION (3 DETIK POJOK ATAS)
   ========================================================================== */
#sliding-toast-container {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.sliding-cart-toast {
  pointer-events: auto;
  position: relative;
  background-color: #FFFFFF;
  border: 1px solid var(--border-tan);
  border-left: 4px solid var(--accent-green);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(43, 38, 32, 0.16), 0 2px 6px rgba(43, 38, 32, 0.08);
  width: 360px;
  max-width: calc(100vw - 2.5rem);
  overflow: hidden;
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

.sliding-cart-toast.show {
  transform: translateX(0);
  opacity: 1;
}

.sliding-cart-toast.hide {
  transform: translateX(120%);
  opacity: 0;
}

.sliding-toast-body {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
}

.sliding-toast-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--accent-green-soft);
  color: var(--accent-green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sliding-toast-thumb {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 1px solid var(--border-tan);
  flex-shrink: 0;
  background-color: var(--bg-cream);
}

.sliding-toast-text {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.sliding-toast-text strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  color: var(--text-charcoal);
  line-height: 1.25;
}

.sliding-toast-prod {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 0.15rem;
}

.sliding-toast-action {
  background-color: var(--primary-terracotta);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 0.2s ease;
}

.sliding-toast-action:hover {
  background-color: var(--primary-terracotta-dark);
  color: #FFFFFF;
}

.sliding-toast-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  line-height: 1;
  padding: 0.25rem;
  cursor: pointer;
  flex-shrink: 0;
}

.sliding-toast-close:hover {
  color: var(--text-charcoal);
}

.sliding-toast-progress {
  height: 3px;
  background-color: var(--accent-green);
  width: 100%;
  animation: toastProgress 3s linear forwards;
}

@keyframes toastProgress {
  from { width: 100%; }
  to { width: 0%; }
}

/* ==========================================================================
   19. CHECKOUT PAGE STYLES
   ========================================================================== */
.checkout-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 2.25rem;
  align-items: flex-start;
  margin-top: 1.5rem;
}

.checkout-section-box {
  background-color: var(--card-white);
  border: 1px solid var(--border-tan);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  margin-bottom: 1.5rem;
}

.checkout-section-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-charcoal);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-bottom: 0.875rem;
  border-bottom: 1px solid var(--border-tan);
}

.checkout-section-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: var(--primary-terracotta-soft);
  color: var(--primary-terracotta);
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cart-item-row {
  display: grid;
  grid-template-columns: 60px 1.5fr auto auto 36px;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px dashed var(--border-tan);
}

.cart-item-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.cart-item-thumb {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 1px solid var(--border-tan);
  background-color: var(--bg-cream);
}

.cart-item-info h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-charcoal);
  margin-bottom: 0.2rem;
}

.cart-item-price-unit {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Hilangkan spinner bawaan browser (up/down arrows) agar tombol qty tidak double */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button,
.qty-stepper-val::-webkit-inner-spin-button,
.qty-stepper-val::-webkit-outer-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}

input[type="number"],
.qty-stepper-val {
  -moz-appearance: textfield !important;
  appearance: textfield !important;
}

/* Stepper Kontrol Jumlah */
.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--border-tan);
  border-radius: var(--radius-md);
  background-color: #FFFFFF;
  overflow: hidden;
  box-sizing: border-box;
}

.qty-stepper-btn {
  width: 36px;
  height: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-charcoal);
  cursor: pointer;
  user-select: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.qty-stepper-btn:hover {
  background-color: var(--bg-cream);
  color: var(--primary-terracotta);
}

.qty-stepper-btn:active {
  background-color: var(--border-tan);
}

.qty-stepper-val {
  width: 42px;
  height: 100%;
  min-height: 40px;
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-charcoal);
  border: none;
  background: transparent;
  padding: 0;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: textfield;
  appearance: textfield;
}

.cart-item-subtotal {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-terracotta);
  text-align: right;
  white-space: nowrap;
}

.cart-item-del-btn {
  background: none;
  border: none;
  color: #DC2626;
  opacity: 0.7;
  cursor: pointer;
  padding: 0.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.cart-item-del-btn:hover {
  opacity: 1;
  background-color: #FEE2E2;
}

/* Delivery Slot Radios */
.delivery-slots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.slot-radio-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  border: 1.5px solid var(--border-tan);
  border-radius: var(--radius-lg);
  padding: 1rem 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  background-color: #FFFDF8;
}

.slot-radio-card input {
  margin-top: 0.25rem;
  cursor: pointer;
}

.slot-card-content strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--text-charcoal);
  margin-bottom: 0.2rem;
}

.slot-card-content span {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: block;
  line-height: 1.35;
}

/* Order Summary Box */
.order-summary-card {
  background-color: var(--card-white);
  border: 1.5px solid var(--border-tan);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  position: sticky;
  top: 90px;
}

.order-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-charcoal);
}

.order-summary-row.total-row {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 2px dashed var(--border-tan);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-terracotta);
}

@media (max-width: 900px) {
  .checkout-grid {
    grid-template-columns: 1fr;
  }
  .delivery-slots-grid {
    grid-template-columns: 1fr;
  }
  .cart-item-row {
    grid-template-columns: 50px 1fr auto;
    gap: 0.75rem;
  }
  .cart-item-subtotal {
    grid-column: 2 / -1;
    text-align: left;
    margin-top: -0.25rem;
  }
}

/* ==========================================================================
   DROPDOWN MENU IN NAVBAR (TENTANG & CARA PESAN)
   ========================================================================== */
.nav-item-dropdown {
  position: relative;
  list-style: none;
}

.nav-link.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}

.dropdown-arrow {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.nav-item-dropdown:hover .dropdown-arrow,
.nav-item-dropdown:focus-within .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background-color: #FFFFFF;
  border: 1.5px solid var(--border-tan);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  padding: 0.5rem 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
  z-index: 1000;
  margin-top: 0.25rem;
}

.nav-item-dropdown:hover .dropdown-menu,
.nav-item-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.15rem;
  font-size: 0.9rem;
  color: var(--text-charcoal);
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: var(--bg-cream);
  color: var(--primary-terracotta);
}

/* ==========================================================================
   ADMIN STICKY TOP BAR & COMPACT LAYOUT (MINIMAL SCROLLING)
   ========================================================================== */
.admin-top-bar {
  background-color: var(--text-charcoal);
  color: #FFFFFF;
  padding: 0.35rem 0;
  font-size: 0.8rem;
  position: sticky;
  top: 0;
  z-index: 105;
}

.admin-top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.admin-top-back {
  color: #FBF3E7;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.825rem;
  transition: color 0.15s ease;
}

.admin-top-back:hover {
  color: var(--warning-amber);
  text-decoration: underline;
}

.admin-top-tag {
  color: #A8A29E;
  font-size: 0.75rem;
}

/* Removed rogue top-offset after top-bar removal */

/* Auth card compact for Admin Login (No-scroll viewport fit) */
.admin-auth-container {
  min-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1rem 0;
}

.admin-auth-card {
  max-width: 400px;
  width: 100%;
  padding: 1.5rem !important;
  margin: 0 auto;
}

.admin-auth-top-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--primary-terracotta);
  font-weight: 600;
  text-decoration: none;
}

.admin-auth-top-link:hover {
  text-decoration: underline;
}

/* Admin Quick Unlock Overlay Fallback */
.admin-lock-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(43, 38, 32, 0.85);
  backdrop-filter: blur(4px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.admin-lock-card {
  background-color: #FFFFFF;
  border: 2px solid var(--primary-terracotta);
  border-radius: var(--radius-xl);
  padding: 2rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   CUSTOMER PANEL: DAFTAR INCARAN (WISHLIST) GRID
   ========================================================================== */
.account-wishlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.account-wishlist-card {
  background: #FFFFFF;
  border: 1px solid var(--border-tan);
  border-radius: var(--radius-lg);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.account-wishlist-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-subtle);
}

.account-wishlist-top {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.account-wishlist-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-md);
  background-color: var(--bg-cream);
  border: 1px solid var(--border-tan);
  flex-shrink: 0;
}

.sidebar-wishlist-pill {
  width: 100%;
  background: var(--bg-cream);
  border: 1px solid var(--border-tan);
  border-radius: var(--radius-md);
  padding: 0.5rem 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-charcoal);
  cursor: pointer;
  margin-top: 0.75rem;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.sidebar-wishlist-pill:hover {
  background-color: var(--primary-terracotta-soft);
  border-color: var(--primary-terracotta);
  color: var(--primary-terracotta);
}

/* Responsive adjustment for Mobile Navbar */
@media (max-width: 768px) {
  .site-header .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  .navbar {
    padding: 0.45rem 0;
  }
  .nav-brand img {
    width: 140px;
    height: auto;
  }
  .nav-actions {
    gap: 0.35rem;
  }
  .btn-cart-header {
    padding: 0.35rem 0.55rem;
    font-size: 0.75rem;
    min-height: 36px;
  }
  #nav-user-btn .btn {
    padding: 0.35rem 0.55rem;
    font-size: 0.75rem;
    min-height: 36px;
  }
  .btn-mobile-toggle {
    width: 36px;
    height: 36px;
    padding: 0;
  }
}

/* ==========================================================================
   19. ADMIN MOBILE SIDE MENU (DRAWER)
   ========================================================================== */
.admin-sidebar-toggle {
  display: none;
  align-items: center;
  gap: 0.45rem;
  background-color: #FFFDF8;
  border: 1.5px solid var(--border-tan);
  border-radius: var(--radius-md);
  padding: 0.4rem 0.75rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-charcoal);
  cursor: pointer;
  transition: all 0.15s ease;
}

.admin-sidebar-toggle:hover {
  background-color: var(--bg-cream);
  border-color: var(--primary-terracotta);
  color: var(--primary-terracotta);
}

/* Generic Modal Popup & Backdrop */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(43, 38, 32, 0.75);
  backdrop-filter: blur(4px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-card {
  background-color: #FFFFFF;
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--border-tan);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
  position: relative;
  width: 100%;
  max-width: 680px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalScaleUp 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleUp {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.admin-side-drawer {
  position: fixed;
  inset: 0;
  z-index: 99999;
  visibility: hidden;
  transition: visibility 0.25s ease;
}

.admin-side-drawer.open {
  visibility: visible;
}

.admin-side-drawer-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(43, 38, 32, 0.65);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.admin-side-drawer.open .admin-side-drawer-overlay {
  opacity: 1;
}

.admin-side-drawer-content {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 310px;
  max-width: 85vw;
  background-color: #FFFFFF;
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  z-index: 2;
  overflow-y: auto;
}

.admin-side-drawer.open .admin-side-drawer-content {
  transform: translateX(0);
}

.admin-side-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-tan);
  margin-bottom: 1.25rem;
}

.badge-pengelola-pill {
  background-color: var(--primary-terracotta);
  color: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-side-drawer-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  transition: all 0.15s ease;
}

.admin-side-drawer-close:hover {
  background-color: var(--bg-cream);
  color: var(--text-charcoal);
}

.admin-side-drawer-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: var(--bg-cream);
  border: 1px solid var(--border-tan);
  border-radius: var(--radius-lg);
  padding: 0.85rem;
  margin-bottom: 1.5rem;
}

.admin-avatar-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary-terracotta);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.admin-side-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: auto;
}

.admin-side-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-charcoal);
  text-decoration: none;
  transition: all 0.15s ease;
}

.admin-side-link svg {
  color: var(--text-muted);
  transition: color 0.15s ease;
  flex-shrink: 0;
}

.admin-side-link:hover {
  background-color: var(--bg-cream);
  color: var(--primary-terracotta);
}

.admin-side-link:hover svg {
  color: var(--primary-terracotta);
}

.admin-side-link.active {
  background-color: var(--primary-terracotta-soft);
  color: var(--primary-terracotta);
  border-left: 3.5px solid var(--primary-terracotta);
}

.admin-side-link.active svg {
  color: var(--primary-terracotta);
}

.admin-side-drawer-footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-tan);
}

.admin-side-logout-btn {
  color: #991B1B !important;
  border-color: #FCA5A5 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.admin-side-logout-btn:hover {
  background-color: #FEE2E2 !important;
}

/* Hide desktop menu on laptop / tablet < 1200px to prevent any collision */
@media (max-width: 1200px) {
  .admin-menu-links {
    display: none !important;
  }
  .admin-sidebar-toggle {
    display: inline-flex !important;
  }
  .admin-nav {
    justify-content: space-between;
    gap: 0.5rem;
  }
  .admin-nav .nav-brand img {
    width: 140px;
    height: auto;
  }
  .admin-nav .badge-pengelola-pill {
    display: none;
  }
}

/* ==========================================================================
   20. BEAUTIFIED PRODUCT LIST (SPACIOUS & MODERN)
   ========================================================================== */
.admin-table-wrap {
  border: 1.5px solid var(--border-tan);
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  background-color: #FFFFFF;
  margin-bottom: 2rem;
}

.admin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.admin-table th {
  background-color: #FAF5EE;
  padding: 1rem 1.25rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1.5px solid var(--border-tan);
}

.admin-table td {
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid var(--border-tan);
  vertical-align: middle;
  background-color: #FFFFFF;
  transition: background-color 0.15s ease;
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

.admin-table tbody tr:hover td {
  background-color: #FFFDF8;
}

.admin-prod-thumb {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 10px;
  background-color: var(--bg-cream);
  border: 1px solid var(--border-tan);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  flex-shrink: 0;
}

.admin-prod-cat-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #2F5C34;
  background-color: #EBF3EC;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  margin-top: 0.25rem;
}

.admin-prod-unit-badge {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--text-muted);
  background-color: #F5EFE6;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
}

.admin-prod-price {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-terracotta);
  white-space: nowrap;
}

/* Sleek, Professional Stock Status Badge Selector */
.admin-stock-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 0.35rem 1.85rem 0.35rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-tan);
  background-color: #FFFFFF;
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  background-size: 11px 11px;
  cursor: pointer;
  line-height: 1.4;
  display: inline-block;
  min-height: 34px;
  width: auto;
  min-width: 145px;
  max-width: 175px;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.admin-stock-select:hover {
  filter: brightness(0.97);
}

.admin-stock-select:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(51, 65, 85, 0.25);
}

.admin-stock-select.tersedia {
  border-color: #A7F3D0;
  background-color: #ECFDF5;
  color: #065F46;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23065F46' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

.admin-stock-select.menipis {
  border-color: #FDE68A;
  background-color: #FFFBEB;
  color: #92400E;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2392400E' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

.admin-stock-select.habis {
  border-color: #FECACA;
  background-color: #FEF2F2;
  color: #991B1B;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23991B1B' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

/* Product Photo Selector & Live Preview */
.prod-photo-picker-wrap {
  background-color: #FFFDF8;
  border: 1.5px dashed var(--border-tan);
  border-radius: var(--radius-lg);
  padding: 1rem;
  margin-top: 0.35rem;
}

.prod-photo-preview-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.875rem;
}

.prod-photo-preview-img {
  width: 78px;
  height: 78px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-tan);
  background-color: var(--bg-cream);
  flex-shrink: 0;
  box-shadow: var(--shadow-subtle);
}

.prod-photo-gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  margin-top: 0.5rem;
  max-height: 170px;
  overflow-y: auto;
  padding: 0.35rem;
  border: 1px solid var(--border-tan);
  border-radius: var(--radius-md);
  background-color: #FFFFFF;
}

.prod-gallery-thumb-btn {
  background: #FFFFFF;
  border: 2px solid var(--border-tan);
  border-radius: 6px;
  padding: 2px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.prod-gallery-thumb-btn:hover {
  border-color: var(--primary-terracotta);
  transform: translateY(-1px);
}

.prod-gallery-thumb-btn.selected {
  border-color: var(--primary-terracotta);
  box-shadow: 0 0 0 2px var(--primary-terracotta);
  background-color: var(--primary-terracotta-soft);
}

.prod-gallery-thumb-img {
  width: 100%;
  height: 46px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

.prod-gallery-thumb-name {
  font-size: 0.65rem;
  color: var(--text-charcoal);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  text-align: center;
  margin-top: 2px;
  font-weight: 500;
}

/* Mobile Product Cards (Replaces squished table on mobile) */
.admin-products-mobile-container {
  display: none;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.admin-product-card-mobile {
  background-color: #FFFFFF;
  border: 1.5px solid var(--border-tan);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.admin-pcm-header {
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
}

.admin-pcm-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border-tan);
  background-color: var(--bg-cream);
  flex-shrink: 0;
}

.admin-pcm-details {
  flex: 1;
  min-width: 0;
}

.admin-pcm-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-charcoal);
  margin: 0 0 0.35rem;
  line-height: 1.3;
}

.admin-pcm-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.admin-pcm-price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  background-color: #FFFDF8;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-tan);
}

.admin-pcm-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

@media (max-width: 768px) {
  .admin-desktop-table-view {
    display: none !important;
  }
  .admin-products-mobile-container {
    display: flex !important;
  }
}

/* ==========================================================================
   CART DRAWER (SLIDE-OVER FROM RIGHT)
   ========================================================================== */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(43, 38, 32, 0.6);
  backdrop-filter: blur(2px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.cart-drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}
.cart-drawer-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 440px;
  background-color: #FFFFFF;
  z-index: 9999;
  box-shadow: -8px 0 32px rgba(43, 38, 32, 0.2);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.cart-drawer-panel.open {
  transform: translateX(0);
}
.cart-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1.5px solid var(--border-tan);
  background-color: var(--bg-cream);
}
.cart-drawer-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.cart-drawer-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-charcoal);
  margin: 0;
}
.cart-drawer-badge {
  background-color: var(--primary-terracotta);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
}
.cart-drawer-close {
  background: transparent;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}
.cart-drawer-close:hover {
  background-color: rgba(0,0,0,0.06);
  color: var(--text-charcoal);
}
.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.cart-drawer-item {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem;
  background-color: #FFFDF8;
  border: 1px solid var(--border-tan);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s;
}
.cart-drawer-item:hover {
  border-color: rgba(51, 65, 85, 0.4);
}
.cart-drawer-thumb {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-tan);
  background-color: var(--bg-cream);
  flex-shrink: 0;
}
.cart-drawer-item-info {
  flex: 1;
  min-width: 0;
}
.cart-drawer-item-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-charcoal);
  margin: 0 0 0.25rem;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-drawer-item-price {
  font-size: 0.825rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  display: block;
}
.cart-drawer-stepper {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--border-tan);
  border-radius: var(--radius-sm);
  background-color: #FFFFFF;
  overflow: hidden;
}
.cart-drawer-stepper-btn {
  background: transparent;
  border: none;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-charcoal);
  transition: background-color 0.15s;
}
.cart-drawer-stepper-btn:hover {
  background-color: var(--bg-cream);
}
.cart-drawer-stepper-val {
  width: 32px;
  text-align: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-charcoal);
  border: none;
  background: transparent;
}
.cart-drawer-item-subtotal-wrap {
  text-align: right;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
}
.cart-drawer-item-subtotal {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary-terracotta);
}
.cart-drawer-item-del {
  background: transparent;
  border: none;
  color: #991B1B;
  cursor: pointer;
  padding: 0.3rem;
  border-radius: var(--radius-sm);
  opacity: 0.7;
  transition: opacity 0.2s, background-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-drawer-item-del:hover {
  opacity: 1;
  background-color: #FEE2E2;
}
.cart-drawer-empty {
  text-align: center;
  padding: 3.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.cart-drawer-empty-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background-color: var(--bg-cream);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-drawer-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1.5px solid var(--border-tan);
  background-color: #FFFFFF;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.04);
}
.cart-drawer-subtotal-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.75rem;
}
.cart-drawer-subtotal-label {
  font-size: 0.95rem;
  color: var(--text-muted);
}
.cart-drawer-subtotal-val {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-terracotta);
}
.cart-drawer-note {
  font-size: 0.775rem;
  color: var(--accent-green);
  background-color: var(--accent-green-soft);
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ==========================================================================
   SIMPLIFIED SITE FOOTER (CLEAN & COMPACT FOR MOBILE & DESKTOP)
   ========================================================================== */
.site-footer {
  background-color: #0F172A;
  color: #CBD5E1;
  padding: 2.25rem 0 1.5rem;
  border-top: 3px solid var(--primary-terracotta);
}
.footer-simple-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-simple-brand {
  max-width: 480px;
}
.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
  flex-wrap: wrap;
}
.footer-brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #FFFFFF;
}
.footer-badge-hours {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  background-color: rgba(78, 122, 81, 0.35);
  color: #A3D9A5;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(163, 217, 165, 0.3);
}
.footer-simple-desc {
  font-size: 0.85rem;
  color: #C7BAAB;
  line-height: 1.5;
  margin: 0;
}
.footer-simple-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
}
.footer-simple-link {
  color: #EDE3D8;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
}
.footer-simple-link:hover {
  color: #FFFFFF;
  background-color: rgba(255, 255, 255, 0.08);
}
.footer-simple-link.footer-link-admin {
  background-color: rgba(51, 65, 85, 0.25);
  color: #F8B187;
  border: 1px solid rgba(51, 65, 85, 0.4);
}
.footer-simple-link.footer-link-admin:hover {
  background-color: var(--primary-terracotta);
  color: #FFFFFF;
}
.footer-bottom-simple {
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #9C8E80;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ==========================================================================
   CHECKOUT DELIVERY VS PICKUP & INTERACTIVE SELECTORS
   ========================================================================== */
.fulfillment-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.fulfillment-tab-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem 0.75rem;
  border: 2px solid var(--border-tan);
  border-radius: var(--radius-lg);
  background-color: #FFFFFF;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  min-height: 76px;
}
.fulfillment-tab-btn:hover {
  border-color: var(--primary-terracotta);
  background-color: #FFFDF8;
}
.fulfillment-tab-btn.active {
  border-color: var(--primary-terracotta);
  background-color: var(--primary-terracotta-soft);
  box-shadow: 0 4px 14px rgba(51, 65, 85, 0.15);
}
.fulfillment-tab-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-charcoal);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.fulfillment-tab-btn.active .fulfillment-tab-title {
  color: var(--primary-terracotta);
}
.fulfillment-tab-desc {
  font-size: 0.775rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Clickable Date Buttons */
.pickup-dates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-top: 0.5rem;
  margin-bottom: 1.25rem;
}
.pickup-date-btn {
  border: 2px solid var(--border-tan);
  background-color: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 0.75rem 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  min-height: 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.pickup-date-btn:hover {
  border-color: var(--primary-terracotta);
  background-color: #FFFDF8;
}
.pickup-date-btn.active {
  border-color: var(--primary-terracotta);
  background-color: var(--primary-terracotta-soft);
  box-shadow: 0 3px 10px rgba(51, 65, 85, 0.12);
}
.pickup-date-day {
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--text-charcoal);
}
.pickup-date-btn.active .pickup-date-day {
  color: var(--primary-terracotta);
}
.pickup-date-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* Clickable Time Buttons */
.pickup-times-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.65rem;
  margin-top: 0.5rem;
}
.pickup-time-btn {
  border: 1.5px solid var(--border-tan);
  background-color: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 0.65rem 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  min-height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.pickup-time-btn:hover {
  border-color: var(--primary-terracotta);
  background-color: #FFFDF8;
}
.pickup-time-btn.active {
  border-color: var(--primary-terracotta);
  background-color: var(--primary-terracotta-soft);
  font-weight: 700;
  color: var(--primary-terracotta);
  box-shadow: 0 2px 8px rgba(51, 65, 85, 0.1);
}
.pickup-time-val {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-charcoal);
}
.pickup-time-btn.active .pickup-time-val {
  color: var(--primary-terracotta);
}
.pickup-time-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

/* Interactive Payment Radios & Details */
.payment-detail-box {
  background-color: #FFFDF8;
  border: 1px dashed var(--border-tan);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-top: 0.75rem;
  font-size: 0.85rem;
}
.copy-account-btn {
  background-color: var(--bg-cream);
  border: 1px solid var(--border-tan);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.65rem;
  font-size: 0.775rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s;
  min-height: 32px;
}
.copy-account-btn:hover {
  background-color: var(--primary-terracotta);
  color: #FFFFFF;
  border-color: var(--primary-terracotta);
}

/* ==========================================================================
   ADMIN FULL PRODUCT CRUD MODALS
   ========================================================================== */
.admin-modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.65);
  z-index: 99990;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, visibility 0.18s ease;
  overflow-y: auto;
}
.admin-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}
.admin-modal-box {
  background-color: #FFFFFF;
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--border-tan);
  max-width: 620px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 48px rgba(0,0,0,0.25);
  transform: translateY(16px);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  position: relative;
}
.admin-modal-overlay.open .admin-modal-box {
  transform: translateY(0);
}
.admin-modal-box form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  margin: 0;
}
.admin-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.15rem 1.5rem;
  border-bottom: 1px solid var(--border-tan);
  background-color: var(--bg-cream);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  flex-shrink: 0;
}
.admin-modal-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-charcoal);
  margin: 0;
}
.admin-modal-close {
  background: transparent;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  width: 44px;
  height: 44px;
  margin: -0.35rem -0.5rem -0.35rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
  flex-shrink: 0;
}
.admin-modal-close:hover {
  background-color: rgba(0,0,0,0.06);
  color: var(--text-charcoal);
}
.admin-modal-body {
  padding: 1.5rem;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  min-height: 0;
}
.admin-form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.admin-modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-tan);
  background-color: #FFFDF8;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .site-footer {
    padding: 1.75rem 0 1.25rem;
  }
  .footer-simple-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    padding-bottom: 1.25rem;
  }
  .footer-simple-nav {
    width: 100%;
    gap: 0.4rem;
  }
  .footer-simple-link {
    font-size: 0.825rem;
    padding: 0.35rem 0.6rem;
    background-color: rgba(255, 255, 255, 0.05);
  }
  .footer-bottom-simple {
    padding-top: 1rem;
    font-size: 0.75rem;
  }
  .admin-form-grid-2 {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .pickup-dates-grid {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   CUSTOMER PANEL ENHANCED STYLES (REAL-TIME, CLICKABLE & INTERACTIVE)
   ========================================================================== */

/* 1. Header Banner & Profile Badges */
.customer-header-banner {
  background: linear-gradient(135deg, #FFFDF8 0%, #F5EBE1 100%);
  border: 1.5px solid var(--border-tan);
  border-radius: var(--radius-xl);
  padding: 1.75rem 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-card);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.customer-profile-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.customer-avatar-badge {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background-color: var(--primary-terracotta);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #FFFFFF;
  box-shadow: var(--shadow-subtle);
  flex-shrink: 0;
}

.customer-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background-color: #F1F5F9;
  color: #334155;
  font-weight: 700;
  font-size: 0.775rem;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  border: 1px solid #CBD5E1;
  margin-bottom: 0.35rem;
}

/* 2. Customer Stat Metric Cards */
.customer-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.customer-stat-card {
  background-color: var(--card-white);
  border: 1px solid var(--border-tan);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.15rem;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.customer-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.customer-stat-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.customer-stat-icon-wrap.active-order {
  background-color: #F1F5F9;
  color: #334155;
}

.customer-stat-icon-wrap.completed-order {
  background-color: var(--accent-green-soft);
  color: var(--accent-green);
}

.customer-stat-icon-wrap.saved-money {
  background-color: #EFF6FF;
  color: #2563EB;
}

.customer-stat-icon-wrap.points {
  background-color: var(--primary-terracotta-soft);
  color: var(--primary-terracotta);
}

.customer-stat-num {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-charcoal);
  line-height: 1.2;
}

.customer-stat-lbl {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* 3. Live Order Tracker Card */
.customer-live-card {
  background-color: #FFFFFF;
  border: 2px solid var(--accent-green);
  border-radius: var(--radius-xl);
  padding: 1.75rem 2rem;
  margin-bottom: 2.25rem;
  box-shadow: 0 4px 16px rgba(44, 95, 60, 0.08);
}

.live-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-tan);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.live-pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #DCFCE7;
  color: #166534;
  font-weight: 700;
  font-size: 0.825rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  border: 1px solid #BBF7D0;
}

.live-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #16A34A;
  box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7);
  animation: livePulseAnim 1.8s infinite;
}

@keyframes livePulseAnim {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 7px rgba(22, 163, 74, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

/* Progress Stepper Visual */
.live-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin: 1.5rem 0 2rem;
}

.live-stepper::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 30px;
  right: 30px;
  height: 3px;
  background-color: var(--border-tan);
  z-index: 1;
}

.live-stepper-progress {
  position: absolute;
  top: 18px;
  left: 30px;
  height: 3px;
  background-color: var(--accent-green);
  z-index: 2;
  transition: width 0.3s ease;
}

.stepper-node {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}

.stepper-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: #FFFFFF;
  border: 2.5px solid var(--border-tan);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  transition: all 0.2s;
}

.stepper-node.done .stepper-circle {
  background-color: var(--accent-green);
  border-color: var(--accent-green);
  color: #FFFFFF;
}

.stepper-node.active .stepper-circle {
  background-color: #FFFFFF;
  border-color: var(--accent-green);
  color: var(--accent-green);
  box-shadow: 0 0 0 4px rgba(44, 95, 60, 0.2);
}

.stepper-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.stepper-node.active .stepper-label {
  color: var(--accent-green);
  font-weight: 700;
}

.stepper-node.done .stepper-label {
  color: var(--text-charcoal);
}

/* Courier & Delivery Info Box */
.live-courier-box {
  background-color: var(--bg-cream);
  border: 1px solid var(--border-tan);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.courier-info-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.courier-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--primary-terracotta-soft);
  color: var(--primary-terracotta);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  border: 1px solid rgba(51, 65, 85, 0.2);
}

/* 4. Filter Chips for Order History */
.order-filter-chips {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.order-filter-chip {
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 9999px;
  background-color: var(--bg-cream);
  border: 1px solid var(--border-tan);
  color: var(--text-charcoal);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.order-filter-chip:hover {
  background-color: var(--border-tan);
}

.order-filter-chip.active {
  background-color: var(--primary-terracotta);
  color: #FFFFFF;
  border-color: var(--primary-terracotta);
}

/* 5. Enhanced Order Card */
.order-card-enhanced {
  background-color: #FFFFFF;
  border: 1px solid var(--border-tan);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.order-card-enhanced:hover {
  box-shadow: var(--shadow-hover);
}

.order-items-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.order-items-table td {
  padding: 0.5rem 0;
  font-size: 0.875rem;
  border-bottom: 1px dashed var(--border-tan);
  vertical-align: middle;
}

.order-items-table tr:last-child td {
  border-bottom: none;
}

/* 6. Voucher Cards Grid */
.customer-vouchers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.customer-voucher-card {
  background: linear-gradient(135deg, #FFFFFF 0%, #FFFDF8 100%);
  border: 1.5px dashed var(--accent-green);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-subtle);
  position: relative;
  overflow: hidden;
}

.customer-voucher-card::before {
  content: "";
  position: absolute;
  top: -10px;
  right: -10px;
  width: 40px;
  height: 40px;
  background-color: var(--accent-green-soft);
  border-radius: 50%;
  z-index: 0;
}

.voucher-code-copy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-cream);
  border: 1px solid var(--border-tan);
  border-radius: var(--radius-md);
  padding: 0.5rem 0.75rem;
  margin-top: 1rem;
}

.voucher-code-text {
  font-family: monospace;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-terracotta);
  letter-spacing: 1px;
}

/* 7. Digital Invoice Modal */
.invoice-modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(43, 38, 32, 0.7);
  backdrop-filter: blur(3px);
  z-index: 99995;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.invoice-modal-box {
  background-color: #FFFFFF;
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-modal);
  overflow: hidden;
}

.invoice-modal-header {
  padding: 1.25rem 1.5rem;
  background-color: var(--bg-cream);
  border-bottom: 1px solid var(--border-tan);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.invoice-modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  font-size: 0.9rem;
}

.invoice-paper {
  background-color: #FFFDF8;
  border: 1px solid var(--border-tan);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.invoice-paper-header {
  text-align: center;
  border-bottom: 1.5px dashed var(--border-tan);
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
}

.invoice-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  font-size: 0.825rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed var(--border-tan);
}

.invoice-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  border-top: 2px solid var(--text-charcoal);
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 0.75rem;
}

.invoice-modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-tan);
  background-color: var(--bg-cream);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* Responsive Breakpoints for Customer Panel */
@media (max-width: 900px) {
  .customer-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .customer-vouchers-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .customer-header-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem;
  }
  .customer-stats-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .live-stepper {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .live-stepper::before, .live-stepper-progress {
    display: none;
  }
  .stepper-node {
    flex: 1 1 45%;
    margin-bottom: 0.5rem;
  }
  .live-courier-box {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* ==========================================================================
   NAVBAR CIRCULAR PROFILE AVATAR & ENHANCED MOBILE DRAWER
   ========================================================================== */
.nav-profile-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-terracotta) 0%, #1E293B 100%);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 2px solid #FFFFFF;
  box-shadow: 0 2px 8px rgba(51, 65, 85, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  flex-shrink: 0;
  cursor: pointer;
}

.nav-profile-circle:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(51, 65, 85, 0.5);
}

.nav-admin-profile {
  background: #1E293B;
}

.btn-nav-login {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-tan);
  background-color: #FFFDF8;
  color: var(--text-charcoal);
  font-size: 0.825rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
  min-height: 38px;
}

.btn-nav-login:hover {
  border-color: var(--primary-terracotta);
  color: var(--primary-terracotta);
  background-color: var(--primary-terracotta-soft);
}

/* Enhanced Mobile Drawer Styles */
.drawer-user-profile-card {
  background: linear-gradient(135deg, var(--bg-cream) 0%, #F5EBE1 100%);
  border: 1px solid var(--border-tan);
  border-radius: var(--radius-lg);
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.drawer-user-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: var(--primary-terracotta);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #FFFFFF;
  box-shadow: var(--shadow-subtle);
  flex-shrink: 0;
}

.drawer-user-details {
  flex: 1;
  min-width: 0;
}

.drawer-user-name {
  display: block;
  font-size: 0.95rem;
  color: var(--text-charcoal);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.15rem;
}

.drawer-user-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.725rem;
  font-weight: 700;
  color: #334155;
  background-color: #F1F5F9;
  border: 1px solid #CBD5E1;
  padding: 0.1rem 0.45rem;
  border-radius: 9999px;
  margin-bottom: 0.2rem;
}

.drawer-user-phone {
  display: block;
  font-size: 0.775rem;
  color: var(--text-muted);
}

.drawer-section-heading {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--text-muted);
  padding: 0.5rem 0.5rem 0.25rem;
  border-top: 1px solid var(--border-tan);
  margin-top: 0.75rem;
}

.drawer-section-heading:first-of-type {
  border-top: none;
  margin-top: 0;
}

.drawer-badge-pill {
  float: right;
  font-size: 0.725rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  background-color: var(--accent-green-soft);
  color: var(--accent-green);
}

.drawer-badge-pill.warning {
  background-color: #F1F5F9;
  color: #334155;
  border: 1px solid #CBD5E1;
}

.drawer-logout-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid #FCA5A5;
  background-color: #FEF2F2;
  color: #991B1B;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.75rem;
  transition: all 0.15s ease;
}

.drawer-logout-btn:hover {
  background-color: #FEE2E2;
}

/* ==========================================================================
   RELATED PRODUCTS SLIDER (HORIZONTAL CAROUSEL & COMPACT CARDS)
   ========================================================================== */
.related-slider-container {
  position: relative;
  width: 100%;
  margin-top: 1.25rem;
}

.related-slider-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0.5rem 0.25rem 1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border-tan) transparent;
}

.related-slider-track::-webkit-scrollbar {
  height: 6px;
}

.related-slider-track::-webkit-scrollbar-track {
  background: var(--bg-cream);
  border-radius: 9999px;
}

.related-slider-track::-webkit-scrollbar-thumb {
  background: var(--border-tan);
  border-radius: 9999px;
}

.related-slider-track::-webkit-scrollbar-thumb:hover {
  background: var(--primary-terracotta);
}

/* Compact Card Styling */
.product-card-compact {
  flex: 0 0 215px !important;
  width: 215px !important;
  min-width: 215px !important;
  max-width: 215px !important;
  scroll-snap-align: start;
  padding: 0.85rem !important;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-tan);
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-subtle);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.product-card-compact:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.product-card-compact .product-image-wrap {
  height: 140px !important;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  background-color: var(--bg-cream);
}

.product-card-compact .product-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 0;
}

.product-card-compact .product-card-body {
  padding: 0.65rem 0.15rem 0.25rem !important;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card-compact .product-category-text {
  font-size: 0.725rem !important;
  color: var(--accent-green);
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.product-card-compact .product-name {
  font-size: 0.875rem !important;
  line-height: 1.3 !important;
  margin-bottom: 0.35rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.3em;
}

.product-card-compact .product-price-row {
  margin-top: auto;
  margin-bottom: 0.65rem;
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.product-card-compact .product-price {
  font-size: 0.95rem !important;
  font-weight: 700;
  color: var(--primary-terracotta);
}

.product-card-compact .product-unit-small {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.product-card-compact .btn-sm {
  padding: 0.4rem 0.65rem !important;
  font-size: 0.8rem !important;
  min-height: 34px !important;
}

@media (max-width: 640px) {
  .product-card-compact {
    flex: 0 0 175px !important;
    width: 175px !important;
    min-width: 175px !important;
    max-width: 175px !important;
    padding: 0.65rem !important;
  }
  .product-card-compact .product-image-wrap {
    height: 120px !important;
  }
  .product-card-compact .product-name {
    font-size: 0.825rem !important;
  }
  .product-card-compact .product-price {
    font-size: 0.9rem !important;
  }
}

/* Mobile Drawer Content Scroll & Dynamic Body */
.mobile-drawer-content {
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

.drawer-dynamic-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-bottom: 2rem;
}

.mobile-drawer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-drawer-nav .mobile-drawer-link {
  font-size: 0.925rem;
  font-weight: 600;
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-charcoal);
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.mobile-drawer-nav .mobile-drawer-link:hover,
.mobile-drawer-nav .mobile-drawer-link.active {
  background-color: var(--primary-terracotta-soft);
  color: var(--primary-terracotta);
}


/* ==========================================================================
   ADMIN LOGOUT SLIDING NOTIFICATION (3 SECONDS SLIDER)
   ========================================================================== */
.admin-logout-slider {
  position: fixed;
  top: 1.25rem;
  left: 50%;
  transform: translate(-50%, -150%);
  z-index: 100000;
  width: 90%;
  max-width: 520px;
  background: linear-gradient(135deg, #1C1917 0%, #292524 100%);
  color: #FFFFFF;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
  padding: 1rem 1.25rem;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  opacity: 0;
  pointer-events: auto;
  overflow: hidden;
}

.admin-logout-slider.visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

.admin-logout-slider-inner {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  position: relative;
}

.admin-logout-slider-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #DC2626 0%, #991B1B 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.admin-logout-slider-content {
  flex: 1;
  min-width: 0;
}

.admin-logout-slider-title {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 0.15rem;
}

.admin-logout-slider-desc {
  display: block;
  font-size: 0.775rem;
  color: #D6D3D1;
  line-height: 1.35;
}

.admin-logout-slider-countdown {
  font-size: 0.9rem;
  font-weight: 800;
  color: #F87171;
  background-color: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  flex-shrink: 0;
}

.admin-logout-slider-bar {
  position: absolute;
  bottom: -1rem;
  left: -1.25rem;
  right: -1.25rem;
  height: 4px;
  background: linear-gradient(90deg, #475569 0%, #64748B 100%);
  animation: adminLogoutProgress 3s linear forwards;
}

@keyframes adminLogoutProgress {
  0% { width: 100%; }
  100% { width: 0%; }
}

/* Disabled states in store view */
.admin-disabled-cart {
  opacity: 0.55 !important;
  cursor: not-allowed !important;
  pointer-events: auto !important;
}

.btn-admin-disabled {
  opacity: 0.55 !important;
  cursor: not-allowed !important;
  background-color: #E7E5E4 !important;
  color: #78716C !important;
  border-color: #D6D3D1 !important;
  pointer-events: auto !important;
}

.checkout-admin-warning {
  background-color: #FEF3C7;
  border: 1.5px solid #F59E0B;
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.checkout-admin-warning-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #FDE68A;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ==========================================================================
   ADMIN SHIPPING, WAREHOUSE & EVERPRO STYLES
   ========================================================================== */
.admin-tabs-nav {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid var(--border-tan);
  margin-bottom: 1.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.admin-tab-btn {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  border: 1px solid transparent;
  border-bottom: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.admin-tab-btn:hover {
  color: var(--primary-terracotta);
  background-color: var(--primary-terracotta-soft);
}

.admin-tab-btn.active {
  color: var(--primary-terracotta);
  background-color: #FFFFFF;
  border-color: var(--border-tan);
  border-bottom: 2px solid #FFFFFF;
  margin-bottom: -2px;
  font-weight: 700;
}

.warehouse-card {
  background: #FFFFFF;
  border: 1px solid var(--border-tan);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.warehouse-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.warehouse-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.warehouse-badge-primary {
  font-size: 0.7rem;
  font-weight: 700;
  background-color: var(--accent-green-soft);
  color: var(--accent-green);
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  letter-spacing: 0.03em;
}

.courier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.25rem;
}

.courier-card {
  background: #FFFFFF;
  border: 1.5px solid var(--border-tan);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  transition: all 0.15s ease;
}

.courier-card.active-courier {
  border-color: var(--accent-green);
  background: #FAFDFB;
}

.stock-matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.stock-matrix-table th {
  background-color: var(--bg-cream);
  color: var(--text-charcoal);
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1.5px solid var(--border-tan);
  font-weight: 700;
}

.stock-matrix-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-tan);
  vertical-align: middle;
}

.stock-matrix-input {
  width: 80px;
  padding: 0.35rem 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-align: center;
  border: 1px solid var(--border-tan);
  border-radius: var(--radius-sm);
}

.everpro-box {
  background: linear-gradient(135deg, #FFFDF8 0%, #FBF6EE 100%);
  border: 1.5px solid #F59E0B;
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}


/* ==========================================================================
   MOBILE & RESPONSIVE OPTIMIZATIONS FOR PENGIRIMAN & GUDANG
   ========================================================================== */

/* Page Header */
.admin-page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.admin-page-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Tab 1: Multi-Warehouse */
.warehouse-auto-routing-banner {
  background-color: var(--bg-cream);
  border: 1px solid var(--border-tan);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.warehouse-auto-routing-badge {
  font-size: 0.8rem;
  font-weight: 700;
  background-color: var(--accent-green-soft);
  color: var(--accent-green);
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  flex-shrink: 0;
}

.warehouses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

/* Tab 2: Stock Matrix */
.stock-matrix-card {
  background-color: #FFFFFF;
  border: 1px solid var(--border-tan);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
  margin-bottom: 1.5rem;
}

.stock-matrix-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.mobile-table-scroll-hint {
  display: none;
  align-items: center;
  gap: 0.45rem;
  background-color: #F1F5F9;
  color: #334155;
  border: 1px solid #CBD5E1;
  font-size: 0.775rem;
  font-weight: 600;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
}

.stock-matrix-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-tan);
}

.stock-matrix-table {
  min-width: 620px;
}

/* Tab 4: Everpro Shipping */
.everpro-header-wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
}

.everpro-two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.everpro-env-radios {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.everpro-env-radio-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  cursor: pointer;
}

/* Responsive Breakpoints for Shipping & Warehouse */
@media (max-width: 860px) {
  .everpro-two-col-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

@media (max-width: 768px) {
  .mobile-table-scroll-hint {
    display: flex;
  }
}

@media (max-width: 640px) {
  /* Header adjustments */
  .admin-page-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.875rem;
    margin-bottom: 1.25rem;
  }

  .admin-page-header .section-title {
    font-size: 1.4rem;
    line-height: 1.3;
    margin-top: 0.35rem;
    margin-bottom: 0.35rem;
  }

  .admin-page-header .section-desc {
    font-size: 0.825rem;
    line-height: 1.45;
  }

  .admin-page-actions {
    width: 100%;
  }

  .admin-page-actions button {
    width: 100%;
    justify-content: center;
    padding: 0.65rem 1rem;
    font-size: 0.85rem;
  }

  /* Horizontal Pill Tabs on Mobile */
  .admin-tabs-nav {
    gap: 0.35rem;
    padding: 0.25rem 0.15rem 0.5rem;
    margin-bottom: 1.25rem;
    border-bottom: none;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .admin-tabs-nav::-webkit-scrollbar {
    display: none;
  }

  .admin-tab-btn {
    font-size: 0.775rem;
    padding: 0.5rem 0.85rem;
    border-radius: 9999px;
    border: 1.5px solid var(--border-tan);
    background-color: var(--card-white);
    color: var(--text-muted);
    flex-shrink: 0;
  }

  .admin-tab-btn:hover {
    background-color: var(--bg-cream);
    color: var(--text-charcoal);
  }

  .admin-tab-btn.active {
    background-color: var(--primary-terracotta);
    color: #FFFFFF;
    border-color: var(--primary-terracotta);
    font-weight: 700;
    margin-bottom: 0;
  }

  .admin-tab-btn.active svg {
    stroke: #FFFFFF;
  }

  /* Warehouse Card & Grid */
  .warehouse-auto-routing-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.875rem 1rem;
    gap: 0.5rem;
  }

  .warehouses-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .warehouse-card {
    padding: 1rem;
  }

  .warehouse-header h3 {
    font-size: 1rem;
  }

  /* Stock Matrix Mobile */
  .stock-matrix-card {
    padding: 1rem 0.875rem;
  }

  .stock-matrix-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  #btn-save-all-matrix {
    width: 100%;
    justify-content: center;
    padding: 0.65rem 1rem;
  }

  .stock-matrix-input {
    width: 65px;
    padding: 0.4rem 0.3rem;
    font-size: 0.9rem;
  }

  /* Courier Grid Mobile */
  .courier-grid {
    grid-template-columns: 1fr;
    gap: 0.875rem;
  }

  .courier-card {
    padding: 1rem;
  }

  .courier-card h4 {
    font-size: 1rem;
  }

  /* Everpro Mobile */
  .everpro-box {
    padding: 1rem;
  }

  .everpro-header-wrap {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  #btn-test-everpro-ping {
    width: 100%;
    justify-content: center;
    padding: 0.65rem 1rem;
  }

  .everpro-env-radios {
    flex-direction: column;
    gap: 0.5rem;
  }

  /* Admin Modals on Mobile */
  .admin-modal-overlay {
    padding: 0.75rem;
  }

  .admin-modal-box {
    width: 100% !important;
    max-height: 92vh !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .admin-modal-header {
    padding: 0.95rem 1.15rem;
  }

  .admin-modal-body {
    padding: 1.15rem;
  }

  .admin-form-grid-2 {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }

  .admin-modal-footer {
    padding: 0.95rem 1.15rem;
    flex-direction: column-reverse;
    gap: 0.5rem;
  }

  .admin-modal-footer button {
    width: 100%;
    min-height: 44px;
    justify-content: center;
  }
}


/* ==========================================================================
   EVERPRO CREDENTIALS EYE TOGGLE & COURIERS STYLES
   ========================================================================== */

/* Credential Input with Eye Toggle & Copy */
.input-with-toggle-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-toggle-wrap .form-input {
  width: 100%;
  padding-right: 76px;
}

.credential-action-btns {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 3px;
}

.btn-toggle-eye,
.btn-copy-cred {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.btn-toggle-eye:hover,
.btn-copy-cred:hover {
  color: var(--primary-terracotta);
  background-color: var(--bg-cream);
}

.btn-toggle-eye svg,
.btn-copy-cred svg {
  display: block;
}

/* Couriers Filter Pills in Admin */
.courier-filter-pills {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  -webkit-overflow-scrolling: touch;
}

.courier-filter-btn {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  border: 1px solid var(--border-tan);
  background-color: #FFFFFF;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.courier-filter-btn:hover {
  background-color: var(--bg-cream);
  color: var(--text-charcoal);
}

.courier-filter-btn.active {
  background-color: var(--primary-terracotta);
  color: #FFFFFF;
  border-color: var(--primary-terracotta);
}

/* Customer Checkout Courier Selection */
.checkout-couriers-grid {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.5rem;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 4px;
}

.checkout-courier-card {
  display: block;
  border: 1.5px solid var(--border-tan);
  border-radius: var(--radius-lg);
  padding: 0.85rem 1rem;
  background-color: #FFFFFF;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}

.checkout-courier-card:hover {
  border-color: var(--primary-terracotta);
  background-color: #FFFDF8;
}

.checkout-courier-card.selected {
  border-color: var(--primary-terracotta);
  background-color: #FFF9F3;
  box-shadow: 0 0 0 1px var(--primary-terracotta);
}

.checkout-courier-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.courier-radio-circle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border-tan);
  display: inline-block;
  flex-shrink: 0;
  position: relative;
  transition: all 0.15s ease;
}

.checkout-courier-card.selected .courier-radio-circle {
  border-color: var(--primary-terracotta);
}

.checkout-courier-card.selected .courier-radio-circle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary-terracotta);
}

.checkout-courier-price {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary-terracotta);
  white-space: nowrap;
}

.checkout-courier-meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.775rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  padding-left: 1.6rem;
  flex-wrap: wrap;
}

.checkout-courier-badge {
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--bg-cream);
  color: var(--text-charcoal);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  border: 1px solid var(--border-tan);
}

/* ==========================================================================
   REGISTER GOOGLE MAPS AUTOCOMPLETE DROPDOWN & PINPOINT PICKER
   ========================================================================== */
.auth-card--register {
  max-width: 590px;
}

.gmaps-search-wrap {
  position: relative;
}

.gmaps-search-input-box {
  position: relative;
  display: flex;
  align-items: center;
}

.gmaps-search-icon {
  position: absolute;
  left: 0.85rem;
  color: #475569;
  pointer-events: none;
  display: flex;
  align-items: center;
}

.gmaps-search-input-box .form-input {
  padding-left: 2.5rem;
  padding-right: 2.75rem;
  border-color: #64748B;
  min-height: 46px;
}

.gmaps-search-input-box .form-input:focus {
  border-color: #334155;
  box-shadow: 0 0 0 3px rgba(51, 65, 85, 0.2);
}

.gmaps-clear-btn {
  position: absolute;
  right: 0.35rem;
  width: 38px;
  height: 38px;
  border: none;
  background: transparent;
  color: #475569;
  border-radius: var(--radius-sm);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.gmaps-clear-btn:hover {
  background-color: #F1F5F9;
  color: #0F172A;
}

.gmaps-autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 40;
  background-color: #FFFFFF;
  border: 1.5px solid #475569;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 28px -6px rgba(15, 23, 42, 0.16);
  max-height: 280px;
  overflow-y: auto;
  display: none;
}

.gmaps-autocomplete-dropdown.is-open {
  display: block;
}

.gmaps-suggestion-item {
  width: 100%;
  min-height: 44px;
  padding: 0.65rem 0.85rem;
  background-color: #FFFFFF;
  border: none;
  border-bottom: 1px solid #E2E8F0;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  transition: background-color 0.12s ease;
}

.gmaps-suggestion-item:last-of-type {
  border-bottom: none;
}

.gmaps-suggestion-item:hover,
.gmaps-suggestion-item.is-active {
  background-color: #F1F5F9;
}

.gmaps-suggestion-item:focus-visible {
  outline: 2px solid #334155;
  outline-offset: -2px;
}

.gmaps-suggestion-pin {
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: #B85520;
}

.gmaps-suggestion-text {
  flex: 1;
  min-width: 0;
}

.gmaps-suggestion-main {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #0F172A;
  line-height: 1.35;
}

.gmaps-suggestion-sub {
  display: block;
  font-size: 0.78rem;
  color: #475569;
  line-height: 1.35;
  margin-top: 0.1rem;
}

.gmaps-dropdown-state {
  padding: 0.85rem 1rem;
  font-size: 0.84rem;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  line-height: 1.4;
}

.gmaps-dropdown-state.is-error {
  color: #991B1B;
  background-color: #FEF2F2;
}

.gmaps-dropdown-attribution {
  padding: 0.4rem 0.85rem;
  background-color: #F8FAFC;
  border-top: 1px solid #E2E8F0;
  font-size: 0.7rem;
  color: #475569;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gmaps-pinpoint-box {
  margin-top: 0.75rem;
  border: 1.5px solid #64748B;
  border-radius: var(--radius-md);
  background-color: #FFFFFF;
  padding: 0.85rem;
}

.gmaps-pinpoint-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.gmaps-pinpoint-title {
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 700;
  color: #0F172A;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.gmaps-pinpoint-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.gmaps-gps-btn {
  min-height: 44px;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid #475569;
  background-color: #FFFFFF;
  color: #0F172A;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: background-color 0.15s ease;
}

.gmaps-gps-btn:hover {
  background-color: #F1F5F9;
}

.gmaps-ext-link {
  min-height: 44px;
  padding: 0.45rem 0.55rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #1D4ED8;
  text-decoration: underline;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.gmaps-map-canvas-wrap {
  width: 100%;
  height: 250px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #E2E8F0;
  position: relative;
}

.gmaps-pinpoint-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.gmaps-quick-areas {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.gmaps-quick-area-btn {
  min-height: 36px;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-sm);
  border: 1px solid #64748B;
  background-color: #FFFFFF;
  color: #0F172A;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.gmaps-quick-area-btn:hover {
  background-color: #F1F5F9;
}

.gmaps-coords-pill {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.74rem;
  color: #334155;
  background-color: #F1F5F9;
  border: 1px solid #CBD5E1;
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
}

.gmaps-sync-status {
  margin-top: 0.55rem;
  padding: 0.5rem 0.7rem;
  border-radius: var(--radius-sm);
  background-color: #F8FAFC;
  border: 1px solid #CBD5E1;
  font-size: 0.78rem;
  color: #334155;
  line-height: 1.4;
}

.gmaps-sync-status.is-synced {
  background-color: #DCFCE7;
  border-color: #86EFAC;
  color: #166534;
}

.gmaps-sync-status.is-error {
  background-color: #FEE2E2;
  border-color: #FCA5A5;
  color: #991B1B;
}

@media (max-width: 640px) {
  .auth-wrapper {
    padding: 1.75rem 0 2.5rem;
  }
  .auth-card.auth-card--register {
    padding: 1.5rem 1.15rem;
  }
  .gmaps-map-canvas-wrap {
    height: 220px;
  }
  .gmaps-quick-area-btn {
    min-height: 44px;
    padding: 0.4rem 0.75rem;
  }
}
