/* ==========================================================================
   ALAT KOPI MALANG - MODERN E-COMMERCE DESIGN SYSTEM
   Mobile-First, High-Performance, Dark & Light Mode
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Color Tokens - Light Mode (Default) */
  --bg-primary: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-secondary: #f1f5f9;
  --bg-tertiary: #e2e8f0;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-inverse: #ffffff;

  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-light: #eef2ff;
  --primary-glow: rgba(79, 70, 229, 0.25);

  --accent: #06b6d4;
  --accent-light: #ecfeff;

  --success: #10b981;
  --success-light: #ecfdf5;
  --warning: #f59e0b;
  --warning-light: #fffbeb;
  --danger: #ef4444;
  --danger-light: #fef2f2;

  --border-subtle: #e2e8f0;
  --border-focus: #6366f1;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 8px -2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 12px 24px -6px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 20px 32px -8px rgba(15, 23, 42, 0.12), 0 8px 16px -4px rgba(15, 23, 42, 0.04);
  --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.08);

  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.4);

  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', var(--font-body);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

  --bottom-nav-height: 64px;
}

/* Dark Theme Overrides */
[data-theme="dark"] {
  --bg-primary: #090d16;
  --bg-surface: #111827;
  --bg-surface-elevated: #1e293b;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  --text-inverse: #090d16;

  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-light: rgba(99, 102, 241, 0.15);
  --primary-glow: rgba(99, 102, 241, 0.4);

  --accent: #22d3ee;
  --accent-light: rgba(34, 211, 238, 0.12);

  --border-subtle: #1e293b;
  --border-focus: #818cf8;

  --shadow-sm: 0 2px 8px -2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 12px 24px -6px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 32px -8px rgba(0, 0, 0, 0.6);
  --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.5);

  --glass-bg: rgba(17, 24, 39, 0.82);
  --glass-border: rgba(255, 255, 255, 0.08);
}

/* Base Reset & Typography */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  overflow-x: hidden;
  padding-bottom: var(--bottom-nav-height);
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

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

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
  user-select: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 640px) {
  .container {
    padding: 0 24px;
  }
}

/* Top Announcement Ticker */
.top-ticker {
  background: linear-gradient(90deg, #4f46e5, #7c3aed, #06b6d4);
  color: #ffffff;
  padding: 8px 16px;
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.top-ticker span.highlight {
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
}

/* Header & Navigation Bar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-normal);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
  gap: 16px;
}

/* Brand Logo & Header Left Group */
.header-left-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand,
.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-badge {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

[data-theme="dark"] .brand-badge {
  background: #0f172a;
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.12), 0 2px 8px rgba(0, 0, 0, 0.5);
}

.brand-badge .store-logo-img,
.store-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 50%;
  transition: transform var(--transition-fast), filter 0.3s ease;
}

.store-logo-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  border: none;
  background: transparent;
  image-rendering: auto;
  image-rendering: -webkit-optimize-contrast;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}

.brand-logo:hover .store-logo-circle,
.brand:hover .store-logo-circle {
  transform: scale(1.06) translateZ(0);
}

/* Light Theme: Hitam arang halus elegan di atas header putih */
[data-theme="light"] .store-logo-circle,
[data-theme="light"] .store-logo-img {
  filter: none;
}

/* Dark Theme: Garis putih bersih kontras tinggi di atas header gelap */
[data-theme="dark"] .store-logo-circle,
[data-theme="dark"] .store-logo-img {
  filter: brightness(0) invert(1);
}

[data-theme="dark"] .brand-logo:hover .store-logo-circle,
[data-theme="dark"] .brand:hover .store-logo-circle {
  filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(255, 255, 255, 0.45));
}

@media (max-width: 768px) {
  .store-logo-circle {
    width: 38px;
    height: 38px;
  }
}

.store-logo-horizontal {
  height: 38px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  display: block;
  transition: transform var(--transition-fast), filter var(--transition-fast);
}

.brand-logo:hover .store-logo-horizontal,
.brand:hover .store-logo-horizontal {
  transform: scale(1.04);
}

/* Light Theme: background transparan menyatu bersih dengan header putih */
[data-theme="light"] .store-logo-horizontal {
  filter: none;
}

/* Dark Theme: siluet putih bersih kontras tinggi di atas header gelap */
[data-theme="dark"] .store-logo-horizontal {
  filter: brightness(0) invert(1);
}

[data-theme="dark"] .brand-logo:hover .store-logo-horizontal,
[data-theme="dark"] .brand:hover .store-logo-horizontal {
  filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(255, 255, 255, 0.4));
}

@media (max-width: 768px) {
  .store-logo-horizontal {
    height: 32px;
    max-width: 125px;
  }
}

.brand-logo:hover .brand-badge,
.brand:hover .brand-badge {
  transform: scale(1.08);
  border-color: var(--primary);
  box-shadow: 0 4px 14px var(--primary-glow);
}

[data-theme="dark"] .brand-logo:hover .brand-badge,
[data-theme="dark"] .brand:hover .brand-badge {
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.22);
}

.brand-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.brand span.accent {
  color: var(--primary);
}

/* Header Search */
.header-search {
  flex: 1;
  max-width: 500px;
  position: relative;
  display: block;
  min-width: 0;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.search-input-wrapper input {
  width: 100%;
  height: 42px;
  padding: 0 42px 0 42px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  transition: all var(--transition-fast);
}

.search-input-wrapper input:focus {
  background: var(--bg-surface);
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.search-icon-left {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
}

.search-clear-btn {
  position: absolute;
  right: 12px;
  color: var(--text-muted);
  display: none;
  padding: 4px;
  border-radius: 50%;
}

.search-clear-btn:hover {
  color: var(--text-primary);
}

/* Header Action Buttons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  position: relative;
  transition: all var(--transition-fast);
}

.btn-icon:hover {
  color: var(--primary);
  background: transparent;
  transform: translateY(-2px);
}

.btn-icon:active {
  transform: scale(0.95);
}

.badge-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: var(--radius-full);
  display: grid;
  place-items: center;
  border: 2px solid var(--bg-surface);
  transition: transform var(--transition-fast);
}

.badge-bounce {
  animation: badgePop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes badgePop {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.4);
  }

  100% {
    transform: scale(1);
  }
}

/* Mode Penjual / Admin Header Button */
.btn-admin-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(99, 102, 241, 0.2);
  transition: all var(--transition-fast);
}

.btn-admin-toggle:hover {
  background: var(--primary);
  color: #ffffff;
}

/* Mobile Search Bar Row (deprecated, search is now placed next to logo) */
.mobile-search-row {
  display: none !important;
}

/* ==========================================================================
   SECONDARY CATEGORY NAVIGATION BAR (Shop By Categories - Reference Design)
   ========================================================================== */
/* ==========================================================================
   CATEGORY DROPDOWN NAVIGATION (Shop By Categories in Header)
   ========================================================================== */
.category-dropdown-wrap {
  position: relative;
  flex-shrink: 0;
}

@media (min-width: 769px) {
  .category-dropdown-wrap {
    padding-bottom: 12px;
    margin-bottom: -12px;
  }
}

.category-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: auto;
  height: 40px;
  padding: 0 6px;
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.category-dropdown-btn .btn-cat-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.category-dropdown-btn .dropdown-chevron-icon {
  transition: transform 0.25s ease;
  color: var(--text-secondary);
}

.category-dropdown-wrap:hover .category-dropdown-btn,
.category-dropdown-wrap.open .category-dropdown-btn {
  background: transparent;
  border-color: transparent;
  color: var(--primary);
}

.category-dropdown-wrap:hover .dropdown-chevron-icon,
.category-dropdown-wrap.open .dropdown-chevron-icon {
  transform: rotate(180deg);
  color: var(--primary);
}

/* Category Dropdown Menu (Overlays hero/page with floating card) */
.category-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 260px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  z-index: 120;
  display: none;
}

/* Hover Bridge: prevents cursor gap between button and menu */
.category-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
  background: transparent;
}

@media (min-width: 769px) {
  .category-dropdown-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.2s;
  }

  .category-dropdown-wrap:hover .category-dropdown-menu,
  .category-dropdown-wrap.open .category-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
}

/* Category Sheet Header for Mobile View */
.category-sheet-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.category-sheet-header .sheet-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.btn-close-cat-sheet {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: grid;
  place-items: center;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-close-cat-sheet:hover {
  background: var(--border-subtle);
  color: var(--text-primary);
}

/* Dropdown Items */
.cat-drop-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.18s ease;
  cursor: pointer;
  position: relative;
  background: transparent;
}

.cat-drop-item:last-child {
  border-bottom: none;
  border-radius: 0 0 10px 10px;
}

.cat-drop-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cat-drop-left i {
  color: var(--text-secondary);
  transition: color 0.15s ease;
}

.cat-drop-item .arrow-right-icon {
  color: var(--text-muted);
  transition: transform 0.2s ease, color 0.2s ease;
}

.cat-drop-item:hover {
  background: var(--bg-secondary);
  color: var(--primary);
  padding-left: 20px;
}

.cat-drop-item:hover .cat-drop-left i {
  color: var(--primary);
}

.cat-drop-item:hover .arrow-right-icon {
  color: var(--primary);
  transform: translateX(3px);
}

.cat-drop-item.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
}

/* Badges inside dropdown */
.cat-badge-mini {
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: var(--bg-secondary);
  color: var(--text-muted);
  font-weight: 600;
}

.cat-badge-hot {
  font-size: 0.68rem;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.cat-badge-sale {
  font-size: 0.68rem;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  background: rgba(245, 158, 11, 0.14);
  color: #d97706;
  font-weight: 800;
  letter-spacing: 0.5px;
}

/* Flyout Submenu on Desktop (Matches '>' in reference image) */
.cat-submenu-flyout {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  width: 260px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 0 10px 10px 10px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.14), 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 10px 0;
  z-index: 130;
}

/* Hover bridge between item and flyout submenu */
.cat-submenu-flyout::before {
  content: '';
  position: absolute;
  top: -10px;
  bottom: -10px;
  left: -20px;
  width: 20px;
  background: transparent;
}

@media (min-width: 769px) {
  .cat-submenu-flyout {
    display: block;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(6px);
    transition: opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.18s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.18s;
  }

  .cat-drop-item.has-submenu:hover .cat-submenu-flyout {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
  }
}

.submenu-header {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  padding: 4px 16px 8px 16px;
}

.submenu-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  font-size: 0.84rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.18s ease;
}

.submenu-link:hover {
  background: var(--bg-secondary);
  color: var(--primary);
  padding-left: 20px;
}

.submenu-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 6px 0;
}

.submenu-all-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  text-decoration: none;
  transition: all 0.15s ease;
}

.submenu-all-link:hover {
  filter: brightness(0.96);
}

/* Horizontal Links alongside Category Dropdown */
.category-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  padding: 0 8px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.category-nav-links::-webkit-scrollbar {
  display: none;
}

.cat-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  cursor: pointer;
  position: relative;
}

.cat-nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-secondary);
}

.cat-nav-link.active {
  color: var(--primary);
  background: var(--primary-light);
}

.cat-nav-link.text-highlight {
  color: #ea580c;
}

.cat-nav-link.text-highlight:hover {
  background: rgba(234, 88, 12, 0.1);
}

/* Quick Shop Dropdown inside Horizontal Nav */
.dropdown-hover-wrap {
  position: relative;
}

.quick-shop-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 190px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  padding: 6px 0;
  display: none;
  z-index: 110;
}

.dropdown-hover-wrap:hover .quick-shop-dropdown {
  display: block;
}

.quick-shop-dropdown a {
  display: block;
  padding: 8px 16px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.15s ease;
}

.quick-shop-dropdown a:hover {
  color: var(--primary);
  background: var(--bg-secondary);
  padding-left: 20px;
}

/* Right Side Quick Info */
.category-nav-right {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-contact-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.nav-contact-pill:hover {
  border-color: #25d366;
  color: var(--text-primary);
  transform: translateY(-1px);
}

.nav-contact-pill strong {
  color: #25d366;
}

/* Mobile Sheet Backdrop */
.category-mobile-backdrop {
  opacity: 0;
  pointer-events: none;
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 99998;
  transition: opacity 0.28s ease;
}

.category-mobile-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
  .header-inner {
    height: 56px;
    gap: 8px;
    padding: 0 12px;
  }

  .header-left-group {
    gap: 6px;
    flex-shrink: 0;
  }

  .brand-badge {
    width: 36px;
    height: 36px;
    border-radius: 50%;
  }

  /* Hide Shop By Categories button in header on mobile */
  .category-dropdown-btn {
    display: none !important;
  }

  /* Top search bar placed next to store logo on mobile */
  .header-search {
    display: block !important;
    flex: 1 !important;
    min-width: 0 !important;
    max-width: none !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .search-input-wrapper {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    position: relative !important;
  }

  .search-input-wrapper input {
    height: 38px !important;
    padding: 0 32px 0 36px !important;
    font-size: 0.84rem !important;
    border-radius: 9999px !important;
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-subtle) !important;
    color: var(--text-primary) !important;
    width: 100% !important;
    display: block !important;
  }

  .search-icon-left {
    left: 11px;
  }

  .search-icon-left i,
  .search-icon-left svg {
    width: 16px;
    height: 16px;
  }

  .search-clear-btn {
    right: 8px;
  }

  .header-actions {
    gap: 2px;
    flex-shrink: 0;
  }

  .btn-icon {
    width: 36px;
    height: 36px;
  }

  .category-dropdown-menu {
    position: fixed !important;
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: 80vh !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    border-radius: 22px 22px 0 0 !important;
    box-shadow: 0 -12px 48px rgba(0, 0, 0, 0.45) !important;
    background: var(--bg-surface) !important;
    border: 1px solid var(--border-subtle) !important;
    border-bottom: none !important;
    z-index: 99999 !important;
    padding: 0 0 max(28px, env(safe-area-inset-bottom)) 0 !important;
    transform: translateY(100%) !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease !important;
    display: block !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  .category-dropdown-menu.open,
  .category-dropdown-wrap.open .category-dropdown-menu {
    transform: translateY(0) !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  .sheet-drag-handle {
    width: 44px;
    height: 5px;
    border-radius: 9999px;
    background: var(--text-muted);
    opacity: 0.35;
    margin: 8px auto 6px auto;
  }

  .category-sheet-header {
    display: flex !important;
    flex-direction: column !important;
    padding: 10px 18px 12px 18px !important;
    border-bottom: 1px solid var(--border-subtle) !important;
  }

  .cat-drop-item {
    padding: 14px 20px;
    font-size: 0.92rem;
  }

  .cat-submenu-flyout {
    position: static;
    width: 100%;
    border: none;
    box-shadow: none;
    border-radius: 0;
    background: var(--bg-secondary);
    display: none;
  }

  .cat-drop-item.open-sub .cat-submenu-flyout {
    display: block;
  }

  .cat-nav-link {
    padding: 6px 11px;
    font-size: 0.82rem;
  }
}

/* ==========================================================================
   HERO BANNER CAROUSEL
   ========================================================================== */
.hero-section {
  padding: 16px 0 20px 0;
}

.hero-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
  color: #ffffff;
  min-height: 220px;
  display: flex;
  align-items: center;
  padding: 24px;
  box-shadow: var(--shadow-lg);
}

@media (min-width: 640px) {
  .hero-card {
    min-height: 280px;
    padding: 40px;
  }
}

.hero-background-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-glow-1 {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.4) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
}

.hero-glow-2 {
  position: absolute;
  bottom: -40px;
  left: 20%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.35) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(30px);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 520px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  color: #38bdf8;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 2.3rem;
  }
}

.hero-desc {
  font-size: 0.88rem;
  color: #cbd5e1;
  margin-bottom: 20px;
  line-height: 1.4;
}

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

.btn-primary {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px var(--primary-glow);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #4338ca, #4f46e5);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px var(--primary-glow);
}

.btn-primary:active {
  transform: scale(0.97);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background: var(--bg-secondary);
  border-color: var(--primary);
  color: var(--primary);
}

.hero-actions .btn-secondary {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
}

.hero-actions .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   ADD TO CART ACTION BUTTONS (Product Detail & Modals)
   Aesthetic Soft-Tint Primary with Crisp Border and Dynamic Hover
   ========================================================================== */
.btn-add-to-cart,
.btn-add-cart {
  background: var(--primary-light);
  color: var(--primary);
  border: 1.5px solid var(--primary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 2px 8px var(--primary-glow);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-add-to-cart:hover,
.btn-add-cart:hover {
  background: var(--primary);
  color: #ffffff !important;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-add-to-cart:active,
.btn-add-cart:active {
  transform: scale(0.97);
}

.btn-add-to-cart i,
.btn-add-cart i {
  stroke: currentColor;
  flex-shrink: 0;
  transition: stroke var(--transition-fast);
}

[data-theme="dark"] .btn-add-to-cart,
[data-theme="dark"] .btn-add-cart {
  background: rgba(99, 102, 241, 0.16);
  color: #a5b4fc;
  border-color: #6366f1;
}

[data-theme="dark"] .btn-add-to-cart:hover,
[data-theme="dark"] .btn-add-cart:hover {
  background: #6366f1;
  color: #ffffff !important;
  border-color: #6366f1;
}

/* Quick Perks / Value Props */
.perks-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 14px;
}

@media (min-width: 640px) {
  .perks-bar {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }
}

.perk-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
}

.perk-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--primary-light);
  color: var(--primary);
  flex-shrink: 0;
}

