/* ═══════════════════════════════════════════════════════════════════════════
   GURA — Components CSS
   Buttons, cards, forms, modals, toasts, tables, badges, etc.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--radius-md);
  font-size: var(--fs-sm); font-weight: var(--fw-semibold);
  transition: all var(--tr-fast);
  white-space: nowrap; cursor: pointer; border: none;
  text-decoration: none;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: var(--primary); color: #fff;
  box-shadow: 0 2px 8px rgba(241,90,36,0.3);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(241,90,36,0.4); }
.btn-primary:active { transform: translateY(0); }
.btn-secondary {
  background: var(--divider-light); color: var(--text-dark);
}
.btn-secondary:hover { background: var(--divider); }
.btn-outline {
  background: transparent; color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-outline:hover { background: var(--cat-food-bg); }
.btn-ghost {
  background: transparent; color: var(--text-medium);
}
.btn-ghost:hover { background: var(--divider-light); color: var(--text-dark); }
.btn-danger { background: var(--error); color: #fff; }
.btn-danger:hover { background: #B91C1C; }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #047857; }
.btn-sm { padding: var(--sp-2) var(--sp-3); font-size: var(--fs-xs); }
.btn-lg { padding: var(--sp-4) var(--sp-7); font-size: var(--fs-md); }
.btn-icon {
  width: 40px; height: 40px; padding: 0;
  border-radius: var(--radius-full);
}
.btn-icon.sm { width: 32px; height: 32px; }
.btn-icon.sm svg { width: 16px; height: 16px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

/* ── Cards ────────────────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--tr-normal), transform var(--tr-normal);
  overflow: hidden;
}
.card:hover { box-shadow: var(--shadow-md); }
.card-clickable:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); cursor: pointer; }

/* Product Card */
.product-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all var(--tr-normal);
  animation: fadeInUp var(--tr-slow) both;
  text-decoration: none; color: inherit;
  display: block;
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.product-card-img {
  position: relative;
  width: 100%; height: 160px;
  overflow: hidden;
  background: var(--divider-light);
}
@media (min-width: 768px) { .product-card-img { height: 190px; } }
.product-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--tr-slow);
}
.product-card:hover .product-card-img img { transform: scale(1.05); }
.product-card-badge {
  position: absolute; top: var(--sp-2); left: var(--sp-2);
  padding: 2px 8px;
  background: var(--accent);
  color: #fff;
  font-size: 10px; font-weight: var(--fw-bold);
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.product-card-fav {
  position: absolute; top: var(--sp-2); right: var(--sp-2);
  width: 32px; height: 32px;
  background: var(--surface);
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all var(--tr-fast);
  border: none;
}
.product-card-fav:hover { transform: scale(1.1); box-shadow: var(--shadow-md); }
.product-card-fav svg { width: 16px; height: 16px; }
.product-card-fav.active svg { color: var(--error); fill: var(--error); }
.product-card-fav.active { animation: heartPop 0.4s ease; }
.product-card-add {
  position: absolute; bottom: var(--sp-2); right: var(--sp-2);
  width: 32px; height: 32px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(241,90,36,0.4);
  cursor: pointer;
  transition: all var(--tr-fast);
  border: none;
  z-index: 2;
}
.product-card-add:hover { transform: scale(1.1); background: var(--primary-dark); }
.product-card-add svg { width: 16px; height: 16px; }
.product-card-body { padding: var(--sp-3); }
.product-card-name {
  font-size: var(--fs-sm); font-weight: var(--fw-semibold);
  color: var(--text-dark);
  margin-bottom: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.product-card-store {
  font-size: var(--fs-xs); color: var(--text-light);
  margin-bottom: var(--sp-2);
}
.product-card-rating {
  display: flex; align-items: center; gap: 3px;
  font-size: var(--fs-xs); color: var(--text-medium);
  margin-bottom: var(--sp-2);
}
.product-card-rating svg { width: 14px; height: 14px; color: var(--secondary); }
.product-card-price {
  display: flex; align-items: center; gap: var(--sp-2);
}
.product-card-price .current {
  font-size: var(--fs-md); font-weight: var(--fw-bold); color: var(--primary);
}
.product-card-price .original {
  font-size: var(--fs-xs); color: var(--text-light);
  text-decoration: line-through;
}

/* Store Card */
.store-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all var(--tr-normal);
  width: 220px;
  flex-shrink: 0;
  text-decoration: none; color: inherit;
  display: block;
}
.store-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.store-card-img {
  width: 100%; height: 120px;
  object-fit: cover;
  background: var(--divider-light);
}
.store-card-body { padding: var(--sp-3); }
.store-card-name { font-size: var(--fs-sm); font-weight: var(--fw-semibold); }
.store-card-meta {
  display: flex; align-items: center; gap: var(--sp-2);
  font-size: var(--fs-xs); color: var(--text-light);
  margin-top: 4px;
}
.store-card-meta svg { width: 13px; height: 13px; }
.store-card-status {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: var(--fw-semibold);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-top: var(--sp-2);
}
.store-card-status.open { background: var(--success-bg); color: var(--success); }
.store-card-status.closed { background: var(--error-bg); color: var(--error); }

/* Stat Card */
.stat-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: var(--sp-5);
  box-shadow: var(--shadow-sm);
  display: flex; align-items: flex-start; gap: var(--sp-4);
  transition: all var(--tr-normal);
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stat-card-icon {
  width: 48px; height: 48px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.stat-card-icon svg { width: 24px; height: 24px; }
.stat-card-value { font-size: var(--fs-2xl); font-weight: var(--fw-extrabold); line-height: 1; }
.stat-card-label { font-size: var(--fs-xs); color: var(--text-light); margin-top: 4px; }
.stat-card-trend { font-size: var(--fs-xs); font-weight: var(--fw-semibold); margin-top: var(--sp-1); }
.stat-card-trend.up { color: var(--success); }
.stat-card-trend.down { color: var(--error); }

/* ── Forms ────────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: var(--sp-5); }
.form-label {
  display: block; font-size: var(--fs-sm); font-weight: var(--fw-semibold);
  color: var(--text-dark); margin-bottom: var(--sp-2);
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  border: 1.5px solid var(--divider);
  border-radius: var(--radius-md);
  font-size: var(--fs-md);
  color: var(--text-dark);
  background: var(--surface);
  transition: border-color var(--tr-fast), box-shadow var(--tr-fast);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(241,90,36,0.1);
}
.form-input::placeholder { color: var(--text-light); }
.form-input.error { border-color: var(--error); }
.form-error { font-size: var(--fs-xs); color: var(--error); margin-top: var(--sp-1); }
.form-textarea { min-height: 100px; resize: vertical; }
.form-select { cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236B6B6B' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  padding-right: 40px;
}
.form-hint { font-size: var(--fs-xs); color: var(--text-light); margin-top: var(--sp-1); }
.form-row { display: flex; gap: var(--sp-4); }
.form-row > * { flex: 1; }
@media (max-width: 480px) { .form-row { flex-direction: column; } }

/* Checkbox / Toggle */
.form-check {
  display: flex; align-items: center; gap: var(--sp-3); cursor: pointer;
}
.form-check input[type="checkbox"] {
  width: 20px; height: 20px; accent-color: var(--primary);
  cursor: pointer; flex-shrink: 0;
}
.toggle {
  position: relative; width: 44px; height: 24px;
  background: var(--divider); border-radius: var(--radius-full);
  cursor: pointer; transition: background var(--tr-fast);
  border: none;
}
.toggle.active { background: var(--primary); }
.toggle::after {
  content: '';
  position: absolute; top: 2px; left: 2px;
  width: 20px; height: 20px;
  background: #fff; border-radius: var(--radius-full);
  transition: transform var(--tr-fast);
  box-shadow: var(--shadow-sm);
}
.toggle.active::after { transform: translateX(20px); }

/* Search Bar */
.search-bar {
  position: relative;
  width: 100%;
}
.search-bar-input {
  width: 100%;
  padding: var(--sp-3) var(--sp-4) var(--sp-3) 44px;
  border: 1.5px solid var(--divider);
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  background: var(--surface);
  transition: all var(--tr-fast);
}
.search-bar-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(241,90,36,0.1);
}
.search-bar-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; color: var(--text-light);
  pointer-events: none;
}
.search-bar-clear {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px;
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-light); cursor: pointer;
  background: none; border: none;
  transition: all var(--tr-fast);
}
.search-bar-clear:hover { background: var(--divider-light); color: var(--text-dark); }
.search-bar-clear svg { width: 16px; height: 16px; }

