/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 0.85rem;
  font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  transition: all var(--transition-base); position: relative; overflow: hidden;
  cursor: pointer; border: 1px solid transparent;
}
.btn::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,0.05);
  transform: translateX(-100%); transition: transform 0.4s ease;
}
.btn:hover::before { transform: translateX(0); }

.btn-primary {
  background: var(--color-gold); color: var(--color-bg);
  border-color: var(--color-gold);
}
.btn-primary:hover {
  background: var(--color-gold-light); border-color: var(--color-gold-light);
  box-shadow: var(--shadow-gold);
}
.btn-secondary {
  background: transparent; color: var(--color-text);
  border-color: var(--color-border-hover);
}
.btn-secondary:hover {
  border-color: var(--color-gold); color: var(--color-gold);
}
.btn-ghost {
  background: transparent; color: var(--color-gold);
  border-color: var(--color-gold);
}
.btn-ghost:hover { background: var(--color-gold); color: var(--color-bg); }
.btn-danger {
  background: transparent; color: var(--color-error);
  border-color: var(--color-error);
}
.btn-danger:hover { background: var(--color-error); color: white; }
.btn-sm { padding: 8px 18px; font-size: 0.78rem; }
.btn-lg { padding: 16px 40px; font-size: 0.9rem; }
.btn-full { width: 100%; }
.btn-icon { padding: 10px; border-radius: var(--radius-sm); width: 40px; height: 40px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; pointer-events: none; }
.btn-loading::after {
  content: ''; width: 14px; height: 14px;
  border: 2px solid transparent; border-top-color: currentColor;
  border-radius: 50%; animation: spin 0.7s linear infinite;
}

/* ===== PRODUCT CARD ===== */
.product-card {
  background: var(--color-bg-card); border-radius: var(--radius-md);
  overflow: hidden; position: relative;
  border: 1px solid var(--color-border);
  transition: all var(--transition-base);
}
.product-card:hover {
  border-color: var(--color-gold-border);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.product-card-image {
  position: relative; overflow: hidden;
  aspect-ratio: 3/4; background: var(--color-bg-secondary);
}
.product-card-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.product-card:hover .product-card-image img { transform: scale(1.07); }
.product-card-badge {
  position: absolute; top: 12px; left: 12px;
  padding: 4px 10px; border-radius: var(--radius-sm);
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}
.badge-new { background: var(--color-gold); color: var(--color-bg); }
.badge-sale { background: var(--color-error); color: white; }
.badge-bestseller { background: var(--color-bg-tertiary); color: var(--color-gold); border: 1px solid var(--color-gold-border); }
.badge-limited { background: rgba(201,168,76,0.15); color: var(--color-gold); border: 1px solid var(--color-gold-border); }

.product-card-wishlist {
  position: absolute; top: 12px; right: 12px;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(26,26,26,0.85); backdrop-filter: blur(8px);
  border: 1px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-text-muted); font-size: 1rem;
  transition: all var(--transition-base);
  opacity: 0; transform: translateY(-4px);
}
.product-card:hover .product-card-wishlist,
.product-card-wishlist.active { opacity: 1; transform: translateY(0); }
.product-card-wishlist:hover,
.product-card-wishlist.wishlisted { color: #e53935; border-color: #e53935; }

.product-card-quick-add {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(26,26,26,0.92); backdrop-filter: blur(8px);
  padding: 12px; display: flex; justify-content: center;
  transform: translateY(100%); transition: transform 0.3s ease;
}
.product-card:hover .product-card-quick-add { transform: translateY(0); }
.product-card-body { padding: var(--spacing-md); }
.product-card-category {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--color-gold); margin-bottom: 6px;
}
.product-card-name {
  font-family: var(--font-heading); font-size: 1rem;
  color: var(--color-text); margin-bottom: 8px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.product-card-price {
  display: flex; align-items: center; gap: 8px;
}
.price-current {
  font-size: 1rem; font-weight: 600; color: var(--color-gold);
}
.price-original {
  font-size: 0.85rem; color: var(--color-text-dim);
  text-decoration: line-through;
}
.product-card-rating {
  display: flex; align-items: center; gap: 6px;
  margin-top: 6px; font-size: 0.8rem; color: var(--color-text-muted);
}
.stars { color: var(--color-gold); letter-spacing: -1px; }
.product-card-actions {
  display: flex; gap: 8px; padding: var(--spacing-sm) var(--spacing-md) var(--spacing-md);
}

/* ===== CATEGORY CARD ===== */
.category-card {
  position: relative; overflow: hidden; border-radius: var(--radius-md);
  aspect-ratio: 3/4; cursor: pointer;
}
.category-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.category-card:hover img { transform: scale(1.08); }
.category-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.1) 60%);
  display: flex; flex-direction: column;
  justify-content: flex-end; padding: var(--spacing-xl);
  transition: background var(--transition-base);
}
.category-card:hover .category-card-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 60%);
}
.category-card-title {
  font-family: var(--font-heading); font-size: 1.6rem;
  color: var(--color-text); margin-bottom: 4px;
}
.category-card-count {
  font-size: 0.78rem; color: var(--color-gold); letter-spacing: 0.15em; text-transform: uppercase;
  margin-bottom: var(--spacing-sm);
}
.category-card-link {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--color-text); display: flex; align-items: center; gap: 6px;
  opacity: 0; transform: translateY(8px); transition: all var(--transition-base);
}
.category-card:hover .category-card-link { opacity: 1; transform: translateY(0); }

