/**
 * MegaPrice CPC Comparator - Components Stylesheet
 * Version: 1.0.0
 * 
 * Contents:
 * 1. Product Card - Grid View
 * 2. Product Card - List View
 * 3. TOP Badges
 * 4. Single Product
 * 5. Offers Table
 * 6. Subcategories Grid
 * 7. Reviews
 * 8. Related Products
 * 9. Footer
 * 10. Modals & Overlays
 * 11. Scroll to Top
 */

/* =============================================================================
   1. PRODUCT CARD - GRID VIEW
   ============================================================================= */
.mp-product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--mp-bg-white);
  border-radius: var(--mp-radius-2xl);
  box-shadow: var(--mp-shadow-sm);
  overflow: hidden;
  transition: all var(--mp-transition-base);
}

.mp-product-card:hover {
  box-shadow: var(--mp-shadow-xl);
  transform: translateY(-4px);
}

/* TOP Badge */
.mp-product-card__top-badge {
  position: absolute;
  top: var(--mp-space-3);
  left: var(--mp-space-3);
  z-index: 10;
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 var(--mp-space-3);
  background: linear-gradient(135deg, var(--mp-primary) 0%, var(--mp-primary-dark) 100%);
  color: var(--mp-text-inverse);
  border-radius: var(--mp-radius-full);
  font-weight: 700;
  font-size: var(--mp-font-size-xs);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mp-product-card__top-badge span {
  display: inline-block;
  margin-left: var(--mp-space-2);
  padding: 2px var(--mp-space-2);
  background: rgba(255, 255, 255, 0.25);
  border-radius: var(--mp-radius-full);
  font-weight: 800;
  font-size: 11px;
}

/* Discount Badge */
.mp-product-card__discount {
  position: absolute;
  top: var(--mp-space-3);
  right: var(--mp-space-3);
  z-index: 10;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 28px;
  padding: 0 var(--mp-space-2);
  background: linear-gradient(135deg, var(--mp-danger) 0%, #b91c1c 100%);
  color: var(--mp-text-inverse);
  border-radius: var(--mp-radius-full);
  font-weight: 700;
  font-size: var(--mp-font-size-xs);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
}

/* Sale Flash Badge */
.mp-product-card__flash-sale {
  position: absolute;
  top: var(--mp-space-3);
  right: var(--mp-space-3);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--mp-space-2) var(--mp-space-3);
  background: var(--mp-secondary);
  color: var(--mp-text-inverse);
  border-radius: var(--mp-radius-xl);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

.mp-product-card__flash-sale-label {
  font-size: 9px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
  opacity: 0.9;
}

.mp-product-card__flash-sale-percent {
  font-size: var(--mp-font-size-lg);
  font-weight: 800;
  line-height: 1;
}

/* Product Image */
.mp-product-card__image {
  position: relative;
  aspect-ratio: 1;
  padding: var(--mp-space-4);
  background: var(--mp-bg-white);
  overflow: hidden;
}

.mp-product-card__image-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.mp-product-card__image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform var(--mp-transition-slow);
}

.mp-product-card:hover .mp-product-card__image img {
  transform: scale(1.08);
}

/* Quick Actions */
.mp-product-card__quick-actions {
  position: absolute;
  bottom: var(--mp-space-3);
  right: var(--mp-space-3);
  display: flex;
  flex-direction: column;
  gap: var(--mp-space-2);
  opacity: 0;
  transform: translateX(10px);
  transition: all var(--mp-transition-base);
}

.mp-product-card:hover .mp-product-card__quick-actions {
  opacity: 1;
  transform: translateX(0);
}

.mp-product-card__quick-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--mp-bg-white);
  border-radius: var(--mp-radius-full);
  box-shadow: var(--mp-shadow-lg);
  color: var(--mp-text-secondary);
  transition: all var(--mp-transition-fast);
}

.mp-product-card__quick-btn:hover {
  background: var(--mp-primary);
  color: var(--mp-text-inverse);
  transform: scale(1.1);
}

.mp-product-card__quick-btn.is-active {
  background: var(--mp-danger);
  color: var(--mp-text-inverse);
}

.mp-product-card__quick-btn svg {
  width: 18px;
  height: 18px;
}

/* Product Content */
.mp-product-card__content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--mp-space-4);
  padding-top: var(--mp-space-2);
}

.mp-product-card__brand {
  font-size: var(--mp-font-size-xs);
  font-weight: 600;
  color: var(--mp-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--mp-space-1);
}

.mp-product-card__title {
  font-size: var(--mp-font-size-base);
  font-weight: 600;
  color: var(--mp-text-primary);
  line-height: 1.4;
  margin-bottom: var(--mp-space-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
}

.mp-product-card__title a {
  color: inherit;
  transition: color var(--mp-transition-fast);
}

.mp-product-card__title a:hover {
  color: var(--mp-primary);
}

/* Rating Row */
.mp-product-card__rating {
  display: flex;
  align-items: center;
  gap: var(--mp-space-2);
  margin-bottom: var(--mp-space-2);
}

.mp-product-card__stars {
  display: flex;
  gap: 1px;
}

.mp-product-card__stars svg {
  width: 14px;
  height: 14px;
}

.mp-product-card__stars svg.filled {
  color: var(--mp-secondary);
}

.mp-product-card__stars svg.half {
  color: var(--mp-secondary);
}

.mp-product-card__stars svg.empty {
  color: var(--mp-border-light);
}

.mp-product-card__rating-percent {
  font-size: var(--mp-font-size-xs);
  font-weight: 700;
  color: var(--mp-primary);
  background: var(--mp-primary-light);
  padding: 2px 6px;
  border-radius: var(--mp-radius-md);
}

.mp-product-card__reviews {
  font-size: var(--mp-font-size-xs);
  color: var(--mp-text-muted);
}

/* Specs Preview */
.mp-product-card__specs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--mp-space-1);
  margin-bottom: var(--mp-space-3);
  font-size: var(--mp-font-size-xs);
  color: var(--mp-text-muted);
  line-height: 1.4;
}