/* ── Badges ───────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11px; font-weight: var(--fw-semibold);
  white-space: nowrap;
}
.badge-primary { background: var(--cat-food-bg); color: var(--primary); }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-danger  { background: var(--error-bg);   color: var(--error); }
.badge-info    { background: var(--info-bg);     color: var(--info); }
.badge-purple  { background: var(--cat-beauty-bg); color: var(--cat-beauty); }
.badge-neutral { background: var(--divider-light); color: var(--text-medium); }

/* ── Tables ───────────────────────────────────────────────────────────────── */
.table-wrap {
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}
.data-table {
  width: 100%; border-collapse: collapse;
}
.data-table th {
  text-align: left;
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-xs); font-weight: var(--fw-semibold);
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--divider);
  white-space: nowrap;
}
.data-table td {
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-sm);
  border-bottom: 1px solid var(--divider-light);
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--divider-light); }
.table-img {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}
.table-actions { display: flex; gap: var(--sp-2); }

/* ── Tabs ──────────────────────────────────────────────────────────────────── */
.tabs {
  display: flex;
  border-bottom: 2px solid var(--divider-light);
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  padding: var(--sp-3) var(--sp-5);
  font-size: var(--fs-sm); font-weight: var(--fw-medium);
  color: var(--text-light);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: all var(--tr-fast);
  cursor: pointer; background: none; border-top: none; border-left: none; border-right: none;
}
.tab:hover { color: var(--text-dark); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: var(--fw-semibold); }

