/* Tetran Electro — Main Stylesheet */

:root {
  --primary: #0f172a;
  --primary-light: #1e293b;
  --accent: #f97316;
  --accent-light: #fb923c;
  --accent-dark: #ea580c;
  --text: #1e293b;
  --text-light: #64748b;
  --text-muted: #94a3b8;
  --bg: #f8fafc;
  --bg-white: #ffffff;
  --border: #e2e8f0;
  --border-dark: #cbd5e1;
  --success: #22c55e;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #3b82f6;
  --surface-alt: #f1f5f9;
  --accent-soft: #fff7ed;
  --accent-text: #c2410c;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,.1), 0 4px 6px rgba(0,0,0,.05);
  --transition: all 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ===== CONTAINER ===== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 20px; border-radius: var(--radius-sm); font-weight: 600;
  font-size: 14px; transition: var(--transition); cursor: pointer; border: 2px solid transparent;
}
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--border-dark); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-dark { background: var(--primary); color: white; }
.btn-dark:hover { background: var(--primary-light); }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #dc2626; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-block { width: 100%; }

/* ===== NAVBAR ===== */
.navbar {
  background: var(--bg-white);
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(15,23,42,.06);
}
.navbar .container {
  display: flex; align-items: center; gap: 20px;
  padding: 14px 20px; min-height: 70px;
}
.brand-logo { display: flex; align-items: center; gap: 10px; }
.brand-icon { font-size: 28px; filter: drop-shadow(0 1px 3px rgba(249,115,22,.45)); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-size: 18px; font-weight: 800; color: var(--primary); letter-spacing: 2px; }
.brand-sub { font-size: 10px; color: var(--accent-text); letter-spacing: 3px; font-weight: 600; }

.navbar-search { flex: 1; max-width: 500px; }
.search-form { display: flex; background: var(--bg); border-radius: 8px; overflow: hidden; border: 1px solid var(--border); transition: var(--transition); }
.search-form:focus-within { border-color: var(--accent); background: var(--bg-white); }
.search-input { flex: 1; padding: 10px 16px; background: transparent; color: var(--text); font-size: 14px; border: none; outline: none; }
.search-input::placeholder { color: var(--text-muted); }
.search-btn { padding: 10px 16px; color: white; background: var(--accent); border-left: none; transition: var(--transition); }
.search-btn:hover { background: var(--accent-dark); }

