/* ============================================================
   LA Sneakers — Global Design System & User Styles
   ============================================================ */

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

/* ── Variables ──────────────────────────────────────────────── */
:root {
  --primary: #F97316;
  --primary-dark: #EA6A0A;
  --primary-light: #FED7AA;
  --primary-xlight: #FFF7ED;
  --accent: #FB923C;
  --success: #22C55E;
  --danger: #EF4444;
  --warning: #F59E0B;

  --bg: #FFFBF7;
  --surface: #FFFFFF;
  --surface-2: #FFF7ED;
  --border: #FDE8D0;
  --border-light: #FEF3E8;

  --text-dark: #1C1917;
  --text-body: #44403C;
  --text-muted: #78716C;
  --text-light: #A8A29E;

  --shadow-sm: 0 1px 3px rgba(249,115,22,0.08);
  --shadow-md: 0 4px 16px rgba(249,115,22,0.12);
  --shadow-lg: 0 8px 32px rgba(249,115,22,0.18);
  --shadow-xl: 0 16px 48px rgba(249,115,22,0.22);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 999px;

  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.15s ease;

  --header-h: 72px;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text-body);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 { color: var(--text-dark); font-weight: 700; line-height: 1.2; }
.section-title { font-size: 2rem; font-weight: 800; }
.section-subtitle { color: var(--text-muted); font-size: 1rem; margin-top: 0.5rem; }

/* ── Container ──────────────────────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 1.4rem; border-radius: var(--radius-full);
  font-size: 0.9rem; font-weight: 600; transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary); color: #fff;
  box-shadow: 0 4px 14px rgba(249,115,22,0.35);
}
.btn-primary:hover {
  background: var(--primary-dark); transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249,115,22,0.45);
}
.btn-outline {
  background: transparent; color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary-xlight); transform: translateY(-2px);
}
.btn-ghost {
  background: transparent; color: var(--text-muted);
}
.btn-ghost:hover { background: var(--border-light); color: var(--text-dark); }
.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; }
.btn-sm { padding: 0.45rem 1rem; font-size: 0.8rem; }
.btn-icon { padding: 0.6rem; border-radius: var(--radius-full); }
.btn-wa {
  background: #25D366; color: #fff;
  box-shadow: 0 4px 14px rgba(37,211,102,0.35);
}
.btn-wa:hover {
  background: #1FB855; transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,211,102,0.45);
}

/* ── Badge ──────────────────────────────────────────────────── */
.badge {
  display: inline-block; padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full); font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.badge-primary { background: var(--primary); color: #fff; }
.badge-orange { background: #FFF0E0; color: var(--primary); }
.badge-red { background: #FEE2E2; color: var(--danger); }
.badge-green { background: #DCFCE7; color: var(--success); }
.badge-blue { background: #DBEAFE; color: #2563EB; }
.badge-purple { background: #EDE9FE; color: #7C3AED; }
.badge-gray { background: var(--border); color: var(--text-muted); }

/* ══ HEADER / NAVBAR ════════════════════════════════════════ */
#header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header-h);
  background: rgba(255,251,247,0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
  overflow: hidden; /* prevent children from expanding header */
}
#header.scrolled {
  box-shadow: var(--shadow-md);
}
.navbar {
  display: flex; align-items: center; height: 100%; gap: 1rem;
  min-width: 0; /* allow flex children to shrink */
}
.nav-logo {
  display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0;
  min-width: 0; /* allow shrink if needed */
}
.nav-logo img {
  height: 38px; width: auto;
}
.nav-logo-text {
  font-size: 1.15rem; font-weight: 800; color: var(--primary);
  letter-spacing: -0.02em;
}
.nav-links {
  display: flex; gap: 0.25rem; margin-left: auto;
}
.nav-links a {
  padding: 0.45rem 0.9rem; border-radius: var(--radius-full);
  font-size: 0.9rem; font-weight: 500; color: var(--text-body);
  transition: var(--transition-fast);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--primary); background: var(--primary-xlight);
}
.nav-actions {
  display: flex; align-items: center; gap: 0.4rem;
  flex-shrink: 0; /* never shrink nav actions */
  margin-left: auto;
}
.nav-actions .btn {
  min-width: 0;
}
.cart-btn {
  position: relative; padding: 0.5rem;
  background: var(--surface); border-radius: var(--radius-full);
  border: 1.5px solid var(--border);
  color: var(--text-body); font-size: 1.1rem;
  transition: var(--transition);
}
.cart-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-xlight); }
.cart-badge {
  position: absolute; top: -5px; right: -5px;
  width: 18px; height: 18px;
  background: var(--primary); color: #fff;
  border-radius: 50%; font-size: 0.65rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg);
  opacity: 0; transform: scale(0);
  transition: var(--transition);
}
.cart-badge.visible { opacity: 1; transform: scale(1); }
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 0.5rem; }
.hamburger span { width: 22px; height: 2px; background: var(--text-body); border-radius: 2px; transition: var(--transition); }

