/*
 Theme Name:   Organio Child
 Theme URI:    https://exemplu.ro/
 Description:  Child theme pentru Organio (patch funcție ct_get_posts_of_grid)
 Author:       Weplantmarketing.eu
 Author URI:   https://weplantmarketing.eu/
 Template:     organio
 Version:      1.0.0
*/

/* Ascunde linkul "View cart" adăugat după click */
a.added_to_cart.wc-forward { 
  display: none !important; 
}

/* Elimină bifa/icoana adăugată pe butonul de Add to cart */
.single_add_to_cart_button.added::after,
.added_to_cart::after,
.added_to_cart_icon {
  content: none !important;
  display: none !important;
}

/* Unele teme adaugă și un spațiu/margine când apare linkul */
.added_to_cart { 
  margin: 0 !important; 
  padding: 0 !important; 
}

/* Stilizare Product Categories 
.widget_product_categories,
.widget_product_categories ul {
    background-color: #f1e9d2; 
    padding-left: 18px;        
} */


/* === BOX: fundal + padding pentru WP Widgets în Elementor === */
.blog-sidebar .elementor-widget-wp-widget-categories .elementor-widget-container,
.blog-sidebar .elementor-widget-wp-widget-recent-posts .elementor-widget-container,
.blog-sidebar .elementor-widget-container > .widget_recent_entries,
.blog-sidebar .elementor-widget-container > .widget_categories {
  background: #f1e9d2;
  border-radius: 8px;
  padding: 18px 20px;
  margin-bottom: 25px;
}
/* === BOX: fundal + padding pentru ambele widgeturi din sidebar === */
.elementor-widget-sidebar .widget_product_categories .widget-content,
.elementor-widget-sidebar .widget_ct_recent_posts .widget-content {
  background: #f1e9d2;
  border-radius: 8px;
  padding: 18px 20px;
  margin-bottom: 25px;
}

/* === TITLURI widget (același stil la ambele) === */
.elementor-widget-sidebar .widget_product_categories .widget-title,
.elementor-widget-sidebar .widget_ct_recent_posts .widget-title {
  font-size: 18px !important;   /* egal cu Product Categories din shop */
  font-weight: 700;
  line-height: 1.2;
  color: #111;
  margin: 0 0 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid #ED3237;
}

/* === LISTE – dimensiuni identice pentru linkuri === */
/* Product Categories */
.elementor-widget-sidebar .widget_product_categories .product-categories {
  list-style: none; margin: 0; padding: 0;
}
.elementor-widget-sidebar .widget_product_categories .product-categories li {
  padding: 6px 0;
  border-bottom: 1px solid #e4dccc;
}
.elementor-widget-sidebar .widget_product_categories .product-categories li:last-child {
  border-bottom: 0;
}
.elementor-widget-sidebar .widget_product_categories .product-categories li a {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 15px; color: #111; text-decoration: none;
}
.elementor-widget-sidebar .widget_product_categories .product-categories li a:hover {
  color: #ED3237;
}
.elementor-widget-sidebar .widget_product_categories .product-categories .count {
  background: #fff; color: #111; font-size: 13px;
  padding: 2px 6px; border-radius: 4px; margin-left: 8px;
}

/* Recent Posts (ct_recent_posts) – facem layout ca o listă, text la 15px ca la categorii */
.elementor-widget-sidebar .widget_ct_recent_posts .posts-list.recent {
  margin: 0; padding: 0;
}
.elementor-widget-sidebar .widget_ct_recent_posts .entry-brief {
  display: flex; gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #e4dccc;
}
.elementor-widget-sidebar .widget_ct_recent_posts .entry-brief:last-child {
  border-bottom: 0;
}
.elementor-widget-sidebar .widget_ct_recent_posts .entry-media img {
  width: 56px; height: 56px; object-fit: cover; border-radius: 6px;
}
.elementor-widget-sidebar .widget_ct_recent_posts .entry-title,
.elementor-widget-sidebar .widget_ct_recent_posts .entry-title a {
  font-size: 15px;              /* = mărimea linkurilor din categorii */
  line-height: 1.3;
  font-weight: 600;
  color: #111; text-decoration: none;
}
.elementor-widget-sidebar .widget_ct_recent_posts .entry-title a:hover {
  color: #ED3237;
}
.elementor-widget-sidebar .widget_ct_recent_posts .item-date {
  font-size: 12px; color: #666; margin-top: 2px;
}

/* Siguranță: dacă tema mai injectează un wrapper generic .widget */
.elementor-widget-sidebar .widget.widget_product_categories,
.elementor-widget-sidebar .widget.widget_ct_recent_posts {
  margin-bottom: 25px;
}

/* === BOX Product Categories (WooCommerce) === */
.woocommerce.widget_product_categories {
  background: #f1e9d2;
  border-radius: 8px;
  padding: 18px 20px;
  margin-bottom: 25px;
}

/* === Titlu "Categorii" === */
.woocommerce.widget_product_categories h5,
.woocommerce.widget_product_categories h2,
.woocommerce.widget_product_categories .widget-title {
  font-size: 18px !important;   /* la fel ca sidebar-ul din shop */
  font-weight: 700;
  color: #111;
  margin: 0 0 15px;
  padding-bottom: 6px;
  border-bottom: 2px solid #ED3237;
  line-height: 1.2;
}

/* === Listă categorii === */
.woocommerce.widget_product_categories .product-categories {
  list-style: none;
  margin: 0;
  padding: 0;
}
.woocommerce.widget_product_categories .product-categories li {
  font-size: 15px;
  padding: 6px 0;
  border-bottom: 1px solid #e4dccc;
}
.woocommerce.widget_product_categories .product-categories li:last-child {
  border-bottom: none;
}
.woocommerce.widget_product_categories .product-categories li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #111;
  text-decoration: none;
}
.woocommerce.widget_product_categories .product-categories li a:hover {
  color: #ED3237;
}

