/*
Theme Name: Kapptus Woocomerce
Theme URI: http://www.Kapptus.com
Author: Kapptus
Author URI: http://www.Kapptus.com
Description: Kapptus es un tema de WordPress
Requires at least: 6.7
Tested up to: 6.8
Requires PHP: 8.3
Version: 1.0.1
License: Privacy Policy
License URI: http://www.Kapptus.com/privacy-policy
Text Domain: Kapptus
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news
*/

@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('public/assets/css/base/variables.css');
@import url('public/assets/css/base/woocommerce-cards.css');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    margin-top: 0 !important;
}


body {
    position: relative;
    font-family: var(--font-family);
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    padding-top: var(--wp-admin--admin-bar--height, 0px);
    justify-content: space-between;
    background-color: #fff;
}

main {
    flex: 1;
}

.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    margin-bottom: .5rem;
    font-weight: 500;
    line-height: 1.2;
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

input {
    font-size: 16px;
}

.text-center {
    text-align: center;
}

.add_to_cart_button,
.added_to_cart,
.single_add_to_cart_button,
.product_type_simple {
    --btn-background: #132D3E;
    --btn-color: #fff;
    --btn-hover-background: #fff;
    --btn-hover-color: #132D3E;
    --btn-border-color: #132D3E;
    --btn-hover-border-color: #132D3E;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
    height: 40px;
    padding: 9.6px;
    background: var(--btn-background);
    color: var(--btn-color);
    border: 1px solid var(--btn-border-color);
    border-radius: 2px;
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;

    span {
        position: relative;
        z-index: 2;
        font-size: 14px;
        font-weight: 600;
    }

    &.loading {
        pointer-events: none;
        opacity: 0.5;
    }

    &:hover {
        color: var(--btn-hover-color);
        background-color: var(--btn-hover-background);
        transition: color 250ms ease-in-out, background-color 250ms ease-in-out;
    }
}

.btn {
    --btn-background: transparent;
    --btn-color: #000;
    --btn-hover-background: transparent;
    --btn-hover-color: #000;
    --btn-border-color: var(--btn-color);
    --btn-hover-border-color: var(--btn-hover-color);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: .7rem;
    background: var(--btn-background);
    color: var(--btn-color);
    border: 1px solid var(--btn-border-color);
    border-radius: 2px;
    text-decoration: none;
    line-height: 1;
    cursor: pointer;
    transition: all 0.25s;

    &:disabled {
        opacity: .5;
        cursor: not-allowed;

        &:hover {
            --btn-background: #000;
            --btn-color: #fff;
        }
    }

    &:hover {
        background: var(--btn-hover-background);
        color: var(--btn-hover-color);
        border-color: var(--btn-hover-border-color);
        transition: all 0.25s;
    }
}

.btn-primary {
    --btn-background: #000;
    --btn-color: #fff;
    --btn-hover-background: #fff;
    --btn-hover-color: #000;
    --btn-border-color: #000;
    --btn-hover-border-color: #000;
}

.btn-badge {
    --btn-background: var(--gray-200);
    --btn-border-color: var(--gray-200);
    --btn-color: var(--black-300);
    --btn-hover-background: var(--yellow-200);
    --btn-hover-border-color: var(--yellow-200);
    --btn-hover-color: var(--black-300);
    width: 30px;
    height: 25px;
    border-radius: 15px;
    padding: 0;
}

.refresh-slot {
    position: relative;
}

.loading-element {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.5);

    i {
        font-size: 32px;
    }

    &.loading {
        display: flex;
    }
}

.container-xxl {
    max-width: var(--max-width-xxl);
    width: 100%;
    margin: 0 auto;
}

.container-xl {
    max-width: var(--max-width-xl);
    width: 100%;
    margin: 0 auto;
}

.container-ml {
    --space: 24px;
    width: 100%;
    max-width: calc(var(--max-width-ml) + var(--space) * 2);
    padding: 0 var(--space);
    margin: 0 auto;
}

