/* ============================================
   ÉLITE — UI Components
   ============================================ */

/* ================================================
   BUTTONS
   ================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0);
  transition: background var(--transition-fast);
}

.btn:hover::after {
  background: rgba(255, 255, 255, 0.05);
}

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

/* Gold / Primary */
.btn--gold {
  background: var(--gradient-gold);
  color: var(--color-bg-primary);
  box-shadow: var(--shadow-gold);
}

.btn--gold:hover {
  box-shadow: var(--shadow-gold-lg);
  transform: translateY(-1px);
}

.btn--gold:active {
  transform: translateY(0) scale(0.97);
}

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

.btn--outline:hover {
  background: rgba(var(--color-accent-rgb), 0.1);
  border-color: var(--color-accent-light);
  color: var(--color-accent-light);
}

/* Ghost */
.btn--ghost {
  background: transparent;
  color: var(--color-text-secondary);
  padding: var(--space-2) var(--space-4);
}

.btn--ghost:hover {
  color: var(--color-text-primary);
  background: var(--color-surface-hover);
}

/* WhatsApp */
.btn--whatsapp {
  background: var(--color-whatsapp);
  color: #fff;
  font-weight: var(--fw-bold);
}

.btn--whatsapp:hover {
  background: var(--color-whatsapp-hover);
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
  transform: translateY(-1px);
}

/* Danger / Remove */
.btn--danger {
  background: transparent;
  color: var(--color-error);
}

.btn--danger:hover {
  background: rgba(248, 113, 113, 0.1);
}

/* Sizes */
.btn--sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--fs-xs);
}

.btn--lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--fs-base);
}

.btn--full {
  width: 100%;
}

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

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ================================================
   BADGES
   ================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  font-size: var(--fs-2xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  border-radius: var(--radius-full);
  line-height: 1;
}

.badge--new {
  background: rgba(var(--color-accent-rgb), 0.15);
  color: var(--color-accent-light);
  border: 1px solid rgba(var(--color-accent-rgb), 0.2);
}

.badge--sale {
  background: rgba(248, 113, 113, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(248, 113, 113, 0.2);
}

.badge--hot {
  background: rgba(251, 191, 36, 0.15);
  color: #fcd34d;
  border: 1px solid rgba(251, 191, 36, 0.2);
}

/* Cart Badge */
.cart-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: var(--color-bg-primary);
  font-size: 10px;
  font-weight: var(--fw-bold);
  border-radius: var(--radius-full);
  padding: 0 4px;
  line-height: 1;
  pointer-events: none;
  transition: transform var(--transition-bounce);
}

.cart-badge.is-empty {
  display: none;
}

.cart-badge.animate {
  animation: pulse 0.4s var(--ease-out-back);
}

/* ================================================
   CATEGORY CARDS
   ================================================ */
.category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-6) var(--space-4);
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  cursor: pointer;
  overflow: hidden;
  transition: all var(--transition-base);
}

.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-shine);
  background-size: 200% 100%;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.category-card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}

.category-card:hover::before {
  opacity: 1;
  animation: shimmer 1.5s ease-in-out;
}

.category-card.is-active {
  border-color: var(--color-accent);
  background: rgba(var(--color-accent-rgb), 0.08);
}

.category-card__icon {
  font-size: var(--fs-3xl);
  line-height: 1;
}

.category-card__name {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--color-text-secondary);
  text-align: center;
  transition: color var(--transition-fast);
}

.category-card:hover .category-card__name,
.category-card.is-active .category-card__name {
  color: var(--color-accent);
}

.category-card__count {
  font-size: var(--fs-2xs);
  color: var(--color-text-muted);
}

/* ================================================
   PRODUCT CARDS
   ================================================ */
.product-card {
  position: relative;
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-base);
}

.product-card:hover {
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-6px);
}

.product-card__image-wrapper {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--color-bg-tertiary);
}

.product-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out-expo);
}

.product-card:hover .product-card__image {
  transform: scale(1.06);
}

/* Fallback gradient for missing images */
.product-card__image-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  opacity: 0.3;
}

.product-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(11, 11, 20, 0.8) 100%);
  opacity: 0;
  transition: opacity var(--transition-base);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: var(--space-6);
}

