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

/* ===================== CSS VARIABLES ===================== */
:root {
  --radius: 0.625rem;
  --primary: #0F2A47;
  --primary-foreground: #ffffff;
  --gold: #D4A84B;
  --gold-foreground: #1e293b;
  --background: #ffffff;
  --foreground: #0f172a;
  --card: #ffffff;
  --muted: #f1f5f9;
  --muted-foreground: #64748b;
  --border: #e2e8f0;
  --secondary: #f1f5f9;
  --destructive: #ef4444;
  --font-sans: "Inter", system-ui, sans-serif;
  --font-display: "Plus Jakarta Sans", "Inter", sans-serif;
}

/* ===================== RESET ===================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: var(--font-sans); background: var(--background); color: var(--foreground); line-height: 1.5; overflow-x: hidden; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); letter-spacing: -0.025em; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; }
button { cursor: pointer; font-family: var(--font-sans); }
input, select, textarea { font-family: var(--font-sans); }

/* ===================== LAYOUT ===================== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ===================== NAVBAR ===================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.navbar-inner {
  display: flex;
  height: 4rem;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.logo-icon {
  width: 2.25rem;
  height: 2.25rem;
  background: var(--primary);
  border-radius: 0.5rem;
  display: grid;
  place-items: center;
  color: white;
  font-size: 1rem;
  flex-shrink: 0;
}
.logo-text-main {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--primary);
  line-height: 1.2;
}
.logo-text-sub {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-foreground);
  line-height: 1;
}
.navbar-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: background 0.15s, color 0.15s;
}
.nav-link:hover { background: var(--secondary); color: var(--primary); }
.nav-link.active { background: var(--secondary); color: var(--primary); font-weight: 600; }
.mobile-menu-wrapper { display: flex; align-items: center; justify-content: space-between; flex: 1; margin-left: 2rem; }
.mobile-menu-toggle { display: none; background: transparent; border: none; font-size: 1.25rem; color: var(--primary); cursor: pointer; padding: 0.5rem; }
.mobile-overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.5); backdrop-filter: blur(4px); z-index: 998; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }

/* ===================== MOBILE DRAWER ===================== */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  max-width: 85vw;
  height: 100%;
  height: 100dvh;
  background: white;
  z-index: 999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -8px 0 30px rgba(15, 42, 71, 0.12);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  flex-shrink: 0;
}
.mobile-drawer-close {
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 0.5rem;
  border: none;
  background: var(--secondary);
  color: var(--primary);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.mobile-drawer-close:hover {
  background: var(--primary);
  color: white;
}
.mobile-drawer-divider {
  height: 1px;
  background: var(--border);
  margin: 0 1.25rem;
  flex-shrink: 0;
}
.mobile-drawer-nav {
  display: flex;
  flex-direction: column;
  padding: 0.75rem;
  gap: 0.25rem;
  flex-shrink: 0;
}
.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}
.mobile-nav-link i {
  width: 1.25rem;
  text-align: center;
  font-size: 0.9rem;
}
.mobile-nav-link:hover {
  background: var(--secondary);
  color: var(--primary);
}
.mobile-nav-link.active {
  background: var(--secondary);
  color: var(--primary);
  font-weight: 600;
}
.mobile-cart-count {
  margin-left: auto;
  background: var(--gold);
  color: var(--gold-foreground);
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 1.25rem;
  height: 1.25rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.3rem;
}
.mobile-drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem 1.5rem;
  flex-shrink: 0;
}
.mobile-drawer-actions .btn-block {
  width: 100%;
  justify-content: center;
  padding: 0.625rem 1rem;
}

/* Drawer open state */
body.mobile-menu-open {
  overflow: hidden !important;
  touch-action: none;
}
body.mobile-menu-open .mobile-drawer {
  transform: translateX(0);
}
body.mobile-menu-open .mobile-overlay {
  opacity: 1;
  pointer-events: all;
}

/* Hide desktop-only on mobile */
.desktop-only { display: flex; align-items: center; gap: 0.5rem; }

