/* -------------------------------------------------------------------------- */
/* PRESET & VARIABLES (Premium Edition)
/* -------------------------------------------------------------------------- */
:root {
  /* Brand Colors - Precise Hues */
  --primary: #0F766E;
  --secondary: #0EA5E9;
  --accent: #22D3EE;
  --success: #10B981;
  --danger: #EF4444;
  --warning: #F59E0B;
  
  /* Monochrome & Backgrounds */
  --bg-main: #F8FAFC;
  --bg-surface: #FFFFFF;
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  --border-color: #E2E8F0;
  
  /* Structure */
  --max-width: 1400px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
  
  /* Typography */
  --font-sans: 'Inter', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  
  /* Premium Shadows (Stripe/Vercel Style) */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.04), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.04), 0 4px 6px -4px rgba(15, 23, 42, 0.02);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.05), 0 8px 10px -6px rgba(15, 23, 42, 0.02);
  
  /* Effects */
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-blur: saturate(180%) blur(20px);
  --gradient-brand: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  
  /* Animations */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 350ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* -------------------------------------------------------------------------- */
/* ANIMATED TECH BACKGROUND
/* -------------------------------------------------------------------------- */
body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-sans);
    overflow-x: hidden;
    position: relative; 
    min-height: 100vh;
    margin: 0;
}

body::before, body::after {
    content: "";
    position: fixed;
    width: 40vw; 
    height: 40vw;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    opacity: 0.5;
    animation: drift 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

body::before { background: #E0F2FE; top: -10%; left: -10%; }
body::after { background: #CCFBF1; bottom: -10%; right: -10%; animation-delay: -10s; }

@keyframes drift {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(80px, 80px) scale(1.05); }
}

a { text-decoration: none; color: inherit; transition: color var(--transition-fast); }
ul, ol { list-style: none; }
button, input, select, textarea { font-family: inherit; border: none; background: none; outline: none; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.shadow-premium { box-shadow: var(--shadow-xl); }

/* -------------------------------------------------------------------------- */
/* HEADER & NAVIGATION
/* -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  transition: background var(--transition-smooth);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px; /* Sleeker Apple-like header */
  gap: 2rem;
}

.brand-mark { display: flex; align-items: center; gap: 0.75rem; transition: transform var(--transition-fast); }
.brand-mark:hover { transform: scale(1.02); }

.brand-symbol {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--gradient-brand);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.2);
}
.brand-symbol svg { width: 18px; height: 18px; }

.brand-text strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.header-search { flex: 1; max-width: 480px; position: relative; }
.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}
.search-input-wrapper:focus-within {
  border-color: var(--secondary);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1), var(--shadow-md);
}

.icon-search {
  position: absolute;
  left: 1.25rem;
  width: 18px;
  height: 18px;
  color: var(--text-muted);
}

.header-search input {
  width: 100%;
  padding: 0.75rem 1.25rem 0.75rem 3rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-primary);
}
.header-search input::placeholder { color: var(--text-muted); }

.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.action-btn {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.action-btn:hover {
  background: var(--bg-surface);
  color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.action-btn svg { width: 20px; height: 20px; }
.cart-btn { background: var(--bg-surface); border: 1px solid var(--border-color); box-shadow: var(--shadow-sm); }

.account-wrapper { position: relative; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 260px;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 0.5rem;
  box-shadow: var(--shadow-xl);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.98);
  transform-origin: top right;
  transition: all var(--transition-smooth);
  z-index: 9999;
}
.account-wrapper:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.dropdown-header { padding: 1rem; border-bottom: 1px solid var(--border-color); margin-bottom: 0.5rem; }
.dropdown-header strong { display: block; font-size: 1rem; font-weight: 700; }
.dropdown-header span { font-size: 0.8125rem; color: var(--text-muted); }
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: var(--transition-fast);
}
.dropdown-item svg { width: 18px; height: 18px; color: var(--text-muted); }
.dropdown-item:hover { background: var(--bg-main); color: var(--primary); }
.dropdown-item:hover svg { color: var(--primary); }
.dropdown-divider { height: 1px; background: var(--border-color); margin: 0.5rem 0; }

.category-strip { border-top: 1px solid rgba(226, 232, 240, 0.4); background: rgba(255,255,255,0.4); }
.category-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.category-inner::-webkit-scrollbar { display: none; }
.nav-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  position: relative;
  padding: 0.25rem 0;
  letter-spacing: -0.01em;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition-fast);
  border-radius: 2px;
}
.nav-link:hover { color: var(--text-primary); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link.active { color: var(--text-primary); font-weight: 700; }

/* -------------------------------------------------------------------------- */
/* MAIN CONTENT & CATALOG
/* -------------------------------------------------------------------------- */
.site-main { min-height: 60vh; padding: 3rem 0; }

.catalog-hero {
  background: var(--text-primary);
  color: white;
  padding: 4.5rem 2rem;
  border-radius: var(--radius-lg);
  margin: 0 auto 3rem;
  max-width: var(--max-width);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}
.catalog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(14, 165, 233, 0.15), transparent 50%),
              radial-gradient(circle at bottom left, rgba(15, 118, 110, 0.15), transparent 50%);
  pointer-events: none;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  position: relative;
  z-index: 1;
}
.catalog-hero h1 { 
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800; 
  letter-spacing: -0.03em;
  line-height: 1.1;
  position: relative;
  z-index: 1;
}

.catalog-search {
  display: flex;
  gap: 0.75rem;
  width: 100%;
  max-width: 700px;
  z-index: 1;
  position: relative;
}
.catalog-search input, .catalog-search select {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid transparent;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-fast);
}
.catalog-search input:focus, .catalog-search select:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15);
}
.catalog-search input { flex: 1; }
.catalog-search select { cursor: pointer; border-right: 12px solid transparent; }

.button.primary {
  padding: 1rem 2rem;
  background: var(--gradient-brand);
  color: white;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-smooth);
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.25);
  border: none;
}
.button.primary:hover { 
  background: linear-gradient(135deg, #0d655e 0%, #0c8ccc 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 118, 110, 0.35);
}

/* -------------------------------------------------------------------------- */
/* CATALOG LAYOUT & SIDEBAR
/* -------------------------------------------------------------------------- */
.catalog-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.filter-rail {
  background: transparent;
  height: fit-content;
  max-height: calc(100vh - 120px); 
  position: sticky;
  top: 100px;
  overflow-y: auto;
}
.filter-rail::-webkit-scrollbar { width: 4px; }
.filter-rail::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: var(--radius-pill); }

.filter-rail-heading h2 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.filter-rail a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  font-weight: 500;
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
  transition: all var(--transition-fast);
}
.filter-rail a:hover { color: var(--primary); padding-left: 6px; }
.filter-rail a.active { color: var(--primary); font-weight: 700; }

.filter-rail a span {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 0.125rem 0.625rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
}
.filter-rail a.active span { background: var(--primary); color: white; border-color: var(--primary); }

/* -------------------------------------------------------------------------- */
/* PRODUCT GRID
/* -------------------------------------------------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
}

.product-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(14, 165, 233, 0.3);
}

.product-image {
  display: block;
  width: 100%;
  padding-top: 100%;
  position: relative;
  background: var(--bg-main);
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
}
.product-image img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 1.5rem;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.product-card:hover .product-image img { transform: scale(1.08); }

.product-copy { padding: 1.5rem; flex: 1; }
.product-category {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}
.product-copy h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-copy p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-actions {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(248, 250, 252, 0.3);
}
.product-actions strong {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.buy-button {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.buy-button:hover {
  background: var(--gradient-brand);
  color: white;
  border-color: transparent;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.25);
}
.buy-button svg { width: 18px; height: 18px; }

/* -------------------------------------------------------------------------- */
/* PAGINATION
/* -------------------------------------------------------------------------- */
.store-pagination {
  display: flex;
  flex-direction: row; 
  flex-wrap: wrap; 
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 4rem;
}
.page-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9375rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  cursor: pointer;
}
.page-btn:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); }
.page-btn.active { background: var(--gradient-brand); color: white; border-color: transparent; box-shadow: var(--shadow-md); }
.page-info { width: 100%; text-align: center; font-size: 0.875rem; color: var(--text-muted); font-weight: 500; margin-top: 0.5rem; }

/* -------------------------------------------------------------------------- */
/* FOOTER
/* -------------------------------------------------------------------------- */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 5rem 0 2rem;
  margin-top: 5rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 4rem; margin-bottom: 4rem; }
.footer-brand-col .brand-mark { margin-bottom: 1.5rem; }
.footer-bio { color: var(--text-secondary); font-size: 0.9375rem; max-width: 320px; line-height: 1.7; }
.footer-heading { font-size: 0.875rem; font-weight: 700; color: var(--text-primary); margin-bottom: 1.5rem; text-transform: uppercase; letter-spacing: 0.1em; }
.footer-nav { display: flex; flex-direction: column; gap: 1rem; }
.footer-nav a, .contact-line { color: var(--text-secondary); font-size: 0.9375rem; transition: var(--transition-fast); }
.footer-nav a:hover, .contact-line:hover { color: var(--primary); transform: translateX(4px); }
.contact-info { display: flex; flex-direction: column; gap: 1rem; }
.footer-socials { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }
.social-btn {
  font-size: 0.875rem; font-weight: 600; color: var(--text-secondary);
  padding: 0.5rem 1rem; background: var(--bg-main); border-radius: var(--radius-pill); border: 1px solid var(--border-color); transition: all var(--transition-fast);
}
.social-btn:hover { background: var(--text-primary); color: white; border-color: var(--text-primary); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 2rem; border-top: 1px solid var(--border-color); color: var(--text-muted); font-size: 0.875rem; }
.trust-badges { display: flex; gap: 1rem; }
.badge { background: var(--bg-main); padding: 0.4rem 1rem; border-radius: var(--radius-pill); font-size: 0.75rem; font-weight: 700; color: var(--text-secondary); border: 1px solid var(--border-color); }

