/* ============================================================
   Aldo Solution E-Commerce — Premium Modern Design System
   Pure CSS (Mobile-First & Fully Responsive)
   ============================================================ */

:root {
  /* White & Light Neutral Color Palette */
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-hover: #f1f5f9;
  --bg-accent: #eff6ff;

  /* Typography Colors */
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-white: #ffffff;

  /* Primary Accent & Action Colors */
  --primary: #2563eb;
  /* Sleek Royal Blue */
  --primary-hover: #1d4ed8;
  --primary-light: #dbeafe;

  --secondary: #0f172a;
  /* Dark Navy */
  --accent: #f59e0b;
  /* Warm Amber/Gold */

  /* Status Colors */
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --price: #e11d48;
  /* Crimson Price Tag */

  /* Borders & Dividers */
  --border: #e2e8f0;
  --border-dark: #cbd5e1;

  /* Modern Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Radius & Transitions */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);

  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-hover);
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ---------- Full-width Outer Strips ---------- */
.topbar,
.top-bar,
.header-main,
.main-header,
.cat-nav-strip,
.nav-bar {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
}

/* ---------- Aligned Inner Containers ---------- */
.container,
.topbar-inner,
.header-inner {
  max-width: 1200px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  box-sizing: border-box;
}

/* ---------- Top Announcement Bar ---------- */
.topbar {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-muted);
  padding: 0.55rem 0;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.topbar-divider {
  color: var(--border-dark);
}

.topbar-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.topbar-links a {
  color: var(--text-muted);
  font-weight: 500;
}

.topbar-links a:hover {
  color: var(--primary);
}

.topbar-admin-link {
  color: var(--primary) !important;
  font-weight: 600 !important;
  background: var(--bg-accent);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--primary-light);
}

/* ---------- Main Header ---------- */
.header-main {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem;
}

/* Brand Logo (Pure Text) */
.brand-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none !important;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
}

.brand-name {
  font-size: 2rem !important;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.6px;
  line-height: 1;
}

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

/* Search Bar (Unified & Clean) */
.search-wrapper {
  flex: 1;
  max-width: 580px;
}

.search-box {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: var(--transition);
  height: 46px;
}

.search-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.search-select {
  border: none;
  background: #f8fafc;
  padding: 0 1.25rem;
  height: 100%;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  border-right: 1px solid var(--border);
  outline: none;
  cursor: pointer;
  max-width: 160px;
}

.search-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  gap: 0.6rem;
  height: 100%;
}

.search-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0;
  font-size: 0.875rem;
  color: var(--text-main);
  outline: none;
  height: 100%;
}

.search-btn {
  background: var(--primary);
  color: white;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  transition: var(--transition);
}

.search-btn:hover {
  background: var(--primary-hover);
}

/* Header Action Buttons (Masuk & Keranjang) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem 0.875rem 0.45rem 0.5rem;
  border-radius: var(--radius-md);
  color: var(--text-main);
  background: #ffffff;
  border: 1px solid var(--border);
  transition: var(--transition);
  text-decoration: none !important;
  box-shadow: var(--shadow-sm);
}

.action-btn:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

/* Account Dropdown */
.account-dropdown-wrap {
  position: relative;
  display: inline-block;
}

.account-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 280px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 12px);
  box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.12), 0 4px 10px -2px rgba(15, 23, 42, 0.05);
  padding: 0.5rem;
  z-index: 200;
  display: none;
  animation: dropdownIn 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.account-dropdown-wrap:hover .account-dropdown-menu,
.account-dropdown-wrap:focus-within .account-dropdown-menu {
  display: block;
}

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

.dropdown-header {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  padding: 0.5rem 0.75rem 0.35rem;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 0.35rem;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-md, 8px);
  color: var(--text-main);
  text-decoration: none !important;
  transition: var(--transition);
}

.dropdown-item:hover {
  background: var(--bg-accent);
  transform: translateX(2px);
}

.dropdown-item .item-icon {
  font-size: 1.35rem;
  flex-shrink: 0;
}

.dropdown-item .item-text {
  display: flex;
  flex-direction: column;
}

.dropdown-item .item-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-main);
}

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

.dropdown-item .item-desc {
  font-size: 0.725rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

.action-icon-circle {
  width: 38px;
  height: 38px;
  background: var(--bg-page);
  color: var(--text-main);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: var(--transition);
}

.action-btn:hover .action-icon-circle {
  background: var(--bg-accent);
  color: var(--primary);
}

.action-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.action-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

.action-main {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-main);
}

