:root {
    --animation-delay: 1.5s;
}

.q-pl-hero {
}

.q-pl--sub-section p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    text-align: justify
}

.q-pl-badge-counter--container {
    margin-inline: 2rem;
    text-align: center;
}

.q-pl-badge-counter--icon {
    width: 150px;
    height: 150px;
    margin-bottom: 10px;
    color: var(--secondary);
}

.q-pl-badge-counter--text {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 6px;
}

.q-pl-badge-counter--divider {
    width: 100%;
    margin: 0 auto 10px auto;
    border: none;
    opacity: 1;
    border-top: 1px solid var(--secondary);
}

.q-pl-badge-counter--count {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--secondary);
}


.q-pl-hero .q-button,
.q-pl-stats--container .q-button {
    padding: 20px;
    font-size: 1.2rem;
    font-weight: 600;
}

.q-pl-product-card--container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    gap: 0;
    justify-content: flex-start;
    background-color: var(--background);
    padding: 3rem;
    border-radius: .3rem;
}

.q-pl-product-card--img {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    max-height: 300px;
    margin-bottom: 1rem;
    object-fit: cover;
    display: block;
}

.q-pl-product-card--body {
    text-align: center;
}

.q-pl-product-card--title {
    font-size: 2rem;
    color: var(--secondary);
}

.q-pl-product-card--txt {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.q-pl-product-detail--container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    gap: 0;
    justify-content: flex-start;
    padding-inline: 3rem;
    padding-block: 1rem;
}


.q-pl-product-detail--header {
    font-size: 2rem;
}

.q-pl-product-detail--title {
    color: var(--secondary);
    margin-bottom: 1rem;
}

.q-pl-product-detail--gallery-container {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding-top: 3rem;
    padding-bottom: 5rem;
}

.q-pl-product-detail--gallery-img-container {
    width: 150px;
    height: 150px;
    overflow: hidden;
    cursor: pointer;
}

.q-pl-product-detail--gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.q-pl--section {
    padding-inline: 1.5rem;
}

.q-pl--wide-section {
    padding: 0;
    margin: 0;
}

.q-pl-stats--badge-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
    padding: 1rem;
}

.q-pl-stats--container {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    aspect-ratio: 3 / 1;
    padding: 1rem 2rem;
}

    .q-pl-stats--container::before {
        content: "";
        position: absolute;
        background-image: url(/images/kk-queen-home-series-favilla-detail.jpg);
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        opacity: 0.2;
        z-index: 0;
        pointer-events: none;
        display: block;
        width: 100%;
        height: 100%;
    }

    .q-pl-stats--container > * {
        position: relative;
        z-index: 1;
    }

.q-pl--sub-section {
    padding-bottom: 1rem
}

    .q-pl--sub-section h1, .q-pl--sub-section h2 {
        border-left: none;
        padding-left: 0;
    }

.q-pl--sub-section-header-container {
    border-left: .3rem solid var(--secondary);
    padding-left: .8rem;
    margin-bottom: 3rem;
    line-height: 3;
}

.q-product {
    background-color: transparent;
    border-radius: 1rem;
    box-shadow: 0 2px 16px rgba(0,0,0,0.04);
    padding: 2rem 0;
    margin-bottom: 2rem;
    position: relative;
}

    .q-product.visible {
        animation: bgFadeInDelayed--secondary 3s ease .5s forwards;
    }

.q-product-divider {
    border: none;
    border-top: 1px solid var(--secondary);
    margin: 2rem 0;
    width: 100%;
    opacity: 1;
}

.visible .left {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.5s, transform 1.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.left {
    opacity: 0;
    transform: translateX(-400px);
    transition: opacity 0.5s, transform 1.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.visible .right {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.5s, transform 2.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.right {
    opacity: 0;
    transform: translateX(400px);
    transition: opacity 0.5s, transform 2.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.fade-in-delayed {
    opacity: 0;
}

.visible .fade-in-delayed {
    animation: fadeInDelayed 0.5s ease var(--animation-delay) forwards;
}

@keyframes bgFadeInDelayed--secondary {
    from {
        background-color: transparent;
    }

    to {
        background-color: var(--background);
    }
}

@keyframes fadeInDelayed {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}
