/*
Theme Name: Quimimport
Theme URI: http://quimimport.cu
Description: A child theme for the Astra Theme
Author: Mauro Molina Mazon
Author URI: http://example.com
Template: astra
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: child theme
Text Domain: twenty-twenty-two-child
*/

:root {
    --primary: #00AB59;
    --secondary: #005c54;
}

/* Custom Styles for Services Shortcode */
.services-container {
    background-color: #1B1B1B;
    padding: 2rem;
    border-radius: 15px;
    font-family: sans-serif;
    color: #fff;
    margin-bottom: 4rem;
}

.service-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2rem 0;
}

.service-item:not(:last-child) {
    border-bottom: 1px solid #4a5352;
}

.service-content {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    flex-grow: 1;
}

.service-number {
    font-size: 2.5rem;
    color: #c2a26b;
    flex-shrink: 0;
    font-family: 'Belleza', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
}

.service-text {
    width: 80%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.service-title {
    font-size: 2rem;
    margin: 0 0 0.5rem 0;
    color: #fff;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-description {
    margin: 0 0 1rem 0;
    color: #d3d3d3;
    line-height: 1.6;
}

.service-read-more {
    color: #c2a26b;
    text-decoration: none !important;
    border-bottom: 1px solid #c2a26b;
    padding-bottom: 2px;
    align-self: flex-start;
    transition: color 0.3s, border-bottom-color 0.3s;
    font-weight: 800 !important;
    display: contents;
}

.service-read-more:hover {
    color: #fff;
    border-bottom-color: #fff;
}

.service-image-container {
    max-width: 200px;
    flex-shrink: 0;
}

.service-image-container .service-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}

.service-image-container img {
    object-fit: cover !important;
    width: 300px !important;
    height: 120px !important;
    box-shadow: 0px 0px 0 #00000070 !important;
    border-radius: 20px !important;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .service-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .service-image-container {
        max-width: 100%;
        margin-top: 1.5rem;
    }
}

/*
 * ========================================================================
 * Custom Styles for Products
 * ========================================================================
 */

/* General Product Card Styles (used in shortcode and archive) */
.product-card {
    background-color: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.product-card a {
    text-decoration: none;
    color: inherit;
}

.product-card-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-card-image img {
    transform: scale(1.05);
}

.product-card .entry-header,
.product-card .entry-summary,
.product-card .entry-footer {
    padding: 1rem 1.5rem;
}

.product-card .entry-title {
    font-size: 1.25rem;
    margin: 0 0 0.5rem;
    font-family: 'Belleza', sans-serif;
    color: #1B1B1B;
}

.product-card .entry-summary {
    flex-grow: 1;
    padding-top: 0;
}

.product-card .product-read-more {
    display: inline-block;
    color: #c2a26b;
    font-weight: bold;
    border-bottom: 2px solid transparent;
    transition: border-bottom-color 0.3s ease;
}

.product-card .product-read-more:hover {
    border-bottom-color: #c2a26b;
}

/* Homepage Shortcode Specific Styles */
.home-products-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.home-products-container .product-card .entry-title {
    text-align: center;
    padding: 1.5rem;
}

/* Archive Page Styles */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.page-header .page-title {
    font-family: 'Belleza', sans-serif;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #1B1B1B;
}

/* Pagination Styles */
.pagination {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
}

.nav-links .page-numbers {
    display: block;
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.nav-links .page-numbers:hover,
.nav-links .page-numbers.current {
    background-color: #1B1B1B;
    color: #fff;
    border-color: #1B1B1B;
}

/* Single Product Page Styles */
.single-product-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .single-product-layout {
        grid-template-columns: 1fr 1fr;
    }
}

.single-product-layout .product-gallery img {
    width: 100%;
    height: auto;
    border-radius: 15px;
}

.single-product-layout .entry-title {
    font-family: 'Belleza', sans-serif;
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

.single-product-layout .entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.product-card-title {
    color: var(--primary);
}

.product-card-title a {
    text-decoration: none !important;
}

/*
 * ========================================================================
 * Custom Styles for Latest Events (Posts) Shortcode
 * ========================================================================
 */

.events-section-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
    font-family: sans-serif;
}

.event-card {
    border-radius: 15px;
    background-color: #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.event-card-image-wrapper {
    position: relative;
    aspect-ratio: 16 / 10;
}

.event-card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-card-date {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--primary);
    color: #fff;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    text-align: center;
    line-height: 1;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.event-card-date .event-month {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.event-card-date .event-day {
    display: block;
    font-size: 1.5rem;
}

.event-card-content {
    padding: 1.5rem;
}

.event-card-title {
    margin: 0 0 0.75rem 0;
    font-size: 1.3rem;
    font-family: 'Belleza', sans-serif;
}

.event-card-title a {
    color: #1B1B1B;
    text-decoration: none;
    transition: color 0.3s ease;
}

.event-card-title a:hover {
    color: var(--primary);
}

.event-card-excerpt {
    color: #666;
    line-height: 1.6;
}

/*
 * ========================================================================
 * Custom Styles for Products Page Template
 * ========================================================================
 */

.products-template-page {
    background-color: #005c54;
    padding: 4rem 2rem; /* Add some padding */
}

/* Overriding default page title color for this template */
.products-template-page .page-header .page-title {
    color: #fff;
    margin-bottom: 4rem;
}

.products-template-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.product-template-card {
    background-color: #1b1b1b;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-template-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.product-template-card .card-link-wrapper {
    text-decoration: none;
    display: block;
}

.product-template-card .card-image-container {
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.product-template-card .card-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-template-card:hover .card-image-container img {
    transform: scale(1.1);
}

.product-template-card .card-content {
    padding: 1.5rem;
}

.product-template-card .card-title {
    color: #fff;
    font-family: 'Belleza', sans-serif;
    font-size: 1.4rem;
    margin: 0;
    text-align: center;
}

/* Pagination Styles for Products Template */
.products-template-page .pagination {
    margin-top: 4rem;
    text-align: center;
}

.products-template-page .page-numbers {
    display: inline-block;
    padding: 0.75rem 1.25rem;
    margin: 0 0.25rem;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
}

.products-template-page .page-numbers:hover,
.products-template-page .page-numbers.current {
    background-color: var(--primary);
    color: #fff;
}

/* Responsive Grid for Products Template */
@media (max-width: 992px) {
    .products-template-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .products-template-grid {
        grid-template-columns: 1fr;
    }
    .products-template-page {
        padding: 3rem 1rem;
    }
}

/* formulario de contacto */

.flex-form-contact p{
    display: flex;
    gap: 20px;
}

.flex-form-contact p span {
    width: 50% !important;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
    background-color: transparent !important;
    border: 1px solid hsl( from #FFFFFF h s l / 0.25 );
    border-radius: 5px;
}

.wpcf7 input[type="text"]:hover,
.wpcf7 input[type="email"]:hover,
.wpcf7 textarea:hover {
    border: 1px solid #dca54a;
}

.wpcf7 input[type="text"]::placeholder,
.wpcf7 input[type="email"]::placeholder,
.wpcf7 textarea::placeholder {
    color: #f1f1f1;
}

.wpcf7-submit {
    padding: 10px 20px !important;
    background-color: #dca54a !important;
    font-weight: 300 !important;
}

.wpcf7 textarea {
    max-height: 150px !important;
}

@media (max-width: 420px) {
    .flex-form-contact {
        flex-direction: column;
    }

    .flex-form-contact p span {
        width: 100% !important;
    }
}