/* ============================================
   MugShop — Components
   Buttons, Cards, Forms, Badges, Modals, etc.
   ============================================ */

/* ══════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.65em 1.5em;
  font-family: var(--font-family);
  font-size: var(--font-size-sm);
  font-weight: var(--weight-semibold);
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    background var(--duration-normal) var(--ease-default),
    color var(--duration-normal) var(--ease-default),
    border-color var(--duration-normal) var(--ease-default),
    box-shadow var(--duration-normal) var(--ease-default),
    transform var(--duration-fast) var(--ease-default);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
}

.btn:active {
  transform: scale(0.97);
}

.btn:disabled,
.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Primary — Gold gradient */
.btn--primary {
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-hover) 50%, var(--color-gold-active) 100%);
  color: var(--color-bg);
  font-weight: var(--weight-bold);
  box-shadow: 0 4px 15px rgba(212, 168, 83, 0.3);
}

.btn--primary:hover {
  background: linear-gradient(135deg, var(--color-gold-hover) 0%, var(--color-gold) 50%, var(--color-gold-hover) 100%);
  box-shadow: 0 6px 25px rgba(212, 168, 83, 0.45);
  transform: translateY(-1px);
}

.btn--primary:active {
  transform: translateY(0) scale(0.97);
  box-shadow: 0 2px 10px rgba(212, 168, 83, 0.25);
}

/* Outline */
.btn--outline {
  background: transparent;
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.btn--outline:hover {
  background: var(--color-gold-dim);
  border-color: var(--color-gold-hover);
  color: var(--color-gold-light);
}

/* Ghost */
.btn--ghost {
  background: transparent;
  color: var(--color-text-muted);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-white);
}

/* Danger */
.btn--danger {
  background: var(--color-danger);
  color: #fff;
}

.btn--danger:hover {
  background: #ef5350;
  box-shadow: 0 4px 15px rgba(248, 113, 113, 0.35);
}

/* Sizes */
.btn--sm {
  padding: 0.45em 1em;
  font-size: var(--font-size-xs);
  border-radius: var(--radius-sm);
}

.btn--md {
  padding: 0.65em 1.5em;
  font-size: var(--font-size-sm);
}

.btn--lg {
  padding: 0.85em 2em;
  font-size: var(--font-size-md);
  border-radius: var(--radius-lg);
}

/* Full width */
.btn--full {
  width: 100%;
}

/* Icon button */
.btn--icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-full);
}

.btn--icon.btn--sm {
  width: 32px;
  height: 32px;
}

.btn--icon.btn--lg {
  width: 48px;
  height: 48px;
}


/* ══════════════════════════════════════════════
   CARDS
   ══════════════════════════════════════════════ */

.card {
  background: var(--color-bg-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition:
    transform var(--duration-normal) var(--ease-out),
    box-shadow var(--duration-normal) var(--ease-out),
    border-color var(--duration-normal) var(--ease-out);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(212, 168, 83, 0.08);
  border-color: var(--color-border-hover);
}

.card__image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: linear-gradient(135deg, var(--color-bg-3) 0%, var(--color-bg-4) 100%);
}

.card__body {
  padding: var(--space-5);
}

.card__title {
  font-size: var(--font-size-lg);
  font-weight: var(--weight-semibold);
  color: var(--color-white);
  margin-bottom: var(--space-2);
}

.card__text {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

.card__footer {
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}


/* ══════════════════════════════════════════════
   BADGES
   ══════════════════════════════════════════════ */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25em 0.75em;
  font-size: var(--font-size-xs);
  font-weight: var(--weight-semibold);
  line-height: 1;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.badge--gold {
  background: var(--color-gold);
  color: var(--color-bg);
}

.badge--new {
  background: var(--color-new);
  color: #fff;
}

.badge--sale {
  background: var(--color-sale);
  color: #fff;
}

.badge--hot {
  background: var(--color-hot);
  color: #fff;
}

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


/* ══════════════════════════════════════════════
   TAGS (pills)
   ══════════════════════════════════════════════ */

.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  font-size: var(--font-size-xs);
  font-weight: var(--weight-medium);
  color: var(--color-text-muted);
  background: var(--color-bg-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-default);
  user-select: none;
}

.tag:hover {
  background: var(--color-bg-4);
  color: var(--color-white);
  border-color: var(--color-border-hover);
}

.tag.active,
.tag--active {
  background: var(--color-gold-dim);
  color: var(--color-gold);
  border-color: var(--color-gold);
}

.tag__remove {
  display: inline-flex;
  width: 14px;
  height: 14px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  font-size: 10px;
  opacity: 0.5;
  transition: opacity var(--duration-fast);
}

.tag__remove:hover {
  opacity: 1;
}


/* ══════════════════════════════════════════════
   FORM INPUTS
   ══════════════════════════════════════════════ */