/* Product Tabs (toggle bar) */
.product-tabs {
  display: flex;
  background: rgba(45,45,45,0.06);
  border-radius: 0;
  padding: var(--sp-1);
}
.product-tab {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm); font-weight: var(--fw-medium);
  color: var(--text-light);
  cursor: pointer; background: none; border: none;
  transition: all var(--tr-fast);
}
.product-tab.active {
  background: var(--surface);
  color: var(--primary);
  font-weight: var(--fw-bold);
  box-shadow: var(--shadow-sm);
}
.product-tab svg { width: 20px; height: 20px; }

/* ── Modal ────────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: var(--overlay);
  z-index: var(--z-modal);
  display: flex; align-items: center; justify-content: center;
  padding: var(--sp-4);
  animation: fadeIn var(--tr-fast) both;
}
.modal-overlay.closing { animation: fadeIn var(--tr-fast) reverse both; }
.modal-content {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  width: 100%; max-width: 520px;
  max-height: 90vh; overflow-y: auto;
  animation: scaleIn var(--tr-normal) both;
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--sp-5) var(--sp-6);
  border-bottom: 1px solid var(--divider);
}
.modal-header h3 { font-size: var(--fs-lg); }
.modal-close {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-full);
  color: var(--text-light);
  transition: all var(--tr-fast);
  cursor: pointer; background: none; border: none;
}
.modal-close:hover { background: var(--divider-light); color: var(--text-dark); }
.modal-close svg { width: 20px; height: 20px; }
.modal-body { padding: var(--sp-6); }
.modal-footer {
  display: flex; justify-content: flex-end; gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-6);
  border-top: 1px solid var(--divider);
}

/* ── Toast ────────────────────────────────────────────────────────────────── */
.toast-container {
  position: fixed; top: var(--sp-5); right: var(--sp-5);
  z-index: var(--z-toast);
  display: flex; flex-direction: column; gap: var(--sp-3);
  pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: var(--fs-sm); font-weight: var(--fw-medium);
  min-width: 280px; max-width: 420px;
  pointer-events: auto;
  animation: toastIn var(--tr-normal) both;
  border-left: 4px solid;
}
.toast.removing { animation: toastOut var(--tr-normal) both; }
.toast svg { width: 20px; height: 20px; flex-shrink: 0; }
.toast-success { border-left-color: var(--success); }
.toast-success svg { color: var(--success); }
.toast-error   { border-left-color: var(--error); }
.toast-error svg { color: var(--error); }
.toast-warning { border-left-color: var(--warning); }
.toast-warning svg { color: var(--warning); }
.toast-info    { border-left-color: var(--info); }
.toast-info svg { color: var(--info); }

