/* Wax Melt Box Builder Styles */

.wmb-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: 'Crimson Text', Georgia, serif;
}

.wmb-header {
    text-align: center;
    margin-bottom: 50px;
}

.wmb-title {
    font-size: 48px;
    font-weight: 400;
    margin: 0 0 20px;
    color: #1a1a1a;
    letter-spacing: -0.5px;
}

.wmb-description {
    font-size: 18px;
    color: #666;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto 15px;
}

.wmb-price-info {
    font-size: 16px;
    color: #999;
    font-weight: 600;
}

/* Builder Section */
.wmb-builder-section {
    background: #f9f7f5;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 50px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.wmb-builder-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.wmb-builder-header h3 {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #666;
    margin: 0;
}

.wmb-progress {
    font-size: 18px;
    font-weight: 600;
    color: #6B46C1;
}

.wmb-count {
    font-size: 24px;
    font-weight: 700;
}

.wmb-instruction {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.wmb-selected-items {
    min-height: 50px;
    margin-bottom: 20px;
}

.wmb-selected-item {
    display: inline-block;
    background: white;
    padding: 8px 15px;
    margin: 5px;
    border-radius: 20px;
    font-size: 14px;
    color: #333;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.wmb-selected-item .quantity {
    font-weight: 700;
    color: #6B46C1;
    margin-left: 5px;
}

.wmb-cart-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.wmb-add-to-cart {
    flex: 1;
    background: #6B46C1;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.wmb-add-to-cart:hover:not(:disabled) {
    background: #5a3aa0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 70, 193, 0.3);
}

.wmb-add-to-cart:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.wmb-reset-selection {
    background: transparent;
    color: #6B46C1;
    border: none;
    padding: 10px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: underline;
    font-family: inherit;
}

.wmb-reset-selection:hover {
    color: #5a3aa0;
}

/* Products Grid */
.wmb-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.wmb-product-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.wmb-product-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transform: translateY(-4px);
}

.wmb-product-card.selected {
    border: 2px solid #6B46C1;
    box-shadow: 0 4px 16px rgba(107, 70, 193, 0.2);
}

.wmb-category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 1;
}

.wmb-category-fresh {
    background: #e8f5e9;
    color: #2e7d32;
}

.wmb-category-floral {
    background: #f3e5f5;
    color: #7b1fa2;
}

.wmb-category-woody {
    background: #efebe9;
    color: #5d4037;
}

.wmb-category-fruity {
    background: #fff3e0;
    color: #e65100;
}

.wmb-category-aromatic {
    background: #e0f2f1;
    color: #00695c;
}

.wmb-category-citrus {
    background: #fff9c4;
    color: #f57f17;
}

.wmb-product-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 15px;
}

.wmb-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.wmb-product-card:hover .wmb-product-image img {
    transform: scale(1.05);
}

.wmb-product-content {
    flex: 1;
    margin-bottom: 15px;
}

.wmb-product-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 10px;
    color: #1a1a1a;
}

.wmb-product-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
}

.wmb-attribute {
    font-size: 13px;
    color: #555;
    margin-bottom: 5px;
}

.wmb-attribute strong {
    color: #333;
}

/* Quantity Selector */
.wmb-product-actions {
    margin-top: auto;
}

.wmb-quantity-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 8px;
}

.wmb-qty-btn {
    background: white;
    border: 1px solid #ddd;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: #333;
}

.wmb-qty-btn:hover:not(:disabled) {
    background: #6B46C1;
    border-color: #6B46C1;
    color: white;
}

.wmb-qty-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.wmb-quantity {
    width: 50px;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 18px;
    font-weight: 700;
    color: #6B46C1;
}

.wmb-product-footer {
    display: flex;
    gap: 10px;
}

.wmb-add-btn,
.wmb-remove-btn {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.wmb-add-btn {
    background: #6B46C1;
    color: white;
    border: none;
}

.wmb-add-btn:hover {
    background: #5a3aa0;
}

.wmb-remove-btn {
    background: white;
    color: #d32f2f;
    border: 1px solid #d32f2f;
}

.wmb-remove-btn:hover {
    background: #d32f2f;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .wmb-title {
        font-size: 36px;
    }
    
    .wmb-products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .wmb-cart-actions {
        flex-direction: column;
    }
    
    .wmb-add-to-cart {
        width: 100%;
    }
}

/* Loading State */
.wmb-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.wmb-loading:after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* Success Message */
.wmb-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #4caf50;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 9999;
    animation: slideIn 0.3s ease;
}

.wmb-message.error {
    background: #f44336;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}