/* =====================================================
   Cart Success Popup — Figma node 333:1681
   ===================================================== */

.csp-dialog {
    max-width: 1720px;
    width: 100%;
}

.csp-content {
    padding: 48px;
    position: relative;
}

/* --- Fejléc --- */
.csp-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.csp-header-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.csp-title {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 42px;
    line-height: 1;
    color: #000;
    margin: 0;
}

.csp-subtitle {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 16.8px;
    line-height: 1.5;
    color: #000;
    margin: 0;
}

.csp-close {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 4px;
    line-height: 0;
}

.csp-close svg {
    width: 24px;
    height: 25px;
}

/* --- Termékek rács --- */
.csp-products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.csp-product-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-decoration: none;
    color: inherit;
}

.csp-product-card:hover {
    text-decoration: none;
    color: inherit;
}

.csp-product-img {
    width: 100%;
    aspect-ratio: 1 / 1.03;
    overflow: hidden;
    position: relative;
    background: #f5f5f5;
}

.csp-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.csp-product-img-placeholder {
    width: 100%;
    height: 100%;
    background: #e8e8e8;
}

.csp-product-name {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 18.9px;
    line-height: 1.3;
    color: #404040;
    margin: 0;
}

.csp-product-price {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 30.8px;
    line-height: 1.3;
    color: #000;
    margin: 0;
}

.csp-unit {
    font-weight: 400;
    font-size: 0.65em;
}

/* --- Gombok --- */
.csp-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.csp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 25.2px;
    line-height: 1;
    padding: 8px 48px;
    border: 2px solid #000;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.15s ease;
}

.csp-btn:hover {
    opacity: 0.85;
    text-decoration: none;
}

.csp-btn--outline {
    background: #fff;
    color: #000;
}

.csp-btn--solid {
    background: #000;
    color: #fff;
}

/* --- Reszponzív --- */
@media (max-width: 991px) {
    .csp-content {
        padding: 32px 24px;
    }

    .csp-title {
        font-size: 28px;
    }

    .csp-products {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .csp-content {
        padding: 24px 16px;
    }

    .csp-title {
        font-size: 22px;
    }

    .csp-products {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .csp-product-name {
        font-size: 14px;
    }

    .csp-product-price {
        font-size: 20px;
    }

    .csp-actions {
        flex-direction: column;
        gap: 12px;
    }

    .csp-btn {
        font-size: 18px;
        padding: 8px 32px;
        width: 100%;
        justify-content: center;
    }
}