/* ── Skeleton Loader ──────────────────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--divider-light) 25%, var(--divider) 50%, var(--divider-light) 75%);
  background-size: 400% 100%;
  animation: shimmer 1.5s ease infinite;
  border-radius: var(--radius-sm);
}
.skeleton-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.skeleton-img {
  width: 100%; height: 160px;
  background: linear-gradient(90deg, var(--divider-light) 25%, var(--divider) 50%, var(--divider-light) 75%);
  background-size: 400% 100%;
  animation: shimmer 1.5s ease infinite;
}
.skeleton-text {
  height: 14px; margin-bottom: 8px;
  background: linear-gradient(90deg, var(--divider-light) 25%, var(--divider) 50%, var(--divider-light) 75%);
  background-size: 400% 100%;
  animation: shimmer 1.5s ease infinite;
  border-radius: var(--radius-sm);
}
.skeleton-text.short { width: 60%; }
.skeleton-text.shorter { width: 40%; }

/* ── Carousel ─────────────────────────────────────────────────────────────── */
.carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}
.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.carousel-slide {
  width: 100%; flex-shrink: 0;
  position: relative;
}
.carousel-slide img {
  width: 100%; height: 200px; object-fit: cover;
}
@media (min-width: 768px) { .carousel-slide img { height: 300px; } }
.carousel-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.5) 0%, transparent 60%);
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--sp-6) var(--sp-7);
  color: #fff;
}
.carousel-overlay h2 { font-size: var(--fs-xl); margin-bottom: var(--sp-1); }
.carousel-overlay p { font-size: var(--fs-sm); opacity: 0.9; }
.carousel-dots {
  position: absolute; bottom: var(--sp-3);
  left: 50%; transform: translateX(-50%);
  display: flex; gap: var(--sp-2);
}
.carousel-dot {
  width: 8px; height: 8px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.4);
  cursor: pointer; border: none;
  transition: all var(--tr-fast);
}
.carousel-dot.active {
  background: #fff;
  width: 24px;
}

/* ── Category Chip ────────────────────────────────────────────────────────── */
.category-chip {
  display: flex; flex-direction: column; align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3);
  border-radius: var(--radius-md);
  text-decoration: none; color: inherit;
  transition: transform var(--tr-fast);
  cursor: pointer;
}
.category-chip:hover { transform: translateY(-2px); }
.category-chip-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
}
.category-chip-icon svg { width: 26px; height: 26px; }
.category-chip-label {
  font-size: var(--fs-xs); font-weight: var(--fw-semibold);
  text-align: center;
}

/* ── Promo Card ───────────────────────────────────────────────────────────── */
.promo-card {
  width: 260px; flex-shrink: 0;
  border-radius: var(--radius-md);
  padding: var(--sp-5);
  color: #fff;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--tr-normal);
}
.promo-card:hover { transform: translateY(-2px) scale(1.01); }
.promo-card-title { font-size: var(--fs-md); font-weight: var(--fw-bold); margin-bottom: var(--sp-1); }
.promo-card-subtitle { font-size: var(--fs-xs); opacity: 0.85; }
.promo-card-discount {
  display: inline-block;
  padding: var(--sp-1) var(--sp-3);
  background: rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs); font-weight: var(--fw-bold);
  margin-top: var(--sp-3);
}

/* ── Rating Stars ─────────────────────────────────────────────────────────── */
.stars { display: flex; align-items: center; gap: 2px; }
.stars svg { width: 16px; height: 16px; color: var(--secondary); }
.stars svg.empty { color: var(--divider); }
.rating-bar {
  display: flex; align-items: center; gap: var(--sp-3);
  margin-bottom: var(--sp-2);
}
.rating-bar-label { font-size: var(--fs-xs); color: var(--text-light); width: 20px; text-align: right; }
.rating-bar-track { flex: 1; height: 8px; background: var(--divider-light); border-radius: var(--radius-full); overflow: hidden; }
.rating-bar-fill { height: 100%; background: var(--secondary); border-radius: var(--radius-full); transition: width var(--tr-slow); }
.rating-bar-count { font-size: var(--fs-xs); color: var(--text-light); width: 30px; }

