.themelogik-products {
    position: relative;
    z-index: 0;
    width: 100%;
    display: block;
    min-height: 0;
    padding-block: clamp(6rem, 8vw, 7.25rem) clamp(3rem, 7vw, 5.5rem);
    background-color: color-mix(in srgb, var(--wp--preset--color--white, #fff) 88%, var(--wp--preset--color--black, #000) 12%);
    background-image: var(--themelogik-products-background-image, none);
    background-position: center top;
    background-repeat: repeat;
    background-size: auto;
}

.themelogik-products .themelogik-products__section {
    width: 100%;
}

.themelogik-products .themelogik-products__inner {
    width: min(100%, 1440px);
    margin: 0 auto;
    padding-inline: clamp(1rem, 5vw, 4rem);
    box-sizing: border-box;
}

.themelogik-products .themelogik-products__header {
    width: min(100%, 48rem);
    margin: 0 auto clamp(1.75rem, 4vw, 2.75rem);
    display: grid;
    gap: 0.9rem;
    text-align: center;
}

.themelogik-products .themelogik-products__title,
.themelogik-products .themelogik-products__intro > *,
.themelogik-products .themelogik-products__empty > * {
    margin: 0;
}

.themelogik-products .themelogik-products__title {
    color: var(--wp--preset--color--luminous-vivid-amber, currentColor);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.02;
}

.themelogik-products .themelogik-products__intro,
.themelogik-products .themelogik-products__empty {
    line-height: 1.75;
}

.themelogik-products .themelogik-products__empty {
    width: min(100%, 44rem);
    margin: 0 auto;
    padding: clamp(1.5rem, 4vw, 2.25rem);
    border-radius: 1.4rem;
    background: color-mix(in srgb, var(--wp--preset--color--white, #fff) 82%, transparent);
    box-shadow: 0 20px 46px color-mix(in srgb, var(--wp--preset--color--black, #000) 10%, transparent);
    text-align: center;
}

.themelogik-products .themelogik-products__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(1rem, 2.4vw, 1.75rem);
}

.themelogik-products .themelogik-products-card {
    appearance: none;
    width: 100%;
    border: 0;
    padding: 0;
    border-radius: 1.6rem;
    background: color-mix(in srgb, var(--wp--preset--color--white, #fff) 90%, transparent);
    box-shadow: 0 20px 50px color-mix(in srgb, var(--wp--preset--color--black, #000) 10%, transparent);
    overflow: hidden;
    text-align: left;
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.themelogik-products .themelogik-products-card:hover,
.themelogik-products .themelogik-products-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 26px 62px color-mix(in srgb, var(--wp--preset--color--black, #000) 14%, transparent);
}

.themelogik-products .themelogik-products-card:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

.themelogik-products .themelogik-products-card__media {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: color-mix(in srgb, var(--wp--preset--color--black, #000) 6%, var(--wp--preset--color--white, #fff));
}

.themelogik-products .themelogik-products-card__image,
.themelogik-products .themelogik-products-card__placeholder {
    display: block;
    width: 100%;
    height: 100%;
}

.themelogik-products .themelogik-products-card__image {
    object-fit: cover;
}

.themelogik-products .themelogik-products-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
    background:
        linear-gradient(
            180deg,
            color-mix(in srgb, var(--wp--preset--color--black, #000) 8%, transparent),
            color-mix(in srgb, var(--wp--preset--color--black, #000) 2%, transparent)
        );
}

.themelogik-products .themelogik-products-card__placeholder-text {
    text-align: center;
    line-height: 1.4;
    opacity: 0.82;
}

.themelogik-products .themelogik-products-card__content {
    padding: 1.1rem 1.15rem 1.2rem;
}

.themelogik-products .themelogik-products-card__title {
    display: block;
    font-size: clamp(1.05rem, 1.7vw, 1.2rem);
    line-height: 1.3;
}

.themelogik-products-modal {
    position: fixed;
    inset: 0;
    z-index: 1086;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 4vw, 2rem);
    box-sizing: border-box;
}

.themelogik-products-modal[hidden] {
    display: none;
}

.themelogik-products-modal__backdrop {
    position: absolute;
    inset: 0;
    background: color-mix(in srgb, var(--wp--preset--color--black, #000) 58%, transparent);
}

.themelogik-products-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 70rem);
    max-height: min(100vh - 2rem, 48rem);
    overflow: auto;
    padding: clamp(1.25rem, 4vw, 2rem);
    border-radius: 1.75rem;
    background: color-mix(in srgb, var(--wp--preset--color--white, #fff) 94%, transparent);
    box-shadow: 0 24px 64px color-mix(in srgb, var(--wp--preset--color--black, #000) 18%, transparent);
    box-sizing: border-box;
}

.themelogik-products-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--black, #000) 10%, transparent);
}

.themelogik-products-modal__title {
    margin: 0;
    font-size: clamp(1.8rem, 3.6vw, 2.8rem);
    line-height: 1.02;
}

.themelogik-products-modal__close,
.themelogik-products-modal__nav,
.themelogik-products-modal__thumb {
    appearance: none;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.themelogik-products-modal__close {
    flex: 0 0 auto;
    width: 2.65rem;
    height: 2.65rem;
    border: 1px solid color-mix(in srgb, var(--wp--preset--color--black, #000) 10%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--wp--preset--color--white, #fff) 65%, var(--wp--preset--color--black, #000) 4%);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.themelogik-products-modal__close:hover,
.themelogik-products-modal__close:focus-visible,
.themelogik-products-modal__nav:hover,
.themelogik-products-modal__nav:focus-visible,
.themelogik-products-modal__thumb:hover,
.themelogik-products-modal__thumb:focus-visible {
    transform: translateY(-1px);
}

.themelogik-products-modal__close:focus-visible,
.themelogik-products-modal__nav:focus-visible,
.themelogik-products-modal__thumb:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.themelogik-products-modal__gallery {
    display: grid;
    gap: 1rem;
    margin-top: 1.3rem;
}

.themelogik-products-modal__stage {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
}

.themelogik-products-modal__figure {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    border-radius: 1.4rem;
    overflow: hidden;
    background: color-mix(in srgb, var(--wp--preset--color--black, #000) 6%, var(--wp--preset--color--white, #fff));
    aspect-ratio: 4 / 3;
}

.themelogik-products-modal__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.themelogik-products-modal__empty {
    padding: 1.5rem;
    text-align: center;
    line-height: 1.5;
    opacity: 0.74;
}

.themelogik-products-modal__nav {
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--wp--preset--color--black, #000) 8%, var(--wp--preset--color--white, #fff));
    transition: background-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.themelogik-products-modal__nav[disabled] {
    opacity: 0.4;
    cursor: default;
    transform: none;
}

.themelogik-products-modal__thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(4.5rem, 1fr));
    gap: 0.75rem;
}

.themelogik-products-modal__thumb {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    padding: 0;
    border-radius: 1rem;
    overflow: hidden;
    background: color-mix(in srgb, var(--wp--preset--color--black, #000) 5%, var(--wp--preset--color--white, #fff));
    box-shadow: 0 10px 24px color-mix(in srgb, var(--wp--preset--color--black, #000) 8%, transparent);
    opacity: 0.75;
    transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.themelogik-products-modal__thumb[aria-selected="true"] {
    opacity: 1;
    box-shadow: 0 12px 28px color-mix(in srgb, var(--wp--preset--color--black, #000) 14%, transparent);
}

.themelogik-products-modal__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.themelogik-products-modal-open {
    overflow: hidden;
}

@media (min-width: 720px) {
    .themelogik-products .themelogik-products__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1100px) {
    .themelogik-products .themelogik-products__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .themelogik-products-modal__gallery {
        grid-template-columns: 5.25rem minmax(0, 1fr);
        align-items: start;
    }

    .themelogik-products-modal__thumbs {
        grid-template-columns: minmax(0, 1fr);
        order: 0;
    }
}

@media (max-width: 640px) {
    .themelogik-products .themelogik-products__inner {
        padding-inline: 1rem;
    }

    .themelogik-products-modal {
        padding: 0.75rem;
    }

    .themelogik-products-modal__dialog {
        padding: 1.1rem;
        border-radius: 1.2rem;
    }

    .themelogik-products-modal__stage {
        grid-template-columns: 1fr;
    }

    .themelogik-products-modal__nav {
        width: 100%;
        height: 2.9rem;
    }

    .themelogik-products-modal__figure {
        aspect-ratio: 1 / 1;
    }
}

.themelogik-products {
    background-color: color-mix(in srgb, var(--color-principal, #FCFCFC) 88%, var(--color-secundario, #54595F) 12%);
}

.themelogik-products .themelogik-products__title,
.themelogik-products .themelogik-products-modal__title {
    color: var(--color-enfasis, #BF9738);
    font-family: var(--font-principal-family, "Roboto", sans-serif);
    font-weight: var(--font-principal-weight, 600);
}

.themelogik-products .themelogik-products__intro,
.themelogik-products .themelogik-products__empty,
.themelogik-products .themelogik-products-card__placeholder-text,
.themelogik-products .themelogik-products-modal__empty {
    color: var(--color-texto, #7A7A7A);
    font-family: var(--font-texto-family, "Roboto", sans-serif);
    font-weight: var(--font-texto-weight, 400);
}

.themelogik-products .themelogik-products-card__title {
    color: var(--color-secundario, #54595F);
    font-family: var(--font-enfasis-family, "Roboto", sans-serif);
    font-weight: var(--font-enfasis-weight, 500);
}
