/*
Theme Name:   Wolmart Child
Theme URI:    https://organicsfood.ro
Description:  Wolmart Child Theme - Customizări SEO și funcționalități personalizate
Author:       ORGANICS HGM SRL
Author URI:   https://organicsfood.ro
Template:     wolmart
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:  wolmart-child
*/

/*************** CUSTOM CSS - ORGANICSFOOD.RO  ***************/

/*************** FIX: Afișează heading-urile H2, H3 în descrierea produsului  ***************/
/* Tema ascunde implicit toate H2-urile din tab-uri, dar vrem să le vedem în conținut */
.woocommerce-tabs .wc-tab h2,
.woocommerce-tabs .wc-tab h3,
.woocommerce-tabs .entry-content h2,
.woocommerce-tabs .entry-content h3,
.woocommerce-tabs .tab-pane h2,
.woocommerce-tabs .tab-pane h3 {
  display: block !important;
  margin: 2rem 0 1.5rem;
  font-weight: 600;
  font-size: 2rem;
  line-height: 1.3;
  color: #333;
}

.woocommerce-tabs .wc-tab h3,
.woocommerce-tabs .entry-content h3,
.woocommerce-tabs .tab-pane h3 {
  font-size: 1.6rem;
  margin: 1.5rem 0 1rem;
}

/* Ascunde doar heading-ul de titlu al tab-ului (primul H2), nu toate H2-urile */
.woocommerce-tabs .wc-tab > h2:first-child {
  display: none !important;
}

/*************** ADAUGĂ AICI CSS-UL TĂU PERSONALIZAT  ***************/

/*************** UX: "Citește mai mult" în Short Description ***************/
.short-description-read-more {
  margin-top: 1.5rem !important;
  margin-bottom: 0 !important;
}

.read-more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--wolmart-primary-color, #2879FE); /* Culoarea principală a temei Wolmart */
  font-size: 1.4rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.read-more-link:hover {
  color: var(--wolmart-primary-color-hover, #2977d8); /* Ton mai închis la hover */
  gap: 0.7rem; /* Animație săgeată - se îndepărtează */
}

.read-more-link i {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.read-more-link:hover i {
  transform: translateY(3px); /* Săgeata coboară la hover */
}

/* Mobile optimization */
@media (max-width: 767px) {
  .short-description-read-more {
    text-align: center;
    margin-top: 2rem !important;
  }

  .read-more-link {
    font-size: 1.5rem;
    padding: 1rem 1.5rem;
    background: #f5f5f5;
    border-radius: 5px;
  }

  .read-more-link:hover {
    background: #e8e8e8;
  }
}

/*************** SEO FIX: Blog Post H1 Styling ***************/
/* Fix: Convertim H2 în H1 pentru SEO și păstrăm același design */

/* Post title H1 - același styling ca H2 original */
.single-post .post-title.entry-title {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 2rem;
  color: #222;
  font-family: inherit;
}

/* Semantic HTML5: Post header și footer */
.single-post .post-header {
  margin-bottom: 2rem;
}

.single-post .post-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}

/* Responsive: Mobile H1 */
@media (max-width: 991px) {
  .single-post .post-title.entry-title {
    font-size: 2.4rem;
  }
}

@media (max-width: 767px) {
  .single-post .post-title.entry-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 479px) {
  .single-post .post-title.entry-title {
    font-size: 1.8rem;
  }
}

/*************** SEO FIX: Category/Archive Page H1 Styling ***************/
/* Fix: Convertim H2.page-title în H1 pentru SEO pe paginile de categorii/arhive */

/* H1 pentru titlurile categoriilor/arhivelor - păstrează același design ca H2 original */
.page-title-bar h1.page-title {
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  color: #222;
  font-family: inherit;
}

/* Subtitle pentru categorii */
.page-title-bar h3.page-subtitle {
  font-size: 1.6rem;
  font-weight: 400;
  margin-top: 1rem;
  color: #666;
}

/* Responsive: Tablet */
@media (max-width: 991px) {
  .page-title-bar h1.page-title {
    font-size: 2.8rem;
  }

  .page-title-bar h3.page-subtitle {
    font-size: 1.4rem;
  }
}

/* Responsive: Mobile */
@media (max-width: 767px) {
  .page-title-bar h1.page-title {
    font-size: 2.4rem;
  }

  .page-title-bar h3.page-subtitle {
    font-size: 1.3rem;
    margin-top: 0.8rem;
  }
}

@media (max-width: 479px) {
  .page-title-bar h1.page-title {
    font-size: 2rem;
  }

  .page-title-bar h3.page-subtitle {
    font-size: 1.2rem;
  }
}