.product-card:hover .product-card__overlay {
  opacity: 1;
}

.product-card__quick-view {
  padding: var(--space-2) var(--space-5);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--color-text-primary);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  cursor: pointer;
  transform: translateY(10px);
  opacity: 0;
  transition: all var(--transition-base);
}

.product-card:hover .product-card__quick-view {
  transform: translateY(0);
  opacity: 1;
}

.product-card__quick-view:hover {
  background: rgba(var(--color-accent-rgb), 0.2);
  border-color: var(--color-accent);
  color: var(--color-accent-light);
}

.product-card__badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  z-index: var(--z-base);
}

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

.product-card__category {
  font-size: var(--fs-2xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}

.product-card__name {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-3);
  line-height: var(--lh-snug);
}

.product-card__price-row {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
}

.product-card__price {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--color-text-primary);
}

.product-card__price--original {
  font-size: var(--fs-sm);
  font-weight: var(--fw-normal);
  color: var(--color-text-muted);
  text-decoration: line-through;
}

.product-card__colors {
  display: flex;
  gap: var(--space-1-5);
  margin-top: var(--space-3);
}

.product-card__color-dot {
  width: 14px;
  height: 14px;
  border-radius: var(--radius-full);
  border: 2px solid var(--color-bg-card);
  box-shadow: 0 0 0 1px var(--color-border);
}

/* ================================================
   FILTER BAR
   ================================================ */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  color: var(--color-text-secondary);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-chip:hover {
  border-color: var(--color-border-hover);
  color: var(--color-accent);
  background: rgba(var(--color-accent-rgb), 0.05);
}

.filter-chip.is-active {
  background: rgba(var(--color-accent-rgb), 0.12);
  border-color: var(--color-accent);
  color: var(--color-accent-light);
}

.filter-chip__remove {
  display: none;
  width: 14px;
  height: 14px;
  font-size: 14px;
  line-height: 1;
  color: inherit;
  opacity: 0.7;
}

.filter-chip.is-active .filter-chip__remove {
  display: inline;
}

.filter-controls {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.filter-select {
  min-width: 180px;
  padding: var(--space-2) var(--space-10) var(--space-2) var(--space-4);
  font-size: var(--fs-xs);
  background-color: var(--color-bg-tertiary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  color: var(--color-text-secondary);
}

.filter-select:focus {
  border-color: var(--color-accent);
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.active-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1-5);
  padding: var(--space-1) var(--space-3);
  font-size: var(--fs-2xs);
  background: rgba(var(--color-accent-rgb), 0.1);
  border: 1px solid rgba(var(--color-accent-rgb), 0.2);
  border-radius: var(--radius-full);
  color: var(--color-accent-light);
}

.active-filter-tag__close {
  cursor: pointer;
  font-size: 12px;
  opacity: 0.7;
  transition: opacity var(--transition-fast);
}

.active-filter-tag__close:hover {
  opacity: 1;
}

.filter-clear {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  cursor: pointer;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast);
}

.filter-clear:hover {
  color: var(--color-accent);
}

/* ================================================
   MODAL (Product Detail)
   ================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}

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

.modal {
  position: relative;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  background: var(--glass-bg-dense);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  transform: scale(0.92) translateY(20px);
  transition: transform var(--transition-slow);
  box-shadow: var(--shadow-2xl);
}

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

.modal__close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  z-index: 5;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-full);
  color: var(--color-text-primary);
  font-size: var(--fs-xl);
  transition: background var(--transition-fast);
}

.modal__close:hover {
  background: rgba(0, 0, 0, 0.6);
}

.modal__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-height: 90vh;
}

.modal__image-section {
  position: relative;
  background: var(--color-bg-tertiary);
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

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

.modal__image-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  opacity: 0.2;
}

.modal__info {
  padding: var(--space-8);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.modal__category {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--color-accent);
}

.modal__title {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  color: var(--color-text-primary);
  line-height: var(--lh-snug);
}

.modal__price-row {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
}

.modal__price {
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  color: var(--color-text-primary);
}

.modal__price--original {
  font-size: var(--fs-lg);
  color: var(--color-text-muted);
  text-decoration: line-through;
}

.modal__discount-tag {
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  color: var(--color-error);
  background: rgba(248, 113, 113, 0.1);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
}

.modal__description {
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
  line-height: var(--lh-relaxed);
}

.modal__material {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.modal__divider {
  width: 100%;
  height: 1px;
  background: var(--color-border);
}

/* Size Selector */
.selector-label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-3);
}