/* ── Review Card ──────────────────────────────────────────────────────────── */
.review-card {
  padding: var(--sp-5);
  border-bottom: 1px solid var(--divider-light);
}
.review-card:last-child { border-bottom: none; }
.review-header { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-3); }
.review-avatar {
  width: 40px; height: 40px;
  border-radius: var(--radius-full);
  background: var(--divider-light);
  display: flex; align-items: center; justify-content: center;
  font-weight: var(--fw-bold); color: var(--primary);
  overflow: hidden;
}
.review-avatar img { width: 100%; height: 100%; object-fit: cover; }
.review-author { font-weight: var(--fw-semibold); font-size: var(--fs-sm); }
.review-date { font-size: var(--fs-xs); color: var(--text-light); }
.review-verified {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; color: var(--success); font-weight: var(--fw-semibold);
}
.review-verified svg { width: 14px; height: 14px; }
.review-title { font-weight: var(--fw-semibold); font-size: var(--fs-sm); margin-bottom: var(--sp-2); }
.review-body { font-size: var(--fs-sm); color: var(--text-medium); line-height: var(--lh-relaxed); }
.review-tags { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-3); }
.review-tag {
  padding: 2px 10px;
  background: var(--divider-light);
  border-radius: var(--radius-full);
  font-size: 11px; color: var(--text-medium);
}
.review-helpful {
  display: flex; align-items: center; gap: var(--sp-2);
  margin-top: var(--sp-3);
  font-size: var(--fs-xs); color: var(--text-light);
}
.review-helpful button {
  display: inline-flex; align-items: center; gap: 4px;
  padding: var(--sp-1) var(--sp-3);
  border: 1px solid var(--divider);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  cursor: pointer; background: none;
  transition: all var(--tr-fast);
}
.review-helpful button:hover { border-color: var(--primary); color: var(--primary); }

/* ── Steps (Checkout) ─────────────────────────────────────────────────────── */
.steps {
  display: flex; align-items: center; gap: 0;
  margin-bottom: var(--sp-7);
}
.step {
  flex: 1;
  display: flex; align-items: center; gap: var(--sp-2);
  font-size: var(--fs-xs); font-weight: var(--fw-semibold);
  color: var(--text-light);
  position: relative;
}
.step.active { color: var(--primary); }
.step.completed { color: var(--success); }
.step-number {
  width: 28px; height: 28px;
  border-radius: var(--radius-full);
  border: 2px solid var(--divider);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-xs); font-weight: var(--fw-bold);
  flex-shrink: 0;
}
.step.active .step-number { border-color: var(--primary); background: var(--primary); color: #fff; }
.step.completed .step-number { border-color: var(--success); background: var(--success); color: #fff; }
.step-line {
  flex: 1; height: 2px;
  background: var(--divider);
  margin: 0 var(--sp-2);
}
.step.completed .step-line { background: var(--success); }
@media (max-width: 480px) { .step-label { display: none; } }

/* ── Cart Item ────────────────────────────────────────────────────────────── */
.cart-item {
  display: flex; gap: var(--sp-4);
  padding: var(--sp-4);
  border-bottom: 1px solid var(--divider-light);
  align-items: center;
}
.cart-item:last-child { border-bottom: none; }
.cart-item-img {
  width: 80px; height: 80px; border-radius: var(--radius-md);
  object-fit: cover; flex-shrink: 0;
  background: var(--divider-light);
}
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: var(--fw-semibold); font-size: var(--fs-sm); }
.cart-item-store { font-size: var(--fs-xs); color: var(--text-light); margin-top: 2px; }
.cart-item-price { font-weight: var(--fw-bold); color: var(--primary); margin-top: var(--sp-2); }
.qty-control {
  display: flex; align-items: center; gap: 0;
  border: 1.5px solid var(--divider);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.qty-btn {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer;
  color: var(--text-medium);
  transition: all var(--tr-fast);
}
.qty-btn:hover { background: var(--divider-light); color: var(--primary); }
.qty-btn svg { width: 16px; height: 16px; }
.qty-value {
  width: 36px; text-align: center;
  font-size: var(--fs-sm); font-weight: var(--fw-semibold);
}

/* ── Order Card ───────────────────────────────────────────────────────────── */
.order-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: var(--sp-5);
  margin-bottom: var(--sp-4);
  transition: box-shadow var(--tr-normal);
}
.order-card:hover { box-shadow: var(--shadow-md); }
.order-card-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: var(--sp-3);
}
.order-card-id { font-weight: var(--fw-bold); font-size: var(--fs-sm); }
.order-card-date { font-size: var(--fs-xs); color: var(--text-light); }
.order-card-items { display: flex; gap: var(--sp-2); margin-bottom: var(--sp-3); }
.order-card-thumb {
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  object-fit: cover; background: var(--divider-light);
}
.order-card-footer {
  display: flex; justify-content: space-between; align-items: center;
}
.order-card-total { font-weight: var(--fw-bold); font-size: var(--fs-md); }