.container-lg {
    max-width: var(--max-width-lg);
    width: 100%;
    margin: 0 auto;
}

.container-md {
    max-width: var(--max-width-md);
    width: 100%;
    margin: 0 auto;
}

.container-sm {
    max-width: var(--max-width-sm);
    width: 100%;
    margin: 0 auto;
}

.bg-white {
    background-color: #fff;
}

.w-100 {
    width: 100%;
}

.grid-column-full {
    grid-column: 1 / -1;
}

.pagination,
.woocommerce-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 1rem;

    ul {
        list-style: none;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: .5rem;
        line-height: 1;

        a,
        span {
            --size: 34px;
            display: flex;
            align-items: center;
            justify-content: center;
            width: var(--size);
            height: var(--size);
        }

        a {
            padding: .5rem;
            color: #000;
            text-decoration: none;
        }

        a.next,
        a.prev {
            padding: 0;
        }

        .current {
            border-radius: 50%;
            background-color: var(--black-700);
            color: #fff;
            cursor: default;
        }
    }
}

.error-message {
    color: var(--red-500);
    font-size: 14px;
    font-weight: bold;
    margin-top: 1rem;
    margin-bottom: 1rem;
    text-align: center;
    line-height: 1.5;
}

.woocommerce-tabs {
    background-color: #fff;
    padding: 3rem 4rem;
    margin: 2rem auto;

    .woocommerce-Tabs-panel {

        h2 {
            margin-bottom: 1rem;
        }

        p,
        th {
            padding-bottom: .5rem;
        }
    }

    ul {
        list-style: none;
    }

    .tabs {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 1rem;
        margin-bottom: 2rem;

        li {
            cursor: pointer;
            background-color: var(--gray-200);
            border-radius: 5px;
            color: var(--black-300);
            font-weight: bold;
            text-align: center;
            transition:
                background-color 250ms ease-in-out,
                color 250ms ease-in-out;

            a {
                display: block;
                text-decoration: none;
                color: inherit;
                padding: 1rem 2rem;
            }

            &.active {
                border: 1px solid var(--black-700);
                background-color: #fff;
                color: var(--black-700);
            }

            &:hover {
                background-color: var(--black-700);
                color: #fff;
                transition:
                    background-color 250ms ease-in-out,
                    color 250ms ease-in-out;
            }
        }
    }
}

.woocommerce-notices-wrapper,
.woocommerce-NoticeGroup {
    margin-bottom: 1rem;
}

.woocommerce-message[role="alert"],
ul.woocommerce-error li,
div.woocommerce-error,
.woocommerce-info,
.woocommerce-notice {
    --color: var(--green-500);
    --background-color: #ffff;

    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    margin: 1rem 0;
    background-color: var(--background-color);
    color: var(--color);
    border: 1px solid var(--color);
    border-radius: 4px;

    i {
        font-size: 1.5rem;
        color: var(--color);
    }

    .button.wc-forward {
        color: var(--color);
        font-weight: bold;
    }

    span {
        flex: 1;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;

        a {
            --btn-background: #fff;
            --btn-color: var(--color);
            --btn-hover-background: var(--color);
            --btn-hover-color: #fff;
            --btn-border-color: var(--color);
            --btn-hover-border-color: var(--color);
            text-decoration: none;
            font-weight: bold;
            font-size: 1.2rem;
        }
    }
}

ul.woocommerce-error {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    padding: 1rem;
    list-style: none;
    border: 1px solid var(--red-600);
    border-radius: 4px;

    li {
        --color: var(--red-600);
        margin: 0;
        padding: 0;
        border: none;
        gap: 5px;

        i.fa-solid {
            font-size: 16px;
        }

        a {
            display: flex;
            gap: 1rem;
            width: 100%;
            color: var(--color);
            text-decoration: none;
        }
    }
}

div.woocommerce-error {
    --color: var(--red-600);
}

.woocommerce-info {
    --color: var(--blue-600);
}