/* -------------------------------------------------------------------------- */
/* RESPONSIVE DESIGN (MOBILE)
/* -------------------------------------------------------------------------- */
.mobile-only { display: none; }
@media (max-width: 992px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 3rem; } }
@media (max-width: 768px) {
  .header-search { display: none; }
  .mobile-only { display: flex; }
  .brand-text { display: none; }
  .catalog-hero { border-radius: var(--radius-md); padding: 3rem 1.5rem; }
  .catalog-search { flex-direction: column; }
  .catalog-search select, .button.primary { width: 100%; }
  .catalog-layout { grid-template-columns: 1fr; }
  .filter-rail { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-bottom { flex-direction: column-reverse; gap: 1.5rem; align-items: flex-start; }
}

/* -------------------------------------------------------------------------- */
/* PENYEMPURNAAN TAMPILAN HOME
/* -------------------------------------------------------------------------- */
.catalog-hero {
    background: var(--text-primary);
    color: #ffffff;
    border-radius: var(--radius-lg);
    padding: 5rem 2rem;
    text-align: center;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-xl);
}
.catalog-hero h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); margin-bottom: 1rem; line-height: 1.1; letter-spacing: -0.03em; }
.catalog-hero p { font-size: 1.125rem; opacity: 0.9; margin-bottom: 2rem; font-weight: 400; }
@media (max-width: 768px) { .catalog-hero h1 { font-size: 2.25rem; } .product-grid { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------------------- */
/* AWARD-WINNING HERO COMMERCE LAYOUT
/* -------------------------------------------------------------------------- */
.hero-commerce {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    padding: 5rem 4rem;
    background: var(--text-primary);
    border-radius: var(--radius-lg);
    color: #ffffff;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-xl);
}
.hero-commerce::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at top right, rgba(14, 165, 233, 0.2), transparent 50%),
                radial-gradient(circle at bottom left, rgba(15, 118, 110, 0.2), transparent 50%);
    pointer-events: none;
}
.hero-copy { z-index: 1; }
.hero-copy .eyebrow { display: inline-block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.15em; font-weight: 700; color: var(--accent); margin-bottom: 1.5rem; }
.hero-copy h1 { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.1; font-weight: 800; margin-bottom: 1.5rem; letter-spacing: -0.04em; }
.hero-copy p { font-size: 1.125rem; color: rgba(255, 255, 255, 0.8); margin-bottom: 2.5rem; max-width: 500px; line-height: 1.6; }
.hero-actions { display: flex; gap: 1rem; margin-bottom: 3rem; }
.button.primary { background: var(--gradient-brand); color: #fff; padding: 1rem 2rem; border-radius: var(--radius-sm); font-weight: 600; box-shadow: 0 4px 12px rgba(15, 118, 110, 0.25); border: none; }
.button.secondary { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); color: #ffffff; padding: 1rem 2rem; border-radius: var(--radius-sm); font-weight: 600; backdrop-filter: blur(10px); }
.button.secondary:hover { background: rgba(255, 255, 255, 0.2); border-color: rgba(255, 255, 255, 0.4); transform: translateY(-2px); }
.hero-metrics { display: flex; gap: 3rem; border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 2rem; }
.hero-metrics span { display: flex; flex-direction: column;  background-color: none !important;}
.hero-metrics strong { font-size: 1.75rem; font-weight: 800; }
.hero-metrics small { opacity: 0.7; font-size: 0.875rem; font-weight: 500; }
.hero-media img { width: 100%; height: auto; border-radius: var(--radius-md); box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5); transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.hero-media:hover img { transform: translateY(-10px) scale(1.02); }
@media (max-width: 992px) { .hero-commerce { grid-template-columns: 1fr; text-align: center; padding: 4rem 2rem; } .hero-metrics { justify-content: center; gap: 2rem; } .hero-copy p { margin: 0 auto 2rem; } .hero-actions { justify-content: center; } }

/* -------------------------------------------------------------------------- */
/* DENSE DIRECTORY LAYOUT (Optimasi untuk ribuan kategori)
/* -------------------------------------------------------------------------- */
.category-band { padding: 4rem 0; margin: 0 auto; max-width: var(--max-width); }
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); 
    gap: 0.75rem; 
    max-height: 450px; 
    overflow-y: auto;
    padding: 1rem;
    background: var(--bg-main); 
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
    scrollbar-width: thin;
}
.category-tile {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    border-left: 3px solid var(--accent);
    box-shadow: var(--shadow-sm);
}
.category-tile:hover { background: var(--primary); border-left-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.category-tile:hover strong, .category-tile:hover small { color: white; }
.category-tile strong { font-size: 0.875rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 0.25rem; }
.category-tile small { font-size: 0.75rem; color: var(--text-muted); font-weight: 500; }

/* -------------------------------------------------------------------------- */
/* ABOUT US PAGE STYLING
/* -------------------------------------------------------------------------- */
.about-hero { padding: 6rem 2rem; text-align: center; background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-main) 100%); border-bottom: 1px solid var(--border-color); }
.about-hero h1 { font-size: clamp(2.5rem, 4vw, 3.5rem); font-weight: 800; color: var(--text-primary); margin-bottom: 1.5rem; letter-spacing: -0.03em; }
.about-hero p { font-size: 1.25rem; color: var(--text-secondary); max-width: 700px; margin: 0 auto; line-height: 1.6; }
.about-content-wrapper { max-width: 760px; margin: 5rem auto; padding: 0 1.5rem; }
.about-content-wrapper p { margin-bottom: 1.75rem; color: var(--text-secondary); font-size: 1.125rem; line-height: 1.8; }
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 4rem; }
.value-card { padding: 2.5rem; background: var(--bg-surface); border-radius: var(--radius-md); border: 1px solid var(--border-color); transition: all var(--transition-smooth); box-shadow: var(--shadow-sm); }
.value-card:hover { transform: translateY(-6px); border-color: var(--primary); box-shadow: var(--shadow-lg); }
.value-card h3 { color: var(--text-primary); margin-bottom: 1rem; font-size: 1.25rem; font-weight: 800; letter-spacing: -0.01em; }
.value-card p { font-size: 1rem; margin-bottom: 0; color: var(--text-secondary); line-height: 1.6; }
.about-image { width: 100%; height: 450px; object-fit: cover; border-radius: var(--radius-lg); margin: 4rem 0; box-shadow: var(--shadow-xl); border: 1px solid var(--border-light); }

/* -------------------------------------------------------------------------- */
/* CLEAN & PREMIUM ABOUT US PAGE
/* -------------------------------------------------------------------------- */
.page-title { padding: 6rem 2rem; text-align: center; background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-main) 100%); border-bottom: 1px solid var(--border-color); }
.page-title .eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: 0.15em; font-size: 0.75rem; font-weight: 700; margin-bottom: 1rem; }
.page-title h1 { font-size: clamp(2.5rem, 4vw, 3.5rem); font-weight: 800; color: var(--text-primary); letter-spacing: -0.03em; }
.static-page-shell { max-width: 760px; margin: 4rem auto; padding: 0 1.5rem; }
.static-page-content p { font-size: 1.125rem; line-height: 1.8; color: var(--text-secondary); margin-bottom: 1.75rem; }
.static-page-content br { display: none; } 
.static-page-content p:empty { display: none; }
.static-page-content ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; list-style: none; padding: 0; margin-top: 2.5rem; }
.static-page-content ul li { background: var(--bg-surface); border: 1px solid var(--border-color); padding: 1rem; border-radius: var(--radius-sm); text-align: center; font-size: 0.875rem; font-weight: 600; color: var(--text-primary); transition: all var(--transition-fast); box-shadow: var(--shadow-sm); }
.static-page-content ul li:hover { border-color: var(--primary); color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.static-page-content a { color: var(--primary); text-decoration: none; font-weight: 600; border-bottom: 1px solid transparent; transition: all var(--transition-fast); }
.static-page-content a:hover { border-bottom-color: var(--primary); }

.admin-sidebar { background: var(--bg-surface); border-right: 1px solid var(--border-color); padding: 2.5rem 1.5rem; display: flex; flex-direction: column; gap: 2rem; }
.admin-nav-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); font-weight: 700; margin-bottom: 1rem; }
.admin-nav a { display: block; padding: 0.75rem 1rem; border-radius: var(--radius-sm); color: var(--text-secondary); font-weight: 600; font-size: 0.9375rem; transition: all var(--transition-fast); margin-bottom: 0.25rem; }
.admin-nav a:hover { background: var(--bg-main); color: var(--primary); }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; margin-bottom: 2.5rem; }
.stat-card { background: var(--bg-surface); border: 1px solid var(--border-color); padding: 1.75rem; border-radius: var(--radius-md); transition: all var(--transition-smooth); box-shadow: var(--shadow-sm); }
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-light); }
.stat-card strong { display: block; font-size: 2rem; font-weight: 800; margin-top: 0.5rem; color: var(--text-primary); letter-spacing: -0.02em; }
.stat-card span { font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }

