/* public/css/storefront.css - Gaya Premium Storefront (Toko Online) */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --font: 'Outfit', sans-serif;
  --accent: #0f766e;
  --accent-light: #14b8a6;
  --accent-soft: #ccfbf1;
  --accent-hover: #0d9488;
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.03), 0 4px 6px -4px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 20px 25px -5px rgba(15, 118, 110, 0.08), 0 8px 10px -6px rgba(15, 118, 110, 0.08);
  --shadow-flat: 0 0 0 1px var(--border);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --red: #ef4444;
  --yellow: #f59e0b;
  --green: #10b981;
}

[data-theme="dark"] {
  --bg: #090d16;
  --surface: #111827;
  --text: #f3f4f6;
  --muted: #9ca3af;
  --border: #1f2937;
  --accent-soft: rgba(20, 184, 166, 0.15);
  --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  transition: background 0.3s ease, color 0.3s ease;
  line-height: 1.5;
  padding-bottom: 80px; /* Space for bottom nav on mobile */
  overflow-x: hidden;
}

@media (min-width: 641px) {
  body {
    padding-bottom: 0;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
}

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  box-shadow: var(--shadow);
}

[data-theme="dark"] header {
  background: rgba(17, 24, 39, 0.8);
}

.header-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.brand {
  font-size: 24px;
  font-weight: 800;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.5px;
}

.brand i {
  color: var(--accent-light);
  transform: rotate(-5deg);
  transition: var(--transition);
}

.brand:hover i {
  transform: rotate(5deg) scale(1.1);
}

.nav-search {
  flex: 1;
  max-width: 450px;
  display: flex;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 4px 4px 4px 16px;
  align-items: center;
  transition: var(--transition);
}

.nav-search:focus-within {
  border-color: var(--accent-light);
  box-shadow: 0 0 0 3px var(--accent-soft);
  background: var(--surface);
}

.nav-search input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  padding: 8px 0;
  font-size: 14px;
  color: var(--text);
}

.nav-search button {
  background: var(--accent);
  color: white;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.nav-search button:hover {
  background: var(--accent-hover);
  transform: scale(1.05);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-link-item {
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  transition: var(--transition);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link-item:hover {
  color: var(--accent);
  background: var(--accent-soft);
}

.icon-btn-badge {
  position: relative;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.icon-btn-badge:hover {
  background: var(--border);
  color: var(--accent);
}

.icon-btn-badge .badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--red);
  color: white;
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--surface);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px;
}

/* Home Hero Promo Banner */
.promo-hero {
  background: linear-gradient(135deg, #0f766e 0%, #115e59 100%);
  color: white;
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.promo-hero::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: rgba(20, 184, 166, 0.2);
  pointer-events: none;
}

.promo-hero::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: 20%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.promo-badge-tag {
  background: #f59e0b;
  color: #0f172a;
  align-self: flex-start;
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 16px;
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
  letter-spacing: 0.5px;
}

.promo-hero h1 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.2;
}

.promo-hero p {
  font-size: 16px;
  opacity: 0.9;
  max-width: 500px;
  margin-bottom: 24px;
}

.promo-btn {
  background: var(--surface);
  color: var(--accent);
  border: none;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  align-self: flex-start;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.promo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  background: var(--accent-soft);
}

/* Flash Sale Countdown Section */
.flash-sale-banner {
  background: linear-gradient(135deg, #be123c 0%, #9f1239 100%);
  color: white;
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  box-shadow: var(--shadow);
}

.flash-sale-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  text-transform: uppercase;
}

.flash-sale-title i {
  color: #fbbf24;
  animation: flash 1.5s infinite;
}

@keyframes flash {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.1); }
}

.countdown {
  display: flex;
  align-items: center;
  gap: 8px;
}

.countdown-label {
  font-size: 13px;
  font-weight: 600;
  opacity: 0.9;
}

.countdown-box {
  background: rgba(0, 0, 0, 0.3);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px;
  min-width: 32px;
  text-align: center;
}

/* Section Titles */
.section-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  padding-left: 12px;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  border-radius: 4px;
  background: var(--accent);
}

.section-title a {
  font-size: 14px;
  color: var(--accent);
  font-weight: 700;
}

.section-title a:hover {
  color: var(--accent-light);
}