.mp-product-card__spec {
  display: inline;
}

.mp-product-card__spec::after {
  content: " • ";
  color: var(--mp-border-medium);
}

.mp-product-card__spec:last-child::after {
  display: none;
}

/* Description (hidden in grid, visible in list) */
.mp-product-card__desc {
  display: none;
  font-size: var(--mp-font-size-sm);
  color: var(--mp-text-secondary);
  line-height: 1.6;
  margin-bottom: var(--mp-space-3);
}

/* Price Section */
.mp-product-card__price-section {
  margin-top: auto;
  padding-top: var(--mp-space-3);
  border-top: 1px solid var(--mp-border-light);
}

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

.mp-product-card__price-label {
  font-size: var(--mp-font-size-xs);
  color: var(--mp-text-muted);
  width: 100%;
}

.mp-product-card__price {
  font-size: var(--mp-font-size-2xl);
  font-weight: 800;
  color: var(--mp-primary);
  line-height: 1;
}

.mp-product-card__price-old {
  font-size: var(--mp-font-size-sm);
  color: var(--mp-text-muted);
  text-decoration: line-through;
}

.mp-product-card__stores {
  font-size: var(--mp-font-size-xs);
  color: var(--mp-text-muted);
  margin-bottom: var(--mp-space-3);
}

.mp-product-card__stores a {
  color: var(--mp-accent);
  font-weight: 500;
}

.mp-product-card__stores a:hover {
  text-decoration: underline;
}

/* Compare Button */
.mp-product-card__compare-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--mp-space-2);
  width: 100%;
  padding: var(--mp-space-3);
  background: var(--mp-accent);
  color: var(--mp-text-inverse);
  border-radius: var(--mp-radius-xl);
  font-weight: 600;
  font-size: var(--mp-font-size-sm);
  transition: all var(--mp-transition-fast);
}

.mp-product-card__compare-btn:hover {
  background: var(--mp-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
}

.mp-product-card__compare-btn svg {
  width: 18px;
  height: 18px;
}

/* =============================================================================
   2. PRODUCT CARD - LIST VIEW
   ============================================================================= */
.mp-products-list .mp-product-card {
  flex-direction: row;
  align-items: stretch;
}

.mp-products-list .mp-product-card__image {
  width: 220px;
  flex-shrink: 0;
  aspect-ratio: auto;
  padding: var(--mp-space-5);
}

.mp-products-list .mp-product-card__content {
  flex: 1;
  padding: var(--mp-space-5);
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr auto;
  gap: var(--mp-space-2) var(--mp-space-6);
}

.mp-products-list .mp-product-card__brand {
  grid-column: 1;
  grid-row: 1;
}

.mp-products-list .mp-product-card__title {
  grid-column: 1;
  grid-row: 2;
  font-size: var(--mp-font-size-lg);
  -webkit-line-clamp: 1;
  min-height: auto;
  align-self: start;
}

.mp-products-list .mp-product-card__rating {
  grid-column: 1;
  grid-row: 3;
  margin-bottom: 0;
}

.mp-products-list .mp-product-card__desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  grid-column: 1;
  grid-row: 4;
}

.mp-products-list .mp-product-card__price-section {
  grid-column: 2;
  grid-row: 1 / -1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  border-top: none;
  padding-top: 0;
  padding-left: var(--mp-space-6);
  border-left: 1px solid var(--mp-border-light);
  min-width: 200px;
}

.mp-products-list .mp-product-card__price-row {
  justify-content: flex-end;
}

.mp-products-list .mp-product-card__stores {
  text-align: right;
}

.mp-products-list .mp-product-card__compare-btn {
  width: auto;
  padding: var(--mp-space-3) var(--mp-space-6);
}

@media (max-width: 992px) {
  .mp-products-list .mp-product-card {
    flex-direction: column;
  }
  
  .mp-products-list .mp-product-card__image {
    width: 100%;
    aspect-ratio: 16/9;
  }
  
  .mp-products-list .mp-product-card__content {
    display: flex;
    flex-direction: column;
  }
  
  .mp-products-list .mp-product-card__price-section {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-left: none;
    border-top: 1px solid var(--mp-border-light);
    padding-left: 0;
    padding-top: var(--mp-space-3);
    min-width: auto;
  }
}

/* =============================================================================
   3. TOP BADGES SYSTEM
   ============================================================================= */
/* Badge Variants */
.mp-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--mp-space-1) var(--mp-space-3);
  border-radius: var(--mp-radius-full);
  font-size: var(--mp-font-size-xs);
  font-weight: 600;
}

.mp-badge--primary {
  background: var(--mp-primary-light);
  color: var(--mp-primary);
}

.mp-badge--secondary {
  background: var(--mp-secondary-light);
  color: var(--mp-secondary-hover);
}

.mp-badge--accent {
  background: var(--mp-accent-light);
  color: var(--mp-accent);
}

.mp-badge--danger {
  background: var(--mp-danger-light);
  color: var(--mp-danger);
}

.mp-badge--success {
  background: var(--mp-primary-light);
  color: var(--mp-primary);
}

.mp-badge--dark {
  background: var(--mp-bg-dark);
  color: var(--mp-text-inverse);
}

