/*
Theme Name: Jarvani Catalog
Theme URI: https://example.com/
Author: Paola Ponce
Description: Tema clásico a medida con Bootstrap y WooCommerce en modo catálogo.
Version: 0.1.0
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: jarvani
*/

.site-logo {
    width: 220px !important;
    height: auto;
    display: block;
}

:root {
    /* Typography */
    --font-body: "Albert Sans", sans-serif;
    --font-heading: "Albert Sans", sans-serif;
    --bs-body-font-family: var(--font-body);
    /* Colors */
    --color-primary: #ea1d4e;
    --color-text: #000000;
    --color-white: #ffffff;
    --color-black: #000000;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
}

h1 {
    font-size: 60px;
    line-height: 1.1;
    font-weight: 700;
}

h2 {
    color: var(--color-primary);
    font-size: clamp(1.75rem, 4vw, 3.125rem);
    line-height: 1.1;
    font-weight: 700;
    text-transform: uppercase;
}

h2.product {
    font-size: 30px;
    line-height: 1.2;
    font-weight: 600;
    color: var(--color-primary);
}

h2.footer {
    font-size: 30px;
    line-height: 1.2;
    font-weight: 600;
    color: var(--color-whitey);
    text-transform: uppercase;
}

h3 {
    font-size: 20px;
    line-height: 1.3;
    font-weight: 600;
}

h3.subtitle {
    color: var(--color-primary);
    font-size: 20px;
    line-height: 1.3;
    font-weight: 400;
    text-transform: uppercase;
}


/* CATEGORIAS */

.category-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
    height: 100%;
}

.category-button__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 110px;
    height: 110px;
    background: #ea1d4e;
    border-radius: 50%;
}

.category-button__icon img {
    display: block;
    width: 58%;
    height: 58%;
    object-fit: contain;
}

.category-button .subtitle {
    margin: 0;
    font-size: 1.125rem;
    line-height: 1.2;
}

.category-button__title {
    margin: 0;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 300;
    text-transform: uppercase;
    color: var(--color-primary);
}

.section-space {
    padding-block: clamp(1rem, 4vw, 1rem) !important;
}

.product-card__media,
.card-body {
    background: #f7f7f7;
}

.catalog-filter-toggle {
    background: transparent;
    border: 1px solid #ea1d4e;
    color: #ea1d4e;
    border-radius: 0;
    font-weight: 600;
    padding: 0.75rem 1rem;
}

.catalog-filter-toggle:hover,
.catalog-filter-toggle:focus {
    background: #ea1d4e;
    border-color: #ea1d4e;
    color: #fff;
}


/* PRODUCTOS */

article.product-detail {
    background: #f7f7f7;
}

.btn-document {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #d9d9d9;
    color: #212529;
    border: 0;
    border-radius: 999px;
    padding: 0.65rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
}

.btn-document:hover,
.btn-document:focus {
    background: #ea1d4e;
    color: #fff;
}


/* FILTROS */

.catalog-filter-toggle {
    width: 100%;
    margin-bottom: 1rem;
    font-weight: 600;
}

.wc-block-product-filter-checkbox-list__item[data-wp-context*='"depth":0'] {
    font-weight: 600;
}

.wc-block-product-filter-checkbox-list__item[data-wp-context*='"depth":1'] {
    padding-inline-start: 24px;
}

.wc-block-product-filter-checkbox-list__item[data-wp-context*='"depth":2'] {
    padding-inline-start: 48px;
}

select {
    padding: 8px;
    font-size: 14px;
}

@media (max-width: 991.98px) {
    .catalog-sidebar {
        width: 100%;
        padding: 0;
        margin-bottom: 1.5rem;
    }
    .wp-block-woocommerce-product-filters {
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .category-button {
        gap: 14px;
    }
    .category-button__icon {
        width: 80px;
        height: 80px;
    }
    .category-button__icon img {
        width: 80px;
        height: 80px;
    }
    .category-button .subtitle {
        font-size: 1rem;
    }
    .category-button__title {
        font-size: 18px;
    }
    .knowledge__panel {
        align-items: stretch !important;
    }
    .knowledge__image {
        min-height: 300px;
        background-size: cover;
        background-position: 65% center;
        background-repeat: no-repeat;
    }
    .woocommerce ul.products.columns-3 {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .woocommerce ul.products.columns-3 li.product {
        width: 100% !important;
        max-width: 100%;
        margin: 0 !important;
        float: none !important;
    }
    .woocommerce ul.products li.product .product-card,
    .woocommerce ul.products li.product article {
        width: 100%;
    }
    .shop-toolbar {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }
    .woocommerce .woocommerce-result-count,
    .woocommerce .woocommerce-ordering {
        float: none;
        width: 100%;
        margin: 0;
        text-align: center;
    }
    .woocommerce .woocommerce-ordering select {
        width: min(100%, 320px);
        margin: 0 auto;
        display: block;
    }
    .wp-block-group {
        padding: 0 24px;
    }
}

@media (max-width: 575.98px) {
    .knowledge__image {
        min-height: 240px;
        background-position: 68% center;
    }
    .knowledge__panel h2 {
        font-size: 2rem;
        line-height: 1.05;
        margin-bottom: 1.25rem !important;
    }
    .knowledge__panel h3 {
        font-size: 1.25rem;
        line-height: 1.3;
    }
    .knowledge__panel p {
        font-size: 1rem;
        line-height: 1.55;
    }
}

@media (max-width: 399.98px) {
    .category-button__icon {
        width: 120px;
        height: 120px;
    }
    .category-button__icon img {
        height: 58px;
    }
}