/* ==========================================================================
   eXAyam Potong - Stylesheet
   Terinspirasi oleh gaya & UX eXse7en (Modern, Clean, Responsive E-Commerce)
   Simpel, Cepat, Dilengkapi Halaman Admin, Google Sheets & Drive Upload
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Brand Colors - Deep Navy & Fresh Poultry Amber/Crimson */
  --color-primary: #102a43;
  --color-primary-dark: #0b1a2b;
  --color-primary-light: #243b53;
  --color-primary-subtle: #f0f4f8;
  
  --color-accent-amber: #fbbf24;
  --color-accent-amber-hover: #f59e0b;
  --color-accent-blue: #0284c7;
  --color-accent-blue-hover: #0369a1;
  --color-accent-red: #e11d48;
  --color-accent-green: #10b981;
  --color-accent-green-dark: #047857;
  
  /* Text & Surfaces */
  --text-main: #0a0a1e;
  --text-muted: #627d98;
  --text-light: #829ab1;
  --bg-page: #f7f7fb;
  --bg-surface: #ffffff;
  --border-color: rgba(16, 42, 67, 0.12);
  --border-focus: #fbbf24;
  
  /* Shadows & Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 3px rgba(16, 42, 67, 0.08);
  --shadow-md: 0 4px 12px rgba(16, 42, 67, 0.08);
  --shadow-lg: 0 10px 25px -5px rgba(16, 42, 67, 0.12), 0 8px 10px -6px rgba(16, 42, 67, 0.08);
  --shadow-drawer: -6px 0 25px rgba(16, 42, 67, 0.16);
  
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --sidebar-width: 250px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 14px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background: var(--bg-page);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ==========================================================================
   App Shell & Layout
   ========================================================================== */
.app-shell {
  display: flex;
  min-height: 100vh;
  position: relative;
}

/* Sidebar (Desktop) */
.sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  max-height: 100vh;
  position: sticky;
  top: 0;
  background: var(--bg-surface);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  z-index: 40;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), margin-left 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Collapsed Sidebar State (Bisa disembunyikan dan dibuka) */
.sidebar.collapsed {
  width: 72px;
}

.sidebar.collapsed .brand-copy,
.sidebar.collapsed .nav-label,
.sidebar.collapsed .nav-section-title,
.sidebar.collapsed .support-card,
.sidebar.collapsed .admin-switch-btn span {
  display: none;
}

.sidebar.collapsed .nav-btn {
  justify-content: center;
  padding: 10px 0;
}

.sidebar.collapsed .nav-icon {
  font-size: 1.25rem;
}

.sidebar.collapsed .nav-badge {
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 0.6rem;
  padding: 1px 4px;
}

.sidebar-toggle-btn {
  background: #f1f5f9;
  border: 1px solid var(--border-color);
  color: var(--color-primary);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1.05rem;
  flex-shrink: 0;
}

.sidebar-toggle-btn:hover {
  background: #e2e8f0;
  color: var(--color-accent-amber-hover);
}

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 30, 0.5);
  backdrop-filter: blur(2px);
  z-index: 39;
  display: none;
}

.sidebar-backdrop.active {
  display: block;
}

.sidebar-brand {
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-color);
}

.brand-mark {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #e11d48, #ea580c);
  color: #fff;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(225, 29, 72, 0.3);
  flex-shrink: 0;
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.2;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-subtitle {
  font-size: 0.72rem;
  color: var(--color-accent-green-dark);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-nav-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-section-title {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-light);
  letter-spacing: 0.05em;
  padding: 10px 12px 4px;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  color: var(--color-primary-light);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  background: transparent;
  border: none;
  width: 100%;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
}

.nav-btn:hover {
  background: rgba(2, 132, 199, 0.08);
  color: var(--color-accent-blue);
}

.nav-btn.active {
  background: rgba(2, 132, 199, 0.12);
  color: var(--color-accent-blue);
  font-weight: 700;
}

.nav-icon {
  font-size: 1rem;
  width: 22px;
  text-align: center;
  color: #ea580c;
}

.nav-btn.active .nav-icon {
  color: var(--color-accent-blue);
}

.nav-badge {
  margin-left: auto;
  background: #f1f5f9;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.nav-badge.badge-hot {
  background: #fef2f2;
  color: var(--color-accent-red);
}

.nav-badge.badge-cart {
  background: #ef4444;
  color: #fff;
}

.sidebar-footer {
  padding: 14px;
  border-top: 1px solid var(--border-color);
  background: #fafafc;
}

.support-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.support-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.support-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.support-btn-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #25d366;
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: var(--transition);
}

.support-btn-wa:hover {
  background: #1eb956;
}

.admin-switch-btn {
  margin-top: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-primary);
  background: #fff;
  border: 1px solid var(--border-color);
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  width: 100%;
  cursor: pointer;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition);
}