/* ══ HERO ════════════════════════════════════════════════════ */
#hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding-top: var(--header-h);
  background: linear-gradient(135deg, #FFFBF7 0%, #FFF7ED 40%, #FEF3E8 100%);
  overflow: hidden;
  position: relative;
}
#hero::before {
  content: '';
  position: absolute; top: -100px; right: -100px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(249,115,22,0.12) 0%, transparent 70%);
  pointer-events: none;
}
#hero::after {
  content: '';
  position: absolute; bottom: -50px; left: -50px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(251,146,60,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
  align-items: center; width: 100%; position: relative; z-index: 1;
}
.hero-label {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--primary-xlight); border: 1px solid var(--primary-light);
  color: var(--primary); padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full); font-size: 0.8rem; font-weight: 600;
  margin-bottom: 1.2rem;
}
.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 900;
  line-height: 1.1; letter-spacing: -0.03em;
  margin-bottom: 1rem;
}
.hero-title span {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  color: var(--text-muted); font-size: 1.05rem; max-width: 440px;
  margin-bottom: 2rem; line-height: 1.7;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 2rem; margin-top: 3rem; padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.hero-stat-num {
  font-size: 1.6rem; font-weight: 800; color: var(--primary);
}
.hero-stat-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.1rem; }
.hero-image-wrap {
  position: relative; border-radius: var(--radius-xl);
  overflow: hidden; box-shadow: var(--shadow-xl);
}
.hero-image-wrap img {
  width: 100%; height: 480px; object-fit: cover;
}
.hero-image-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(249,115,22,0.08) 0%, transparent 60%);
}
.hero-float-card {
  position: absolute; bottom: 24px; left: 24px; right: 24px;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-md); padding: 1rem 1.2rem;
  display: flex; align-items: center; gap: 0.75rem;
  box-shadow: var(--shadow-lg);
}
.hero-float-icon { font-size: 1.5rem; }
.hero-float-label { font-size: 0.75rem; color: var(--text-muted); }
.hero-float-value { font-size: 0.9rem; font-weight: 700; color: var(--text-dark); }

/* ══ INFO STRIP ═════════════════════════════════════════════ */
#info-strip {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  padding: 1rem 0;
}
.info-strip-inner {
  display: flex; justify-content: center; align-items: center;
  gap: 2.5rem; flex-wrap: wrap;
}
.info-strip-item {
  display: flex; align-items: center; gap: 0.5rem;
  color: #fff; font-size: 0.85rem; font-weight: 500;
}
.info-strip-item .icon { font-size: 1rem; }

/* ══ CATALOG SECTION ════════════════════════════════════════ */
#catalog {
  padding: 6rem 0;
}
.catalog-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 3rem; flex-wrap: wrap; gap: 1rem;
}
.catalog-header > div:last-child {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  min-width: 0;
}
.catalog-filters {
  display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;
  margin-bottom: 2rem;
}
.filter-label { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }
.filter-btn {
  padding: 0.4rem 1rem; border-radius: var(--radius-full);
  font-size: 0.82rem; font-weight: 600;
  border: 1.5px solid var(--border);
  color: var(--text-body); background: var(--surface);
  transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  border-color: var(--primary); color: var(--primary);
  background: var(--primary-xlight);
}
.search-box {
  display: flex; align-items: center; gap: 0.5rem;
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius-full); padding: 0.45rem 1rem;
  transition: var(--transition); min-width: 220px;
}
.search-box:focus-within {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(249,115,22,0.1);
}
.search-box input {
  border: none; outline: none; background: transparent;
  font-family: inherit; font-size: 0.88rem; color: var(--text-dark);
  width: 100%;
}
.search-box .search-icon { color: var(--text-muted); font-size: 0.9rem; }
.sort-select {
  padding: 0.45rem 1rem; border-radius: var(--radius-full);
  border: 1.5px solid var(--border); background: var(--surface);
  font-family: inherit; font-size: 0.82rem; color: var(--text-body);
  outline: none; cursor: pointer; transition: var(--transition); min-width: 0;
}
.sort-select:focus { border-color: var(--primary); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.5rem;
}
.product-card {
  background: var(--surface); border-radius: var(--radius-lg);
  border: 1.5px solid var(--border-light);
  overflow: hidden; transition: var(--transition);
  cursor: pointer; position: relative;
}
.product-card:hover {
  transform: translateY(-6px); box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}