/* Categories Chips / Browse */
.categories-chips {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 4px 16px 4px;
  margin-bottom: 24px;
  scrollbar-width: none;
}

.categories-chips::-webkit-scrollbar {
  display: none;
}

.chip-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 12px 20px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow);
}

.chip-card:hover {
  border-color: var(--accent-light);
  transform: translateY(-2px);
}

.chip-card.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.2);
}

/* Product Grid & Cards */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.prod-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}

.prod-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(20, 184, 166, 0.3);
}

.prod-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--red);
  color: white;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  z-index: 2;
}

.prod-badge.featured {
  background: #f59e0b;
}

.wishlist-heart-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.wishlist-heart-btn:hover {
  transform: scale(1.1);
  color: var(--red);
}

.wishlist-heart-btn.active {
  color: var(--red);
}

.prod-img-wrap {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #e2e8f0;
}

.prod-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.prod-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.prod-category {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.prod-name {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
  line-height: 1.4;
  height: 42px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.prod-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--yellow);
  margin-bottom: 12px;
}

.prod-rating span {
  color: var(--muted);
  font-weight: 600;
  margin-left: 2px;
}

.prod-price-box {
  margin-top: auto;
  margin-bottom: 12px;
}

.price-now {
  font-size: 18px;
  font-weight: 800;
  color: var(--accent);
}

.price-was {
  font-size: 12px;
  text-decoration: line-through;
  color: var(--muted);
  margin-left: 6px;
}