.cart-badge-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--price);
  color: white;
  font-size: 0.68rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
}

/* ---------- Category Nav Strip ---------- */
.cat-nav-strip {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

.cat-nav-list {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  overflow-x: auto;
  white-space: nowrap;
  padding: 0.75rem 0;
  scrollbar-width: none;
}

.cat-nav-list::-webkit-scrollbar {
  display: none;
}

.cat-nav-item {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  background: #f8fafc;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
}

.cat-nav-item:hover,
.cat-nav-item.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* ---------- Hero Banner Slider ---------- */
.hero-section {
  padding: 2.25rem 0 1.25rem;
}

.hero-slider {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #ffffff;
  border: 1px solid var(--border);
}

.hero-slide {
  display: none;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  padding: 3.5rem 4rem;
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
  min-height: 340px;
}

.hero-slide.active {
  display: grid;
}

.hero-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
  margin-bottom: 0.875rem;
  letter-spacing: -0.5px;
}

.hero-highlight {
  color: var(--primary);
}

.hero-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
  max-width: 460px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary);
  color: white;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9375rem;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  transition: var(--transition);
}

.hero-btn:hover {
  background: var(--primary-hover);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

.hero-graphic {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 8rem;
  user-select: none;
}

/* Slider Controls */
.slider-controls {
  position: absolute;
  bottom: 1.25rem;
  right: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: #cbd5e1;
  cursor: pointer;
  transition: var(--transition);
}

.slider-dot.active {
  width: 28px;
  background: var(--primary);
}

/* ---------- Trust Badges Bar ---------- */
.trust-bar {
  padding: 1.5rem 0 2.25rem;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.trust-item {
  background: #ffffff;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.trust-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.trust-icon {
  width: 44px;
  height: 44px;
  background: var(--bg-accent);
  color: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.trust-text h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
}

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

/* ---------- Section Titles ---------- */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.3px;
}

.section-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* ---------- Brands Showcase Grid ---------- */
.brands-section {
  padding: 1rem 0 2.5rem;
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.brand-card {
  background: #ffffff;
  padding: 1.25rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--transition);
}

.brand-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.brand-logo-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 0.75rem;
  border-radius: var(--radius-sm);
}

.brand-logo-placeholder {
  width: 60px;
  height: 60px;
  background: #f1f5f9;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.brand-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
}

