﻿.nools-catalog-grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(285px, 1fr));
    gap: 30px;
}

.nools-toy-card {
    position: relative;
    isolation: isolate;
    background: rgba(255, 255, 255, 0.88);
    border-radius: 34px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 24px 70px rgba(63, 40, 110, 0.16);
    transform: translateY(0) rotate(0deg);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    animation: nools-card-pop 0.7s ease both;
}

    .nools-toy-card:nth-child(2n) {
        animation-delay: 0.08s;
    }

    .nools-toy-card:nth-child(3n) {
        animation-delay: 0.16s;
    }

    .nools-toy-card:hover {
        transform: translateY(-12px) rotate(-1deg);
        box-shadow: 0 34px 90px rgba(255, 111, 145, 0.28);
        border-color: rgba(255, 111, 145, 0.45);
    }

.nools-toy-glow {
    position: absolute;
    inset: auto -40px -70px auto;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(255, 211, 84, 0.45), transparent 68%);
    z-index: -1;
}

.nools-toy-image-wrapper {
    position: relative;
    width: 100%;
    height: 235px;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.9), transparent 32%), linear-gradient(135deg, #ffe3ec, #dff7ff 55%, #fff7c9);
    overflow: hidden;
}

.nools-toy-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease, filter 0.45s ease;
}

.nools-toy-card:hover .nools-toy-image {
    transform: scale(1.08) rotate(1deg);
    filter: saturate(1.18) contrast(1.04);
}

.nools-toy-chip {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 8px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #ff5d8f;
    font-weight: 900;
    font-size: 0.82rem;
    box-shadow: 0 10px 22px rgba(45, 42, 64, 0.12);
}

.nools-toy-body {
    padding: 24px;
}

.nools-toy-title {
    font-size: 1.38rem;
    font-weight: 900;
    color: #2d2a40;
    margin-bottom: 12px;
    letter-spacing: -0.03em;
}

.nools-toy-description {
    color: #615b7a;
    min-height: 76px;
    line-height: 1.7;
    margin-bottom: 22px;
    font-size: 1rem;
}

.nools-toy-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.nools-toy-price {
    font-weight: 900;
    color: #ff5d8f;
    font-size: 1.18rem;
}

.nools-whatsapp-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    background: linear-gradient(135deg, #25d366, #12b76a);
    color: #ffffff;
    padding: 12px 18px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 0.96rem;
    box-shadow: 0 14px 28px rgba(37, 211, 102, 0.34);
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

    .nools-whatsapp-button:hover {
        color: #ffffff;
        transform: translateY(-3px) scale(1.04);
        box-shadow: 0 18px 35px rgba(37, 211, 102, 0.42);
        filter: brightness(1.03);
    }

.nools-empty-state {
    width: min(850px, calc(100% - 32px));
    margin: 0 auto;
    padding: 44px;
    text-align: center;
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.86);
    color: #615b7a;
    box-shadow: 0 24px 70px rgba(63, 40, 110, 0.14);
}

@keyframes nools-card-pop {
    from {
        opacity: 0;
        transform: translateY(28px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
.nools-whatsapp-button {
    white-space: nowrap;
}

.nools-toy-card {
    text-align: start;
}

.nools-whatsapp-button::after {
    pointer-events: none;
}

.nools-toy-image-button {
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
    display: block;
}

.nools-gallery-count {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 8px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #2d2a40;
    font-weight: 900;
    font-size: 0.82rem;
    box-shadow: 0 10px 22px rgba(45, 42, 64, 0.12);
}

.nools-lightbox-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(11, 8, 28, 0.78);
    backdrop-filter: blur(14px);
    display: grid;
    place-items: center;
    padding: 24px;
    animation: nools-lightbox-fade 0.2s ease both;
}

.nools-lightbox {
    width: min(980px, 100%);
    max-height: calc(100vh - 48px);
    overflow: auto;
    position: relative;
    border-radius: 34px;
    padding: 24px;
    background: radial-gradient(circle at 10% 10%, rgba(255, 93, 143, 0.16), transparent 30%), linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(245, 251, 255, 0.92));
    box-shadow: 0 35px 100px rgba(0, 0, 0, 0.35);
    animation: nools-lightbox-pop 0.24s ease both;
}

.nools-lightbox-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: #ff5d8f;
    color: #fff;
    font-weight: 900;
    cursor: pointer;
    z-index: 3;
    box-shadow: 0 12px 26px rgba(255, 93, 143, 0.28);
}

.nools-lightbox-header {
    padding: 6px 52px 18px 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

    .nools-lightbox-header h3 {
        margin: 0;
        font-size: 1.35rem;
        font-weight: 900;
        color: #2d2a40;
    }

    .nools-lightbox-header span {
        color: #655f7c;
        font-weight: 900;
    }

.nools-lightbox-stage {
    position: relative;
    display: grid;
    place-items: center;
    border-radius: 28px;
    overflow: hidden;
    background: linear-gradient(135deg, #ffe3ec, #dff7ff 55%, #fff7c9);
    min-height: 420px;
}

.nools-lightbox-image {
    width: 100%;
    max-height: 65vh;
    object-fit: contain;
    display: block;
}

.nools-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.88);
    color: #2d2a40;
    font-size: 2.4rem;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 15px 30px rgba(45, 42, 64, 0.18);
}

.nools-lightbox-prev {
    left: 18px;
}

.nools-lightbox-next {
    right: 18px;
}

.nools-lightbox-thumbs {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    margin-top: 18px;
    padding-bottom: 4px;
}

.nools-lightbox-thumb {
    width: 84px;
    height: 84px;
    flex: 0 0 auto;
    border: 3px solid transparent;
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    background: transparent;
    opacity: 0.68;
    transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

    .nools-lightbox-thumb.active {
        opacity: 1;
        border-color: #ff5d8f;
        transform: translateY(-3px);
    }

    .nools-lightbox-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

/* Dark page compatibility */
.theme-dark .nools-lightbox {
    background: radial-gradient(circle at 10% 10%, rgba(255, 93, 143, 0.14), transparent 30%), linear-gradient(135deg, rgba(28, 18, 56, 0.98), rgba(7, 24, 39, 0.96));
}

.theme-dark .nools-lightbox-header h3 {
    color: #ffffff;
}

.theme-dark .nools-lightbox-header span {
    color: rgba(255, 255, 255, 0.72);
}

@keyframes nools-lightbox-fade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes nools-lightbox-pop {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 700px) {
    .nools-lightbox {
        padding: 16px;
        border-radius: 24px;
    }

    .nools-lightbox-stage {
        min-height: 300px;
    }

    .nools-lightbox-nav {
        width: 44px;
        height: 44px;
        font-size: 2rem;
    }

    .nools-lightbox-thumb {
        width: 70px;
        height: 70px;
        border-radius: 16px;
    }
}