.perk-text h4 {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.perk-text p {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ==========================================================================
   CATEGORY PILLS & CONTROLS TOOLBAR
   ========================================================================== */
.catalog-header {
  padding: 24px 0 16px 0;
}

.categories-scroll-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.categories-scroll-wrapper::before,
.categories-scroll-wrapper::after {
  content: '';
  position: absolute;
  top: 2px;
  bottom: 8px;
  width: 38px;
  pointer-events: none;
  z-index: 4;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.categories-scroll-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-body), transparent);
}

.categories-scroll-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-body), transparent);
}

.categories-scroll-wrapper.has-scroll-left::before {
  opacity: 1;
}

.categories-scroll-wrapper.has-scroll-right::after {
  opacity: 1;
}

.cat-scroll-arrow {
  position: absolute;
  top: calc(50% - 3px);
  transform: translateY(-50%);
  z-index: 6;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0;
  pointer-events: none;
}

.cat-scroll-arrow.visible {
  opacity: 1;
  pointer-events: auto;
}

.cat-scroll-arrow:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 18px var(--primary-glow);
}

.cat-scroll-arrow-left {
  left: -12px;
}

.cat-scroll-arrow-right {
  right: -12px;
}

.categories-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 12px 2px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-x pan-y;
  overscroll-behavior-x: contain;
  width: 100%;
}

.categories-scroll::-webkit-scrollbar {
  display: none;
}

.categories-scroll.is-dragging {
  cursor: grabbing !important;
  scroll-behavior: auto !important;
}

.category-pill {
  white-space: nowrap;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
  flex-shrink: 0;
  user-select: none;
  -webkit-user-select: none;
  cursor: pointer;
}

.category-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.category-pill.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px var(--primary-glow);
}

/* Toolbar Controls */
.toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.products-count-text {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.products-count-text strong {
  color: var(--text-primary);
}

.sort-filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.select-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.select-input {
  appearance: none;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 7px 32px 7px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.select-input:focus {
  border-color: var(--primary);
}

.select-arrow {
  position: absolute;
  right: 10px;
  pointer-events: none;
  color: var(--text-muted);
  display: flex;
}

/* ==========================================================================
   PRODUCT GRID (MOBILE-FIRST 2 COLUMNS)
   ========================================================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 12px 0 32px 0;
}

@media (min-width: 640px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
}

/* Catalog Pagination Styles (Matching Reference) */
.pagination-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 32px 0 28px 0;
  width: 100%;
}

.pagination-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.pagination-btn {
  width: 40px;
  height: 40px;
  min-width: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
}

.pagination-btn:hover:not(.disabled):not(.active) {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.pagination-btn.active {
  background: var(--primary) !important;
  color: #ffffff !important;
  border-color: var(--primary) !important;
  cursor: default;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.pagination-prev,
.pagination-next {
  color: #94a3b8;
}

.pagination-prev:hover:not(.disabled),
.pagination-next:hover:not(.disabled) {
  color: var(--primary);
  background: var(--primary-light);
  border-color: var(--primary);
}

.pagination-btn.disabled,
.pagination-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.pagination-ellipsis {
  width: 40px;
  height: 40px;
  min-width: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 1px;
}

@media (max-width: 640px) {
  .pagination-wrapper {
    margin: 22px 0 24px 0;
  }
  .pagination-nav {
    gap: 6px;
  }
  .pagination-btn,
  .pagination-ellipsis {
    width: 36px;
    height: 36px;
    min-width: 36px;
    font-size: 0.88rem;
    border-radius: 8px;
  }
}

/* Product Card */
.product-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  box-shadow: var(--shadow-xs);
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: var(--shadow-md);
}

/* Card Image Area */
.product-card-img-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--bg-secondary);
  overflow: hidden;
  cursor: pointer;
}

.product-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.product-card:hover .product-card-img {
  transform: scale(1.06);
}

/* Card Badges */
.card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, #ef4444, #f43f5e);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.card-badge.trending {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.card-badge.popular {
  background: linear-gradient(135deg, #10b981, #059669);
}

.card-badge.badge-terbaru {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.35);
  font-weight: 800;
  letter-spacing: 0.4px;
}

.card-badge.badge-sold-out {
  background: linear-gradient(135deg, #111827, #334155);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
  font-weight: 800;
  letter-spacing: 0.06em;
  z-index: 4;
}

/* Sold Out Product Card State */
.product-card.is-sold-out,
.flash-product-card.is-sold-out {
  border-color: var(--border-subtle);
}

.product-card.is-sold-out .product-card-img-wrap,
.flash-product-card.is-sold-out .flash-card-img-wrap {
  background: #0f172a;
}

.product-card.is-sold-out .product-card-img,
.flash-product-card.is-sold-out .flash-card-img {
  filter: brightness(0.42) contrast(0.95) grayscale(35%);
  transform: none !important;
}

.sold-out-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
}

.sold-out-overlay-pill {
  background: rgba(15, 23, 42, 0.88);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
}

.product-card.is-sold-out .product-card-body,
.flash-product-card.is-sold-out .flash-card-info {
  opacity: 0.78;
}

/* Wishlist Heart Button */
.btn-wishlist {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  color: #64748b;
  z-index: 3;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  transition: all var(--transition-fast);
}

[data-theme="dark"] .btn-wishlist {
  background: rgba(17, 24, 39, 0.88);
  color: #94a3b8;
}

.btn-wishlist:hover {
  transform: scale(1.15);
  color: #ef4444;
}

.btn-wishlist.active {
  color: #ef4444;
  fill: #ef4444;
  animation: heartBeat 0.35s ease;
}

@keyframes heartBeat {
  0% {
    transform: scale(1);
  }

  40% {
    transform: scale(1.3);
  }

  100% {
    transform: scale(1);
  }
}

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

.product-category-name {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 4px;
}

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

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

/* Rating */
.product-rating-row {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.rating-stars {
  color: #f59e0b;
  display: inline-flex;
}

/* Prices & Bottom Row */
.product-price-row {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 10px;
}

.product-card-bottom-row {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  padding-top: 4px;
}

.product-price-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.price-current {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.price-original {
  font-size: 0.74rem;
  color: var(--text-muted);
  text-decoration: line-through;
  line-height: 1.1;
}

/* Stock status */
.stock-indicator {
  font-size: 0.7rem;
  color: var(--success);
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.product-price-col .stock-indicator {
  margin-bottom: 0;
  margin-top: 3px;
  font-size: 0.65rem;
}

.stock-indicator.low {
  color: var(--danger);
}

/* Cart Icon Button on Product Cards */
.btn-card-cart-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px var(--primary-glow);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.btn-card-cart-icon:hover {
  background: var(--primary-hover);
  transform: translateY(-2px) scale(1.08);
  box-shadow: 0 6px 16px var(--primary-glow);
}

.btn-card-cart-icon:active {
  transform: scale(0.92);
}

/* Select Variant Button ("Pilih") on Product Cards */
.btn-card-select-variant {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 38px;
  padding: 0 14px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px var(--primary-glow);
  transition: all var(--transition-fast);
  flex-shrink: 0;
  white-space: nowrap;
  letter-spacing: 0.2px;
}

.btn-card-select-variant:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px var(--primary-glow);
}

.btn-card-select-variant:active {
  transform: scale(0.94);
}



/* Add to Cart Card Button */
.btn-add-cart {
  width: 100%;
  padding: 8px 12px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.btn-add-cart:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px var(--primary-glow);
}

.btn-add-cart:active {
  transform: scale(0.96);
}

/* Empty State */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-subtle);
}

.empty-state-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px auto;
  border-radius: 50%;
  background: var(--bg-secondary);
  display: grid;
  place-items: center;
  color: var(--text-muted);
}

.empty-state h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.empty-state p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 16px;
}

/* ==========================================================================
   MOBILE BOTTOM NAVIGATION BAR
   ========================================================================== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-nav-height);
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 80;
  padding-bottom: env(safe-area-inset-bottom);
}

@media (min-width: 768px) {
  .bottom-nav {
    display: none;
  }
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 600;
  position: relative;
  padding: 6px 12px;
  transition: all var(--transition-fast);
  flex: 1;
}

.bottom-nav-item.active {
  color: var(--primary);
}

.bottom-nav-icon-wrap {
  position: relative;
  display: flex;
}

/* ==========================================================================
   STICKY MOBILE BOTTOM ACTION BAR (Product Quick Action Bar)
   ========================================================================== */
.sticky-bottom-action-bar {
  display: none;
}

@media (max-width: 767px) {
  .sticky-bottom-action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--glass-bg, rgba(255, 255, 255, 0.95));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border-subtle, rgba(226, 232, 240, 0.8));
    padding: 10px 14px max(12px, env(safe-area-inset-bottom)) 14px;
    display: flex !important;
    align-items: center;
    gap: 10px;
    z-index: 95;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  }

  [data-theme="dark"] .sticky-bottom-action-bar {
    background: rgba(15, 23, 42, 0.92);
    border-top-color: rgba(51, 65, 85, 0.6);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.35);
  }

  .sticky-bottom-action-bar .btn-wa-icon-only {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: var(--radius-md, 10px);
    background: #25d366;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.15s ease;
  }

  .sticky-bottom-action-bar .btn-wa-icon-only:active {
    transform: scale(0.92);
  }

  .sticky-bottom-action-bar .btn-add-to-cart {
    flex: 1;
    height: 44px;
    padding: 0 12px;
    font-size: 0.84rem;
    font-weight: 700;
    font-family: var(--font-heading, 'Outfit', sans-serif);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full, 9999px);
    border: 1.5px solid var(--primary, #4f46e5);
    background: var(--bg-surface, #ffffff);
    color: var(--primary, #4f46e5);
    gap: 6px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  [data-theme="dark"] .sticky-bottom-action-bar .btn-add-to-cart {
    background: rgba(30, 41, 59, 0.8);
    border-color: var(--primary, #6366f1);
    color: #a5b4fc;
  }

  .sticky-bottom-action-bar .btn-add-to-cart:active {
    transform: scale(0.96);
  }

  .sticky-bottom-action-bar .btn-primary {
    flex: 1.2;
    height: 44px;
    padding: 0 14px;
    font-size: 0.88rem;
    font-weight: 700;
    font-family: var(--font-heading, 'Outfit', sans-serif);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full, 9999px);
    border: none;
    background: var(--primary, #4f46e5);
    color: #ffffff;
    gap: 6px;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
    transition: all 0.2s ease;
  }

  .sticky-bottom-action-bar .btn-primary:active {
    transform: scale(0.96);
  }

  .product-page-container {
    margin-bottom: 85px !important;
  }
}

/* ==========================================================================
   MODAL & DRAWER SYSTEM (Cart, Product View, Checkout, Admin)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
  padding: 16px;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* Standard Center Modal */
.modal-box {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  transform: translateY(20px) scale(0.97);
  transition: transform var(--transition-normal);
  overflow: hidden;
}

.modal-overlay.open .modal-box {
  transform: translateY(0) scale(1);
}

.modal-box.large {
  max-width: 800px;
}

/* Drawer (Slide-in Cart & Wishlist) */
.drawer-box {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  max-width: 440px;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition-smooth);
  z-index: 101;
}

.drawer-box.open {
  transform: translateX(0);
}

/* Modal / Drawer Header */
.modal-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-header h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-close-modal {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  background: var(--bg-secondary);
  transition: all var(--transition-fast);
}

.btn-close-modal:hover {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}

/* Modal Body */
.modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

/* Modal Footer */
.modal-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

/* ==========================================================================
   CART DRAWER SPECIFICS
   ========================================================================== */
.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  width: 100%;
  box-sizing: border-box;
}

.cart-item-img-link {
  display: block;
  flex-shrink: 0;
}

.cart-item-img {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: #fff;
  flex-shrink: 0;
  display: block;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.cart-item-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 2px;
}

.cart-item-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-decoration: none;
}

.cart-item-title:hover {
  color: var(--primary);
}

.cart-item-variant {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.cart-item-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

.cart-item-price {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary);
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 2px 4px;
}

.btn-qty {
  width: 26px;
  height: 26px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  transition: all var(--transition-fast);
}

.btn-qty:hover {
  background: var(--primary);
  color: #fff;
}

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

.btn-remove-cart {
  color: var(--text-muted);
  padding: 4px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.btn-remove-cart:hover {
  color: var(--danger);
  background: rgba(239, 68, 68, 0.1);
}

/* Voucher Form */
.voucher-box {
  margin-top: 16px;
  padding: 12px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-subtle);
}

.voucher-input-row {
  display: flex;
  gap: 8px;
}

.voucher-input-row input {
  flex: 1;
  height: 38px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
}

.btn-apply-voucher {
  padding: 0 14px;
  background: var(--text-primary);
  color: var(--bg-surface);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  transition: opacity var(--transition-fast);
}

.btn-apply-voucher:hover {
  opacity: 0.9;
}

.applied-voucher-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--success-light);
  color: var(--success);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-top: 8px;
}

/* Cart Summary */
.cart-summary {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.summary-row.total {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px dashed var(--border-subtle);
}

.summary-row.total .price-highlight {
  color: var(--primary);
  font-family: var(--font-heading);
}

/* ==========================================================================
   CHECKOUT MODAL
   ========================================================================== */
.checkout-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .checkout-form-grid.two-cols {
    grid-template-columns: 1fr 1fr;
    gap: 16px 18px;
    align-items: start;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 4px;
  line-height: 1.3;
  min-height: 22px;
  white-space: nowrap;
}

.form-label .required-star,
.form-label .req {
  color: #ef4444;
  font-weight: 800;
  font-size: 0.9rem;
  margin-left: 2px;
  line-height: 1;
  display: inline-block;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--text-primary);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
  background: var(--bg-surface);
  outline: none;
}

.form-textarea {
  min-height: 70px;
  resize: vertical;
}

/* Payment Methods Selector */
.payment-methods-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.payment-method-card {
  padding: 12px;
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all var(--transition-fast);
}

.payment-method-card:hover {
  border-color: var(--primary);
}

.payment-method-card.active {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}

.payment-method-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg-surface);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}

.payment-method-title {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
}

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

/* Payment Instructions Box */
.payment-detail-box {
  margin-top: 14px;
  padding: 14px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.bank-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
  font-size: 0.84rem;
}

