/**
Theme Name: Astra Child
Author: Brainstorm Force
Author URI: http://wpastra.com/about/
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
Template: astra
*/

/* =========================
   Woo Categories (Astra)
   - card rotunjit
   - titlu + count sub imagine (fără overlay)
   ========================= */

/* Card */
.woocommerce ul.products li.product-category,
.woocommerce-page ul.products li.product-category{
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 18px rgba(0,0,0,.08);
}

/* Link pe coloană: img sus, titlu jos */
.woocommerce ul.products li.product-category > a,
.woocommerce-page ul.products li.product-category > a{
  display: flex !important;
  flex-direction: column !important;
  text-decoration: none;
}

/* Imagine (poți ajusta height după gust) */
.woocommerce ul.products li.product-category > a > img,
.woocommerce-page ul.products li.product-category > a > img{
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
  margin: 0 !important;
}

/* Titlu sub imagine */
.woocommerce ul.products li.product-category > a > .woocommerce-loop-category__title,
.woocommerce-page ul.products li.product-category > a > .woocommerce-loop-category__title{
  position: static !important;
  margin: 0 !important;
  padding: 16px 18px 18px !important;
  background: #f4f4f4;
  text-align: center;
  line-height: 1.25;
}

/* Count sub titlu */
.woocommerce ul.products li.product-category .woocommerce-loop-category__title .count,
.woocommerce-page ul.products li.product-category .woocommerce-loop-category__title .count{
  display: block;
  margin-top: 6px;
  background: transparent !important;
  padding: 0 !important;
  font-weight: 400;
  font-size: .9em;
  opacity: .75;
}
/* =========================
   MOBIL: list view (thumb stânga + titlu dreapta)
   Suprascrie stilul de "card"
   ========================= */
@media (max-width: 768px){

  /* 1 categorie pe rând + eliminăm efectul de card */
  .woocommerce ul.products li.product-category,
  .woocommerce-page ul.products li.product-category{
    width: 100% !important;
    float: none !important;
    clear: both !important;

    /* override card desktop */
    border-radius: 0 !important;
    overflow: visible !important;
    box-shadow: none !important;
    background: transparent !important;

    margin: 0 !important;
    padding: 14px 12px !important;
    box-sizing: border-box !important;
    border-bottom: 1px solid #eee !important;
  }

  /* rând flex: imagine stânga + text dreapta */
  .woocommerce ul.products li.product-category > a,
  .woocommerce-page ul.products li.product-category > a{
    display: flex !important;
    flex-direction: row !important;     /* IMPORTANT: anulăm column de pe desktop */
    align-items: center !important;
    gap: 14px !important;

    position: relative !important;
    padding: 0 !important;
    min-height: 86px;
  }

  /* imaginea din stânga */
  .woocommerce ul.products li.product-category > a > img,
  .woocommerce-page ul.products li.product-category > a > img{
    width: 72px !important;
    height: 72px !important;
    flex: 0 0 72px !important;

    margin: 0 !important;
    display: block !important;
    object-fit: contain !important;
  }

  /* titlu + count (fără fundal/padding de card) */
  .woocommerce ul.products li.product-category > a > h2.woocommerce-loop-category__title,
  .woocommerce-page ul.products li.product-category > a > h2.woocommerce-loop-category__title{
    position: static !important;
    transform: none !important;
    inset: auto !important;

    /* override card desktop */
    background: transparent !important;
    padding: 0 !important;

    margin: 0 !important;
    flex: 1 1 auto !important;
    text-align: center !important;
    line-height: 1.2 !important;

    font-size: 16px !important;
    white-space: normal !important;
    word-break: break-word !important;
  }

  .woocommerce ul.products li.product-category > a > h2.woocommerce-loop-category__title .count,
  .woocommerce-page ul.products li.product-category > a > h2.woocommerce-loop-category__title .count{
    display: block !important;
    margin-top: 6px !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    opacity: .70 !important;

    background: transparent !important;
    padding: 0 !important;
  }
}

/* Buton inapoi la categoria parinte */
.rt-back-parent{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(0,0,0,.08);
  text-decoration: none !important;
  color: inherit;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.rt-back-icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(0,0,0,.06);
  transition: transform .18s ease;
}

.rt-back-text{
  font-weight: 700;
  letter-spacing: .2px;
}

/* Hover: mic lift + icon slide */
.rt-back-parent:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0,0,0,.12);
  opacity: .95;
}

.rt-back-parent:hover .rt-back-icon{
  transform: translateX(-2px);
}

/* Focus accesibil */
.rt-back-parent:focus-visible{
  outline: 3px solid rgba(0,0,0,.25);
  outline-offset: 3px;
}
/* Sfarsit Buton inapoi la categoria parinte */