.navbar-actions { display: flex; align-items: center; gap: 0.5rem; }
.cart-btn {
  position: relative;
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 0.375rem;
  color: var(--muted-foreground);
  background: transparent;
  border: none;
  transition: background 0.15s;
}
.cart-btn:hover { background: var(--secondary); color: var(--primary); }
.cart-badge {
  position: absolute;
  top: -2px; right: -2px;
  background: var(--gold);
  color: var(--gold-foreground);
  font-size: 0.625rem;
  font-weight: 700;
  min-width: 1.1rem; height: 1.1rem;
  border-radius: 9999px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 0.2rem;
}

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.375rem;
  font-size: 0.875rem; font-weight: 500; white-space: nowrap;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid transparent;
  transition: all 0.15s;
  cursor: pointer;
}
.btn-sm  { height: 2rem;   padding: 0 0.75rem; font-size: 0.8125rem; }
.btn-md  { height: 2.25rem; padding: 0 1rem; }
.btn-lg  { height: 2.75rem; padding: 0 1.5rem; font-size: 1rem; }
.btn-xl  { height: 3rem;   padding: 0 2rem; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: #0a1f36; }
.btn-gold { background: var(--gold); color: var(--gold-foreground); }
.btn-gold:hover { background: #c49a3e; }
.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--foreground);
}
.btn-outline:hover { background: var(--secondary); }
.btn-outline-white {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.3);
  color: white;
}
.btn-outline-white:hover { background: rgba(255,255,255,0.12); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--foreground); }
.btn-ghost:hover { background: var(--secondary); }
.btn-danger-outline { background: transparent; border-color: #fecaca; color: var(--destructive); }
.btn-danger-outline:hover { background: #fee2e2; }

/* ===================== CARDS ===================== */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.card-dashed { border-style: dashed; }
.card-glass {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(12px);
  border-color: rgba(255,255,255,0.1);
}
.card-body { padding: 1.5rem; }
.card-p5 { padding: 1.25rem; }

/* ===================== FORMS ===================== */
.form-group { margin-bottom: 1rem; }
.form-label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.375rem; }
.form-control {
  width: 100%;
  height: 2.5rem;
  padding: 0 0.75rem;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid var(--border);
  background: var(--background);
  font-size: 0.875rem;
  color: var(--foreground);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px rgba(15,42,71,0.1); }
textarea.form-control { height: auto; padding: 0.625rem 0.75rem; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2364748b'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.6rem center; background-size: 1rem; padding-right: 2.2rem; }
.search-wrapper { position: relative; flex: 1; }
.search-icon {
  position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%);
  color: var(--muted-foreground); pointer-events: none; font-size: 0.875rem;
}
.search-wrapper .form-control { padding-left: 2.25rem; }

/* ===================== BADGES ===================== */
.badge {
  display: inline-flex; align-items: center;
  border-radius: 9999px; padding: 0.125rem 0.5rem;
  font-size: 0.6875rem; font-weight: 600; white-space: nowrap;
}
.badge-gold     { background: rgba(212,168,75,.12); color: #b8922e; }
.badge-navy     { background: rgba(15,42,71,.1);   color: var(--primary); }
.badge-green    { background: #dcfce7; color: #166534; }
.badge-red      { background: #fee2e2; color: #991b1b; }
.badge-gray     { background: var(--secondary); color: var(--muted-foreground); }

/* ===================== TOAST ===================== */
#toast-container { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999; display: flex; flex-direction: column; gap: 0.5rem; }
.toast {
  background: var(--foreground); color: white;
  padding: 0.75rem 1.25rem; border-radius: var(--radius);
  font-size: 0.875rem; font-weight: 500;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  animation: toast-in 0.25s ease forwards;
}
@keyframes toast-in { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ===================== HERO ===================== */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary) 0%, #0a1f36 100%);
}
.hero-pattern {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,1) 1px, transparent 0);
  background-size: 24px 24px;
  opacity: 0.05;
}
.hero-blob {
  position: absolute; border-radius: 9999px;
  background: rgba(212,168,75,.2); filter: blur(60px); pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: 1280px; margin: 0 auto; padding: 5rem 1.5rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.05);
  padding: 0.25rem 0.75rem; border-radius: 9999px;
  font-size: 0.75rem; color: rgba(255,255,255,.8);
}
.hero-title {
  margin-top: 1.25rem;
  font-family: var(--font-display);
  font-size: 2.75rem; font-weight: 800;
  line-height: 1.15; color: white;
}
.hero-title .gold { color: var(--gold); }
.hero-desc { margin-top: 1.25rem; font-size: 0.9375rem; color: rgba(255,255,255,.75); max-width: 480px; }
.hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-card-wrap { position: relative; }
.hero-card-glow {
  position: absolute; inset: -1.5rem;
  border-radius: 1.5rem; background: rgba(212,168,75,.15); filter: blur(40px);
}
.hero-card {
  position: relative;
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
}
.hero-card-header {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.625rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--gold);
  padding: 1.25rem 1.25rem 0;
}
.hero-card-body { padding: 1rem 1.25rem; display: flex; flex-direction: column; gap: 0.625rem; }
.hero-prod-row {
  display: flex; align-items: center; gap: 0.75rem;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
  border-radius: 0.5rem; padding: 0.625rem 0.75rem;
}
.hero-prod-icon {
  width: 2.5rem; height: 2.5rem; flex-shrink: 0;
  border-radius: 0.375rem; background: rgba(255,255,255,.1);
  display: grid; place-items: center; font-size: 1.1rem;
}
.hero-prod-name { font-size: 0.8125rem; font-weight: 600; color: white; }
.hero-prod-meta { font-size: 0.6875rem; color: rgba(255,255,255,.55); margin-top: 1px; }
.hero-prod-price { margin-left: auto; font-size: 0.8125rem; font-weight: 700; color: var(--gold); white-space: nowrap; }
.hero-quote {
  margin: 0 1.25rem 1.25rem;
  border: 1px solid rgba(212,168,75,.2);
  background: rgba(212,168,75,.08);
  border-radius: 0.5rem; padding: 0.625rem 0.75rem;
  font-size: 0.75rem; color: rgba(255,255,255,.75); font-style: italic;
}