.btn-copy-account {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-copy-account:hover {
  background: var(--primary);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-copy-account:active {
  transform: scale(0.96);
}

/* Bank Logo Icons for Payment Method Cards */
.bank-logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.78rem;
  letter-spacing: -0.5px;
  color: #ffffff !important;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  user-select: none;
}

.bank-logo-icon.bca {
  background: linear-gradient(135deg, #00529c 0%, #003366 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.bank-logo-icon.bri {
  background: linear-gradient(135deg, #00529c 0%, #002855 100%);
  border-bottom: 3px solid #f37021;
}

/* ==========================================================================
   SELESAIKAN PEMBAYARAN CARD (Sesuai Desain Screenshot Pengguna)
   ========================================================================== */
.payment-completion-card {
  background: var(--bg-surface, #ffffff);
  border: 1px solid var(--border-subtle, #e2e8f0);
  border-radius: var(--radius-md, 10px);
  padding: 22px 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.completion-header-title {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text-primary, #1e293b);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.completion-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-subtle, #edf2f7);
  gap: 12px;
}

.completion-row:last-of-type {
  border-bottom: none;
}

.completion-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.completion-label {
  font-size: 0.78rem;
  color: #94a3b8;
  font-weight: 500;
  line-height: 1.2;
}

.completion-value {
  font-size: 0.98rem;
  color: var(--text-primary, #1e293b);
  font-weight: 600;
  line-height: 1.35;
}

.completion-value.amount-highlight {
  font-size: 1.18rem;
  font-weight: 800;
  color: #d97706; /* Oranye hangat sesuai persis screenshot */
}

.completion-bank-selector {
  display: flex;
  align-items: center;
  gap: 6px;
}

.bank-choice-btn {
  padding: 5px 12px;
  border-radius: 6px;
  border: 1.5px solid var(--border-subtle, #cbd5e1);
  background: var(--bg-surface, #ffffff);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 800;
  font-size: 0.78rem;
  color: #00529c;
  transition: all 0.2s ease;
}

.bank-choice-btn:hover {
  border-color: #00529c;
}

.bank-choice-btn.active {
  border-color: #00529c;
  background: #f0f7ff;
  box-shadow: 0 0 0 2px rgba(0, 82, 156, 0.18);
}

[data-theme="dark"] .bank-choice-btn.active {
  background: rgba(0, 82, 156, 0.35);
  border-color: #38bdf8;
  color: #93c5fd;
}

.completion-copy-link {
  background: none;
  border: none;
  color: #617a55; /* Warna hijau zaitun khas screenshot */
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.completion-copy-link:hover {
  background: rgba(97, 122, 85, 0.1);
  text-decoration: underline;
}

.completion-copy-link:active {
  transform: scale(0.95);
}

.completion-notice-box {
  background: var(--bg-secondary, #f8fafc);
  border-radius: 8px;
  padding: 12px 16px;
  margin: 16px 0 18px 0;
  font-size: 0.82rem;
  color: var(--text-secondary, #475569);
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border-subtle, #edf2f7);
  line-height: 1.4;
}

.btn-confirm-payment-main {
  width: 100%;
  background: #617a55; /* Hijau solid sesuai screenshot pengguna */
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 14px 20px;
  font-size: 0.98rem;
  font-weight: 700;
  font-family: var(--font-heading, 'Outfit', sans-serif);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 3px 10px rgba(97, 122, 85, 0.25);
  transition: all 0.2s ease;
}

.btn-confirm-payment-main:hover {
  background: #526847;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(97, 122, 85, 0.35);
}

.btn-confirm-payment-main:active {
  transform: scale(0.98);
}

.completion-divider-or {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 16px 0;
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.completion-divider-or::before,
.completion-divider-or::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-subtle, #e2e8f0);
}

.completion-divider-or::before {
  margin-right: 12px;
}

.completion-divider-or::after {
  margin-left: 12px;
}

/* Dark mode overrides for Selesaikan Pembayaran */
[data-theme="dark"] .payment-completion-card {
  background: #0f172a;
  border-color: #1e293b;
}

[data-theme="dark"] .completion-header-title {
  color: #f8fafc;
}

[data-theme="dark"] .completion-value {
  color: #f1f5f9;
}

[data-theme="dark"] .completion-row {
  border-bottom-color: #1e293b;
}

[data-theme="dark"] .completion-notice-box {
  background: #1e293b;
  border-color: #334155;
  color: #cbd5e1;
}

[data-theme="dark"] .completion-copy-link {
  color: #86efac;
}

/* Payment Gateway Box Component */
.payment-gateway-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.payment-gateway-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--border-subtle);
  flex-wrap: wrap;
  gap: 8px;
}

.gateway-bank-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gateway-bank-badge {
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.82rem;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.gateway-bank-badge.bca {
  background: #00529c;
}

.gateway-bank-badge.bri {
  background: #00529c;
  box-shadow: inset 0 -3px 0 #f37021;
}

.gateway-bank-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

.gateway-bank-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.gateway-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 9999px;
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
}

.gateway-status-pill .status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.gateway-account-card, .gateway-nominal-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.gateway-account-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.gateway-account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.gateway-account-number {
  font-family: 'JetBrains Mono', 'Fira Code', monospace, sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 1px;
}

.gateway-nominal-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
}

.gateway-account-name {
  font-size: 0.76rem;
  color: var(--text-secondary);
  margin-top: 6px;
}

.gateway-tip {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.35;
}

.gateway-accordion {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  padding: 8px 12px;
}

.gateway-accordion-title {
  cursor: pointer;
  user-select: none;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gateway-accordion-content {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.instruction-step {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--text-secondary);
}

.instruction-step .step-num {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 800;
  font-size: 0.68rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

/* WhatsApp Direct Checkout Button */
.btn-whatsapp-checkout {
  background: #25d366;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 20px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  transition: all var(--transition-fast);
}

.btn-whatsapp-checkout:hover {
  background: #20ba59;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

/* ==========================================================================
   PRODUCT E-COMMERCE MARKETPLACES SECTION (Tokopedia, Shopee, TikTok Shop)
   ========================================================================== */
.product-ecommerce-section {
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

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

.ecommerce-notice-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.ecommerce-notice-title i {
  color: var(--primary);
}

.ecommerce-official-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary);
  background: var(--primary-light);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.ecommerce-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.ecommerce-link-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.ecommerce-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ecommerce-store-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  white-space: nowrap;
  transition: color var(--transition-fast);
}

/* Tokopedia */
.ecommerce-link-card.tokopedia:hover {
  border-color: #03AC0E;
  background: rgba(3, 172, 14, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(3, 172, 14, 0.18);
}
.ecommerce-link-card.tokopedia:hover .ecommerce-store-name {
  color: #03AC0E;
}

/* Shopee */
.ecommerce-link-card.shopee:hover {
  border-color: #EE4D2D;
  background: rgba(238, 77, 45, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(238, 77, 45, 0.18);
}
.ecommerce-link-card.shopee:hover .ecommerce-store-name {
  color: #EE4D2D;
}

/* TikTok Shop */
.ecommerce-link-card.tiktok:hover {
  border-color: #fe2c55;
  background: rgba(254, 44, 85, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(254, 44, 85, 0.18);
}
.ecommerce-link-card.tiktok:hover .ecommerce-store-name {
  color: #fe2c55;
}

/* Mobile responsive */
@media (max-width: 540px) {
  .ecommerce-links-grid {
    gap: 6px;
  }
  .ecommerce-link-card {
    padding: 8px 6px;
    gap: 6px;
  }
  .ecommerce-store-name {
    font-size: 0.76rem;
  }
}

/* ==========================================================================
   PRODUCT DETAIL MODAL
   ========================================================================== */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .product-detail-layout {
    grid-template-columns: 1fr 1.1fr;
    gap: 28px;
  }
}

.product-detail-gallery {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-secondary);
  aspect-ratio: 1 / 1;
}

.product-detail-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail-info {
  display: flex;
  flex-direction: column;
}

.detail-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

/* Brand Pill & Official Card on Product Detail */
.product-brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  border: 1px solid rgba(79, 70, 229, 0.25);
  border-radius: var(--radius-full);
}

.product-brand-pill strong {
  font-weight: 800;
}

.product-brand-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.brand-info-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px var(--primary-glow);
  flex-shrink: 0;
}

.brand-subtitle {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  font-weight: 700;
  line-height: 1.2;
}

.brand-title-text {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.2;
}

.brand-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #059669;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

[data-theme="dark"] .brand-badge-pill {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.product-detail-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 8px;
}

.product-detail-price {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 14px;
}

.product-detail-variants {
  margin-bottom: 16px;
}

.variants-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.variant-btn {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.variant-btn:hover {
  border-color: var(--primary);
}

.variant-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.product-detail-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  padding: 12px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
}

/* In-Page Product Detail Action Buttons */
.product-detail-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
  align-items: stretch;
}

.product-detail-actions-grid button {
  width: 100%;
  justify-content: center;
  padding: 14px 16px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   ADMIN / SELLER DASHBOARD MODAL
   ========================================================================== */
.admin-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 16px;
  overflow-x: auto;
}

.admin-tab-btn {
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.admin-tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.stat-card {
  padding: 14px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.stat-card h5 {
  font-size: 0.74rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.stat-card p {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
}

.admin-products-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.admin-products-table th,
.admin-products-table td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.admin-products-table th {
  color: var(--text-muted);
  font-weight: 700;
}

/* ==========================================================================
   TOAST NOTIFICATION STACK
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: calc(var(--bottom-nav-height) + 16px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 120;
  width: 90%;
  max-width: 380px;
  pointer-events: none;
}

@media (min-width: 768px) {
  .toast-container {
    bottom: 24px;
    right: 24px;
    left: auto;
    transform: none;
  }
}

.toast {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  font-weight: 600;
  pointer-events: auto;
  animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast.success {
  border-left: 4px solid var(--success);
}

.toast.info {
  border-left: 4px solid var(--primary);
}

.toast.danger {
  border-left: 4px solid var(--danger);
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   INVOICE / RECEIPT STYLING
   ========================================================================== */
.receipt-paper {
  background: #ffffff;
  color: #1e293b;
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px dashed #cbd5e1;
  font-size: 0.84rem;
  line-height: 1.5;
}

.receipt-header {
  text-align: center;
  border-bottom: 2px dashed #e2e8f0;
  padding-bottom: 14px;
  margin-bottom: 14px;
}

.receipt-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  color: #0f172a;
}

.receipt-status-badge {
  display: inline-block;
  padding: 4px 10px;
  background: #ecfdf5;
  color: #059669;
  font-weight: 700;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  margin-top: 6px;
}

.receipt-table {
  width: 100%;
  margin: 12px 0;
  border-collapse: collapse;
}

.receipt-table th,
.receipt-table td {
  padding: 6px 0;
  border-bottom: 1px solid #f1f5f9;
}

.receipt-total-row {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  font-size: 1rem;
  padding-top: 10px;
  border-top: 2px dashed #cbd5e1;
  color: #0f172a;
}

@media print {
  body * {
    visibility: hidden;
  }

  .receipt-paper,
  .receipt-paper * {
    visibility: visible;
  }

  .receipt-paper {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    border: none;
    padding: 0;
  }
}

/* Back Navigation Button */
.btn-back-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.84rem;
  font-weight: 700;
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-back-nav:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
  transform: translateX(-3px);
}

/* Header Back Button for Subpages (Mobile & Desktop) */
.btn-back-header {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
  cursor: pointer;
  flex-shrink: 0;
}

.btn-back-header:hover,
.btn-back-header:active {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
  transform: scale(0.96);
}

/* Compact WhatsApp Button for Mobile Action Bar */
.btn-wa-icon-only {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: var(--radius-md);
  background: #25d366;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.btn-wa-icon-only:active {
  transform: scale(0.94);
}

/* Responsive Table Wrapper for Admin Products */
.admin-table-responsive-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  margin-top: 8px;
}

.admin-table-responsive-wrapper::-webkit-scrollbar {
  height: 6px;
}

.admin-table-responsive-wrapper::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: 4px;
}

/* Hide on mobile utility */
@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }
}


/* ==========================================================================
   HERO IMAGE SLIDER (MATCHING REFERENCE IMAGE)
   ========================================================================== */
.hero-slider-wrap {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 36px -8px rgba(0, 0, 0, 0.25);
  background: #0f172a;
  aspect-ratio: 16 / 7;
  max-height: 440px;
}

@media (max-width: 768px) {
  .hero-slider-wrap {
    aspect-ratio: 16 / 9;
  }
}

.hero-slider-track {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  overflow: hidden;
  user-select: none;
}

.hero-slide-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 6s ease;
}

.hero-slide:hover .hero-slide-bg {
  transform: scale(1.03);
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.42) 48%, rgba(0, 0, 0, 0.1) 100%);
  display: flex;
  align-items: center;
  padding: 24px 36px;
  z-index: 2;
}

@media (max-width: 640px) {
  .hero-slide-overlay {
    padding: 14px 18px;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.84) 0%, rgba(0, 0, 0, 0.55) 65%, rgba(0, 0, 0, 0.2) 100%);
  }
}

/* Badge Top Right */
.slide-top-right-badge {
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 3;
}

.badge-new-product {
  background: #ffffff;
  border: 3px solid #ef4444;
  color: #ef4444;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 0.85rem;
  line-height: 1;
  padding: 6px 12px;
  border-radius: 4px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media (max-width: 640px) {
  .badge-new-product {
    font-size: 0.65rem;
    padding: 4px 8px;
    border-width: 2px;
  }
}

/* Slide Content */
.slide-content-left {
  max-width: 580px;
  color: #ffffff;
}

.slide-brand-title {
  font-family: 'Georgia', serif;
  font-style: italic;
  font-size: 1.3rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 4px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  letter-spacing: 0.5px;
}

.slide-main-headline {
  font-family: var(--font-heading);
  font-size: 2.3rem;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: -0.5px;
  color: #ffffff;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.8);
  margin-bottom: 12px;
}

@media (max-width: 640px) {
  .slide-main-headline {
    font-size: 1.25rem;
    margin-bottom: 6px;
  }

  .slide-brand-title {
    font-size: 0.9rem;
  }
}

.slide-subbadges-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.subbadge-pill {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .subbadge-pill {
    font-size: 0.58rem;
    padding: 2px 6px;
  }
}

/* Call to Action Row */
.slide-cta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-slider-gold {
  background: linear-gradient(135deg, #fcd34d 0%, #f59e0b 50%, #d97706 100%);
  color: #1e1b4b;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  padding: 10px 24px;
  border-radius: 999px;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.45);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all var(--transition-fast);
}

.btn-slider-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(245, 158, 11, 0.6);
}

@media (max-width: 640px) {
  .btn-slider-gold {
    font-size: 0.75rem;
    padding: 6px 14px;
  }
}

.badge-batch {
  border: 2px solid rgba(255, 255, 255, 0.6);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 4px 12px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  letter-spacing: 1px;
}

.badge-sold-out {
  border: 2px dashed #ef4444;
  color: #f87171;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.78rem;
  padding: 3px 10px;
  border-radius: 6px;
  background: rgba(239, 68, 68, 0.15);
  position: relative;
  text-transform: uppercase;
}

@media (max-width: 640px) {

  .badge-batch,
  .badge-sold-out {
    font-size: 0.65rem;
    padding: 2px 6px;
  }
}

/* Slider Navigation Buttons (Left/Right Arrows) */
.slider-arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  color: #0f172a;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition-fast);
}

.slider-arrow-btn:hover {
  background: #ffffff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.slider-arrow-btn.prev {
  left: 16px;
}

.slider-arrow-btn.next {
  right: 16px;
}

@media (max-width: 640px) {
  .slider-arrow-btn {
    width: 32px;
    height: 32px;
  }

  .slider-arrow-btn.prev {
    left: 8px;
  }

  .slider-arrow-btn.next {
    right: 8px;
  }
}

/* Slider Bottom-Right Dots (matching reference) */
.slider-dots-container {
  position: absolute;
  bottom: 16px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.45);
  padding: 5px 10px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

