.offcanvas {
    width: 600px !important;
    margin-right: 10px;
    background: #f4f4f4;
    margin-bottom: 10px;
    border-radius: 20px;
}

.offcanvas-header {
    padding: 15px 30px;
}
.offcanvas-title {
    font-size: 18px;
    font-weight: 600;
    font-family: Lato;
}
.btn-close {
    font-size: 14px;
}

.offcanvas-body {
    padding: 0;
    height: calc(100vh - 60px); /* Adjust 60px based on your header height */
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

@media (max-width: 576px) {
    .offcanvas {
        width: 100% !important;
    }
}
.cart-items-section {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 20px;
    overflow: hidden !important;
}

.product-section {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}
.cart-footer {
    background: white;
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    border-radius: 14px;
    max-width: 595px;
    width: 595px;
    margin: 0 auto;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}
.custom-close-btn {
    position: absolute;
    top: 10px;
    left: -45px;
    width: 35px;
    height: 35px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.custom-close-btn:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: rotate(90deg);
}

.custom-close-btn::before,
.custom-close-btn::after {
    content: "";
    position: absolute;
    width: 15px;
    height: 1px;
    background: white;
}

.custom-close-btn::before {
    transform: rotate(45deg);
}
.btn-close {
    display: none !important;
}

.custom-close-btn::after {
    transform: rotate(-45deg);
}
@media (max-width: 425px) {
    .btn-close {
        display: block !important;
    }
    .offcanvas {
        margin: 0px;
    }
}

.cart-item {
    background: white;
    padding: 20px;
    border-radius: 0;
    position: relative;
    max-width: 560px;
    width: 560px;
    margin: 0 auto;
    border-radius: 14px;
}
.cart-item-wrapper {
    position: relative;
    /* padding-bottom: 50px; */
}
.cart-item-content {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.item-image {
    width: 90px;
    height: 90px;
    border-radius: 10px;
    background: #f4f4f4;
    flex-shrink: 0;

    display: flex;
    align-items: center; /* vertical center */
    justify-content: center;
}
.item-image img {
    width: 60px;
    height: 76px !important;
}
.item-details {
    flex: 1;
}

.item-title {
    font-family: lato;
    font-size: 16px;
    font-weight: 500;
    color: #333333;
    margin-bottom: 8px;
}

.item-specs {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.color-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-block;
    vertical-align: middle;
    margin-left: 5px;
    border: 1px solid #ddd;
}

.price-quantity {
    display: flex;
    align-items: center;
    gap: 15px;
}

.item-price {
    font-family: lato;
    font-weight: 700;
    color: #333333;
    font-size: 16px;
}

.multiply-sign {
    color: #333333;
    font-size: 16px;
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--color-primary);
    border-radius: 50px;
    padding: 0px 4px 0px 4px;
    background: radial-gradient(
            90.35% 90.35% at 23.94% 5.43%,
            rgba(232, 78, 27, 0.1) 0%,
            rgba(255, 36, 36, 0.1) 47.6%,
            rgba(232, 78, 27, 0.1) 100%
        )
        /* warning: gradient uses a rotation that is not supported by CSS and may not behave as expected */;
}

.qty-btn {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: none;
    background: #ff2424;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
}

.qty-btn:hover {
    background: #ff2424;
}

.qty-number {
    min-width: 25px;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
}

.original-price {
    font-family: lato;
    color: #333333;
    font-size: 16px;
    font-weight: 700;
    margin-left: auto;
}

.delete-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 16px;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    z-index: 999;
}

.more-details {
    color: #ff2424;
    font-size: 13px;
    font-weight: 600;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    position: absolute;
    right: 0px;
    background: radial-gradient(
            90.35% 90.35% at 23.94% 5.43%,
            rgba(232, 78, 27, 0.1) 0%,
            rgba(255, 36, 36, 0.1) 47.6%,
            rgba(232, 78, 27, 0.1) 100%
        )
        /* warning: gradient uses a rotation that is not supported by CSS and may not behave as expected */;
    border-radius: 50px;
}
.more-details .arrow {
    transition: transform 0.3s ease;
    display: inline-block;
}