.size-selector {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.size-option {
  min-width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--color-text-secondary);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 0 var(--space-3);
}

.size-option:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.size-option.is-active {
  background: rgba(var(--color-accent-rgb), 0.12);
  border-color: var(--color-accent);
  color: var(--color-accent-light);
}

/* Color Selector */
.color-selector {
  display: flex;
  gap: var(--space-3);
}

.color-swatch {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  cursor: pointer;
  border: 3px solid transparent;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.1);
  transition: all var(--transition-fast);
  position: relative;
}

.color-swatch:hover {
  transform: scale(1.1);
}

.color-swatch.is-active {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px var(--color-accent);
}

.color-swatch__label {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: var(--fs-2xs);
  color: var(--color-text-muted);
  white-space: nowrap;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.color-swatch:hover .color-swatch__label,
.color-swatch.is-active .color-swatch__label {
  opacity: 1;
}

/* Quantity Selector */
.quantity-selector {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-1);
  width: fit-content;
}

.quantity-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: var(--fs-lg);
  color: var(--color-text-secondary);
  transition: all var(--transition-fast);
}

.quantity-btn:hover {
  background: var(--color-surface-hover);
  color: var(--color-accent);
}

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

.quantity-value {
  width: 40px;
  text-align: center;
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  color: var(--color-text-primary);
}

/* ================================================
   CART PANEL (Slide-in)
   ================================================ */
.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}

.cart-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-modal);
  width: 100%;
  max-width: 420px;
  background: var(--glass-bg-dense);
  backdrop-filter: blur(var(--glass-blur-heavy));
  -webkit-backdrop-filter: blur(var(--glass-blur-heavy));
  border-left: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition-slow);
  box-shadow: var(--shadow-2xl);
}

.cart-panel.is-open {
  transform: translateX(0);
}

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

.cart-panel__header h3 {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
}

.cart-panel__count {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: var(--fw-normal);
  color: var(--color-text-muted);
  margin-left: var(--space-2);
}

.cart-panel__close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  font-size: var(--fs-2xl);
  color: var(--color-text-secondary);
  transition: all var(--transition-fast);
}

.cart-panel__close:hover {
  background: var(--color-surface-hover);
  color: var(--color-text-primary);
}

.cart-panel__items {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-4);
}

.cart-panel__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: var(--space-4);
  color: var(--color-text-muted);
  text-align: center;
  padding: var(--space-8);
}

.cart-panel__empty-icon {
  font-size: var(--fs-5xl);
  opacity: 0.3;
}

.cart-panel__empty-text {
  font-size: var(--fs-sm);
}

/* Cart Item */
.cart-item {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-3);
  transition: border-color var(--transition-fast);
  animation: fadeInUp 0.3s var(--ease-out-expo);
}

.cart-item:hover {
  border-color: var(--color-border-hover);
}

.cart-item__image {
  width: 72px;
  height: 90px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--color-bg-tertiary);
}

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

.cart-item__image-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-2xl);
  opacity: 0.3;
}

.cart-item__details {
  flex: 1;
  min-width: 0;
}

.cart-item__name {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item__variant {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.cart-item__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-2);
}

.cart-item__price {
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  color: var(--color-accent);
}

