/* ==========================================================================
   STRIDEONIX — Home page redesign (modern minimal luxury)
   Scoped to index.php body sections only. Header/nav/footer are untouched.
   Prefix: mlx- (nothing else on the site uses this prefix, safe to own).
   ========================================================================== */

:root {
  --mlx-bg: #faf8f5;
  --mlx-bg-alt: #f1ece4;
  --mlx-ink: #1b1a18;
  --mlx-ink-soft: #6b6459;
  --mlx-line: #e4ddd1;
  --mlx-accent: #9c7a4d;
  --mlx-accent-dark: #7c5f39;
  --mlx-white: #ffffff;
  --mlx-serif: "Playfair Display", "Georgia", serif;
  --mlx-sans: "Muli", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.mlx-section {
  background: var(--mlx-bg);
  padding: 90px 0;
}

.mlx-section--alt {
  background: var(--mlx-bg-alt);
}

.mlx-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.mlx-section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 56px;
}

.mlx-eyebrow {
  display: inline-block;
  font-family: var(--mlx-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--mlx-accent);
  margin-bottom: 14px;
}

.mlx-heading {
  font-family: var(--mlx-serif);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(30px, 4vw, 44px);
  color: var(--mlx-ink);
  margin: 0;
  line-height: 1.2;
}

.mlx-subtext {
  font-family: var(--mlx-sans);
  font-size: 15px;
  color: var(--mlx-ink-soft);
  margin: 14px 0 0;
  line-height: 1.6;
}

.mlx-rule {
  width: 56px;
  height: 1px;
  background: var(--mlx-line);
  margin: 22px auto 0;
}

.mlx-btn {
  display: inline-block;
  font-family: var(--mlx-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 38px;
  border: 1px solid var(--mlx-ink);
  color: var(--mlx-ink);
  background: transparent;
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

.mlx-btn:hover {
  background: var(--mlx-ink);
  color: var(--mlx-white);
  text-decoration: none;
}

.mlx-link {
  font-family: var(--mlx-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--mlx-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--mlx-ink);
  padding-bottom: 3px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.mlx-link:hover {
  color: var(--mlx-accent-dark);
  border-color: var(--mlx-accent-dark);
  text-decoration: none;
}

.mlx-link span {
  display: inline-block;
  transition: transform 0.3s ease;
}

.mlx-link:hover span {
  transform: translateX(4px);
}

.mlx-center-cta {
  text-align: center;
  margin-top: 56px;
}

/* ---------- Hero carousel dots (base owl.theme css is missing on disk;
   without this, the dots render as unstyled native buttons) ---------- */
.hero-items.owl-carousel .owl-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 26px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.hero-items.owl-carousel .owl-dots .owl-dot span {
  display: block;
  width: 8px;
  height: 8px;
  margin: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transition: background 0.3s ease, transform 0.3s ease;
}

.hero-items.owl-carousel .owl-dots .owl-dot.active span,
.hero-items.owl-carousel .owl-dots .owl-dot:hover span {
  background: #fff;
  transform: scale(1.2);
}

/* ==========================================================================
   Categories
   ========================================================================== */

.mlx-cat-marquee {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.mlx-cat-track {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  width: max-content;
  animation: mlx-cat-scroll 22s linear infinite;
}

.mlx-cat-marquee:hover .mlx-cat-track {
  animation-play-state: paused;
}

@keyframes mlx-cat-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mlx-cat-track {
    animation: none;
  }
}

.mlx-cat-tile {
  position: relative;
  display: block;
  width: 190px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  text-decoration: none;
  background: var(--mlx-bg-alt);
}

.mlx-cat-tile-img {
  width: 100%;
  height: 100%;
}

.mlx-cat-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.mlx-cat-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 55%);
}

.mlx-cat-tile:hover img {
  transform: scale(1.08);
}

.mlx-cat-tile-name {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  z-index: 1;
  text-align: center;
  font-family: var(--mlx-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
}

@media (max-width: 576px) {
  .mlx-cat-tile {
    width: 130px;
  }
}

/* ==========================================================================
   Brand story
   ========================================================================== */

.mlx-story {
  background: var(--mlx-bg);
  padding: 90px 0;
}

.mlx-story-grid {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 64px;
  align-items: center;
}

.mlx-story-img {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 4px;
}

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

.mlx-story-content {
  max-width: 480px;
}

.mlx-story-quote {
  font-family: var(--mlx-serif);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.35;
  color: var(--mlx-ink);
  margin: 14px 0 22px;
}

.mlx-story-copy {
  font-family: var(--mlx-sans);
  font-size: 15px;
  line-height: 1.75;
  color: var(--mlx-ink-soft);
  margin: 0 0 22px;
}

.mlx-story-sign {
  display: inline-block;
  font-family: var(--mlx-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--mlx-accent-dark);
  padding-top: 18px;
  border-top: 1px solid var(--mlx-line);
}

@media (max-width: 768px) {
  .mlx-story-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .mlx-story-img {
    aspect-ratio: 16 / 10;
  }

  .mlx-story-content {
    max-width: none;
  }
}

/* ==========================================================================
   Collections
   ========================================================================== */

.mlx-collection-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.mlx-collection-card {
  position: relative;
  overflow: hidden;
  height: 62vh;
  min-height: 380px;
  background: var(--mlx-bg-alt);
}

.mlx-collection-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.mlx-collection-card:hover img {
  transform: scale(1.06);
}

.mlx-collection-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0) 50%);
}

