.products-hero {
    padding: 68px 24px 60px;
    text-align: center;
    background:
        radial-gradient(
            ellipse at 50% 0%,
            rgba(208, 229, 249, 0.78),
            transparent 58%
        ),
        linear-gradient(
            110deg,
            #f7faff 0%,
            #edf4fb 56%,
            #e3edf8 100%
        );
}

.products-hero .eyebrow {
    margin-bottom: 10px;
}


.products-hero h1 {
    max-width: 820px;
    margin: 0 auto 14px;
    font-size: clamp(34px, 4vw, 49px);
    letter-spacing: -0.045em;
}

.products-hero > p:last-child {
    max-width: 690px;
    margin: 0 auto;
    color: #60738c;
    font-size: 15px;
    line-height: 1.75;
}

.products-container {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.category-navigation {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
    margin: 30px 0 65px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 24px rgba(20, 48, 80, 0.07);
    backdrop-filter: blur(12px);
}

.category-navigation a {
    padding: 10px 13px;
    border-radius: 7px;
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.2s ease;
}

.category-navigation a.active {
    color: #fff;
    background: var(--blue);
}

.category-navigation a:hover {
    color: var(--blue);
    background: #eaf3ff;
}

.product-category {
    margin-bottom: 65px;
    padding-bottom: 65px;
    border-bottom: 1px solid var(--line);
    scroll-margin-top: 100px;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.category-header .eyebrow {
    margin-bottom: 8px;
}



.category-header h2 {
    margin: 0 0 12px;
    color: var(--text);
    font-size: clamp(26px, 3vw, 34px);
    letter-spacing: -0.04em;
}

.category-header p:not(.eyebrow) {
    max-width: 680px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}

.product-grid {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.product-card {
    display: grid;
    grid-template-columns: 390px minmax(0, 1fr);
    align-items: center;
    gap: 35px;
    width: 100%;
    min-width: 0;
    min-height: 300px;
    padding: 25px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 3px 14px rgba(20, 48, 80, 0.06);
    transition: none;
    transform: none;
}

.product-card:hover {
    transform: none;
    border-color: var(--line);
    box-shadow: 0 3px 14px rgba(20, 48, 80, 0.06);
}

.product-visual {
    display: grid;
    place-items: center;
    width: 100%;
    overflow: hidden;
    border-radius: 9px;
}



.product-visual span {
    display: grid;
    place-items: center;
    width: 110px;
    height: 110px;
    border: 1px solid rgba(23, 97, 187, 0.12);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.8);
    color: var(--blue);
    font-size: 55px;
    box-shadow: 0 10px 30px rgba(23, 97, 187, 0.08);
}

.product-visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-card-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 15px 10px 15px 0;
}

.product-card-content h3 {
    margin: 0 0 14px;
    color: var(--text);
    font-size: 23px;
    line-height: 1.4;
    letter-spacing: -0.025em;
}



.product-card-content p {
    max-width: 650px;
    margin: 5px 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.85;
}

.category-note {
    margin-top: 25px;
    padding: 18px 21px;
    border-left: 3px solid var(--blue);
    border-radius: 0 9px 9px 0;
    background: #f3f8fd;
    color: #536b85;
    font-size: 13px;
    line-height: 1.75;
}

.new-products-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 290px;
    padding: 40px 25px;
    border: 1px dashed #b8cce2;
    border-radius: 13px;
    background: #f7faff;
    text-align: center;
}

.new-products-icon {
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    margin-bottom: 18px;
    border-radius: 16px;
    background: #e5f0ff;
    color: var(--blue);
    font-size: 30px;
}

.new-products-placeholder h3 {
    margin: 0 0 10px;
    color: var(--text);
    font-size: 19px;
}

.new-products-placeholder p {
    max-width: 520px;
    margin: 0 0 22px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.75;
}

.products-contact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 76px;
    padding: 38px 42px;
    border: 1px solid #d9e7f5;
    border-radius: 15px;
    background:
        radial-gradient(
            ellipse at 100% 0%,
            rgba(208, 229, 249, 0.65),
            transparent 48%
        ),
        #f3f8fd;
}

.products-contact h2 {
    margin: 0 0 10px;
    color: var(--text);
    font-size: clamp(22px, 2.5vw, 29px);
    letter-spacing: -0.035em;
}

.products-contact p:not(.eyebrow) {
    max-width: 680px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.products-contact .btn {
    flex-shrink: 0;
    white-space: nowrap;
}

.product-packaging {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card-packaging {
    align-items: center;
}

.labels-p {
    align-items: flex-start;
}

.img-packaging {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    background: none;
}

.img-packaging img {
    max-width: 250px;
    max-height: 250px;
    border-radius: 9px;
}

.visual-label {
    gap: 10px;
}

.card-packaging .product-ribbon-sizes {
    display: flex;
    gap: 3rem;
}

.new-products-size > div {
    width: 100%;
    max-width: 800px;
    margin-inline: auto;
}

/*PRODUCT CARDS - POPUP VERSION */

.store-product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.store-product-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 3px 14px rgba(20, 48, 80, 0.06);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.store-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(24, 57, 94, 0.1);
}

.store-product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 220px;
    width: 100%;
    min-width: 0;
    height: 220px;
    padding: 20px;
    overflow: hidden;
    background: #f5f8fc;
}

.store-product-image img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    flex-shrink: 1;
}

.store-product-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    padding: 23px;
}