@media (max-width: 640px) {
  .slider-dots-container {
    bottom: 8px;
    right: 12px;
    padding: 3px 8px;
    gap: 4px;
  }
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.slider-dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

.slider-dot.active {
  width: 22px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   COMPREHENSIVE MOBILE LAYOUT SYSTEM (SMARTPHONES & TABLETS)
   Zero Clipping, Touch-Optimized, Safe-Area Compliant
   ========================================================================== */

/* Universal Overflow Prevention */
html,
body {
  overflow-x: hidden !important;
  max-width: 100vw;
  width: 100%;
}

/* Base Form Inputs on Touch Devices (Prevent iOS Safari auto-zoom) */
@media (max-width: 768px) {

  input[type="text"],
  input[type="number"],
  input[type="tel"],
  input[type="email"],
  select,
  textarea {
    font-size: 16px !important;
    /* Prevents auto zoom on iPhone/Safari */
  }
}

/* Mobile Screens Under 768px */
@media (max-width: 768px) {
  .container {
    padding: 0 12px;
  }

  /* Header Compactness */
  .header-inner {
    height: 56px;
    gap: 8px;
  }

  .brand {
    font-size: 1.05rem;
    gap: 6px;
  }

  .brand-badge {
    width: 32px;
    height: 32px;
    font-size: 0.95rem;
    border-radius: 50%;
  }

  .btn-admin-toggle .admin-label-text {
    display: none;
  }

  .btn-admin-toggle {
    padding: 7px 9px;
  }

  .btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .mobile-search-row {
    display: none !important;
  }

  /* Hero Slider Mobile (Matches Desktop Widescreen Composition & Product Visibility) */
  .hero-section {
    padding: 8px 0 14px 0;
  }

  .hero-slider-wrap {
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    min-height: unset !important;
    max-height: unset !important;
    border-radius: 12px;
  }

  .hero-slide-bg {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
  }

  .hero-slide-overlay {
    padding: 10px 14px 12px 14px !important;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.45) 50%, rgba(0, 0, 0, 0.05) 100%) !important;
  }

  .slide-content-left {
    max-width: 58% !important;
  }

  .slide-brand-title {
    font-size: 0.68rem !important;
    margin-bottom: 2px !important;
  }

  .slide-main-headline {
    font-size: 0.95rem !important;
    line-height: 1.1 !important;
    margin-bottom: 4px !important;
    font-weight: 900 !important;
  }

  .slide-subbadges-row {
    gap: 3px !important;
    margin-bottom: 6px !important;
    display: flex !important;
    flex-wrap: wrap !important;
  }

  .subbadge-pill {
    font-size: 0.52rem !important;
    padding: 2px 5px !important;
    border-radius: 4px !important;
  }

  .slide-cta-row {
    gap: 4px !important;
    flex-wrap: wrap !important;
    margin-top: 2px !important;
    display: flex !important;
    align-items: center !important;
  }

  .btn-slider-gold {
    font-size: 0.65rem !important;
    padding: 4px 10px !important;
    letter-spacing: 0.3px !important;
    border-radius: var(--radius-full) !important;
  }

  .badge-batch,
  .badge-sold-out {
    font-size: 0.54rem !important;
    padding: 2px 5px !important;
  }

  .badge-sold-out::after {
    display: none;
  }

  .slide-top-right-badge {
    top: 8px !important;
    right: 8px !important;
  }

  .badge-new-product {
    font-size: 0.56rem !important;
    padding: 3px 6px !important;
    border-width: 2px !important;
    border-radius: 4px !important;
  }

  /* Slider arrows on mobile devices matching desktop look */
  .slider-arrow-btn {
    width: 26px !important;
    height: 26px !important;
    background: rgba(0, 0, 0, 0.45) !important;
    backdrop-filter: blur(4px) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 50% !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 5 !important;
  }

  .slider-arrow-btn.prev {
    left: 6px !important;
  }

  .slider-arrow-btn.next {
    right: 6px !important;
  }

  .slider-arrow-btn i,
  .slider-arrow-btn svg {
    width: 14px !important;
    height: 14px !important;
  }

  .slider-dots-container {
    bottom: 6px !important;
    right: 8px !important;
    padding: 3px 6px !important;
    gap: 4px !important;
  }

  .slider-dot {
    width: 5px !important;
    height: 5px !important;
  }

  .slider-dot.active {
    width: 14px !important;
  }

  /* Perks Bar Mobile */
  .perks-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 8px;
  }

  .perk-item {
    padding: 8px 10px;
    gap: 8px;
    border-radius: 10px;
  }

  .perk-icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 8px;
  }

  .perk-text h4 {
    font-size: 0.72rem;
  }

  .perk-text p {
    font-size: 0.62rem;
  }

  /* Catalog & Toolbar Mobile */
  .catalog-header {
    padding: 12px 0 10px 0;
  }

  .cat-scroll-arrow {
    display: none !important;
  }

  .categories-scroll-wrapper::before,
  .categories-scroll-wrapper::after {
    display: none !important;
  }

  .categories-scroll {
    gap: 6px;
    padding: 4px 0 8px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    touch-action: pan-x pan-y;
    overscroll-behavior-x: contain;
    cursor: default;
  }

  .categories-scroll::-webkit-scrollbar {
    display: none;
  }

  .category-pill {
    padding: 6px 12px;
    font-size: 0.78rem;
    flex-shrink: 0;
    white-space: nowrap;
  }

  .toolbar-row {
    margin-top: 6px;
    padding-bottom: 6px;
    gap: 8px;
  }

  .products-count-text {
    font-size: 0.76rem;
  }

  .sort-filter-group {
    display: none !important;
  }

  .select-input {
    padding: 6px 26px 6px 10px;
    font-size: 0.75rem;
  }

  /* Product Grid Mobile: 2 Columns Zero Clipping */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 6px 0 24px 0;
  }

  .product-card {
    border-radius: 10px;
  }

  .product-card-body {
    padding: 8px 10px 10px 10px;
  }

  .product-category-name {
    font-size: 0.65rem;
    margin-bottom: 2px;
  }

  .product-title {
    font-size: 0.8rem;
    line-height: 1.25;
    height: 2.5em;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .product-rating-row {
    font-size: 0.68rem;
    margin-bottom: 4px;
    gap: 3px;
  }

  .price-current {
    font-size: 0.92rem;
  }

  .price-original {
    font-size: 0.66rem;
  }

  .stock-indicator {
    font-size: 0.62rem;
    margin-bottom: 6px;
  }

  /* Product Card Bottom Row on Mobile (Price on Left, Cart Icon on Right) */
  .product-card-bottom-row {
    margin-top: auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 6px;
    padding-top: 4px;
  }

  .product-price-col {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
    flex: 1;
  }

  .product-price-col .price-current {
    font-size: 0.94rem;
    font-weight: 800;
    line-height: 1.2;
  }

  .product-price-col .price-original {
    font-size: 0.65rem;
    line-height: 1.1;
  }

  .product-price-col .stock-indicator {
    font-size: 0.6rem;
    margin-bottom: 0;
    margin-top: 2px;
    gap: 3px;
  }

  .btn-card-cart-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: var(--radius-full);
    box-shadow: 0 3px 10px var(--primary-glow);
  }

  .btn-card-select-variant {
    height: 34px;
    padding: 0 11px;
    font-size: 0.74rem;
    gap: 2px;
    border-radius: var(--radius-full);
    box-shadow: 0 3px 8px var(--primary-glow);
  }



  /* Mobile Bottom Navigation */
  .bottom-nav {
    height: 58px;
    padding-bottom: max(6px, env(safe-area-inset-bottom));
  }

  .bottom-nav-item {
    padding: 3px 6px;
    font-size: 0.62rem;
    gap: 2px;
  }

  /* Ensure page content is never hidden behind bottom nav */
  body {
    padding-bottom: calc(58px + max(10px, env(safe-area-inset-bottom)) + 16px) !important;
  }

  /* Drawers on Mobile (Cart & Wishlist) */
  .drawer-box {
    width: 100% !important;
    max-width: 100% !important;
  }

  .drawer-box .modal-footer {
    padding-bottom: max(16px, env(safe-area-inset-bottom)) !important;
  }

  .cart-item {
    padding: 10px;
    gap: 10px;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .cart-item-img {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 8px;
  }

  .cart-item-title {
    font-size: 0.82rem;
    line-height: 1.3;
  }

  .cart-item-variant {
    font-size: 0.72rem;
    margin-bottom: 6px;
  }

  .cart-item-price {
    font-size: 0.9rem;
    font-weight: 800;
  }

  .btn-qty {
    width: 25px;
    height: 25px;
    font-size: 0.8rem;
  }

  .qty-number {
    font-size: 0.82rem;
    min-width: 18px;
  }

  .btn-remove-cart {
    padding: 4px;
  }

  /* Modals on Mobile */
  .modal-overlay {
    padding: 10px;
  }

  .modal-box {
    width: 95vw !important;
    max-width: 95vw !important;
    max-height: 90vh;
    border-radius: 16px;
    margin: auto;
  }

  .modal-header {
    padding: 12px 14px;
  }

  .modal-body {
    padding: 12px 14px;
  }

  .modal-detail-actions {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .modal-detail-actions button,
  .modal-detail-actions a {
    width: 100% !important;
    justify-content: center !important;
  }

  .modal-footer {
    padding: 12px 14px;
  }

  /* Product Page (product.html) Mobile */
  .product-page-container {
    margin: 8px auto 30px auto !important;
    padding: 0 12px !important;
  }

  .breadcrumb-nav {
    font-size: 0.74rem !important;
    gap: 4px !important;
    margin-bottom: 12px !important;
  }

  .product-main-card {
    padding: 14px !important;
    border-radius: 14px !important;
  }

  .product-detail-layout {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .product-detail-gallery {
    aspect-ratio: 1 / 1 !important;
    border-radius: 12px !important;
    max-width: 100% !important;
  }

  .product-detail-title {
    font-size: 1.25rem !important;
    line-height: 1.25 !important;
  }

  .product-detail-price {
    font-size: 1.35rem !important;
    margin-bottom: 12px !important;
  }

  .product-detail-desc {
    font-size: 0.84rem !important;
    padding: 12px !important;
    line-height: 1.5 !important;
  }

  .product-detail-actions-grid {
    gap: 8px !important;
  }

  .product-detail-actions-grid button {
    padding: 12px 6px !important;
    font-size: 0.82rem !important;
    gap: 5px !important;
  }

  .desktop-only-inline {
    display: none !important;
  }

  /* Checkout Page (checkout.html) Mobile */
  .checkout-container {
    margin: 10px auto 95px auto !important;
    padding: 0 14px !important;
  }

  .checkout-layout {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .checkout-card {
    padding: 18px 16px !important;
    border-radius: 16px !important;
    border: 1px solid var(--border-subtle) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03) !important;
  }

  .card-header-title {
    font-size: 1.05rem !important;
    margin-bottom: 14px !important;
    padding-bottom: 10px !important;
  }

  .checkout-form-grid.two-cols {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .form-group {
    gap: 6px !important;
  }

  .form-input,
  .form-select {
    height: 46px !important;
    font-size: 0.92rem !important;
    padding: 10px 14px !important;
    border-radius: 10px !important;
  }

  .form-textarea {
    min-height: 85px !important;
    font-size: 0.92rem !important;
    padding: 12px 14px !important;
    border-radius: 10px !important;
    line-height: 1.5 !important;
  }

  .payment-methods-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .payment-method-card {
    padding: 12px 10px !important;
    border-radius: 12px !important;
    gap: 8px !important;
    flex-direction: row !important;
    align-items: center !important;
  }

  .payment-method-icon {
    font-size: 1.35rem !important;
    width: 36px !important;
    height: 36px !important;
    background: var(--bg-secondary) !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
  }

  .payment-method-title {
    font-size: 0.82rem !important;
    font-weight: 700 !important;
  }

  .payment-method-sub {
    font-size: 0.68rem !important;
    line-height: 1.2 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 1 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  .bank-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
    padding: 10px 12px !important;
    background: var(--bg-surface) !important;
    border-radius: 8px !important;
    border: 1px solid var(--border-subtle) !important;
  }

  .btn-copy-account {
    align-self: flex-start !important;
    padding: 6px 14px !important;
    font-weight: 700 !important;
  }

  .btn-whatsapp-checkout {
    padding: 13px !important;
    font-size: 0.92rem !important;
    width: 100% !important;
    justify-content: center !important;
    border-radius: var(--radius-full) !important;
  }

  .voucher-box {
    padding: 10px 12px !important;
    border-radius: 12px !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }

  .voucher-input-row {
    display: flex !important;
    gap: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .voucher-input-row input {
    flex: 1 !important;
    min-width: 0 !important;
    height: 40px !important;
    font-size: 0.84rem !important;
    box-sizing: border-box !important;
  }

  .btn-apply-voucher {
    height: 40px !important;
    padding: 0 16px !important;
    font-size: 0.84rem !important;
    flex-shrink: 0 !important;
  }

  .cart-summary {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .summary-row {
    width: 100% !important;
    box-sizing: border-box !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 8px !important;
  }

  .summary-row.total {
    font-size: 1.05rem !important;
  }

  .summary-row.total .price-highlight {
    font-size: 1.1rem !important;
  }

  /* Mobile Order Summary Bar */
  .mobile-order-summary-bar {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    margin-bottom: 14px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  }

  .mobile-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 16px;
    background: var(--bg-surface);
    cursor: pointer;
    user-select: none;
  }

  .mobile-summary-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
  }

  .mobile-summary-left .summary-arrow {
    transition: transform 0.25s ease;
    color: var(--text-muted);
  }

  .mobile-summary-bar.open .summary-arrow {
    transform: rotate(180deg);
  }

  .mobile-summary-price {
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary);
    font-family: var(--font-heading);
  }

  .mobile-summary-dropdown {
    padding: 12px 16px;
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-secondary);
  }

  /* Mobile Checkout Sticky Bottom Bar (Removed) */
  .mobile-checkout-sticky-bar {
    display: none !important;
  }

  @media (min-width: 880px) {
    .mobile-order-summary-bar {
      display: none !important;
    }
  }

  /* Receipt Modal Mobile */
  #checkoutReceiptOverlay .modal-box,
  #receiptOverlay .modal-box {
    width: 95vw !important;
    max-width: 95vw !important;
    max-height: 90vh !important;
    border-radius: 16px !important;
    margin: auto !important;
  }

  #checkoutReceiptOverlay .modal-footer,
  #receiptOverlay .modal-footer {
    flex-direction: column !important;
    gap: 8px !important;
    padding: 12px 14px !important;
  }

  #checkoutReceiptOverlay .modal-footer button,
  #checkoutReceiptOverlay .modal-footer a,
  #receiptOverlay .modal-footer button,
  #receiptOverlay .modal-footer a {
    width: 100% !important;
    justify-content: center !important;
  }

  /* Admin Page (admin.html) Mobile */
  .admin-page-container {
    margin: 8px auto 70px auto !important;
    padding: 0 12px !important;
  }

  .admin-card {
    padding: 14px !important;
    border-radius: 14px !important;
  }

  /* Native Mobile Segmented Horizontal Scroll Tabs */
  .admin-tabs {
    display: flex !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    gap: 6px !important;
    padding-bottom: 6px !important;
    margin-bottom: 14px !important;
  }

  .admin-tabs::-webkit-scrollbar {
    display: none !important;
  }

  .admin-tab-btn {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    padding: 8px 14px !important;
    font-size: 0.78rem !important;
    border-radius: var(--radius-full) !important;
  }

  /* Stats Grid: Revenue full width on top, orders & items side by side */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  .stats-grid .stat-card:first-child {
    grid-column: 1 / -1 !important;
  }

  .stat-card {
    padding: 10px 12px !important;
  }

  .stat-card h5 {
    font-size: 0.68rem !important;
  }

  .stat-card p {
    font-size: 1.05rem !important;
  }

  /* Products Table in Admin on Mobile */
  .admin-products-table {
    min-width: 620px !important;
  }

  /* Order Action Buttons in Admin on Mobile */
  .order-actions-wrap {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
  }

  .order-status-select,
  .btn-wa-order {
    width: 100% !important;
    justify-content: center !important;
  }
}

/* ==========================================================================
   DEDICATED SHOP PAGE STYLES (shop.html)
   ========================================================================== */
.shop-page-container {
  padding-top: 18px;
  padding-bottom: 60px;
}

/* Breadcrumbs Suppressed Globally */
.shop-breadcrumb,
.article-breadcrumb,
.policy-breadcrumb,
.breadcrumb-nav,
.breadcrumb,
.breadcrumbs,
[aria-label="Breadcrumb"],
[aria-label="breadcrumb"],
nav[aria-label="Breadcrumb"],
nav[aria-label="breadcrumb"] {
  display: none !important;
}

/* Shop Hero Banner */
.shop-hero-banner {
  position: relative;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.08) 0%, rgba(6, 182, 212, 0.05) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin: 18px 0 22px 0;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

[data-theme="dark"] .shop-hero-banner {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(34, 211, 238, 0.06) 100%);
  border-color: rgba(255, 255, 255, 0.08);
}

.shop-hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.shop-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
  letter-spacing: 0.3px;
}

.shop-hero-title {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.shop-hero-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

.shop-filter-active-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.shop-active-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-fast);
}

.shop-active-chip button {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 2px;
  border-radius: 50%;
  transition: color var(--transition-fast);
}

.shop-active-chip button:hover {
  color: var(--danger);
}

@media (max-width: 768px) {
  .shop-hero-banner {
    padding: 16px 16px;
    margin: 12px 0 16px 0;
    border-radius: var(--radius-md);
  }
  .shop-hero-title {
    font-size: 1.35rem;
  }
  .shop-hero-desc {
    font-size: 0.82rem;
    line-height: 1.45;
  }
  .shop-breadcrumb {
    margin: 12px 0 10px 0;
    font-size: 0.76rem;
  }
}

/* ==========================================================================
   CINEMATIC VIDEO HERO BANNER (home-hero-video)
   ========================================================================== */
.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

.object-cover {
  object-fit: cover;
}

.hero-video-wrap {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 44px -8px rgba(0, 0, 0, 0.45);
  background: #090d16;
  aspect-ratio: 16 / 9;
  max-height: 540px;
  display: flex;
  align-items: center;
}

@media (max-width: 768px) {
  .hero-video-wrap {
    aspect-ratio: 16 / 9;
    max-height: 380px;
    border-radius: var(--radius-md);
  }
}

.hero-video-element {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(9, 13, 22, 0.88) 0%, rgba(9, 13, 22, 0.55) 50%, rgba(9, 13, 22, 0.2) 100%);
  display: flex;
  align-items: center;
  padding: 32px 42px;
  z-index: 2;
}

@media (max-width: 640px) {
  .hero-video-overlay {
    padding: 16px 18px;
    background: linear-gradient(90deg, rgba(9, 13, 22, 0.92) 0%, rgba(9, 13, 22, 0.72) 65%, rgba(9, 13, 22, 0.3) 100%);
  }
}

.hero-video-content {
  max-width: 580px;
  position: relative;
  z-index: 3;
}

.hero-video-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fbbf24;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.hero-video-title {
  font-family: var(--font-heading);
  font-size: 2.35rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.7);
}

@media (max-width: 640px) {
  .hero-video-title {
    font-size: 1.45rem;
    margin-bottom: 8px;
  }
}

.hero-video-desc {
  font-size: 0.92rem;
  color: #e2e8f0;
  line-height: 1.5;
  margin-bottom: 22px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

@media (max-width: 640px) {
  .hero-video-desc {
    font-size: 0.78rem;
    margin-bottom: 14px;
    line-height: 1.4;
  }
}

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

.btn-video-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.btn-video-chip:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: #ffffff;
  color: #ffffff;
  transform: translateY(-2px);
}

@media (max-width: 640px) {
  .btn-video-chip {
    display: none;
  }
}

.video-ctrl-floating-group {
  position: absolute;
  top: 18px;
  right: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 5;
}

.btn-video-ctrl {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-video-ctrl:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: scale(1.08);
  box-shadow: 0 4px 14px var(--primary-glow);
}