/* ===== TOAST NOTIFICATIONS ===== */
#toast-container {
  position: fixed; top: 90px; right: 20px;
  z-index: var(--z-toast); display: flex; flex-direction: column; gap: 10px;
}
.toast {
  background: var(--color-bg-tertiary); border: 1px solid var(--color-border-hover);
  border-left: 3px solid var(--color-gold);
  padding: 14px 18px; border-radius: var(--radius-md);
  display: flex; align-items: center; gap: 12px;
  font-size: 0.85rem; color: var(--color-text);
  box-shadow: var(--shadow-lg); min-width: 260px; max-width: 340px;
  animation: slideInRight 0.3s ease, fadeIn 0.3s ease;
  position: relative;
}
.toast.success { border-left-color: var(--color-success); }
.toast.error { border-left-color: var(--color-error); }
.toast.warning { border-left-color: var(--color-warning); }
.toast-icon { font-size: 1.1rem; flex-shrink: 0; }
.toast-close {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--color-text-dim); cursor: pointer;
  font-size: 1rem; padding: 2px;
}
.toast-exit { animation: slideInRight 0.3s ease reverse; }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.75); backdrop-filter: blur(6px);
  z-index: var(--z-modal); display: flex; align-items: center; justify-content: center;
  padding: var(--spacing-md); opacity: 0; pointer-events: none;
  transition: opacity var(--transition-base);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--color-bg-secondary); border: 1px solid var(--color-border-hover);
  border-radius: var(--radius-lg); padding: var(--spacing-2xl);
  max-width: 560px; width: 100%; position: relative;
  transform: scale(0.95); transition: transform var(--transition-base);
  max-height: 90vh; overflow-y: auto;
}
.modal-overlay.open .modal { transform: scale(1); }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--color-bg-tertiary); border: 1px solid var(--color-border);
  color: var(--color-text-muted); display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1rem; transition: all var(--transition-fast);
}
.modal-close:hover { color: var(--color-text); border-color: var(--color-gold); }
.modal-title { font-family: var(--font-heading); font-size: 1.5rem; margin-bottom: var(--spacing-lg); }

/* ===== FORM ELEMENTS ===== */
.form-group { margin-bottom: var(--spacing-lg); }
.form-label {
  display: block; font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--color-text-muted); margin-bottom: 8px;
}
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 12px 16px;
  background: var(--color-bg-tertiary); border: 1px solid var(--color-border);
  border-radius: var(--radius-sm); color: var(--color-text);
  font-family: var(--font-body); font-size: 0.9rem;
  transition: all var(--transition-fast);
  -webkit-appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--color-gold); box-shadow: 0 0 0 3px var(--color-gold-bg);
}
.form-input::placeholder { color: var(--color-text-dim); }
.form-input.error, .form-select.error { border-color: var(--color-error); }
.form-input.success { border-color: var(--color-success); }
.form-error { color: var(--color-error); font-size: 0.78rem; margin-top: 4px; }
.form-hint { color: var(--color-text-dim); font-size: 0.78rem; margin-top: 4px; }
.form-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a09880' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.form-textarea { min-height: 120px; resize: vertical; }

.input-group { position: relative; }
.input-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--color-text-dim); }
.input-group .form-input { padding-left: 42px; }
.input-append { position: absolute; right: 0; top: 0; bottom: 0; padding: 0 14px; display: flex; align-items: center; cursor: pointer; color: var(--color-text-muted); }
.input-append:hover { color: var(--color-gold); }