/* TOP Position Badge (in product listing) */
.mp-top-position {
  position: absolute;
  top: var(--mp-space-3);
  left: var(--mp-space-3);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: var(--mp-space-1);
  padding: 0 var(--mp-space-3);
  height: 28px;
  background: linear-gradient(135deg, var(--mp-primary) 0%, #059669 100%);
  color: var(--mp-text-inverse);
  border-radius: var(--mp-radius-full);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(22, 163, 74, 0.4);
}

.mp-top-position__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: var(--mp-radius-full);
  font-size: 12px;
  font-weight: 800;
}

/* TOP 1 Special Styling */
.mp-top-position--1 {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.mp-top-position--1 .mp-top-position__number {
  background: rgba(255, 255, 255, 0.3);
}

/* TOP 2 Styling */
.mp-top-position--2 {
  background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
  box-shadow: 0 4px 15px rgba(100, 116, 139, 0.4);
}

/* TOP 3 Styling */
.mp-top-position--3 {
  background: linear-gradient(135deg, #cd7f32 0%, #a0522d 100%);
  box-shadow: 0 4px 15px rgba(205, 127, 50, 0.4);
}

/* =============================================================================
   4. SINGLE PRODUCT PAGE
   ============================================================================= */
.mp-single-product {
  padding: var(--mp-space-6) 0;
}

.mp-single-product__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--mp-space-8);
  align-items: start;
}

@media (max-width: 992px) {
  .mp-single-product__layout {
    grid-template-columns: 1fr;
    gap: var(--mp-space-6);
  }
}

/* Product Gallery */
.mp-product-gallery {
  position: sticky;
  top: calc(var(--mp-header-height) + var(--mp-space-6));
}

.mp-product-gallery__main {
  position: relative;
  aspect-ratio: 1;
  background: var(--mp-bg-white);
  border-radius: var(--mp-radius-2xl);
  overflow: hidden;
  margin-bottom: var(--mp-space-4);
  box-shadow: var(--mp-shadow-sm);
}

.mp-product-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: var(--mp-space-8);
}

.mp-product-gallery__zoom {
  position: absolute;
  top: var(--mp-space-4);
  right: var(--mp-space-4);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mp-bg-white);
  border-radius: var(--mp-radius-full);
  box-shadow: var(--mp-shadow-lg);
  color: var(--mp-text-secondary);
  cursor: pointer;
  transition: all var(--mp-transition-fast);
}

.mp-product-gallery__zoom:hover {
  background: var(--mp-primary);
  color: var(--mp-text-inverse);
}

.mp-product-gallery__zoom svg {
  width: 22px;
  height: 22px;
}

.mp-product-gallery__badges {
  position: absolute;
  top: var(--mp-space-4);
  left: var(--mp-space-4);
  display: flex;
  flex-direction: column;
  gap: var(--mp-space-2);
}

.mp-product-gallery__thumbs {
  display: flex;
  gap: var(--mp-space-3);
  overflow-x: auto;
  padding-bottom: var(--mp-space-2);
}

.mp-product-gallery__thumb {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  padding: var(--mp-space-2);
  background: var(--mp-bg-white);
  border: 2px solid var(--mp-border-light);
  border-radius: var(--mp-radius-xl);
  cursor: pointer;
  transition: border-color var(--mp-transition-fast);
}

.mp-product-gallery__thumb:hover,
.mp-product-gallery__thumb.is-active {
  border-color: var(--mp-primary);
}

.mp-product-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Product Info */
.mp-product-info__title {
  font-size: var(--mp-font-size-3xl);
  font-weight: 700;
  color: var(--mp-text-primary);
  line-height: 1.3;
  margin-bottom: var(--mp-space-4);
}

.mp-product-info__rating {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--mp-space-3);
  margin-bottom: var(--mp-space-4);
  padding-bottom: var(--mp-space-4);
  border-bottom: 1px solid var(--mp-border-light);
}

.mp-product-info__stars {
  display: flex;
  gap: 2px;
  color: var(--mp-secondary);
}

.mp-product-info__stars svg {
  width: 22px;
  height: 22px;
}

.mp-product-info__rating-score {
  font-weight: 700;
  color: var(--mp-primary);
  background: var(--mp-primary-light);
  padding: var(--mp-space-1) var(--mp-space-3);
  border-radius: var(--mp-radius-lg);
}

.mp-product-info__reviews-link {
  font-size: var(--mp-font-size-sm);
  color: var(--mp-accent);
}

.mp-product-info__reviews-link:hover {
  text-decoration: underline;
}

/* Price Box */
.mp-price-box {
  background: var(--mp-bg-white);
  border-radius: var(--mp-radius-2xl);
  padding: var(--mp-space-6);
  margin-bottom: var(--mp-space-4);
  box-shadow: var(--mp-shadow-md);
  border: 1px solid var(--mp-border-light);
}

.mp-price-box__label {
  font-size: var(--mp-font-size-sm);
  color: var(--mp-text-muted);
  margin-bottom: var(--mp-space-2);
}

.mp-price-box__row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--mp-space-3);
  margin-bottom: var(--mp-space-3);
}

.mp-price-box__current {
  font-size: var(--mp-font-size-5xl);
  font-weight: 800;
  color: var(--mp-primary);
  line-height: 1;
}

.mp-price-box__old {
  font-size: var(--mp-font-size-xl);
  color: var(--mp-text-muted);
  text-decoration: line-through;
}

.mp-price-box__discount {
  display: inline-flex;
  align-items: center;
  padding: var(--mp-space-1) var(--mp-space-3);
  background: var(--mp-danger);
  color: var(--mp-text-inverse);
  border-radius: var(--mp-radius-full);
  font-size: var(--mp-font-size-sm);
  font-weight: 700;
}

.mp-price-box__availability {
  display: flex;
  align-items: center;
  gap: var(--mp-space-2);
  font-size: var(--mp-font-size-sm);
  font-weight: 500;
}

.mp-price-box__availability.in-stock {
  color: var(--mp-primary);
}