@media (max-width: 640px) {
  .video-ctrl-floating-group {
    top: 12px;
    right: 12px;
    gap: 6px;
  }
  .btn-video-ctrl {
    width: 34px;
    height: 34px;
  }
}

/* ==========================================================================
   FLASH SALE SECTION (Match Screenshot Aesthetic)
   ========================================================================== */
.flash-sale-container {
  width: 100%;
  background: var(--primary);
  background: linear-gradient(135deg, #4338ca 0%, #4f46e5 50%, #6366f1 100%);
  border-radius: var(--radius-lg);
  padding: 22px 24px 24px 24px;
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 40px;
  box-shadow: 0 16px 36px -8px rgba(79, 70, 229, 0.45);
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .flash-sale-container {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%);
  box-shadow: 0 16px 36px -8px rgba(99, 102, 241, 0.35);
}

.flash-sale-hero-col {
  flex: 0 0 220px;
  max-width: 220px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 6px 4px;
}

.flash-sale-simple-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--transition-fast);
}

.flash-sale-simple-brand:hover {
  transform: translateY(-2px);
}

.flash-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fde047;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  width: fit-content;
}

.flash-simple-title {
  font-family: var(--font-heading);
  font-size: 2.85rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 0.92;
  letter-spacing: -0.03em;
  margin: 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.flash-title-highlight {
  color: #fbbf24;
  background: linear-gradient(180deg, #fef08a 0%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  text-shadow: none;
}

.flash-simple-desc {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.35;
  margin: 0;
}

.flash-sale-content-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.flash-sale-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
}

.flash-sale-timer-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.flash-mobile-header-badge {
  display: none;
  font-size: 0.74rem;
  font-weight: 800;
  color: #fde047;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.4px;
  white-space: nowrap;
  line-height: 1.2;
}

.flash-timer-label {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
  white-space: nowrap;
  line-height: 1.2;
}

.flash-countdown {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-wrap: nowrap;
}

.flash-time-box {
  background: #ea4335;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 6px;
  min-width: 26px;
  text-align: center;
  line-height: 1.2;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
  letter-spacing: 0.4px;
  white-space: nowrap;
}

.flash-view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.flash-view-all-link:hover {
  opacity: 0.85;
  transform: translateX(3px);
  color: #ffffff;
}

.flash-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  width: 100%;
}

.flash-product-card {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  position: relative;
}

.flash-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.flash-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f8fafc;
  overflow: hidden;
}

.flash-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.flash-product-card:hover .flash-card-img {
  transform: scale(1.05);
}

.flash-card-badge-distributor {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: var(--primary);
  background: linear-gradient(135deg, #4338ca, #6366f1);
  color: #ffffff;
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  padding: 3px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.4);
}

.flash-card-info {
  padding: 9px 10px 8px 10px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.flash-card-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.35;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 32px;
}

.flash-card-price-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: auto;
}

.flash-card-price-original {
  font-size: 0.72rem;
  color: #94a3b8;
  text-decoration: line-through;
  font-weight: 500;
}

.flash-card-price-deal {
  font-size: 0.95rem;
  font-weight: 800;
  color: #e11d48;
  letter-spacing: -0.01em;
}

.flash-card-divider {
  width: 100%;
  height: 1px;
  background: #f1f5f9;
  margin: 7px 0 5px 0;
}

.flash-card-stock {
  font-size: 0.68rem;
  color: #64748b;
  font-weight: 600;
}

@media (max-width: 980px) {
  .flash-sale-container {
    flex-direction: column;
    align-items: stretch;
    padding: 18px 16px;
    gap: 16px;
  }
  .flash-sale-hero-col {
    max-width: 100%;
    flex: none;
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .flash-sale-container {
    padding: 12px 10px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    gap: 10px;
  }
  .flash-sale-hero-col {
    display: none;
  }
  .flash-sale-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 8px;
    flex-wrap: nowrap;
  }
  .flash-sale-timer-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    min-width: 0;
    flex-shrink: 1;
  }
  .flash-mobile-header-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 5px;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.3px;
    line-height: 1.3;
  }
  .flash-timer-label {
    font-size: 0.74rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1.3;
  }
  .flash-countdown {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
  }
  .flash-time-box {
    font-size: 0.74rem;
    font-weight: 800;
    padding: 2px 5px;
    min-width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    white-space: nowrap;
    line-height: 1;
  }
  .flash-view-all-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    flex-shrink: 0;
    margin-left: auto;
    text-decoration: none;
    transition: background var(--transition-fast), transform var(--transition-fast);
  }
  .flash-view-all-link:hover,
  .flash-view-all-link:active {
    background: rgba(255, 255, 255, 0.32);
    transform: scale(1.06);
    color: #ffffff;
  }
  .flash-view-all-link span {
    display: none !important;
  }
  .flash-view-all-link svg,
  .flash-view-all-link i {
    width: 16px;
    height: 16px;
    stroke-width: 2.5;
  }
  .flash-sale-content-col {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }
  .flash-cards-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 12px !important;
    padding: 6px 4px 14px 4px !important;
    width: 100% !important;
    max-width: 100% !important;
    cursor: grab !important;
    scrollbar-width: none !important;
  }
  .flash-cards-grid:active {
    cursor: grabbing !important;
  }
  .flash-cards-grid::-webkit-scrollbar {
    display: none !important;
  }
  .flash-product-card {
    flex: 0 0 156px !important;
    width: 156px !important;
    min-width: 156px !important;
    max-width: 156px !important;
    scroll-snap-align: start !important;
    margin: 0 !important;
  }
  .flash-card-title {
    font-size: 0.78rem;
    height: 34px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

@media (max-width: 390px) {
  .flash-sale-container {
    padding: 10px 8px;
  }
  .flash-sale-top-bar {
    gap: 4px;
  }
  .flash-sale-timer-wrap {
    gap: 4px;
  }
  .flash-mobile-header-badge {
    font-size: 0.65rem;
    padding: 2px 4px;
  }
  .flash-timer-label {
    font-size: 0.68rem;
  }
  .flash-time-box {
    font-size: 0.7rem;
    padding: 1px 4px;
    min-width: 19px;
    height: 20px;
  }
  .flash-view-all-link {
    width: 26px;
    height: 26px;
    min-width: 26px;
  }
  .flash-view-all-link svg,
  .flash-view-all-link i {
    width: 15px;
    height: 15px;
  }
}

/* ==========================================================================
   VIDEO REELS CAROUSEL & PLAYER (Otten Video Style)
   ========================================================================== */
.reels-section-container {
  width: 100%;
  margin: 0 auto 46px auto;
  position: relative;
}

.reels-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 0 4px;
}

.reels-header-left {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.reels-section-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.01em;
}

.reels-section-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 400;
}

.reels-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reels-view-all-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

[data-theme="dark"] .reels-view-all-link {
  color: var(--primary-light, #818cf8);
}

.reels-view-all-link:hover {
  opacity: 0.85;
  color: var(--primary-hover, #4338ca);
  transform: translateX(2px);
}

.reels-header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-reels-upload-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff !important;
  background: var(--primary, #2563eb);
  padding: 6px 14px;
  border-radius: 9999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
  transition: all 0.2s ease;
}

.btn-reels-upload-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
  filter: brightness(1.1);
}

.reels-carousel-wrapper {
  position: relative;
  width: 100%;
}

.reels-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-surface, #ffffff);
  color: var(--text-primary, #1e293b);
  border: 1px solid var(--border-subtle, #e2e8f0);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
  pointer-events: none;
}

.reels-nav-arrow.visible {
  opacity: 1;
  pointer-events: auto;
}

.reels-nav-arrow-left {
  left: -14px;
}

.reels-nav-arrow-right {
  right: -14px;
}

.reels-nav-arrow:hover {
  background: #ffffff;
  color: var(--primary, #2563eb);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
}

[data-theme="dark"] .reels-nav-arrow {
  background: #1e293b;
  color: #f8fafc;
  border-color: #334155;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .reels-nav-arrow:hover {
  background: #334155;
  color: #38bdf8;
}

.reels-carousel-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  padding: 6px 2px 14px 2px;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-x pan-y;
}

.reels-carousel-track::-webkit-scrollbar {
  display: none;
}

.reels-carousel-track.is-dragging {
  cursor: grabbing !important;
  scroll-behavior: auto !important;
}

/* Individual Reel Card (Vertical 9:16 portrait) */
.reel-card {
  flex: 0 0 190px;
  height: 338px;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  background: #0f172a;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  flex-shrink: 0;
}

.reel-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.reel-card-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.reel-card:hover .reel-card-thumb {
  transform: scale(1.05);
}

.reel-card-gradient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.05) 25%,
    rgba(0, 0, 0, 0.15) 50%,
    rgba(0, 0, 0, 0.82) 82%,
    rgba(0, 0, 0, 0.96) 100%
  );
}

/* Card Top Badges */
.reel-card-top {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 3;
}

.reel-play-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.reel-play-badge svg {
  margin-left: 2px;
}

.reel-views-badge {
  display: none !important;
}

/* Card Hook Title in Middle */
.reel-card-hook {
  position: absolute;
  top: 42%;
  left: 10px;
  right: 10px;
  transform: translateY(-50%);
  z-index: 3;
  text-align: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.88rem;
  line-height: 1.25;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95), 0 1px 2px rgba(0, 0, 0, 0.9);
  font-family: 'Outfit', sans-serif;
  pointer-events: none;
}

/* Card Bottom Details */
.reel-card-bottom {
  position: absolute;
  bottom: 12px;
  left: 10px;
  right: 10px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.reel-products-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(30, 41, 59, 0.88);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 600;
}

.reel-card-caption {
  color: #f1f5f9;
  font-size: 0.74rem;
  line-height: 1.25;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0.95;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* ==========================================================================
   REEL PLAYER MODAL OVERLAY (Instagram, TikTok, MP4)
   ========================================================================== */
.reel-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
}

.reel-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.reel-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 18, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.reel-modal-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 430px;
  height: 90vh;
  max-height: 780px;
  background: #020617;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.12);
  transform: scale(0.92);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.reel-modal-overlay.open .reel-modal-container {
  transform: scale(1);
}

/* Modal Top Bar */
.reel-modal-header {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.reel-modal-header * {
  pointer-events: auto;
}

.reel-modal-source {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.reel-modal-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-reel-ctrl {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-reel-ctrl:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.08);
}

/* Viewport / Video Player */
.reel-player-viewport {
  flex: 1;
  position: relative;
  width: 100%;
  height: 100%;
  background: #000000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reel-player-viewport video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reel-player-viewport iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #000000;
}

/* Embed placeholder fallback with direct social link button */
.reel-embed-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  padding: 24px;
  text-align: center;
}

.reel-embed-fallback-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(6px);
}

.reel-embed-fallback-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* Modal Prev / Next Navigation Arrows */
.reel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.reel-nav-btn.prev {
  left: 10px;
}

.reel-nav-btn.next {
  right: 10px;
}

.reel-nav-btn:hover {
  background: var(--primary, #2563eb);
  border-color: var(--primary, #2563eb);
  transform: translateY(-50%) scale(1.1);
}

/* Bottom Sheet / Product & Caption Area in Modal */
.reel-modal-bottom-sheet {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 15;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(2, 6, 23, 0.7) 20%,
    rgba(2, 6, 23, 0.95) 60%,
    rgba(2, 6, 23, 1) 100%
  );
  padding: 30px 16px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.reel-modal-bottom-sheet * {
  pointer-events: auto;
}

.reel-meta-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.reel-modal-title {
  color: #ffffff;
  font-size: 0.96rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
  font-family: 'Outfit', sans-serif;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.reel-modal-caption {
  color: #cbd5e1;
  font-size: 0.8rem;
  line-height: 1.35;
  margin: 0;
  max-height: 48px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.reel-social-action-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.btn-social-open {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn-social-open:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

.btn-social-open.instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.btn-social-open.tiktok {
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Tagged Products Drawer Inside Reel Modal */
.reel-tagged-products-wrap {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 10px 12px;
}

.reel-tagged-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.reel-tagged-title {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #e2e8f0;
}

.reel-tagged-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 140px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.reel-product-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  padding: 6px 10px;
  border-radius: 10px;
  transition: background 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}

.reel-product-item:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateX(2px);
}

.reel-product-item img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: #1e293b;
}

.reel-product-meta {
  flex: 1;
  min-width: 0;
}

.reel-product-name {
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

.reel-product-price {
  color: #38bdf8;
  font-size: 0.74rem;
  font-weight: 700;
  margin: 2px 0 0 0;
}

.reel-product-btn {
  padding: 5px 12px;
  border-radius: 8px;
  background: var(--primary, #2563eb);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background 0.2s ease;
}

.reel-product-btn:hover {
  filter: brightness(1.15);
}

/* ==========================================================================
   MOBILE RESPONSIVENESS FOR REELS
   ========================================================================== */
@media (max-width: 768px) {
  .reels-section-container {
    margin-bottom: 32px;
  }
  .reels-section-header {
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
  }
  .reels-section-title {
    font-size: 1.18rem;
  }
  .reels-header-right {
    flex-shrink: 0;
  }
  .reels-view-all-link span {
    display: none !important;
  }
  .reels-view-all-link {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
    padding: 0;
    transition: all 0.2s ease;
  }
  .reels-view-all-link:hover,
  .reels-view-all-link:active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    transform: scale(1.05);
  }
  .reels-view-all-link i,
  .reels-view-all-link svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.5;
  }
  .reels-nav-arrow {
    display: none !important;
  }
  .reels-carousel-track {
    gap: 10px;
    padding: 4px 0 10px 0;
    cursor: default;
  }
  .reel-card {
    flex: 0 0 156px;
    height: 278px;
    border-radius: 14px;
  }
  .reel-card-hook {
    font-size: 0.78rem;
    padding: 0 4px;
  }
  .reel-card-caption {
    font-size: 0.7rem;
  }
  .reel-modal-container {
    max-width: 100%;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    border: none;
  }
  .reel-nav-btn {
    display: none !important;
  }
}

/* ==========================================================================
   HOMEPAGE: PRODUK TERBARU (LATEST PRODUCTS SECTION)
   ========================================================================== */
.latest-products-section {
  margin: 40px 0 55px 0;
  padding: 30px 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  position: relative;
}

[data-theme="dark"] .latest-products-section {
  background: var(--bg-surface);
  border-color: var(--border-subtle);
}

.latest-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.latest-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 800;
  border-radius: 9999px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

[data-theme="dark"] .latest-badge-pill {
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
}

.latest-section-title {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 6px 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.latest-section-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.45;
  max-width: 580px;
}

.btn-latest-view-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--primary);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: var(--primary-light, rgba(99, 102, 241, 0.08));
  border: 1px solid rgba(99, 102, 241, 0.2);
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-latest-view-all:hover {
  background: var(--primary);
  color: #ffffff;
  transform: translateX(2px);
}

.latest-filter-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 22px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.latest-filter-tabs::-webkit-scrollbar {
  display: none;
}

.latest-tab-btn {
  padding: 7px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 9999px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-family: inherit;
}

.latest-tab-btn:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.latest-tab-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.latest-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.latest-footer-action {
  margin-top: 28px;
  text-align: center;
}

.btn-latest-explore-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 420px;
  padding: 13px 24px;
  background: linear-gradient(135deg, var(--primary), #4338ca);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.88rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.25);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-latest-explore-all:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
  color: #ffffff;
}

@media (max-width: 992px) {
  .latest-products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
}

@media (max-width: 640px) {
  .latest-products-section {
    margin: 24px 0 36px 0;
    padding: 18px 12px;
    border-radius: var(--radius-lg);
  }
  .latest-section-title {
    font-size: 1.25rem;
  }
  .latest-section-desc {
    font-size: 0.78rem;
  }
  .latest-products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .latest-header-right {
    display: none;
  }
}

/* ==========================================================================
   HOMEPAGE: BRAND PILIHAN (FEATURED BRANDS CIRCULAR CAROUSEL)
   ========================================================================== */
.brands-section-container {
  margin: 10px 0 38px 0;
  padding: 24px 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  position: relative;
}

[data-theme="dark"] .brands-section-container {
  background: var(--bg-surface);
  border-color: var(--border-subtle);
}

.brands-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.brands-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 800;
  border-radius: 9999px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

[data-theme="dark"] .brands-badge-pill {
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
}

.brands-section-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.brands-section-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

.brands-view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

.brands-view-all-link:hover {
  transform: translateX(2px);
  color: #4338ca;
}

.brands-carousel-wrapper {
  position: relative;
  width: 100%;
}

.brands-carousel-track {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 6px 4px 8px 4px;
  cursor: grab;
}

.brands-carousel-track:active {
  cursor: grabbing;
}

.brands-carousel-track::-webkit-scrollbar {
  display: none;
}

.brand-circle-item {
  flex: 0 0 auto;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  scroll-snap-align: start;
  width: 90px;
  transition: transform 0.25s ease;
  user-select: none;
}

.brand-circle-item:hover {
  transform: translateY(-4px);
}

.brand-circle-avatar {
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  padding: 3px;
  background: var(--bg-surface);
  border: 2px solid var(--border-subtle);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-circle-item:hover .brand-circle-avatar {
  border-color: var(--brand-color, var(--primary));
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.22);
  transform: scale(1.05);
}

.brand-circle-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-bg, var(--bg-secondary));
  transition: background 0.25s ease;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.brand-monogram {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 0.88rem;
  letter-spacing: 0.5px;
  color: var(--brand-color, var(--text-primary));
  text-align: center;
}

.brand-verified-dot {
  position: absolute;
  bottom: 0px;
  right: 0px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #3b82f6;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-surface);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.brand-name-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin-top: 8px;
  line-height: 1.25;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-origin-label {
  display: none !important;
}

/* Nav arrows for desktop */
.brands-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 5;
  transition: all 0.2s ease;
}

.brands-nav-arrow:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.brands-nav-left {
  left: -12px;
}

.brands-nav-right {
  right: -12px;
}

@media (max-width: 768px) {
  .brands-section-container {
    margin: 8px 0 24px 0;
    padding: 16px 12px;
    border-radius: var(--radius-lg);
  }
  .brands-section-title {
    font-size: 1.2rem;
  }
  .brands-section-desc {
    font-size: 0.76rem;
  }
  .brands-carousel-track {
    gap: 14px;
    padding: 4px 2px 6px 2px;
  }
  .brand-circle-item {
    width: 74px;
  }
  .brand-circle-avatar {
    width: 64px;
    height: 64px;
  }
  .brand-monogram {
    font-size: 0.76rem;
  }
  .brand-verified-dot {
    width: 18px;
    height: 18px;
  }
  .brand-name-label {
    font-size: 0.72rem;
  }
  .brand-origin-label {
    font-size: 0.63rem;
  }
  .brands-nav-arrow {
    display: none !important;
  }
}

/* ==========================================================================
   SHOP PAGE: ACTIVE BRAND / FILTER BANNER
   ========================================================================== */
.active-filter-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0 16px 0;
  padding: 10px 16px;
  background: rgba(79, 70, 229, 0.08);
  border: 1px solid rgba(79, 70, 229, 0.22);
  border-radius: var(--radius-md);
  transition: all 0.25s ease;
}