/* === Badge count === */
.woocommerce.widget_product_categories .product-categories .count {
  background: #fff;
  color: #111;
  font-size: 13px;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 8px;
}

/* === Subcategorii (children) === */
.woocommerce.widget_product_categories .product-categories .children {
  margin-left: 15px;
  margin-top: 4px;
  border-left: 2px solid #e4dccc;
  padding-left: 10px;
}
.woocommerce.widget_product_categories .product-categories .children li {
  font-size: 14px;
  border-bottom: none;
}
.woocommerce.widget_product_categories .product-categories .children li a {
  justify-content: space-between;
  color: #444;
}
.woocommerce.widget_product_categories .product-categories .children li a:hover {
  color: #ED3237;
}

/* container */
#respond.comment-respond{
  background:#f1e9d2;
  border:1px solid #e6e1d6;
  border-radius:12px;
  padding:20px 24px;
  margin:30px 0;
}

/* titlu */
#respond .comment-reply-title{
  font-size:20px;
  font-weight:700;
  margin:0 0 15px;
  padding-bottom:6px;
  border-bottom:2px solid #ED3237;
  color:#111;
}
#respond .comment-reply-title small a{
  font-size:14px;
  color:#555;
  text-decoration:underline;
}

/* textarea */
#respond .comment-form-comment textarea#comment{
  width:100%;
  border:1px solid #ccc;
  border-radius:8px;
  padding:12px;
  font-size:15px;
  background:#fff;
}

/* buton */
#respond .form-submit input#submit.submit{
  background:#ED3237;
  border:none;
  border-radius:6px;
  color:#fff;
  font-size:15px;
  font-weight:600;
  padding:10px 20px;
  cursor:pointer;
  transition:background .2s ease-in-out;
}
#respond .form-submit input#submit.submit:hover{
  background:#ba2528;
}

/* mesaje auxiliare */
#respond .logged-in-as,
#respond .required-field-message{
  font-size:13px;
  color:#444;
}

/* nu afisa cine e logat in blocul de comentarii */
#respond .logged-in-as {
  display: none !important;
}
/* Grid de căutare – 4 coloane flex, fără masonry */
#ct_blog_grid-search .ct-grid-inner {
  display: flex;
  flex-wrap: wrap;
  margin-left: -15px;
  margin-right: -15px;
}

#ct_blog_grid-search .ct-grid-inner .grid-item {
  box-sizing: border-box;
  padding-left: 15px;
  padding-right: 15px;
  margin-bottom: 30px;

  /* 4 coloane pe desktop */
  flex: 0 0 25%;
  max-width: 25%;
}

/* 3 coloane */
@media (max-width: 1199px) {
  #ct_blog_grid-search .ct-grid-inner .grid-item {
    flex: 0 0 33.3333%;
    max-width: 33.3333%;
  }
}

/* 2 coloane */
@media (max-width: 991px) {
  #ct_blog_grid-search .ct-grid-inner .grid-item {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* 1 coloană */
@media (max-width: 575px) {
  #ct_blog_grid-search .ct-grid-inner .grid-item {
    flex: 0 0 100%;
    max-width: 100%;
  }
}
/* ——— AF Product Gallery (shortcode) ——— */
.af-pg{
  display: grid;
  grid-template-columns: 75px 1fr;   /* ~20% / 80% într-un boxed normal */
  column-gap: 18px;
  align-items: start;
}

.af-pg__thumbs{
  display: flex;
  flex-direction: column;
  gap: 10px;                /* nu folosim gap global al temei */
  max-height: 78vh;         /* scroll dacă sunt multe imagini */
  overflow: auto;
  margin: 0;
  padding: 0;
}

.af-pg__thumb{
  display: block;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  border-radius: 8px;
  outline-offset: 2px;
}

.af-pg__thumb-img{
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  opacity: .7;
  transition: opacity .2s, transform .2s, box-shadow .2s;
}
.af-pg__thumb:hover .af-pg__thumb-img{ opacity: .9; transform: translateY(-1px); }
.af-pg__thumb.is-active .af-pg__thumb-img{
  opacity: 1;
  box-shadow: 0 0 0 2px #e23b35 inset; /* roșul brandului */
}

.af-pg__main{ width: 100%; }
.af-pg__figure{ margin: 0; }
.af-pg__img{
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
}

/* Responsive: sub 992px punem thumbs jos, pe rând */
@media (max-width: 991.98px){
  .af-pg{
    grid-template-columns: 1fr;
    row-gap: 12px;
  }
  .af-pg__thumbs{
    flex-direction: row;
    max-height: none;
  }
  .af-pg__thumb{ width: 74px; }
}

/* 1) Ascunde săgeata nativă a browserului doar în blocul shortcode-ului */
.af-cta2 .af-cta2__select select.af-cta2__qty {
  -webkit-appearance: none !important; /* Safari/Chrome iOS/macOS */
  -moz-appearance: none !important;    /* Firefox */
  appearance: none !important;         /* Standard */
  background-image: none !important;   /* Edge/Chrome: elimină orice icon implicit */
  padding-right: 2.25rem;              /* loc pentru săgeata temei */
}

/* 2) Ascunde săgeata specifică IE/Edge legacy */
.af-cta2 .af-cta2__select select.af-cta2__qty::-ms-expand {
  display: none;
}

/* (opțional) Aliniere verticală și înălțime coerentă cu tema */
.af-cta2 .af-cta2__select select.af-cta2__qty {
  line-height: 1.3;
  height: 56px;          /* ajustează la înălțimea folosită de tema ta */
}