/* ============================================================
   AVASHOP – Cute Glassy Pink WooCommerce Shop Theme
   Matches Footer / Header (Hello Biz child)
   ============================================================ */

:root{
  --pink:#ff7fbf;
  --pink-600:#e91e63;
  --orchid:#DA70D6;
  --white:#ffffff;
  --ink:#2b2a30;
  --muted:#6f7280;
  --line:rgba(0,0,0,.08);
  --glass: rgba(255,255,255,.26);
  --glass-border: rgba(255,255,255,.38);
  --radius:22px;
}

/* ===== HERO / HEADER AREA ===== */
.shop-hero{
  direction:rtl;
  background: linear-gradient(135deg, var(--pink) 0%, var(--orchid) 80%);
  color:#fff;
  text-align:center;
  padding:64px 20px 48px;
  margin:0 0 22px;
  border-radius: 0 0 28px 28px;
  box-shadow: 0 10px 30px rgba(218,112,214,.25) inset;
}
.shop-hero h1{
  margin:0 0 8px;
  font-weight:900;
  font-size:2.2rem;
  letter-spacing:.5px;
}
.shop-hero p{
  margin:0;
  opacity:.98;
  font-weight:600;
}

/* ===== SHOP WRAPPER ===== */
.shop-wrap{
  direction:rtl;
  max-width:1200px;
  margin:0 auto;
  padding:0 20px 50px;
}

/* ===== TOOLBAR ===== */
.woocommerce-breadcrumb{ display:none; }
.woocommerce-result-count{ display:none; }

.woocommerce-ordering select{
  border-radius:999px;
  border:1px solid var(--line);
  padding:10px 14px;
  background:#fff;
  box-shadow:0 4px 14px rgba(0,0,0,.06);
}

/* ===== PRODUCT GRID ===== */
ul.products{
  display:grid !important;
  grid-template-columns:repeat(auto-fill,minmax(250px,1fr));
  gap:22px;
  align-items:stretch;
  margin-top:18px;
}
@media (max-width:1100px){ ul.products{ grid-template-columns:repeat(3,1fr);} }
@media (max-width:780px){ ul.products{ grid-template-columns:repeat(2,1fr);} }
@media (max-width:480px){ ul.products{ grid-template-columns:1fr;} }

/* ===== PRODUCT CARD ===== */
.avashop-card{
  list-style:none;
  position:relative;
  border-radius:var(--radius);
  overflow:hidden;
  background:var(--glass);
  border:1px solid var(--glass-border);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  box-shadow:0 10px 24px rgba(0,0,0,.08);
  transition:transform .18s ease, box-shadow .25s ease, border-color .25s ease;
}
.avashop-card:hover{
  transform:translateY(-4px);
  box-shadow:0 16px 34px rgba(218,112,214,.28);
  border-color:rgba(255,255,255,0.55);
}

/* ===== IMAGE AREA ===== */
.avashop-card .card-media{
  position:relative;
  display:block;
  width:100%;
  aspect-ratio:1/1; /* prevents triangles */
  overflow:hidden;
  background:linear-gradient(135deg,#ffd1ea 0%,#f0b3ee 100%);
  border-bottom:1px solid rgba(255,255,255,0.35);
}
.avashop-card .card-media .img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  display:block;
  transition:transform .25s ease, opacity .25s ease;
}
.avashop-card .card-media .img.hover{
  position:absolute;
  inset:0;
  opacity:0;
}
.avashop-card:hover .card-media .img.hover{ opacity:1; }
.avashop-card:hover .card-media .img:not(.hover){ transform:scale(1.04); }