.product-card-img {
  position: relative; overflow: hidden; height: 230px;
  background: linear-gradient(135deg, var(--bg), var(--surface-2));
}
.product-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
.product-card:hover .product-card-img img { transform: scale(1.07); }
.product-card-badge {
  position: absolute; top: 12px; left: 12px;
}
.product-card-wish {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; opacity: 0; transform: translateY(-4px);
  transition: var(--transition); border: 1px solid var(--border-light);
}
.product-card:hover .product-card-wish { opacity: 1; transform: translateY(0); }
.product-card-info { padding: 1.2rem; }
.product-card-brand {
  font-size: 0.72rem; font-weight: 700; color: var(--primary);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.35rem;
}
.product-card-name {
  font-size: 0.95rem; font-weight: 700; color: var(--text-dark);
  margin-bottom: 0.5rem; line-height: 1.3;
}
.product-card-color {
  font-size: 0.78rem; color: var(--text-muted); margin-bottom: 0.75rem;
}
.product-card-price { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.price-current { font-size: 1.1rem; font-weight: 800; color: var(--primary); }
.price-original {
  font-size: 0.8rem; color: var(--text-light);
  text-decoration: line-through;
}
.product-card-footer {
  display: flex; align-items: center; justify-content: space-between;
}
.product-card-stock { font-size: 0.75rem; color: var(--text-muted); }
.product-card-stock.low { color: var(--warning); font-weight: 600; }
.product-card-add {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; transition: var(--transition);
  box-shadow: 0 3px 10px rgba(249,115,22,0.3);
}
.product-card-add:hover {
  background: var(--primary-dark); transform: scale(1.1);
}
.no-results {
  text-align: center; padding: 4rem 1rem; color: var(--text-muted);
  grid-column: 1 / -1;
}
.no-results-icon { font-size: 3rem; margin-bottom: 1rem; }

/* Loading state (async Supabase fetch) */
.loading-state {
  grid-column: 1 / -1; text-align: center;
  padding: 5rem 1rem; color: var(--text-muted);
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
}
.loading-spinner {
  width: 44px; height: 44px; border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ══ PRODUCT MODAL ══════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(28,25,23,0.55);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  opacity: 0; pointer-events: none; transition: var(--transition);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--surface); border-radius: var(--radius-xl);
  max-width: 820px; width: 100%; max-height: 90vh;
  overflow-y: auto; position: relative;
  transform: scale(0.92) translateY(20px);
  transition: var(--transition);
  box-shadow: 0 24px 64px rgba(0,0,0,0.18);
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }
.modal-close {
  position: absolute; top: 1rem; right: 1rem; z-index: 10;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg); border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--text-muted);
  transition: var(--transition);
}
.modal-close:hover { background: var(--danger); color: #fff; border-color: var(--danger); }
.modal-body { display: grid; grid-template-columns: 1fr 1fr; }
.modal-img {
  height: 400px; background: linear-gradient(135deg, var(--bg), var(--surface-2));
  border-radius: var(--radius-xl) 0 0 var(--radius-xl); overflow: hidden;
}
.modal-img img { width: 100%; height: 100%; object-fit: cover; }
.modal-info { padding: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.modal-brand {
  font-size: 0.78rem; font-weight: 700; color: var(--primary);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.modal-name { font-size: 1.5rem; font-weight: 800; line-height: 1.2; }
.modal-price-row { display: flex; align-items: center; gap: 0.75rem; }
.modal-price { font-size: 1.6rem; font-weight: 800; color: var(--primary); }
.modal-price-orig { font-size: 0.95rem; color: var(--text-light); text-decoration: line-through; }
.modal-discount {
  background: var(--danger); color: #fff;
  padding: 0.15rem 0.5rem; border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 700;
}
.modal-desc { font-size: 0.9rem; color: var(--text-muted); line-height: 1.65; }
.modal-divider { height: 1px; background: var(--border-light); }
.modal-size-label { font-size: 0.82rem; font-weight: 600; color: var(--text-dark); margin-bottom: 0.5rem; }
.size-grid {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.size-btn {
  width: 44px; height: 38px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); background: var(--bg);
  font-size: 0.82rem; font-weight: 600; color: var(--text-body);
  transition: var(--transition-fast);
}
.size-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-xlight); }
.size-btn.selected { border-color: var(--primary); background: var(--primary); color: #fff; }
.modal-actions { display: flex; gap: 0.75rem; margin-top: auto; }
.modal-actions .btn { flex: 1; justify-content: center; }
.qty-control {
  display: flex; align-items: center; gap: 0.5rem;
}
.qty-btn {
  width: 32px; height: 32px; border-radius: var(--radius-full);
  border: 1.5px solid var(--border); background: var(--bg);
  font-size: 1rem; display: flex; align-items: center; justify-content: center;
  transition: var(--transition-fast);
}
.qty-btn:hover { border-color: var(--primary); background: var(--primary-xlight); }
.qty-val { font-size: 0.95rem; font-weight: 700; min-width: 24px; text-align: center; }

/* ══ CART DRAWER ════════════════════════════════════════════ */
.cart-overlay {
  position: fixed; inset: 0; z-index: 1500;
  background: rgba(28,25,23,0.45);
  opacity: 0; pointer-events: none; transition: var(--transition);
}
.cart-overlay.open { opacity: 1; pointer-events: all; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 1600;
  width: 400px; max-width: 95vw;
  background: var(--surface); box-shadow: -8px 0 40px rgba(0,0,0,0.12);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: var(--transition);
}
.cart-drawer.open { transform: translateX(0); }
.cart-header {
  padding: 1.5rem; border-bottom: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: space-between;
}
.cart-title { font-size: 1.1rem; font-weight: 800; }
.cart-close {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--bg); border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; color: var(--text-muted); transition: var(--transition);
}
.cart-close:hover { background: var(--danger); color: #fff; border-color: var(--danger); }
.cart-items { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.75rem; }
.cart-empty {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 1rem; color: var(--text-muted);
  padding: 3rem 1rem;
}
.cart-empty-icon { font-size: 3.5rem; opacity: 0.4; }
.cart-item {
  display: flex; gap: 0.75rem; padding: 0.9rem;
  background: var(--bg); border-radius: var(--radius-md);
  border: 1px solid var(--border-light); align-items: flex-start;
}
.cart-item-img {
  width: 68px; height: 68px; border-radius: var(--radius-sm);
  object-fit: cover; flex-shrink: 0;
  background: var(--surface-2);
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 0.88rem; font-weight: 700; color: var(--text-dark); margin-bottom: 0.2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-meta { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.cart-item-row { display: flex; align-items: center; justify-content: space-between; }
.cart-item-price { font-size: 0.9rem; font-weight: 700; color: var(--primary); }
.cart-item-remove {
  width: 26px; height: 26px; border-radius: 50%;
  background: #FEE2E2; color: var(--danger);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; transition: var(--transition-fast);
  flex-shrink: 0;
}
.cart-item-remove:hover { background: var(--danger); color: #fff; }
.cart-footer {
  padding: 1.25rem; border-top: 1px solid var(--border-light);
}
.cart-total-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1rem;
}
.cart-total-label { font-size: 0.9rem; color: var(--text-muted); }
.cart-total-val { font-size: 1.3rem; font-weight: 800; color: var(--primary); }
.cart-footer .btn { width: 100%; justify-content: center; }

/* ══ ABOUT / KEUNGGULAN ═════════════════════════════════════ */
#keunggulan {
  padding: 6rem 0;
  background: linear-gradient(135deg, var(--surface-2) 0%, var(--bg) 100%);
}
.keunggulan-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem; margin-top: 3rem;
}
.keunggulan-card {
  background: var(--surface); border-radius: var(--radius-lg);
  padding: 2rem 1.5rem; text-align: center;
  border: 1.5px solid var(--border-light); transition: var(--transition);
}
.keunggulan-card:hover {
  border-color: var(--primary-light); transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.keunggulan-icon {
  width: 56px; height: 56px; border-radius: var(--radius-md);
  background: var(--primary-xlight); display: flex; align-items: center;
  justify-content: center; font-size: 1.6rem; margin: 0 auto 1.2rem;
}
.keunggulan-title { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.keunggulan-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

/* ══ CONTACT SECTION ════════════════════════════════════════ */
#kontak {
  padding: 6rem 0;
}
.kontak-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
  align-items: center; margin-top: 3rem;
}
.kontak-info { display: flex; flex-direction: column; gap: 1.25rem; }
.kontak-item {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.2rem; background: var(--surface);
  border-radius: var(--radius-md); border: 1.5px solid var(--border-light);
  transition: var(--transition);
}
.kontak-item:hover { border-color: var(--primary-light); box-shadow: var(--shadow-sm); }
.kontak-item-icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: var(--primary-xlight); display: flex; align-items: center;
  justify-content: center; font-size: 1.2rem; flex-shrink: 0;
}
.kontak-item-label { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.2rem; }
.kontak-item-val {
  font-size: 0.95rem; font-weight: 600; color: var(--text-dark);
  overflow-wrap: anywhere;
}
.kontak-cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: var(--radius-xl); padding: 3rem;
  text-align: center; color: #fff;
}
.kontak-cta h3 { font-size: 1.6rem; color: #fff; margin-bottom: 0.75rem; }
.kontak-cta p { opacity: 0.85; margin-bottom: 1.75rem; font-size: 0.95rem; }
.kontak-cta .btn-wa { background: rgba(255,255,255,0.2); backdrop-filter: blur(8px); color: #fff; border: 1.5px solid rgba(255,255,255,0.35); box-shadow: none; }
.kontak-cta .btn-wa:hover { background: rgba(255,255,255,0.3); }

/* ══ FOOTER ══════════════════════════════════════════════════ */
#footer {
  background: var(--text-dark); color: rgba(255,255,255,0.75);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand { display: flex; flex-direction: column; gap: 1rem; }
.footer-logo { display: flex; align-items: center; gap: 0.85rem; }
.footer-logo img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  object-position: center 34%;
  border-radius: 16px;
  background: #fff;
  padding: 0.3rem;
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
  flex-shrink: 0;
}
.footer-logo-text { font-size: 1.1rem; font-weight: 800; color: #fff; }
.footer-tagline { font-size: 0.875rem; line-height: 1.6; max-width: 260px; }
.footer-heading { font-size: 0.85rem; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { font-size: 0.875rem; transition: var(--transition-fast); }
.footer-links a:hover { color: var(--primary); }
.footer-divider { height: 1px; background: rgba(255,255,255,0.1); margin-bottom: 1.5rem; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.footer-bottom p { font-size: 0.8rem; }
.footer-socials { display: flex; gap: 0.75rem; }
.footer-social {
  width: 36px; height: 36px; border-radius: var(--radius-full);
  background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; transition: var(--transition-fast); color: rgba(255,255,255,0.75);
}
.footer-social svg {
  width: 18px;
  height: 18px;
  display: block;
}
.footer-social:hover { background: var(--primary); color: #fff; }

/* ══ TOAST ═══════════════════════════════════════════════════ */
.toast-container {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999;
  display: flex; flex-direction: column; gap: 0.6rem;
  pointer-events: none;
}
.toast {
  background: var(--text-dark); color: #fff;
  padding: 0.75rem 1.25rem; border-radius: var(--radius-md);
  font-size: 0.875rem; font-weight: 500;
  display: flex; align-items: center; gap: 0.6rem;
  box-shadow: var(--shadow-lg);
  transform: translateX(120%); opacity: 0;
  transition: var(--transition); pointer-events: none;
  max-width: 320px;
}
.toast.show { transform: translateX(0); opacity: 1; }
.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--danger); }
.toast.info { border-left: 4px solid var(--primary); }

/* ══ BACK TO TOP ════════════════════════════════════════════ */
#back-to-top {
  position: fixed; bottom: 1.5rem; left: 1.5rem; z-index: 999;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none; transform: scale(0.8);
  transition: var(--transition);
}
#back-to-top.visible { opacity: 1; pointer-events: all; transform: scale(1); }
#back-to-top:hover { background: var(--primary-dark); transform: scale(1.05); }

/* ══ RESPONSIVE ═════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .container { padding: 0 1rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-image-wrap { display: none; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .navbar { gap: 0.6rem; }
  .nav-logo-text { font-size: 1rem; }
  .nav-actions { gap: 0.3rem; }
  .nav-actions .btn-sm { padding: 0.45rem 0.8rem; }

  /* Mobile menu — slide down from header */
  .nav-menu-mobile {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: rgba(255,251,247,0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 1rem 1.5rem 1.5rem;
    display: flex; flex-direction: column; gap: 0.5rem;
    border-bottom: 2px solid var(--border);
    z-index: 999;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    /* hidden state */
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), opacity 0.3s ease;
  }
  .nav-menu-mobile.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .nav-menu-mobile a {
    padding: 0.75rem 1rem; border-radius: var(--radius-md);
    font-weight: 600; color: var(--text-dark);
    display: block; transition: var(--transition-fast);
    border: 1px solid transparent;
  }
  .nav-menu-mobile a:hover {
    background: var(--primary-xlight);
    color: var(--primary);
    border-color: var(--primary-light);
  }

  .modal-body { grid-template-columns: 1fr; }
  .modal-img { height: 260px; border-radius: var(--radius-xl) var(--radius-xl) 0 0; }
  .modal {
    width: calc(100vw - 2rem);
    max-height: calc(100vh - 2rem);
  }
  .kontak-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .hero-stats { gap: 1.25rem; flex-wrap: wrap; }
  .info-strip-inner { gap: 1rem; }

  /* Catalog search/sort stack on mobile */
  .catalog-header { flex-direction: column; align-items: flex-start; }
  .catalog-header > div:last-child {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .search-box,
  .sort-select { min-width: unset; width: 100%; }
}

@media (max-width: 480px) {
  :root { --header-h: 60px; }
  .container { padding: 0 0.85rem; }
  .section-title { font-size: 1.6rem; }
  .hero-title { font-size: 2rem; }
  .hero-desc { font-size: 0.95rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .cart-drawer { width: 100%; }
  .navbar { gap: 0.45rem; }
  .nav-logo { gap: 0.35rem; }
  .nav-actions .btn-sm {
    padding: 0.4rem 0.7rem;
    font-size: 0.74rem;
  }

  /* Navbar: shrink WA button to icon only on very small screens */
  .nav-wa-text { display: none; }
  .nav-logo-text { font-size: 0.92rem; }
  .nav-logo img { height: 28px; }

  /* Hero adjustments */
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-stats { flex-wrap: wrap; gap: 1rem; }
  .hero-stat-num { font-size: 1.35rem; }
  .hero-stat-label { font-size: 0.75rem; }

  /* Info strip: 2 per row */
  .info-strip-inner {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem;
    justify-items: stretch;
  }
  .info-strip-item {
    min-width: 0;
    width: 100%;
  }
  .info-strip-item span:last-child {
    overflow-wrap: anywhere;
  }

  /* Modal: full screen feel */
  .modal { border-radius: var(--radius-lg); }
  .modal-info { padding: 1.25rem; }
  .modal-name { font-size: 1.2rem; }
  .modal-price { font-size: 1.3rem; }
  .modal-actions { flex-direction: column; }
  .modal-actions .btn { width: 100%; justify-content: center; }

  /* Cart footer button */
  .cart-footer .btn { font-size: 0.9rem; }
  .kontak-item-val { font-size: 0.92rem; }
  .footer-logo { align-items: flex-start; }
  .footer-logo-text { font-size: 1rem; }

  /* Catalog filter scroll */
  .catalog-filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 0.5rem; }
  .catalog-filters::-webkit-scrollbar { height: 3px; }
  .filter-btn { white-space: nowrap; flex-shrink: 0; }
  .filter-label { flex-shrink: 0; }
}