.mp-price-box__availability.out-of-stock {
  color: var(--mp-danger);
}

.mp-price-box__availability svg {
  width: 20px;
  height: 20px;
}

/* Short Description */
.mp-product-info__short-desc {
  font-size: var(--mp-font-size-base);
  color: var(--mp-text-secondary);
  line-height: 1.7;
  margin-bottom: var(--mp-space-5);
}

/* Quick Info Grid */
.mp-quick-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--mp-space-3);
  margin-bottom: var(--mp-space-5);
  padding: var(--mp-space-4);
  background: var(--mp-bg-gray);
  border-radius: var(--mp-radius-xl);
}

.mp-quick-info__item {
  display: flex;
  align-items: center;
  gap: var(--mp-space-2);
  font-size: var(--mp-font-size-sm);
}

.mp-quick-info__item svg {
  width: 20px;
  height: 20px;
  color: var(--mp-primary);
  flex-shrink: 0;
}

.mp-quick-info__label {
  color: var(--mp-text-muted);
}

.mp-quick-info__value {
  color: var(--mp-text-primary);
  font-weight: 600;
}

/* Product Actions */
.mp-product-actions {
  display: flex;
  flex-direction: column;
  gap: var(--mp-space-4);
}

.mp-product-actions__primary {
  display: flex;
  gap: var(--mp-space-3);
}

.mp-btn-top-offer {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--mp-space-2);
  padding: var(--mp-space-5);
  background: linear-gradient(135deg, var(--mp-primary) 0%, var(--mp-primary-dark) 100%);
  color: var(--mp-text-inverse);
  border-radius: var(--mp-radius-2xl);
  font-weight: 700;
  font-size: var(--mp-font-size-lg);
  transition: all var(--mp-transition-fast);
  box-shadow: 0 4px 15px rgba(22, 163, 74, 0.3);
}

.mp-btn-top-offer:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(22, 163, 74, 0.4);
}

.mp-btn-top-offer svg {
  width: 24px;
  height: 24px;
}

.mp-btn-add-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: var(--mp-accent);
  color: var(--mp-text-inverse);
  border-radius: var(--mp-radius-2xl);
  transition: all var(--mp-transition-fast);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.mp-btn-add-cart:hover {
  background: var(--mp-accent-hover);
  transform: translateY(-2px);
}

.mp-btn-add-cart svg {
  width: 26px;
  height: 26px;
}

.mp-product-actions__secondary {
  display: flex;
  gap: var(--mp-space-3);
}

.mp-btn-secondary {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--mp-space-2);
  padding: var(--mp-space-3);
  background: var(--mp-bg-white);
  border: 1px solid var(--mp-border-light);
  color: var(--mp-text-secondary);
  border-radius: var(--mp-radius-xl);
  font-size: var(--mp-font-size-sm);
  font-weight: 500;
  transition: all var(--mp-transition-fast);
}

.mp-btn-secondary:hover {
  border-color: var(--mp-primary);
  color: var(--mp-primary);
  background: var(--mp-primary-light);
}

.mp-btn-secondary svg {
  width: 18px;
  height: 18px;
}

/* =============================================================================
   5. OFFERS TABLE ("Kde kúpiť" Tab)
   ============================================================================= */
.mp-offers-section {
  margin-top: var(--mp-space-10);
}

.mp-offers-tabs {
  display: flex;
  gap: var(--mp-space-1);
  border-bottom: 2px solid var(--mp-border-light);
  margin-bottom: var(--mp-space-6);
  overflow-x: auto;
}

.mp-offers-tab {
  padding: var(--mp-space-4) var(--mp-space-6);
  font-weight: 600;
  color: var(--mp-text-muted);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all var(--mp-transition-fast);
  white-space: nowrap;
  background: none;
}

.mp-offers-tab:hover {
  color: var(--mp-text-secondary);
}

.mp-offers-tab.is-active {
  color: var(--mp-text-primary);
  border-bottom-color: var(--mp-primary);
}

.mp-offers-tab__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  margin-left: var(--mp-space-2);
  background: var(--mp-bg-gray);
  border-radius: var(--mp-radius-full);
  font-size: var(--mp-font-size-xs);
  font-weight: 700;
}

.mp-offers-tab.is-active .mp-offers-tab__count {
  background: var(--mp-primary-light);
  color: var(--mp-primary);
}

/* Filter Pills */
.mp-offers-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--mp-space-2);
  margin-bottom: var(--mp-space-5);
}

.mp-offers-filter-pill {
  display: flex;
  align-items: center;
  gap: var(--mp-space-2);
  padding: var(--mp-space-2) var(--mp-space-4);
  background: var(--mp-bg-white);
  border: 1px solid var(--mp-border-light);
  border-radius: var(--mp-radius-full);
  font-size: var(--mp-font-size-sm);
  color: var(--mp-text-secondary);
  cursor: pointer;
  transition: all var(--mp-transition-fast);
}

.mp-offers-filter-pill:hover {
  border-color: var(--mp-primary);
  color: var(--mp-primary);
}

.mp-offers-filter-pill.is-active {
  background: var(--mp-primary);
  border-color: var(--mp-primary);
  color: var(--mp-text-inverse);
}