/* ===================== SECTION HEADER (gray bg) ===================== */
.section-header {
  background: var(--secondary);
  border-bottom: 1px solid var(--border);
  padding: 2rem 0;
}
.section-header-dark {
  background: linear-gradient(135deg, var(--primary) 0%, #0a1f36 100%);
  color: white; padding: 3rem 0;
}

/* ===================== PRODUCT CARD ===================== */
.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}
.product-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.08); transform: translateY(-2px); }
.product-card-image {
  height: 10rem; background: var(--secondary);
  display: grid; place-items: center; font-size: 3rem;
  position: relative;
}
.product-card-badge {
  position: absolute; top: 0.625rem; left: 0.625rem;
  background: rgba(255,255,255,.85); border: 1px solid var(--border);
  border-radius: 9999px; padding: 0.1rem 0.5rem;
  font-size: 0.625rem; font-weight: 600; color: var(--muted-foreground);
}
.product-card-body { padding: 0.875rem; flex: 1; display: flex; flex-direction: column; }
.product-card-name {
  font-family: var(--font-display); font-weight: 700; font-size: 0.9375rem;
  color: var(--primary); line-height: 1.3;
}
.product-card-meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 0.375rem; font-size: 0.75rem; color: var(--muted-foreground);
}
.product-card-rating { display: flex; align-items: center; gap: 0.2rem; }
.star { color: #f59e0b; }
.product-card-price {
  font-family: var(--font-display); font-weight: 700; font-size: 1.125rem;
  color: var(--primary); margin-top: 0.5rem;
}
.product-card-stok { font-size: 0.75rem; color: var(--muted-foreground); text-align: right; }
.product-card-footer {
  display: grid; grid-template-columns: 1fr auto;
  gap: 0.5rem; margin-top: 0.75rem; padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

/* ===================== RECOMMENDATION CARD (horizontal) ===================== */
.rec-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  display: flex; flex-direction: column; gap: 0.75rem;
  transition: box-shadow 0.2s;
}
.rec-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.07); }
.rec-card-top { display: flex; align-items: center; gap: 0.75rem; }
.rec-card-icon {
  width: 3rem; height: 3rem; flex-shrink: 0;
  border-radius: 0.5rem; background: var(--secondary);
  display: grid; place-items: center; font-size: 1.5rem;
}
.rec-card-name { font-weight: 600; font-size: 0.9375rem; color: var(--primary); }
.rec-card-category { font-size: 0.75rem; color: var(--muted-foreground); margin-top: 2px; }
.rec-card-reason {
  font-size: 0.75rem; color: var(--muted-foreground);
  display: flex; align-items: center; gap: 0.375rem;
}
.rec-card-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 0.625rem; border-top: 1px solid var(--border);
}
.rec-card-price { font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--primary); }