/* ===== CHECKBOX / RADIO ===== */
.checkbox-label, .radio-label {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; font-size: 0.9rem; color: var(--color-text-muted);
  transition: color var(--transition-fast);
}
.checkbox-label:hover, .radio-label:hover { color: var(--color-text); }
.checkbox-label input[type="checkbox"],
.radio-label input[type="radio"] { display: none; }
.checkbox-label .checkmark, .radio-label .radiomark {
  width: 18px; height: 18px; border: 1px solid var(--color-border-hover);
  border-radius: 3px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  transition: all var(--transition-fast);
}
.radio-label .radiomark { border-radius: 50%; }
.checkbox-label input:checked ~ .checkmark { background: var(--color-gold); border-color: var(--color-gold); }
.checkbox-label input:checked ~ .checkmark::after { content: '✓'; color: var(--color-bg); font-size: 0.7rem; font-weight: 700; }
.radio-label input:checked ~ .radiomark { border-color: var(--color-gold); }
.radio-label input:checked ~ .radiomark::after { content: ''; width: 8px; height: 8px; background: var(--color-gold); border-radius: 50%; }

/* ===== RANGE SLIDER ===== */
.range-slider {
  -webkit-appearance: none; width: 100%; height: 3px;
  background: var(--color-border-hover); border-radius: var(--radius-full); outline: none;
}
.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px;
  background: var(--color-gold); border-radius: 50%; cursor: pointer;
  box-shadow: 0 0 0 3px var(--color-gold-bg);
}
.range-slider::-moz-range-thumb {
  width: 18px; height: 18px; background: var(--color-gold);
  border-radius: 50%; cursor: pointer; border: none;
}

/* ===== STARS RATING ===== */
.star-rating { display: flex; gap: 2px; }
.star-rating .star {
  font-size: 1.1rem; color: var(--color-border-hover); cursor: pointer;
  transition: color var(--transition-fast);
}
.star-rating .star.filled, .star-rating .star:hover ~ .star { color: var(--color-border-hover); }
.star-rating .star.filled, .star-rating:hover .star { color: var(--color-gold); }
.star-rating .star:hover ~ .star { color: var(--color-border-hover) !important; }

/* ===== QUANTITY STEPPER ===== */
.qty-stepper {
  display: flex; align-items: center;
  border: 1px solid var(--color-border-hover); border-radius: var(--radius-sm);
  overflow: hidden; width: fit-content;
}
.qty-btn {
  width: 36px; height: 36px; background: var(--color-bg-tertiary);
  color: var(--color-text-muted); font-size: 1.1rem;
  transition: all var(--transition-fast); flex-shrink: 0;
}
.qty-btn:hover { background: var(--color-gold-bg); color: var(--color-gold); }
.qty-input {
  width: 48px; text-align: center; background: transparent;
  border: none; border-left: 1px solid var(--color-border); border-right: 1px solid var(--color-border);
  color: var(--color-text); font-size: 0.9rem; padding: 8px 0;
  -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button, .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty-input:focus { outline: none; }

/* ===== TABS ===== */
.tabs-nav {
  display: flex; border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--spacing-xl); gap: 0;
}
.tab-btn {
  padding: 12px 24px; font-size: 0.85rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-text-muted); background: none; border: none;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: all var(--transition-fast); cursor: pointer;
}
.tab-btn:hover { color: var(--color-text); }
.tab-btn.active { color: var(--color-gold); border-bottom-color: var(--color-gold); }
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.3s ease; }

/* ===== BACK TO TOP ===== */
#back-to-top {
  position: fixed; bottom: 24px; right: 24px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--color-gold); color: var(--color-bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; cursor: pointer; z-index: var(--z-sticky);
  opacity: 0; transform: translateY(10px);
  transition: all var(--transition-base); box-shadow: var(--shadow-gold);
  border: none;
}
#back-to-top.visible { opacity: 1; transform: translateY(0); }
#back-to-top:hover { background: var(--color-gold-light); transform: translateY(-3px); }

/* ===== PAGINATION ===== */
.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; margin-top: var(--spacing-2xl);
}
.page-btn {
  width: 38px; height: 38px; border-radius: var(--radius-sm);
  background: var(--color-bg-secondary); border: 1px solid var(--color-border);
  color: var(--color-text-muted); font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition-fast); cursor: pointer;
}
.page-btn:hover, .page-btn.active {
  border-color: var(--color-gold); color: var(--color-gold); background: var(--color-gold-bg);
}
.page-btn.active { background: var(--color-gold); color: var(--color-bg); border-color: var(--color-gold); }