.store-product-body h3 {
    margin: 0;
    color: var(--text);
    font-size: 19px;
    line-height: 1.4;
    letter-spacing: -0.025em;
}

.store-product-body p {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.store-details-btn {
    margin-top: auto;
    padding: 12px 16px;
    border: none;
    border-radius: 9px;
    background: var(--blue);
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.store-details-btn:hover { background: var(--navy-dark); }
.store-details-btn span { margin-left: 8px; }

/* PRODUCT POPUP WINDOW */

.store-product-dialog {
    position: fixed;
    inset: 0;
    width: min(960px, calc(100% - 28px));
    max-width: 960px;
    max-height: min(88dvh, 850px);
    margin: auto;
    padding: 0;
    overflow-y: auto;
    border: none;
    border-radius: 18px;
    background: #fff;
    color: var(--text);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
}

.store-product-dialog:not([open]) { display: none; }

.store-product-dialog::backdrop {
    background: rgba(10, 25, 45, 0.7);
    backdrop-filter: blur(3px);
}

.store-modal-shell {
    position: relative;
    padding: 54px 34px 34px;
}

.store-modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: #f1f5fa;
    color: var(--text);
    font-size: 28px;
    cursor: pointer;
}

.store-modal-close:hover { background: #e1eaf5; }

.store-modal-layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
    min-width: 0;
}

.store-modal-gallery {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.store-modal-gallery img {
    display: block;
    flex: 0 1 260px;
    width: 260px;
    min-width: 0;
    max-width: 100%;
    height: 300px;
    object-fit: contain;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.store-modal-gallery:has(img:nth-child(3)) {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}

.store-modal-gallery:has(img:nth-child(3)) img {
    width: 100%;
    height: 220px;
    object-fit: contain;
}

.store-product-body p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.store-modal-info { width: 100%; min-width: 0; }

.store-modal-info h2 {
    margin: 0 0 22px;
    color: var(--text);
    font-size: clamp(22px, 2.5vw, 30px);
    line-height: 1.3;
}

.store-modal-info p {
    margin: 0 0 16px;
    color: #405875;
    font-size: 15px;
    line-height: 1.75;
}

.store-modal-info strong {
    display: block;
    margin: 18px 0 6px;
    color: var(--text);
}

.store-modal-info p strong {
    display: inline;
    margin: 0;
}

.store-modal-info a { color: var(--blue); }


.store-template-video {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 25px;
}

.store-template-video video {
    display: block;
    width: 100%;
    max-width: 650px;
    max-height: 700px;
    border: 1px solid var(--line);
    border-radius: 12px;
}

@media (max-width: 950px) {
    .store-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 650px) {
    .store-product-grid { grid-template-columns: 1fr; }
    .store-product-image { flex-basis: 190px; height: 190px; }
    .store-modal-shell { padding: 54px 20px 24px; }
    .store-modal-layout { gap: 22px; }
    .store-modal-gallery img { flex-basis: 180px; height: 180px; }
}

@media (prefers-reduced-motion: reduce) {
    .store-product-card, .store-details-btn { transition: none; }
}

@media (max-width: 1000px) {
    .product-card {
        grid-template-columns: 320px minmax(0, 1fr);
        gap: 25px;
    }

    .product-card-content h3 {
        font-size: 21px;
    }
}

@media (max-width: 800px) {
    .category-navigation {
        justify-content: flex-start;
    }

    .products-contact {
        align-items: flex-start;
        flex-direction: column;
    }

    .product-card {
        grid-template-columns: 1fr;
        gap: 20px;
        min-height: auto;
        padding: 18px;
    }

    .product-visual img {
        padding: 10px;
    }

    .img-packaging {
        flex-direction: column;
    }

    .product-card-content {
        padding: 0 3px 5px;
    }

    .product-card-content h3 {
        margin-bottom: 10px;
        font-size: 21px;
    }

    .product-card-content p {
        font-size: 14px;
    }

    .products-contact {
        margin-bottom: 50px;
        padding: 27px 22px;
    }

    .products-contact .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .new-products-placeholder {
        padding: 30px 20px;
    }
}



@media (max-width: 640px) {
    .products-hero {
        padding: 48px 18px 42px;
    }

    .products-container {
        width: calc(100% - 36px);
    }

    .category-navigation {
        position: static;
        margin: 22px 0 42px;
        padding: 9px;
        justify-content: flex-start;
        gap: 5px;
    }

    .category-navigation a {
        padding: 9px 10px;
        font-size: 11px;
    }

    .product-category {
        margin-bottom: 45px;
        padding-bottom: 45px;
    }

    .product-card {
        grid-template-columns: 1fr;
        gap: 20px;
        min-height: auto;
        padding: 18px;
    }

    .product-visual img {
        padding: 10px;
    }

    .product-card-content {
        padding: 0 3px 5px;
    }

    .product-card-content h3 {
        margin-bottom: 10px;
        font-size: 21px;
    }

    .product-card-content p {
        font-size: 14px;
    }

    .product-packaging .product-card-content h3 {
        text-align: center;
    }

    .products-contact {
        margin-bottom: 50px;
        padding: 27px 22px;
    }

    .products-contact .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .new-products-placeholder {
        padding: 30px 20px;
    }

}

@media (max-width: 768px) {
    .store-modal-gallery:has(img:nth-child(3)) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .store-modal-gallery:has(img:nth-child(3)) {
        grid-template-columns: 1fr;
    }
}