.table-wrap { overflow-x: auto; background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.admin-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.admin-table th { background: rgba(248, 250, 252, 0.5); padding: 1rem 1.5rem; text-align: left; font-size: 0.75rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid var(--border-color); }
.admin-table td { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border-light); font-size: 0.9375rem; color: var(--text-secondary); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tbody tr:nth-child(even) { background: rgba(248, 250, 252, 0.3); }
.admin-table tbody tr:hover td { background: var(--bg-main); }

.quick-links-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.quick-link-card { display: block; padding: 1.75rem; background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: var(--radius-md); transition: all var(--transition-fast); box-shadow: var(--shadow-sm); }
.quick-link-card:hover { border-color: var(--primary); background: var(--bg-surface); box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* -------------------------------------------------------------------------- */
/* ADMIN REDESIGN (Premium Deep Green/Blue)
/* -------------------------------------------------------------------------- */
.admin-shell {
    --green: #10B981;
    --green-deep: #0F766E;
    --blue: #0EA5E9;
    --blue-deep: #0369A1;
    --ink: #0F172A;
    --ink-soft: #334155;
    --muted: #64748B;
    --line: #E2E8F0;
    --paper: #F8FAFC;
    --white: #FFFFFF;
    --shadow: var(--shadow-md);
    --radius: 12px;

    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
    background: var(--bg-main);
}

.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 2rem 1.5rem;
    color: var(--ink);
    background: var(--bg-surface);
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
}

.admin-brand { margin-bottom: 2.5rem; }
.admin-brand strong { color: var(--ink); font-size: 1.125rem; font-weight: 800; letter-spacing: -0.01em; display: block; }
.admin-brand small { color: var(--muted); font-size: 0.8125rem; font-weight: 500; }

.admin-nav { display: grid; gap: 0.25rem; flex: 1; }
.admin-nav a { padding: 0.75rem 1rem; color: var(--ink-soft); font-weight: 600; font-size: 0.9375rem; border-radius: 8px; transition: all var(--transition-fast); }
.admin-nav a:hover { color: var(--primary); background: var(--bg-main); }
.admin-nav a.active { color: var(--primary); background: rgba(15, 118, 110, 0.08); font-weight: 700; }

.admin-store-link {
    position: absolute;
    left: 1.5rem; right: 1.5rem; bottom: 1.5rem;
    display: block; padding: 0.875rem 1rem;
    color: #fff; background: var(--gradient-brand);
    border-radius: 8px; font-weight: 700; text-align: center; font-size: 0.9375rem;
    box-shadow: 0 4px 12px rgba(15, 118, 110, 0.25);
    transition: all var(--transition-fast);
}
.admin-store-link:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(15, 118, 110, 0.35); }

.admin-main { min-width: 0; padding: 2.5rem; display: flex; flex-direction: column; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 2.5rem; padding: 1.25rem 2rem; background: var(--bg-surface); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.admin-topbar h1 { margin: 0; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.admin-userbar { display: flex; align-items: center; gap: 14px; font-weight: 700; font-size: 0.9375rem; color: var(--ink-soft); }

.admin-flash, .auth-flash { display: grid; gap: 10px; margin-bottom: 1.5rem; }

.admin-panel { background: var(--bg-surface); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: 2rem; }
.panel-heading { margin-bottom: 1.5rem; padding: 0; border: none; background: transparent; }
.panel-heading h2 { margin: 0; font-size: 1.125rem; font-weight: 700; color: var(--ink); }

.muted-center { color: var(--muted); text-align: center !important; }
.table-product { display: flex; align-items: center; gap: 1rem; }
.table-product img { width: 48px; height: 48px; object-fit: cover; background: var(--bg-main); border-radius: 8px; border: 1px solid var(--line); }
.table-product span { display: block; color: var(--ink-soft); font-size: 0.9375rem; font-weight: 600; }
.action-cell { display: flex; gap: 8px; align-items: center; }

.status-chip { display: inline-flex; align-items: center; min-height: 28px; padding: 0.25rem 0.75rem; border-radius: var(--radius-pill); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.02em; }
.status-pending { color: var(--warning); background: rgba(245, 158, 11, 0.1); }
.status-paid, .status-completed { color: var(--success); background: rgba(16, 185, 129, 0.1); }
.status-packed { color: var(--blue-deep); background: rgba(14, 165, 233, 0.1); }
.status-shipped { color: var(--ink-soft); background: var(--line); }
.status-cancelled { color: var(--danger); background: rgba(239, 68, 68, 0.1); }

.admin-filter, .inline-create { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.admin-filter input, .inline-create input { max-width: 320px; padding: 0.75rem 1rem; border-radius: 8px; border: 1px solid var(--line); background: var(--bg-surface); font-size: 0.9375rem; transition: all var(--transition-fast); box-shadow: var(--shadow-sm); }
.admin-filter select { max-width: 180px; padding: 0.75rem 1rem; border-radius: 8px; border: 1px solid var(--line); background: var(--bg-surface); font-size: 0.9375rem; box-shadow: var(--shadow-sm); }
.admin-filter input:focus, .admin-filter select:focus { border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15); outline: none; }

.admin-form-layout, .order-admin-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 2rem; }
.side-panel { align-self: start; display: grid; gap: 1.5rem; }
.current-image { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--bg-main); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow-sm); }

.is-hidden { display: none !important; }
.check-line { display: inline-flex !important; grid-template-columns: auto 1fr; align-items: center; gap: 0.5rem !important; cursor: pointer; }
.check-line input { width: 1.125rem; min-height: 1.125rem; accent-color: var(--primary); }
.field-help { display: block; margin: 0.25rem 0 0; color: var(--muted); font-size: 0.8125rem; font-weight: 500; }

.wysiwyg-field { gap: 0.5rem !important; }
.wysiwyg-source { display: none; }
.wysiwyg-toolbar { display: flex; flex-wrap: wrap; gap: 0.25rem; padding: 0.5rem; background: var(--paper); border: 1px solid var(--line); border-radius: 8px 8px 0 0; border-bottom: none; }
.wysiwyg-toolbar button { min-width: 32px; min-height: 32px; padding: 0 0.5rem; color: var(--ink-soft); background: transparent; border: 1px solid transparent; border-radius: 6px; font-weight: 600; font-size: 0.875rem; transition: all var(--transition-fast); cursor: pointer; }
.wysiwyg-toolbar button:hover { color: var(--primary); background: var(--bg-surface); border-color: var(--line); box-shadow: var(--shadow-sm); }
.wysiwyg-editor { display: block; min-height: 220px; padding: 1rem; color: var(--ink); background: var(--bg-surface); border: 1px solid var(--line); border-radius: 0 0 8px 8px; outline: none; font-size: 0.9375rem; line-height: 1.6; transition: border-color var(--transition-fast); }
.wysiwyg-editor.compact { min-height: 150px; }
.wysiwyg-editor:focus { border-color: var(--secondary); box-shadow: inset 0 0 0 1px var(--secondary); }
.wysiwyg-editor:empty::before { content: attr(data-placeholder); color: var(--muted); }

.rich-copy h2, .rich-copy h3, .rich-copy h4 { margin: 1.5rem 0 0.75rem; line-height: 1.3; font-weight: 700; color: var(--ink); }
.rich-copy p, .rich-copy ul, .rich-copy ol, .rich-copy blockquote { margin: 0 0 1rem; color: var(--ink-soft); }
.rich-copy ul, .rich-copy ol { padding-left: 1.5rem; }
.rich-copy a { color: var(--primary); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(15, 118, 110, 0.3); text-underline-offset: 3px; }
.rich-copy blockquote { padding: 1rem 1.25rem; color: var(--ink-soft); background: var(--paper); border-left: 4px solid var(--primary); border-radius: 0 8px 8px 0; font-style: italic; }

.category-admin-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.media-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.media-card { display: grid; gap: 0.75rem; padding: 1rem; background: var(--bg-surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); transition: all var(--transition-fast); }
.media-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--border-light); }
.media-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--bg-main); border: 1px solid var(--line); border-radius: 8px; }
.media-card-body { display: grid; gap: 0.25rem; min-width: 0; }
.media-card-body strong, .media-card-body span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-card-body strong { font-size: 0.9375rem; font-weight: 700; color: var(--ink); }
.media-card-body span { color: var(--muted); font-size: 0.8125rem; font-weight: 500; }
.copy-path { width: 100%; padding: 0; overflow: hidden; color: var(--primary); background: transparent; border: 0; font-size: 0.8125rem; font-weight: 600; text-align: left; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.copy-path:hover { text-decoration: underline; }
.table-inline-form { margin: 0; }

@media (max-width: 1100px) { .media-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px) { .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .media-grid { grid-template-columns: 1fr; } }

.category-admin-card { display: grid; gap: 1rem; padding: 1.25rem; background: var(--bg-surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); transition: all var(--transition-fast); }
.category-admin-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.category-dot { width: 40px; height: 40px; background: var(--accent); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; }
.category-card-actions { display: flex; gap: 0.5rem; }

.page-admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.page-admin-card { display: grid; gap: 1rem; padding: 1.25rem; background: var(--bg-surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); transition: all var(--transition-fast); }
.page-admin-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.detail-list { display: grid; gap: 1rem; margin-bottom: 1.5rem; }
.detail-list div { padding: 1rem 1.25rem; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; font-size: 0.9375rem; color: var(--ink-soft); }
.summary-panel.embedded { box-shadow: none; padding: 0; border: none; background: transparent; }
.settings-panel { max-width: 900px; }

/* -------------------------------------------------------------------------- */
/* AUTH & LOGIN (Premium Glass Vibe)
/* -------------------------------------------------------------------------- */
.admin-auth-shell {
    min-height: 100vh;
    background: radial-gradient(circle at top left, rgba(14, 165, 233, 0.1), transparent 50%),
                radial-gradient(circle at bottom right, rgba(15, 118, 110, 0.1), transparent 50%),
                var(--bg-main);
}
.auth-stage { display: grid; place-items: center; min-height: 100vh; padding: 2rem; }
.auth-panel { width: min(420px, 100%); padding: 2.5rem 2rem; background: var(--bg-surface); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-xl); }
.auth-brand { margin-bottom: 2rem; text-align: center; }
.auth-heading h1 { margin: 0 0 0.5rem; font-size: 1.75rem; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; text-align: center; }
.auth-heading p { margin: 0 0 2rem; color: var(--muted); font-size: 0.9375rem; text-align: center; }
.auth-form { display: grid; gap: 1.25rem; }
.auth-form input { padding: 0.875rem 1rem; border-radius: 8px; border: 1px solid var(--line); background: var(--bg-main); font-size: 0.9375rem; transition: all var(--transition-fast); }
.auth-form input:focus { border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15); background: var(--bg-surface); outline: none; }