.input,
.textarea,
.select {
  display: block;
  width: 100%;
  padding: 0.75em 1em;
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  color: var(--color-white);
  background: var(--color-bg-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition:
    border-color var(--duration-normal) var(--ease-default),
    box-shadow var(--duration-normal) var(--ease-default),
    background var(--duration-normal) var(--ease-default);
}

.input::placeholder,
.textarea::placeholder {
  color: var(--color-text-dim);
}

.input:hover,
.textarea:hover,
.select:hover {
  border-color: var(--color-border-hover);
}

.input:focus,
.textarea:focus,
.select:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px var(--color-gold-dim), var(--shadow-glow-sm);
  background: var(--color-bg-4);
}

.textarea {
  resize: vertical;
  min-height: 120px;
  line-height: var(--leading-relaxed);
}

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%237a7e8a' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 12px center;
  padding-inline-start: 2.5em;
  padding-inline-end: 1em;
  cursor: pointer;
}

[dir="rtl"] .select {
  background-position: right 12px center;
}

.input--lg,
.select--lg {
  padding: 1em 1.25em;
  font-size: var(--font-size-md);
}

.input--sm,
.select--sm {
  padding: 0.5em 0.75em;
  font-size: var(--font-size-sm);
}

/* Input group */
.input-group {
  display: flex;
  align-items: center;
}

.input-group .input {
  border-radius: 0;
}

[dir="rtl"] .input-group .input:first-child {
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}

[dir="rtl"] .input-group .input:last-child {
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.input-group .input:first-child {
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.input-group .input:last-child {
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* Form group / label */
.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.form-hint {
  font-size: var(--font-size-xs);
  color: var(--color-text-dim);
  margin-top: var(--space-1);
}

.form-error {
  font-size: var(--font-size-xs);
  color: var(--color-danger);
  margin-top: var(--space-1);
}

.input--error,
.textarea--error {
  border-color: var(--color-danger);
}

.input--error:focus,
.textarea--error:focus {
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15);
}


/* ══════════════════════════════════════════════
   CHECKBOX & RADIO
   ══════════════════════════════════════════════ */

.checkbox,
.radio {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
  user-select: none;
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.checkbox input[type="checkbox"],
.radio input[type="radio"] {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-gray-dark);
  background: var(--color-bg-3);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-default);
  flex-shrink: 0;
}

.checkbox input[type="checkbox"] {
  border-radius: var(--radius-sm);
}

.radio input[type="radio"] {
  border-radius: var(--radius-full);
}

.checkbox input[type="checkbox"]:checked,
.radio input[type="radio"]:checked {
  background: var(--color-gold);
  border-color: var(--color-gold);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2308090a' d='M10 3L5 8 2 5' stroke='%2308090a' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.radio input[type="radio"]:checked {
  background-image: none;
  position: relative;
}

.radio input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--color-bg);
}

.checkbox input[type="checkbox"]:focus-visible,
.radio input[type="radio"]:focus-visible {
  box-shadow: 0 0 0 3px var(--color-gold-dim);
}

.checkbox input[type="checkbox"]:disabled,
.radio input[type="radio"]:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}


/* ══════════════════════════════════════════════
   RATING STARS
   ══════════════════════════════════════════════ */

.rating {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.rating__star {
  width: 18px;
  height: 18px;
  color: var(--color-gray-dark);
  transition: color var(--duration-fast);
}

.rating__star--filled {
  color: var(--color-gold);
}

.rating__star--half {
  position: relative;
  color: var(--color-gray-dark);
}

.rating__value {
  margin-inline-start: var(--space-2);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  font-weight: var(--weight-medium);
}

.rating--interactive .rating__star {
  cursor: pointer;
}

.rating--interactive .rating__star:hover {
  color: var(--color-gold-light);
}

/* Inline display rating */
.rating-display {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}

.rating-display__stars {
  display: flex;
  gap: 1px;
}

.rating-display__stars .star {
  width: 14px;
  height: 14px;
  color: var(--color-gray-dark);
}

.rating-display__stars .star.filled {
  color: var(--color-gold);
}

.rating-display__count {
  font-size: var(--font-size-xs);
  color: var(--color-text-dim);
  margin-inline-start: var(--space-1);
}


/* ══════════════════════════════════════════════
   TOOLTIP
   ══════════════════════════════════════════════ */

.tooltip {
  position: relative;
  display: inline-flex;
}

.tooltip__content {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: var(--space-1) var(--space-3);
  font-size: var(--font-size-xs);
  font-weight: var(--weight-medium);
  color: var(--color-white);
  background: var(--color-bg-4);
  border: 1px solid var(--color-border-hover);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-fast) var(--ease-default);
  z-index: var(--z-tooltip);
}

.tooltip__content::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--color-bg-4);
}

.tooltip:hover .tooltip__content {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}