.btn-add-cart {
  background: var(--accent);
  color: white;
  border: none;
  padding: 10px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-add-cart:hover {
  background: var(--accent-light);
}

.btn-add-cart:active {
  transform: scale(0.98);
}

/* Skeleton Loading Animation */
.skeleton {
  background: linear-gradient(90deg, var(--border) 25%, var(--bg) 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-card {
  height: 320px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
}

/* Detail Product Page */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 10px;
}

@media (min-width: 769px) {
  .detail-layout {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.gallery-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gallery-main {
  width: 100%;
  height: 380px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #e2e8f0;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumbs {
  display: flex;
  gap: 12px;
}

.gallery-thumb {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  background: #e2e8f0;
  transition: var(--transition);
}

.gallery-thumb.active {
  border-color: var(--accent-light);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail-info {
  display: flex;
  flex-direction: column;
}

.detail-badge-promo {
  background: var(--red);
  color: white;
  font-weight: 800;
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 30px;
  align-self: flex-start;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.detail-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.2;
}

.detail-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
}

.detail-price-box {
  background: var(--bg);
  padding: 16px;
  border-radius: var(--radius);
  margin-bottom: 24px;
}

.detail-price-now {
  font-size: 30px;
  font-weight: 800;
  color: var(--accent);
}

.detail-price-was {
  font-size: 16px;
  text-decoration: line-through;
  color: var(--muted);
  margin-left: 10px;
}

.variant-selector {
  margin-bottom: 24px;
}

.variant-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
}

.variant-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.variant-opt {
  padding: 8px 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.variant-opt.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.qty-buy-box {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.qty-counter {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.qty-counter button {
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.qty-counter button:hover {
  background: var(--bg);
}

.qty-counter span {
  width: 50px;
  text-align: center;
  font-weight: 700;
}

.detail-actions-btn {
  flex: 1;
  min-width: 180px;
  display: flex;
  gap: 12px;
}

.btn-detail {
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  border: none;
}

.btn-detail-primary {
  background: var(--accent);
  color: white;
  flex: 1;
}

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

.btn-detail-outline {
  border: 1px solid var(--accent);
  color: var(--accent);
  background: transparent;
  flex: 1;
}

.btn-detail-outline:hover {
  background: var(--accent-soft);
}

/* Tabs & Description / Review */
.detail-tabs {
  margin-top: 40px;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
}

.detail-tab-btn {
  padding: 12px 8px;
  font-size: 16px;
  font-weight: 700;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}

.detail-tab-btn.active {
  color: var(--accent);
}

.detail-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* Reviews Styling */
.reviews-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.review-summary-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  box-shadow: var(--shadow);
}

.rating-avg-num {
  font-size: 48px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.review-form {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  outline: none;
  font-size: 14px;
  color: var(--text);
  transition: var(--transition);
}

.form-input:focus {
  border-color: var(--accent-light);
  background: var(--surface);
}

.rating-stars-input {
  display: flex;
  gap: 8px;
  font-size: 24px;
  color: var(--muted);
  cursor: pointer;
}

.rating-stars-input i:hover,
.rating-stars-input i.active {
  color: var(--yellow);
}

.review-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.review-item {
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
}

.review-meta-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.review-user {
  font-weight: 700;
  font-size: 14px;
}

.review-date {
  font-size: 12px;
  color: var(--muted);
}

/* Cart & Checkout Views */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 992px) {
  .cart-layout {
    grid-template-columns: 1.4fr 0.6fr;
  }
}

.cart-items-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-item-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  gap: 16px;
  align-items: center;
  position: relative;
  box-shadow: var(--shadow);
}

.cart-item-img {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #e2e8f0;
}

.cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cart-item-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.cart-item-variant {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.cart-item-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-remove-item {
  color: var(--muted);
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
  padding: 6px;
  transition: var(--transition);
}

.btn-remove-item:hover {
  color: var(--red);
}

.cart-summary-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: fit-content;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.summary-row.total {
  font-size: 18px;
  font-weight: 800;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.promo-input-box {
  display: flex;
  gap: 8px;
}

.promo-input-box input {
  text-transform: uppercase;
}

.btn-checkout {
  background: var(--accent);
  color: white;
  padding: 14px;
  border: none;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-checkout:hover {
  background: var(--accent-hover);
}

/* Empty States */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.empty-state i {
  font-size: 64px;
  color: var(--border);
}

.empty-state h3 {
  font-size: 20px;
  color: var(--text);
  font-weight: 700;
}

.empty-state .btn {
  margin-top: 8px;
}

/* Button general */
.btn {
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-primary {
  background: var(--accent);
  color: white;
}

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

.btn-outline {
  border: 1px solid var(--accent);
  color: var(--accent);
  background: transparent;
}

.btn-outline:hover {
  background: var(--accent-soft);
}

.btn-block {
  width: 100%;
}

/* Login/Register Card layout */
.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 200px);
  padding: 20px 0;
}

.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 420px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}

.auth-header {
  text-align: center;
  margin-bottom: 24px;
}

.auth-header h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
}

.auth-header p {
  font-size: 14px;
  color: var(--muted);
}

.demo-credentials-box {
  background: var(--bg);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-top: 16px;
  font-size: 12px;
}

.demo-credentials-box code {
  background: var(--border);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Profile / Accounts View */
.account-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 769px) {
  .account-layout {
    grid-template-columns: 0.7fr 1.3fr;
  }
}

.account-sidebar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  height: fit-content;
  box-shadow: var(--shadow);
}

.account-user-card {
  text-align: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.account-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 32px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.account-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.account-menu-item {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: var(--transition);
}

.account-menu-item:hover,
.account-menu-item.active {
  background: var(--accent-soft);
  color: var(--accent);
}

.account-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.account-pane {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.account-pane.active {
  display: block;
}

/* Timeline Orders Track */
.order-history-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.order-history-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  background: var(--surface);
  transition: var(--transition);
}

.order-history-card:hover {
  border-color: var(--accent-light);
}

.order-header-line {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
}

.badge-status {
  padding: 4px 10px;
  border-radius: 30px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-status.pending { background: #fee2e2; color: #ef4444; }
.badge-status.confirmed { background: #e0f2fe; color: #0284c7; }
.badge-status.processing { background: #fef3c7; color: #d97706; }
.badge-status.shipped { background: #fae8ff; color: #c084fc; }
.badge-status.completed { background: #d1fae5; color: #10b981; }
.badge-status.cancelled { background: #f3f4f6; color: #6b7280; }

.timeline-tracker {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 32px 0 16px;
}

.timeline-tracker::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--border);
  z-index: 1;
}

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
  flex: 1;
  text-align: center;
}

.timeline-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface);
  border: 4px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--muted);
  transition: var(--transition);
}

.timeline-step.active .timeline-circle {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

.timeline-step.completed .timeline-circle {
  border-color: var(--accent-light);
  background: var(--accent-light);
  color: white;
}

.timeline-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
}

.timeline-step.active .timeline-label {
  color: var(--accent);
}

/* Toast Notifications */
.toast-wrap {
  position: fixed;
  top: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
  max-width: 350px;
  width: calc(100vw - 48px);
}

.toast {
  background: var(--surface);
  color: var(--text);
  border-left: 5px solid var(--accent);
  padding: 16px;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateX(120%);
  animation: slideIn 0.3s forwards cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-size: 14px;
  font-weight: 600;
}

@keyframes slideIn {
  to { transform: translateX(0); }
}

.toast.toast-error { border-left-color: var(--red); }
.toast.toast-success { border-left-color: var(--green); }
.toast.toast-warning { border-left-color: var(--yellow); }

/* Bottom Mobile Navigation */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  justify-content: space-around;
  align-items: center;
  z-index: 999;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .bottom-nav {
  background: rgba(17, 24, 39, 0.95);
}

.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  flex: 1;
  height: 100%;
  transition: var(--transition);
  position: relative;
}

.bottom-nav a i {
  font-size: 20px;
}

.bottom-nav a.active {
  color: var(--accent);
}

.bottom-nav a .badge {
  position: absolute;
  top: 8px;
  right: 25%;
  background: var(--red);
  color: white;
  font-size: 9px;
  font-weight: 800;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

@media (max-width: 640px) {
  .bottom-nav {
    display: flex;
  }
  header {
    padding: 12px 16px;
  }
  .nav-actions {
    display: none; /* actions moved to bottom nav */
  }
  .promo-hero {
    padding: 24px;
  }
  .promo-hero h1 {
    font-size: 24px;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .prod-card {
    border-radius: 12px;
  }
  .prod-img-wrap {
    height: 130px;
  }
  .prod-info {
    padding: 10px;
  }
  .prod-name {
    font-size: 13px;
    height: 36px;
  }
  .price-now {
    font-size: 15px;
  }
  .btn-add-cart {
    padding: 8px;
    font-size: 11px;
  }
  .gallery-main {
    height: 260px;
  }
}

/* ==========================================================================
   DESAIN UPGRADE STOREFRONT BARU (PRO)
   ========================================================================== */

/* Trust Bar (Strip Keunggulan) */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 32px;
  box-shadow: var(--shadow);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.trust-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.trust-text h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.trust-text p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

@media (max-width: 768px) {
  .trust-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 16px;
  }
}

/* Rounded Categories Cards */
.categories-rounded-container {
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px 4px 16px 4px;
  margin-bottom: 32px;
}
.categories-rounded-container::-webkit-scrollbar {
  display: none;
}
.categories-rounded-grid {
  display: flex;
  gap: 16px;
}
.category-round-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  width: 90px;
  flex-shrink: 0;
  transition: var(--transition);
}
.category-round-card:hover {
  transform: translateY(-4px);
}
.category-round-img-box {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border);
  box-shadow: var(--shadow);
  transition: var(--transition);
  margin-bottom: 8px;
}
.category-round-card:hover .category-round-img-box {
  border-color: var(--accent-light);
  box-shadow: 0 4px 12px var(--accent-soft);
}
.category-round-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.category-round-name {
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  color: var(--text);
}

/* Double Promo Banners Grid */
.banner-double-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
.banner-double-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 160px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: var(--transition);
}
.banner-double-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.banner-double-content {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.7) 40%, rgba(0, 0, 0, 0.1) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  color: white;
}
.banner-double-content h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 6px;
}
.banner-double-content p {
  font-size: 12px;
  opacity: 0.9;
  margin-bottom: 12px;
}
.banner-double-btn {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  background: var(--surface);
  color: var(--text);
  padding: 6px 12px;
  border-radius: 20px;
}

@media (max-width: 640px) {
  .banner-double-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .banner-double-card {
    height: 130px;
  }
}

/* Flash Sale Progress Bar */
.fs-progress-box {
  margin: 10px 0;
}
.fs-progress-text {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 4px;
}
.fs-progress-bar {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.fs-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--red) 0%, #f43f5e 100%);
  border-radius: 3px;
}