/* -------------------------------------------------------------------------- */
/* GLOBAL MEDIA QUERIES
/* -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
    .hero-commerce, .detail-layout, .cart-layout, .checkout-layout, .admin-form-layout, .order-admin-layout { grid-template-columns: 1fr; }
    .product-grid, .product-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .category-grid, .stats-grid, .category-admin-grid, .page-admin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .summary-panel, .filter-rail { position: static; }
    .admin-shell { grid-template-columns: 1fr; }
    .admin-sidebar { position: static; height: auto; padding: 1.5rem; border-right: none; border-bottom: 1px solid var(--line); }
    .admin-store-link { position: static; margin-top: 1.5rem; }
}

@media (max-width: 820px) {
    .header-main { padding: 0 1rem; height: 60px; gap: 10px; }
    .header-search { display: none; }
    .header-search.open { display: flex; position: fixed; top: 0; left: 0; right: 0; max-width: 100%; border-radius: 0; height: 60px; padding: 0 1rem; z-index: 200; background: var(--bg-surface); box-shadow: var(--shadow-md); }
    .header-search-toggle { display: grid; }
    .nav-toggle { display: inline-grid; }
    .header-category-bar { display: none; }
    .header-category-bar.open { display: block; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-surface); border-top: 1px solid var(--line); box-shadow: var(--shadow-lg); z-index: 90; }
    .header-category-inner { flex-wrap: wrap; padding: 1rem; gap: 1rem; }
    .brand-mark small { display: none; }

    .hero-commerce { min-height: 0; padding-top: 3rem; }
    .hero-copy h1 { font-size: 2.25rem; }
    .catalog-hero, .page-title { grid-template-columns: 1fr; }
    .catalog-search, .admin-filter, .inline-create { align-items: stretch; flex-direction: column; }
    .catalog-search input, .catalog-search select, .admin-filter input, .admin-filter select { min-width: 0; max-width: none; width: 100%; }
    .catalog-layout { grid-template-columns: 1fr; }
    
    .filter-rail { position: static; top: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; padding: 0; max-height: none; overflow: visible; }
    .filter-rail-heading { grid-column: 1 / -1; margin-bottom: 0.5rem; }
    .filter-rail a { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.5rem 0.75rem; white-space: normal; }

    .cart-row { grid-template-columns: 80px 1fr 60px; }
    .line-total, .remove-inline { grid-column: auto; }
    .cart-thumb { width: 80px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
    .precision-band { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .hero-commerce, .category-band, .product-section, .catalog-layout, .catalog-hero, .page-title, .checkout-layout, .cart-layout, .detail-layout, .success-stage, .order-receipt { padding-left: 1.5rem; padding-right: 1.5rem; }
    .static-page-shell { padding-left: 1.5rem; padding-right: 1.5rem; }
    .static-page-content { padding: 1rem 0; }
    .hero-copy h1 { font-size: 2rem; }
    .section-heading h2, .page-title h1, .catalog-hero h1 { font-size: 1.75rem; }
    .product-grid, .product-grid.four, .category-grid, .stats-grid, .category-admin-grid, .page-admin-grid, .form-grid.two, .spec-grid, .hero-metrics { grid-template-columns: 1fr; }
    .filter-rail { grid-template-columns: 1fr; gap: 0.5rem; }
    .span-2 { grid-column: span 1; }
    .detail-info h1 { font-size: 1.75rem; }
    .detail-media { min-height: 300px; }
    .buy-panel { grid-template-columns: 1fr; }
    .cart-row { grid-template-columns: 70px 1fr; gap: 1rem; }
    .qty-field, .line-total, .remove-inline { grid-column: 2; }
    .cart-actions, .success-actions, .section-heading.wide, .panel-heading, .admin-topbar, .admin-userbar { align-items: stretch; flex-direction: column; gap: 1rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* -------------------------------------------------------------------------- */
/* PRODUCT CMS ENHANCEMENTS
/* -------------------------------------------------------------------------- */
.product-form-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; padding: 1.25rem 1.5rem; background: var(--bg-surface); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.product-form-header h2 { margin: 0; font-size: 1.25rem; font-weight: 800; color: var(--ink); }
.product-form-header-left, .product-form-header-right { display: flex; align-items: center; gap: 0.75rem; }
.product-form-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 2rem; align-items: start; }
.product-form-main { display: grid; gap: 0; }
.product-form-sidebar { display: grid; gap: 1.5rem; }
.product-form-sidebar .admin-panel { display: grid; gap: 1rem; padding: 1.5rem; }
.product-form-sidebar h3, .sidebar-heading { margin: 0 0 0.5rem; font-size: 1rem; font-weight: 700; color: var(--ink); }

.tab-nav { display: flex; gap: 0; background: var(--paper); border: 1px solid var(--line); border-bottom: none; border-radius: 8px 8px 0 0; overflow: hidden; }
.tab-btn { flex: 1; min-height: 48px; padding: 0 1rem; color: var(--muted); background: transparent; border: none; border-right: 1px solid var(--line); border-radius: 0; font-weight: 600; font-size: 0.9375rem; cursor: pointer; transition: all var(--transition-fast); }
.tab-btn:last-child { border-right: none; }
.tab-btn:hover { color: var(--ink); background: var(--bg-surface); }
.tab-btn.active { color: var(--primary); background: var(--bg-surface); border-bottom: 2px solid var(--primary); font-weight: 700; }
.tab-panel { border-radius: 0 0 8px 8px !important; border-top: none; }

.bulk-action-bar { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; padding: 0.75rem 1rem; background: rgba(14, 165, 233, 0.05); border: 1px solid rgba(14, 165, 233, 0.2); border-radius: 8px; font-size: 0.9375rem; font-weight: 600; color: var(--ink); }
.bulk-action-bar select { width: auto; min-width: 160px; min-height: 36px; padding: 0.35rem 0.75rem; border-radius: 6px; border: 1px solid var(--line); background: var(--bg-surface); }
.col-check { width: 48px; text-align: center; }
.admin-table input[type="checkbox"] { width: 1.125rem; min-height: 1.125rem; cursor: pointer; accent-color: var(--primary); }