.admin-switch-btn:hover {
  background: #f1f5f9;
  border-color: var(--color-accent-amber);
}

/* ==========================================================================
   Main Content Area
   ========================================================================== */
.main {
  flex: 1;
  min-width: 0;
  max-width: 1680px;
  padding: 14px 22px 40px;
}

/* Announcement Ticker */
.announcement-bar {
  background: linear-gradient(90deg, #102a43, #1e3a5f);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 8px 16px;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.ticker-content {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}

.ticker-tag {
  background: #fbbf24;
  color: #0a0a1e;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.ticker-close {
  background: transparent;
  border: none;
  color: #cbd5e1;
  cursor: pointer;
  font-size: 0.85rem;
}

/* ==========================================================================
   Main Navbar (Top Header Modern & Rapi 1 Baris Sejajar)
   ========================================================================== */
.main-navbar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 10px rgba(16, 42, 67, 0.05);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-brand-group .brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.nav-brand-group .brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-brand-group .brand-copy {
  display: flex;
  flex-direction: column;
}

.nav-brand-group .brand-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.nav-brand-group .brand-subtitle {
  font-size: 0.74rem;
  color: #16a34a;
  font-weight: 600;
  margin-top: 2px;
}

.nav-container .search-box {
  flex: 1;
  max-width: 520px;
  margin: 0 10px;
}

.nav-container .topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-chip.btn-admin-nav {
  background: #f0f9ff;
  border-color: #bae6fd;
  color: #0369a1;
  font-weight: 700;
}

.btn-chip.btn-admin-nav:hover {
  background: #e0f2fe;
}

@media (max-width: 1080px) {
  .nav-container {
    flex-wrap: wrap;
    padding: 10px 16px;
    gap: 12px;
  }
  .nav-container .search-box {
    order: 3;
    max-width: 100%;
    width: 100%;
    margin: 4px 0 0;
  }
}

@media (max-width: 640px) {
  .nav-brand-group .brand-title {
    font-size: 1.05rem;
  }
  .nav-brand-group .brand-subtitle {
    display: none;
  }
  .nav-container .topbar-actions {
    gap: 6px;
  }
  .btn-chip {
    padding: 0 10px;
    height: 38px;
    font-size: 0.78rem;
  }
  .btn-chip span {
    display: none;
  }
  .btn-chip i {
    font-size: 1.1rem;
    margin: 0;
  }
}

/* Topbar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.search-box {
  flex: 1;
  max-width: 580px;
  position: relative;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 0.95rem;
  pointer-events: none;
}

.search-input {
  width: 100%;
  height: 44px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 8px 14px 8px 40px;
  font-size: 0.88rem;
  color: var(--text-main);
  transition: var(--transition);
}

.search-input:focus {
  outline: none;
  border-color: var(--color-accent-amber-hover);
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.25);
}

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

.btn-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 42px;
  padding: 0 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-chip:hover {
  background: #f1f5f9;
}

.btn-chip.btn-cart {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  position: relative;
}

.btn-chip.btn-cart:hover {
  background: var(--color-primary-dark);
}

.btn-chip.btn-wishlist {
  position: relative;
}

.cart-bubble,
.wishlist-bubble {
  background: #ef4444;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  display: grid;
  place-items: center;
  position: absolute;
  top: -6px;
  right: -6px;
  border: 2px solid #fff;
}

.wishlist-bubble {
  background: #e11d48;
}

/* Hero Banner */
.hero-banner {
  background: linear-gradient(135deg, #0b1a2b 0%, #102a43 60%, #1e3a5f 100%);
  border-radius: var(--radius-lg);
  padding: 26px 32px;
  color: #ffffff;
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-content {
  max-width: 620px;
  z-index: 1;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.4);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
}

.hero-title {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.hero-title span {
  color: #fbbf24;
}

.hero-desc {
  font-size: 0.9rem;
  color: #cbd5e1;
  margin-bottom: 18px;
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--color-accent-amber);
  color: #0a0a1e;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--color-accent-amber-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.hero-badges-quick {
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1;
}

.quick-feature-box {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.quick-icon {
  font-size: 1.25rem;
  color: #fbbf24;
}

.quick-text-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
}

.quick-text-sub {
  font-size: 0.7rem;
  color: #94a3b8;
}

/* Highlights Grid */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}

.highlight-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}

.highlight-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: #f0fdf4;
  color: #16a34a;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.highlight-icon-wrap.amber { background: #fffbeb; color: #d97706; }
.highlight-icon-wrap.blue { background: #f0f9ff; color: #0284c7; }
.highlight-icon-wrap.red { background: #fef2f2; color: #e11d48; }

.highlight-info-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-primary);
}

.highlight-info-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Category Filter Bar */
.categories-bar-wrapper {
  margin-bottom: 18px;
  position: relative;
}

.categories-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition);
}