/* Offers Table Header */
.mp-offers-table-header {
  display: flex;
  align-items: center;
  padding: var(--mp-space-3) var(--mp-space-4);
  background: linear-gradient(135deg, var(--mp-primary-light) 0%, #bbf7d0 100%);
  border-radius: var(--mp-radius-xl) var(--mp-radius-xl) 0 0;
  font-size: var(--mp-font-size-sm);
  font-weight: 600;
  color: var(--mp-primary-dark);
}

.mp-offers-table-header svg {
  width: 20px;
  height: 20px;
  margin-right: var(--mp-space-2);
}

/* Offers Table */
.mp-offers-table {
  background: var(--mp-bg-white);
  border-radius: 0 0 var(--mp-radius-xl) var(--mp-radius-xl);
  overflow: hidden;
  box-shadow: var(--mp-shadow-md);
}

.mp-offers-table__head {
  display: grid;
  grid-template-columns: 200px 140px 150px 100px 130px 1fr;
  gap: var(--mp-space-4);
  padding: var(--mp-space-3) var(--mp-space-4);
  background: var(--mp-bg-gray);
  font-size: var(--mp-font-size-xs);
  font-weight: 600;
  color: var(--mp-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mp-offers-table__row {
  display: grid;
  grid-template-columns: 200px 140px 150px 100px 130px 1fr;
  gap: var(--mp-space-4);
  align-items: center;
  padding: var(--mp-space-4);
  border-bottom: 1px solid var(--mp-border-light);
  transition: background var(--mp-transition-fast);
}

.mp-offers-table__row:hover {
  background: var(--mp-bg-gray);
}

.mp-offers-table__row:last-child {
  border-bottom: none;
}

.mp-offers-table__row.is-featured {
  background: linear-gradient(135deg, var(--mp-primary-light) 0%, rgba(220, 252, 231, 0.5) 100%);
}

.mp-offers-table__row.is-featured:hover {
  background: linear-gradient(135deg, var(--mp-primary-light) 0%, rgba(187, 247, 208, 0.7) 100%);
}

@media (max-width: 1200px) {
  .mp-offers-table__head {
    display: none;
  }
  
  .mp-offers-table__row {
    grid-template-columns: 1fr 1fr;
    gap: var(--mp-space-3);
  }
  
  .mp-offer__vendor {
    grid-column: 1 / -1;
  }
  
  .mp-offer__action {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .mp-offers-table__row {
    grid-template-columns: 1fr;
  }
}

/* Vendor Cell */
.mp-offer__vendor {
  display: flex;
  align-items: center;
  gap: var(--mp-space-3);
}

.mp-offer__vendor-logo {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mp-bg-gray);
  border-radius: var(--mp-radius-lg);
  overflow: hidden;
  flex-shrink: 0;
}

.mp-offer__vendor-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.mp-offer__vendor-info {
  min-width: 0;
}

.mp-offer__vendor-name {
  font-weight: 600;
  color: var(--mp-text-primary);
  font-size: var(--mp-font-size-sm);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mp-offer__vendor-featured {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  margin-top: 4px;
  background: var(--mp-secondary-light);
  color: var(--mp-secondary-hover);
  border-radius: var(--mp-radius-full);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mp-offer__vendor-featured svg {
  width: 12px;
  height: 12px;
}

/* Rating Cell */
.mp-offer__rating {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mp-offer__rating-stars {
  display: flex;
  color: var(--mp-secondary);
}

.mp-offer__rating-stars svg {
  width: 14px;
  height: 14px;
}

.mp-offer__rating-text {
  font-size: var(--mp-font-size-xs);
  color: var(--mp-text-muted);
}

.mp-offer__rating-none {
  font-size: var(--mp-font-size-xs);
  color: var(--mp-text-muted);
  font-style: italic;
}

/* Availability Cell */
.mp-offer__availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: var(--mp-space-1) var(--mp-space-3);
  border-radius: var(--mp-radius-full);
  font-size: var(--mp-font-size-xs);
  font-weight: 600;
}

.mp-offer__availability-badge.in-stock {
  background: var(--mp-primary-light);
  color: var(--mp-primary-dark);
}

.mp-offer__availability-badge.limited {
  background: var(--mp-secondary-light);
  color: var(--mp-secondary-hover);
}

.mp-offer__availability-badge.preorder {
  background: var(--mp-accent-light);
  color: var(--mp-accent);
}

.mp-offer__availability-badge.out-of-stock {
  background: var(--mp-danger-light);
  color: var(--mp-danger);
}

.mp-offer__availability-variant {
  display: block;
  font-size: var(--mp-font-size-xs);
  color: var(--mp-text-muted);
  margin-top: 4px;
}

/* Shipping Cell */
.mp-offer__shipping {
  display: flex;
  align-items: center;
  gap: var(--mp-space-2);
  font-size: var(--mp-font-size-sm);
  color: var(--mp-text-secondary);
}

.mp-offer__shipping svg {
  width: 18px;
  height: 18px;
  color: var(--mp-text-muted);
  flex-shrink: 0;
}

.mp-offer__shipping-free {
  color: var(--mp-primary);
  font-weight: 600;
}

/* Price Cell */
.mp-offer__price {
  font-size: var(--mp-font-size-xl);
  font-weight: 800;
  color: var(--mp-text-primary);
}

.mp-offer__price-old {
  display: block;
  font-size: var(--mp-font-size-sm);
  font-weight: normal;
  color: var(--mp-text-muted);
  text-decoration: line-through;
}

/* Action Cell */
.mp-offer__action {
  display: flex;
  flex-direction: column;
  gap: var(--mp-space-2);
}

.mp-btn-go-shop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--mp-space-2);
  padding: var(--mp-space-3) var(--mp-space-5);
  background: var(--mp-primary);
  color: var(--mp-text-inverse);
  border-radius: var(--mp-radius-xl);
  font-weight: 600;
  font-size: var(--mp-font-size-sm);
  transition: all var(--mp-transition-fast);
  white-space: nowrap;
}

.mp-btn-go-shop:hover {
  background: var(--mp-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

.mp-btn-go-shop svg {
  width: 16px;
  height: 16px;
}

.mp-btn-megabuy {
  background: linear-gradient(135deg, var(--mp-accent) 0%, #e55a2b 100%);
}

.mp-btn-megabuy:hover {
  background: linear-gradient(135deg, var(--mp-accent-hover) 0%, #1e40af 100%);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* =============================================================================
   6. SUBCATEGORIES GRID
   ============================================================================= */
.mp-subcategories {
  margin-bottom: var(--mp-space-8);
}

.mp-subcategories__title {
  font-size: var(--mp-font-size-2xl);
  font-weight: 700;
  margin-bottom: var(--mp-space-5);
  color: var(--mp-text-primary);
}

.mp-subcategories__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--mp-space-4);
}

@media (max-width: 1200px) {
  .mp-subcategories__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 992px) {
  .mp-subcategories__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .mp-subcategories__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .mp-subcategories__grid {
    grid-template-columns: 1fr;
  }
}

.mp-subcategory-card {
  display: flex;
  flex-direction: column;
  background: var(--mp-bg-white);
  border-radius: var(--mp-radius-2xl);
  padding: var(--mp-space-4);
  box-shadow: var(--mp-shadow-sm);
  transition: all var(--mp-transition-base);
}

.mp-subcategory-card:hover {
  box-shadow: var(--mp-shadow-lg);
  transform: translateY(-4px);
}

.mp-subcategory-card__header {
  display: flex;
  align-items: center;
  gap: var(--mp-space-3);
  margin-bottom: var(--mp-space-3);
}

.mp-subcategory-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--mp-radius-xl);
  background: var(--mp-bg-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.mp-subcategory-card__icon img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

.mp-subcategory-card__name {
  font-weight: 600;
  color: var(--mp-text-primary);
  font-size: var(--mp-font-size-sm);
  flex: 1;
  line-height: 1.3;
}

.mp-subcategory-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.mp-subcategory-card__tag {
  font-size: var(--mp-font-size-xs);
  color: var(--mp-text-muted);
  padding: var(--mp-space-1) 0;
  line-height: 1.4;
}

.mp-subcategory-card__tag::before {
  content: "•";
  margin-right: var(--mp-space-2);
  color: var(--mp-primary);
  opacity: 0.6;
}

.mp-subcategory-card__tag a {
  color: inherit;
  transition: color var(--mp-transition-fast);
}

.mp-subcategory-card__tag a:hover {
  color: var(--mp-primary);
}

/* =============================================================================
   7. REVIEWS
   ============================================================================= */
.mp-reviews__summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--mp-space-8);
  margin-bottom: var(--mp-space-6);
  padding-bottom: var(--mp-space-6);
  border-bottom: 1px solid var(--mp-border-light);
}

@media (max-width: 768px) {
  .mp-reviews__summary {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.mp-reviews__score {
  text-align: center;
  padding: var(--mp-space-4);
}

.mp-reviews__score-value {
  font-size: var(--mp-font-size-5xl);
  font-weight: 800;
  color: var(--mp-text-primary);
  line-height: 1;
}

.mp-reviews__score-stars {
  display: flex;
  justify-content: center;
  gap: 2px;
  color: var(--mp-secondary);
  margin: var(--mp-space-3) 0;
}

.mp-reviews__score-stars svg {
  width: 28px;
  height: 28px;
}

.mp-reviews__score-count {
  font-size: var(--mp-font-size-sm);
  color: var(--mp-text-muted);
}

.mp-reviews__bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--mp-space-2);
}

.mp-reviews__bar-row {
  display: flex;
  align-items: center;
  gap: var(--mp-space-3);
}

.mp-reviews__bar-label {
  width: 70px;
  font-size: var(--mp-font-size-sm);
  color: var(--mp-text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.mp-reviews__bar-label svg {
  width: 14px;
  height: 14px;
  color: var(--mp-secondary);
}

.mp-reviews__bar {
  flex: 1;
  height: 10px;
  background: var(--mp-bg-gray);
  border-radius: var(--mp-radius-full);
  overflow: hidden;
}

.mp-reviews__bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--mp-secondary) 0%, #fbbf24 100%);
  border-radius: var(--mp-radius-full);
  transition: width var(--mp-transition-slow);
}

.mp-reviews__bar-count {
  width: 40px;
  font-size: var(--mp-font-size-sm);
  color: var(--mp-text-muted);
  text-align: right;
}

.mp-reviews__write-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--mp-space-2);
  padding: var(--mp-space-3) var(--mp-space-6);
  background: var(--mp-accent);
  color: var(--mp-text-inverse);
  border-radius: var(--mp-radius-xl);
  font-weight: 600;
  margin-bottom: var(--mp-space-6);
  transition: all var(--mp-transition-fast);
}

.mp-reviews__write-btn:hover {
  background: var(--mp-accent-hover);
  transform: translateY(-2px);
}

.mp-reviews__write-btn svg {
  width: 20px;
  height: 20px;
}

/* Review Item */
.mp-review {
  padding: var(--mp-space-5) 0;
  border-bottom: 1px solid var(--mp-border-light);
}

.mp-review:last-child {
  border-bottom: none;
}

.mp-review__header {
  display: flex;
  align-items: center;
  gap: var(--mp-space-3);
  margin-bottom: var(--mp-space-3);
}

.mp-review__avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--mp-radius-full);
  background: linear-gradient(135deg, var(--mp-primary-light) 0%, var(--mp-accent-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--mp-primary);
  font-size: var(--mp-font-size-lg);
}

.mp-review__meta {
  flex: 1;
}

.mp-review__author {
  font-weight: 600;
  color: var(--mp-text-primary);
  margin-bottom: 2px;
}

.mp-review__date {
  font-size: var(--mp-font-size-sm);
  color: var(--mp-text-muted);
}

.mp-review__rating {
  display: flex;
  gap: 2px;
  color: var(--mp-secondary);
}

.mp-review__rating svg {
  width: 18px;
  height: 18px;
}

.mp-review__content {
  color: var(--mp-text-secondary);
  line-height: 1.7;
  margin-bottom: var(--mp-space-3);
}

.mp-review__helpful {
  display: flex;
  align-items: center;
  gap: var(--mp-space-4);
  font-size: var(--mp-font-size-sm);
  color: var(--mp-text-muted);
}

.mp-review__helpful-text {
  margin-right: var(--mp-space-2);
}

.mp-review__helpful-btn {
  display: flex;
  align-items: center;
  gap: var(--mp-space-1);
  padding: var(--mp-space-1) var(--mp-space-2);
  border-radius: var(--mp-radius-md);
  color: var(--mp-text-secondary);
  transition: all var(--mp-transition-fast);
}

.mp-review__helpful-btn:hover {
  background: var(--mp-bg-gray);
  color: var(--mp-primary);
}

.mp-review__helpful-btn svg {
  width: 16px;
  height: 16px;
}

/* =============================================================================
   8. RELATED PRODUCTS
   ============================================================================= */
.mp-related-products {
  padding: var(--mp-space-10) 0;
  background: var(--mp-bg-gray);
}

.mp-related-products__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--mp-space-6);
}

