/* Container for the entire page */
.container {
    max-width: 1300px;
    margin: 0 auto;
}

/* Progress Bar Styles */
.progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
    position: relative;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 25px;
    left: calc(12.5% + 30px);
    /* Adjusted to align with circles */
    right: calc(12.5% + 30px);
    height: 4px;
    background-color: #e0e0e0;
    z-index: 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 25%;
    position: relative;
    z-index: 1;
}

.step .circle {
    width: 60px;
    height: 60px;
    border: 3px solid var(--theme_color);
    border-radius: 50%;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--theme_color);
    margin-bottom: 10px;
    transition: background-color 0.3s, color 0.3s;
}

.step.active .circle {
    background-color: var(--theme_color);
    color: #fff;
}

.step .label {
    text-align: center;
    font-size: 16px;
    color: #555;
    width: 100px;
}

/* Main Content Layout */
.main-content {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
}

/* Shopping Cart Section */
.cart-section {
    flex: 2;
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.cart-section h2 {
    margin-bottom: 25px;
    font-size: 28px;
    color: #333;
    font-weight: 700;
}

.cart-items .cart-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

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

.product-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 25px;
}

.product-details {
    flex: 1;
}

.product-details h3 {
    font-size: 20px;
    margin-bottom: 5px;
    color: #333;
    font-weight: 700;
}

.product-details p {
    font-size: 14px;
    color: #777;
    margin-bottom: 15px;
}

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

.qty-btn {
    width: 35px;
    height: 35px;
    background-color: var(--theme_color);
    border: none;
    border-radius: 4px;
    color: var(--title_color);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
}

.qty-btn:hover {
    color: #fff;
    background-color: var(--title_color);
}

.quantity {
    width: 40px;
    text-align: center;
    font-size: 16px;
    margin: 0 10px;
    color: #333;
}

.cart-item .price {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin-right: 3rem;
}

.price .regular-price {
    font-size: 18px;
    font-weight: inherit;
}

.price .regular-price.standalone {
    text-decoration: none;
    color: #000;
    font-size: inherit;
    font-weight: inherit;
}

.price .sale-price {
    color: #000;
    font-size: inherit;
    font-weight: inherit;
}

.remove-btn {
    display: block;
    font-size: 1.4rem;
    line-height: 20px;
    cursor: pointer;
    transition: all .3s;
    background-color: transparent;
}

.remove-btn:hover {
    color: #000;
}

/* Summary and Checkout Section */
.checkout-section {
    flex: 1;
    min-width: 300px;
}

.summary-box {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.totals {
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.subtotal,
.shipping {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.subtotal span,
.shipping span {
    font-size: 16px;
    color: #555;
    font-weight: 600;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin-bottom: 25px;
}

.checkout-btn {
    width: 100%;
    padding: 15px 0;
    background-color: var(--theme_color);
    color: var(--title_color);
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 15px;
}

.checkout-btn:hover {
    color: #fff;
    background-color: var(--title_color);
}

.tax-info {
    color: #777;
    font-weight: 600;
}

.payment-methods {
    display: grid;
    gap: 15px;
    margin-top: 25px;
    font-size: 18px;
    font-weight: 600;
}

.payment-methods img {
    max-width: 100%;
    vertical-align: top;
}

.payment-methods i {
    font-size: 36px;
    color: #555;
    transition: color 0.3s;
}

.payment-methods i:hover {
    color: var(--theme_color);
}

.cart-main {
    padding: 120px 0 200px;
}

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

    .progress-bar::before {
        left: calc(6.25% + 30px);
        right: calc(6.25% + 30px);
    }
}

@media (max-width: 768px) {
    .progress-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .progress-bar::before {
        display: none;
    }

    .step {
        flex-direction: row;
        align-items: center;
        margin-bottom: 20px;
        width: auto;
    }

    .step .circle {
        margin-bottom: 0;
        margin-right: 15px;
    }

    .step .label {
        text-align: left;
        width: auto;
        font-size: 14px;
    }

    .checkout-section {
        margin-top: 30px;
    }
}