/* Make Your Own Coffee Builder Styles */

.tab-custom {
    background: linear-gradient(135deg, #CF6D17 0%, #F58D37 100%);
    color: white !important;
    border-color: #CF6D17 !important;
}

.tab-custom:hover {
    background: linear-gradient(135deg, #F58D37 0%, #CF6D17 100%);
    transform: translateY(-3px);
}

.tab-custom.active {
    box-shadow: 0 6px 20px rgba(207, 109, 23, 0.4);
}

.custom-coffee-builder {
    max-width: 900px;
    margin: 0 auto;
}

.builder-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #FBF5F0 100%);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    border: 2px solid #E5E0DC;
}

.builder-header {
    background: linear-gradient(135deg, #CF6D17 0%, #F58D37 100%);
    color: white;
    padding: 40px 32px;
    text-align: center;
}

.builder-icon {
    font-size: 64px !important;
    margin-bottom: 16px;
    opacity: 0.9;
}

.builder-header h3 {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 12px;
}

.builder-header p {
    font-size: 16px;
    opacity: 0.95;
}

.builder-content {
    padding: 40px 32px;
}

.builder-section {
    margin-bottom: 40px;
}

.builder-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--color-dark);
}

.builder-section-title .material-icons {
    color: var(--color-primary);
    font-size: 28px;
}

/* Base Options */
.base-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.base-option {
    cursor: pointer;
}

.base-option input[type="radio"] {
    display: none;
}

.option-card {
    background: white;
    border: 3px solid #E5E0DC;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
}

.base-option:hover .option-card {
    border-color: #CF6D17;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(207, 109, 23, 0.2);
}

.base-option input:checked+.option-card {
    border-color: #CF6D17;
    background: linear-gradient(135deg, #FFF8F3 0%, #FFFAF5 100%);
    box-shadow: 0 8px 24px rgba(207, 109, 23, 0.3);
}

.option-name {
    display: block;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-dark);
}

.option-price {
    display: block;
    font-size: 18px;
    font-weight: 900;
    color: var(--color-primary);
}

/* Customization Grid */
.customization-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.custom-group {
    background: white;
    padding: 20px;
    border-radius: 16px;
    border: 2px solid #E5E0DC;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    margin-bottom: 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.custom-checkbox:last-child {
    margin-bottom: 0;
}

.custom-checkbox:hover {
    background: #F8F8F8;
}

.custom-checkbox input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 24px;
    height: 24px;
    border: 2px solid #ddd;
    border-radius: 6px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s;
}

.custom-checkbox input:checked+.checkmark {
    background: linear-gradient(135deg, #CF6D17 0%, #F58D37 100%);
    border-color: #CF6D17;
}

.custom-checkbox input:checked+.checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 16px;
    font-weight: bold;
}

.addon-name {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-dark);
}

.addon-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-primary);
}

/* Builder Summary */
.builder-summary {
    background: linear-gradient(135deg, #FFF8F3 0%, #FFFAF5 100%);
    border: 2px dashed var(--color-primary);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 32px;
}

.summary-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.summary-label {
    font-size: 14px;
    font-weight: 600;
    color: #888;
}

.summary-price {
    font-size: 32px;
    font-weight: 900;
    color: var(--color-primary);
}

.btn-add-custom {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: white;
    padding: 16px 32px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 6px 20px rgba(207, 109, 23, 0.3);
}

.btn-add-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(207, 109, 23, 0.5);
}

.btn-add-custom .material-icons {
    font-size: 24px;
}

/* Responsive */

@media (max-width: 768px) {
    .builder-header {
        padding: 30px 20px;
    }

    .builder-header h3 {
        font-size: 24px;
    }

    .builder-content {
        padding: 24px 20px;
    }

    .base-options {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .option-card {
        padding: 16px;
    }

    .option-name {
        font-size: 14px;
    }

    .customization-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .builder-summary {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        gap: 16px;
    }

    .summary-price {
        font-size: 28px;
    }

    .btn-add-custom {
        width: 100%;
        justify-content: center;
        padding: 14px;
    }
}

@media (max-width: 480px) {
    .base-options {
        grid-template-columns: 1fr;
    }

    .builder-card {
        border-radius: 16px;
    }
}