.cat-pill:hover {
  border-color: var(--color-accent-amber);
  background: #fffbeb;
}

.cat-pill.active {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(16, 42, 67, 0.2);
}

.cat-pill.active i {
  color: var(--color-accent-amber);
}

/* Catalog Controls */
.catalog-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.catalog-title-group h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-primary);
}

.catalog-count-note {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.sort-select {
  padding: 7px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}

.product-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(16, 42, 67, 0.24);
  box-shadow: var(--shadow-md);
}

.product-image-wrap {
  width: 100%;
  height: 180px;
  position: relative;
  background: #f1f5f9;
  overflow: hidden;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-image {
  transform: scale(1.04);
}

.product-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 2;
}

.badge {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.badge-hot { background: #ef4444; color: #fff; }
.badge-primary { background: var(--color-accent-blue); color: #fff; }
.badge-success { background: #10b981; color: #fff; }
.badge-warning { background: #f59e0b; color: #fff; }

.btn-wishlist-quick {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  transition: var(--transition);
  z-index: 2;
}

.btn-wishlist-quick:hover { color: #ef4444; background: #ffffff; }
.btn-wishlist-quick.active { color: #ef4444; }

.product-card-body {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.product-category-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
}

.product-rating {
  font-size: 0.72rem;
  font-weight: 700;
  color: #f59e0b;
  display: flex;
  align-items: center;
  gap: 3px;
}

.product-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.35;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
  cursor: pointer;
}

.product-title:hover { color: var(--color-accent-blue); }

.product-unit-tag {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: auto;
  margin-bottom: 12px;
}

.current-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-accent-red);
}

.original-price {
  font-size: 0.78rem;
  color: var(--text-light);
  text-decoration: line-through;
}

.product-card-actions {
  display: flex;
  gap: 8px;
}

.product-card-link {
  box-sizing: border-box;
  color: #0a0a1e;
  text-align: center;
  background: var(--color-accent-amber);
  border-radius: var(--radius-sm);
  width: 100%;
  min-height: 40px;
  padding: 10px 12px;
  font-size: 0.8125rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.product-card-link:hover {
  background: var(--color-accent-amber-hover);
}

.product-card-btn-icon {
  width: 40px;
  min-height: 40px;
  background: #f1f5f9;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--color-primary);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.product-card-btn-icon:hover {
  background: #e2e8f0;
  color: var(--color-accent-blue);
}

/* ==========================================================================
   Views & Tab Contents
   ========================================================================== */
.view-content {
  display: none;
}

.view-content.active {
  display: block;
  animation: pageFadeIn 0.2s ease-out;
}

@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Orders View */
.orders-table-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  text-align: left;
}

.custom-table th {
  background: #f8fafc;
  color: var(--color-primary);
  font-weight: 700;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-color);
}

.custom-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(16, 42, 67, 0.08);
  vertical-align: middle;
}

.status-pill {
  display: inline-block;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
}

.status-diproses { background: #fffbeb; color: #b45309; }
.status-dikirim { background: #eff6ff; color: #1d4ed8; }
.status-selesai { background: #f0fdf4; color: #15803d; }

/* FAQ View */
.faq-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  padding: 14px 18px;
  font-weight: 700;
  color: var(--color-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: #fff;
}

.faq-answer {
  padding: 0 18px 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.contact-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ==========================================================================
   ADMIN SECTION STYLES (Simpel, Password Protected, Spreadsheet & Drive)
   ========================================================================== */
.admin-login-card {
  max-width: 420px;
  margin: 60px auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.admin-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.admin-subtabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 20px;
  overflow-x: auto;
}

.admin-subtab-btn {
  padding: 10px 18px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: var(--transition);
}

.admin-subtab-btn:hover {
  color: var(--color-primary);
}

.admin-subtab-btn.active {
  color: var(--color-accent-blue);
  border-bottom-color: var(--color-accent-blue);
  font-weight: 700;
}

.admin-subview {
  display: none;
}

.admin-subview.active {
  display: block;
  animation: pageFadeIn 0.2s ease;
}

.sync-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
}

.sync-status-badge.connected {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

.sync-status-badge.disconnected {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.file-upload-btn-wrap {
  position: relative;
  overflow: hidden;
  display: inline-block;
}

.file-upload-btn-wrap input[type="file"] {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

/* ==========================================================================
   Modals & Drawers
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 30, 0.6);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: none;
  place-items: center;
  padding: 16px;
}

.modal-backdrop.active {
  display: grid;
}

.modal-paper {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  position: relative;
  animation: pageFadeIn 0.25s ease;
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 10;
}

.modal-header h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-primary);
}

.btn-close-modal {
  background: #f1f5f9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: grid;
  place-items: center;
  color: var(--text-muted);
  cursor: pointer;
}

.btn-close-modal:hover {
  background: #e2e8f0;
  color: var(--color-primary);
}

.modal-body {
  padding: 20px;
}

.modal-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border-color);
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  position: sticky;
  bottom: 0;
}

/* Cart Drawer */
.cart-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 30, 0.5);
  backdrop-filter: blur(2px);
  z-index: 100;
  display: none;
}

.cart-drawer-backdrop.active {
  display: block;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -480px;
  width: 100%;
  max-width: 460px;
  height: 100%;
  height: 100vh;
  height: 100dvh; /* Dynamic viewport height untuk mobile modern */
  background: #ffffff;
  box-shadow: var(--shadow-drawer);
  z-index: 101;
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer.active {
  right: 0;
}

.cart-drawer-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-item {
  display: flex;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(16, 42, 67, 0.08);
}

.cart-item-img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: #f1f5f9;
}

.cart-item-details { flex: 1; }

.cart-item-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.3;
}

.cart-item-cut {
  font-size: 0.72rem;
  color: var(--text-muted);
  background: #f1f5f9;
  display: inline-block;
  padding: 1px 6px;
  border-radius: var(--radius-sm);
  margin: 4px 0;
}

.cart-item-price {
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--color-accent-red);
}

.cart-qty-ctrl {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.qty-btn {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: #f8fafc;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.qty-btn:hover { background: #e2e8f0; }

.qty-val {
  font-size: 0.85rem;
  font-weight: 700;
  min-width: 20px;
  text-align: center;
}

.cart-drawer-footer {
  padding: 14px 18px;
  border-top: 1px solid var(--border-color);
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 -4px 16px rgba(16, 42, 67, 0.08);
  position: relative;
  z-index: 10;
  padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.cart-summary-row.total {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-primary);
  border-top: 1px dashed var(--border-color);
  padding-top: 8px;
}

.cart-summary-row.total span:last-child {
  color: var(--color-accent-red);
}

.invoice-badge-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.72rem;
  text-transform: uppercase;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 1000;
  pointer-events: none;
}

.toast {
  background: var(--color-primary);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 0.84rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
  animation: pageFadeIn 0.2s ease;
  max-width: 380px;
}

.toast.toast-success { border-left: 4px solid #10b981; }
.toast.toast-warning { border-left: 4px solid #f59e0b; }
.toast.toast-error { border-left: 4px solid #ef4444; }

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  z-index: 50;
  height: 60px;
  box-shadow: 0 -2px 10px rgba(16, 42, 67, 0.06);
}

.mobile-nav-items {
  display: flex;
  height: 100%;
}

.mobile-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 600;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}

.mobile-nav-item i { font-size: 1.15rem; }
.mobile-nav-item.active { color: var(--color-accent-blue); }

.mobile-cart-badge {
  position: absolute;
  top: 6px;
  right: calc(50% - 18px);
  background: #ef4444;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  width: 17px;
  height: 17px;
  border-radius: var(--radius-full);
  display: grid;
  place-items: center;
}

/* Responsive */
@media (max-width: 900px) {
  .sidebar { width: 76px; flex-basis: 76px; }
  .sidebar .brand-copy,
  .sidebar .nav-label,
  .sidebar .nav-section-title,
  .sidebar .support-card,
  .sidebar .admin-switch-btn span { display: none; }
  .sidebar .nav-btn { justify-content: center; padding: 10px 0; }
  .sidebar .nav-icon { font-size: 1.25rem; }
  .sidebar .nav-badge { position: absolute; top: 6px; right: 8px; font-size: 0.6rem; padding: 1px 4px; }
  .highlights-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  body { padding-bottom: 64px; }
  .sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 260px;
    height: 100vh;
    z-index: 99;
    box-shadow: var(--shadow-drawer);
    display: flex;
  }
  .sidebar.mobile-open {
    left: 0;
  }
  .mobile-bottom-nav { display: block; }
  .main { padding: 12px 14px 28px; }
  .hero-banner { flex-direction: column; align-items: flex-start; padding: 20px 18px; gap: 16px; }
  .hero-title { font-size: 1.4rem; }
  .hero-badges-quick { width: 100%; }
  .topbar { flex-direction: column; align-items: stretch; gap: 10px; }
  .search-box { max-width: 100%; }
  .topbar-actions { justify-content: space-between; }
  .highlights-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-image-wrap { height: 135px; }
  .product-card-body { padding: 8px 10px; }
  .product-title { font-size: 0.8rem; min-height: 2.5em; }
  .current-price { font-size: 0.95rem; }
  .product-card-link { font-size: 0.74rem; padding: 8px 6px; min-height: 36px; }
  .product-card-btn-icon { width: 36px; min-height: 36px; }
  .admin-header-bar { flex-direction: column; align-items: flex-start; gap: 10px; }
}