.quantity {
    --size: 30px;
    --width: var(--size);
    --height: var(--size);
    display: flex;
    border: 1px solid var(--gray-200);
    border-radius: 5px;

    input {
        border: none;
        background-color: transparent;
        color: var(--black-300);
        font-size: 12px;
        font-weight: bold;
        text-align: center;
        width: var(--width);
        height: var(--height);
    }

    input[type=number] {
        -moz-appearance: textfield;
        appearance: textfield;
    }

    input::-webkit-outer-spin-button,
    input::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

    button {
        display: flex;
        justify-content: center;
        align-items: center;
        border: none;
        background-color: transparent;
        color: var(--black-300);
        font-size: 12px;
        text-align: center;
        width: var(--width);
        height: var(--height);
        cursor: pointer;

        &:hover {
            color: var(--black-400);
        }
    }
}

.not-found-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    max-width: var(--max-width-xxl);
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
    background-color: var(--gray-200);
}

.d-none {
    display: none;
}

.p-block-1 {
    padding-block: 1rem;
}

.p-block-2 {
    padding-block: 2rem;
}

.p-inline-1 {
    padding-inline: 1rem;
}

.p-inline-2 {
    padding-inline: 2rem;
}

.p-1 {
    padding: 1rem;
}

.p-2 {
    padding: 2rem;
}

.p-3 {
    padding: 3rem;
}

.p-4 {
    padding: 4rem;
}

.overflow-hidden {
    overflow: hidden;
}

.max-w-\[318px\] {
    max-width: 318px;
}

.tinv-wishlist {
    .tinv-modal .tinv-cell .tinv-modal-inner {
        border-radius: 5px;

        .tinvwl-buttons-group {
            display: flex;
            justify-content: center;
            gap: 14px;

            &:before,
            &:after {
                content: none;
            }

            button {
                display: flex;
                justify-content: center;
                align-items: center;
                margin: 0;
                padding: 8px 12px;
                background-color: #fff;
                border-radius: 5px;
                border: 1px solid var(--black-300);
                color: var(--black-300);
                font-size: 12px;
                font-weight: bold;
                cursor: pointer;

                i:before {
                    top: 0;
                }

                &:hover {
                    background-color: var(--black-700);
                    color: #fff;
                }
            }
        }
    }
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    word-wrap: normal !important;
    border: 0;
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    overflow-wrap: normal !important;
    padding: 0;
    position: absolute !important;
    width: 1px;
}

.spin {
    animation: spin 1s linear infinite;
}

.pswp {
    z-index: 99999;
}

.woocommerce-product-rating-stars {
    display: flex;
    align-items: center;
    gap: 2px;
    color: var(--yellow-300);
    font-size: 14px;
    margin-bottom: 5px;

    .rating-value {
        margin-right: 5px;
        font-size: 14px;
        font-weight: 600;
    }

    svg {
        --size: 18px;
        width: var(--size);
        height: var(--size);
    }
}

.tag-badge {
    align-self: start;
    display: flex;
    align-items: center;
    gap: 6px;
    width: auto;
    padding: 3.8px 9.8px;
    border-radius: 2px;
    border: 1px solid #CBD4DC;
    font-weight: 500;
    font-size: 11px;
    line-height: 11px;
    letter-spacing: 0.88px;
    vertical-align: middle;
    text-transform: uppercase;
    color: #CBD4DC;

    &.black,
    &.product-card-category {
        border: 1px solid #132D3E;
        color: #132D3E;
    }

    &.yellow {
        border: 1px solid #E8C547;
        color: #E8C547;
    }

    &.product-card-category {
        position: absolute;
        top: 10px;
        left: 10px;
    }

    .dot {
        width: 6px;
        height: 6px;
        border-radius: 50rem;
        background-color: #E8C547;
    }
}

.backdrop.active {
    content: '';
    display: block;
    width: 1px;
    height: 16px;
    background-color: #05141f2e;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 99980;
}

@media (max-width: 600px) {
    #wpadminbar {
        position: fixed;
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .woocommerce-tabs {
        padding: 2rem;
    }

    .container-ml {
        --space: 16px;
    }
}