@import url('https://fonts.googleapis.com/icon?family=Material+Icons');

/* ========================================
   Pack Hamburguesas — Visual Selector
   ======================================== */

/* Container */
.burger-pack-selector {
    max-width: 100%;
    box-sizing: border-box;
}

/* Header */
.bp-header {
    text-align: center;
    margin-bottom: 24px;
}

.bp-title {
    font-size: 28px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 4px;
    letter-spacing: -0.5px;
}

.bp-subtitle {
    font-size: 16px;
    color: #666;
    margin: 0 0 16px;
}

.bp-progress {
    width: 100%;
    max-width: 300px;
    height: 6px;
    background: #e5e5e5;
    border-radius: 3px;
    margin: 0 auto 8px;
    overflow: hidden;
}

.bp-progress-bar {
    height: 100%;
    background: #c40000;
    border-radius: 3px;
    width: 0%;
    transition: width 0.3s ease;
}

.bp-counter {
    font-size: 14px;
    color: #999;
    margin: 0;
}

.bp-counter span {
    font-weight: 700;
    color: #c40000;
}

/* Burger Grid */
.bp-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); gap: 16px; max-width: 1400px; margin: 0 auto;
    gap: 16px;
    margin-bottom: 20px;
}

@media (max-width: 991px) {
    .bp-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .bp-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* Burger Card */
.bp-card {
    background: #fff;
    border: 2px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
    text-align: center;
}

.bp-card:hover {
    border-color: #ccc;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.bp-card-selected {
    border-color: #c40000 !important;
    box-shadow: 0 0 0 2px rgba(196,0,0,0.15) !important;
}

.bp-card-img-wrap {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f5f5f5;
}

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

.bp-card-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #f0f0f0;
    color: #ccc;
}

.bp-card-img-placeholder i {
    font-size: 48px;
}

.bp-card-body {
    padding: 12px 10px 14px;
}

.bp-card-name {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin: 0 0 4px;
    line-height: 1.3;
    /* Truncate to 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bp-card-price {
    font-size: 14px;
    font-weight: 700;
    color: #c40000;
    margin: 0 0 10px;
}

/* Quantity Control */
.bp-qty-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.bp-btn-minus,
.bp-btn-plus {
    width: 34px; min-width: 34px;
    height: 34px;
    border: 2px solid #ddd;
    background: #fff;
    color: #333;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    line-height: 1;
    padding: 0;
    -webkit-user-select: none;
    user-select: none;
}

.bp-btn-minus {
    border-radius: 8px 0 0 8px;
}

.bp-btn-plus {
    border-radius: 0 8px 8px 0;
}

.bp-btn-minus:hover:not(:disabled),
.bp-btn-plus:hover:not(:disabled) {
    background: #c40000;
    border-color: #c40000;
    color: #fff;
}

.bp-btn-minus:disabled,
.bp-btn-plus:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.bp-qty-value {
    width: 40px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: #333;
    border-top: 2px solid #ddd;
    border-bottom: 2px solid #ddd;
    background: #fafafa;
    -webkit-user-select: none;
    user-select: none;
}

.bp-card-selected .bp-qty-value {
    background: #c40000;
    color: #fff;
    border-color: #c40000;
}

.bp-card-selected .bp-btn-minus,
.bp-card-selected .bp-btn-plus {
    border-color: #c40000;
}

/* Max notice */
.bp-max-notice {
    text-align: center;
    font-size: 13px;
    color: #888;
    margin: 0 0 16px;
    display: none;
}


.bp-add-to-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: none;
    padding: 16px 32px;
    background: #c40000;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(196,0,0,0.25);
}

.bp-add-to-cart:hover:not(:disabled) {
    background: #a30000;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(196,0,0,0.35);
}

.bp-add-to-cart:disabled {
    background: #ccc;
    color: #888;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.bp-add-to-cart .material-icons {
    font-size: 22px;
}

/* Mobile adjustments */
@media (max-width: 575px) {
    .bp-title {
        font-size: 22px;
    }

    .bp-subtitle {
        font-size: 14px;
    }

    .bp-card-body {
        padding: 8px 6px 10px;
    }

    .bp-card-name {
        font-size: 12px;
    }

    .bp-card-price {
        font-size: 13px;
    }

    .bp-btn-minus,
    .bp-btn-plus {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }

    .bp-qty-value {
        width: 36px;
        height: 30px;
        font-size: 14px;
    }

    .bp-add-to-cart {
        padding: 14px 24px;
        font-size: 16px;
    }
}

/* Action buttons row */
.bp-actions {
    display: flex !important;
    gap: 12px;
    max-width: 500px;
    margin: 12px auto 0;
    text-align: center;
}

.bp-whatsapp {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 10px;
    text-decoration: none;
    background: #25d366;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.bp-whatsapp:hover {
    background: #1ebe5d;
    color: #fff;
    text-decoration: none;
}

.bp-add-to-cart {
    flex: 1 !important;
    max-width: none !important;
}