.mlx-collection-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 34px;
  color: #fff;
}

.mlx-collection-info h3 {
  font-family: var(--mlx-serif);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(22px, 2.6vw, 30px);
  margin: 0 0 8px;
}

.mlx-collection-info p {
  font-family: var(--mlx-sans);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 16px;
  max-width: 420px;
}

.mlx-collection-info .mlx-link {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.8);
}

.mlx-collection-info .mlx-link:hover {
  color: #fff;
  border-color: #fff;
}

@media (max-width: 768px) {
  .mlx-collection-grid {
    grid-template-columns: 1fr;
  }

  .mlx-collection-card {
    height: 48vh;
    min-height: 300px;
  }
}

/* ==========================================================================
   Trending products
   ========================================================================== */

.mlx-product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 24px;
}

.mlx-product-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.mlx-product-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--mlx-bg-alt);
  margin-bottom: 16px;
}

.mlx-product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.mlx-product-card:hover .mlx-product-img img {
  transform: scale(1.05);
}

.mlx-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  font-family: var(--mlx-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  background: var(--mlx-accent-dark);
  padding: 5px 10px;
}

.mlx-product-info h5 {
  font-family: var(--mlx-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--mlx-ink);
  margin: 0 0 6px;
}

.mlx-product-price {
  font-family: var(--mlx-serif);
  font-size: 16px;
  color: var(--mlx-ink);
}

.mlx-product-price .mlx-price-old {
  font-family: var(--mlx-sans);
  font-size: 13px;
  color: var(--mlx-ink-soft);
  text-decoration: line-through;
  margin-left: 8px;
}

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

@media (max-width: 640px) {
  .mlx-product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 16px;
  }
}

/* ==========================================================================
   Benefits strip
   ========================================================================== */

.mlx-benefits-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.mlx-benefit {
  text-align: center;
  padding: 0 32px;
  border-left: 1px solid var(--mlx-line);
}

.mlx-benefit:first-child {
  border-left: none;
}

.mlx-benefit h4 {
  font-family: var(--mlx-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--mlx-ink);
  margin: 0 0 12px;
}

.mlx-benefit p {
  font-family: var(--mlx-sans);
  font-size: 14px;
  color: var(--mlx-ink-soft);
  margin: 0;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .mlx-benefits-row {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .mlx-benefit {
    border-left: none;
    border-top: 1px solid var(--mlx-line);
    padding: 32px 12px 0;
  }

  .mlx-benefit:first-child {
    border-top: none;
    padding-top: 0;
  }
}

/* ==========================================================================
   Subscribe modal
   ========================================================================== */

.mlx-modal .modal-content {
  border: none;
  border-radius: 0;
  background: var(--mlx-bg);
}

.mlx-modal-body {
  padding: 56px 40px;
  text-align: center;
}

.mlx-modal-body .mlx-heading {
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 18px;
}

.mlx-modal-body-copy {
  font-family: var(--mlx-sans);
  font-size: 15px;
  color: var(--mlx-ink-soft);
  line-height: 1.7;
}

.mlx-modal-close {
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 26px;
  line-height: 1;
  color: var(--mlx-ink-soft);
  opacity: 1;
  z-index: 2;
}

.mlx-modal-close:hover {
  color: var(--mlx-ink);
}