.status-toggle { display: inline-flex; align-items: center; min-height: 32px; padding: 0.25rem 0.75rem; border: 1px solid transparent; border-radius: var(--radius-pill); font-size: 0.8125rem; font-weight: 700; cursor: pointer; transition: all var(--transition-fast); }
.status-toggle:hover { filter: brightness(0.95); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.status-toggle.is-active { color: var(--success); background: rgba(16, 185, 129, 0.1); border-color: rgba(16, 185, 129, 0.2); }
.status-toggle.is-inactive { color: var(--danger); background: rgba(239, 68, 68, 0.1); border-color: rgba(239, 68, 68, 0.2); }

.stock-badge { display: inline-flex; align-items: center; padding: 0.25rem 0.6rem; border-radius: var(--radius-pill); font-size: 0.75rem; font-weight: 700; }
.stock-out { color: var(--danger); background: rgba(239, 68, 68, 0.1); }
.stock-low { color: var(--warning); background: rgba(245, 158, 11, 0.1); }
.price-compare { display: block; color: var(--muted); font-size: 0.8125rem; text-decoration: line-through; margin-top: 0.25rem; }

.pagination { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.pagination a { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; padding: 0 0.5rem; color: var(--ink-soft); background: var(--bg-surface); border: 1px solid var(--line); border-radius: 8px; font-weight: 600; font-size: 0.9375rem; transition: all var(--transition-fast); }
.pagination a:hover { color: var(--primary); background: rgba(15, 118, 110, 0.05); border-color: var(--primary); }
.pagination a.active { color: white; background: var(--primary); border-color: var(--primary); box-shadow: 0 4px 10px rgba(15, 118, 110, 0.3); }
.table-summary { margin: 1rem 0 0; color: var(--muted); font-size: 0.875rem; font-weight: 500; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.gallery-item { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--bg-main); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow-sm); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-delete { position: absolute; top: 0.5rem; right: 0.5rem; display: grid; place-items: center; width: 28px; height: 28px; color: white; background: rgba(239, 68, 68, 0.9); border: none; border-radius: 50%; font-size: 1rem; font-weight: 800; cursor: pointer; transition: all var(--transition-fast); backdrop-filter: blur(4px); }
.gallery-delete:hover { background: var(--danger); transform: scale(1.1); }
.gallery-new-preview { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }
.gallery-preview-item { width: 100px; height: 100px; overflow: hidden; background: var(--bg-main); border: 1px dashed var(--muted); border-radius: 8px; }
.gallery-preview-item img { width: 100%; height: 100%; object-fit: cover; }

.seo-preview { padding: 1.25rem; background: var(--bg-surface); border: 1px solid var(--line); border-radius: 8px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; box-shadow: var(--shadow-sm); }
.seo-preview-title { margin: 0 0 0.25rem; color: #1a0dab; font-size: 1.25rem; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seo-preview-url { margin: 0 0 0.25rem; color: #006621; font-size: 0.875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seo-preview-desc { margin: 0; color: #545454; font-size: 0.875rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.required { color: var(--danger); font-weight: 800; margin-left: 0.25rem; }

@media (max-width: 900px) {
    .product-form-body { grid-template-columns: 1fr; }
    .product-form-sidebar { order: -1; }
    .product-form-header { flex-direction: column; align-items: flex-start; }
    .tab-btn { font-size: 0.875rem; padding: 0 0.75rem; }
}

/* -------------------------------------------------------------------------- */
/* SETTINGS FORM
/* -------------------------------------------------------------------------- */
.settings-form { max-width: 880px; }
.settings-form-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.settings-tab-nav { border-radius: 8px 8px 0 0; overflow-x: auto; scrollbar-width: none; }
.settings-tab-panel { display: none; background: var(--bg-surface); border: 1px solid var(--line); border-radius: 0 0 12px 12px; padding: 2rem; box-shadow: var(--shadow-sm); }
.settings-tab-panel.active { display: block; }
.settings-fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 1.5rem 1.5rem 2rem; margin: 0 0 1.5rem; background: var(--bg-surface); }
.settings-fieldset legend { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding: 0 0.75rem; }

.img-upload-field { display: flex; flex-direction: column; gap: 0; }
.img-upload-label { font-size: 0.9375rem; font-weight: 700; color: var(--ink); margin: 0 0 0.75rem; }
.img-upload-current { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.img-upload-placeholder { display: flex; align-items: center; justify-content: center; width: 160px; height: 100px; border: 2px dashed var(--line); border-radius: 8px; color: var(--muted); font-size: 0.875rem; margin-bottom: 0.75rem; background: var(--paper); transition: all var(--transition-fast); cursor: pointer; }
.img-upload-placeholder:hover { border-color: var(--primary); color: var(--primary); background: rgba(15, 118, 110, 0.05); }
.settings-placeholder-sm { width: 80px; height: 80px; }
.img-upload-placeholder-wide { width: 100%; max-width: 480px; height: 140px; }
.img-delete-check { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--danger); font-weight: 600; cursor: pointer; }
.img-delete-check input[type="checkbox"] { accent-color: var(--danger); width: 1rem; height: 1rem; cursor: pointer; }
.img-upload-hint { margin: 0.5rem 0 0; font-size: 0.8125rem; color: var(--muted); line-height: 1.5; }

.settings-img-logo { max-width: 200px; max-height: 100px; object-fit: contain; border-radius: 6px; background: var(--paper); padding: 0.5rem; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.settings-img-favicon { width: 64px; height: 64px; object-fit: contain; border-radius: 8px; border: 1px solid var(--line); background: var(--paper); padding: 0.25rem; box-shadow: var(--shadow-sm); }
.settings-img-hero { width: 100%; max-width: 520px; height: 160px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); display: block; box-shadow: var(--shadow-sm); }
.img-file-btn { cursor: pointer; display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 0.5rem; color: var(--primary); font-weight: 600; font-size: 0.9375rem; transition: all var(--transition-fast); }
.img-file-btn:hover { color: var(--blue); text-decoration: underline; }

.input-icon-wrap { position: relative; display: flex; align-items: center; }
.input-icon-wrap .input-icon { position: absolute; left: 1rem; font-size: 0.875rem; font-weight: 700; color: var(--muted); pointer-events: none; user-select: none; }
.input-icon-wrap input { padding-left: 2.75rem !important; width: 100%; }
.field-hint { font-size: 0.8125rem; color: var(--muted); font-weight: 500; margin-top: 0.5rem; display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 680px) {
    .settings-form-header { flex-direction: column; align-items: flex-start; }
    .settings-tab-nav .tab-btn { font-size: 0.8125rem; padding: 0 0.75rem; }
    .form-grid.two { grid-template-columns: 1fr; }
    .span-2 { grid-column: span 1; }
}

/* -------------------------------------------------------------------------- */
/* ADMIN CMS USABILITY LAYER
/* -------------------------------------------------------------------------- */
.admin-sidebar { z-index: 40; }
.admin-nav { gap: 0.75rem; overflow-y: auto; padding-right: 0.5rem; scrollbar-width: thin; }
.admin-nav-group { display: grid; gap: 0.25rem; margin-bottom: 1rem; }
.admin-nav-label { margin: 0 0 0.5rem; padding: 0 1rem; font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 800; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.admin-topbar-left { display: flex; align-items: center; gap: 1rem; }
.admin-topbar-right { display: flex; align-items: center; gap: 1rem; }
.admin-top-actions { display: flex; align-items: center; gap: 0.75rem; }
.admin-menu-toggle { display: none; }
.admin-sidebar-backdrop { display: none; }

@media (max-width: 980px) {
    .admin-shell { grid-template-columns: 1fr; }
    .admin-sidebar { position: fixed; top: 0; left: 0; width: min(320px, 86vw); height: 100vh; transform: translateX(-102%); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); z-index: 50; }
    .admin-sidebar.open { transform: translateX(0); box-shadow: var(--shadow-xl); }
    .admin-sidebar-backdrop { position: fixed; inset: 0; display: block; border: 0; background: rgba(15, 23, 42, 0.5); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; z-index: 45; transition: opacity 0.3s ease; }
    .admin-shell.nav-open .admin-sidebar-backdrop { opacity: 1; pointer-events: auto; }
    .admin-main { padding: 1.5rem; }
    .admin-menu-toggle { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; background: var(--bg-surface); border: 1px solid var(--line); border-radius: 8px; color: var(--ink); cursor: pointer; }
    .admin-topbar { align-items: flex-start; flex-direction: column; padding: 1rem; }
    .admin-topbar-left, .admin-topbar-right { width: 100%; justify-content: space-between; }
    .admin-top-actions { flex-wrap: wrap; }
}
@media (max-width: 620px) {
    .admin-topbar-right { flex-direction: column; align-items: stretch; gap: 1rem; }
    .admin-top-actions, .admin-userbar { width: 100%; }
    .admin-top-actions .button, .admin-userbar .button { flex: 1; }
}

.quick-links-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.quick-link-card { display: grid; gap: 0.5rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-surface); transition: all var(--transition-fast); box-shadow: var(--shadow-sm); }
.quick-link-card strong { font-size: 1rem; font-weight: 700; color: var(--ink); }
.quick-link-card span { color: var(--muted); font-size: 0.875rem; font-weight: 500; }
.quick-link-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--primary); }

.status-summary-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.stat-card.compact { padding: 1.25rem; }
.stat-card.compact strong { margin-top: 0.5rem; font-size: 1.5rem; }

@media (max-width: 1200px) { .quick-links-grid, .status-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .quick-links-grid, .status-summary-grid { grid-template-columns: 1fr; } }

.admin-kpi-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-bottom: 1.5rem; }
.admin-kpi-row.compact { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.admin-kpi-item { padding: 1.5rem; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-surface); box-shadow: var(--shadow-sm); transition: transform var(--transition-fast); }
.admin-kpi-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.admin-kpi-item span { display: block; color: var(--muted); font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.admin-kpi-item strong { display: block; margin-top: 0.5rem; font-size: 1.5rem; font-weight: 800; color: var(--ink); }

.admin-toolbar-wrap { margin-bottom: 1.5rem; }
.admin-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr); gap: 1.5rem; margin-bottom: 1.5rem; }
.admin-card-form, .admin-help-card { display: grid; gap: 1rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-surface); box-shadow: var(--shadow-sm); }
.admin-card-form h3, .admin-help-card h3 { margin: 0; font-size: 1.125rem; font-weight: 700; color: var(--ink); }
.admin-help-card ul { margin: 0; padding-left: 1.25rem; color: var(--ink-soft); font-size: 0.9375rem; line-height: 1.6; }
.admin-help-card li + li { margin-top: 0.5rem; }

