/* MoonLight_X — elementor-widgets.css
   CSS for all MLX Elementor widgets.
   Scoped to .mlx-pg, .mlx-el-* etc. so no conflicts with global styles.
   ─────────────────────────────────────────────────────────────────── */

/* ═══════════════════════════════════════════════════════════════════
   PRODUCTS GRID — .mlx-pg
══════════════════════════════════════════════════════════════════ */

/* Grid container */
.mlx-pg-grid {
  display: grid;
  gap: 24px;
  width: 100%;
  /* columns come from inline style: grid-template-columns:repeat(N,minmax(0,1fr)) */
}

/* Responsive overrides */
@media (max-width: 1024px) {
  .mlx-pg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 600px) {
  .mlx-pg-grid { grid-template-columns: 1fr !important; }
}

/* ── Card ──────────────────────────────────────────────────────── */
.mlx-pg-item {
  display: flex;
  flex-direction: column;
}

.mlx-pg-card__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.07);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.mlx-pg-card__inner:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,0,0,.09);
}

/* ── Image area ─────────────────────────────────────────────────── */
.mlx-pg-card__thumb {
  position: relative;
  overflow: hidden;
  background: #f5f5f5;
  flex-shrink: 0;
}

.mlx-pg-card__thumb-link {
  display: block;
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
}

.mlx-pg-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease, filter .4s ease, opacity .4s ease;
}

/* Image hover effects */
.mlx-pg-card__img.mlx-img-fx--zoom:hover,
.mlx-pg-card__inner:hover .mlx-img-fx--zoom    { transform: scale(1.06); }
.mlx-pg-card__inner:hover .mlx-img-fx--zoom_out { transform: scale(.94); }
.mlx-pg-card__inner:hover .mlx-img-fx--move_left{ transform: translateX(-4%); }
.mlx-pg-card__inner:hover .mlx-img-fx--grayscale { filter: grayscale(100%); }
.mlx-pg-card__inner:hover .mlx-img-fx--fade      { opacity: .7; }