.mp-related-products__title {
  font-size: var(--mp-font-size-2xl);
  font-weight: 700;
}

.mp-related-products__nav {
  display: flex;
  gap: var(--mp-space-2);
}

.mp-related-products__nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--mp-bg-white);
  border-radius: var(--mp-radius-full);
  color: var(--mp-text-secondary);
  box-shadow: var(--mp-shadow-sm);
  transition: all var(--mp-transition-fast);
}

.mp-related-products__nav-btn:hover {
  background: var(--mp-primary);
  color: var(--mp-text-inverse);
}

.mp-related-products__nav-btn svg {
  width: 20px;
  height: 20px;
}

/* =============================================================================
   9. FOOTER
   ============================================================================= */
.mp-footer {
  background: var(--mp-bg-dark);
  color: var(--mp-text-inverse);
  padding: var(--mp-space-16) 0 var(--mp-space-8);
}

.mp-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: var(--mp-space-10);
  margin-bottom: var(--mp-space-10);
}

@media (max-width: 992px) {
  .mp-footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .mp-footer__grid {
    grid-template-columns: 1fr;
  }
}

.mp-footer__logo {
  margin-bottom: var(--mp-space-4);
}

.mp-footer__logo img {
  height: 44px;
  width: auto;
}

.mp-footer__desc {
  font-size: var(--mp-font-size-sm);
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin-bottom: var(--mp-space-5);
}

