/* 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; }
