/* === Basket Builder Styling (Final) === */

/* Main Container */
.basket-builder-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
    font-family: Arial, sans-serif;
}

/* Step Headings */
.basket-step h2 {
    font-size: 28px;
    margin-bottom: 30px;
    color: #333;
    font-weight: bold;
    text-align: center;
}

/* Step Progress Indicator */
.basket-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    font-family: Arial, sans-serif;
    gap: 15px;
}

.basket-steps .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #888;
    font-size: 14px;
    transition: all 0.3s ease;
}

.basket-steps .circle {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.basket-steps .line {
    width: 50px;
    height: 2px;
    background: #ddd;
}

.basket-steps .step.active {
    color: #d4a056;
    font-weight: bold;
}

.basket-steps .step.active .circle {
    background: #d4a056;
    color: #fff;
    transform: scale(1.1);
}

/* Step 1: Buckets Grid */
.bucket-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px 0 40px;
}

.bucket-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    text-align: center;
    padding: 20px;
    width: 220px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}

.bucket-card img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
    border-radius: 8px;
}

.bucket-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.bucket-select.active,
.bucket-card.active {
    border: 2px solid #d4a056;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: scale(1.03);
}

/* Step 2: Category Buttons */
#basket-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
}

.basket-category {
    padding: 10px 18px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.basket-category.active,
.basket-category:hover {
    background: #d4a056;
    color: #fff;
    border-color: #d4a056;
}

/* Step 2: Product Grid (5 per row) */
.basket-product-grid {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin: 0 auto 40px;
    max-width: 1100px;
    justify-items: center;
    list-style: none;
    padding: 0;
}

.product-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    text-align: center;
    padding: 20px;
    width: 200px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.product-card img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
    border-radius: 8px;
}

.product-card h4 {
    font-size: 16px;
    margin: 8px 0;
    color: #333;
}

.product-card .price {
    font-size: 14px;
    color: #444;
    margin: 5px 0 10px;
}

.product-card button {
    background: #d4a056;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.product-card button:hover {
    background: #b8853f;
}

/* Step 2: Summary Box */
#basket-summary-step2 {
    background: #fafafa;
    padding: 20px;
    margin-top: 30px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    text-align: center;
}

#basket-summary-step2 h3 {
    margin-bottom: 15px;
    color: #333;
}

#basket-summary-step2 ul {
    list-style: none;
    padding: 0;
    margin: 0 0 10px;
}

#basket-summary-step2 li {
    padding: 5px 0;
    font-size: 14px;
    border-bottom: 1px solid #eee;
}

#basket-summary-step2 p {
    font-weight: bold;
    margin-top: 10px;
    font-size: 16px;
    color: #444;
}

/* Responsive Layout */
@media (max-width: 1200px) {
    .basket-product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .basket-product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

#basket-review {
    background: #fafafa;
    padding: 20px;
    margin: 30px auto;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

#basket-review-list ul {
    list-style: none;
    padding: 0;
    margin: 0 0 15px;
}

#basket-review-list li {
    font-size: 14px;
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

#basket-review p {
    font-weight: bold;
    font-size: 18px;
    color: #333;
}

#basket-add-cart {
    background: #28a745;
    color: #fff;
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 20px;
}

#basket-add-cart:hover {
    background: #218838;
}


.proceed-wrapper {
    text-align: center;
    margin-top: 20px;
}

.proceed-btn {
    background: #d4a056;
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.proceed-btn:hover {
    background: #b8853f;
    transform: translateY(-2px);
}

.step2-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.step2-header h2 {
    margin: 0;
    font-size: 24px;
    color: #333;
}

.back-btn {
    background: #ddd;
    color: #333;
    padding: 8px 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
    font-size: 14px;
}

.back-btn:hover {
    background: #bbb;
}

/* Step 3 (Review) Header with Back Button */
.step3-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.step3-header h2 {
    margin: 0;
    font-size: 24px;
    color: #333;
}

/* Center heading, back button left for Step 2 & 3 */
.step2-header, .step3-header {
    display: flex;
    align-items: center;
    justify-content: center;  /* Center the heading */
    position: relative;       /* Allow absolute button */
    margin-bottom: 20px;
}

.step2-header h2,
.step3-header h2 {
    margin: 0;
    font-size: 24px;
    color: #333;
    flex: 1;
    text-align: center;
}

.step2-header .back-btn,
.step3-header .back-btn {
    position: absolute;
    left: 0;
}

/* Step 2 Category Buttons (Updated Style) */
.basket-category {
    font-family: sans-serif;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    background: transparent;
    border: none;
    padding: 10px 18px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.basket-category:hover,
.basket-category.active {
    color: #7A0000;
    background: transparent;
    border: 2px solid #7A0000; /* Underline for hover/active */
}

