/*
 Theme Name: Astra Child
 Theme URI: http://example.com/astra-child/
 Description: A custom child theme for Astra.
 Author: MaxiArmbables
 Author URI: http://example.com
 Template: astra
 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
*/
/*
 * Homepage Custom Styles for MaxiArmables
 */

/* === General Spacing and Font Adjustments === */
body {
    font-family: 'Poppins', sans-serif; /* Example: Use a modern, readable font */
    color: #333;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif; /* Example: A bold, clean font for headings */
    color: #333; /* Default heading color */
}

/* Adjust default Gutenberg block spacing if needed */
.wp-block-group {
    margin-top: 0;
    margin-bottom: 0;
}

/* === Hero Section Specific Styles === */
/* Ensure text in hero is centered and has proper line height for readability */
.wp-block-cover h1 {
    line-height: 1.2;
}

/* === Why MaxiArmables Section === */
.why-maxiarmables-section .wp-block-column {
    padding: 20px;
}

.why-maxiarmables-section img {
    margin-bottom: 15px;
}

.why-maxiarmables-section h3 {
    font-size: 1.3em;
    margin-bottom: 10px;
}

.why-maxiarmables-section p {
    font-size: 0.95em;
    line-height: 1.6;
}

/* === Featured Categories Section === */
.featured-categories-section .category-card {
    display: block; /* Make the whole card clickable */
    text-decoration: none; /* Remove underline from links */
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); /* Subtle shadow */
    margin-bottom: 20px; /* Space between cards */
}

.featured-categories-section .category-card:hover {
    transform: translateY(-5px); /* Lift effect on hover */
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.featured-categories-section .category-card img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover; /* Crop image to fit */
    border-radius: 8px 8px 0 0; /* Match card border radius */
    transition: transform 0.3s ease;
}

.featured-categories-section .category-card:hover img {
    transform: scale(1.05); /* Slight zoom on hover */
}

.featured-categories-section .category-card h3 {
    font-size: 1.2em;
    margin: 15px 0 10px;
    color: #333;
    padding: 0 15px;
}

/* === Products Section (Novedades / Lo Más Vendido) === */
.products-section .wc-block-grid__product { /* Targets individual product items in WooCommerce blocks */
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 15px; /* Add some internal padding */
    text-align: center;
}

.products-section .wc-block-grid__product:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.products-section .wc-block-grid__product .wc-block-grid__product-image {
    margin-bottom: 15px;
}

.products-section .wc-block-grid__product .wc-block-grid__product-title {
    font-size: 1.1em;
    margin-bottom: 10px;
}

.products-section .wc-block-grid__product .price {
    font-size: 1.2em;
    font-weight: bold;
    color: #E91E63; /* Accent color for price */
    margin-bottom: 10px;
}

/* Adjust Add to Cart button styles if necessary (Astra handles this well, but for custom touch) */
.products-section .wc-block-grid__product .wp-block-button__link {
    background-color: #0073AA; /* Example primary color */
    color: #ffffff;
    border-radius: 5px;
    padding: 8px 20px;
    font-size: 0.9em;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.products-section .wc-block-grid__product .wp-block-button__link:hover {
    background-color: #005A87; /* Darker on hover */
}

/* === Testimonials Section === */
.testimonials-section {
    background-color: #f0f0f0; /* Light background for contrast */
}

.testimonials-section .testimonial-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin: 10px; /* Space between testimonial cards */
}

.testimonials-section .testimonial-card p {
    font-size: 1em;
    line-height: 1.7;
    margin-bottom: 15px;
}

.testimonials-section .star-rating {
    color: #FFC107; /* Star color (yellow) */
    font-size: 1.2em;
    margin-bottom: 10px;
}

/* === Blog Section === */
.blog-section .wp-block-latest-posts__list {
    list-style: none; /* Remove default list styling */
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid */
    gap: 20px;
}

.blog-section .wp-block-latest-posts__list li {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-section .wp-block-latest-posts__list li:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.blog-section .wp-block-latest-posts__list .wp-block-latest-posts__featured-image {
    height: 200px;
    overflow: hidden;
}

.blog-section .wp-block-latest-posts__list .wp-block-latest-posts__featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-section .wp-block-latest-posts__list li:hover .wp-block-latest-posts__featured-image img {
    transform: scale(1.05);
}

.blog-section .wp-block-latest-posts__list a {
    text-decoration: none;
    color: #333;
    display: block;
    padding: 15px;
}

.blog-section .wp-block-latest-posts__list .wp-block-latest-posts__post-title {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 10px;
}

.blog-section .wp-block-latest-posts__list .wp-block-latest-posts__post-excerpt {
    font-size: 0.9em;
    color: #555;
}

/* === Mobile Responsiveness === */
@media (max-width: 768px) {
    .wp-block-cover h1 {
        font-size: 2.5em !important; /* Adjust font size for mobile */
    }

    .wp-block-cover p {
        font-size: 1em !important;
    }

    .wp-block-columns {
        flex-wrap: wrap; /* Stack columns on small screens */
    }

    .wp-block-column {
        flex-basis: 100% !important; /* Full width for columns on mobile */
        margin-bottom: 30px;
    }

    .wp-block-columns:last-child .wp-block-column:last-child {
        margin-bottom: 0; /* Remove extra margin on last column */
    }

    .featured-categories-section .category-card {
        margin-bottom: 30px; /* More space between cards */
    }

    .products-section .wc-block-grid__product {
        margin-bottom: 20px; /* Space between products */
    }
}