/* ===== BADGES ===== */
.avashop-badge{
  position:absolute;
  top:12px;
  right:12px;
  z-index:2;
  padding:8px 12px;
  font-weight:800;
  border-radius:999px;
  background:rgba(255,255,255,0.25);
  border:1px solid rgba(255,255,255,0.45);
  color:#fff;
  text-shadow:0 1px 0 rgba(0,0,0,.08);
  backdrop-filter:blur(6px);
  box-shadow:0 2px 10px rgba(0,0,0,0.12);
}
.avashop-badge.sale{
  background:linear-gradient(135deg,var(--pink-600),var(--orchid));
  border:none;
}
.avashop-badge.new{
  left:12px;
  right:auto;
  background:linear-gradient(135deg,#22c55e,#16a34a);
  border:none;
}

/* ===== CARD BODY ===== */
.avashop-card .card-body{
  padding:16px 16px 18px;
  text-align:right;
  color:var(--ink);
}
.avashop-card .card-title{
  margin:0 0 8px;
  line-height:1.5;
  font-weight:900;
  font-size:1.05rem;
}
.avashop-card .card-title a{
  color:var(--ink);
  text-decoration:none;
}
.avashop-card .card-title a:hover{
  text-decoration:underline;
}

/* ===== PRICE ===== */
/* ===== PRICE (clean, black text – no pink box) ===== */
.price {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent !important; /* remove gradient background */
  color: var(--ink) !important;        /* black / dark grey text */
  font-weight: 800;
  font-size: 1rem;
  padding: 0;                          /* no extra pill padding */
  border-radius: 0;                    /* remove rounded pill look */
  box-shadow: none !important;
}

/* Optional: make old price slightly faded */
.woocommerce ul.products li.product .price del {
  opacity: 0.6;
  color: #777 !important;
  margin-right: 4px;
}

/* Keep RTL spacing tidy */
.woocommerce ul.products li.product .price ins {
  margin-right: 2px;
}

/* ===== RATING ===== */
.star-rating{ color:#f59e0b; }

/* ===== ADD TO CART BUTTON ===== */
.avashop-card .card-actions{
  margin-top:12px;
  display:flex;
  gap:10px;
  align-items:center;
}
.avashop-card .button{
  appearance:none;
  border:none;
  cursor:pointer;
  background:linear-gradient(135deg,var(--pink-600),var(--orchid));
  color:#fff;
  font-weight:900;
  padding:12px 16px;
  border-radius:14px;
  box-shadow:0 8px 18px rgba(218,112,214,.28);
  transition:transform .12s ease, box-shadow .2s ease, filter .2s ease;
}
.avashop-card .button:hover{
  transform:translateY(-2px);
  box-shadow:0 12px 26px rgba(218,112,214,.36);
  filter:brightness(1.05);
}

/* ===== PAGINATION ===== */
.woocommerce nav.woocommerce-pagination ul{
  border:none;
  display:flex;
  gap:8px;
  justify-content:center;
}
.woocommerce nav.woocommerce-pagination ul li{
  border:none;
  margin:0;
}
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span{
  background:var(--glass);
  border:1px solid var(--glass-border);
  backdrop-filter:blur(6px);
  border-radius:999px;
  padding:10px 14px;
  color:var(--ink);
  box-shadow:0 4px 12px rgba(0,0,0,.06);
}
.woocommerce nav.woocommerce-pagination ul li .current{
  background:linear-gradient(135deg,var(--pink),var(--orchid));
  color:#fff;
  border:none;
}

/* ===== NOTICES ===== */
.woocommerce-info,
.woocommerce-message,
.woocommerce-error{
  direction:rtl;
  border-radius:14px !important;
  border:none !important;
  padding:14px 16px !important;
  background:rgba(255,255,255,.8) !important;
  box-shadow:0 6px 16px rgba(0,0,0,.06);
}

/* ===== TOOLBAR SPACING ===== */
.woocommerce .woocommerce-ordering,
.woocommerce .woocommerce-notices-wrapper{ margin-bottom:12px; }

/* ===== RETINA SHARPNESS ===== */
.avashop-card img{ image-rendering:-webkit-optimize-contrast; }

/* ===== SMALL SCREENS ===== */
@media(max-width:480px){
  .shop-hero h1{font-size:1.8rem;}
  .price{font-size:0.9rem;}
  .avashop-card .button{font-size:0.9rem; padding:10px 14px;}
}
/* --- Force modern CSS grid and kill old Woo widths/floats --- */
.woocommerce ul.products,
.woocommerce-page ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important; /* wider min */
  gap: 22px !important;
  align-items: stretch !important;
}

/* Remove legacy layout rules that make items skinny */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  width: auto !important;
  margin: 0 !important;
  float: none !important;
  clear: none !important;
  display: block !important;       /* stop inline-block squeezing */
  box-sizing: border-box !important;
}

/* Some themes add strange flex rules on li.product – neutralize them */
.woocommerce ul.products li.product,
.woocommerce ul.products li.product > * {
  flex: initial !important;
  min-width: 0 !important;
}

/* Remove clearfix pseudo-elements that can affect sizing */
.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none !important;
  content: none !important;
}

/* Our card should behave like a full-width cell */
.avashop-card {
  display: flex;
  flex-direction: column;
  min-width: 0;               /* allow text to wrap properly */
  border-radius: 22px;
}

/* Ensure the media area defines the width and never collapses */
.avashop-card .card-media {
  aspect-ratio: 1 / 1;
  width: 100%;
  min-width: 100%;
}

/* Make sure titles wrap, not stack awkwardly */
.avashop-card .card-title {
  word-break: break-word;
  white-space: normal;
}

/* Optional: if items still look a bit narrow, bump the min cell width */
@media (min-width: 1024px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
  }
}