.mp-footer__social {
  display: flex;
  gap: var(--mp-space-3);
}

.mp-footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--mp-radius-full);
  color: var(--mp-text-inverse);
  transition: all var(--mp-transition-fast);
}

.mp-footer__social-link:hover {
  background: var(--mp-primary);
  transform: translateY(-4px);
}

.mp-footer__social-link svg {
  width: 22px;
  height: 22px;
}

.mp-footer__title {
  font-size: var(--mp-font-size-lg);
  font-weight: 600;
  margin-bottom: var(--mp-space-4);
}

.mp-footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--mp-space-2);
}

.mp-footer__link {
  display: block;
  padding: var(--mp-space-2) 0;
  font-size: var(--mp-font-size-sm);
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--mp-transition-fast);
}

.mp-footer__link:hover {
  color: var(--mp-primary);
}

/* Newsletter */
.mp-footer__newsletter {
  margin-top: var(--mp-space-4);
}

.mp-footer__newsletter-form {
  display: flex;
  gap: var(--mp-space-2);
}

.mp-footer__newsletter-input {
  flex: 1;
  padding: var(--mp-space-3) var(--mp-space-4);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--mp-radius-xl);
  color: var(--mp-text-inverse);
  font-size: var(--mp-font-size-sm);
}

.mp-footer__newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.mp-footer__newsletter-btn {
  padding: var(--mp-space-3) var(--mp-space-5);
  background: var(--mp-primary);
  color: var(--mp-text-inverse);
  border-radius: var(--mp-radius-xl);
  font-weight: 600;
  font-size: var(--mp-font-size-sm);
  transition: background var(--mp-transition-fast);
}

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

/* Footer Bottom */
.mp-footer__bottom {
  padding-top: var(--mp-space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--mp-space-4);
  font-size: var(--mp-font-size-sm);
  color: rgba(255, 255, 255, 0.5);
}

.mp-footer__legal {
  display: flex;
  gap: var(--mp-space-4);
}

.mp-footer__legal a {
  color: inherit;
  transition: color var(--mp-transition-fast);
}

.mp-footer__legal a:hover {
  color: var(--mp-text-inverse);
}

/* =============================================================================
   10. MODALS & OVERLAYS
   ============================================================================= */
.mp-modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--mp-bg-overlay);
  z-index: var(--mp-z-modal-backdrop);
  opacity: 0;
  visibility: hidden;
  transition: all var(--mp-transition-base);
}

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

.mp-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  background: var(--mp-bg-white);
  border-radius: var(--mp-radius-2xl);
  box-shadow: var(--mp-shadow-2xl);
  z-index: var(--mp-z-modal);
  max-width: 90vw;
  max-height: 90vh;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: all var(--mp-transition-base);
}

.mp-modal.is-active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

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

.mp-modal__title {
  font-size: var(--mp-font-size-xl);
  font-weight: 600;
}

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

.mp-modal__close:hover {
  background: var(--mp-bg-gray);
  color: var(--mp-text-primary);
}

.mp-modal__close svg {
  width: 24px;
  height: 24px;
}

.mp-modal__body {
  padding: var(--mp-space-5);
  overflow-y: auto;
  max-height: calc(90vh - 140px);
}