.cart-item__qty {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.cart-item__qty-btn {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  background: var(--color-bg-tertiary);
  border: 1px solid var(--color-border);
  transition: all var(--transition-fast);
}

.cart-item__qty-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.cart-item__qty-value {
  width: 24px;
  text-align: center;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
}

.cart-item__remove {
  font-size: var(--fs-lg);
  color: var(--color-text-muted);
  padding: var(--space-1);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  flex-shrink: 0;
  align-self: flex-start;
}

.cart-item__remove:hover {
  color: var(--color-error);
  background: rgba(248, 113, 113, 0.1);
}

/* Cart Footer */
.cart-panel__footer {
  border-top: 1px solid var(--color-border);
  padding: var(--space-6);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.cart-panel__subtotal {
  display: flex;
  justify-content: space-between;
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
}

.cart-panel__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.cart-panel__total-label {
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  color: var(--color-text-primary);
}

.cart-panel__total-value {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  color: var(--color-accent);
}

/* ================================================
   CHECKOUT MODAL
   ================================================ */
.modal--checkout {
  max-width: 520px;
}

.modal--checkout .modal__content {
  display: block;
  padding: var(--space-8);
  overflow-y: auto;
  max-height: 90vh;
}

.checkout__title {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-6);
  text-align: center;
}

.checkout__summary {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  margin-bottom: var(--space-6);
  max-height: 200px;
  overflow-y: auto;
}

.checkout__summary-item {
  display: flex;
  justify-content: space-between;
  padding: var(--space-2) 0;
  font-size: var(--fs-sm);
  border-bottom: 1px solid var(--color-border);
}

.checkout__summary-item:last-child {
  border-bottom: none;
}

.checkout__summary-item-name {
  color: var(--color-text-secondary);
  flex: 1;
}

.checkout__summary-item-price {
  color: var(--color-text-primary);
  font-weight: var(--fw-semibold);
}

.checkout__summary-total {
  display: flex;
  justify-content: space-between;
  padding: var(--space-3) 0 0;
  margin-top: var(--space-2);
  border-top: 1px solid var(--color-accent);
  font-weight: var(--fw-bold);
  color: var(--color-accent);
}

.checkout__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.checkout__form input,
.checkout__form textarea {
  background: var(--color-bg-tertiary);
  border: 1px solid var(--color-border);
}

/* ================================================
   TOAST NOTIFICATIONS
   ================================================ */
.toast-container {
  position: fixed;
  top: 88px;
  right: var(--space-6);
  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-4) var(--space-5);
  background: var(--glass-bg-dense);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  pointer-events: auto;
  min-width: 280px;
  max-width: 400px;
  animation: toastIn 0.4s var(--ease-out-back) forwards;
}

.toast.is-exiting {
  animation: toastOut 0.3s var(--ease-in-out-smooth) forwards;
}

.toast__icon {
  font-size: var(--fs-xl);
  flex-shrink: 0;
}

.toast__content {
  flex: 1;
}

.toast__title {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-1);
}

.toast__message {
  font-size: var(--fs-xs);
  color: var(--color-text-secondary);
}

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

/* ================================================
   WHATSAPP FLOATING BUTTON
   ================================================ */
.whatsapp-float {
  position: fixed;
  bottom: var(--space-8);
  right: var(--space-8);
  z-index: var(--z-sticky);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-whatsapp);
  border-radius: var(--radius-full);
  color: #fff;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all var(--transition-base);
  animation: float 3s ease-in-out infinite;
}

.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
  color: #fff;
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
}

/* Pulse ring */
.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: var(--radius-full);
  border: 2px solid var(--color-whatsapp);
  opacity: 0;
  animation: pulseGlow 2s ease-in-out infinite;
}

/* ================================================
   MODAL RESPONSIVE
   ================================================ */
@media (max-width: 768px) {
  .modal {
    max-width: 100%;
    max-height: 100vh;
    border-radius: 0;
    margin: 0;
  }

  .modal-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .modal__content {
    grid-template-columns: 1fr;
  }

  .modal__image-section {
    aspect-ratio: 16 / 10;
    max-height: 300px;
  }

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

  .cart-panel {
    max-width: 100%;
  }

  .toast-container {
    top: auto;
    bottom: var(--space-4);
    right: var(--space-4);
    left: var(--space-4);
  }

  .toast {
    min-width: auto;
    max-width: 100%;
  }

  .whatsapp-float {
    bottom: var(--space-5);
    right: var(--space-5);
    width: 54px;
    height: 54px;
  }

  .whatsapp-float svg {
    width: 26px;
    height: 26px;
  }
}

@media (max-width: 480px) {
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-controls {
    width: 100%;
  }

  .filter-select {
    width: 100%;
  }

  .modal--checkout .modal__content {
    padding: var(--space-5);
  }
}