/* ── Sale badge ─────────────────────────────────────────────────── */
.mlx-pg-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  line-height: 1;
  padding: 4px 9px;
  border-radius: 4px;
}
.mlx-pg-badge--sale {
  background: var(--mlx-color-accent, #e84545);
  color: #fff;
}

/* ── Action buttons (quick view + wishlist) ─────────────────────── */
.mlx-pg-actions {
  position: absolute;
  z-index: 4;
  display: flex;
  gap: 6px;
  transition: opacity .25s, transform .25s;
}

/* Hover overlay (default): bottom-right of image, hidden until hover */
.mlx-pg-actions--hover_overlay {
  bottom: 10px;
  right: 10px;
  opacity: 0;
  transform: translateY(6px);
}
.mlx-pg-card__inner:hover .mlx-pg-actions--hover_overlay {
  opacity: 1;
  transform: translateY(0);
}

/* Side stack: right edge of image, always visible */
.mlx-pg-actions--side_stack {
  flex-direction: column;
  top: 10px;
  right: 10px;
  opacity: 0;
  transform: translateX(6px);
}
.mlx-pg-card__inner:hover .mlx-pg-actions--side_stack {
  opacity: 1;
  transform: translateX(0);
}

/* Below image: always visible, in the card body */
.mlx-pg-actions--below_image {
  position: static;
  padding: 8px 14px 0;
  opacity: 1;
  transform: none;
  flex-wrap: wrap;
}

/* Individual action button */
.mlx-pg-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: #333;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  transition: background .2s, color .2s, transform .15s;
  flex-shrink: 0;
}
.mlx-pg-action:hover {
  background: var(--mlx-color-accent, #e84545);
  color: #fff;
  transform: scale(1.1);
}

/* Wishlist active state */
.mlx-pg-action.mlx-action--wishlist.is-active {
  background: var(--mlx-color-accent, #e84545);
  color: #fff;
}
.mlx-pg-action.mlx-action--wishlist.is-active svg path { fill: #fff; stroke: #fff; }

/* Text or icon+text variant */
.mlx-pg-action.has-label {
  width: auto;
  border-radius: 20px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 500;
}

/* ── Card body ──────────────────────────────────────────────────── */
.mlx-pg-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 12px 14px 14px;
  gap: 5px;
}

/* Category */
.mlx-pg-card__cats {
  font-size: .6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--mlx-color-accent, #e84545);
  line-height: 1.3;
}
.mlx-pg-card__cats a {
  color: inherit;
  text-decoration: none;
}
.mlx-pg-card__cats a:hover { text-decoration: underline; }

/* Title */
.mlx-pg-card__title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 2px 0 0;
}
.mlx-pg-card__title a {
  color: var(--mlx-color-primary, #0a0a0a);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mlx-pg-card__title a:hover { color: var(--mlx-color-accent, #e84545); }

/* Rating */
.mlx-pg-card__rating { margin: 0; }
.mlx-pg-card__rating .star-rating { font-size: .875rem; }

/* Price */
.mlx-pg-card__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  margin-top: auto;
  padding-top: 4px;
}
.mlx-pg-card__price .woocommerce-Price-amount {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--mlx-color-primary, #0a0a0a);
}
.mlx-pg-card__price del {
  font-size: .875rem;
  font-weight: 400;
  opacity: .6;
  text-decoration: line-through;
}
.mlx-pg-card__price del .woocommerce-Price-amount {
  font-size: inherit;
  font-weight: inherit;
  color: #999;
}
.mlx-pg-card__price ins {
  text-decoration: none;
}
.mlx-pg-card__price ins .woocommerce-Price-amount {
  color: var(--mlx-color-accent, #e84545);
}

/* ── Add to cart button ─────────────────────────────────────────── */
.mlx-pg-card__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  padding: .6rem 1rem;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
  border: 2px solid transparent;
}
.mlx-pg-card__btn svg { width: 15px; height: 15px; flex-shrink: 0; }

/* Filled (default) */
.mlx-pg-btn--filled {
  background: var(--mlx-btn-cart-bg, var(--mlx-color-primary, #0a0a0a));
  color: var(--mlx-btn-cart-color, #fff);
  border-color: var(--mlx-btn-cart-bg, var(--mlx-color-primary, #0a0a0a));
  width: 100%;
}
.mlx-pg-btn--filled:hover {
  background: var(--mlx-btn-cart-hover-bg, var(--mlx-color-accent, #e84545));
  color: var(--mlx-btn-cart-hover-color, #fff);
  border-color: var(--mlx-btn-cart-hover-bg, var(--mlx-color-accent, #e84545));
}

/* Outline */
.mlx-pg-btn--outline {
  background: transparent;
  color: var(--mlx-color-primary, #0a0a0a);
  border-color: currentColor;
  width: 100%;
}
.mlx-pg-btn--outline:hover {
  background: var(--mlx-color-primary, #0a0a0a);
  color: #fff;
  border-color: var(--mlx-color-primary, #0a0a0a);
}

/* Ghost */
.mlx-pg-btn--ghost {
  background: rgba(0,0,0,.05);
  color: var(--mlx-color-primary, #0a0a0a);
  border-color: transparent;
  width: 100%;
}
.mlx-pg-btn--ghost:hover {
  background: var(--mlx-color-primary, #0a0a0a);
  color: #fff;
}

/* Text only */
.mlx-pg-btn--text {
  background: transparent;
  color: var(--mlx-color-accent, #e84545);
  border-color: transparent;
  padding-left: 0;
  padding-right: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
  width: auto;
}
.mlx-pg-btn--text:hover { text-decoration: none; }

/* ═══════════════════════════════════════════════════════════════════
   PRODUCT CATEGORIES GRID — .mlx-el-cats
══════════════════════════════════════════════════════════════════ */
.mlx-el-cats-grid {
  display: grid;
  gap: 20px;
}
.mlx-el-cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  overflow: hidden;
  border-radius: 10px;
  background: #f5f5f5;
  transition: transform .25s, box-shadow .25s;
}
.mlx-el-cat-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,.1); }
.mlx-el-cat-card__img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; transition: transform .4s; }
.mlx-el-cat-card:hover .mlx-el-cat-card__img { transform: scale(1.05); }
.mlx-el-cat-card__overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.55) 0%, transparent 50%); }
.mlx-el-cat-card__info { position: absolute; bottom: 0; left: 0; right: 0; padding: 1rem 1.125rem; color: #fff; }
.mlx-el-cat-card__name { font-weight: 700; font-size: 1rem; }
.mlx-el-cat-card__count { font-size: .8125rem; opacity: .8; margin-top: .2rem; }

/* ═══════════════════════════════════════════════════════════════════
   BANNER WIDGET
══════════════════════════════════════════════════════════════════ */
.mlx-el-banner {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  display: block;
  text-decoration: none;
}
.mlx-el-banner__img { display: block; width: 100%; height: auto; transition: transform .4s; }
.mlx-el-banner:hover .mlx-el-banner__img { transform: scale(1.03); }
.mlx-el-banner__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: var(--mlx-banner-valign, flex-end);
  align-items: var(--mlx-banner-halign, flex-start);
  padding: 2rem;
}
.mlx-el-banner__title { font-size: 1.75rem; font-weight: 700; color: #fff; line-height: 1.2; margin: 0 0 .75rem; }
.mlx-el-banner__sub   { font-size: 1rem; color: rgba(255,255,255,.85); margin: 0 0 1.25rem; }
.mlx-el-banner__btn   { display: inline-flex; align-items: center; padding: .65rem 1.5rem; background: #fff; color: #0a0a0a; font-weight: 600; font-size: .875rem; border-radius: 6px; text-decoration: none; transition: background .2s, color .2s; }
.mlx-el-banner__btn:hover { background: var(--mlx-color-accent, #e84545); color: #fff; }

/* ═══════════════════════════════════════════════════════════════════
   INFO BOX
══════════════════════════════════════════════════════════════════ */
.mlx-el-info-box {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.07);
  transition: box-shadow .25s;
}
.mlx-el-info-box:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.mlx-el-info-box--center { flex-direction: column; align-items: center; text-align: center; }
.mlx-el-info-box__icon { flex-shrink: 0; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--mlx-color-secondary, #f5f5f5); color: var(--mlx-color-accent, #e84545); font-size: 24px; }
.mlx-el-info-box__title { font-size: 1.0625rem; font-weight: 700; margin: 0 0 .4rem; }
.mlx-el-info-box__desc  { font-size: .9rem; color: #666; line-height: 1.65; margin: 0; }

/* ═══════════════════════════════════════════════════════════════════
   COUNTER
══════════════════════════════════════════════════════════════════ */
.mlx-el-counter { text-align: center; padding: 1.5rem 1rem; }
.mlx-counter__value { font-size: 3rem; font-weight: 800; line-height: 1; color: var(--mlx-color-primary, #0a0a0a); display: block; }
.mlx-counter__suffix { font-size: 2rem; font-weight: 700; }
.mlx-counter__label  { font-size: .9375rem; color: #666; margin-top: .5rem; display: block; }

/* ═══════════════════════════════════════════════════════════════════
   TESTIMONIALS
══════════════════════════════════════════════════════════════════ */
.mlx-el-testimonial {
  background: #fff;
  border-radius: 12px;
  padding: 1.75rem;
  border: 1px solid rgba(0,0,0,.07);
}
.mlx-el-testimonial__stars { color: #f5a623; font-size: 1rem; letter-spacing: .1em; margin-bottom: .75rem; }
.mlx-el-testimonial__text  { font-size: 1rem; font-style: italic; line-height: 1.7; color: #444; margin-bottom: 1.25rem; }
.mlx-el-testimonial__author{ display: flex; align-items: center; gap: .875rem; }
.mlx-el-testimonial__avatar img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.mlx-el-testimonial__name  { font-weight: 700; font-size: .9375rem; }
.mlx-el-testimonial__role  { font-size: .8125rem; color: #888; }

/* ═══════════════════════════════════════════════════════════════════
   POSTS GRID
══════════════════════════════════════════════════════════════════ */
.mlx-el-posts-grid { display: grid; gap: 24px; }
.mlx-el-post-card  { background: #fff; border-radius: 10px; overflow: hidden; border: 1px solid rgba(0,0,0,.07); transition: transform .25s, box-shadow .25s; }
.mlx-el-post-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,.09); }
.mlx-el-post-card__thumb { display: block; aspect-ratio: 16/9; overflow: hidden; }
.mlx-el-post-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; display: block; }
.mlx-el-post-card:hover .mlx-el-post-card__thumb img { transform: scale(1.05); }
.mlx-el-post-card__body   { padding: 1.125rem 1.25rem 1.375rem; }
.mlx-el-post-card__cats   { font-size: .6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--mlx-color-accent, #e84545); margin-bottom: .5rem; }
.mlx-el-post-card__title  { font-size: 1rem; font-weight: 700; line-height: 1.35; margin: 0 0 .625rem; }
.mlx-el-post-card__title a { color: inherit; text-decoration: none; }
.mlx-el-post-card__title a:hover { color: var(--mlx-color-accent, #e84545); }
.mlx-el-post-card__meta   { font-size: .8125rem; color: #999; display: flex; gap: .875rem; flex-wrap: wrap; }
.mlx-el-post-card__excerpt{ font-size: .9rem; color: #666; line-height: 1.65; margin: .5rem 0 0; }

/* ═══════════════════════════════════════════════════════════════════
   PORTFOLIO GRID
══════════════════════════════════════════════════════════════════ */
.mlx-el-portfolio-grid { display: grid; gap: 16px; }
.mlx-el-portfolio-item { position: relative; overflow: hidden; border-radius: 10px; aspect-ratio: 4/3; display: block; }
.mlx-el-portfolio-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.mlx-el-portfolio-item:hover img { transform: scale(1.06); }
.mlx-el-portfolio-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.55); opacity: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; transition: opacity .3s; padding: 1.25rem; }
.mlx-el-portfolio-item:hover .mlx-el-portfolio-overlay { opacity: 1; }
.mlx-el-portfolio-overlay__title { color: #fff; font-weight: 700; font-size: 1rem; text-align: center; }
.mlx-el-portfolio-overlay__cats  { color: rgba(255,255,255,.75); font-size: .8125rem; text-align: center; }

/* ═══════════════════════════════════════════════════════════════════
   CLIENTS GRID
══════════════════════════════════════════════════════════════════ */
.mlx-el-clients-grid { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: center; }
.mlx-el-client-logo  { flex: 0 0 auto; opacity: .6; transition: opacity .2s; filter: grayscale(100%); }
.mlx-el-client-logo:hover { opacity: 1; filter: none; }
.mlx-el-client-logo img { height: 48px; width: auto; object-fit: contain; }

/* ═══════════════════════════════════════════════════════════════════
   TEAM MEMBER
══════════════════════════════════════════════════════════════════ */
.mlx-el-team-card { text-align: center; }
.mlx-el-team-card__img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 50%; margin-bottom: 1rem; }
.mlx-el-team-card__name { font-weight: 700; font-size: 1rem; margin-bottom: .2rem; }
.mlx-el-team-card__role { font-size: .875rem; color: var(--mlx-color-accent, #e84545); margin-bottom: .75rem; }
.mlx-el-team-card__bio  { font-size: .9rem; color: #666; line-height: 1.65; }
.mlx-el-team-card__socials { display: flex; justify-content: center; gap: .625rem; margin-top: .875rem; }
.mlx-el-team-card__social  { width: 32px; height: 32px; border-radius: 50%; background: #f0f0f0; display: flex; align-items: center; justify-content: center; color: #555; font-size: 13px; transition: background .2s, color .2s; text-decoration: none; }
.mlx-el-team-card__social:hover { background: var(--mlx-color-accent, #e84545); color: #fff; }

/* ═══════════════════════════════════════════════════════════════════
   SINGLE PRODUCT WIDGET — mlx_single_product
══════════════════════════════════════════════════════════════════ */

/* ── Layout ──────────────────────────────────────────────────── */
.mlx-sp {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}
.mlx-sp--side_by_side,
.mlx-sp--image_right { grid-template-columns: 1fr 1fr; }
.mlx-sp--image_right .mlx-sp__gallery-col { order: 2; }
.mlx-sp--image_right .mlx-sp__summary     { order: 1; }
.mlx-sp--stacked { grid-template-columns: 1fr; }
@media (max-width: 767px) {
  .mlx-sp--side_by_side,
  .mlx-sp--image_right { grid-template-columns: 1fr; }
}

/* ── Left sidebar layout ─────────────────────────────────────── */
.mlx-sp__gallery-col { min-width: 0; }
.mlx-sp__gallery-col--left {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: .625rem !important;
}
.mlx-sp__thumbs-sidebar {
  order: 0;
  flex-shrink: 0;
  width: 76px;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  max-height: 520px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.mlx-sp__main-img-wrap {
  order: 1;
  flex: 1;
  min-width: 0;
  position: relative;
}
.mlx-sp__main-img-wrap img,
.mlx-sp__main-img-wrap .mlx-sp__img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}
/* Bottom thumbs */
.mlx-sp__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .625rem;
}
.mlx-sp__thumb {
  width: 72px; height: 72px;
  border-radius: 6px; overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer; padding: 0; background: #f5f5f5;
  transition: border-color .18s;
  flex-shrink: 0;
}
.mlx-sp__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mlx-sp__thumb:hover { border-color: var(--mlx-color-accent, #e84545); }
.mlx-sp__thumb.is-active { border-color: var(--mlx-color-primary, #0a0a0a); }
@media (max-width: 600px) {
  .mlx-sp__gallery-col--left { flex-direction: column !important; }
  .mlx-sp__thumbs-sidebar {
    width: 100%;
    flex-direction: row;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
  }
}

/* ── Summary ─────────────────────────────────────────────────── */
.mlx-sp__summary { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.mlx-sp__title   { font-size: clamp(1.375rem,3vw,2rem); font-weight: 700; margin: 0; line-height: 1.2; }
.mlx-sp__price   { font-size: 1.5rem; font-weight: 700; }
.mlx-sp__price del { font-size: 1.1rem; opacity: .55; margin-right: .25rem; }
.mlx-sp__price ins { text-decoration: none; color: var(--mlx-color-accent, #e84545); }
.mlx-sp__desc    { font-size: .9375rem; line-height: 1.7; color: var(--mlx-text-muted, #555); }
.mlx-sp__meta    { font-size: .875rem; color: #888; padding-top: .75rem; border-top: 1px solid var(--mlx-border, #f0f0f0); }
.mlx-sp__meta-row { margin-bottom: .25rem; }
.mlx-sp__meta-label { font-weight: 600; color: #555; margin-right: .375rem; }

/* Sold counter */
.mlx-sold-counter { background: #fffbeb; border-radius: 6px; padding: .5rem .875rem; font-size: .875rem; color: #92400e; }

/* ── Add to cart — space + style ─────────────────────────────── */
.mlx-sp__add-to-cart {
  margin-top: .5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--mlx-border, #f0f0f0);
}
.mlx-sp__add-to-cart .single_add_to_cart_button,
.mlx-sp__add-to-cart .button.alt,
.mlx-sp__add-to-cart .button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 52px !important;
  padding: 0 1.5rem !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  letter-spacing: .01em !important;
  background: var(--mlx-btn-cart-bg, #0a0a0a) !important;
  color: var(--mlx-btn-cart-color, #fff) !important;
  border: none !important;
  border-radius: var(--mlx-btn-cart-radius, 6px) !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: background .2s !important;
  box-sizing: border-box !important;
}
.mlx-sp__add-to-cart .single_add_to_cart_button:hover,
.mlx-sp__add-to-cart .button.alt:hover,
.mlx-sp__add-to-cart .button:hover {
  background: var(--mlx-btn-cart-hover-bg, #e84545) !important;
  color: var(--mlx-btn-cart-hover-color, #fff) !important;
}

/* ── Variation swatches ──────────────────────────────────────── */
.mlx-swatches { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 0; }
.mlx-swatch--label {
  min-width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1.5px solid var(--mlx-sw-border, #dddddd);
  border-radius: 6px;
  font-size: .8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
  white-space: nowrap;
  color: var(--mlx-sw-text, #444444);
  background: var(--mlx-sw-bg, #ffffff);
  user-select: none;
}
.mlx-swatch--label:hover {
  background: var(--mlx-sw-hover-bg, #f5f5f5) !important;
  color: var(--mlx-sw-hover-text, #0a0a0a) !important;
  border-color: var(--mlx-sw-hover-border, #0a0a0a) !important;
}
.mlx-swatch--label.is-active {
  background: var(--mlx-sw-active-bg, #0a0a0a) !important;
  color: var(--mlx-sw-active-text, #ffffff) !important;
  border-color: var(--mlx-sw-active-border, #0a0a0a) !important;
}
.mlx-swatch.is-disabled { opacity: .35; cursor: not-allowed; }

/* ── Tabs ────────────────────────────────────────────────────── */
.mlx-sp-tabs { margin-top: 2.5rem; }
.mlx-sp-tabs__nav {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  border-bottom: 2px solid var(--mlx-border, #eeeeee);
  scrollbar-width: none;
  margin: 0; padding: 0;
  list-style: none;
  gap: 0;
}
.mlx-sp-tabs__nav::-webkit-scrollbar { display: none; }
.mlx-sp-tabs__nav-item a {
  display: block;
  padding: .75rem 1.25rem;
  font-size: .9375rem;
  font-weight: 500;
  color: #777;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: color .18s, border-color .18s;
}
.mlx-sp-tabs__nav-item a:hover { color: var(--mlx-color-primary, #0a0a0a); }
.mlx-sp-tabs__nav-item.is-active a {
  color: var(--mlx-color-primary, #0a0a0a);
  border-bottom-color: var(--mlx-color-primary, #0a0a0a);
  font-weight: 600;
}
/* KRITICKÉ: non-active panely musia byť skryté */
.mlx-sp-tabs__panel { display: none; padding-top: 1.5rem; line-height: 1.7; }
.mlx-sp-tabs__panel.is-active { display: block; animation: mlxSpTabIn .2s ease; }
@keyframes mlxSpTabIn { from { opacity:0; transform:translateY(4px); } to { opacity:1; transform:none; } }

/* Attributes table */
.woocommerce-product-attributes { width: 100%; border-collapse: collapse; }
.woocommerce-product-attributes-item th,
.woocommerce-product-attributes-item td {
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--mlx-border, #eeeeee);
  text-align: left;
  font-size: .9375rem;
}
.woocommerce-product-attributes-item th {
  font-weight: 600;
  color: #444;
  width: 35%;
  background: var(--mlx-bg-subtle, #fafafa);
}

/* ═══════════════════════════════════════════════════════════════════
   ARCHIVE WIDGETS — mlx_archive_*
══════════════════════════════════════════════════════════════════ */

/* Archive Title */
.mlx-archive-title { margin: 0; line-height: 1.2; }
.mlx-archive-title__count { font-size: .6em; font-weight: 400; opacity: .6; }

/* Archive Description */
.mlx-archive-desc { }
.mlx-archive-desc__img-wrap { margin-bottom: 1rem; }
.mlx-archive-desc__img { display: block; height: auto; }
.mlx-archive-desc__short { font-size: 1rem; line-height: 1.6; }
.mlx-archive-desc__full  { font-size: .9375rem; line-height: 1.7; color: #555; }

/* Archive Products — toolbar */
.mlx-archive-products .mlx-shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
  padding-block: .75rem 1rem;
  border-bottom: 1px solid var(--mlx-border, #eee);
  margin-bottom: 1.5rem;
}

/* Archive Pagination */
.mlx-archive-pagination { margin-top: 2rem; }
.mlx-archive-pagination .woocommerce-pagination ul.page-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: .375rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.mlx-archive-pagination .page-numbers li a,
.mlx-archive-pagination .page-numbers li span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding-inline: .5rem;
  border: 1px solid var(--mlx-border, #ddd);
  border-radius: 6px;
  font-size: .875rem;
  font-weight: 500;
  text-decoration: none;
  color: #444;
  transition: background .2s, color .2s, border-color .2s;
}
.mlx-archive-pagination .page-numbers li a:hover {
  background: var(--mlx-color-primary, #0a0a0a);
  color: #fff;
  border-color: var(--mlx-color-primary, #0a0a0a);
}
.mlx-archive-pagination .page-numbers li span.current {
  background: var(--mlx-color-primary, #0a0a0a);
  color: #fff;
  border-color: var(--mlx-color-primary, #0a0a0a);
}

/* ═══════════════════════════════════════════════════════════════════
   MLX PRODUCT FILTERS WIDGET — .mlx-af
══════════════════════════════════════════════════════════════════ */
.mlx-af { box-sizing: border-box; }

/* Heading */
.mlx-af__heading {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 1rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid rgba(0,0,0,.08);
}

/* Section */
.mlx-af__section { margin-bottom: 1.25rem; }
.mlx-af__label {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #444;
  margin: 0 0 .625rem;
}

/* Checkbox items */
.mlx-af__item {
  display: flex;
  align-items: center;
  gap: .5rem;
  cursor: pointer;
  margin-bottom: .375rem;
  user-select: none;
}
.mlx-af__cb { cursor: pointer; width: 15px; height: 15px; flex-shrink: 0; }
.mlx-af__item-label { font-size: .875rem; color: #333; line-height: 1.4; }
.mlx-af__count { color: #aaa; font-size: .8rem; margin-left: .2rem; }

/* Select */
.mlx-af__select {
  width: 100%;
  padding: .5rem .75rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: .875rem;
  background: #fff;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .75rem center;
  padding-right: 2.25rem;
}

/* Price range slider */
.mlx-af__price-track {
  position: relative;
  height: 4px;
  background: #e5e5e5;
  border-radius: 2px;
  margin: 1.5rem 0 .75rem;
}
.mlx-af__price-fill {
  position: absolute;
  height: 100%;
  background: var(--mlx-color-primary, #0a0a0a);
  border-radius: 2px;
  pointer-events: none;
}
.mlx-af__price-input {
  position: absolute;
  width: 100%;
  height: 4px;
  opacity: 0;
  cursor: pointer;
  top: 0;
  margin: 0;
  pointer-events: auto;
}
.mlx-af__price-input::-webkit-slider-thumb { width: 16px; height: 16px; pointer-events: all; }
.mlx-af__price-labels {
  display: flex;
  justify-content: space-between;
  font-size: .8125rem;
  color: #555;
  margin-top: .25rem;
}

/* Active chips */
.mlx-af__chips {
  display: flex;
  flex-wrap: wrap;
  gap: .375rem;
  margin-bottom: 1rem;
}
.mlx-af__chip {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  background: var(--mlx-color-primary, #0a0a0a);
  color: #fff;
  font-size: .75rem;
  font-weight: 500;
  padding: .25rem .625rem;
  border-radius: 4px;
}
.mlx-af__chip-remove {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  font-size: .875rem;
  opacity: .7;
  transition: opacity .15s;
}
.mlx-af__chip-remove:hover { opacity: 1; }

/* Actions */
.mlx-af__actions {
  display: flex;
  flex-direction: column;
  gap: .625rem;
  margin-top: 1rem;
}
.mlx-af__apply {
  display: block;
  width: 100%;
  padding: .625rem 1rem;
  background: var(--mlx-btn-cart-bg, #0a0a0a);
  color: var(--mlx-btn-cart-color, #fff);
  border: 2px solid transparent;
  border-radius: 6px;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: background .2s;
}
.mlx-af__apply:hover {
  background: var(--mlx-color-accent, #e84545);
}
.mlx-af__reset {
  display: block;
  text-align: center;
  font-size: .8125rem;
  color: #888;
  text-decoration: none;
  transition: color .15s;
}
.mlx-af__reset:hover { color: var(--mlx-color-accent, #e84545); }

/* ═══════════════════════════════════════════════════════════════════
   MLX FILTER TOGGLE BUTTON — mlx_filter_toggle
══════════════════════════════════════════════════════════════════ */
.mlx-filter-toggle-wrap { display: flex; }

.mlx-filter-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .625rem 1.25rem;
  background: var(--mlx-color-primary, #0a0a0a);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
  white-space: nowrap;
  position: relative;
}
.mlx-filter-toggle-btn:hover {
  background: var(--mlx-color-accent, #e84545);
}

.mlx-filter-toggle-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: #e84545;
  color: #fff;
  font-size: .6875rem;
  font-weight: 700;
  border-radius: 9px;
  line-height: 1;
}

/* ── MLX AF: category children + section gap ─────────────────── */
.mlx-af__section + .mlx-af__section { margin-top: 1.25rem; }
.mlx-af__cat-item { position: relative; margin-bottom: .25rem; }
.mlx-af__cat-children { padding-left: 1rem; border-left: 2px solid var(--mlx-border, #eee); margin-top: .375rem; }
.mlx-af__item--child { padding-left: .25rem; }
.mlx-af__cat-expand {
  position: absolute; right: 0; top: .3rem;
  background: none; border: none; cursor: pointer;
  color: #999; padding: 2px; line-height: 1;
  transition: color .15s, transform .2s;
}
.mlx-af__cat-expand:hover { color: #333; }
.mlx-af__cat-item.is-open > .mlx-af__cat-expand { transform: rotate(180deg); }
.mlx-af__cat-item.has-children > .mlx-af__item { padding-right: 1.5rem; }
.mlx-af__item--unavailable { opacity: .35; pointer-events: none; }

/* ═══════════════════════════════════════════════════════════════════
   MLX PRODUCT FILTERS — Swatch display + Category hover
══════════════════════════════════════════════════════════════════ */

/* ── Attribute swatches in filter widget ─────────────────────── */
.mlx-af__swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 2px 0;
}

.mlx-af__swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  position: relative;
}
.mlx-af__swatch input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.mlx-af__swatch-inner {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  outline: 1.5px solid rgba(0,0,0,.12);
  outline-offset: 1px;
  overflow: hidden;
  flex-shrink: 0;
  transition: outline-color .15s, transform .15s;
  font-size: .6875rem;
  font-weight: 600;
  color: #444;
  background: #f0f0f0;
}

/* Shapes */
.mlx-af__swatches--circle  .mlx-af__swatch-inner { border-radius: 50%; }
.mlx-af__swatches--rounded .mlx-af__swatch-inner { border-radius: 6px; }
.mlx-af__swatches--square  .mlx-af__swatch-inner { border-radius: 2px; }

/* Active */
.mlx-af__swatch.is-active .mlx-af__swatch-inner {
  outline-color: var(--mlx-color-accent, #e84545);
  outline-width: 2px;
  transform: scale(1.1);
}

/* Hover */
.mlx-af__swatch:hover .mlx-af__swatch-inner {
  outline-color: var(--mlx-color-primary, #0a0a0a);
  transform: scale(1.05);
}

/* Unavailable */
.mlx-af__swatch.is-unavailable {
  opacity: .3;
  pointer-events: none;
}

/* Swatch name label */
.mlx-af__swatch-name {
  font-size: .6875rem;
  color: #666;
  line-height: 1;
  text-align: center;
  max-width: 40px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Category items hover effect ─────────────────────────────── */
.mlx-af__cat-item > .mlx-af__item,
.mlx-af__item {
  transition: background .15s, color .15s;
  border-radius: 4px;
  padding: 4px 6px;
  margin: 1px 0;
}
.mlx-af__cat-item > .mlx-af__item:hover,
.mlx-af__item:hover {
  background: rgba(var(--mlx-color-primary-rgb, 10,10,10), .05);
}
.mlx-af__item:hover .mlx-af__item-label {
  color: var(--mlx-color-primary, #0a0a0a);
}

/* Active category item */
.mlx-af__cat-item > .mlx-af__item:has(input:checked) {
  background: rgba(var(--mlx-color-primary-rgb, 10,10,10), .06);
}
.mlx-af__cat-item > .mlx-af__item:has(input:checked) .mlx-af__item-label {
  font-weight: 600;
  color: var(--mlx-color-primary, #0a0a0a);
}