[data-theme="dark"] .active-filter-banner {
  background: rgba(99, 102, 241, 0.14);
  border-color: rgba(99, 102, 241, 0.35);
}

.active-brand-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
  flex-wrap: wrap;
}

.active-brand-chip-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-primary);
  font-weight: 600;
}

.active-brand-chip-label i {
  color: var(--primary);
}

.active-brand-chip-label strong {
  color: var(--primary);
  font-weight: 800;
}

.btn-clear-brand-filter {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 9999px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-clear-brand-filter:hover {
  background: var(--danger-subtle, rgba(239, 68, 68, 0.1));
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
  transform: translateY(-1px);
}

/* ==========================================================================
   BRANDS DIRECTORY PAGE (brands.html)
   ========================================================================== */
.brands-page-hero {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.08) 0%, rgba(14, 165, 233, 0.05) 50%, rgba(99, 102, 241, 0.08) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 22px;
  padding: 32px 28px;
  margin: 20px 0 28px 0;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .brands-page-hero {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
  border-color: rgba(255, 255, 255, 0.1);
}

.brands-page-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.brands-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 9999px;
  background: rgba(79, 70, 229, 0.12);
  color: var(--primary);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
  border: 1px solid rgba(79, 70, 229, 0.25);
}

[data-theme="dark"] .brands-hero-badge {
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  border-color: rgba(99, 102, 241, 0.4);
}

.brands-hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.25;
  margin: 0 0 10px 0;
}

.brands-hero-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 20px 0;
}

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

.brands-stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 6px 14px;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

/* Brands Page Controls Bar */
.brands-page-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.brands-search-wrapper {
  flex: 1;
  min-width: 280px;
  max-width: 460px;
  position: relative;
}

.brands-search-input {
  width: 100%;
  height: 44px;
  padding: 0 38px 0 42px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  font-size: 0.88rem;
  color: var(--text-primary);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.brands-search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.brands-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
}

.brands-search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: none;
}

.brands-cat-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.brand-cat-pill {
  padding: 8px 16px;
  border-radius: 9999px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.brand-cat-pill:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-color: var(--border-focus);
}

.brand-cat-pill.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px var(--primary-glow);
}

/* Brands Grid */
.brands-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 22px;
  margin-bottom: 50px;
}

/* Brand Card Box */
.brand-card-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.brand-card-box:hover {
  transform: translateY(-5px);
  border-color: var(--brand-accent-color, var(--primary));
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08), 0 0 0 1px var(--brand-accent-color, var(--primary));
}

[data-theme="dark"] .brand-card-box:hover {
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35), 0 0 20px rgba(99, 102, 241, 0.18);
}

.brand-card-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.brand-card-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--brand-bg, var(--bg-secondary));
  border: 2px solid var(--brand-color, var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.brand-card-box:hover .brand-card-avatar {
  transform: scale(1.08) rotate(3deg);
}

.brand-card-inner-monogram {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  color: var(--brand-color, var(--primary));
  text-align: center;
  text-transform: uppercase;
}

.brand-card-verified {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #0284c7;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-surface);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.brand-card-heading {
  flex: 1;
  min-width: 0;
}

.brand-card-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 4px 0;
  line-height: 1.25;
  transition: color 0.2s;
}

.brand-card-box:hover .brand-card-name {
  color: var(--brand-color, var(--primary));
}

.brand-card-origin {
  font-size: 0.78rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  margin-bottom: 4px;
}

.brand-card-category-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--brand-color, var(--primary));
  background: var(--brand-bg, rgba(79, 70, 229, 0.08));
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.brand-card-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0 0 18px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.brand-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
}

.brand-card-count {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
}

.brand-card-count i {
  color: var(--primary);
}

.brand-card-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 0.78rem;
  font-weight: 700;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid var(--border-subtle);
}

.brand-card-box:hover .brand-card-action-btn {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px var(--primary-glow);
  transform: translateX(3px);
}

/* Guarantee / Trust Section */
.brands-trust-section {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 28px 24px;
  margin: 20px 0 60px 0;
}

.brands-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.trust-item-box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.trust-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(79, 70, 229, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-item-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 4px 0;
}

.trust-item-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .brands-page-hero {
    padding: 22px 18px;
    margin: 12px 0 18px 0;
    border-radius: 16px;
  }
  .brands-hero-title {
    font-size: 1.45rem;
  }
  .brands-hero-desc {
    font-size: 0.82rem;
    margin-bottom: 14px;
  }
  .brands-page-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 18px;
  }
  .brands-search-wrapper {
    max-width: 100%;
  }
  .brands-cat-pills {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .brands-page-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 36px;
  }
  .brand-card-box {
    padding: 18px 16px;
    border-radius: 14px;
  }
  .brand-card-avatar {
    width: 60px;
    height: 60px;
  }
  .brand-card-name {
    font-size: 1.1rem;
  }
  .brands-trust-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ==========================================================================
   BRANDS DIRECTORY PAGE: CLEAN MINIMALIST (LOGO & NAMA BRAND ONLY)
   ========================================================================== */
.brands-clean-header-section {
  padding: 20px 0 10px 0;
  text-align: center;
}

.brands-clean-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 6px 0;
}

.brands-clean-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
}

.brands-clean-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 24px 0 60px 0;
}

@media (max-width: 992px) {
  .brands-clean-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

@media (max-width: 580px) {
  .brands-clean-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

.brand-clean-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 30px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.brand-clean-card:hover {
  transform: translateY(-5px);
  border-color: var(--brand-color, var(--primary));
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08), 0 0 0 1px var(--brand-color, var(--primary));
}

[data-theme="dark"] .brand-clean-card {
  background: var(--bg-surface);
  border-color: var(--border-subtle);
}

[data-theme="dark"] .brand-clean-card:hover {
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4), 0 0 16px rgba(99, 102, 241, 0.2);
}

.brand-clean-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--brand-bg, var(--bg-secondary));
  border: 2px solid var(--brand-color, var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.brand-clean-card:hover .brand-clean-avatar {
  transform: scale(1.1) rotate(2deg);
}

.brand-clean-monogram {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  color: var(--brand-color, var(--primary));
  text-transform: uppercase;
}

.brand-clean-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  transition: color 0.2s;
}

.brand-clean-card:hover .brand-clean-name {
  color: var(--brand-color, var(--primary));
}

@media (max-width: 768px) {
  .brands-clean-title {
    font-size: 1.45rem;
  }
  .brand-clean-card {
    padding: 22px 12px;
    border-radius: 16px;
  }
  .brand-clean-avatar {
    width: 68px;
    height: 68px;
    margin-bottom: 10px;
  }
  .brand-clean-monogram {
    font-size: 0.92rem;
  }
  .brand-clean-name {
    font-size: 0.92rem;
  }
}

/* ==========================================================================
   KUMPULAN ARTIKEL & COFFEE EXPERIENCE SPACES (Reference Matching)
   ========================================================================== */
.articles-section-container {
  width: 100%;
  margin: 0 auto 50px auto;
  position: relative;
}

.articles-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 0 4px;
}

.articles-header-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.articles-section-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.01em;
}

.articles-section-desc {
  font-size: 0.86rem;
  color: var(--text-secondary);
  margin: 0;
  font-weight: 400;
}

.articles-view-all-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: opacity var(--transition-fast);
}

.articles-view-all-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.articles-carousel-wrapper {
  position: relative;
}

.articles-carousel-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 4px 2px 20px 2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.articles-carousel-track::-webkit-scrollbar {
  display: none;
}

/* Article Card Item */
.article-card {
  flex: 0 0 calc(25% - 14px);
  min-width: 285px;
  max-width: 340px;
  scroll-snap-align: start;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

[data-theme="dark"] .article-card {
  background: var(--bg-surface);
  border-color: var(--border-subtle);
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.09), 0 0 20px rgba(79, 70, 229, 0.08);
  border-color: rgba(79, 70, 229, 0.35);
}

[data-theme="dark"] .article-card:hover {
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 20px rgba(99, 102, 241, 0.15);
}

/* Card Thumbnail */
.article-card-thumb {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--bg-secondary);
}

.article-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.article-card:hover .article-card-img {
  transform: scale(1.08);
}

/* Badges on Thumbnail */
.article-badge-top-left {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: rgba(15, 23, 42, 0.88);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  padding: 5px 12px;
  border-radius: 9999px;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  display: inline-flex;
  align-items: center;
}

.article-badge-top-right {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  background: rgba(15, 23, 42, 0.82);
  color: #f1f5f9;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

/* Card Body Content */
.article-card-body {
  padding: 20px 20px 16px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 10px 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.article-card:hover .article-card-title {
  color: var(--primary);
}

.article-card-desc {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card Footer / Action Link */
.article-card-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface);
  margin-top: auto;
}

.article-card-action-text {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  transition: color 0.2s ease;
}

.article-card:hover .article-card-action-text {
  color: var(--primary);
}

.article-card-arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.article-card:hover .article-card-arrow {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateX(3px);
}

/* Articles Carousel Navigation Arrows */
.articles-nav-arrow {
  position: absolute;
  top: calc(50% - 10px);
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  z-index: 5;
  transition: all 0.2s ease;
}

.articles-nav-arrow:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.3);
}

.articles-nav-arrow-left {
  left: -18px;
}

.articles-nav-arrow-right {
  right: -18px;
}

/* Article Modal Reader */
.article-modal-box {
  max-width: 680px;
  width: 92%;
  max-height: 88vh;
  overflow-y: auto;
  border-radius: 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  display: flex;
  flex-direction: column;
}

.article-modal-banner {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  border-radius: 24px 24px 0 0;
}

.article-modal-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-modal-content {
  padding: 28px 30px;
}

.article-modal-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.article-modal-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.article-modal-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
  margin: 0 0 18px 0;
}

.article-modal-body {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.article-modal-body p {
  margin: 0 0 16px 0;
}

.article-modal-body h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 22px 0 10px 0;
}

.article-modal-footer-cta {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

@media (max-width: 768px) {
  .articles-section-container {
    margin-bottom: 36px;
  }
  .articles-section-header {
    align-items: center;
    gap: 12px;
  }
  .articles-section-title {
    font-size: 1.2rem;
  }
  .articles-header-right {
    flex-shrink: 0;
  }
  .articles-view-all-link span {
    display: none !important;
  }
  .articles-view-all-link {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
    padding: 0;
    transition: all 0.2s ease;
  }
  .articles-view-all-link i,
  .articles-view-all-link svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.5;
  }
  .article-card {
    min-width: 275px;
    max-width: 285px;
  }
  .article-card-thumb {
    height: 180px;
  }
  .articles-nav-arrow {
    display: none;
  }
  .article-modal-banner {
    height: 200px;
  }
  .article-modal-content {
    padding: 20px 18px;
  }
  .article-modal-title {
    font-size: 1.25rem;
  }
}

/* ==========================================================================
   DEDICATED ARTICLE PAGE (article.html) STYLING
   ========================================================================== */
.article-page-wrap {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 16px 80px 16px;
}



/* Article Hero Header */
.article-header-hero {
  margin-bottom: 30px;
}

.article-hero-badges-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.badge-article-category {
  background: var(--primary);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 9999px;
  box-shadow: 0 2px 10px rgba(79, 70, 229, 0.25);
}

.badge-article-info {
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 9999px;
  border: 1px solid var(--border-subtle);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.article-main-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2.35rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 14px 0;
}

.article-main-tagline {
  font-size: 1.08rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 24px 0;
}

.article-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.article-meta-author-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.article-author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.article-author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.article-author-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
}

.article-author-role {
  font-size: 0.76rem;
  color: var(--text-secondary);
}

.article-meta-details {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.article-meta-detail-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.article-share-btns {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-share-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-share-icon:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* Hero Cover Image */
.article-featured-image-box {
  width: 100%;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-subtle);
  position: relative;
  background: var(--bg-secondary);
  margin-bottom: 36px;
}

.article-featured-image {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

.article-image-caption {
  padding: 10px 18px;
  font-size: 0.78rem;
  color: var(--text-muted);
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Article Main Grid (Content & Sidebar) */
.article-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 40px;
  align-items: start;
}

/* Article Content Column */
.article-content-column {
  min-width: 0;
}

.article-prose {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.article-lead {
  font-size: 1.15rem !important;
  line-height: 1.75 !important;
  color: var(--text-primary) !important;
  font-weight: 500;
  margin-bottom: 28px !important;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.article-prose h2,
.article-prose h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  color: var(--text-primary);
  margin: 36px 0 16px 0;
  line-height: 1.3;
}

.article-prose h2 {
  font-size: 1.6rem;
}

.article-prose h3 {
  font-size: 1.35rem;
}

.article-prose p {
  margin: 0 0 20px 0;
}

.article-quote {
  margin: 28px 0;
  padding: 20px 24px;
  background: var(--bg-secondary);
  border-left: 4px solid var(--primary);
  border-radius: 0 14px 14px 0;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-primary);
}

/* Highlights 2x2 Grid */
.article-highlights-section {
  margin: 32px 0 36px 0;
  padding: 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.article-highlights-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.article-highlights-header h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
}

.article-highlights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.article-highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  background: var(--bg-secondary);
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
}

.article-highlight-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(79, 70, 229, 0.12);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.article-highlight-text h5 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 4px 0;
}

.article-highlight-text p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.4;
}

/* Related Equipment / Products Showcase */
.article-equipment-section {
  margin: 40px 0;
  padding: 26px 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
}

.article-equipment-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 8px 0;
}

.article-equipment-desc {
  font-size: 0.86rem;
  color: var(--text-secondary);
  margin: 0 0 20px 0;
}

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

.article-equipment-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.article-equipment-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.article-eq-img-wrap {
  width: 100%;
  height: 110px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-surface);
  margin-bottom: 10px;
}

.article-eq-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.article-eq-brand {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
}

.article-eq-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin: 4px 0 6px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-eq-price {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--price-color, #4f46e5);
  margin-top: auto;
}

/* Call to Action Box */
.article-cta-box {
  margin-top: 40px;
  padding: 30px;
  border-radius: 22px;
  background: linear-gradient(135deg, #1e1b4b, #312e81, #0f172a);
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(49, 46, 129, 0.25);
}

.article-cta-box::after {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.4), transparent 70%);
  pointer-events: none;
}

.article-cta-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0 0 8px 0;
}

.article-cta-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #cbd5e1;
  margin: 0 0 22px 0;
  max-width: 580px;
}

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

.btn-cta-wa {
  background: #25d366;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
  transition: all 0.2s ease;
}