/* Brands Showcase Slider */
.brand-showcase-container {
  overflow-x: auto;
  scrollbar-width: none;
  padding: 10px 0;
  margin-bottom: 32px;
}
.brand-showcase-container::-webkit-scrollbar {
  display: none;
}
.brand-showcase-grid {
  display: flex;
  gap: 24px;
  align-items: center;
}
.brand-logo-card {
  width: 100px;
  height: 50px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  flex-shrink: 0;
  transition: var(--transition);
}
.brand-logo-card img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  opacity: 0.7;
  filter: grayscale(100%);
  transition: var(--transition);
}
.brand-logo-card:hover {
  border-color: var(--accent-light);
  transform: scale(1.05);
}
.brand-logo-card:hover img {
  opacity: 1;
  filter: none;
}

/* Wide CTA Banner */
.cta-banner-wide {
  background: linear-gradient(135deg, #0e7490 0%, #0369a1 100%);
  color: white;
  border-radius: var(--radius);
  padding: 36px;
  margin-bottom: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  box-shadow: var(--shadow);
}
.cta-content h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
}
.cta-content p {
  font-size: 13px;
  opacity: 0.9;
}
.cta-btn-wa {
  background: #25d366;
  color: white;
  border: none;
  border-radius: 30px;
  padding: 12px 28px;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
  transition: var(--transition);
}
.cta-btn-wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

