/*
Theme Name: OceanWP Child
Theme URI: https://1001kdm.co.il
Author: 1001kdm
Author URI: https://1001kdm.co.il
Description: Child theme for OceanWP
Version: 1.0
Template: oceanwp
Text Domain: oceanwp-child
*/

/* Woo archive: hide Add to Cart */
body.woocommerce ul.products li.product .button { display: none; }

/* Woo archive: product title size */
.woocommerce ul.products li.product li.title a { font-size: 20px; }

/* Hero title inline */
.elementor-element.hero-title .elementor-widget-container { display: inline-block; }

/* Footer callout layout */
.store-callout .icon-box-icon,
.store-callout .icon-box-heading { display: table-cell; vertical-align: middle; }
.store-callout .icon-box-icon { height: 1em; width: 1em; line-height: 1em; }
.store-callout .icon-box-icon i { color: #5b4f4f; font-size: 34px; margin-right: 15px; }
.store-callout .icon-box-heading {
  font-size: 15px; font-weight: 400; margin: 0; color: #fff;
  letter-spacing: 1px; text-transform: capitalize;
}
@media (max-width: 767px){
  .store-callout .icon-box-icon { display: none; }
  .store-callout .icon-box-heading { display: block; text-align: center; }
}

/* Footer borders & misc */
#footer-widgets .contact-info-widget i,
#footer-widgets .oceanwp-recent-posts li,
#footer-widgets .social-widget li a,
#footer-widgets .woocommerce ul.product_list_widget li { border-color: rgba(255,255,255,.2); }
#footer-widgets .price del, #footer-widgets del .amount { color: #ddd; }
#footer-widgets .tagcloud a {
  background-color: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.1);
}
#footer-widgets .tagcloud a:hover {
  background-color: rgba(255,255,255,.2);
  color: #fff;
  border-color: rgba(255,255,255,.2);
}

/* Dropdown size */
.dropdown-menu, .dropdown-menu * { font-size: 14px; }

/* Single product title size */
.single-product .product_title { font-size: 20px !important; }

/* Woo archive: hide short description */
.elementor-location-archive .elementor-widget-wc-archive-products .elementor-grid .woo-desc { display: none !important; }

/* Hide altEmail in category form (cover both IDs) */
#catgeory-form div#altEmail_container,
#category-form div#altEmail_container { display: none !important; }

/* Skip to content (accessibility) – was missing */
.ea11y-skip-to-content-link { position: absolute !important; left: -9999px; }
.ea11y-skip-to-content-link:focus { position: static !important; left: auto; }

/* Product category description – improve readability */
body.tax-product_cat .term-description h2,
body.tax-product_cat .term-description h3 {
  font-size: 22px !important;
  line-height: 1.3;
}
body.tax-product_cat .term-description,
body.tax-product_cat .term-description p,
body.tax-product_cat .term-description li {
  font-size: 19px !important;
  line-height: 1.9;
}

.kdm-related-articles-title {
    font-size: 2em; /* כמו H2 כברירת מחדל */
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}

.kdm-related-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.kdm-related-article {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.kdm-related-article-link {
    display: block;
    text-decoration: none;
    color: #111111;
    height: 100%;
}

.kdm-related-article-thumb img {
    width: 100%;
    height: auto;
    display: block;
}

.kdm-related-article-content {
    padding: 12px 14px 14px;
}

.kdm-related-article-heading {
    font-size: 18px;
    margin: 0 0 8px;
}

.kdm-related-article-excerpt {
    font-size: 14px;
    margin: 0;
    line-height: 1.6;
}

.kdm-related-article:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

/* אזור מאמרים – מקסימום רוחב ולמרכז את הבלוק */
.kdm-related-articles {
    margin: 40px auto 10px;
    font-family: Arial, Helvetica, sans-serif;
    max-width: 1140px;
    padding: 0 15px;
}

/* כשיש רק מאמר אחד – עדיין GRID, רק מצמצמים וממרכזים את הכרטיס */
.kdm-related-articles-count-1 .kdm-related-articles-grid {
    grid-template-columns: minmax(260px, 480px);
    justify-content: center;
}

.kdm-related-articles-count-1 .kdm-related-article {
    max-width: 480px;
}

.search-results .products .product-category {
    display: none !important;
}