.btn-cta-wa:hover {
  background: #20ba59;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn-cta-maps {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.btn-cta-maps:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

/* Sidebar Column */
.article-sidebar-col {
  position: sticky;
  top: 86px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-widget {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.sidebar-widget-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-info-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.85rem;
}

.sidebar-info-row:last-child {
  margin-bottom: 0;
}

.sidebar-info-icon {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.sidebar-info-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-info-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-muted);
}

.sidebar-info-val {
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.4;
}

/* Sidebar Facilities Pills */
.sidebar-facilities-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.facility-pill {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Sidebar Other Articles List */
.sidebar-articles-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sidebar-article-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  background: var(--bg-surface);
  border: 1px solid transparent;
}

.sidebar-article-item:hover {
  background: var(--bg-secondary);
  border-color: var(--border-subtle);
  transform: translateX(3px);
}

.sidebar-art-thumb {
  width: 70px;
  height: 60px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-secondary);
}

.sidebar-art-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-art-info {
  flex: 1;
  min-width: 0;
}

.sidebar-art-cat {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.sidebar-art-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Bottom Previous / Next Article Navigation */
.article-nav-prev-next {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid var(--border-subtle);
}

.article-nav-card {
  padding: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
}

.article-nav-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.article-nav-card.next {
  text-align: right;
  justify-content: flex-end;
}

.article-nav-arrow-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.article-nav-card:hover .article-nav-arrow-circle {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.article-nav-text-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.article-nav-label {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.article-nav-item-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .article-main-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .article-sidebar-col {
    position: static;
  }
  .article-equipment-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .article-main-title {
    font-size: 1.65rem;
  }
  .article-main-tagline {
    font-size: 0.95rem;
  }
  .article-meta-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .article-highlights-grid {
    grid-template-columns: 1fr;
  }
  .article-equipment-grid {
    grid-template-columns: 1fr;
  }
  .article-cta-box {
    padding: 22px 18px;
  }
  .article-cta-actions {
    flex-direction: column;
    width: 100%;
  }
  .btn-cta-wa, .btn-cta-maps {
    width: 100%;
    justify-content: center;
  }
  .article-nav-prev-next {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* ==========================================================================
   ARTICLES ARCHIVE / COLLECTION PAGE (.articles-archive-*)
   ========================================================================== */
.articles-archive-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 80px 20px;
}

.articles-archive-hero {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.08) 0%, rgba(6, 182, 212, 0.06) 50%, rgba(245, 158, 11, 0.05) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 36px 32px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .articles-archive-hero {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.15) 0%, rgba(6, 182, 212, 0.1) 50%, rgba(245, 158, 11, 0.08) 100%);
  border-color: rgba(255, 255, 255, 0.08);
}

.articles-archive-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 9999px;
  margin-bottom: 14px;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}

.articles-archive-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--text-primary);
  margin: 0 0 12px 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.articles-archive-desc {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 760px;
  margin: 0;
}

.articles-archive-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.articles-archive-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.articles-archive-meta-chip i {
  color: var(--primary);
}

/* Filter and Search Bar */
.articles-archive-toolbar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 30px;
}

.articles-archive-search {
  position: relative;
  width: 100%;
}

.articles-archive-search input {
  width: 100%;
  padding: 14px 20px 14px 48px;
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 0.94rem;
  font-family: inherit;
  outline: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.articles-archive-search input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.articles-archive-search .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.articles-archive-search .search-clear {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.articles-archive-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.articles-archive-tab {
  padding: 8px 18px;
  border-radius: 9999px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.articles-archive-tab:hover {
  border-color: var(--primary);
  color: var(--text-primary);
}

.articles-archive-tab.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.25);
}

/* Grid of Articles */
.articles-archive-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  margin-bottom: 50px;
}

.article-archive-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}

.article-archive-card:hover {
  transform: translateY(-6px);
  border-color: rgba(79, 70, 229, 0.35);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.09), 0 0 20px rgba(79, 70, 229, 0.08);
}

[data-theme="dark"] .article-archive-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 25px rgba(99, 102, 241, 0.15);
}

.article-archive-thumb {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  background: var(--bg-secondary);
}

.article-archive-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.article-archive-card:hover .article-archive-thumb img {
  transform: scale(1.06);
}

.article-archive-cat-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: rgba(15, 23, 42, 0.9);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  padding: 6px 14px;
  border-radius: 9999px;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.article-archive-time-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  background: rgba(15, 23, 42, 0.82);
  color: #f1f5f9;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.article-archive-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-archive-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.32rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 10px 0;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.article-archive-card:hover .article-archive-title {
  color: var(--primary);
}

.article-archive-excerpt {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 0 16px 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-archive-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.article-archive-highlight-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(79, 70, 229, 0.08);
  border: 1px solid rgba(79, 70, 229, 0.16);
  padding: 4px 10px;
  border-radius: 8px;
}

.article-archive-footer {
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.article-archive-author-col {
  display: flex;
  align-items: center;
  gap: 10px;
}

.article-archive-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-weight: 800;
  font-size: 0.8rem;
}

.article-archive-author-meta {
  display: flex;
  flex-direction: column;
}

.article-archive-author-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
}

.article-archive-date {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.article-archive-btn-read {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  transition: transform 0.2s ease;
}

.article-archive-card:hover .article-archive-btn-read {
  transform: translateX(4px);
}

/* Collab Info Box at bottom of Articles Archive */
.articles-collab-showcase {
  background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-secondary) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 36px 32px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
}

.collab-left-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 10px 0;
}

.collab-left-desc {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0 0 20px 0;
}

.collab-specs-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.collab-spec-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.collab-spec-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(79, 70, 229, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.collab-spec-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
}

.collab-spec-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.collab-right-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

@media (max-width: 900px) {
  .articles-archive-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .articles-collab-showcase {
    grid-template-columns: 1fr;
    padding: 24px 20px;
    gap: 24px;
  }
  .articles-archive-hero {
    padding: 26px 20px;
  }
  .articles-archive-title {
    font-size: 1.7rem;
  }
}

@media (max-width: 768px) {
  .articles-archive-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .articles-archive-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .articles-archive-tabs::-webkit-scrollbar {
    display: none;
  }
  .articles-archive-tab {
    white-space: nowrap;
    flex-shrink: 0;
  }
}

@media (max-width: 580px) {
  .articles-archive-page {
    padding: 14px 10px 90px 10px;
  }
  .articles-archive-hero {
    padding: 20px 14px;
    margin-bottom: 20px;
    border-radius: 18px;
  }
  .articles-archive-title {
    font-size: 1.25rem;
    margin-bottom: 8px;
  }
  .articles-archive-desc {
    font-size: 0.82rem;
    line-height: 1.5;
    margin-bottom: 14px;
  }
  .articles-archive-meta-row {
    gap: 6px;
  }
  .articles-archive-meta-chip {
    padding: 5px 10px;
    font-size: 0.72rem;
    gap: 6px;
  }
  .articles-archive-toolbar {
    gap: 12px;
    margin-bottom: 20px;
  }
  .articles-archive-search input {
    padding: 11px 16px 11px 42px;
    font-size: 0.86rem;
    border-radius: 14px;
  }
  .articles-archive-search .search-icon {
    left: 14px;
  }
  .articles-archive-tab {
    padding: 6px 14px;
    font-size: 0.76rem;
  }

  /* 2-Column Mobile Grid for Articles Archive */
  .articles-archive-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px;
    margin-bottom: 32px;
  }
  .article-archive-card {
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  }
  .article-archive-thumb {
    height: 125px;
  }
  .article-archive-cat-badge {
    top: 6px;
    left: 6px;
    font-size: 0.54rem;
    font-weight: 800;
    padding: 3px 7px;
    letter-spacing: 0.3px;
    max-width: calc(100% - 12px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .article-archive-time-badge {
    top: auto;
    bottom: 6px;
    right: 6px;
    font-size: 0.54rem;
    padding: 2.5px 6px;
    gap: 3px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
  .article-archive-body {
    padding: 10px 8px 10px 8px;
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  .article-archive-title {
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 4px 0;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .article-archive-excerpt {
    font-size: 0.70rem;
    line-height: 1.35;
    margin: 0;
    -webkit-line-clamp: 3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text-secondary);
  }
}

/* ==========================================================================
   3D STACK / OVERLAPPING CARD CAROUSEL SLIDER (PREMIUM SHOWCASE)
   ========================================================================== */
.stack-slider-section {
  position: relative;
  width: 100%;
  margin: 50px auto 65px auto;
  padding: 36px 24px 44px 24px;
  background: radial-gradient(circle at 50% 20%, rgba(245, 158, 11, 0.08) 0%, rgba(15, 23, 42, 0) 70%), var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl, 24px);
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

[data-theme="dark"] .stack-slider-section {
  background: radial-gradient(circle at 50% 20%, rgba(245, 158, 11, 0.12) 0%, rgba(15, 23, 42, 0) 70%), #0f172a;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.5);
}

.stack-slider-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 30px;
  gap: 20px;
  flex-wrap: wrap;
}

.stack-header-left {
  max-width: 620px;
}

.stack-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #b45309;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 9999px;
  margin-bottom: 10px;
}

[data-theme="dark"] .stack-header-badge {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(251, 191, 36, 0.35);
}

.stack-slider-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 6px 0;
  font-family: var(--font-heading, 'Outfit', sans-serif);
  letter-spacing: -0.02em;
}

.stack-slider-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* Side Navigation Arrows (Floating beside cards) */
.stack-side-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(245, 158, 11, 0.45);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 50;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45), 0 0 20px rgba(245, 158, 11, 0.25);
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.stack-side-prev {
  left: 20px;
}

.stack-side-next {
  right: 20px;
}

.stack-side-nav:hover {
  background: rgba(245, 158, 11, 0.95);
  border-color: #fbbf24;
  color: #0f172a;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 25px rgba(245, 158, 11, 0.55);
}

.stack-side-nav:active {
  transform: translateY(-50%) scale(0.95);
}

/* 3D Viewport Stage */
.stack-slider-viewport {
  position: relative;
  width: 100%;
  height: 520px;
  perspective: 1200px;
  perspective-origin: center center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  touch-action: pan-y;
  user-select: none;
  cursor: grab;
}

.stack-slider-viewport:active {
  cursor: grabbing;
}

.stack-cards-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
}

/* Individual Stack Card */
.stack-card {
  position: absolute;
  width: 320px;
  height: 480px;
  border-radius: 2.25rem;
  border: 1.5px solid rgba(245, 158, 11, 0.45);
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.25),
              0 22px 50px -12px rgba(0, 0, 0, 0.72),
              0 0 35px -5px rgba(245, 158, 11, 0.25);
  overflow: hidden;
  cursor: pointer;
  background: #111827;
  transition: transform 0.55s cubic-bezier(0.25, 1, 0.5, 1),
              opacity 0.55s ease,
              filter 0.55s ease,
              box-shadow 0.55s ease,
              border-color 0.55s ease;
  will-change: transform, opacity, filter, box-shadow;
}

.stack-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 2.25rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 24px rgba(245, 158, 11, 0.22);
  pointer-events: none;
  z-index: 5;
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

.stack-card.is-active {
  cursor: default;
  border-color: rgba(251, 191, 36, 0.85);
  box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.85),
              0 30px 65px -12px rgba(0, 0, 0, 0.85),
              0 0 50px rgba(245, 158, 11, 0.42);
}

.stack-card.is-active::after {
  border-color: rgba(251, 191, 36, 0.4);
  box-shadow: inset 0 0 30px rgba(245, 158, 11, 0.35);
}

.stack-card:hover {
  filter: brightness(1.03) !important;
}

.stack-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 2.25rem;
}

.stack-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.stack-card.is-active:hover .stack-card-img {
  transform: scale(1.04);
}

.stack-card-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.05) 40%, rgba(0, 0, 0, 0.4) 65%, rgba(0, 0, 0, 0.92) 100%);
  pointer-events: none;
  z-index: 2;
}

.stack-card-bottom {
  position: absolute;
  bottom: 22px;
  left: 16px;
  right: 16px;
  z-index: 4;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stack-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin: 0;
  font-family: var(--font-heading, 'Outfit', sans-serif);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95), 0 1px 3px rgba(0, 0, 0, 0.9);
  letter-spacing: -0.01em;
}

.stack-card-city {
  font-size: 0.82rem;
  font-weight: 600;
  color: #fbbf24;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-family: var(--font-sans, 'Plus Jakarta Sans', sans-serif);
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.95);
  opacity: 0.95;
}

/* Ambient bottom glow below slider */
.stack-slider-glow {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 480px;
  height: 60px;
  background: radial-gradient(ellipse at center, rgba(245, 158, 11, 0.25) 0%, rgba(245, 158, 11, 0) 70%);
  pointer-events: none;
  z-index: 1;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .stack-slider-viewport {
    height: 460px;
  }
  .stack-card {
    width: 270px;
    height: 410px;
    border-radius: 2rem;
  }
  .stack-card::after,
  .stack-card-inner {
    border-radius: 2rem;
  }
}

@media (max-width: 768px) {
  .stack-slider-section {
    padding: 24px 14px 34px 14px;
    margin: 36px auto 46px auto;
  }
  .stack-slider-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
  }
  .stack-slider-title {
    font-size: 1.3rem;
  }
  .stack-slider-subtitle {
    font-size: 0.82rem;
  }
  .stack-side-nav {
    width: 38px;
    height: 38px;
    background: rgba(15, 23, 42, 0.82);
  }
  .stack-side-prev {
    left: 8px;
  }
  .stack-side-next {
    right: 8px;
  }
  .stack-side-nav svg,
  .stack-side-nav i {
    width: 20px;
    height: 20px;
  }
  .stack-slider-viewport {
    height: 390px;
  }
  .stack-card {
    width: 230px;
    height: 350px;
    border-radius: 1.85rem;
  }
  .stack-card::after,
  .stack-card-inner {
    border-radius: 1.85rem;
  }
  .stack-card-bottom {
    bottom: 16px;
    left: 12px;
    right: 12px;
    gap: 3px;
  }
  .stack-card-title {
    font-size: 1.05rem;
  }
  .stack-card-city {
    font-size: 0.72rem;
  }
}

/* ==========================================================================
   PENAWARAN KHUSUS - 1:1 SQUARE ASPECT RATIO CARD SLIDER
   ========================================================================== */
#stackSliderSectionTop .stack-slider-viewport,
.stack-slider-section.ratio-1-1 .stack-slider-viewport {
  height: 400px;
}

#stackSliderSectionTop .stack-card,
.stack-slider-section.ratio-1-1 .stack-card {
  width: 340px;
  height: 340px;
  aspect-ratio: 1 / 1;
  border-radius: 1.75rem;
}

#stackSliderSectionTop .stack-card::after,
#stackSliderSectionTop .stack-card-inner,
.stack-slider-section.ratio-1-1 .stack-card::after,
.stack-slider-section.ratio-1-1 .stack-card-inner {
  border-radius: 1.75rem;
  aspect-ratio: 1 / 1;
}

#stackSliderSectionTop .stack-card-img,
.stack-slider-section.ratio-1-1 .stack-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

@media (max-width: 1024px) {
  #stackSliderSectionTop .stack-slider-viewport,
  .stack-slider-section.ratio-1-1 .stack-slider-viewport {
    height: 350px;
  }
  #stackSliderSectionTop .stack-card,
  .stack-slider-section.ratio-1-1 .stack-card {
    width: 290px;
    height: 290px;
    border-radius: 1.5rem;
  }
  #stackSliderSectionTop .stack-card::after,
  #stackSliderSectionTop .stack-card-inner,
  .stack-slider-section.ratio-1-1 .stack-card::after,
  .stack-slider-section.ratio-1-1 .stack-card-inner {
    border-radius: 1.5rem;
  }
}

@media (max-width: 768px) {
  #stackSliderSectionTop .stack-slider-viewport,
  .stack-slider-section.ratio-1-1 .stack-slider-viewport {
    height: 310px;
  }
  #stackSliderSectionTop .stack-card,
  .stack-slider-section.ratio-1-1 .stack-card {
    width: 250px;
    height: 250px;
    border-radius: 1.35rem;
  }
  #stackSliderSectionTop .stack-card::after,
  #stackSliderSectionTop .stack-card-inner,
  .stack-slider-section.ratio-1-1 .stack-card::after,
  .stack-slider-section.ratio-1-1 .stack-card-inner {
    border-radius: 1.35rem;
  }
  #stackSliderSectionTop .stack-card-bottom,
  .stack-slider-section.ratio-1-1 .stack-card-bottom {
    bottom: 14px;
    left: 10px;
    right: 10px;
  }
  #stackSliderSectionTop .stack-card-title,
  .stack-slider-section.ratio-1-1 .stack-card-title {
    font-size: 0.98rem;
  }
  #stackSliderSectionTop .stack-card-city,
  .stack-slider-section.ratio-1-1 .stack-card-city {
    font-size: 0.7rem;
  }
}

/* ==========================================================================
   SITE FOOTER (OTTEN STYLE 4-COLUMN FOOTER)
   ========================================================================== */