@media (max-width: 1100px) {
    .admin-kpi-row, .admin-kpi-row.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-split { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
    .admin-kpi-row, .admin-kpi-row.compact { grid-template-columns: 1fr; }
}
/* ==========================================================================
   TMS PREMIUM COLOR SYSTEM (Apple/Stripe Inspired)
   ========================================================================== */

:root {
    /* Core Brand Colors */
    --primary: #0d9488; /* Deep Teal/Emerald */
    --primary-hover: #0f766e;
    --secondary: #0369a1; /* Ocean Blue */
    --accent: #38bdf8;
    
    /* Gradients */
    --gradient-brand: linear-gradient(135deg, #022c22 0%, #083344 100%); /* Dark Emerald to Deep Ocean */
    --gradient-glass: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.03) 100%);
    
    /* Backgrounds & Surfaces */
    --bg-main: #f8fafc; /* Crisp, ultra-light slate */
    --bg-surface: #ffffff; /* Pure white for cards */
    --bg-glass: rgba(255, 255, 255, 0.7);
    
    /* Typography */
    --text-primary: #0f172a; /* Slate 900 for maximum readability */
    --text-secondary: #334155;
    --text-muted: #64748b; /* Slate 500 for subtle text */
    
    /* Borders & Shadows */
    --border-color: #e2e8f0;
    --border-glass: rgba(255, 255, 255, 0.2);
    --shadow-premium: 0 20px 40px -10px rgba(2, 44, 34, 0.08), 0 1px 3px rgba(0, 0, 0, 0.03);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.02), 0 1px 2px rgba(0, 0, 0, 0.04);
}

/* ==========================================================================
   CLASS COLOR OVERRIDES (Layouts remain untouched)
   ========================================================================== */

/* Body & Backgrounds */
body {
    background-color: var(--bg-main);
    color: var(--text-primary);
}

/* Typography Overrides */
h1, h2, h3, h4, h5, h6, .eyebrow {
    color: var(--text-primary);
}

p, small, .hero-metrics small {
    color: var(--text-muted);
}

/* Hero Section */
.hero-commerce {
    background: var(--bg-surface);
    box-shadow: var(--shadow-premium);
    border: 1px solid var(--border-color);
}

.hero-metrics span {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.hero-metrics span strong {
    color: var(--primary);
}

/* Buttons */
.button.primary {
    background: var(--primary);
    color: #ffffff;
    border: 1px solid var(--primary-hover);
    box-shadow: 0 4px 6px -1px rgba(13, 148, 136, 0.2);
    transition: all 0.2s ease;
}

.button.primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 6px 12px -2px rgba(13, 148, 136, 0.3);
}

.button.secondary {
    background: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.button.secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Category Band & Search */
.category-band .search-input-wrapper input {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

.category-band .search-input-wrapper input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.1);
}

.category-band .search-input-wrapper .icon-search {
    color: var(--primary);
}

/* Category Tiles */
.category-tile {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.category-tile:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-premium);
}

.category-tile span {
    /* Accent dot inside category tile */
    background-color: var(--accent);
}

/* Precision Band (Trust Signals) */
.precision-band {
    background: var(--gradient-brand);
    color: #ffffff; /* Forces white text on dark gradient */
    box-shadow: var(--shadow-premium);
}

.precision-band .eyebrow {
    color: var(--accent);
    background: rgba(0, 0, 0, 0.25);
}

.precision-band .precision-list > div {
    background: var(--gradient-glass);
    border: 1px solid var(--border-glass);
    color: #ffffff;
}

.precision-band .precision-list > div:hover {
    background: rgba(255, 255, 255, 0.12);
}

.precision-band .precision-list svg {
    color: var(--accent);
}

.precision-band .precision-list > div > div {
    background: rgba(0, 0, 0, 0.2);
}

/* Product Section Headers */
.section-heading.wide {
    border-bottom: 1px solid var(--border-color);
}

.section-heading.wide .eyebrow {
    color: var(--secondary);
}

.section-heading.wide a {
    color: var(--primary);
}

.section-heading.wide a:hover {
    color: var(--primary-hover);
}
/* =========================================
   1. Detail Layout (Grid / Flexbox)
   ========================================= */
.detail-layout {
    display: grid;
    grid-template-columns: 1fr; /* 1 kolom di mobile */
    gap: 2rem;
    padding: 2rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .detail-layout {
        grid-template-columns: 1fr 1fr; /* 2 kolom di tablet/desktop */
        gap: 3rem;
        align-items: start;
    }
}

/* =========================================
   2. Media & Gambar Produk
   ========================================= */
.detail-media {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-media > img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    background-color: #f8f9fa;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.product-badge.detail {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: #e74c3c;
    color: #ffffff;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 700;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.75rem;
}

.detail-gallery img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease-in-out;
}

.detail-gallery img:hover {
    border-color: #3498db;
    transform: translateY(-2px);
}

/* =========================================
   3. Informasi Produk (Tipografi & Warna)
   ========================================= */
.detail-info {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.crumb {
    color: #7f8c8d;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.2s ease;
}

.crumb:hover {
    color: #34495e;
}

.detail-info h1 {
    margin: 0;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    line-height: 1.2;
    color: #2c3e50;
    font-weight: 800;
}

.lead {
    margin: 0;
    font-size: 1.125rem;
    color: #555555;
    line-height: 1.6;
}

/* =========================================
   4. Harga Produk
   ========================================= */
.detail-price {
    display: flex;
    align-items: baseline;
    gap: 1rem;
}

.detail-price strong {
    font-size: 2rem;
    color: #e74c3c;
    font-weight: 700;
}

.detail-price del {
    color: #95a5a6;
    font-size: 1.25rem;
    font-weight: 500;
}

/* =========================================
   5. Panel Beli (Form & Tombol Cart)
   ========================================= */
.buy-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
    padding: 1.5rem 0;
    border-top: 1px solid #ecf0f1;
    border-bottom: 1px solid #ecf0f1;
}

.buy-panel label {
    display: flex;
    flex-direction: column;
    font-size: 0.875rem;
    color: #34495e;
    font-weight: 600;
    gap: 0.5rem;
}

.buy-panel input[type="number"] {
    width: 90px;
    padding: 0.75rem;
    border: 2px solid #bdc3c7;
    border-radius: 6px;
    font-size: 1rem;
    text-align: center;
    transition: border-color 0.2s ease;
}

.buy-panel input[type="number"]:focus {
    outline: none;
    border-color: #3498db;
}

/* Styling saat stok kosong (Disabled state) */
.buy-panel input[type="number"]:disabled {
    background-color: #ecf0f1;
    color: #95a5a6;
    border-color: #ecf0f1;
    cursor: not-allowed;
}

.buy-panel .button.primary {
    padding: 0.85rem 2rem;
    background-color: #2ecc71;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    flex-grow: 1; /* Memastikan tombol mengisi sisa ruang */
    text-align: center;
}

.buy-panel .button.primary:hover:not(:disabled) {
    background-color: #27ae60;
    transform: translateY(-1px);
}

.buy-panel .button.primary:active:not(:disabled) {
    transform: translateY(0);
}

/* Tombol disabled (Stok Habis) */
.buy-panel .button.primary:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
    color: #ffffff;
}

/* =========================================
   6. Indikator Stok
   ========================================= */
.stock-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #7f8c8d;
    font-weight: 500;
}

/* Lingkaran hijau/merah sederhana untuk stok */
.stock-line span {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #2ecc71; /* Warna hijau default */
}

/* Jika Anda ingin memberi logika class out-of-stock di PHP nanti */
.stock-line.empty span {
    background-color: #e74c3c; /* Warna merah */
}

/* =========================================
   7. Grid Spesifikasi Produk (JSON)
   ========================================= */
.spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.25rem;
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #ecf0f1;
}