/* ══════════════════════════════════════════════
   AVATAR
   ══════════════════════════════════════════════ */

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  overflow: hidden;
  background: var(--color-bg-4);
  color: var(--color-gold);
  font-weight: var(--weight-semibold);
  flex-shrink: 0;
}

.avatar--sm { width: 32px; height: 32px; font-size: var(--font-size-xs); }
.avatar--md { width: 40px; height: 40px; font-size: var(--font-size-sm); }
.avatar--lg { width: 56px; height: 56px; font-size: var(--font-size-lg); }
.avatar--xl { width: 80px; height: 80px; font-size: var(--font-size-2xl); }

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


/* ══════════════════════════════════════════════
   DIVIDER
   ══════════════════════════════════════════════ */

.divider {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-block: var(--space-6);
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.divider__text {
  font-size: var(--font-size-xs);
  color: var(--color-text-dim);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  white-space: nowrap;
}


/* ══════════════════════════════════════════════
   SKELETON LOADING
   ══════════════════════════════════════════════ */

.skeleton {
  background: var(--color-bg-3);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
}

.skeleton::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.04) 50%,
    transparent 100%
  );
  animation: skeleton-shimmer 1.5s infinite;
}

@keyframes skeleton-shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.skeleton--text {
  height: 1em;
  width: 80%;
}

.skeleton--title {
  height: 1.5em;
  width: 60%;
}

.skeleton--circle {
  border-radius: var(--radius-full);
  aspect-ratio: 1;
}

.skeleton--image {
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
}

.skeleton--btn {
  height: 44px;
  width: 120px;
  border-radius: var(--radius-md);
}


/* ══════════════════════════════════════════════
   TOAST NOTIFICATION
   ══════════════════════════════════════════════ */

.toast-container {
  position: fixed;
  top: calc(var(--nav-height) + var(--space-4));
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  background: var(--color-bg-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: var(--font-size-sm);
  color: var(--color-white);
  pointer-events: auto;
  animation: toast-in var(--duration-slow) var(--ease-spring) forwards;
  max-width: 420px;
  backdrop-filter: blur(10px);
}

.toast--success { border-inline-start: 3px solid var(--color-success); }
.toast--error   { border-inline-start: 3px solid var(--color-danger); }
.toast--warning { border-inline-start: 3px solid var(--color-warning); }
.toast--info    { border-inline-start: 3px solid var(--color-info); }

.toast__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.toast__message {
  flex: 1;
}

.toast__close {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--color-text-dim);
  cursor: pointer;
  transition: color var(--duration-fast);
}

.toast__close:hover {
  color: var(--color-white);
}

.toast--exit {
  animation: toast-out var(--duration-normal) var(--ease-default) forwards;
}

@keyframes toast-in {
  0%   { opacity: 0; transform: translateY(-20px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toast-out {
  0%   { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-20px) scale(0.95); }
}


/* ══════════════════════════════════════════════
   MODAL
   ══════════════════════════════════════════════ */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-normal) var(--ease-default);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--color-bg-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  width: 100%;
  max-width: 560px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-2xl);
  transform: translateY(20px) scale(0.96);
  transition: transform var(--duration-slow) var(--ease-spring);
}

.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--color-border);
}

.modal__title {
  font-size: var(--font-size-lg);
  font-weight: var(--weight-semibold);
  color: var(--color-white);
}

.modal__close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--duration-fast);
}

.modal__close:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-white);
}

.modal__body {
  padding: var(--space-6);
}

.modal__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--color-border);
}

/* Modal sizes */
.modal--sm { max-width: 400px; }
.modal--lg { max-width: 720px; }
.modal--xl { max-width: 960px; }
.modal--fullscreen {
  max-width: 100%;
  max-height: 100%;
  height: 100%;
  border-radius: 0;
}


/* ══════════════════════════════════════════════
   ACCORDION
   ══════════════════════════════════════════════ */

.accordion {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.accordion__item {
  border-bottom: 1px solid var(--color-border);
}

.accordion__item:last-child {
  border-bottom: none;
}

.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-4) var(--space-5);
  font-size: var(--font-size-base);
  font-weight: var(--weight-medium);
  color: var(--color-white);
  text-align: start;
  cursor: pointer;
  background: transparent;
  transition: background var(--duration-normal) var(--ease-default);
}

.accordion__trigger:hover {
  background: rgba(255, 255, 255, 0.03);
}

.accordion__icon {
  width: 20px;
  height: 20px;
  color: var(--color-text-muted);
  transition: transform var(--duration-normal) var(--ease-default);
  flex-shrink: 0;
}

.accordion__item.active .accordion__icon {
  transform: rotate(180deg);
}

.accordion__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-slow) var(--ease-default);
}

.accordion__item.active .accordion__content {
  max-height: 500px;
}

.accordion__body {
  padding: 0 var(--space-5) var(--space-5);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}