/* ===================== ALERT / INFO CARD ===================== */
.alert-card {
  background: rgba(212,168,75,.06);
  border: 1px solid rgba(212,168,75,.25);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.alert-card-left { display: flex; align-items: flex-start; gap: 0.75rem; }
.alert-card-icon { color: var(--gold); font-size: 1.1rem; margin-top: 2px; }
.alert-card-title { font-weight: 600; color: var(--primary); font-size: 0.9375rem; }
.alert-card-desc { font-size: 0.8125rem; color: var(--muted-foreground); margin-top: 2px; }

/* ===================== GRID ===================== */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.grid-auto-4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.grid-cols-2-1 { display: grid; grid-template-columns: 1fr 22rem; gap: 1.5rem; }

/* ===================== FOOTER ===================== */
.footer { margin-top: 4rem; border-top: 1px solid var(--border); background: var(--secondary); }
.footer-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 2.5rem 1.5rem;
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2rem;
}
.footer-brand { display: flex; align-items: center; gap: 0.625rem; }
.footer-brand-name { font-family: var(--font-display); font-weight: 700; color: var(--primary); }
.footer-desc { margin-top: 0.75rem; font-size: 0.8125rem; color: var(--muted-foreground); line-height: 1.6; }
.footer-heading { font-size: 0.875rem; font-weight: 600; color: var(--primary); margin-bottom: 0.75rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { font-size: 0.8125rem; color: var(--muted-foreground); transition: color 0.15s; }
.footer-links a:hover { color: var(--foreground); }
.footer-links span { font-size: 0.8125rem; color: var(--muted-foreground); }
.footer-bottom {
  border-top: 1px solid var(--border);
  text-align: center; padding: 1rem 1.5rem;
  font-size: 0.75rem; color: var(--muted-foreground);
}

/* ===================== FEATURES ===================== */
.feature-icon {
  width: 2.5rem; height: 2.5rem;
  background: rgba(15,42,71,.08); border-radius: 0.5rem;
  display: grid; place-items: center; color: var(--primary);
  font-size: 1rem; margin-bottom: 1rem;
}
.feature-title { font-weight: 600; font-size: 0.9375rem; color: var(--primary); }
.feature-desc { font-size: 0.8125rem; color: var(--muted-foreground); margin-top: 0.25rem; line-height: 1.5; }

/* ===================== METHOD STRIP ===================== */
.method-strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(241,245,249,.5); padding: 3rem 0; }
.method-inner { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; align-items: start; }
.method-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; }
.method-step { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; text-align: center; }
.method-step-num { font-size: 0.6875rem; color: var(--muted-foreground); }
.method-step-label { font-weight: 600; font-size: 0.8125rem; color: var(--primary); margin-top: 0.25rem; }