.site-footer {
  background-color: var(--bg-surface, #ffffff);
  border-top: 1px solid var(--border-subtle, #e5e7eb);
  color: var(--text-secondary, #4b5563);
  font-family: var(--font-sans, 'Plus Jakarta Sans', sans-serif);
  padding: 56px 0 28px 0;
  margin-top: 60px;
  position: relative;
  z-index: 10;
}

[data-theme="dark"] .site-footer {
  background-color: #0b1120;
  border-top-color: #1e293b;
  color: #94a3b8;
}

.footer-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 44px;
}

.footer-col-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary, #111827);
  font-family: var(--font-heading, 'Outfit', sans-serif);
  margin: 0 0 20px 0;
  letter-spacing: -0.01em;
}

[data-theme="dark"] .footer-col-title {
  color: #f8fafc;
}

/* Contact List */
.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.footer-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary, #4b5563);
  font-size: 0.88rem;
  text-decoration: none;
  transition: color 0.2s ease;
  line-height: 1.4;
}

[data-theme="dark"] .footer-contact-link {
  color: #94a3b8;
}

a.footer-contact-link:hover {
  color: var(--primary);
}

.footer-contact-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #6b7280;
  transition: color 0.2s ease;
}

a.footer-contact-link:hover .footer-contact-icon {
  color: var(--primary);
}

/* Social & E-Commerce Sections */
.footer-social-wrapper {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footer-social-section {
  margin-top: 0;
}

.footer-ecommerce-section {
  margin-top: 0;
}

.footer-social-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary, #111827);
  font-family: var(--font-heading, 'Outfit', sans-serif);
  margin: 0 0 12px 0;
  letter-spacing: -0.01em;
}

[data-theme="dark"] .footer-social-title {
  color: #f8fafc;
}

.footer-social-icons {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff !important;
  text-decoration: none;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}

.footer-social-btn:hover {
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

/* Specific Social Button Backgrounds */
.social-instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.social-facebook {
  background-color: #1877f2;
}

.social-youtube {
  background-color: #ff0000;
}

.social-tiktok {
  background-color: #000000;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.social-shopee {
  background-color: #ee4d2d;
}

.social-shopee:hover {
  box-shadow: 0 6px 14px rgba(238, 77, 45, 0.4);
}

.social-tokopedia {
  background-color: #03ac0e;
}

.social-tokopedia:hover {
  box-shadow: 0 6px 14px rgba(3, 172, 14, 0.4);
}

.social-tiktokshop {
  background-color: #000000;
  border: 1px solid rgba(254, 44, 85, 0.45);
}

.social-tiktokshop:hover {
  box-shadow: 0 6px 14px rgba(254, 44, 85, 0.4);
  border-color: #25f4ee;
}

.footer-social-divider {
  width: 1px;
  height: 24px;
  background-color: rgba(156, 163, 175, 0.35);
  margin: 0 3px;
  flex-shrink: 0;
}

[data-theme="dark"] .footer-social-divider {
  background-color: rgba(148, 163, 184, 0.25);
}

/* Links Columns */
.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-links-list li a {
  color: var(--text-secondary, #4b5563);
  font-size: 0.88rem;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
  line-height: 1.4;
}

[data-theme="dark"] .footer-links-list li a {
  color: #94a3b8;
}

.footer-links-list li a:hover {
  color: var(--primary);
  transform: translateX(3px);
}

/* Footer Bottom Bar */
.footer-bottom {
  border-top: 1px solid var(--border-subtle, #e5e7eb);
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-wrap: wrap;
  gap: 12px;
}

[data-theme="dark"] .footer-bottom {
  border-top-color: #1e293b;
}

.footer-copyright {
  font-size: 0.82rem;
  color: var(--text-muted, #6b7280);
  margin: 0;
  text-align: center;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 768px) {
  .site-footer {
    padding: 28px 0 14px 0;
    margin-top: 24px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-bottom: 16px;
  }
  .footer-col-title {
    margin: 0 0 12px 0;
  }
  .footer-contact-list {
    margin: 0 0 18px 0;
    gap: 10px;
  }
  .footer-col-contact {
    border-bottom: 1px solid var(--border-subtle, #e5e7eb);
    padding-bottom: 18px;
  }
  .footer-links-list {
    gap: 8px;
  }
  .footer-bottom {
    padding-top: 12px;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
  }
}

/* ==========================================================================
   MODERN CHECKOUT EXPERIENCE (Sesuai Desain Screenshot Referensi)
   Mobile-First, Theme-Adaptive, Clean & High-End E-Commerce
   ========================================================================== */
.checkout-section-card {
  background: var(--bg-surface, #ffffff);
  border: 1px solid var(--border-subtle, #e2e8f0);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
  margin-bottom: 20px;
  position: relative;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.checkout-section-card:hover {
  border-color: rgba(79, 70, 229, 0.25);
}

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

.checkout-card-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.checkout-header-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.checkout-header-icon.delivery {
  background: #fef3c7;
  color: #d97706;
}

.checkout-header-icon.notes {
  background: #ede9fe;
  color: #7c3aed;
}

.checkout-header-icon.payment {
  background: #ccfbf1;
  color: #0d9488;
}

.checkout-header-icon.summary {
  background: rgba(79, 70, 229, 0.12);
  color: var(--primary, #4f46e5);
}

.checkout-card-title {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary, #0f172a);
  margin: 0;
  letter-spacing: -0.01em;
}

/* Selection Cards (Delivery & Payment options) */
.checkout-options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checkout-option-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border: 1.5px solid var(--border-subtle, #e2e8f0);
  border-radius: 10px;
  background: var(--bg-surface, #ffffff);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.checkout-option-card:hover {
  border-color: var(--primary, #4f46e5);
  transform: translateY(-1px);
}

.checkout-option-card.active {
  border-color: var(--primary, #4f46e5);
  background: rgba(79, 70, 229, 0.035);
  box-shadow: 0 0 0 1px var(--primary, #4f46e5);
}

.custom-radio-circle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  flex-shrink: 0;
  transition: all 0.2s ease;
  background: var(--bg-surface, #ffffff);
}

.checkout-option-card.active .custom-radio-circle {
  border-color: var(--primary, #4f46e5);
}

.custom-radio-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary, #4f46e5);
  opacity: 0;
  transform: scale(0);
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.checkout-option-card.active .custom-radio-dot {
  opacity: 1;
  transform: scale(1);
}

.checkout-option-content {
  flex: 1;
}

.checkout-option-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary, #0f172a);
}

.checkout-option-subtitle {
  font-size: 0.82rem;
  color: var(--text-secondary, #64748b);
  margin-top: 4px;
  line-height: 1.45;
}

.theme-accent-link {
  color: var(--primary, #4f46e5);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.15s ease;
}

.theme-accent-link:hover {
  opacity: 0.8;
}

/* Pickup Details Subform */
.pickup-subform {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px dashed var(--border-subtle, #e2e8f0);
}

.pickup-subform-title {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-primary, #0f172a);
  margin-bottom: 12px;
}

.pickup-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 640px) {
  .pickup-fields-grid {
    grid-template-columns: 1fr;
  }
}

.field-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary, #475569);
  margin-bottom: 6px;
}

.field-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-subtle, #cbd5e1);
  border-radius: 8px;
  font-size: 0.92rem;
  background: var(--bg-surface, #ffffff);
  color: var(--text-primary, #0f172a);
  box-sizing: border-box;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.field-input:focus {
  outline: none;
  border-color: var(--primary, #4f46e5);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

/* Phone input group with prefix dropdown */
.phone-input-group {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-subtle, #cbd5e1);
  border-radius: 8px;
  background: var(--bg-surface, #ffffff);
  overflow: hidden;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.phone-input-group:focus-within {
  border-color: var(--primary, #4f46e5);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.phone-prefix-select {
  padding: 10px 12px;
  background: var(--bg-secondary, #f8fafc);
  border: none;
  border-right: 1px solid var(--border-subtle, #cbd5e1);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary, #0f172a);
  cursor: pointer;
  outline: none;
}

.phone-number-field {
  flex: 1;
  padding: 10px 14px;
  border: none;
  background: transparent;
  font-size: 0.92rem;
  color: var(--text-primary, #0f172a);
  outline: none;
}

/* Order Notes Accordion / Card */
.order-notes-accordion {
  cursor: pointer;
  user-select: none;
}

.notes-chevron-icon {
  transition: transform 0.25s ease;
  color: var(--text-muted, #94a3b8);
}

.order-notes-accordion.open .notes-chevron-icon {
  transform: rotate(90deg);
}

.order-notes-content {
  margin-top: 14px;
  display: block;
}

/* Payment Category Section */
.payment-category-heading {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted, #94a3b8);
  margin-bottom: 8px;
}

.virtual-account-banner {
  background: #fffbeb;
  border: 1px solid #fef3c7;
  border-radius: 8px;
  padding: 12px 14px;
  margin-top: 14px;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #92400e;
}

.virtual-account-banner strong {
  color: #78350f;
}

/* ==========================================================================
   ORDER SUMMARY CARD (Right Column)
   ========================================================================== */
.order-summary-card {
  position: relative;
  overflow: hidden;
  border-top: none;
}

.order-summary-top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary, #4f46e5);
}

/* Eco-packaging box */
.eco-packaging-box {
  background: var(--bg-secondary, #f8fafc);
  border: 1px dashed var(--border-subtle, #cbd5e1);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 18px;
}

.eco-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.eco-checkbox-input {
  margin-top: 3px;
  cursor: pointer;
  accent-color: var(--primary, #4f46e5);
  width: 16px;
  height: 16px;
}

.eco-checkbox-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary, #0f172a);
}

.eco-checkbox-desc {
  font-size: 0.78rem;
  color: var(--text-secondary, #64748b);
  margin-top: 2px;
  line-height: 1.4;
}

.eco-checkbox-hint {
  font-size: 0.75rem;
  color: #d97706;
  margin-top: 6px;
  font-weight: 500;
  line-height: 1.35;
}

/* Summary Items List */
.summary-items-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle, #e2e8f0);
  margin-bottom: 16px;
}

.summary-item-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.summary-item-img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle, #e2e8f0);
  background: var(--bg-surface, #ffffff);
  object-fit: cover;
  flex-shrink: 0;
}

.summary-item-details {
  flex: 1;
  min-width: 0;
}

.summary-item-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.summary-item-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary, #0f172a);
  line-height: 1.3;
}

.summary-item-price {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary, #0f172a);
  white-space: nowrap;
}

.summary-item-weight {
  font-size: 0.78rem;
  color: var(--text-muted, #94a3b8);
  margin-top: 2px;
}

.summary-item-badges-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.summary-pill-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.summary-pill-badge.primary-pill {
  background: var(--primary, #4f46e5);
  color: #ffffff;
}

.summary-pill-badge.outline-pill {
  border: 1px solid var(--border-subtle, #cbd5e1);
  color: var(--text-secondary, #64748b);
  background: transparent;
}

.summary-item-qty-row {
  font-size: 0.78rem;
  color: var(--text-muted, #94a3b8);
  margin-top: 4px;
}

/* Pricing Breakdown */
.summary-pricing-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 0;
  font-size: 0.88rem;
  color: var(--text-secondary, #475569);
}

.summary-pricing-row.total-row {
  border-top: 1px solid var(--border-subtle, #e2e8f0);
  padding-top: 12px;
  margin-top: 6px;
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--text-primary, #0f172a);
}

.summary-total-amount {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-weight: 800;
  font-size: 1.32rem;
  color: var(--text-primary, #0f172a);
}

/* Meta Information Section */
.summary-meta-block {
  margin: 18px 0 14px 0;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle, #e2e8f0);
}

.summary-meta-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted, #94a3b8);
  margin-bottom: 2px;
}

.summary-meta-value {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary, #0f172a);
  margin-bottom: 12px;
}

.summary-meta-hint {
  font-size: 0.75rem;
  color: var(--text-muted, #94a3b8);
  margin-top: -8px;
  margin-bottom: 12px;
  line-height: 1.35;
}

/* Terms & Agreement Checkbox */
.summary-terms-wrap {
  margin-bottom: 18px;
}

.terms-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-secondary, #475569);
  cursor: pointer;
  line-height: 1.45;
}

.terms-checkbox-input {
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--primary, #4f46e5);
}

.terms-disclaimer-text {
  font-size: 0.72rem;
  color: var(--text-muted, #94a3b8);
  line-height: 1.45;
  margin-top: 8px;
}

/* Place Order Primary Action Button */
.btn-place-order-main {
  width: 100%;
  padding: 14px 20px;
  background: var(--primary, #4f46e5);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 1.02rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-place-order-main:hover {
  background: var(--primary-hover, #4338ca);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

.btn-place-order-main:active {
  transform: scale(0.98);
}

/* Dark mode overrides for Modern Checkout */
[data-theme="dark"] .checkout-section-card {
  background: #0f172a;
  border-color: #1e293b;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .checkout-option-card {
  background: #1e293b;
  border-color: #334155;
}

[data-theme="dark"] .checkout-option-card.active {
  background: rgba(99, 102, 241, 0.12);
  border-color: #818cf8;
}

[data-theme="dark"] .field-input,
[data-theme="dark"] .phone-input-group {
  background: #1e293b;
  border-color: #334155;
  color: #f1f5f9;
}

[data-theme="dark"] .phone-prefix-select {
  background: #0f172a;
  border-right-color: #334155;
  color: #f1f5f9;
}

[data-theme="dark"] .eco-packaging-box {
  background: #1e293b;
  border-color: #334155;
}

[data-theme="dark"] .virtual-account-banner {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.25);
  color: #fcd34d;
}

[data-theme="dark"] .virtual-account-banner strong {
  color: #fef3c7;
}

[data-theme="dark"] .summary-item-img {
  background: #1e293b;
  border-color: #334155;
}

[data-theme="dark"] .checkout-header-icon.delivery {
  background: rgba(217, 119, 6, 0.2);
}

[data-theme="dark"] .checkout-header-icon.notes {
  background: rgba(124, 58, 237, 0.2);
}

[data-theme="dark"] .checkout-header-icon.payment {
  background: rgba(13, 148, 136, 0.2);
}

[data-theme="dark"] .checkout-header-icon.summary {
  background: rgba(99, 102, 241, 0.2);
}

/* ==========================================================================
   ORDER CANCELLATION MODAL & STATUS BADGES
   ========================================================================== */
.cancel-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  padding: 16px;
  animation: cancelFadeIn 0.2s ease-out;
}

.cancel-modal-card {
  background: var(--bg-surface, #ffffff);
  border: 1px solid var(--border-subtle, #e2e8f0);
  border-radius: 18px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  animation: cancelSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.cancel-modal-header {
  padding: 20px 22px 16px 22px;
  border-bottom: 1px solid var(--border-subtle, #e2e8f0);
  display: flex;
  align-items: center;
  gap: 14px;
}

.cancel-modal-actions {
  padding: 14px 22px 20px 22px;
  border-top: 1px solid var(--border-subtle, #e2e8f0);
  display: flex;
  gap: 10px;
}

.cancel-modal-body {
  padding: 18px 22px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.cancel-reason-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.cancel-reason-select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle, #e2e8f0);
  background: var(--bg-surface, #ffffff);
  color: var(--text-primary, #0f172a);
  font-size: 0.86rem;
  font-family: inherit;
  margin-bottom: 12px;
  outline: none;
  box-sizing: border-box;
}

.cancel-reason-select:focus {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.cancel-reason-notes {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle, #e2e8f0);
  background: var(--bg-surface, #ffffff);
  color: var(--text-primary, #0f172a);
  font-size: 0.84rem;
  font-family: inherit;
  resize: vertical;
  min-height: 64px;
  box-sizing: border-box;
  outline: none;
}

.cancel-reason-notes:focus {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.btn-danger-confirm {
  background: #dc2626 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 10px;
  padding: 10px 18px;
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition-fast, 0.2s);
}
.btn-danger-confirm:hover {
  background: #b91c1c !important;
  transform: translateY(-1px);
}

/* Cancelled hero card state */
.cancelled-hero-card {
  text-align: center;
  padding: 32px 24px;
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.08) 0%, var(--bg-surface) 60%);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.cancelled-icon-badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #ef4444;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.35);
}

.order-status-badge.status-cancelled,
.status-badge-cancelled {
  background: #fee2e2 !important;
  color: #b91c1c !important;
  border-color: #fca5a5 !important;
}

[data-theme="dark"] .order-status-badge.status-cancelled,
[data-theme="dark"] .status-badge-cancelled {
  background: rgba(239, 68, 68, 0.2) !important;
  color: #fca5a5 !important;
  border-color: rgba(239, 68, 68, 0.4) !important;
}

.btn-cancel-order {
  transition: all var(--transition-fast, 0.2s);
}
.btn-cancel-order:hover {
  background: rgba(239, 68, 68, 0.08) !important;
  border-color: #dc2626 !important;
  color: #dc2626 !important;
}

@keyframes cancelFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes cancelSlideUp {
  from { transform: translateY(18px) scale(0.96); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}