/* ===== PROGRESS BAR ===== */
.progress-bar {
  display: flex; align-items: center; justify-content: center;
  gap: 0; margin-bottom: var(--spacing-2xl); position: relative;
}
.progress-bar::before {
  content: ''; position: absolute; top: 20px; left: 10%; right: 10%; height: 2px;
  background: var(--color-border); z-index: 0;
}
.progress-fill {
  position: absolute; top: 20px; left: 10%; height: 2px;
  background: var(--color-gold); z-index: 1;
  transition: width 0.4s ease; width: 0%;
}
.progress-step {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  flex: 1; z-index: 2; text-align: center;
}
.progress-step-circle {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--color-bg-secondary); border: 2px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 600; color: var(--color-text-muted);
  transition: all var(--transition-base);
}
.progress-step.active .progress-step-circle {
  border-color: var(--color-gold); color: var(--color-gold);
}
.progress-step.done .progress-step-circle {
  background: var(--color-gold); border-color: var(--color-gold); color: var(--color-bg);
}
.progress-step-label {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--color-text-dim); transition: color var(--transition-fast);
}
.progress-step.active .progress-step-label { color: var(--color-gold); }
.progress-step.done .progress-step-label { color: var(--color-text-muted); }

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center; padding: var(--spacing-4xl) var(--spacing-xl);
}
.empty-state-icon {
  font-size: 4rem; margin-bottom: var(--spacing-lg); opacity: 0.3;
}
.empty-state h3 { margin-bottom: var(--spacing-sm); font-size: 1.4rem; }
.empty-state p { margin-bottom: var(--spacing-xl); }

/* ===== STATUS BADGES ===== */
.status-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: var(--radius-full);
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
}
.status-delivered { background: rgba(76,175,80,0.15); color: #4caf50; }
.status-processing { background: rgba(255,152,0,0.15); color: #ff9800; }
.status-cancelled { background: rgba(229,57,53,0.15); color: #e53935; }
.status-shipped { background: rgba(33,150,243,0.15); color: #2196f3; }

/* ===== GOLD DIVIDER LINE ===== */
.gold-line {
  width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold-border), transparent);
  margin: var(--spacing-xl) 0;
}

/* ===== CARD CREDIT ===== */
.credit-card-preview {
  width: 100%; max-width: 340px; aspect-ratio: 1.586;
  border-radius: 16px; padding: 24px;
  background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
  border: 1px solid var(--color-gold-border);
  position: relative; overflow: hidden;
  perspective: 1000px;
  box-shadow: var(--shadow-lg);
}
.credit-card-preview::before {
  content: ''; position: absolute;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,0.15), transparent);
  top: -50px; right: -50px;
}
.credit-card-chip {
  width: 42px; height: 32px; border-radius: 6px;
  background: linear-gradient(135deg, #c9a84c, #a07830);
  margin-bottom: 24px;
}
.credit-card-number {
  font-size: 1.1rem; letter-spacing: 0.25em;
  color: var(--color-text); margin-bottom: 20px; font-weight: 300;
}
.credit-card-bottom { display: flex; justify-content: space-between; align-items: flex-end; }
.credit-card-label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-text-dim); margin-bottom: 2px; }
.credit-card-value { font-size: 0.85rem; color: var(--color-text); }
.credit-card-logo { font-size: 1.8rem; opacity: 0.7; }

/* ===== PASSWORD STRENGTH ===== */
.password-strength { margin-top: 8px; }
.strength-bars { display: flex; gap: 4px; margin-bottom: 4px; }
.strength-bar { height: 3px; flex: 1; border-radius: var(--radius-full); background: var(--color-border); transition: background var(--transition-base); }
.strength-bar.weak { background: var(--color-error); }
.strength-bar.fair { background: var(--color-warning); }
.strength-bar.strong { background: var(--color-success); }
.strength-label { font-size: 0.72rem; color: var(--color-text-dim); }

/* ===== SOCIAL LOGIN ===== */
.social-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 12px; border-radius: var(--radius-sm);
  background: var(--color-bg-tertiary); border: 1px solid var(--color-border);
  color: var(--color-text); font-size: 0.85rem;
  transition: all var(--transition-fast); cursor: pointer;
}
.social-btn:hover { border-color: var(--color-gold); color: var(--color-gold); }