/* ── Status Timeline ──────────────────────────────────────────────────────── */
.timeline { padding-left: var(--sp-6); position: relative; }
.timeline::before {
  content: '';
  position: absolute; left: 11px; top: 0; bottom: 0;
  width: 2px; background: var(--divider);
}
.timeline-item {
  position: relative; padding-bottom: var(--sp-5);
  padding-left: var(--sp-5);
}
.timeline-dot {
  position: absolute; left: -22px; top: 2px;
  width: 12px; height: 12px;
  border-radius: var(--radius-full);
  background: var(--divider);
  border: 2px solid var(--surface);
}
.timeline-item.active .timeline-dot { background: var(--primary); }
.timeline-item.completed .timeline-dot { background: var(--success); }
.timeline-title { font-size: var(--fs-sm); font-weight: var(--fw-semibold); }
.timeline-time { font-size: var(--fs-xs); color: var(--text-light); margin-top: 2px; }

/* ── Pagination ───────────────────────────────────────────────────────────── */
.pagination {
  display: flex; align-items: center; justify-content: center; gap: var(--sp-2);
  margin-top: var(--sp-6);
}
.page-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  font-size: var(--fs-sm); font-weight: var(--fw-medium);
  color: var(--text-medium);
  background: none; border: none; cursor: pointer;
  transition: all var(--tr-fast);
}
.page-btn:hover { background: var(--divider-light); }
.page-btn.active { background: var(--primary); color: #fff; }
.page-btn:disabled { opacity: 0.3; cursor: not-allowed; }

/* ── Dropdown ─────────────────────────────────────────────────────────────── */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: 100%; right: 0;
  min-width: 200px;
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--divider-light);
  padding: var(--sp-2);
  z-index: var(--z-dropdown);
  animation: fadeInDown var(--tr-fast) both;
  display: none;
}
.dropdown-menu.open { display: block; }
.dropdown-item {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  cursor: pointer;
  transition: background var(--tr-fast);
  border: none; background: none; width: 100%; text-align: left;
}
.dropdown-item:hover { background: var(--divider-light); }
.dropdown-item svg { width: 18px; height: 18px; color: var(--text-light); }

/* ── Profile Menu Tile ────────────────────────────────────────────────────── */
.profile-tile {
  display: flex; align-items: center; gap: var(--sp-4);
  padding: var(--sp-4);
  background: var(--surface);
  border-radius: var(--radius-md);
  margin-bottom: var(--sp-2);
  transition: all var(--tr-fast);
  cursor: pointer;
  text-decoration: none; color: inherit;
  border: none; width: 100%; text-align: left;
}
.profile-tile:hover { background: var(--divider-light); }
.profile-tile-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
}
.profile-tile-icon svg { width: 20px; height: 20px; }
.profile-tile-label { flex: 1; font-weight: var(--fw-medium); font-size: var(--fs-sm); }
.profile-tile-chevron svg { width: 18px; height: 18px; color: var(--text-light); }