@media (max-width: 640px) {
  .cta-banner-wide {
    padding: 24px;
    text-align: center;
    flex-direction: column;
  }
}

/* Testimonial Cards Carousel */
.testimonials-section-container {
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px 4px 20px 4px;
  margin-bottom: 32px;
}
.testimonials-section-container::-webkit-scrollbar {
  display: none;
}
.testimonials-section-grid {
  display: flex;
  gap: 20px;
}
.testimonial-card {
  width: 280px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  flex-shrink: 0;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}
.testimonial-quotes-icon {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  color: var(--accent-soft);
  opacity: 0.6;
}
.testimonial-comment {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text);
  font-style: italic;
  margin-bottom: 14px;
}
.testimonial-user {
  display: flex;
  align-items: center;
  gap: 10px;
}
.testimonial-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}
.testimonial-user-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.testimonial-user-stars {
  font-size: 10px;
  color: #fbbf24;
  margin-top: 2px;
}

/* Card badges */
.badge-secondary-card {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.badge-secondary-card.new {
  background: var(--green);
  color: white;
}
.badge-secondary-card.low {
  background: #f97316;
  color: white;
}
.badge-secondary-card.out {
  background: var(--muted);
  color: white;
}

.prod-card .prod-img-wrap {
  position: relative;
}
.prod-card-quickview-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 118, 110, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  z-index: 1;
}
.prod-card:hover .prod-card-quickview-overlay {
  opacity: 1;
}
.btn-quickview-trigger {
  background: var(--surface);
  color: var(--accent);
  border: none;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transform: translateY(10px);
  transition: var(--transition);
}
.prod-card:hover .btn-quickview-trigger {
  transform: translateY(0);
}

/* Quick View Modal Popup */
.quick-view-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.2s forwards;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.quick-view-content {
  background: var(--surface);
  border-radius: var(--radius);
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: scaleUp 0.3s forwards cubic-bezier(0.175, 0.885, 0.32, 1.1);
  padding: 24px;
}
@keyframes scaleUp {
  from { transform: scale(0.9); }
  to { transform: scale(1); }
}
.quick-view-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  font-weight: 800;
  transition: var(--transition);
}
.quick-view-close:hover {
  background: var(--red);
  color: white;
}
.quick-view-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 640px) {
  .quick-view-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Footer Lengkap */
.main-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 48px 24px 24px 24px;
  border-top: 1px solid #1e293b;
  margin-top: 60px;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 32px;
}
.footer-col h3 {
  color: white;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 16px;
}
.footer-col p {
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 12px;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links a {
  font-size: 13px;
  transition: var(--transition);
}
.footer-links a:hover {
  color: var(--accent-light);
  padding-left: 4px;
}
.footer-social-icons {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}
.footer-social-icons a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #1e293b;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: var(--transition);
}
.footer-social-icons a:hover {
  background: var(--accent);
  transform: translateY(-2px);
}
.footer-payment-methods {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.footer-payment-badge {
  background: #1e293b;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}
.footer-copyright {
  max-width: 1200px;
  margin: 32px auto 0 auto;
  border-top: 1px solid #1e293b;
  padding-top: 16px;
  font-size: 12px;
  text-align: center;
  color: #64748b;
}

@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