.mp-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: var(--mp-space-3);
  padding: var(--mp-space-5);
  border-top: 1px solid var(--mp-border-light);
}

/* =============================================================================
   11. SCROLL TO TOP
   ============================================================================= */
.mp-scroll-top {
  position: fixed;
  bottom: var(--mp-space-6);
  right: var(--mp-space-6);
  z-index: var(--mp-z-fixed);
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mp-primary);
  color: var(--mp-text-inverse);
  border-radius: var(--mp-radius-full);
  box-shadow: var(--mp-shadow-xl);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--mp-transition-base);
}

.mp-scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mp-scroll-top:hover {
  background: var(--mp-primary-hover);
  transform: translateY(-4px);
}

.mp-scroll-top svg {
  width: 26px;
  height: 26px;
}

/* =============================================================================
   12. ANIMATIONS
   ============================================================================= */
@keyframes mp-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes mp-spin {
  to { transform: rotate(360deg); }
}

@keyframes mp-fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes mp-slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mp-slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mp-scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes mp-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.mp-animate-pulse { animation: mp-pulse 2s ease-in-out infinite; }
.mp-animate-spin { animation: mp-spin 1s linear infinite; }
.mp-animate-fadeIn { animation: mp-fadeIn 0.3s ease; }
.mp-animate-slideUp { animation: mp-slideUp 0.4s ease; }
.mp-animate-slideDown { animation: mp-slideDown 0.4s ease; }
.mp-animate-scaleIn { animation: mp-scaleIn 0.3s ease; }
.mp-animate-bounce { animation: mp-bounce 1s ease infinite; }

/* Loading States */
.mp-skeleton {
  background: linear-gradient(90deg, var(--mp-bg-gray) 25%, var(--mp-bg-white) 50%, var(--mp-bg-gray) 75%);
  background-size: 200% 100%;
  animation: mp-pulse 1.5s ease-in-out infinite;
  border-radius: var(--mp-radius-md);
}

.mp-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid var(--mp-border-light);
  border-top-color: var(--mp-primary);
  border-radius: var(--mp-radius-full);
  animation: mp-spin 0.8s linear infinite;
}

/* =============================================================================
   13. UTILITIES
   ============================================================================= */
.mp-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mp-hidden { display: none !important; }
.mp-visible { display: block !important; }
.mp-invisible { visibility: hidden; }

.mp-text-center { text-align: center; }
.mp-text-left { text-align: left; }
.mp-text-right { text-align: right; }

.mp-flex { display: flex; }
.mp-flex-center { display: flex; align-items: center; justify-content: center; }
.mp-flex-between { display: flex; align-items: center; justify-content: space-between; }
.mp-flex-col { flex-direction: column; }
.mp-flex-wrap { flex-wrap: wrap; }

.mp-gap-1 { gap: var(--mp-space-1); }
.mp-gap-2 { gap: var(--mp-space-2); }
.mp-gap-3 { gap: var(--mp-space-3); }
.mp-gap-4 { gap: var(--mp-space-4); }
.mp-gap-6 { gap: var(--mp-space-6); }
.mp-gap-8 { gap: var(--mp-space-8); }

.mp-mt-0 { margin-top: 0; }
.mp-mt-2 { margin-top: var(--mp-space-2); }
.mp-mt-4 { margin-top: var(--mp-space-4); }
.mp-mt-6 { margin-top: var(--mp-space-6); }
.mp-mt-8 { margin-top: var(--mp-space-8); }

.mp-mb-0 { margin-bottom: 0; }
.mp-mb-2 { margin-bottom: var(--mp-space-2); }
.mp-mb-4 { margin-bottom: var(--mp-space-4); }
.mp-mb-6 { margin-bottom: var(--mp-space-6); }
.mp-mb-8 { margin-bottom: var(--mp-space-8); }

.mp-p-0 { padding: 0; }
.mp-p-2 { padding: var(--mp-space-2); }
.mp-p-4 { padding: var(--mp-space-4); }
.mp-p-6 { padding: var(--mp-space-6); }
.mp-p-8 { padding: var(--mp-space-8); }

.mp-py-4 { padding-top: var(--mp-space-4); padding-bottom: var(--mp-space-4); }
.mp-px-4 { padding-left: var(--mp-space-4); padding-right: var(--mp-space-4); }

.mp-rounded { border-radius: var(--mp-radius-lg); }
.mp-rounded-xl { border-radius: var(--mp-radius-xl); }
.mp-rounded-2xl { border-radius: var(--mp-radius-2xl); }
.mp-rounded-full { border-radius: var(--mp-radius-full); }

.mp-shadow { box-shadow: var(--mp-shadow-md); }
.mp-shadow-lg { box-shadow: var(--mp-shadow-lg); }
.mp-shadow-xl { box-shadow: var(--mp-shadow-xl); }

.mp-bg-white { background: var(--mp-bg-white); }
.mp-bg-gray { background: var(--mp-bg-gray); }
.mp-bg-primary { background: var(--mp-primary); }

.mp-text-primary { color: var(--mp-text-primary); }
.mp-text-secondary { color: var(--mp-text-secondary); }
.mp-text-muted { color: var(--mp-text-muted); }

.mp-font-bold { font-weight: 700; }
.mp-font-semibold { font-weight: 600; }
.mp-font-medium { font-weight: 500; }

/* Responsive Display */
@media (max-width: 992px) {
  .mp-only-desktop { display: none !important; }
}

@media (min-width: 993px) {
  .mp-only-mobile { display: none !important; }
}

@media (max-width: 768px) {
  .mp-hidden-tablet { display: none !important; }
}

@media (max-width: 480px) {
  .mp-hidden-mobile { display: none !important; }
}