.navbar-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.cart-btn { position: relative; font-size: 24px; color: var(--primary); padding: 6px; transition: var(--transition); }
.cart-btn:hover { color: var(--accent); transform: scale(1.1); }
.cart-badge {
  position: absolute; top: -4px; right: -4px;
  background: var(--accent); color: white; border-radius: 50%;
  width: 20px; height: 20px; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

.user-menu { position: relative; }
.user-name { color: var(--text); cursor: pointer; padding: 8px 12px; border-radius: 8px; transition: var(--transition); font-size: 14px; font-weight: 500; }
.user-name:hover { background: var(--bg); }
.user-dropdown {
  position: absolute; right: 0; top: calc(100% + 8px);
  background: white; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  min-width: 180px; padding: 8px; display: none; z-index: 200;
}
.user-menu:hover .user-dropdown { display: flex; flex-direction: column; gap: 2px; }
.user-dropdown a, .user-dropdown .logout-btn {
  padding: 10px 14px; border-radius: 6px; font-size: 14px; color: var(--text); display: block;
  transition: var(--transition); text-align: left; width: 100%;
}
.user-dropdown a:hover, .user-dropdown .logout-btn:hover { background: var(--bg); color: var(--accent); }
.logout-btn { color: var(--danger) !important; }

.hamburger { display: none; color: var(--primary); font-size: 24px; padding: 8px; }
.mobile-menu { display: none; background: var(--bg-white); border-bottom: 1px solid var(--border); padding: 16px 20px; gap: 8px; flex-direction: column; }
.mobile-menu.active { display: flex; }
.mobile-menu a, .mobile-menu button { color: var(--text); padding: 10px; font-size: 15px; border-radius: 6px; text-align: left; }
.mobile-menu a:hover { background: var(--bg); }
.mobile-search { display: flex; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; margin-bottom: 8px; }
.mobile-search input { flex: 1; padding: 10px 14px; background: transparent; color: var(--text); border: none; outline: none; }
.mobile-search button { padding: 10px 14px; color: white; background: var(--accent); }

/* ===== CATEGORY BAR ===== */
.category-bar { background: var(--surface-alt); border-bottom: 1px solid var(--border); }
.category-links { display: flex; gap: 4px; padding: 10px 0; overflow-x: auto; scrollbar-width: none; }
.category-links::-webkit-scrollbar { display: none; }
.category-links a {
  color: var(--text-light); font-size: 13px; font-weight: 500;
  padding: 6px 14px; border-radius: 20px; white-space: nowrap;
  transition: var(--transition);
}
.category-links a:hover, .category-links a.active { background: var(--accent); color: white; }

/* ===== FLASH MESSAGES ===== */
.flash {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; font-size: 14px; font-weight: 500;
}
.flash button { font-size: 18px; color: inherit; opacity: 0.7; padding: 0 4px; }
.flash-notice { background: #dcfce7; color: #15803d; border-bottom: 2px solid #22c55e; }
.flash-alert { background: #fee2e2; color: #dc2626; border-bottom: 2px solid #ef4444; }

/* ===== HERO SECTION ===== */
.hero {
  background: linear-gradient(135deg, #fff7ed 0%, var(--bg) 52%, #eef4ff 100%);
  border-bottom: 1px solid var(--border);
  padding: 80px 0; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23f97316' fill-opacity='0.14'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-badge { display: inline-block; background: var(--accent); color: white; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; letter-spacing: 1px; margin-bottom: 16px; }
.hero h1 { font-size: 52px; font-weight: 800; color: var(--primary); line-height: 1.15; margin-bottom: 20px; }
.hero h1 span { color: var(--accent); }
.hero p { font-size: 18px; color: var(--text-light); margin-bottom: 32px; line-height: 1.7; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-visual { display: flex; align-items: center; justify-content: center; }
.hero-icon-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.hero-icon-card {
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; text-align: center;
  box-shadow: var(--shadow); transition: var(--transition);
}
.hero-icon-card:hover { background: var(--accent-soft); border-color: var(--accent); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.hero-icon-card .icon { font-size: 36px; display: block; margin-bottom: 8px; }
.hero-icon-card span:last-child { font-size: 13px; color: var(--text-light); font-weight: 500; }
.hero-stats { display: flex; gap: 32px; margin-top: 32px; }
.hero-stat .number { font-size: 28px; font-weight: 800; color: var(--accent-dark); }
.hero-stat .label { font-size: 12px; color: var(--text-light); }

/* ===== SECTION ===== */
.section { padding: 64px 0; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.section-title { font-size: 28px; font-weight: 800; color: var(--primary); }
.section-title span { color: var(--accent); }
.section-subtitle { color: var(--text-light); font-size: 15px; margin-top: 4px; }
.section-link { color: var(--accent); font-weight: 600; font-size: 14px; }
.section-link:hover { text-decoration: underline; }

/* ===== CATEGORIES GRID ===== */
.categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.category-card {
  background: white; border: 2px solid var(--border); border-radius: var(--radius);
  padding: 24px 16px; text-align: center; transition: var(--transition); cursor: pointer;
}
.category-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.category-card .cat-icon { font-size: 40px; display: block; margin-bottom: 12px; }
.category-card .cat-name { font-weight: 700; font-size: 14px; color: var(--text); }
.category-card .cat-count { font-size: 12px; color: var(--text-light); margin-top: 4px; }

/* ===== PRODUCTS GRID ===== */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }

.product-card {
  background: white; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: var(--transition); border: 1px solid var(--border);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.product-image {
  aspect-ratio: 1; background: var(--bg); position: relative; overflow: hidden;
}
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.product-card:hover .product-image img { transform: scale(1.05); }
.product-image-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 64px; color: var(--text-muted); background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}
.product-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--accent); color: white; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700;
}
.product-badge.out-of-stock { background: var(--text-muted); }

.product-info { padding: 16px; }
.product-category { font-size: 11px; color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.product-name { font-size: 15px; font-weight: 700; margin: 6px 0; color: var(--text); line-height: 1.4; }
.product-brand { font-size: 12px; color: var(--text-light); }
.product-price { font-size: 20px; font-weight: 800; color: var(--accent); margin: 12px 0 14px; }

.product-actions { display: flex; gap: 8px; }
.product-actions .btn { flex: 1; font-size: 13px; padding: 8px 12px; }

/* ===== PRODUCT DETAIL ===== */
.product-detail { padding: 40px 0; }
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.product-gallery { position: sticky; top: 100px; }
.main-image { aspect-ratio: 1; background: white; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--border); }
.main-image img { width: 100%; height: 100%; object-fit: cover; }
.thumb-strip { display: flex; gap: 10px; margin-top: 12px; }
.thumb { width: 72px; height: 72px; border-radius: 8px; overflow: hidden; border: 2px solid var(--border); cursor: pointer; flex-shrink: 0; }
.thumb:hover, .thumb.active { border-color: var(--accent); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-detail-info { }
.breadcrumb { display: flex; gap: 8px; font-size: 13px; color: var(--text-light); margin-bottom: 20px; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--text-muted); }
.product-detail-category { color: var(--accent); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.product-detail-name { font-size: 32px; font-weight: 800; margin: 8px 0 4px; line-height: 1.3; }
.product-detail-brand { color: var(--text-light); font-size: 15px; margin-bottom: 20px; }
.product-detail-price { font-size: 36px; font-weight: 800; color: var(--accent); margin-bottom: 24px; }
.stock-status { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 600; margin-bottom: 24px; }
.stock-status.in-stock { background: #dcfce7; color: #15803d; }
.stock-status.out-of-stock { background: #fee2e2; color: #dc2626; }
.product-description { color: var(--text-light); line-height: 1.8; margin-bottom: 28px; font-size: 15px; }
.quantity-selector { display: flex; align-items: center; gap: 0; margin-bottom: 20px; }
.quantity-selector label { font-weight: 600; font-size: 14px; margin-right: 16px; }
.qty-btn { width: 38px; height: 38px; background: var(--bg); border: 1px solid var(--border); border-radius: 6px; font-size: 18px; font-weight: 600; transition: var(--transition); }
.qty-btn:hover { background: var(--accent); color: white; border-color: var(--accent); }
.qty-input { width: 60px; height: 38px; text-align: center; border: 1px solid var(--border); border-left: none; border-right: none; font-size: 16px; font-weight: 600; }
.add-to-cart-section { display: flex; gap: 12px; margin-top: 8px; }
.product-specs { background: white; border-radius: var(--radius); padding: 24px; margin-top: 32px; border: 1px solid var(--border); }
.product-specs h3 { font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.spec-row { display: flex; border-bottom: 1px solid var(--border); padding: 10px 0; }
.spec-row:last-child { border-bottom: none; }
.spec-label { width: 140px; font-size: 14px; color: var(--text-light); flex-shrink: 0; }
.spec-value { font-size: 14px; font-weight: 600; }

/* ===== CART ===== */
.cart-page { padding: 40px 0; }
.cart-grid { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
.cart-items-list { background: white; border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; }
.cart-items-header { padding: 20px 24px; border-bottom: 1px solid var(--border); font-weight: 700; color: var(--text-light); font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; }
.cart-item { display: grid; grid-template-columns: 80px 1fr auto auto auto; align-items: center; gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.cart-item:last-child { border-bottom: none; }
.cart-item-image { width: 80px; height: 80px; border-radius: 8px; overflow: hidden; background: var(--bg); }
.cart-item-image img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-name { font-weight: 700; font-size: 15px; }
.cart-item-category { font-size: 12px; color: var(--text-light); }
.cart-item-price { font-weight: 700; color: var(--accent); }
.cart-item-qty { display: flex; align-items: center; gap: 0; }
.cart-item-total { font-weight: 800; font-size: 16px; min-width: 120px; text-align: right; }
.cart-empty { text-align: center; padding: 80px 40px; }
.cart-empty .empty-icon { font-size: 64px; margin-bottom: 20px; }
.cart-empty h2 { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.cart-empty p { color: var(--text-light); margin-bottom: 24px; }

.order-summary { background: white; border-radius: var(--radius); border: 1px solid var(--border); padding: 24px; position: sticky; top: 100px; }
.order-summary h3 { font-size: 18px; font-weight: 800; margin-bottom: 20px; }
.summary-row { display: flex; justify-content: space-between; padding: 10px 0; font-size: 14px; }
.summary-row.total { border-top: 2px solid var(--border); margin-top: 8px; font-size: 18px; font-weight: 800; color: var(--accent); padding-top: 14px; }

/* ===== CHECKOUT ===== */
.checkout-page { padding: 40px 0; }
.checkout-grid { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; }
.checkout-section { background: white; border-radius: var(--radius); border: 1px solid var(--border); padding: 28px; margin-bottom: 24px; }
.checkout-section h3 { font-size: 18px; font-weight: 800; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-label { font-size: 13px; font-weight: 600; color: var(--text); }
.form-input, .form-select, .form-textarea {
  padding: 11px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 14px; transition: var(--transition); background: white; color: var(--text); width: 100%;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(249,115,22,.1); }
.form-textarea { resize: vertical; min-height: 90px; }

.expedition-options { display: flex; flex-direction: column; gap: 12px; }
.expedition-option { cursor: pointer; }
.expedition-option input[type=radio] { display: none; }
.expedition-label {
  display: flex; align-items: center; justify-content: space-between;
  border: 2px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px;
  transition: var(--transition); cursor: pointer;
}
.expedition-option input[type=radio]:checked + .expedition-label { border-color: var(--accent); background: rgba(249,115,22,.05); }
.expedition-name { font-weight: 700; font-size: 15px; }
.expedition-desc { font-size: 12px; color: var(--text-light); }
.expedition-cost { font-weight: 800; color: var(--accent); font-size: 15px; }

.payment-options { display: flex; gap: 16px; }
.payment-option { cursor: pointer; flex: 1; }
.payment-option input[type=radio] { display: none; }
.payment-label {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  border: 2px solid var(--border); border-radius: var(--radius-sm); padding: 20px;
  transition: var(--transition); cursor: pointer; text-align: center;
}
.payment-option input[type=radio]:checked + .payment-label { border-color: var(--accent); background: rgba(249,115,22,.05); }
.payment-label .payment-icon { font-size: 32px; }
.payment-label .payment-name { font-weight: 700; font-size: 14px; }
.payment-label .payment-desc { font-size: 12px; color: var(--text-light); }

/* ===== ORDERS ===== */
.orders-page { padding: 40px 0; }
.orders-list { display: flex; flex-direction: column; gap: 16px; }
.order-card {
  background: white; border-radius: var(--radius); border: 1px solid var(--border);
  padding: 24px; transition: var(--transition);
}
.order-card:hover { box-shadow: var(--shadow-md); }
.order-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.order-number { font-weight: 800; font-size: 16px; }
.order-date { font-size: 13px; color: var(--text-light); }
.order-status-badge { padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.status-pending { background: #fef3c7; color: #92400e; }
.status-processing { background: #dbeafe; color: #1e40af; }
.status-shipped { background: #ede9fe; color: #5b21b6; }
.status-delivered { background: #dcfce7; color: #14532d; }
.status-cancelled { background: #fee2e2; color: #991b1b; }
.order-items-preview { display: flex; gap: 12px; margin-bottom: 16px; }
.order-item-thumb { width: 50px; height: 50px; border-radius: 6px; background: var(--bg); overflow: hidden; }
.order-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.order-more-items { width: 50px; height: 50px; border-radius: 6px; background: var(--bg); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--text-light); }
.order-card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; border-top: 1px solid var(--border); }
.order-total { font-size: 18px; font-weight: 800; color: var(--accent); }

/* ===== ORDER DETAIL ===== */
.order-detail { padding: 40px 0; }
.order-detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: 32px; }
.detail-card { background: white; border-radius: var(--radius); border: 1px solid var(--border); padding: 24px; margin-bottom: 20px; }
.detail-card h3 { font-size: 16px; font-weight: 800; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.detail-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; }
.detail-row span:first-child { color: var(--text-light); }
.detail-row span:last-child { font-weight: 600; }
.detail-items { }
.detail-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.detail-item:last-child { border-bottom: none; }
.detail-item-image { width: 60px; height: 60px; border-radius: 8px; background: var(--bg); overflow: hidden; flex-shrink: 0; }
.detail-item-image img { width: 100%; height: 100%; object-fit: cover; }
.detail-item-name { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.detail-item-qty { font-size: 13px; color: var(--text-light); }
.detail-item-price { font-weight: 800; color: var(--accent); margin-left: auto; text-align: right; }

/* ===== PAYMENT PAGE ===== */
.payment-page { padding: 40px 0; max-width: 640px; margin: 0 auto; }
.payment-card { background: white; border-radius: var(--radius); border: 1px solid var(--border); padding: 40px; text-align: center; }
.payment-amount { font-size: 42px; font-weight: 800; color: var(--accent); margin: 20px 0; }
.qris-container { background: var(--bg); border-radius: var(--radius); padding: 30px; margin: 24px 0; display: inline-block; }
.qris-code { width: 280px; max-width: 100%; margin: 0 auto; padding: 10px; border-radius: 12px; border: 2px solid var(--border); background: white; }
.qris-code svg { display: block; width: 100%; height: auto; }
.bank-transfer-info { text-align: left; background: var(--bg); border-radius: var(--radius); padding: 24px; margin: 24px 0; }
.bank-account { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); }
.bank-account:last-child { border-bottom: none; }
.bank-name { font-weight: 700; }
.bank-number { font-size: 20px; font-weight: 800; font-family: monospace; }
.payment-instructions { font-size: 14px; color: var(--text-light); line-height: 1.8; text-align: left; margin: 20px 0; }
.payment-instructions li { margin-bottom: 8px; }

/* ===== TRACKING ===== */
.track-page { padding: 40px 0; max-width: 720px; margin: 0 auto; }
.track-header { background: white; border-radius: var(--radius); border: 1px solid var(--border); padding: 28px; margin-bottom: 24px; }
.track-number { font-size: 13px; color: var(--text-light); }
.track-number strong { font-family: monospace; font-size: 16px; color: var(--text); }
.timeline { position: relative; padding: 8px 0; }
.timeline::before { content: ''; position: absolute; left: 24px; top: 0; bottom: 0; width: 2px; background: var(--border); }
.timeline-item { display: flex; gap: 20px; margin-bottom: 32px; position: relative; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
  width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0; border: 3px solid var(--border); background: white; position: relative; z-index: 1;
}
.timeline-item.completed .timeline-dot { background: var(--accent); border-color: var(--accent); }
.timeline-item.active .timeline-dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 6px rgba(249,115,22,.2); }
.timeline-content { padding-top: 10px; }
.timeline-title { font-weight: 700; font-size: 16px; }
.timeline-desc { font-size: 14px; color: var(--text-light); margin-top: 4px; }
.track-info-card { background: white; border-radius: var(--radius); border: 1px solid var(--border); padding: 24px; }
.shipping-info { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.shipping-detail { }
.shipping-detail label { font-size: 12px; color: var(--text-light); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.shipping-detail p { font-weight: 700; margin-top: 4px; }

/* ===== AUTH PAGES ===== */
.auth-page { min-height: calc(100vh - 130px); display: flex; align-items: center; justify-content: center; padding: 40px 20px; background: var(--bg); }
.auth-card { background: white; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 48px; width: 100%; max-width: 440px; }
.auth-logo { text-align: center; margin-bottom: 32px; }
.auth-logo .brand-icon { font-size: 40px; }
.auth-logo .brand-name { font-size: 22px; font-weight: 800; }
.auth-title { font-size: 24px; font-weight: 800; text-align: center; margin-bottom: 8px; }
.auth-subtitle { text-align: center; color: var(--text-light); font-size: 14px; margin-bottom: 32px; }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-divider { text-align: center; color: var(--text-muted); font-size: 14px; margin: 8px 0; }
.auth-footer { text-align: center; margin-top: 24px; font-size: 14px; color: var(--text-light); }
.auth-footer a { color: var(--accent); font-weight: 600; }

/* ===== ADMIN ===== */
.admin-layout { background: #f1f5f9; }
.admin-wrapper { display: flex; min-height: 100vh; }
.admin-sidebar { width: 240px; background: var(--bg-white); border-right: 1px solid var(--border); flex-shrink: 0; }
.admin-logo { padding: 24px 20px; border-bottom: 1px solid var(--border); }
.admin-logo a { display: flex; align-items: center; gap: 10px; color: var(--primary); font-weight: 800; font-size: 16px; }
.admin-logo span { font-size: 24px; }
.admin-nav { padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; }
.admin-nav-link {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 8px;
  color: var(--text-light); font-size: 14px; font-weight: 500; transition: var(--transition);
}
.admin-nav-link:hover { background: var(--bg); color: var(--primary); }
.admin-nav-link.active { background: var(--accent); color: white; }
.admin-nav-divider { height: 1px; background: var(--border); margin: 12px 0; }
.admin-logout { color: var(--danger) !important; }
.admin-content { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.admin-header { background: white; border-bottom: 1px solid var(--border); padding: 20px 32px; display: flex; align-items: center; justify-content: space-between; }
.admin-header h1 { font-size: 22px; font-weight: 800; }
.admin-user { font-size: 14px; color: var(--text-light); }
.admin-main { padding: 32px; flex: 1; }

.admin-table-card { background: white; border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; }
.admin-table-header { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.admin-table-header h3 { font-size: 16px; font-weight: 800; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { background: var(--bg); padding: 12px 16px; text-align: left; font-size: 12px; font-weight: 700; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.5px; }
.admin-table td { padding: 16px; border-top: 1px solid var(--border); font-size: 14px; vertical-align: middle; }
.admin-table tr:hover td { background: rgba(249,115,22,.02); }

.admin-form { max-width: 700px; }
.admin-form-card { background: white; border-radius: var(--radius); border: 1px solid var(--border); padding: 28px; margin-bottom: 20px; }
.admin-form-card h3 { font-size: 16px; font-weight: 800; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 32px; }
.stat-card { background: white; border-radius: var(--radius); border: 1px solid var(--border); padding: 24px; }
.stat-number { font-size: 32px; font-weight: 800; color: var(--accent); }
.stat-label { font-size: 13px; color: var(--text-light); margin-top: 4px; }
.stat-icon { font-size: 28px; margin-bottom: 12px; }

/* ===== BREADCRUMB ===== */
.page-breadcrumb { background: white; border-bottom: 1px solid var(--border); padding: 14px 0; }
.page-breadcrumb .container { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.page-breadcrumb a { color: var(--text-light); }
.page-breadcrumb a:hover { color: var(--accent); }
.page-breadcrumb .sep { color: var(--text-muted); }
.page-breadcrumb .current { font-weight: 600; color: var(--text); }

/* ===== UTILITY ===== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-light); }
.mt-1 { margin-top: 4px; } .mt-2 { margin-top: 8px; } .mt-3 { margin-top: 16px; } .mt-4 { margin-top: 24px; }
.mb-1 { margin-bottom: 4px; } .mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 16px; } .mb-4 { margin-bottom: 24px; }
.gap-2 { gap: 8px; } .gap-3 { gap: 16px; }
.flex { display: flex; } .flex-col { flex-direction: column; } .items-center { align-items: center; }
.justify-between { justify-content: space-between; } .justify-center { justify-content: center; }
.w-full { width: 100%; }
.empty-state { text-align: center; padding: 80px 40px; color: var(--text-light); }
.empty-state .icon { font-size: 64px; margin-bottom: 20px; }
.divider { border: none; border-top: 1px solid var(--border); margin: 20px 0; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.tag-orange { background: #fff7ed; color: var(--accent); }
.tag-blue { background: #eff6ff; color: #1d4ed8; }
.tag-green { background: #f0fdf4; color: #15803d; }
.tag-red { background: #fef2f2; color: #dc2626; }

/* ===== FOOTER ===== */
.footer { background: var(--surface-alt); color: var(--text-light); border-top: 1px solid var(--border); margin-top: 80px; padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { font-size: 14px; line-height: 1.7; margin-top: 16px; color: var(--text-light); }
.footer-brand .brand-logo { margin-bottom: 8px; }
.social-links { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.social-link { font-size: 13px; color: var(--text-light); padding: 6px 12px; background: var(--bg-white); border: 1px solid var(--border); border-radius: 6px; }
.social-link:hover { background: var(--accent); border-color: var(--accent); color: white; }
.footer-links h4 { font-size: 14px; font-weight: 700; color: var(--primary); margin-bottom: 16px; text-transform: uppercase; letter-spacing: 1px; }
.footer-links a { display: block; font-size: 14px; color: var(--text-light); margin-bottom: 10px; transition: var(--transition); }
.footer-links a:hover { color: var(--accent-text); }
.footer-contact h4 { font-size: 14px; font-weight: 700; color: var(--primary); margin-bottom: 16px; text-transform: uppercase; letter-spacing: 1px; }
.footer-contact p { font-size: 14px; color: var(--text-light); margin-bottom: 10px; }
.footer-bottom { border-top: 1px solid var(--border); padding: 20px 0; display: flex; align-items: center; justify-content: space-between; }
.footer-bottom p { font-size: 13px; color: var(--text-muted); }
.payment-badges { display: flex; gap: 8px; }
.badge { background: var(--bg-white); color: var(--text-light); border: 1px solid var(--border); padding: 4px 10px; border-radius: 4px; font-size: 11px; font-weight: 700; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cart-grid, .checkout-grid, .order-detail-grid { grid-template-columns: 1fr; }
  .product-detail-grid { grid-template-columns: 1fr; }
  .product-gallery { position: static; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hero { padding: 48px 0; }
  .hero h1 { font-size: 34px; }
  .navbar-search, .navbar-actions .btn { display: none; }
  .hamburger { display: block; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .payment-options { flex-direction: column; }
  .admin-sidebar { display: none; }
  .cart-item { grid-template-columns: 60px 1fr; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
  .shipping-info { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .auth-card { padding: 32px 24px; }
  .admin-main { padding: 16px; }
}

/* ===== LINKTREE / LINK-IN-BIO PAGE ===== */
.linktree-body {
  background: linear-gradient(160deg, #fff7ed 0%, var(--bg) 55%, #eef4ff 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 48px 16px;
}
.linktree-page { width: 100%; max-width: 480px; }
.lt-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.lt-avatar {
  width: 100%;
  max-width: 280px;
  border-radius: var(--radius);
  background: var(--bg-white);
  overflow: hidden;
  box-shadow: 0 0 0 4px rgba(249,115,22,.22), 0 10px 30px rgba(15,23,42,.12);
  margin-bottom: 20px;
}
.lt-avatar-img {
  width: 100%;
  height: auto;
  display: block;
}
.lt-name {
  color: var(--primary);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.lt-bio {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 28px;
  max-width: 360px;
}
.lt-section { width: 100%; margin-bottom: 20px; }
.lt-section-title {
  color: var(--accent-text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 10px;
  text-align: left;
}
.lt-link {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: var(--bg-white);
  border: 1px solid var(--border-dark);
  color: #000;
  padding: 14px 18px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
  box-shadow: 0 1px 2px rgba(15,23,42,.06);
  transition: var(--transition);
}
.lt-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(249,115,22,.28);
}
.lt-link-wa:hover { background: #16a34a; border-color: #16a34a; color: white; box-shadow: 0 8px 18px rgba(22,163,74,.28); }
.lt-link-icon {
  font-size: 18px;
  flex: none;
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
}
.lt-link-icon svg { width: 22px; height: 22px; display: block; }
.lt-link-label { flex: 1; text-align: left; }
.lt-socials {
  display: flex;
  gap: 16px;
  margin: 8px 0 28px;
}
.lt-social-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg-white);
  border: 1px solid var(--border-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  transition: var(--transition);
}
.lt-social-icon:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 6px 14px rgba(249,115,22,.28); }
.lt-social-icon svg { width: 22px; height: 22px; display: block; }
/* Pintu masuk ke toko: dulu 13px abu-abu dan nyaris tak terbaca di bawah
   deretan tombol. Sekarang ukuran dan bobotnya sepadan dengan perannya. */
.lt-home-link {
  color: #000;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.lt-home-link:hover { color: var(--accent-text); }

/* ===== BRAND LOGO IMAGE ===== */
.brand-logo-img { height: 38px; width: auto; display: block; border-radius: 4px; }
.auth-logo .brand-logo-img { height: 64px; border-radius: 8px; }

/* ===== LINKTREE SHOWROOM BACKGROUND ===== */
.linktree-body { position: relative; isolation: isolate; }

.lt-bg { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.lt-bg-photo {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 21% center;
  filter: blur(3px) saturate(.75) brightness(1.18);
  transform: scale(1.08);
}

/* Scrim: keeps the link column readable over a bright photo */
.lt-bg-veil {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(70% 45% at 50% 6%, rgba(249,115,22,.14), transparent 72%),
    radial-gradient(47% 58% at 50% 42%, rgba(255,255,255,.96), rgba(255,255,255,.80) 62%, rgba(255,255,255,.62) 100%),
    linear-gradient(180deg, rgba(248,250,252,.82) 0%, rgba(248,250,252,.86) 40%, rgba(248,250,252,.95) 100%);
}

@media (max-width: 720px) {
  .lt-bg-photo { object-position: 26% center; transform: scale(1.12); }
  .lt-bg-veil { background:
    radial-gradient(90% 32% at 50% 4%, rgba(249,115,22,.14), transparent 72%),
    linear-gradient(180deg, rgba(248,250,252,.86) 0%, rgba(248,250,252,.90) 42%, rgba(248,250,252,.96) 100%); }
}

/* ===== WHY US ===== */
.why-us {
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.why-us .section-header { margin-bottom: 40px; }
.why-us-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.why-us-card { text-align: left; padding: 28px; }
.why-us-card .icon { font-size: 36px; display: block; margin-bottom: 14px; }
.why-us-card h3 { font-size: 17px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.why-us-card p { font-size: 14px; line-height: 1.7; color: var(--text-light); }

/* ===== VIDEO PRODUK ===== */
.video-section {
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
/* 240px: cukup sempit agar empat kartu Shorts muat dalam satu baris di desktop */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; align-items: start; }
.video-card {
  display: flex; flex-direction: column;
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: var(--transition);
}
.video-card:hover { transform: translateY(-4px); border-color: var(--border-dark); box-shadow: var(--shadow-lg); }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: var(--surface-alt); overflow: hidden; }
/* Diposisikan absolut supaya tinggi frame benar-benar terkunci 16:9; height:100%
   pada elemen video tidak resolve terhadap parent yang tingginya dari aspect-ratio.
   contain, bukan cover: video potret dari HP tidak ikut terpotong. */
.video-player {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain; display: block;
  border: 0;
  background: var(--surface-alt);
}
/* YouTube Shorts selalu potret. Lebarnya dibatasi dan ditengahkan supaya
   kartunya tidak jadi terlalu jangkung. */
.video-frame--portrait {
  aspect-ratio: 9 / 16;
  /* Lebar eksplisit, bukan cuma max-width: margin auto membatalkan stretch pada
     flex item, lalu isinya yang berposisi absolut membuat lebarnya jadi 0. */
  width: 260px; max-width: 100%;
  margin: 0 auto;
}
.video-card-body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 16px 18px 18px; }
.video-card-category { font-size: 11px; font-weight: 700; color: var(--accent-text); text-transform: uppercase; letter-spacing: 0.5px; }
.video-card-name { font-size: 15px; font-weight: 700; line-height: 1.4; color: var(--text); }
.video-card-name a:hover { color: var(--accent-text); }
.video-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 10px; }
.video-card-price { font-size: 18px; font-weight: 800; color: var(--accent-dark); }

@media (max-width: 480px) {
  .video-grid { grid-template-columns: 1fr; }
}

/* ===== HALAMAN PANDUAN & KEBIJAKAN (cara belanja, return) ===== */
.policy-page { padding: 40px 0 72px; }
.policy-page .container { max-width: 880px; }

.policy-hero { margin-bottom: 32px; }
.policy-chip {
  display: inline-block; padding: 5px 12px; margin-bottom: 14px;
  background: var(--accent-soft); color: var(--accent-text);
  border-radius: 999px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.6px;
}
.policy-hero h1 { font-size: 34px; font-weight: 800; color: var(--primary); line-height: 1.2; }
.policy-hero h1 span { color: var(--accent); }
.policy-hero > p { color: var(--text-light); font-size: 15px; max-width: 68ch; margin-top: 12px; }
.policy-updated { font-size: 13px; color: var(--text-muted); }

.policy-highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 28px; }
.policy-highlight {
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
}
.policy-highlight .icon { font-size: 26px; display: block; margin-bottom: 10px; }
.policy-highlight h3 { font-size: 16px; font-weight: 800; color: var(--primary); margin-bottom: 4px; }
.policy-highlight p { font-size: 13px; color: var(--text-light); line-height: 1.6; }

.policy-body { display: flex; flex-direction: column; gap: 20px; }
.policy-card {
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
}
.policy-card h2 {
  font-size: 19px; font-weight: 800; color: var(--primary);
  padding-bottom: 12px; margin-bottom: 16px; border-bottom: 1px solid var(--border);
}
.policy-card > p { color: var(--text-light); font-size: 14px; margin-bottom: 14px; }
.policy-subhead { font-size: 14px; font-weight: 800; color: var(--primary); margin: 24px 0 12px; }
.policy-subhead:first-of-type { margin-top: 8px; }

.policy-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.policy-list li { position: relative; padding-left: 28px; font-size: 14px; color: var(--text-light); line-height: 1.7; }
.policy-list li strong { color: var(--text); }
.policy-list li::before { position: absolute; left: 0; top: 0; content: "•"; color: var(--accent); font-weight: 800; }
.policy-list--yes li::before { content: "✓"; color: var(--success); font-size: 13px; }
.policy-list--no li::before { content: "✕"; color: var(--danger); font-size: 13px; }

.policy-steps { list-style: none; display: flex; flex-direction: column; gap: 22px; }
.policy-steps li { display: flex; gap: 16px; }
.policy-steps .step-no {
  flex: 0 0 32px; height: 32px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary); color: white; font-size: 14px; font-weight: 800;
}
.policy-steps h3 { font-size: 15px; font-weight: 800; color: var(--primary); margin-bottom: 6px; }
.policy-steps p { font-size: 14px; color: var(--text-light); line-height: 1.7; }
.policy-steps p + p { margin-top: 12px; }

.policy-table { width: 100%; border-collapse: collapse; }
.policy-table th, .policy-table td {
  text-align: left; vertical-align: top; padding: 14px 16px;
  border: 1px solid var(--border); font-size: 14px; line-height: 1.7;
}
.policy-table th { width: 38%; background: var(--surface-alt); font-weight: 700; color: var(--text); }
.policy-table td { color: var(--text-light); }

.policy-note {
  margin-top: 24px; padding: 18px 20px;
  background: var(--accent-soft); border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm); font-size: 14px; line-height: 1.7; color: var(--text);
}

.policy-contact-rows { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--text-light); margin-bottom: 20px; }
.policy-contact-rows strong { color: var(--text); }
.policy-actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 600px) {
  .policy-hero h1 { font-size: 26px; }
  .policy-card { padding: 20px; }
  .policy-table th, .policy-table td { display: block; width: 100%; border-bottom: 0; }
  .policy-table tr { display: block; border-bottom: 1px solid var(--border); }
  .policy-table tr:last-child { border-bottom: 0; }
}

/* ===== VOUCHER & BATAS QRIS ===== */
.form-hint { display: block; margin-top: 5px; font-size: 12px; color: var(--text-light); line-height: 1.5; }

.voucher-box { padding: 14px 0 4px; border-bottom: 1px solid var(--border); }
.voucher-label { display: block; font-size: 12px; font-weight: 700; color: var(--text); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; }
.voucher-input-row { display: flex; gap: 8px; }
.voucher-input-row .form-input { flex: 1; min-width: 0; text-transform: uppercase; }
.voucher-error { margin-top: 8px; font-size: 12px; color: var(--danger); line-height: 1.5; }
.voucher-applied {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; border-radius: var(--radius-sm);
  background: rgba(34,197,94,.08); border: 1px dashed var(--success);
}
.voucher-applied strong { display: block; font-family: monospace; font-size: 14px; color: var(--text); }
.voucher-applied span { font-size: 12px; color: var(--text-light); }
.voucher-remove { font-size: 12px; font-weight: 700; color: var(--danger); flex-shrink: 0; }
.voucher-remove:hover { text-decoration: underline; }
.voucher-discount-row { color: var(--success); font-weight: 600; }
/* display:flex mengalahkan atribut hidden, jadi perlu ditegaskan. */
.summary-row[hidden], .form-group[hidden] { display: none; }

.payment-notice {
  margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--accent-soft); border-left: 3px solid var(--accent);
  font-size: 13px; line-height: 1.6; color: var(--accent-text);
}
.payment-option--disabled { cursor: not-allowed; opacity: .45; }
.payment-option--disabled .payment-label { border-style: dashed; }

.voucher-status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.voucher-status--live { background: rgba(34,197,94,.12); color: #15803d; }
.voucher-status--off { background: var(--surface-alt); color: var(--text-light); }

/* ===== VERIFIKASI PEMBAYARAN (ADMIN) ===== */
.verify-card { border-left: 4px solid var(--border-dark); }
.verify-card--awaiting { border-left-color: var(--info); background: #f8fbff; }
.verify-card--paid { border-left-color: var(--success); }
.verify-hint { margin: 16px 0 12px; font-size: 13px; line-height: 1.6; color: var(--text-light); }
.payment-proof-thumb { width: 100%; max-height: 320px; object-fit: contain; background: var(--surface-alt); border-radius: var(--radius-sm); border: 1px solid var(--border); }

/* ===== PENANDA PEKERJAAN DI PANEL ADMIN ===== */
.nav-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 6px; margin-left: 6px;
  border-radius: 999px; background: var(--danger); color: white;
  font-size: 11px; font-weight: 800; line-height: 1;
}
.admin-alert {
  display: block; margin-bottom: 20px; padding: 14px 18px;
  border-radius: var(--radius); border-left: 4px solid var(--info);
  background: #eff6ff; color: #1d4ed8; font-size: 14px;
  transition: var(--transition);
}
.admin-alert:hover { background: #dbeafe; }

/* ===== CART TOAST ===== */
/* Dipakai respons turbo_stream saat barang masuk keranjang, dan varian
   merahnya saat permintaan ditolak (stok habis). */
.cart-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 60; display: flex; align-items: center; gap: 12px;
  max-width: calc(100vw - 32px);
  padding: 12px 16px; border-radius: var(--radius);
  background: var(--bg-white); border: 1px solid var(--border);
  border-left: 4px solid var(--success);
  box-shadow: var(--shadow-lg); font-size: 14px;
}
.cart-toast-icon {
  flex: none; display: grid; place-items: center;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--success); color: #fff; font-size: 14px; font-weight: 700;
}
.cart-toast-body { display: flex; flex-direction: column; line-height: 1.35; }
.cart-toast-body strong { color: var(--text); font-weight: 600; }
.cart-toast-body span { color: var(--text-light); font-size: 13px; }
.cart-toast-link {
  flex: none; color: var(--accent-text); font-weight: 600;
  text-decoration: underline; white-space: nowrap;
}
.cart-toast-close { flex: none; font-size: 20px; color: var(--text-muted); padding: 0 2px; }
.cart-toast-close:hover { color: var(--text); }
.cart-toast-alert { border-left-color: var(--danger); }
.cart-toast-alert .cart-toast-icon { background: var(--danger); }

/* ===== STOCK BADGES ===== */
.stock-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 20px;
  font-size: 12px; font-weight: 600;
}
.stock-badge-ok { background: #dcfce7; color: #15803d; }
.stock-badge-low { background: #fef3c7; color: #b45309; }
.stock-badge-out { background: #fee2e2; color: #dc2626; }
.product-card-soldout { position: relative; }
.product-card-soldout .product-card-image { opacity: 0.55; filter: grayscale(0.6); }
.btn-soldout {
  background: var(--surface-alt) !important; color: var(--text-muted) !important;
  cursor: not-allowed; border: 1px solid var(--border) !important;
}
.cart-item-warning {
  display: block; margin-top: 6px;
  font-size: 12px; font-weight: 600; color: var(--danger);
}

@media (max-width: 640px) {
  .cart-toast { left: 16px; right: 16px; transform: none; max-width: none; }
}

/* Pembatalan pesanan: tombol sekunder yang jelas berisiko tanpa berteriak. */
.btn-danger-outline {
  border-color: #fecaca !important; color: var(--danger) !important;
  background: transparent !important;
}
.btn-danger-outline:hover { background: #fee2e2 !important; border-color: var(--danger) !important; }

/* ===== SORT & PAGINATION ===== */
.sort-form { display: flex; align-items: center; gap: 8px; }
.sort-label { font-size: 13px; color: var(--text-light); font-weight: 500; }
.sort-select {
  padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg-white); font-size: 14px; color: var(--text); font-weight: 500;
  cursor: pointer; transition: var(--transition);
}
.sort-select:hover { border-color: var(--border-dark); }
.sort-select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

.pagination {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 6px; margin-top: 36px;
}
.pagination-page, .pagination-step {
  display: inline-grid; place-items: center; min-width: 38px; height: 38px;
  padding: 0 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg-white);
  font-size: 14px; font-weight: 500; color: var(--text);
  transition: var(--transition);
}
.pagination-page:hover, .pagination-step:hover {
  border-color: var(--accent); color: var(--accent-text); background: var(--accent-soft);
}
.pagination-page.is-current {
  background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700;
}
.pagination-page.is-current:hover { background: var(--accent); color: #fff; }
.pagination-step.is-disabled {
  color: var(--text-muted); background: var(--surface-alt);
  cursor: not-allowed; border-color: var(--border);
}
.pagination-step.is-disabled:hover {
  border-color: var(--border); color: var(--text-muted); background: var(--surface-alt);
}
.pagination-gap { padding: 0 4px; color: var(--text-muted); }

@media (max-width: 640px) {
  .pagination-step { padding: 0 10px; font-size: 13px; }
}

/* Catatan persetujuan di bawah form daftar & checkout */
.consent-note { margin: 12px 0; font-size: 12px; line-height: 1.6; color: var(--text-light); text-align: center; }
.consent-note a { color: var(--accent); font-weight: 600; }
