/* ==========================================================================
   Wizutech BundlePacks — Velgrina "Seti Tamamla" Styles
   Colors: teal #2E7D8C, black #1E2022, border #D1D5DB, light #F4F5F4
   Fonts: Jost (sans), Cormorant Garamond (display)
   ========================================================================== */

.velgrina-bundlepacks {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin: 2rem 0;
    padding: 24px 28px;
    font-family: 'Jost', sans-serif;
}

/* ---------- Header ---------- */

.velgrina-bundlepacks__header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.velgrina-bundlepacks__title {
    margin: 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: 26px;
    font-weight: 600;
    color: #1E2022;
    line-height: 1.2;
}

.velgrina-bundlepacks__discount-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background-color: #2E7D8C;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.velgrina-bundlepacks__subtitle {
    margin: 0 0 24px;
    font-size: 14px;
    color: #6B7280;
    line-height: 1.4;
}

/* ---------- Grid ---------- */

.velgrina-bundlepacks__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

/* ---------- Card ---------- */

.velgrina-bundlepacks__card {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.velgrina-bundlepacks__card--main {
    border-color: #2E7D8C;
}

.velgrina-bundlepacks__card--selected {
    border-color: #2E7D8C;
    box-shadow: 0 0 0 1px #2E7D8C;
}

/* ---------- Card image ---------- */

.velgrina-bundlepacks__card-image {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: #F4F5F4;
}

.velgrina-bundlepacks__card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.velgrina-bundlepacks__card-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 2px 8px;
    background-color: #1E2022;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    letter-spacing: 0.02em;
}

/* ---------- Card info ---------- */

.velgrina-bundlepacks__card-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    flex: 1;
}

.velgrina-bundlepacks__card-name {
    font-size: 13px;
    font-weight: 500;
    color: #1E2022;
    line-height: 1.4;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

a.velgrina-bundlepacks__card-name:hover {
    color: #2E7D8C;
}

.velgrina-bundlepacks__card-price {
    font-size: 15px;
    font-weight: 600;
    color: #1E2022;
    line-height: 1.3;
}

/* ---------- Checkbox ---------- */

.velgrina-bundlepacks__checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-top: 1px solid #D1D5DB;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #1E2022;
    user-select: none;
    transition: background-color 0.15s ease;
}

.velgrina-bundlepacks__checkbox:hover {
    background-color: #F4F5F4;
}

.velgrina-bundlepacks__checkbox--locked {
    cursor: default;
    color: #6B7280;
}

.velgrina-bundlepacks__checkbox--locked:hover {
    background-color: transparent;
}

.velgrina-bundlepacks__checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #2E7D8C;
    cursor: inherit;
    margin: 0;
}

/* ---------- Footer ---------- */

.velgrina-bundlepacks__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 16px 0 0;
    border-top: 1px solid #e5e7eb;
}

/* ---------- Total ---------- */

.velgrina-bundlepacks__total {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.velgrina-bundlepacks__total-label {
    font-size: 14px;
    font-weight: 400;
    color: #6B7280;
}

.velgrina-bundlepacks__total-price {
    font-size: 22px;
    font-weight: 700;
    color: #1E2022;
    margin-left: 6px;
}

.velgrina-bundlepacks__total-count {
    font-size: 13px;
    font-weight: 400;
    color: #6B7280;
    margin-left: 4px;
}

/* ---------- Savings ---------- */

.velgrina-bundlepacks__savings {
    font-size: 13px;
    color: #16a34a;
    font-weight: 500;
}

.velgrina-bundlepacks__savings strong {
    font-weight: 700;
}

/* ---------- Add to Cart button ---------- */

.velgrina-bundlepacks__atc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background-color: #2E7D8C;
    color: #fff;
    font-family: 'Jost', sans-serif;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.velgrina-bundlepacks__atc-btn:hover {
    background-color: #245f6b;
}

.velgrina-bundlepacks__atc-btn:focus-visible {
    outline: 2px solid #2E7D8C;
    outline-offset: 2px;
}

.velgrina-bundlepacks__atc-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 768px) {
    .velgrina-bundlepacks {
        border-left: none;
        border-right: none;
        border-radius: 0;
        margin: 1.5rem 0;
        padding: 1rem;
    }

    .velgrina-bundlepacks__title {
        font-size: 1.125rem;
    }

    .velgrina-bundlepacks__grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        gap: 0.75rem;
        padding-bottom: 4px;
    }

    .velgrina-bundlepacks__grid::-webkit-scrollbar {
        display: none;
    }

    .velgrina-bundlepacks__card {
        scroll-snap-align: start;
        flex: 0 0 180px;
        min-width: 180px;
        max-width: 180px;
    }

    .velgrina-bundlepacks__card-name {
        font-size: 11px;
        -webkit-line-clamp: 2;
    }

    .velgrina-bundlepacks__card-image {
        aspect-ratio: auto;
        height: 100px;
    }

    .velgrina-bundlepacks__footer {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .velgrina-bundlepacks__atc-btn {
        justify-content: center;
        width: 100%;
        padding: 10px;
    }
}