/* ===================== UTILS ===================== */
.section-label { font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(30,41,59,.6); }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-1 { margin-top: 0.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-1 { margin-bottom: 0.25rem; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-primary { color: var(--primary); }
.text-gold { color: var(--gold); }
.text-muted { color: var(--muted-foreground); }
.text-white { color: white; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-display { font-family: var(--font-display); }
.min-h-screen { min-height: 100vh; }
.w-full { width: 100%; }
.hidden { display: none !important; }
.border-t { border-top: 1px solid var(--border); }
.border-b { border-bottom: 1px solid var(--border); }
.divide-y > * + * { border-top: 1px solid var(--border); }
.rounded { border-radius: var(--radius); }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }

/* ===================== TABLE ===================== */
table { width: 100%; border-collapse: collapse; }
th { padding: 0.75rem 1rem; text-align: left; background: var(--secondary); font-size: 0.8125rem; font-weight: 600; color: var(--muted-foreground); border-bottom: 1px solid var(--border); }
td { padding: 0.875rem 1rem; font-size: 0.875rem; border-bottom: 1px solid var(--border); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--secondary); }

/* ===================== PAGE HEADER ===================== */
.page-header { background: var(--secondary); border-bottom: 1px solid var(--border); padding: 2rem 0; }
.page-header-dark { background: linear-gradient(135deg, var(--primary) 0%, #0a1f36 100%); padding: 3rem 0; }

/* ===================== SEARCH FILTERS ===================== */
.filters-row { display: flex; gap: 0.75rem; align-items: center; }
.filters-row .search-wrapper { flex: 1; }
.filters-count { font-size: 0.75rem; color: var(--muted-foreground); margin-top: 0.625rem; }

/* ===================== LOGOUT MODAL ===================== */
.logout-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.logout-modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.logout-modal-card {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 32px 80px rgba(15, 42, 71, 0.22);
  width: min(100%, 400px);
  overflow: hidden;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.logout-modal-overlay.active .logout-modal-card {
  transform: translateY(0) scale(1);
}
.logout-modal-body {
  padding: 2rem 1.75rem;
  text-align: center;
}
.logout-modal-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  background: #fee2e2;
  color: #dc2626;
  margin: 0 auto 1rem;
}
.logout-modal-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.logout-modal-desc {
  font-size: 0.88rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}
.logout-modal-actions {
  display: flex;
  gap: 0.75rem;
  padding: 0 1.75rem 1.75rem;
  justify-content: center;
}
.logout-modal-btn {
  flex: 1;
  padding: 0.65rem 1rem;
  border-radius: 0.6rem;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.logout-btn-cancel {
  background: var(--secondary);
  color: var(--muted-foreground);
}
.logout-btn-cancel:hover {
  background: var(--border);
}
.logout-btn-confirm {
  background: var(--destructive);
  color: white;
  width: 100%;
}
.logout-btn-confirm:hover {
  background: #dc2626;
}

/* ===================== EMPTY STATE ===================== */
.empty-state {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 0.75rem;
  text-align: center; padding: 4rem 1.5rem;
}
.empty-icon {
  width: 3.5rem; height: 3.5rem;
  background: var(--secondary); border-radius: 9999px;
  display: grid; place-items: center;
  font-size: 1.4rem; color: var(--primary);
}
.empty-title { font-weight: 600; color: var(--primary); font-size: 1rem; }
.empty-desc { font-size: 0.875rem; color: var(--muted-foreground); max-width: 24rem; }

/* ===================== CART ITEMS ===================== */
.cart-item {
  padding: 1rem;
}
.cart-item-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.cart-item-emoji {
  width: 3.5rem;
  height: 3.5rem;
  flex-shrink: 0;
  background: var(--secondary);
  border-radius: 0.5rem;
  display: grid;
  place-items: center;
  font-size: 1.75rem;
}
.cart-item-info {
  flex: 1;
  min-width: 0;
}
.cart-item-name {
  font-weight: 600;
  color: var(--primary);
  font-size: 0.9375rem;
  line-height: 1.3;
}
.cart-item-meta {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-top: 0.125rem;
}
.cart-item-delete {
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: none;
  background: transparent;
  color: var(--muted-foreground);
  border-radius: 0.375rem;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.15s;
}
.cart-item-delete:hover {
  background: #fee2e2;
  color: var(--destructive);
}
.cart-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.75rem;
  padding-left: 4.25rem;
}
.cart-qty-control {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  overflow: hidden;
}
.cart-qty-btn {
  width: 2.25rem !important;
  height: 2.25rem !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  font-size: 0.875rem;
}
.cart-qty-input {
  width: 2.75rem !important;
  height: 2.25rem !important;
  text-align: center !important;
  padding: 0 !important;
  border: none !important;
  border-left: 1px solid var(--border) !important;
  border-right: 1px solid var(--border) !important;
  border-radius: 0 !important;
  font-weight: 600;
  font-size: 0.875rem;
}
.cart-item-subtotal {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.9375rem;
  font-family: var(--font-display);
}

@media (max-width: 540px) {
  .cart-item-bottom {
    padding-left: 0;
  }
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card-wrap { display: none; }
  .method-inner { grid-template-columns: 1fr; }
  .method-steps { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-cols-2-1 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .hero-title { font-size: 2rem; }
  .hero-inner { padding: 3rem 1.25rem; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .filters-row { flex-wrap: wrap; }
  
  .mobile-menu-toggle { display: inline-flex; }
  .desktop-only { display: none !important; }
}
@media (max-width: 540px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .navbar-logo .logo-text-sub { display: none; }
}

/* ===================== ADMIN LAYOUT ===================== */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 240px; flex-shrink: 0;
  background: var(--primary); color: white;
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.sidebar-logo { padding: 1.25rem 1rem; border-bottom: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; gap: 0.625rem; }
.sidebar-logo-icon { width: 2rem; height: 2rem; background: var(--gold); border-radius: 0.375rem; display: grid; place-items: center; font-size: 0.9rem; }
.sidebar-logo-text { font-family: var(--font-display); font-weight: 700; font-size: 0.9375rem; }
.sidebar-nav { padding: 0.75rem 0; flex: 1; }
.sidebar-nav a {
  display: flex; align-items: center; gap: 0.625rem;
  padding: 0.625rem 1rem; font-size: 0.875rem; font-weight: 500;
  color: rgba(255,255,255,.7); transition: all 0.15s;
  border-left: 3px solid transparent;
}
.sidebar-nav a:hover { color: white; background: rgba(255,255,255,.06); }
.sidebar-nav a.active { color: var(--gold); border-left-color: var(--gold); background: rgba(212,168,75,.08); }
.admin-main { flex: 1; display: flex; flex-direction: column; background: #f8fafc; }
.admin-topbar {
  height: 3.75rem; background: white; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.5rem; position: sticky; top: 0; z-index: 40;
}
.admin-content { padding: 1.5rem; }
.stat-card { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; display: flex; align-items: center; gap: 1rem; }
.stat-icon { width: 2.75rem; height: 2.75rem; border-radius: 0.5rem; display: grid; place-items: center; font-size: 1.1rem; flex-shrink: 0; }

/* Print */
@media print {
  .admin-sidebar, .admin-topbar, .no-print { display: none !important; }
  .admin-main { display: block; }
  .admin-content { padding: 0; }
  body { background: white; }
}
