/* ==================================================
   KIPET - ESTILOS GLOBALES
   ================================================== */

:root {
    --kipet-font: 'Manrope', Arial, sans-serif;
}


/* ==================================================
   1. TIPOGRAFÍA GENERAL
   ================================================== */

body {
    --theme-font-family: var(--kipet-font);
    --theme-font-size: 16px;
    --theme-font-weight: 400;
    --theme-line-height: 1.65;

    font-family: var(--kipet-font) !important;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.65;
}

p,
li,
label,
input,
textarea,
select {
    font-family: var(--kipet-font) !important;
}


/* ==================================================
   2. TÍTULOS GENERALES
   ================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--kipet-font) !important;
}

h1 {
    --theme-font-size: 42px !important;
    --theme-font-weight: 700 !important;
    --theme-line-height: 1.15 !important;

    font-size: 42px !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
}

h2 {
    --theme-font-size: 32px !important;
    --theme-font-weight: 700 !important;
    --theme-line-height: 1.2 !important;

    font-size: 32px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
}

h3 {
    --theme-font-size: 24px !important;
    --theme-font-weight: 600 !important;
    --theme-line-height: 1.25 !important;

    font-size: 24px !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
}

h4 {
    font-size: 20px !important;
    font-weight: 600 !important;
}

h5 {
    font-size: 18px !important;
    font-weight: 600 !important;
}

h6 {
    font-size: 16px !important;
    font-weight: 600 !important;
}


/* ==================================================
   3. TÍTULOS DE PÁGINA / ARCHIVOS
   Tienda, Perros, Gatos, Marcas, etc.
   ================================================== */

.hero-section .page-title,
.entry-header .page-title {
    --theme-font-size: 32px !important;
    --theme-font-weight: 700 !important;
    --theme-line-height: 1.2 !important;

    font-family: var(--kipet-font) !important;
    font-size: 32px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
}


/* ==================================================
   4. MENÚ PRINCIPAL
   ================================================== */

[data-id="menu"] > ul > li > a {
    --theme-font-size: 14px !important;
    --theme-font-weight: 600 !important;

    font-family: var(--kipet-font) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}


/* ==================================================
   5. SUBMENÚ
   ================================================== */

[data-id="menu"] .sub-menu a {
    --theme-font-size: 14px !important;
    --theme-font-weight: 500 !important;

    font-family: var(--kipet-font) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}


/* ==================================================
   6. BOTONES
   ================================================== */

button,
.button,
.wp-element-button,
.wp-block-button__link,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    font-family: var(--kipet-font) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}


/* ==================================================
   7. WOOCOMMERCE - PRODUCTOS
   ================================================== */

.woocommerce,
.woocommerce-page {
    font-family: var(--kipet-font) !important;
}

.woocommerce-loop-product__title {
    font-family: var(--kipet-font) !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
}

.price,
.woocommerce-Price-amount {
    font-family: var(--kipet-font) !important;
    font-size: 16px;
    font-weight: 700;
}


/* ==================================================
   8. TEXTOS SECUNDARIOS
   ================================================== */

small,
.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-breadcrumb {
    font-family: var(--kipet-font) !important;
    font-size: 13px;
}


/* ==================================================
   9. RESPONSIVE
   ================================================== */

@media (max-width: 767px) {

    body {
        --theme-font-size: 15px;
        font-size: 15px;
    }

    h1 {
        --theme-font-size: 34px !important;
        font-size: 34px !important;
    }

    h2 {
        --theme-font-size: 28px !important;
        font-size: 28px !important;
    }

    h3 {
        --theme-font-size: 22px !important;
        font-size: 22px !important;
    }

    .hero-section .page-title,
    .entry-header .page-title {
        --theme-font-size: 28px !important;
        font-size: 28px !important;
    }
}

/* ==================================================
   KIPET - FOOTER
   Legal + Compra segura
   ================================================== */


/* -------------------------
   TÍTULOS
   ------------------------- */

.kipet-footer-legal h3,
.kipet-footer-seguridad h3,
.kipet-footer-contacto h3 {
    position: relative;

    margin: 0 0 28px !important;
    padding-left: 28px;

    font-size: 30px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;

    color: #EBE7DE !important;
}


/* Barra decorativa */
.kipet-footer-legal h3::before,
.kipet-footer-seguridad h3::before,
.kipet-footer-contacto h3::before {
    content: "";

    position: absolute;
    left: 0;
    top: 50%;

    width: 4px;
    height: 48px;

    background: #C0B3A0;

    transform: translateY(-50%);
}


/* -------------------------
   LEGAL
   ------------------------- */

