/* Bundle Builder Styles */
.builder-section {
    padding: 140px 0 80px 0;
    background-color: var(--white);
    min-height: 80vh;
}

.builder-header {
    text-align: center;
    margin-bottom: 50px;
}

.builder-title {
    font-size: 2.5rem;
    color: var(--primary-brown);
    margin-bottom: 16px;
    font-family: 'Playfair Display', serif;
}

.builder-subtitle {
    color: var(--charcoal);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.builder-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    align-items: start;
}

@media (max-width: 991px) {
    .builder-layout {
        grid-template-columns: 1fr;
    }
}

/* Product Selection Grid */
.selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}

.builder-product-card {
    border: 1px solid var(--light-gray);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    background: white;
    position: relative;
    overflow: hidden;
}

.builder-product-card:hover {
    box-shadow: var(--shadow-soft);
    border-color: var(--primary-brown);
}

.builder-product-card.selected {
    border-color: var(--sage-green);
    background-color: rgba(181, 201, 160, 0.1);
}

.builder-product-card.selected::after {
    content: "✓";
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--sage-green);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.builder-product-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
}

.builder-product-info h3 {
    font-size: 1rem;
    margin-bottom: 4px;
    color: var(--primary-brown);
}

.builder-product-price {
    color: var(--sage-green);
    font-weight: 600;
}

/* Bundle Summary Panel */
.bundle-summary {
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 16px;
    padding: 24px;
    position: sticky;
    top: 100px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.summary-header {
    border-bottom: 1px solid var(--light-gray);
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.summary-title {
    font-size: 1.5rem;
    color: var(--primary-brown);
    font-family: 'Playfair Display', serif;
}

.bundle-slots {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.bundle-slot {
    background: var(--light-gray);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 60px;
}

.slot-empty {
    color: #888;
    font-style: italic;
    font-size: 0.9rem;
}

.slot-filled {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
}

.slot-thumb {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    object-fit: cover;
}

.slot-remove {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0 8px;
}

.price-breakdown {
    border-top: 1px solid var(--light-gray);
    padding-top: 16px;
    margin-top: auto;
}

.price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    color: var(--charcoal);
}

.price-row.total {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-brown);
    margin-top: 12px;
    border-top: 1px dashed var(--light-gray);
    padding-top: 12px;
}

.discount-tag {
    background: #e74c3c;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-left: 8px;
}

.btn-checkout {
    width: 100%;
    margin-top: 24px;
    background-color: var(--primary-brown);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-checkout:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.btn-checkout:hover:not(:disabled) {
    background-color: var(--dark-brown);
    transform: translateY(-2px);
}