/*
Theme Name: Minimal Particles Woo (Child) - Slider v1.6
Theme URI: https://example.com/minimal-particles-woo
Description: WooCommerce child theme with live Customizer controls (scale & items-per-view), animated slider, and widget safety.
Author: ChatGPT
Version: 1.6.0
Template: minimal-particles
Text Domain: minimal-particles-woo
*/
@charset "UTF-8";

/* ===== General & RTL ===== */
body { direction: rtl; unicode-bidi: embed; }
.container { max-width: 1200px; margin-inline: auto; padding-inline: 16px; }

/* CSS variables injected from PHP */
:root{
  --mpw-card-scale: .6;
}

.home-products { padding: 24px 0; }
.swiper { padding: 8px 8px 40px; }

/* Always show arrows */
.swiper-button-prev,
.swiper-button-next {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  z-index: 5;
}
.swiper-button-prev:after,
.swiper-button-next:after { font-size: 16px; color: #fff; }

.swiper-pagination-bullet { opacity: .5; }
.swiper-pagination-bullet-active { opacity: 1; }

/* ===== Product Card ===== */
.product-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 18px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
  padding: 14px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 360px;                 /* Equal height */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 10px;
  transform: scale(var(--mpw-card-scale));
  transform-origin: center;
}
.product-card:hover { box-shadow: 0 14px 28px rgba(0,0,0,0.12); }

/* Image holder with fixed ratio */
.product-card .thumb-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 16px;
}
.product-card .thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  background: #f3f4f6;
}

/* Typography */
.product-card h3 {
  font-size: 0.95rem;
  margin: 4px 0 0;
  line-height: 1.35;
  text-align: start;
}
.product-card .price {
  font-weight: 700;
  display: block;
  margin-top: 4px;
  text-align: start;
}

/* Button */
.product-card .button {
  margin-top: auto;
  width: 100%;
  border-radius: 12px;
  padding: 8px 12px;
}