* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Step Indicators */

.step-1-flex {
	display: flex;
	justify-content: space-between;
}

.step-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    margin-bottom: 60px;
    padding: 30px 0;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.step-item:hover .step-number {
    transform: scale(1.05);
}

.step-item::after {
    content: '';
    position: absolute;
    top: 20px;
    left: calc(100% + 10px);
    width: 60px;
    height: 2px;
    background-color: #ddd;
    transition: all 0.3s ease;
}

.step-item:last-child::after {
    display: none;
}

.step-item.active::after,
.step-item.completed::after {
    background-color: #2c5f2d;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e0e0e0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.step-item.active .step-number {
    background-color: #2c5f2d;
    color: white;
    transform: scale(1.1);
}

.step-item.completed .step-number {
    background-color: #2c5f2d;
    color: white;
}

.step-label {
    font-size: 14px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
}

.step-item.active .step-label {
    color: #2c5f2d;
    font-weight: 600;
}

/* Form Content */
.main-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.form-content {
    flex: 1;
    background-color: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.step-content {
    display: none;
}

.step-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-title {
    font-size: 32px;
    font-weight: 700;
    color: #222;
    margin-bottom: 30px;
    text-align: center;
}

/* Filter Section */
.filter-section {
    background-color: #f8f8f8;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 40px;
    width: 30%;
}

.filter-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-group h4 {
    font-size: 14px;
    font-weight: 600;
    color: #555;
    margin-bottom: 10px;
}

.filter-select {
    width: 100%;
    max-width: 300px;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background-color: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #2c5f2d;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-label span {
    font-size: 14px;
    color: #555;
}

.price-range {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-input {
    width: 100px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.price-input:focus {
    outline: none;
    border-color: #2c5f2d;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
    width: 65%; 
}

.product-card {
    background-color: white;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background-color: #f5f5f5;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
}

.product-name {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
    min-height: 44px;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: #2c5f2d;
    margin-bottom: 15px;
}

.product-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-add {
    background-color: #2c5f2d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add:hover {
    background-color: #234d24;
    transform: scale(1.02);
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-minus,
.btn-plus {
    background-color: #2c5f2d;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-minus:hover,
.btn-plus:hover {
    background-color: #234d24;
}

.quantity-input {
    width: 50px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-align: center;
    font-size: 14px;
}

.quantity-input:focus {
    outline: none;
    border-color: #2c5f2d;
}

/* Gift Box Grid */
.giftbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.giftbox-card {
    background-color: white;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.giftbox-card:hover {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
    border-color: #2c5f2d;
}

.giftbox-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    background-color: #f5f5f5;
}

.giftbox-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.giftbox-card:hover .giftbox-image img {
    transform: scale(1.08);
}

.giftbox-info {
    padding: 25px;
}

.giftbox-name {
    font-size: 17px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.4;
}

.giftbox-price {
    font-size: 20px;
    font-weight: 700;
    color: #2c5f2d;
    margin-bottom: 15px;
}

.giftbox-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Confirmation Container */
.confirmation-container {
    max-width: 600px;
    margin: 40px auto;
}

.box-summary {
    background-color: #f8f8f8;
    border-radius: 10px;
    padding: 30px;
}

.box-summary h3 {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}

.summary-divider {
    width: 100%;
    height: 1px;
    background-color: #ddd;
    margin: 20px 0;
}

.selected-items {
    min-height: 150px;
}

.empty-message {
    text-align: center;
    color: #999;
    font-size: 14px;
    padding: 40px 0;
}

.selected-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #e8e8e8;
}

.selected-item:last-child {
    border-bottom: none;
}

.item-details {
    flex: 1;
}

.item-name {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
}

.item-quantity {
    font-size: 13px;
    color: #666;
}

.item-price {
    font-size: 16px;
    font-weight: 700;
    color: #2c5f2d;
}

.total-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
}

.total-label {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.total-price {
    font-size: 24px;
    font-weight: 700;
    color: #2c5f2d;
}

/* Navigation Buttons */
.form-navigation {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.btn-back,
.btn-next,
.btn-submit {
    padding: 14px 40px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-back {
    background-color: #e8e8e8;
    color: #555;
}

.btn-back:hover {
    background-color: #d5d5d5;
}

.btn-next,
.btn-submit {
    background-color: #2c5f2d;
    color: white;
}

.btn-next:hover,
.btn-submit:hover {
    background-color: #234d24;
    transform: scale(1.02);
}

/* Error Message */
.error-message {
    background-color: #ffebee;
    color: #c62828;
    padding: 15px 20px;
    border-radius: 8px;
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    font-weight: 500;
}

/* Sidebar Cart */
.sidebar-cart {
    width: 350px;
    position: sticky;
    top: 20px;
    flex-shrink: 0;
}

.cart-container {
    background-color: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 2px solid #f0f0f0;
}

.cart-title {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    text-align: center;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cart-items {
    min-height: 200px;
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.empty-cart-message {
    text-align: center;
    color: #999;
    font-size: 14px;
    padding: 40px 0;
}

.cart-item {
    display: flex;
    gap: 12px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background-color: #f5f5f5;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
    line-height: 1.3;
}

.cart-item-price {
    font-size: 14px;
    font-weight: 600;
    color: #2c5f2d;
}

.cart-item-remove {
    position: absolute;
    top: 10px;
    right: 0;
    background: none;
    border: none;
    color: #999;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    transition: color 0.3s ease;
}

.cart-item-remove:hover {
    color: #e74c3c;
}

.cart-divider {
    width: 100%;
    height: 1px;
    background-color: #e0e0e0;
    margin: 20px 0;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.total-label {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.total-amount {
    font-size: 20px;
    font-weight: 700;
    color: #2c5f2d;
}

.cart-next-btn {
    width: 100%;
    background-color: #2c5f2d;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cart-next-btn:hover {
    background-color: #234d24;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-layout {
        flex-direction: column;
    }

    .sidebar-cart {
        width: 100%;
        position: relative;
        top: 0;
        order: -1;
    }

    .cart-container {
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }

    .step-indicators {
        gap: 20px;
        margin-bottom: 40px;
    }

    .step-item::after {
        width: 20px;
    }

    .step-number {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .step-label {
        font-size: 12px;
    }

    .form-content {
        padding: 25px 20px;
    }

    .step-title {
        font-size: 24px;
        margin-bottom: 25px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }

    .giftbox-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .form-navigation {
        flex-direction: column;
        gap: 15px;
    }

    .btn-back,
    .btn-next,
    .btn-submit {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .step-indicators {
        gap: 15px;
    }

    .step-label {
        display: none;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .filter-select {
        max-width: 100%;
    }
}
