/* Mixora Product Tabs — all rules scoped to .mixora-product-tabs */
.mixora-product-tabs {
  --mpt-ink: #111111;
  --mpt-muted: #5f646d;
  --mpt-line: #e5e5e5;
  width: 100%;
}

.mixora-product-tabs__header {
  text-align: center;
}

.mixora-product-tabs__eyebrow {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--mpt-muted);
}

.mixora-product-tabs__heading {
  margin: 0 0 12px;
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.5px;
  color: var(--mpt-ink);
  text-wrap: balance;
}

.mixora-product-tabs__description {
  margin: 0 auto;
  max-width: 560px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--mpt-muted);
}

/* Category Tabs: Single line, horizontal scroll with touch support */
.mixora-product-tabs__filters {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 24px 0 28px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  padding: 4px 10px 8px;
  max-width: 100%;
}

.mixora-product-tabs__filters::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.mixora-product-tabs__filter {
  appearance: none;
  flex: 0 0 auto;
  white-space: nowrap;
  border: 1px solid var(--mpt-line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--mpt-ink);
  padding: 8px 18px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.mixora-product-tabs__filter:hover {
  border-color: var(--mpt-ink);
}

.mixora-product-tabs__filter:focus-visible {
  outline: 2px solid var(--mpt-ink);
  outline-offset: 2px;
}

/* Active tab style maintained */
.mixora-product-tabs__filter--active {
  background: var(--mpt-ink);
  border-color: var(--mpt-ink);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Product Grid */
.mixora-product-tabs__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  transition: opacity 0.25s ease;
}

.mixora-product-tabs__grid.is-loading {
  opacity: 0.45;
}

.mixora-product-tabs__empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--mpt-muted);
  font-size: 15px;
  padding: 30px 0;
}

/* Product Card - Clean luxury fashion store look */
.mixora-product-card {
  background: transparent;
  border: none;
  box-shadow: none;
  min-width: 0;
  display: flex;
  flex-direction: column;
  animation: mpt-fade-in 0.28s ease both;
}

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

/* Product Image: Clean borderless, background removed, radius removed */
.mixora-product-card__image {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 0 !important;
  background: transparent !important;
  aspect-ratio: 4 / 5;
  width: 100%;
}

.mixora-product-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0 !important;
  transition: transform 0.4s ease;
}

.mixora-product-card:hover .mixora-product-card__image img {
  transform: scale(1.03);
}

.mixora-product-card__sale {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--mpt-ink);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 0;
  z-index: 2;
}

/* Product Details - Polished Typography & Spacing */
.mixora-product-card__body {
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.mixora-product-card__badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--mpt-muted);
  margin-bottom: 4px;
}

.mixora-product-card__badge a {
  color: inherit;
  text-decoration: none;
}

.mixora-product-card__title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--mpt-ink);
  letter-spacing: -0.1px;
}

.mixora-product-card__title a {
  color: inherit;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mixora-product-card__title a:hover {
  opacity: 0.8;
}

/* Price - Bold and slightly larger */
.mixora-product-card__price {
  font-size: 16.5px;
  font-weight: 800;
  color: #111111;
  margin-bottom: 12px;
  line-height: 1.2;
}

.mixora-product-card__price .amount,
.mixora-product-card__price bdi {
  font-weight: 800;
  color: #111111;
}

.mixora-product-card__price del {
  font-size: 0.85em;
  font-weight: 500;
  opacity: 0.5;
  margin-right: 6px;
}

.mixora-product-card__price ins {
  text-decoration: none;
  font-weight: 800;
}

/* Action Button */
.mixora-product-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--mpt-ink);
  color: #ffffff;
  border: none;
  border-radius: 0;
  padding: 11px 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  margin-top: auto;
  transition: background-color 0.2s ease, transform 0.15s ease, opacity 0.2s ease;
}

.mixora-product-card__button:hover {
  color: #ffffff;
  background: #2b2b2b;
  transform: translateY(-1px);
}

.mixora-product-card__button:focus-visible {
  outline: 2px solid var(--mpt-ink);
  outline-offset: 2px;
}

/* Tablet: 3 columns */
@media (max-width: 1024px) {
  .mixora-product-tabs__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
  .mixora-product-tabs__filters {
    justify-content: flex-start;
  }
}

/* Mobile: 2 column grid maintained, horizontal scroll tabs without cut/overflow */
@media (max-width: 767px) {
  .mixora-product-tabs__grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px 10px; /* Optimized gap */
  }

  .mixora-product-tabs__filters {
    flex-wrap: wrap !important;
    justify-content: center !important;
    padding: 0 4px 10px;
    gap: 8px 6px; /* row gap 8px, col gap 6px */
    margin: 16px 0 20px;
    overflow-x: visible !important;
    -webkit-overflow-scrolling: auto;
  }

  .mixora-product-tabs__filter {
    padding: 7px 13px; /* Touch friendly compact button */
    font-size: 12.5px;
  }

  .mixora-product-card__title {
    font-size: 13.5px;
    margin: 0 0 4px;
    line-height: 1.3;
  }

  .mixora-product-card__price {
    font-size: 15px;
    margin-bottom: 8px;
  }

  .mixora-product-card__button {
    padding: 9px 12px;
    font-size: 11.5px;
    letter-spacing: 0.2px;
  }

  .mixora-product-card__body {
    padding-top: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mixora-product-tabs__grid {
    transition: none;
  }
  .mixora-product-card {
    animation: none;
  }
  .mixora-product-card__image img,
  .mixora-product-tabs__filter,
  .mixora-product-card__button {
    transition: none;
  }
}

