/* category.css (kids/women/pyjamas) */

/* ===== Header row (title + filter) ===== */
.cat-topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:16px;
}
.cat-topbar h2{
  margin:0;
  display:flex;
  align-items:center;
  gap:10px;
}
.cat-filter{
  display:flex;
  gap:10px;
  align-items:center;
  margin:0;
}

/* premium select */
.filter-select{
  min-width:240px;
  border-radius:14px;
  padding:10px 12px;
  border:1px solid rgba(0,0,0,.10);
  background:#fff;
  box-shadow:0 10px 26px rgba(0,0,0,.08);
  font-weight:800;
  outline:none;
}
.filter-select:focus{
  border-color:rgba(225,17,17,.35);
  box-shadow:0 12px 32px rgba(225,17,17,.12);
}

/* premium filter button */
.filter-btn{
  border:0;
  border-radius:14px;
  padding:10px 16px;
  font-weight:900;
  background:#111;
  color:#fff;
  display:inline-flex;
  align-items:center;
  gap:10px;
  box-shadow:0 14px 34px rgba(0,0,0,.14);
  transition:.2s ease;
  cursor:pointer;
  white-space:nowrap;
}
.filter-btn:hover{ transform:translateY(-1px); filter:brightness(.98); }
.filter-btn:active{ transform:translateY(0); }

/* ===== Grid ===== */
.products-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0,1fr));
  gap:16px;
}
@media (max-width:1200px){
  .products-grid{ grid-template-columns:repeat(3,1fr); }
}
@media (max-width:900px){
  .products-grid{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:520px){
  .products-grid{ grid-template-columns:1fr; }
  .filter-select{ min-width:200px; flex:1; }
  .cat-filter{ width:100%; }
}

/* ===== Product Card ===== */
.product-card{
  position:relative;
  background:#fff;
  border:1px solid rgba(0,0,0,.06);
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 14px 35px rgba(0,0,0,.10);
  transition:transform .25s ease, box-shadow .25s ease;
}
.product-card:hover{
  transform:translateY(-6px);
  box-shadow:0 18px 55px rgba(0,0,0,.16);
}

.sale-present{
  position:absolute;
  top:12px;
  right:12px;
  z-index:5;
  background:#e11;
  color:#fff;
  font-weight:900;
  padding:6px 10px;
  border-radius:999px;
  box-shadow:0 10px 25px rgba(225,17,17,.25);
}

.product-media{
  position:relative;
  background:#f6f6f6;
  aspect-ratio:4/3;
  overflow:hidden;
  display:block;
}
.product-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transform:scale(1);
  transition:transform .35s ease;
}
.product-card:hover .product-media img{ transform:scale(1.06); }

.product-body{ padding:14px 14px 16px; }

.stars{ margin:8px 0 10px; }
.stars i{ font-size:14px; }

.name_product{
  margin:0 0 10px;
  line-height:1.25;
  font-weight:900;
}
.name_product a{
  text-decoration:none;
  color:#111;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.name_product a:hover{ color:#e11; }

.price{
  display:flex;
  align-items:baseline;
  gap:10px;
  margin-bottom:14px;
}
.price span{
  font-size:18px;
  font-weight:900;
  color:#e11;
}
.price del{
  font-size:14px;
  opacity:.55;
}

.product-actions{
  display:flex;
  align-items:center;
  gap:10px;
}

/* keep .btn-add-cart for JS */
.btn-add-cart{
  flex:1;
  border:0;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 14px;
  border-radius:14px;
  background:#e11;
  color:#fff;
  font-weight:900;
  transition:transform .2s ease, filter .2s ease, background .2s ease;
}
.btn-add-cart:hover{ filter:brightness(.95); transform:translateY(-1px); }
.btn-add-cart:active{ transform:translateY(0); }
.btn-add-cart.active{ background:#111; }

.icon_product{
  width:46px;
  height:46px;
  border-radius:14px;
  border:1px solid rgba(0,0,0,.08);
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition:transform .2s ease, background .2s ease;
}
.icon_product:hover{
  background:rgba(225,17,17,.06);
  transform:translateY(-1px);
}
.icon_product i{ font-size:18px; color:#111; }


/* =========================
   Mozhela Sale (PRO) - safe overrides
========================= */

/* badge */
.sale-present{
  position:absolute;
  top:12px;
  right:12px;
  background:#e11;
  color:#fff;
  font-weight:950;
  font-size:13px;
  padding:6px 10px;
  border-radius:999px;
  box-shadow:0 14px 30px rgba(225,17,17,.25);
  z-index:3;
}

/* make sure card is relative for badge */
.product-card{ position:relative; }

/* prices */
.price .price-new{
  color:#e11;
  font-weight:950;
  font-size:18px;
}

.price .price-old{
  color:rgba(0,0,0,.45);
  font-weight:850;
  margin-left:8px;
  font-size:14px;
}

[dir="rtl"] .price .price-old{
  margin-left:0;
  margin-right:8px;
}

.cat-topbar-wrapper{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  margin-bottom:20px;
  flex-wrap:wrap;
}

/* ===== Back Button ===== */
.cat-back{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:9px 14px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
  font-weight:900;
  color:#111;
  text-decoration:none;
  transition:.2s ease;
}

.cat-back:hover{
  transform:translateY(-2px);
  box-shadow:0 18px 45px rgba(0,0,0,.12);
}

.cat-back .ic{
  width:32px;
  height:32px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:black;
  color:white;
  transition:.3s;
  font-size:13px;
}

.cat-back:hover .ic{
  background:#e11;
}

[dir="rtl"] .cat-back .fa-arrow-left{
  transform:rotate(180deg);
}

