.products-intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
}

.products-alert {
    margin-bottom: 25px;
    padding: 18px;
    border: 1px solid rgba(18, 26, 38, 0.2);
    border-radius: 12px;
    background: rgba(18, 26, 38, 0.05);
}

.products-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    align-items: start;
    gap: 30px;
}

.products-filter {
    position: sticky;
    top: 110px;
}

.products-source-date {
    margin-top: 5px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 20px;
}

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    min-width: 0;
    min-height: 380px;
    height: 100%;
    padding: 24px;
    overflow: hidden;
    border: 1px solid rgba(18, 26, 38, 0.2);
    border-radius: 15px;
    background: #fff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.product-card:hover {
    border-color: rgba(18, 26, 38, 0.42);
    box-shadow: 0 14px 32px rgba(18, 26, 38, 0.08);
    transform: translateY(-2px);
}

.product-card__category-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding-right: 44px;
}

.product-card__title,
.product-card__summary-item {
    min-width: 0;
}

.product-card__summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 10px;
    padding: 14px 0;
    border-top: 1px solid rgba(18, 26, 38, 0.1);
    border-bottom: 1px solid rgba(18, 26, 38, 0.1);
}

.product-card__details > summary {
    position: absolute;
    z-index: 30;
    top: 24px;
    right: 24px;
    display: grid;
    place-items: center;
    width: 34px;
    min-width: 34px;
    height: 34px;
    list-style: none;
    cursor: pointer;
    border: 1px solid rgba(18, 26, 38, 0.2);
    border-radius: 999px;
    background: rgba(18, 26, 38, 0.05);
    color: #3a5f8f;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.product-card__details > summary::-webkit-details-marker {
    display: none;
}

.product-card__details > summary:hover,
.product-card__details[open] > summary {
    border-color: #3a5f8f;
    background: #3a5f8f;
    color: #fff;
}

.product-card__details > summary:focus-visible {
    outline: 2px solid #3a5f8f;
    outline-offset: 2px;
}

.product-card__details > summary i {
    color: currentColor;
}

.product-card__panel {
    position: absolute;
    z-index: 20;
    inset: 68px 16px 16px;
    display: flex;
    flex-direction: column;
    padding: 16px;
    overflow: hidden;
    border: 1px solid rgba(18, 26, 38, 0.1);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(18, 26, 38, 0.14);
}

.product-card__specs {
    min-height: 0;
    flex: 1;
    overflow-y: auto;
    padding-right: 8px;
}

.product-card__spec-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.product-card__spec-row dt {
    flex: 0 0 44%;
    min-width: 0;
}

.product-card__spec-row dd {
    min-width: 0;
    overflow-wrap: anywhere;
}

.products-empty {
    grid-column: 1 / -1;
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(18, 26, 38, 0.2);
    border-radius: 15px;
}

.products-empty p {
    margin-top: 8px;
}

@media (max-width: 1279px) {
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1023px) {
    .products-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .products-filter {
        position: static;
    }
}

@media (max-width: 767px) {
    .products-intro {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 639px) {
    .products-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .product-card {
        min-height: 360px;
        padding: 20px;
    }

    .product-card__details > summary {
        top: 20px;
        right: 20px;
    }

    .product-card__panel {
        top: 64px;
    }
}
