/* ==== STRICT SCOPING – CARD ONLY ON THE REPEATED ITEM ==== */

/* 1) Style ONLY when the class sits directly on the Product Template item */
.wp-block-woocommerce-product-template.product-card-modern {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--pcm-gap, 12px);
  padding: var(--pcm-pad, 14px);
  border-radius: var(--pcm-radius, 18px);
  background: var(--pcm-glass-bg, linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03)));
  border: 1px solid var(--pcm-glass-border, rgba(255,255,255,.12));
  box-shadow: var(--pcm-shadow, 0 10px 30px rgba(0,0,0,.25));
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  isolation: isolate;
}

/* Hover */
.wp-block-woocommerce-product-template.product-card-modern:hover {
  transform: translateY(-4px);
  border-color: color-mix(in oklab, var(--pcm-acc, #7df9ff) 40%, var(--pcm-glass-border, rgba(255,255,255,.12)));
  box-shadow: 0 18px 42px rgba(0,0,0,.35), 0 0 0 1px color-mix(in oklab, var(--pcm-acc, #7df9ff) 18%, transparent);
}

/* Subtle border glow */
.wp-block-woocommerce-product-template.product-card-modern::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background: conic-gradient(from 180deg at 50% 50%, var(--pcm-acc, #7df9ff), var(--pcm-acc-2, #9b5cff), var(--pcm-acc, #7df9ff));
  opacity: .14;
  filter: blur(18px);
  transform: scale(1.02);
  transition: opacity .25s ease;
}
.wp-block-woocommerce-product-template.product-card-modern:hover::before { opacity: .22; }

/* 2) Image, title, price, button — scoped to the strict selector */
.wp-block-woocommerce-product-template.product-card-modern .wp-block-woocommerce-product-image { 
  position: relative; overflow: hidden; border-radius: calc(var(--pcm-radius, 18px) - 6px); aspect-ratio: 1/1;
}
.wp-block-woocommerce-product-template.product-card-modern .wp-block-woocommerce-product-image img {
  width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform .35s ease;
}
.wp-block-woocommerce-product-template.product-card-modern:hover .wp-block-woocommerce-product-image img { transform: scale(1.06); }

.wp-block-woocommerce-product-template.product-card-modern .wp-block-woocommerce-product-title {
  font-weight: 800; font-size: clamp(15px, 1.2vw, 18px); line-height: 1.2;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.wp-block-woocommerce-product-template.product-card-modern .wp-block-woocommerce-product-price {
  font-size: clamp(14px, 1.1vw, 17px); font-weight: 700; gap: 8px; align-items: baseline;
}
.wp-block-woocommerce-product-template.product-card-modern .wp-block-woocommerce-product-price del { opacity: .55; }
.wp-block-woocommerce-product-template.product-card-modern .wp-block-woocommerce-product-price ins {
  text-decoration: none; background: linear-gradient(90deg, var(--pcm-acc, #7df9ff), var(--pcm-acc-2, #9b5cff));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.wp-block-woocommerce-product-template.product-card-modern .wp-block-woocommerce-product-button .wp-element-button {
  width: 100%; justify-content: center; border-radius: 12px; padding: 10px 14px; font-weight: 800; letter-spacing: .02em;
  border: 1px solid rgba(255,255,255,.18);
  background: radial-gradient(120% 120% at 0% 0%, var(--pcm-acc, #7df9ff) 0%, var(--pcm-acc-2, #9b5cff) 40%, transparent 70%),
             linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.04));
  transition: transform .15s ease, box-shadow .2s ease, background-position .2s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,.25); color: #0b0b0e; text-decoration: none;
}
.wp-block-woocommerce-product-template.product-card-modern .wp-block-woocommerce-product-button .wp-element-button:hover {
  transform: translateY(-2px); box-shadow: 0 14px 36px rgba(0,0,0,.32);
}

/* 3) SAFETY RESET — if someone accidentally puts the class on the collection/grid, don't style it */
.wp-block-woocommerce-product-collection.product-card-modern,
.wc-block-grid.product-card-modern,
.wc-block-product-template.product-card-modern:has(.wp-block-woocommerce-product-collection),
.wc-block-grid:has(.product-card-modern) {
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  transform: none !important;
}

/* 4) Legacy All Products grid item support (only the individual item, not the grid) */
.wc-block-grid__product.product-card-modern,
.wc-block-components-product.product-card-modern {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--pcm-gap, 12px);
  padding: var(--pcm-pad, 14px);
  border-radius: var(--pcm-radius, 18px);
  background: var(--pcm-glass-bg, linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03)));
  border: 1px solid var(--pcm-glass-border, rgba(255,255,255,.12));
  box-shadow: var(--pcm-shadow, 0 10px 30px rgba(0,0,0,.25));
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  isolation: isolate;
}
.wc-block-grid__product.product-card-modern:hover,
.wc-block-components-product.product-card-modern:hover { transform: translateY(-4px); }

/* --- NEVER style the UL (template list) as a card --- */
.wp-block-woocommerce-product-template.product-card-modern{
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transform: none !important;
}

/* --- Card on EACH product item (LI) inside that UL --- */
.wp-block-woocommerce-product-template.product-card-modern > li.wc-block-product{
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 10px 30px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.06);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  isolation: isolate;
}

@media (prefers-color-scheme: light){
  .wp-block-woocommerce-product-template.product-card-modern > li.wc-block-product{
    background: linear-gradient(180deg, rgba(255,255,255,.85), rgba(255,255,255,.65));
    border: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 10px 24px rgba(0,0,0,.12), inset 0 1px 0 rgba(255,255,255,.8);
  }
}

.wp-block-woocommerce-product-template.product-card-modern > li.wc-block-product:hover{
  transform: translateY(-4px);
  border-color: color-mix(in oklab, #7df9ff 40%, rgba(255,255,255,.12));
  box-shadow: 0 18px 42px rgba(0,0,0,.35), 0 0 0 1px color-mix(in oklab, #7df9ff 18%, transparent);
}

/* subtle glow */
.wp-block-woocommerce-product-template.product-card-modern > li.wc-block-product::before{
  content:"";
  position:absolute; inset:-1px; border-radius:inherit; pointer-events:none;
  background: conic-gradient(from 180deg at 50% 50%, #7df9ff, #9b5cff, #7df9ff);
  opacity:.14; filter: blur(18px); transform: scale(1.02); transition: opacity .25s;
}
.wp-block-woocommerce-product-template.product-card-modern > li.wc-block-product:hover::before{opacity:.22;}

/* image */
.wp-block-woocommerce-product-template.product-card-modern > li.wc-block-product 
  .wc-block-components-product-image{
  position: relative; overflow:hidden; border-radius: 12px; aspect-ratio:1/1;
}
.wp-block-woocommerce-product-template.product-card-modern > li.wc-block-product 
  .wc-block-components-product-image img{
  width:100%; height:100%; object-fit:cover; transform:scale(1.02); transition:transform .35s ease;
}
.wp-block-woocommerce-product-template.product-card-modern > li.wc-block-product:hover 
  .wc-block-components-product-image img{ transform:scale(1.06); }

/* title */
.wp-block-woocommerce-product-template.product-card-modern > li.wc-block-product 
  h3.wp-block-post-title{
  margin: 2px 0 0; font-weight:800; font-size: clamp(15px,1.2vw,18px); line-height:1.2; text-align:center;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.wp-block-woocommerce-product-template.product-card-modern > li.wc-block-product 
  h3.wp-block-post-title a{ text-decoration:none; color:inherit; }

/* price */
.wp-block-woocommerce-product-template.product-card-modern > li.wc-block-product 
  .wc-block-components-product-price{
  font-size: clamp(14px,1.1vw,17px); font-weight:700; gap:8px; display:flex; justify-content:center;
}
.wp-block-woocommerce-product-template.product-card-modern > li.wc-block-product 
  .wc-block-components-product-price del{ opacity:.55; }
.wp-block-woocommerce-product-template.product-card-modern > li.wc-block-product 
  .wc-block-components-product-price ins{
  text-decoration:none; background:linear-gradient(90deg,#7df9ff,#9b5cff);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}

/* button */
.wp-block-woocommerce-product-template.product-card-modern > li.wc-block-product 
  .wp-block-woocommerce-product-button .wp-element-button{
  width:100%; justify-content:center; border-radius:12px; padding:10px 14px; font-weight:800; letter-spacing:.02em;
  border:1px solid rgba(255,255,255,.18);
  background: radial-gradient(120% 120% at 0% 0%, #7df9ff 0%, #9b5cff 40%, transparent 70%),
             linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.04));
  transition: transform .15s ease, box-shadow .2s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,.25); color:#0b0b0e; text-decoration:none;
}
.wp-block-woocommerce-product-template.product-card-modern > li.wc-block-product 
  .wp-block-woocommerce-product-button .wp-element-button:hover{
  transform: translateY(-2px); box-shadow: 0 14px 36px rgba(0,0,0,.32);
}

/* === Product Card Modern Layout Fix === */

/* restore the grid columns */
.wc-block-product-template.product-card-modern {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* individual cards */
.wc-block-product-template.product-card-modern > li.wc-block-product {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,.3);
  transition: transform .25s ease, box-shadow .25s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.wc-block-product-template.product-card-modern > li.wc-block-product:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(0,0,0,.35);
  border-color: rgba(125,249,255,.6);
}

/* tidy inner bits */
.wc-block-product-template.product-card-modern > li .wc-block-components-product-image {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 1/1;
}
.wc-block-product-template.product-card-modern > li .wc-block-components-product-image img {
  width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease;
}
.wc-block-product-template.product-card-modern > li:hover .wc-block-components-product-image img {
  transform: scale(1.05);
}
.wc-block-product-template.product-card-modern > li h3.wp-block-post-title {
  text-align: center; font-size: 1rem; font-weight: 700; margin: .5rem 0;
}
.wc-block-product-template.product-card-modern > li .wp-element-button {
  border-radius: 12px;
  font-weight: 700;
  padding: .6rem 1rem;
  background: linear-gradient(90deg, #7df9ff, #9b5cff);
  border: none;
  color: #000;
  transition: transform .2s ease, box-shadow .2s ease;
}
.wc-block-product-template.product-card-modern > li .wp-element-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
}


/* Make the UL a container and grid */
.wc-block-product-template.product-card-modern{
  container-type: inline-size;           /* container queries! */
  display: grid !important;
  gap: 1.5rem;
  list-style: none; margin: 0; padding: 0;
  grid-template-columns: 1fr;           /* default (very narrow) */
}

/* Step up columns based on the UL's own width */
@container (min-width: 520px){
  .wc-block-product-template.product-card-modern{
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}
@container (min-width: 780px){
  .wc-block-product-template.product-card-modern{
    grid-template-columns: repeat(3, minmax(0,1fr));
  }
}
@container (min-width: 1040px){
  .wc-block-product-template.product-card-modern{
    grid-template-columns: repeat(4, minmax(0,1fr)); /* 4 across */
  }
}

/* Respect the Collection’s data-columns cap (category pages, etc.) */
.wp-block-woocommerce-product-collection[data-columns="3"]
  .wc-block-product-template.product-card-modern{@container (min-width: 780px){grid-template-columns: repeat(3,1fr)}}
.wp-block-woocommerce-product-collection[data-columns="2"]
  .wc-block-product-template.product-card-modern{@container (min-width: 520px){grid-template-columns: repeat(2,1fr)}}
/* Add similar lines if you ever use data-columns="5" etc. */

/* Fallback for older browsers without container queries */
@supports not (container-type: inline-size){
  .wc-block-product-template.product-card-modern{
    grid-template-columns: repeat(4, minmax(0,1fr));
  }
  @media (max-width: 1040px){
    .wc-block-product-template.product-card-modern{grid-template-columns: repeat(3,1fr)}
  }
  @media (max-width: 780px){
    .wc-block-product-template.product-card-modern{grid-template-columns: repeat(2,1fr)}
  }
  @media (max-width: 520px){
    .wc-block-product-template.product-card-modern{grid-template-columns: 1fr}
  }
}

/* ===============================
   MODERN PRODUCT GRID – FIXED LAYOUT
   =============================== */

/* 1. Reset the UL so it becomes the grid container */
ul.wc-block-product-template.product-card-modern {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem !important;
  list-style: none;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}

/* 2. Each LI acts as its own card (no nested display:grid in UL) */
ul.wc-block-product-template.product-card-modern > li.wc-block-product {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform .25s ease, box-shadow .25s ease;
}

ul.wc-block-product-template.product-card-modern > li.wc-block-product:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(0,0,0,.35);
  border-color: rgba(125,249,255,.5);
}

/* 3. Image zone */
ul.wc-block-product-template.product-card-modern > li.wc-block-product 
  .wc-block-components-product-image {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

ul.wc-block-product-template.product-card-modern > li.wc-block-product 
  .wc-block-components-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
ul.wc-block-product-template.product-card-modern > li.wc-block-product:hover 
  .wc-block-components-product-image img {
  transform: scale(1.05);
}

/* 4. Title, price, button */
ul.wc-block-product-template.product-card-modern h3.wp-block-post-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0.6rem 0;
  text-align: center;
}
ul.wc-block-product-template.product-card-modern .wc-block-components-product-price {
  text-align: center;
  font-weight: 600;
  margin-bottom: .5rem;
}
ul.wc-block-product-template.product-card-modern .wp-element-button {
  border-radius: 12px;
  padding: 0.6rem 1rem;
  font-weight: 700;
  border: none;
  background: linear-gradient(90deg, #7df9ff, #9b5cff);
  color: #000;
  transition: transform .2s ease, box-shadow .2s ease;
}
ul.wc-block-product-template.product-card-modern .wp-element-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,.3);
}

/* 5. Responsive refinements */
@media (max-width: 1024px) {
  ul.wc-block-product-template.product-card-modern {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}
@media (max-width: 680px) {
  ul.wc-block-product-template.product-card-modern {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
}

/* --- PRODUCT GRID REFINED --- */

/* main UL = grid, max 4 columns */
ul.wc-block-product-template.product-card-modern {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)); /* exactly 4 across on large */
  gap: 1.5rem !important;
  list-style: none;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;   /* remove any background */
  border: none !important;
  box-shadow: none !important;
}

/* responsive steps */
@media (max-width: 1400px){
  ul.wc-block-product-template.product-card-modern {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 800px){
  ul.wc-block-product-template.product-card-modern {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}
@media (max-width: 520px){
  ul.wc-block-product-template.product-card-modern {
    grid-template-columns: 1fr;
  }
}

/* individual cards */
ul.wc-block-product-template.product-card-modern > li.wc-block-product {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: transparent; /* removes that card-holder backdrop */
  border-radius: 18px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

/* card inner “glass” styling (apply only to image/title/price/button zone if you want accent background) */
ul.wc-block-product-template.product-card-modern > li.wc-block-product .wc-block-components-product-image {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}
ul.wc-block-product-template.product-card-modern > li.wc-block-product .wc-block-components-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
ul.wc-block-product-template.product-card-modern > li.wc-block-product:hover .wc-block-components-product-image img {
  transform: scale(1.05);
}


/* === 1) NUKE BACKGROUND / GRADIENTS ON THE PRODUCT TEMPLATE LIST === */
ul.wc-block-product-template.product-card-modern,
.wp-block-woocommerce-product-template.product-card-modern {
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  border: 0 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* If any :before/:after glow was added earlier, turn it off */
ul.wc-block-product-template.product-card-modern::before,
ul.wc-block-product-template.product-card-modern::after,
.wp-block-woocommerce-product-template.product-card-modern::before,
.wp-block-woocommerce-product-template.product-card-modern::after {
  content: none !important;
}

/* Some themes add flow backgrounds via layout classes—neutralize those too */
.wc-block-product-template__responsive.columns-4.wc-block-product-template.product-card-modern.wp-block-woocommerce-product-template.is-layout-flow.wp-block-product-template-is-layout-flow {
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

/* === 2) BUTTON = PURE #4EC0DA (NO GRADIENTS) === */
ul.wc-block-product-template.product-card-modern > li.wc-block-product .wp-element-button,
.wp-block-woocommerce-product-template.product-card-modern .wp-element-button {
  background: #4EC0DA !important;
  background-image: none !important;
  color: #0b0b0e !important;           /* readable on cyan */
  border: 1px solid #3aa7c1 !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease !important;
}

ul.wc-block-product-template.product-card-modern > li.wc-block-product .wp-element-button:hover,
.wp-block-woocommerce-product-template.product-card-modern .wp-element-button:hover {
  background-color: #3fb5d1 !important; /* slightly darker hover */
  box-shadow: 0 6px 16px rgba(0,0,0,.25) !important;
  transform: translateY(-1px);
}

ul.wc-block-product-template.product-card-modern > li.wc-block-product .wp-element-button:active,
.wp-block-woocommerce-product-template.product-card-modern .wp-element-button:active {
  background-color: #36a8c3 !important; /* pressed */
  transform: translateY(0);
  box-shadow: none !important;
}

ul.wc-block-product-template.product-card-modern > li.wc-block-product .wp-element-button:focus-visible,
.wp-block-woocommerce-product-template.product-card-modern .wp-element-button:focus-visible {
  outline: 2px solid #4EC0DA !important;
  outline-offset: 2px !important;
}

/* belt-and-braces: remove any gradient from the LI wrapper itself */
ul.wc-block-product-template.product-card-modern > li.wc-block-product {
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important; /* if you want totally flat cards */
  border: 0 !important;        /* optional: remove borders too */
}

/* Make each product card a flex column that stretches */
ul.wc-block-product-template.product-card-modern > li.wc-block-product{
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 100%;
}

/* Keep the grid items stretching to equal heights per row */
ul.wc-block-product-template.product-card-modern{
  align-items: stretch;            /* grid children (LIs) stretch */
}

/* Pin the Add-to-basket area to the bottom */
ul.wc-block-product-template.product-card-modern > li.wc-block-product .wp-block-woocommerce-product-button,
ul.wc-block-product-template.product-card-modern > li.wc-block-product .wc-block-components-product-button,
ul.wc-block-product-template.product-card-modern > li.wc-block-product .wc-block-grid__product-add-to-cart{
  margin-top: auto !important;     /* ← magic line */
}

/* Optional: tighten title/price spacing so the button lands consistently */
ul.wc-block-product-template.product-card-modern > li.wc-block-product h3.wp-block-post-title{
  margin: .5rem 0 .25rem;
}
ul.wc-block-product-template.product-card-modern > li.wc-block-product .wc-block-components-product-price{
  margin: 0 0 .5rem 0 !important;
}


/* === Typography + Hover polish === */

/* Bigger, centered prices */
ul.wc-block-product-template.product-card-modern > li.wc-block-product .wc-block-components-product-price,
ul.wc-block-product-template.product-card-modern > li.wc-block-product .wc-block-grid__product-price {
  text-align: center !important;
  font-size: clamp(18px, 1.4vw, 22px) !important;
  line-height: 1.15 !important;
  font-weight: 700 !important;
  margin: 0 0 .6rem 0 !important;
}
ul.wc-block-product-template.product-card-modern > li.wc-block-product .wc-block-components-product-price .woocommerce-Price-amount,
ul.wc-block-product-template.product-card-modern > li.wc-block-product .wc-block-grid__product-price .woocommerce-Price-amount {
  font-size: 1em !important; /* ensure the whole amount scales together */
}

/* Product name thinner + centered */
ul.wc-block-product-template.product-card-modern > li.wc-block-product h3.wp-block-post-title {
  font-weight: 500 !important;      /* thinner look */
  text-align: center !important;
  font-size: clamp(16px, 1.2vw, 20px) !important;
  line-height: 1.25 !important;
  margin: .4rem 0 .35rem !important;
}
ul.wc-block-product-template.product-card-modern > li.wc-block-product h3.wp-block-post-title a {
  text-decoration: none !important;
}

/* Stronger image zoom on hover */
ul.wc-block-product-template.product-card-modern > li.wc-block-product .wc-block-components-product-image {
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 1 / 1;
}
ul.wc-block-product-template.product-card-modern > li.wc-block-product .wc-block-components-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform .45s cubic-bezier(.22,.61,.36,1), filter .45s ease;
  will-change: transform;
}
ul.wc-block-product-template.product-card-modern > li.wc-block-product:hover .wc-block-components-product-image img {
  transform: scale(1.12);            /* more prominent zoom */
  filter: saturate(1.05) contrast(1.02);
}

/* Optional: add a subtle lift on hover for the whole card */
ul.wc-block-product-template.product-card-modern > li.wc-block-product {
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
ul.wc-block-product-template.product-card-modern > li.wc-block-product:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(0,0,0,.35);
}

/* === Add to Basket button color inversion on hover === */

/* Default: blue background, white text */
ul.wc-block-product-template.product-card-modern > li.wc-block-product .wp-element-button,
.wp-block-woocommerce-product-template.product-card-modern .wp-element-button {
  background: #4EC0DA !important;
  color: #ffffff !important;
  border: 1px solid #4EC0DA !important;
  border-radius: 12px !important;
  font-weight: 600 !important;
  text-transform: none !important;
  transition: all 0.25s ease !important;
}

/* Hover: white background, blue text */
ul.wc-block-product-template.product-card-modern > li.wc-block-product .wp-element-button:hover,
.wp-block-woocommerce-product-template.product-card-modern .wp-element-button:hover {
  background: #ffffff !important;
  color: #4EC0DA !important;
  border-color: #4EC0DA !important;
  box-shadow: 0 8px 20px rgba(78,192,218,0.25) !important;
  transform: translateY(-2px);
}

/* Active/pressed state */
ul.wc-block-product-template.product-card-modern > li.wc-block-product .wp-element-button:active {
  transform: translateY(0);
  box-shadow: none !important;
}

/* Focus outline for accessibility */
ul.wc-block-product-template.product-card-modern > li.wc-block-product .wp-element-button:focus-visible {
  outline: 2px solid #4EC0DA !important;
  outline-offset: 2px !important;
}


/* === Sleek Modern Filters – matching product cards === */
.shop-filters-modern {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: flex-end;
  justify-content: flex-start;
  background: transparent;
  padding: 1rem 0;
  margin-bottom: 2rem;
}

/* Each filter group */
.shop-filters-modern > * {
  flex: 1 1 220px;
  background: #1b1b1d; /* same dark base as product cards */
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  transition: border-color .25s ease, transform .25s ease;
}
.shop-filters-modern > *:hover {
  border-color: #4EC0DA;
  transform: translateY(-2px);
}

/* Titles */
.shop-filters-modern label,
.shop-filters-modern .wc-block-product-filter__title {
  display: block;
  font-weight: 400;
  font-size: 14px;
  color: #cfcfcf;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

/* Dropdowns + inputs */
.shop-filters-modern select,
.shop-filters-modern input[type="text"],
.shop-filters-modern input[type="search"] {
  width: 100%;
  background: #2a2a2d;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 0.55rem 0.8rem;
  font-size: 14px;
  font-weight: 400;
  transition: border-color .25s ease, background-color .25s ease;
}
.shop-filters-modern select:focus,
.shop-filters-modern input:focus {
  border-color: #4EC0DA;
  background-color: #202022;
  outline: none;
}

/* Checkboxes / radios */
.shop-filters-modern .wc-block-product-filter__list-item input {
  accent-color: #4EC0DA;
}
.shop-filters-modern .wc-block-product-filter__list-item label {
  color: #d6d6d6;
  font-size: 14px;
  font-weight: 300;
  transition: color .2s ease;
}
.shop-filters-modern .wc-block-product-filter__list-item:hover label {
  color: #4EC0DA;
}

/* Buttons — simple cyan base with clean inversion on hover */
.shop-filters-modern button,
.shop-filters-modern .button {
  background: #4EC0DA;
  color: #ffffff;
  border: 1px solid #4EC0DA;
  border-radius: 10px;
  padding: 0.6rem 1.1rem;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: none;
}
.shop-filters-modern button:hover,
.shop-filters-modern .button:hover {
  background: #ffffff;
  color: #4EC0DA;
  border-color: #4EC0DA;
}

/* Align checkbox or list filters vertically with spacing */
.shop-filters-modern .wc-block-product-filter__list {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

/* Responsive stacking */
@media (max-width: 768px) {
  .shop-filters-modern {
    flex-direction: column;
  }
  .shop-filters-modern > * {
    width: 100%;
  }
}


/* ===========================
   FILTERS — sidebar-friendly stack
   =========================== */

/* Make the filter wrapper a single-column grid (no side-by-side squeezing) */
.shop-filters-modern{
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 12px !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 0 24px 0 !important;
}

/* Each filter tile */
.shop-filters-modern > *{
  width: 100% !important;
  background: #1c1c1f;                       /* flat dark base to match cards */
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.18);
}

/* Titles / labels – thinner */
.shop-filters-modern .wc-block-product-filter__title,
.shop-filters-modern label{
  font-weight: 400;
  font-size: 15px;
  color: #e9e9e9;
  margin: 0 0 8px 0;
}

/* Text inputs & selects */
.shop-filters-modern select,
.shop-filters-modern input[type="text"],
.shop-filters-modern input[type="search"]{
  width: 100%;
  background: #26262a;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 400;
}
.shop-filters-modern select:focus,
.shop-filters-modern input:focus{
  outline: none;
  border-color: #4EC0DA;
}

/* Checkbox/radio lists */
.shop-filters-modern .wc-block-product-filter__list{
  display: grid;
  gap: 6px;
}
.shop-filters-modern .wc-block-product-filter__list-item input{
  accent-color: #4EC0DA;
}
.shop-filters-modern .wc-block-product-filter__list-item label{
  font-weight: 300;
  color: #d6d6d6;
}

/* Buttons — simple inversion, no animation */
.shop-filters-modern .button,
.shop-filters-modern button{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  width: 100%;
  background: #4EC0DA;
  color: #ffffff;
  border: 1px solid #4EC0DA;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;
  transition: none;
  cursor: pointer;
}
.shop-filters-modern .button:hover,
.shop-filters-modern button:hover{
  background: #ffffff;
  color: #4EC0DA;
  border-color: #4EC0DA;
}

/* Price slider bits — keep simple and on-brand */
.shop-filters-modern input[type="range"]{
  width: 100%;
  appearance: none;
  height: 4px;
  background: #2d2d31;
  border-radius: 999px;
}
.shop-filters-modern input[type="range"]::-webkit-slider-thumb{
  appearance: none;
  width: 16px; height: 16px;
  background: #4EC0DA;
  border-radius: 50%;
  border: 2px solid #0f0f11;
}
.shop-filters-modern input[type="range"]::-moz-range-thumb{
  width: 16px; height: 16px;
  background: #4EC0DA;
  border: 2px solid #0f0f11;
  border-radius: 50%;
}

/* Tag/rating lists can get tall — add gentle max-height with scroll */
.shop-filters-modern .wc-block-product-filter__list{
  max-height: 260px;
  overflow: auto;
}
.shop-filters-modern .wc-block-product-filter__list::-webkit-scrollbar{
  height: 8px; width: 8px;
}
.shop-filters-modern .wc-block-product-filter__list::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,0.14);
  border-radius: 10px;
}


/* === Glassy filter tiles (transparent, readable) === */
.shop-filters-modern > *{
  background: rgba(255,255,255,0.06) !important;  /* see-through */
  border: 1px solid rgba(255,255,255,0.16) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important; /* Safari */
  box-shadow: 0 2px 10px rgba(0,0,0,0.14) !important;
}

/* Slight hover lift without extra effects */
.shop-filters-modern > *:hover{
  background: rgba(255,255,255,0.09) !important;
  border-color: rgba(255,255,255,0.24) !important;
}

/* Inputs/selects inside tiles — glassy too, but a touch darker for contrast */
.shop-filters-modern select,
.shop-filters-modern input[type="text"],
.shop-filters-modern input[type="search"]{
  background: rgba(0,0,0,0.28) !important;
  border: 1px solid rgba(255,255,255,0.18) !important;
}

/* Scroll lists (tags/rating) get a lighter glass strip so labels read clearly */
.shop-filters-modern .wc-block-product-filter__list{
  background: rgba(0,0,0,0.18) !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
  border-radius: 10px;
  padding: 6px;
}

/* Price range track + thumbs to match glass theme */
.shop-filters-modern input[type="range"]{
  background: rgba(255,255,255,0.22) !important;
}
.shop-filters-modern input[type="range"]::-webkit-slider-thumb{
  background: #4EC0DA !important;
  border: 2px solid rgba(0,0,0,0.6) !important;
}
.shop-filters-modern input[type="range"]::-moz-range-thumb{
  background: #4EC0DA !important;
  border: 2px solid rgba(0,0,0,0.6) !important;
}

/* Titles thinner, on-glass */
.shop-filters-modern .wc-block-product-filter__title,
.shop-filters-modern label{
  color: #f2f2f2 !important;
  font-weight: 400 !important;
}
.shop-filters-modern .wc-block-product-filter__list-item label{
  color: #e0e0e0 !important;
  font-weight: 300 !important;
}


/* === Glass filters: darker + more transparent === */
:root{
  --sfm-bg: rgba(12,12,14,0.25);   /* main tile bg */
  --sfm-bg-hover: rgba(12,12,14,0.4);
  --sfm-border: rgba(255,255,255,0.08);
  --sfm-border-hover: rgba(255,255,255,0.14);
  --sfm-input-bg: rgba(0,0,0,0.45);
  --sfm-list-bg: rgba(0,0,0,0.38);
}

.shop-filters-modern > *{
  background: var(--sfm-bg) !important;
  border: 0px solid var(--sfm-border) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.22) !important;
}
.shop-filters-modern > *:hover{
  background: var(--sfm-bg-hover) !important;
  border-color: var(--sfm-border-hover) !important;
}

/* Inputs / selects inside tiles */
.shop-filters-modern select,
.shop-filters-modern input[type="text"],
.shop-filters-modern input[type="search"]{
  background: var(--sfm-input-bg) !important;
  border: 0px solid rgba(255,255,255,0.12) !important;
  color: #f5f5f5 !important;
}

/* Lists (tags/rating) */
.shop-filters-modern .wc-block-product-filter__list{
  background: var(--sfm-list-bg) !important;
  border: 0px solid rgba(255,255,255,0.10) !important;
  border-radius: 10px;
  padding: 6px;
}

/* Titles & labels—slightly dimmer to fit darker glass */
.shop-filters-modern .wc-block-product-filter__title,
.shop-filters-modern label{
  color: #e6e6e6 !important;
  font-weight: 400 !important;
}
.shop-filters-modern .wc-block-product-filter__list-item label{
  color: #d8d8d8 !important;
  font-weight: 300 !important;
}

/* Range track/thumb to match */
.shop-filters-modern input[type="range"]{
  background: rgba(255,255,255,0.18) !important;
}
.shop-filters-modern input[type="range"]::-webkit-slider-thumb{
  background: #4EC0DA !important;
  border: 2px solid rgba(0,0,0,0.65) !important;
}
.shop-filters-modern input[type="range"]::-moz-range-thumb{
  background: #4EC0DA !important;
  border: 2px solid rgba(0,0,0,0.65) !important;
}


.shop-filters-modern > .wp-block-woocommerce-product-filter-removable-chips, .shop-filters-modern > .wp-block-woocommerce-product-filter-clear-button, .shop-filters-modern > p, .shop-filters-modern > h3{
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	padding: 0 !important;
	margin: 0 0 8px 0 !important;
	border-radius: 0 !important;
}

.shop-filters-modern > *:hover {
    background: transparent !important;
    border-color: transparent !important;
}

.wc-block-product-filter-removable-chips__items .wc-block-product-filter-removable-chips__item{
	width:100% !important;
	background: var(--sfm-bg) !important;
	border: 0px solid var(--sfm-border) !important;
	backdrop-filter: blur(12px) !important;
	-webkit-backdrop-filter: blur(12px) !important;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22) !important;
	border-radius: 14px !important;
	font-size:12px !important;
	margin: 5px 0px !important;
}

.wc-block-product-filter-removable-chips__label{
	display: flex !important;
	width:100% !important;
	align-items: left !important;
	padding:5px 5px !important;
}

.shop-filters-modern button{
width:unset !important;
}

.wp-block-buttons>.wp-block-button.has-custom-width .wp-block-button__link{
width: 100% !important;
}

:where(.wc-block-product-filter-checkbox-list__input-wrapper){
display: inline-block !important;
margin: 0px 10px !important;
}

.wc-block-product-filters__apply .wp-element-button{
border-radius: 14px !important;
}

.wc-block-product-filters__open-overlay{
	text-align: center !important;
}

:where(.wc-block-product-filters) .wc-block-product-filters__open-overlay {
	display: block !importnat;
	padding: 20px 0px !important;
}

