/* Responsive enhancements for Kasper */

@media (max-width: 575.98px) {
    .flex-5-per-row {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/***********************************
 * Product detail layout
 ***********************************/
.product-detail-page {
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
    padding: 60px 0 40px;
}

.product-detail-card {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 32px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-detail-card.product-gallery {
    display: block;
}

.equal-height > [class*="col-"] {
    display: flex;
}

.equal-height > [class*="col-"] > .product-detail-card {
    flex: 1;
}

.product-gallery img {
    width: 100%;
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    object-fit: cover;
    background: #fff;
}

.product-thumbs {
    display: flex;
    gap: 12px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.product-thumb {
    width: 82px;
    height: 70px;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.15s ease;
    background: #fff;
    padding: 0;
}

.product-thumb:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-thumb.active {
    border-color: #e53935;
    box-shadow: 0 12px 26px rgba(229, 57, 53, 0.25);
}

.tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #0b0b0b;
    background: #fff;
    margin-right: 8px;
    margin-bottom: 6px;
    letter-spacing: 0.2px;
}

.tag-pill.danger {
    border-color: rgba(229, 57, 53, 0.25);
    color: #e53935;
    background: rgba(229, 57, 53, 0.08);
}

.tag-pill.success {
    border-color: rgba(13, 109, 37, 0.25);
    color: #0b6b2b;
    background: rgba(13, 109, 37, 0.08);
}

[dir="rtl"] .tag-pill {
    margin-right: 0;
    margin-left: 8px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.feature-item {
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: linear-gradient(180deg, #fff 0%, #fdfdfd 100%);
    padding: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.spec-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.spec-list li {
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 12px 16px;
    background: #fff;
    font-weight: 700;
}

.spec-note {
    margin-top: 10px;
    font-size: 12px;
    color: rgba(0, 0, 0, 0.55);
}

.download-card {
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: 16px;
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.download-card a {
    color: #e53935;
    font-weight: 800;
}

.faq details {
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 12px 16px;
    background: #fff;
    margin-bottom: 12px;
}

.faq summary {
    cursor: pointer;
    font-weight: 800;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

@media (max-width: 1199.98px) {
    .product-detail-card {
        padding: 28px;
    }
}

@media (max-width: 991.98px) {
    .product-detail-page {
        padding: 45px 0 32px;
    }

    .equal-height > [class*="col-"] {
        display: block;
    }

    .product-detail-card {
        height: auto;
        padding: 24px;
    }
}

@media (max-width: 767.98px) {
    .product-detail-card {
        border-radius: 20px;
        padding: 22px;
    }

    .product-gallery img {
        border-radius: 20px;
    }

    .product-thumbs {
        justify-content: flex-start;
    }
}

@media (max-width: 575.98px) {
    .product-detail-page {
        padding: 32px 0 24px;
    }

    .product-thumb {
        width: 72px;
        height: 64px;
    }

    .product-thumbs {
        justify-content: center;
    }

    .tag-pill {
        width: 100%;
        justify-content: center;
        margin-right: 0;
        margin-left: 0;
    }

    [dir="rtl"] .tag-pill {
        margin-left: 0;
    }

    .feature-grid,
    .spec-list {
        grid-template-columns: 1fr;
    }

    .download-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .download-card a {
        width: 100%;
        text-align: center;
    }
}