.spec-grid div {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.spec-grid span {
    font-size: 0.75rem;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.spec-grid strong {
    font-size: 0.95rem;
    color: #2c3e50;
}

/* =========================================
   8. Rich Copy / Deskripsi Lengkap
   ========================================= */
.rich-copy {
    line-height: 1.8;
    color: #444444;
    font-size: 1rem;
    margin-top: 1rem;
}

.rich-copy p {
    margin-bottom: 1.25rem;
}

.rich-copy ul, .rich-copy ol {
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.rich-copy li {
    margin-bottom: 0.5rem;
}

.rich-copy h2, .rich-copy h3 {
    color: #2c3e50;
    margin-top: 2rem;
    margin-bottom: 1rem;
}
/* =========================================
   Varian (Chips) di Dalam Form
   ========================================= */
.buy-panel {
    display: flex;
    flex-direction: column; /* Mengubah arah menjadi kolom agar varian ada di atas tombol */
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-top: 1px solid #ecf0f1;
    border-bottom: 1px solid #ecf0f1;
}

.product-variants {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.variant-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.variant-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #2c3e50;
}

.variant-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chip {
    cursor: pointer;
    user-select: none;
}

.chip input[type="radio"] {
    display: none; /* Sembunyikan radio button asli */
}

.chip span {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background-color: #ffffff;
    border: 1px solid #bdc3c7;
    border-radius: 50px;
    font-size: 0.9rem;
    color: #555;
    font-weight: 500;
    transition: all 0.2s ease;
}

/* Styling saat Varian Dipilih */
.chip input[type="radio"]:checked + span {
    background-color: #3498db;
    border-color: #3498db;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(52, 152, 219, 0.3);
}

.chip:hover span {
    border-color: #3498db;
}

/* =========================================
   Aksi Pembelian (Input Qty & Button)
   ========================================= */
.buy-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}

.qty-label {
    display: flex;
    flex-direction: column;
    font-size: 0.875rem;
    color: #34495e;
    font-weight: 600;
    gap: 0.5rem;
}

.qty-label input[type="number"] {
    width: 90px;
    padding: 0.75rem;
    border: 2px solid #bdc3c7;
    border-radius: 6px;
    font-size: 1rem;
    text-align: center;
}

.buy-actions .button.primary {
    flex-grow: 1;
    /* (Styles tombol dari kode sebelumnya) */
}

/* =========================================
   Spec Grid & Tag Cloud (Tampilan Baru)
   ========================================= */
.spec-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    background-color: #f8f9fa;
    padding: 1.25rem;
    border-radius: 8px;
    border: 1px solid #ecf0f1;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px dashed #dfe6e9;
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-label {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.spec-value {
    color: #2c3e50;
    font-size: 0.95rem;
    text-align: right;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.premium-tag {
    background-color: #e8f4fd;
    color: #2980b9;
    padding: 0.35rem 0.85rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid #d6eaf8;
    transition: background-color 0.2s;
}

.premium-tag:hover {
    background-color: #d6eaf8;
}
/* =========================================
   Section Layout (Produk Terkait)
   ========================================= */
.product-section {
    padding: 3rem 2rem;
}

.product-section.compact {
    padding: 2rem 2rem;
    margin-top: 2rem;
    border-top: 1px solid #ecf0f1; /* Garis pemisah dari konten atas */
}

/* =========================================
   Section Heading (Judul & Link Katalog)
   ========================================= */
.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-heading div {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* Teks kecil di atas judul (Eyebrow) */
.eyebrow {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #95a5a6;
    font-weight: 700;
}

.section-heading h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #2c3e50;
    font-weight: 800;
    line-height: 1.2;
}

/* Link "Katalog" */
.section-heading a {
    color: #3498db;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    padding-bottom: 0.2rem;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.section-heading a:hover {
    color: #2980b9;
    border-bottom-color: #2980b9;
}

/* =========================================
   Product Grid (Grid 4 Kolom)
   ========================================= */
.product-grid {
    display: grid;
    gap: 1.5rem;
    /* Default untuk Mobile: 2 kolom (atau ubah ke 1fr jika ingin 1 kolom) */
    grid-template-columns: repeat(2, 1fr); 
}

/* Penyesuaian untuk Tablet */
@media (min-width: 768px) {
    .product-grid {
        gap: 2rem;
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Penyesuaian untuk Desktop (Memakai class .four) */
@media (min-width: 1024px) {
    .product-grid.four {
        grid-template-columns: repeat(4, 1fr);
    }
}
/* ==========================================================================
   CART PAGE LAYOUT & STYLING (Premium Updates)
   ========================================================================== */
.cart-shell {
    padding: 4rem 1.5rem;
    max-width: var(--max-width);
    margin: 0 auto;
    min-height: 60vh;
}

.cart-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}

.cart-header h1 {
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3rem;
    align-items: start;
}

/* Cart Items List */
.cart-items-list {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.cart-row {
    display: grid;
    grid-template-columns: 100px 1fr auto auto auto;
    gap: 1.5rem;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    transition: background var(--transition-fast);
}
.cart-row:last-child {
    border-bottom: none;
}
.cart-row:hover {
    background: rgba(248, 250, 252, 0.6); /* var(--bg-main) blended */
}

.cart-thumb {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    border: 1px solid var(--border-color);
    background: var(--bg-main);
    padding: 0.5rem;
}

.cart-item-details {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

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

.cart-item-meta {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

.cart-item-price {
    font-weight: 700;
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

/* Quantity Controls */
.qty-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-surface);
    width: fit-content;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.qty-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--text-secondary);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
}
.qty-btn:hover {
    background: var(--bg-main);
    color: var(--primary);
}

.qty-field {
    width: 48px;
    height: 36px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--text-primary);
    background: transparent;
    -moz-appearance: textfield;
}
.qty-field::-webkit-outer-spin-button,
.qty-field::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.line-total {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--text-primary);
    min-width: 120px;
    text-align: right;
}

.remove-inline {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    cursor: pointer;
}
.remove-inline:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    transform: scale(1.05);
}

/* Order Summary Sidebar */
.cart-summary {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-xl);
    position: sticky;
    top: 100px;
}

.summary-heading {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.summary-row strong {
    color: var(--text-primary);
}

.summary-row.total {
    border-top: 1px dashed var(--border-color);
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    align-items: center;
}

.summary-row.total .total-val {
    color: var(--primary);
    font-size: 1.5rem;
}

.btn-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem;
    margin-top: 2rem;
    background: var(--gradient-brand);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
    transition: all var(--transition-smooth);
    cursor: pointer;
}
.btn-checkout:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(13, 148, 136, 0.35);
    background: linear-gradient(135deg, #0f766e 0%, #0369a1 100%);
}

/* Empty State */
.cart-empty {
    text-align: center;
    padding: 5rem 2rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    grid-column: 1 / -1;
}
.cart-empty-icon {
    width: 80px;
    height: 80px;
    color: var(--border-color);
    margin: 0 auto 1.5rem;
}
.cart-empty h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}
.cart-empty p {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .cart-layout { grid-template-columns: 1fr; gap: 2rem; }
    .cart-summary { position: static; }
}

@media (max-width: 768px) {
    .cart-row {
        grid-template-columns: 80px 1fr;
        gap: 1rem;
        position: relative;
        padding: 1.25rem 1rem;
    }
    .cart-thumb { width: 80px; height: 80px; }
    .cart-item-details { grid-column: 2; padding-right: 2rem; }
    .qty-wrapper { grid-column: 2; margin-top: 0.5rem; justify-self: start; }
    .line-total { grid-column: 2; text-align: left; margin-top: 0.5rem; font-size: 1.25rem; }
    .remove-inline { position: absolute; top: 1.25rem; right: 1rem; }
    .cart-item-price { display: none; }
}

/* ==========================================================================
   EMPTY STATE STYLING
   ========================================================================== */
.empty-state {
    text-align: center;
    padding: 5rem 2rem;
    background: var(--bg-surface, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: var(--radius-md, 16px);
    box-shadow: var(--shadow-sm, 0 2px 4px rgba(0,0,0,0.02));
    margin: 2rem auto;
    max-width: 600px; /* Membatasi lebar agar teks dan tombol tetap proporsional */
}

.empty-state h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary, #0f172a);
    margin-bottom: 0.75rem;
}

.empty-state p {
    color: var(--text-muted, #64748b);
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
}

/* Memastikan tombol di dalam empty state tampil proporsional */
.empty-state .button {
    display: inline-flex;
    padding: 1rem 2rem;
}
/* ==========================================================================
   CART LAYOUT & ITEMS (Sesuai Struktur HTML Terbaru)
   ========================================================================== */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2.5rem;
    align-items: start;
    max-width: var(--max-width, 1200px);
    margin: 2rem auto;
}

/* Bagian Kiri: Form & Daftar Keranjang */
.cart-items {
    background: var(--bg-surface, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: var(--radius-md, 16px);
    box-shadow: var(--shadow-sm, 0 2px 4px rgba(0,0,0,0.02));
    overflow: hidden;
}

.cart-row {
    display: grid;
    grid-template-columns: 100px 1fr auto auto auto;
    gap: 1.5rem;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
    transition: background var(--transition-fast, 150ms ease);
}
.cart-row:hover {
    background: rgba(248, 250, 252, 0.6); /* Sedikit highlight saat hover */
}

/* Gambar Produk */
.cart-thumb {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-sm, 8px);
    border: 1px solid var(--border-color, #e2e8f0);
    background: var(--bg-main, #f8fafc);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0.5rem;
}
.cart-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Info Produk (.cart-copy) */
.cart-copy {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.cart-copy span {
    font-size: 0.8125rem;
    color: var(--text-muted, #64748b);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.cart-copy h2 {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}
.cart-copy h2 a {
    color: var(--text-primary, #0f172a);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--transition-fast, 150ms);
}
.cart-copy h2 a:hover {
    color: var(--primary, #0d9488);
}
.cart-copy strong {
    font-size: 1rem;
    color: var(--text-secondary, #334155);
    font-weight: 700;
    margin-top: 0.25rem;
}

/* Input Quantity */
.qty-field {
    display: flex;
    flex-direction: column;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted, #64748b);
    gap: 0.35rem;
}
.qty-field input {
    width: 60px;
    padding: 0.5rem;
    text-align: center;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: var(--radius-sm, 8px);
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-primary, #0f172a);
    background: var(--bg-main, #f8fafc);
    transition: all var(--transition-fast, 150ms);
}
.qty-field input:focus {
    outline: none;
    border-color: var(--primary, #0d9488);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

/* Total Harga per Baris */
.line-total {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--text-primary, #0f172a);
    min-width: 120px;
    text-align: right;
}

/* Tombol Hapus */
.remove-inline {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted, #64748b);
    background: transparent;
    border: none;
    border-radius: var(--radius-sm, 8px);
    cursor: pointer;
    transition: all var(--transition-fast, 150ms);
}
.remove-inline:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444; /* Warna merah */
    transform: scale(1.05);
}
.remove-inline svg {
    width: 20px;
    height: 20px;
}

/* Aksi Bawah Form (Lanjut Belanja / Update) */
.cart-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: var(--bg-main, #f8fafc);
    border-top: 1px solid var(--border-color, #e2e8f0);
}

/* ==========================================================================
   SUMMARY PANEL (Bagian Kanan)
   ========================================================================== */
.summary-panel {
    background: var(--bg-surface, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: var(--radius-md, 16px);
    padding: 2rem;
    box-shadow: var(--shadow-xl, 0 20px 25px -5px rgba(0,0,0,0.05));
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.summary-panel h2 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary, #0f172a);
    margin: 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
}
.summary-panel div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9375rem;
    color: var(--text-secondary, #334155);
}
.summary-panel div span {
    font-weight: 500;
}
.summary-panel div strong {
    color: var(--text-primary, #0f172a);
    font-weight: 700;
    font-size: 1.05rem;
}
/* Membesarkan baris Subtotal agar lebih menonjol */
.summary-panel div:nth-of-type(1) strong {
    font-size: 1.25rem;
    color: var(--primary, #0d9488);
}
.summary-panel .button.full {
    width: 100%;
    margin-top: 1rem;
    padding: 1rem;
    text-align: center;
    justify-content: center;
}

/* ==========================================================================
   RESPONSIVE MOBILE
   ========================================================================== */
@media (max-width: 1024px) {
    .cart-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .summary-panel {
        position: static;
    }
}

@media (max-width: 768px) {
    .cart-row {
        grid-template-columns: 80px 1fr;
        gap: 1rem;
        position: relative;
        padding: 1.25rem 1rem;
    }
    .cart-thumb { width: 80px; height: 80px; }
    .cart-copy { grid-column: 2; padding-right: 2rem; }
    .cart-copy strong { display: none; } /* Sembunyikan harga satuan di HP */
    .qty-field { grid-column: 2; flex-direction: row; align-items: center; margin-top: 0.5rem; }
    .line-total { grid-column: 2; text-align: left; font-size: 1.25rem; margin-top: 0.25rem;}
    .remove-inline { position: absolute; top: 1.25rem; right: 1rem; }
    .cart-actions { flex-direction: column-reverse; gap: 1rem; }
    .cart-actions .button { width: 100%; text-align: center; }
}
/* ==========================================================================
   CHECKOUT LAYOUT & FORM
   ========================================================================== */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2.5rem;
    align-items: start;
    max-width: var(--max-width, 1200px);
    margin: 2rem auto;
}

/* Panel Formulir Kiri */
.checkout-form {
    background: var(--bg-surface, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: var(--radius-md, 16px);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm, 0 2px 4px rgba(0,0,0,0.02));
}

/* Sistem Grid Formulir (2 Kolom) */
.form-grid.two {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

/* Label & Elemen Input */
.form-grid label {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary, #334155);
}

.form-grid label.span-2 {
    grid-column: 1 / -1; /* Mengisi penuh lebar grid */
}

.form-grid input,
.form-grid select,
.form-grid textarea {
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: var(--radius-sm, 8px);
    background: var(--bg-main, #f8fafc);
    color: var(--text-primary, #0f172a);
    font-family: inherit;
    font-size: 0.9375rem;
    transition: all var(--transition-fast, 150ms ease);
    width: 100%;
}

.form-grid select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
    outline: none;
    border-color: var(--primary, #0d9488);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
    background: var(--bg-surface, #ffffff);
}

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

.checkout-form .button.primary {
    width: 100%;
    padding: 1.125rem;
    font-size: 1.125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   ORDER SUMMARY PANEL (Bagian Kanan)
   ========================================================================== */
.checkout-layout .summary-panel {
    background: var(--bg-surface, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: var(--radius-md, 16px);
    padding: 2rem;
    box-shadow: var(--shadow-xl, 0 20px 25px -5px rgba(0,0,0,0.05));
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.checkout-layout .summary-panel h2 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary, #0f172a);
    margin: 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
    margin-bottom: 0.5rem;
}

.checkout-layout .summary-panel div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9375rem;
    color: var(--text-secondary, #334155);
}

/* Baris Item Produk di Checkout */
.mini-order-line {
    align-items: flex-start !important;
    border-bottom: 1px dashed var(--border-color, #e2e8f0);
    padding-bottom: 1rem;
    margin-bottom: 0.5rem;
}

.mini-order-line span {
    color: var(--text-primary, #0f172a);
    font-weight: 500;
    line-height: 1.4;
    padding-right: 1rem;
}

.mini-order-line strong {
    font-weight: 700;
    color: var(--text-secondary, #334155);
    white-space: nowrap;
}

/* Baris Grand Total */
.summary-panel .grand {
    border-top: 1px dashed var(--border-color, #e2e8f0);
    padding-top: 1.25rem;
    margin-top: 0.75rem;
}

.summary-panel .grand span {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary, #0f172a);
}

.summary-panel .grand strong {
    font-size: 1.5rem;
    color: var(--primary, #0d9488);
    font-weight: 800;
}

/* ==========================================================================
   RESPONSIVE MOBILE
   ========================================================================== */
@media (max-width: 1024px) {
    .checkout-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .checkout-layout .summary-panel {
        position: static;
        order: -1; /* Memindahkan ringkasan pesanan ke atas form di layar kecil */
    }
}

@media (max-width: 768px) {
    .form-grid.two {
        grid-template-columns: 1fr; /* Menjadikan form 1 kolom penuh di HP */
        gap: 1.25rem;
    }
    .checkout-form {
        padding: 1.5rem;
    }
}
/* ==========================================================================
   ORDER SUCCESS & RECEIPT PAGE
   ========================================================================== */
.site-main {
    padding: 4rem 1.5rem;
    background: var(--bg-main, #f8fafc);
    min-height: calc(100vh - 80px);
}

/* 1. Bagian Atas: Pesan Sukses (.success-stage) */
.success-stage {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Lingkaran Ikon Centang */
.success-mark {
    width: 80px;
    height: 80px;
    background: rgba(13, 148, 136, 0.1); /* Transparansi warna primary */
    color: var(--primary, #0d9488);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 0 8px rgba(13, 148, 136, 0.05);
}
.success-mark svg {
    width: 40px;
    height: 40px;
}

/* Teks Status Pesanan */
.success-stage .eyebrow {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted, #64748b);
    margin-bottom: 0.5rem;
}
.success-stage h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--text-primary, #0f172a);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}
.success-stage p {
    font-size: 1.05rem;
    color: var(--text-secondary, #334155);
    line-height: 1.6;
    margin-bottom: 0.25rem;
}

/* Tombol Aksi */
.success-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2.5rem;
    width: 100%;
}
.success-actions .button {
    min-width: 160px;
    justify-content: center;
}

/* 2. Bagian Bawah: Resi / Rincian Pesanan (.order-receipt) */
.order-receipt {
    max-width: 540px;
    margin: 0 auto;
    background: var(--bg-surface, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: var(--radius-md, 16px);
    padding: 2.5rem;
    box-shadow: var(--shadow-xl, 0 20px 25px -5px rgba(0,0,0,0.05));
}

.order-receipt div {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem 0;
    border-bottom: 1px dashed var(--border-color, #e2e8f0);
    font-size: 0.9375rem;
    color: var(--text-secondary, #334155);
}
.order-receipt div:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.order-receipt div span {
    padding-right: 1.5rem;
    line-height: 1.4;
}
.order-receipt div strong {
    color: var(--text-primary, #0f172a);
    font-weight: 700;
    white-space: nowrap;
}

/* Styling Khusus Grand Total */
.order-receipt .grand {
    margin-top: 0.5rem;
    border-top: 2px solid var(--border-color, #e2e8f0);
    border-bottom: none;
    padding-top: 1.5rem;
    align-items: center;
}
.order-receipt .grand span {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary, #0f172a);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.order-receipt .grand strong {
    font-size: 1.5rem;
    color: var(--primary, #0d9488);
    font-weight: 800;
}

/* ==========================================================================
   RESPONSIVE MOBILE
   ========================================================================== */
@media (max-width: 640px) {
    .site-main {
        padding: 2rem 1rem;
    }
    
    .success-actions {
        flex-direction: column;
    }
    
    .success-actions .button {
        width: 100%;
    }

    .order-receipt {
        padding: 1.5rem;
    }
    
    .order-receipt div {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .order-receipt div strong {
        align-self: flex-end; /* Memindahkan harga ke kanan bawah di layar sempit */
    }

    .order-receipt .grand {
        flex-direction: row; /* Baris grand total tetap sejajar (kiri-kanan) di HP */
        justify-content: space-between;
    }
}

/* Container pembungkus (Pastikan .auth-panel dibungkus dalam div ini) */
.auth-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--bg-main, #f8fafc);
    padding: 1.5rem;
}

/* Panel Utama */
.auth-panel {
    width: 100%;
    max-width: 400px;
    background: var(--bg-surface, #ffffff);
    padding: 2.5rem;
    border-radius: var(--radius-md, 16px);
    border: 1px solid var(--border-color, #e2e8f0);
    box-shadow: var(--shadow-xl, 0 20px 25px -5px rgba(0,0,0,0.1));
}

/* Branding */
.auth-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    text-decoration: none;
    color: var(--text-primary, #0f172a);
}
.auth-brand strong { font-size: 1.25rem; display: block; }
.auth-brand small { color: var(--text-muted, #64748b); font-size: 0.75rem; letter-spacing: 0.05em; text-transform: uppercase; }

/* Heading */
.auth-heading { margin-bottom: 2rem; }
.auth-heading .eyebrow {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary, #0d9488);
    margin-bottom: 0.5rem;
}
.auth-heading h1 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.auth-heading p { color: var(--text-muted, #64748b); font-size: 0.9375rem; }

/* Form */
.auth-form { display: flex; flex-direction: column; gap: 1.25rem; }
.auth-form label {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary, #334155);
}
.auth-form input {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: var(--radius-sm, 8px);
    background: #ffffff;
    font-size: 1rem;
    transition: all 0.2s ease;
}
.auth-form input:focus {
    outline: none;
    border-color: var(--primary, #0d9488);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

/* Button */
.auth-form .button.full {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.75rem;
    font-weight: 700;
}