/* ══════════════════════════════════════════════
   TABS
   ══════════════════════════════════════════════ */

.tabs {
  width: 100%;
}

.tabs__list {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--color-border);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.tabs__list::-webkit-scrollbar {
  display: none;
}

.tabs__tab {
  padding: var(--space-3) var(--space-5);
  font-size: var(--font-size-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-muted);
  border: none;
  background: none;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  transition: color var(--duration-normal) var(--ease-default);
}

.tabs__tab::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-gold);
  transform: scaleX(0);
  transition: transform var(--duration-normal) var(--ease-default);
}

.tabs__tab:hover {
  color: var(--color-white);
}

.tabs__tab.active {
  color: var(--color-gold);
}

.tabs__tab.active::after {
  transform: scaleX(1);
}

.tab-panel {
  display: none;
  padding: var(--space-6) 0;
}

.tab-panel.active {
  display: block;
  animation: tab-fade-in var(--duration-normal) var(--ease-default);
}

@keyframes tab-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ══════════════════════════════════════════════
   BREADCRUMB
   ══════════════════════════════════════════════ */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  color: var(--color-text-dim);
  flex-wrap: wrap;
}

.breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.breadcrumb__item a {
  color: var(--color-text-muted);
  transition: color var(--duration-fast);
}

.breadcrumb__item a:hover {
  color: var(--color-gold);
}

.breadcrumb__separator {
  color: var(--color-text-dim);
  font-size: var(--font-size-xs);
}

.breadcrumb__item:last-child {
  color: var(--color-gold);
}


/* ══════════════════════════════════════════════
   PAGINATION
   ══════════════════════════════════════════════ */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
}

.pagination__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 var(--space-3);
  font-size: var(--font-size-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-muted);
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-default);
}

.pagination__btn:hover {
  background: var(--color-bg-3);
  color: var(--color-white);
  border-color: var(--color-border-hover);
}

.pagination__btn.active {
  background: var(--color-gold);
  color: var(--color-bg);
  border-color: var(--color-gold);
  font-weight: var(--weight-bold);
}

.pagination__btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.pagination__ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--color-text-dim);
  font-size: var(--font-size-sm);
}


/* ══════════════════════════════════════════════
   PRICE DISPLAY
   ══════════════════════════════════════════════ */

.price {
  display: inline-flex;
  align-items: baseline;
  gap: var(--space-2);
  direction: ltr;
}

.price--lg {
  gap: var(--space-3);
}

.price__current {
  font-size: var(--font-size-xl);
  font-weight: var(--weight-bold);
  color: var(--color-gold);
  font-feature-settings: 'tnum';
}

.price__current--lg {
  font-size: var(--font-size-3xl);
}

.price__original {
  font-size: var(--font-size-sm);
  color: var(--color-text-dim);
  text-decoration: line-through;
  font-weight: var(--weight-regular);
  font-feature-settings: 'tnum';
}

.price__discount {
  font-size: var(--font-size-xs);
  font-weight: var(--weight-bold);
  color: var(--color-sale);
  background: rgba(239, 68, 68, 0.12);
  padding: 0.15em 0.5em;
  border-radius: var(--radius-sm);
}


/* ══════════════════════════════════════════════
   QUANTITY SELECTOR
   ══════════════════════════════════════════════ */

.quantity {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.quantity__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: var(--font-size-lg);
  color: var(--color-text-muted);
  background: transparent;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-default);
  border: none;
  flex-shrink: 0;
}

.quantity__btn:hover {
  background: var(--color-bg-4);
  color: var(--color-gold);
}

.quantity__btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.quantity__value {
  width: 50px;
  text-align: center;
  font-size: var(--font-size-base);
  font-weight: var(--weight-semibold);
  color: var(--color-white);
  background: transparent;
  border: none;
  border-inline: 1px solid var(--color-border);
  padding: 0;
  font-feature-settings: 'tnum';
}

.quantity--sm .quantity__btn {
  width: 32px;
  height: 32px;
  font-size: var(--font-size-base);
}

.quantity--sm .quantity__value {
  width: 40px;
  font-size: var(--font-size-sm);
}


/* ══════════════════════════════════════════════
   COLOR SWATCH
   ══════════════════════════════════════════════ */

.color-swatch {
  display: inline-flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.color-swatch__circle {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-default);
  position: relative;
  flex-shrink: 0;
}

.color-swatch__circle:hover {
  transform: scale(1.15);
}

.color-swatch__circle.active {
  border-color: var(--color-white);
  box-shadow: 0 0 0 2px var(--color-bg), 0 0 0 4px var(--color-gold);
}

.color-swatch__circle::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: var(--radius-full);
}

/* Default outline if no background set */
.color-swatch__circle:not([style*="background"])::after {
  background: var(--color-gray-dark);
}
