/*
Theme Name: Eimear Child
Theme URI: https://www.webmandesign.eu/portfolio/eimear-wordpress-theme/
Template: eimear
Author: Your Name
Author URI: https://example.com
Description: Child theme for Eimear
Tags: blog,education,grid-layout,one-column,two-columns,three-columns,four-columns,right-sidebar,accessibility-ready,custom-colors,custom-header,custom-logo,custom-menu,editor-style,featured-image-header,featured-images,footer-widgets,full-width-template,rtl-language-support,sticky-post,theme-options,threaded-comments,translation-ready,block-styles,wide-blocks
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: eimear-child
Domain Path: /languages
*/

/* Child theme CSS here */
/**/

/* === PERFECT BUTTON ALIGNMENT - 5 columns (Fixed height cards) === */

.woocommerce ul.products {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 30px 2% !important;           /* Better spacing */
}

.woocommerce ul.products li.product {
    display: flex !important;
    flex-direction: column !important;
    width: 18.4% !important;           /* 5 columns */
    margin: 0 !important;
    padding: 0 0 25px 0 !important;
    box-sizing: border-box !important;
    height: 100% !important;
    min-height: 420px !important;      /* ← This is the key: forces same card height */
}

/* Title styling - consistent height */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2.woocommerce-loop-product__title {
    font-size: 14.5px !important;
    line-height: 1.35 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    min-height: 3.9em !important;
    margin-bottom: 10px !important;
}

/* Price */
.woocommerce ul.products li.product .price {
    margin-bottom: 12px !important;
}

/* Push Add to Cart button to bottom */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product a.add_to_cart_button,
.woocommerce ul.products li.product .added_to_cart {
    margin-top: auto !important;
    width: 100% !important;
    text-align: center !important;
}

/* Optional: Make button a bit smaller on 5-column layout */
.woocommerce ul.products li.product .add_to_cart_button {
    font-size: 13.5px !important;
    padding: 10px 12px !important;
}

/* Reduce product title font size + control lines shown */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2.woocommerce-loop-product__title,
.woocommerce ul.products li.product .product-title {
    font-size: 15px !important;     /* Was probably 16-18px before */
    line-height: 1.35 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;   /* Shows up to 3 lines */
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    min-height: 3.2em;                  /* Gives space for 3 lines */
    margin-bottom: 10px !important;
}

/* Optional: Make it even smaller if you want more products to show full titles */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 14px !important;     /* Try 14px if 15px is still too big */
	
/* 
 * Child Theme Typography Fix
 * Eimear Child Theme - Font Weight Normalization
 */

/* Ensure Inter and Noto Sans are primary fonts */
:root {
    --font-family-base: 'Inter', 'Noto Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-bold: 700;
}

/* Global font weight reset */
body, body p, body span, body div, body li, body article, body section {
    font-weight: 400 !important;
}

/* Paragraph specific */
p, .entry-content p, .product-description p {
    font-weight: 400 !important;
    line-height: 1.6;
}

/* Links */
a, .link {
    font-weight: 400 !important;
    text-decoration: none;
}

/* Headings - make them actually bold */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-weight: 700 !important;
}

/* WooCommerce Products */
.woocommerce-loop-product__title,
.product_title,
.product-title {
    font-weight: 600 !important;
}

.woocommerce .price,
.product-price,
.product-meta {
    font-weight: 400 !important;
}

/* Buttons */
button, .button, .btn, input[type="button"], input[type="submit"] {
    font-weight: 500 !important;
}

/* Forms */
input, select, textarea, label {
    font-weight: 400 !important;
}
	
/* Brands Page Styling - UPDATED */
.brands-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 40px !important;
    padding: 40px 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

.brand-card {
    background: #fff !important;
    border: 1px solid #eee !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
}

.brand-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-5px) !important;
}

.brand-link {
    display: flex !important;
    flex-direction: column !important;
    text-decoration: none !important;
    color: inherit !important;
    height: 100% !important;
}

.brand-image {
    width: 100% !important;
    height: 120px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #f9f9f9 !important;
    overflow: hidden !important;
}

.brand-image img {
    max-width: 85% !important;
    max-height: 85% !important;
    object-fit: contain !important;
}

.brand-image-placeholder {
    background: #f0f0f0 !important;
    font-weight: 600 !important;
    color: #666 !important;
    padding: 15px !important;
    font-size: 13px !important;
}

.brand-name {
    padding: 15px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    margin: 0 !important;
    color: #333 !important;
}

.brand-card:hover .brand-name {
    color: #0066cc !important;
}

/* Tablet - 2 columns */
@media (max-width: 1024px) {
    .brands-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 30px !important;
    }
    
    .brand-image {
        height: 110px !important;
    }
}

/* Mobile - 1 column */
@media (max-width: 600px) {
    .brands-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .brand-image {
        height: 100px !important;
    }
    
    .brand-name {
        font-size: 14px !important;
        padding: 12px !important;
    }
}