/* ── Avatar ───────────────────────────────────────────────────────────────── */
.avatar {
  border-radius: var(--radius-full);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-weight: var(--fw-bold); color: #fff;
  flex-shrink: 0;
}
.avatar-sm  { width: 32px; height: 32px; font-size: var(--fs-xs); }
.avatar-md  { width: 48px; height: 48px; font-size: var(--fs-md); }
.avatar-lg  { width: 72px; height: 72px; font-size: var(--fs-xl); }
.avatar-xl  { width: 96px; height: 96px; font-size: var(--fs-2xl); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ── Chart (CSS only) ─────────────────────────────────────────────────────── */
.bar-chart {
  display: flex; align-items: flex-end; gap: var(--sp-2);
  height: 200px;
  padding-top: var(--sp-4);
}
.bar-chart-item {
  flex: 1;
  display: flex; flex-direction: column; align-items: center;
  gap: var(--sp-2);
}
.bar-chart-bar {
  width: 100%;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  transition: height var(--tr-slow);
  min-height: 4px;
}
.bar-chart-label { font-size: 10px; color: var(--text-light); }
.bar-chart-value { font-size: var(--fs-xs); font-weight: var(--fw-semibold); }

/* Donut chart */
.donut-chart {
  width: 160px; height: 160px;
  border-radius: var(--radius-full);
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.donut-chart-center {
  position: absolute;
  text-align: center;
}
.donut-chart-value { font-size: var(--fs-xl); font-weight: var(--fw-extrabold); }
.donut-chart-label { font-size: var(--fs-xs); color: var(--text-light); }

/* ── Coupon Input ─────────────────────────────────────────────────────────── */
.coupon-input {
  display: flex; gap: var(--sp-2);
}
.coupon-input input {
  flex: 1;
  padding: var(--sp-2) var(--sp-3);
  border: 1.5px dashed var(--divider);
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.coupon-input input:focus { outline: none; border-color: var(--primary); }

/* ── Filter Sidebar ───────────────────────────────────────────────────────── */
.filter-section { margin-bottom: var(--sp-6); }
.filter-title {
  font-size: var(--fs-sm); font-weight: var(--fw-bold);
  margin-bottom: var(--sp-3);
}
.filter-option {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-2) 0;
  font-size: var(--fs-sm);
  cursor: pointer;
}
.filter-option input { accent-color: var(--primary); }
.price-range { display: flex; gap: var(--sp-3); }
.price-range input {
  flex: 1;
  padding: var(--sp-2) var(--sp-3);
  border: 1.5px solid var(--divider);
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  width: 100%;
}

/* ── Image Fallback ───────────────────────────────────────────────────────── */
.img-fallback {
  display: flex; align-items: center; justify-content: center;
  background: var(--divider-light); color: var(--text-light);
}
.img-fallback svg { width: 32px; height: 32px; }

/* ── Order summary ────────────────────────────────────────────────────────── */
.order-summary {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: var(--sp-5);
  box-shadow: var(--shadow-sm);
}
.order-summary-row {
  display: flex; justify-content: space-between;
  padding: var(--sp-2) 0;
  font-size: var(--fs-sm);
}
.order-summary-row.total {
  border-top: 2px solid var(--divider);
  margin-top: var(--sp-3); padding-top: var(--sp-3);
  font-size: var(--fs-lg); font-weight: var(--fw-bold);
}
.order-summary-row.discount { color: var(--success); }

/* ── Wholesale Pricing Table ─────────────────────────────────────────────── */
.wholesale-table { width: 100%; border-collapse: collapse; margin-top: var(--sp-3); }
.wholesale-table th { text-align: left; padding: var(--sp-2) var(--sp-3); font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--text-light); border-bottom: 1px solid var(--divider); }
.wholesale-table td { padding: var(--sp-2) var(--sp-3); font-size: var(--fs-sm); border-bottom: 1px solid var(--divider-light); }
.wholesale-badge { background: linear-gradient(135deg,#059669,#0891B2); color: #fff; padding: 3px 10px; border-radius: var(--radius-full); font-size: 11px; font-weight: var(--fw-bold); display: inline-flex; align-items: center; gap: 4px; }

/* ── Star Rating Picker ──────────────────────────────────────────────────── */
.star-picker { display: flex; gap: 4px; cursor: pointer; }
.star-picker svg { width: 28px; height: 28px; color: var(--divider); transition: color var(--tr-fast), transform var(--tr-fast); }
.star-picker svg.filled { color: var(--secondary); }
.star-picker svg:hover { transform: scale(1.2); }

/* ── Review Form ─────────────────────────────────────────────────────────── */
.review-form { margin-top: var(--sp-6); padding: var(--sp-6); background: var(--surface); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.review-form h3 { margin-bottom: var(--sp-4); }
.tag-grid { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-2); }
.tag-check { display: none; }
.tag-label { padding: 4px 12px; border-radius: var(--radius-full); background: var(--divider-light); font-size: 12px; cursor: pointer; transition: all var(--tr-fast); user-select: none; }
.tag-check:checked + .tag-label { background: var(--primary); color: #fff; }

/* ── Accordion ───────────────────────────────────────────────────────────── */
.accordion-item { border-bottom: 1px solid var(--divider-light); }
.accordion-header { display: flex; align-items: center; justify-content: space-between; padding: var(--sp-4); cursor: pointer; font-weight: var(--fw-semibold); font-size: var(--fs-sm); background: none; border: none; width: 100%; text-align: left; transition: background var(--tr-fast); }
.accordion-header:hover { background: var(--divider-light); }
.accordion-header svg { width: 18px; height: 18px; color: var(--text-light); transition: transform var(--tr-fast); }
.accordion-header.open svg { transform: rotate(180deg); }
.accordion-body { padding: 0 var(--sp-4) var(--sp-4); font-size: var(--fs-sm); color: var(--text-medium); line-height: var(--lh-relaxed); display: none; }
.accordion-body.open { display: block; }

/* ── Notification Item ───────────────────────────────────────────────────── */
.notif-item { display: flex; gap: var(--sp-4); padding: var(--sp-4); border-bottom: 1px solid var(--divider-light); transition: background var(--tr-fast); }
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--divider-light); }
.notif-item.unread { background: rgba(241,90,36,0.03); }
.notif-icon { width: 40px; height: 40px; border-radius: var(--radius-full); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.notif-title { font-weight: var(--fw-semibold); font-size: var(--fs-sm); }
.notif-body { font-size: var(--fs-xs); color: var(--text-medium); margin-top: 2px; line-height: 1.5; }
.notif-time { font-size: 10px; color: var(--text-light); margin-top: var(--sp-1); }
.notif-dot { width: 8px; height: 8px; border-radius: var(--radius-full); background: var(--primary); flex-shrink: 0; margin-top: 6px; }

/* ── Address / Payment Card ──────────────────────────────────────────────── */
.addr-card, .pm-card { display: flex; align-items: flex-start; gap: var(--sp-4); padding: var(--sp-4); border: 1.5px solid var(--divider-light); border-radius: var(--radius-md); margin-bottom: var(--sp-3); transition: all var(--tr-fast); position: relative; }
.addr-card:hover, .pm-card:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.addr-card.default, .pm-card.default { border-color: var(--primary); background: rgba(241,90,36,0.02); }
.addr-card-icon, .pm-card-icon { width: 44px; height: 44px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.addr-card-actions, .pm-card-actions { display: flex; gap: var(--sp-2); position: absolute; top: var(--sp-3); right: var(--sp-3); }

/* ── Pref Toggle Row ─────────────────────────────────────────────────────── */
.pref-row { display: flex; justify-content: space-between; align-items: center; padding: var(--sp-4); border-bottom: 1px solid var(--divider-light); }
.pref-row:last-child { border-bottom: none; }
.pref-label { font-size: var(--fs-sm); font-weight: var(--fw-medium); }
.pref-desc { font-size: var(--fs-xs); color: var(--text-light); margin-top: 2px; }

/* ── Vendor Store Card Grid ──────────────────────────────────────────────── */
.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--sp-5); }
.vendor-store-card { background: var(--surface); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); overflow: hidden; transition: all var(--tr-normal); text-decoration: none; color: inherit; }
.vendor-store-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.vendor-store-card-img { width: 100%; height: 140px; object-fit: cover; background: var(--divider-light); }
.vendor-store-card-body { padding: var(--sp-4); }