.more-details[aria-expanded="true"] .arrow {
    transform: rotate(180deg);
}

.collapse {
    margin: 0;
}

.collapse-content {
    padding: 15px 0 0 0;
}
.border-item {
    border-top: 1px solid #e0e0e0;
}
.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 13px;
}

.detail-label {
    color: #666;
    font-weight: 400;
}

.detail-value {
    color: #333;
    font-weight: 500;
    text-align: right;
    max-width: 60%;
}

@media (max-width: 576px) {
    .offcanvas {
        width: 100% !important;
        margin: 0;
    }
    .cart-item {
        padding: 15px;
    }

    .item-specs {
        flex-direction: column;
        gap: 5px;
        align-items: flex-start;
    }

    .price-quantity {
        flex-wrap: wrap;
    }
}
@media (max-width: 425px) {
    .btn-close {
        display: block !important;
    }

    .custom-close-btn {
        display: none;
    }
    .cart-item {
        width: 390px;
    }
}

/* Cart Footer Styles */
.coupon-section {
    margin-bottom: 20px;
}

.coupon-label {
    font-family: lato;
    font-size: 16px;
    font-weight: 400;
    color: #4c4c4c;
    margin-bottom: 10px;
    display: block;
}

.coupon-input-group {
    display: flex;
    gap: 0;
    width: 560px;
    height: 50px;
    border-radius: 10px;
}

.coupon-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px 0 0 8px;
    font-size: 14px;
    outline: none;
}

.coupon-input:focus {
    border-color: #ff2424;
}

.btn-apply {
    padding: 12px 30px;
    background: #ff2424;
    color: white;
    border: none;
    border-radius: 0 8px 8px 0;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
}

.btn-apply:hover {
    background: #ff2424;
}

.price-summary {
    margin-bottom: 20px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}

.price-label {
    font-family: lato;
    font-weight: 400;
    font-size: 16px;
    color: #4c4c4c;
}

.price-value {
    font-family: lato;
    font-size: 16px;
    color: #000000;
    font-weight: 700;
}

.coupon-discount {
    font-family: lato;
    font-size: 16px;
    color: #ff2424;
    font-weight: 600;
    font-weight: 700;
}

.coupon-code {
    color: #ff2424;
    font-weight: 400;
}

.installation-section {
    margin: 15px 0;
    padding: 15px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.installation-text {
    font-family: lato;
    font-weight: 400;
    font-size: 16px;
    color: #333333;
    margin-bottom: 10px;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.custom-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #ff2424;
}

.checkbox-label {
    font-family: lato;
    font-size: 14px;
    font-weight: 400;
    color: #333333;
    flex: 1;
}

.installation-price {
    font-weight: 600;
    color: #333333;
}

.total-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 16px;
    font-weight: 700;
}

.total-label {
    font-family: lato;
    font-size: 20px;
    font-weight: 600;
    color: #333333;
}

.total-value {
    color: #ff2424;
    font-size: 24px;
}

.checkout-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}
.checkout-buttons a {
    display: flex;
    align-items: center; /* vertical center */
    justify-content: center; /* horizontal center */
    text-decoration: none; /* remove underline */
}

.btn-view-cart {
    flex: 1;
    padding: 15px;
    background: #ffe5e5;
    color: #ff2424;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    width: 270;
    height: 50;
    border-radius: 50px;
}

.btn-view-cart:hover {
    background: #ffd5d5;
}

.btn-checkout {
    flex: 1;
    padding: 15px;
    background: radial-gradient(
            90.35% 90.35% at 23.94% 5.43%,
            #e84e1b 0%,
            #ff2424 47.6%,
            #e84e1b 100%
        )
        /* warning: gradient uses a rotation that is not supported by CSS and may not behave as expected */;

    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    width: 270;
    height: 50;
    border-radius: 50px;
}

.btn-checkout:hover {
    background: #e61f1f;
}