.brand-slug {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ---------- Categories Cards Grid ---------- */
.categories-section {
  padding: 1rem 0 2.5rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.category-card {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: var(--transition);
}

.category-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.category-icon-box {
  width: 48px;
  height: 48px;
  background: #eff6ff;
  color: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.category-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.category-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 1rem;
}

.category-arrow {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* ---------- Main Products Section ---------- */
.products-section {
  padding: 1rem 0 4rem;
}

/* Filter & Sort Header Bar */
.filter-bar {
  background: #ffffff;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
}

.filter-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-pill {
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  background: #f8fafc;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
}

.filter-pill:hover,
.filter-pill.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.sort-select {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  font-size: 0.84rem;
  color: var(--text-main);
  background: #ffffff;
  outline: none;
  cursor: pointer;
}

/* Product Cards Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}

.product-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.product-thumb-wrap {
  width: 100%;
  height: 200px;
  background: #f8fafc;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

.product-img-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--text-light);
  background: #f1f5f9;
}

.product-badge-wrap {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: flex;
  gap: 0.35rem;
}

.badge {
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-brand {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.badge-cat {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.product-details {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.35rem;
  line-height: 1.35;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-desc-snippet {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.875rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-meta {
  margin-top: auto;
  padding-top: 0.875rem;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

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

.product-stock {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--success);
}

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

.product-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 0 1.25rem 1.25rem;
}

.btn-detail {
  padding: 0.55rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-dark);
  color: var(--text-main);
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
  background: #ffffff;
  transition: var(--transition);
}

.btn-detail:hover {
  background: var(--bg-hover);
}

.btn-buy {
  padding: 0.55rem;
  border-radius: var(--radius-sm);
  border: none;
  color: white;
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
  background: var(--primary);
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
  transition: var(--transition);
}

.btn-buy:hover {
  background: var(--primary-hover);
}

/* Empty Results State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  grid-column: 1 / -1;
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* ---------- Modal Detail Produk ---------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-content-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 720px;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
  animation: modalIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }

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

.modal-header-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: #f1f5f9;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
}

.modal-header-btn:hover {
  background: #e2e8f0;
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
}

.modal-img-container {
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  border-right: 1px solid var(--border);
}

.modal-details {
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

/* ---------- Footer ---------- */
.footer-main {
  background: #ffffff;
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
  margin-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.65rem;
}

.footer-col ul li a {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer-col ul li a:hover {
  color: var(--primary);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ============================================================
   MOBILE FIRST & RESPONSIVE BREAKPOINTS
   ============================================================ */

/* Sticky Bottom Navigation Bar (Default Hidden on Desktop) */
.bottom-nav {
  display: none;
}

@media (max-width: 1024px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .header-inner {
    gap: 1.25rem;
  }

  .search-select {
    max-width: 130px;
  }

  /* 1. Sembunyikan top utility bar non-esensial di mobile & tablet */
  .topbar {
    display: none !important;
  }

  /* 2. Tambahkan ruang padding-bottom agar konten halaman tidak tertutup bottom nav */
  body {
    padding-bottom: 68px;
  }

  /* 3. Sticky Bottom Navigation Bar */
  .bottom-nav {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: #ffffff;
    border-top: 1px solid var(--border);
    height: 60px;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
    align-items: center;
    justify-content: space-around;
    padding-bottom: env(safe-area-inset-bottom);
  }

  .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 100%;
    color: #64748b;
    font-size: 0.725rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
  }

  .bottom-nav-item svg {
    margin-bottom: 2px;
    transition: var(--transition);
  }

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

  .bottom-nav-cart-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .bottom-cart-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    background: #ef4444;
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    min-width: 16px;
    height: 16px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid white;
  }
}

@media (max-width: 880px) {
  .search-select {
    display: none;
    /* Hide category select inside search bar on tablet/mobile */
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .topbar {
    font-size: 0.75rem;
  }

  .topbar-info {
    gap: 0.4rem;
  }

  .topbar-divider {
    display: none;
  }

  .topbar-links {
    gap: 0.75rem;
  }

  /* Header mobile layout: Logo + Actions on row 1, Search full-width on row 2 */
  .header-inner {
    flex-wrap: wrap;
    padding: 0.75rem 0;
    gap: 0.75rem;
  }

  .brand-name {
    font-size: 1.2rem;
  }

  .search-wrapper {
    order: 3;
    max-width: 100%;
    width: 100%;
    margin-top: 0.15rem;
  }

  .search-box {
    height: 42px;
  }

  .header-actions {
    gap: 0.5rem;
  }

  .action-btn {
    padding: 0.35rem 0.6rem;
  }

  .action-text {
    display: none;
    /* Icon only on mobile to save space */
  }

  /* Hero & Trust Section Mobile */
  .hero-slide {
    grid-template-columns: 1fr;
    padding: 2.25rem 1.25rem 3.5rem;
    min-height: auto;
    text-align: center;
  }

  .hero-btn {
    margin-bottom: 0.875rem;
  }

  .slider-controls {
    bottom: 0.85rem;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  .hero-graphic {
    display: none;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-desc {
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .trust-item {
    padding: 0.875rem;
    gap: 0.75rem;
  }

  .trust-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .trust-text h4 {
    font-size: 0.8125rem;
  }

  .trust-text p {
    font-size: 0.7rem;
  }

  /* Products & Filtering Mobile */
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 0.875rem;
  }

  .sort-select {
    width: 100%;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    /* 2 columns on mobile grid */
    gap: 0.875rem;
  }

  .product-card {
    border-radius: var(--radius-md);
  }

  .product-thumb-wrap {
    height: 140px;
  }

  .product-details {
    padding: 0.75rem;
  }

  .product-name {
    font-size: 0.85rem;
  }

  .product-price {
    font-size: 0.95rem;
  }

  .product-actions {
    padding: 0 0.75rem 0.75rem;
    gap: 0.35rem;
  }

  .btn-detail,
  .btn-buy {
    padding: 0.45rem 0.25rem;
    font-size: 0.75rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .modal-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .topbar-inner {
    flex-direction: column;
    gap: 0.25rem;
    text-align: center;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}