.kipet-footer-legal {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.kipet-footer-legal a {
    display: block;

    margin-bottom: 8px;

    font-size: 17px;
    line-height: 1.4;

    color: #EBE7DE !important;
    text-decoration: none !important;

    transition: color .25s ease;
}

.kipet-footer-legal a:hover {
    color: #AE8E67 !important;
}

/* -------------------------
   CONTACTO
   ------------------------- */

.kipet-footer-contacto {
    width: 100%;
    max-width: 320px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    color: #EBE7DE;
}


/* Lista */
.kipet-contact-list {
    width: 100%;
}


/* Cada dato */
.kipet-footer-contacto .kipet-contact-item {
    width: 100%;

    display: flex;
    align-items: flex-start;

    gap: 11px;
    margin-bottom: 14px;

    font-size: 17px;
    line-height: 1.5;

    color: #EBE7DE;
}


/* Iconos */
.kipet-footer-contacto .kipet-contact-item svg {
    width: 20px;
    height: 20px;

    min-width: 20px;

    margin-top: 2px;

    stroke: #C0B3A0;
}


/* Enlaces */
.kipet-footer-contacto a {
    color: #EBE7DE !important;
    text-decoration: none !important;

    transition: color .25s ease;
}

.kipet-footer-contacto a:hover {
    color: #AE8E67 !important;
}


/* -------------------------
   SÍGUENOS
   ------------------------- */

.kipet-footer-social {
    width: 100%;
    margin-top: 18px;
   /* text-align: center;*/
}

.kipet-footer-social h4 {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    width: 100%;

    margin: 0 0 14px !important;

    font-size: 17px !important;
    font-weight: 700 !important;

    color: #EBE7DE !important;
    /*text-align: center;*/
}

.kipet-footer-social h4::before,
.kipet-footer-social h4::after {
    content: "";

    flex: 1;

    height: 1px;

    background: #C0B3A0;

    opacity: .8;
}

.kipet-footer-social a {
    display: inline-flex;
    align-items: center;
    /*justify-content: center;*/

    gap: 9px;

    font-size: 15px;
}

.kipet-footer-social svg {
    width: 21px;
    height: 21px;

    stroke: #C0B3A0;
}


/* -------------------------
   COMPRA SEGURA
   ------------------------- */

.kipet-footer-seguridad {
    width: 250px;
    max-width: 100%;
    margin-left: auto;
}

.kipet-footer-seguridad h3 {
    text-align: left;
}


/* Grid de sellos */
.kipet-seguridad-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);

    gap: 12px;

    align-items: center;
}


/* Caja uniforme */
.kipet-sello {
    min-height: 88px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 10px;

    background: #EBE7DE;
    border-radius: 10px;

    box-sizing: border-box;
}


/* Imágenes */
.kipet-sello img {
    display: block;

    width: 100%;
    max-width: 90px;
    max-height: 65px;

    object-fit: contain;
}


/* Mercado Pago ocupa toda la fila */
.kipet-sello-mercadopago {
    grid-column: 1 / -1;
}

.kipet-sello-mercadopago img {
    max-width: 145px;
}


/* Libro ocupa toda la fila */
.kipet-sello-libro {
    grid-column: 1 / -1;
}

.kipet-sello-libro img {
    max-width: 150px;

    transition: transform .25s ease;
}

.kipet-sello-libro a:hover img {
    transform: scale(1.04);
}


/* ==================================================
   MÓVIL
   ================================================== */

@media (max-width: 781px) {

    /* Legal centrado */
    .kipet-footer-legal {
        align-items: center;
        text-align: center;
    }

    .kipet-footer-legal h3,
    .kipet-footer-seguridad h3,
    .kipet-footer-contacto h3 {
        display: inline-block;

        margin-left: auto !important;
        margin-right: auto !important;

        padding-left: 0;

        text-align: center !important;

        font-size: 26px !important;
    }


    /* Barra debajo del título */
    .kipet-footer-legal h3::before,
    .kipet-footer-seguridad h3::before,
    .kipet-footer-contacto h3::before {
        left: 50%;
        top: auto;
        bottom: -10px;

        width: 42px;
        height: 3px;

        transform: translateX(-50%);
    }


    .kipet-footer-legal a {
        text-align: center;
        font-size: 15px;
    }


    /* Seguridad centrada */
    .kipet-footer-seguridad {
        width: 230px;

        margin: 30px auto 0;
        text-align: center;
    }


    .kipet-seguridad-grid {
        gap: 10px;
    }


    .kipet-sello {
        min-height: 80px;
        padding: 8px;
    }


    .kipet-sello img {
        max-width: 80px;
        max-height: 58px;
    }


    .kipet-sello-mercadopago img {
        max-width: 135px;
    }


    .kipet-sello-libro img {
        max-width: 140px;
    }

    /* Contacto móvil */
    .kipet-footer-contacto {
        width: 100%;
        max-width: 300px;

        margin-left: auto;
        margin-right: auto;

        align-items: center;
    }

    .kipet-contact-list {
        width: 250px;
        max-width: 100%;

        margin-left: auto;
        margin-right: auto;
    }

    .kipet-footer-contacto .kipet-contact-item {
        width: 100%;

        justify-content: flex-start;
        text-align: left;
    }

    .kipet-footer-social {
        width: 100%;
        text-align: center;
    }

    .kipet-footer-social a {
        justify-content: center;
    }
}