/* =================================================================
   SHOPPING CART - استایل‌های سبد خرید
   ================================================================= */
.shoppingCartNavTabsCustomStyle {
    width: 100%;
    height: 4.375rem;
    background-color: #3A3A3A14;
    display: flex;
    align-items: center;
    justify-content: start;
}
.shoppingCartNavTabsCustomStyle li {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    font-size: 1rem;
    font-weight: var(--font-weight-medium);
}

.shoppingCartNavTabsCustomStyle li button {
    color: black;
}
.shoppingCartNavTabsCustomStyle li .nav-link {
    padding: 1.2rem 0 ;
}
.shoppingCartContents {
    margin-top: 2rem;
    display: flex;
    width: 100%;
    gap: 4%;
}

.shoppingCartContents > *:first-child {
    width: 60rem;
}

.shoppingCartContents > *:last-child {
    flex: 0 0 23%;
}
.shoppingCartContent {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.showProductCountOnCart {
    font-weight: var(--font-weight-bold);
    font-size: 1.2rem;
    line-height: 2.25rem;
    text-align: right;
    color: var(--gray-800);

}
.showProductCountOnCartTapFour {
    padding: var(--spacing-md);
}

.showProductCountOnCart span {
    font-weight: var(--font-weight-normal);
    font-size: 0.9rem;
    line-height: 1.875rem;
    color: var(--gray-800);
}

/* Cart Item */
.card-item {
    display: flex;
    gap: 2rem;

}

/* Product Image */
.shoppingCardItemProductImage {
    position: relative;
    border-radius: 0.5rem;
}

.shoppingCardItemProductImage img {
    border-radius: 0.5rem;
    padding: 0.5rem;
    border: 1px solid #b8b8b8;
}

.shoppingCardItemProductContent {
    display: flex;
    flex-direction: column;
    width: 100%;
    justify-content: space-between;
}

.shoppingCardItemProductTitle {
    color: var(--gray-800);
    font-weight: var(--font-weight-medium);
    font-size: 1.25rem;
    line-height: 1.875rem;
    text-align: right;
}
.shoppingCardItemProductDetails {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.shoppingCardItemProductStore, .shoppingCardItemProductSend {
    font-weight: var(--font-weight-normal);
    font-size: 0.875rem;
    line-height: 1.625rem;
    text-align: right;
    text-decoration: none;
    color: var(--gray-800);
    vertical-align: middle;
}
.shoppingCardItemProductStore span, .shoppingCardItemProductSend span{
    font-weight: var(--font-weight-medium);
    font-size: 0.938rem;
    line-height: 1.5rem;
    text-align: right;
    vertical-align: middle;
    color: var(--gray-800);
}
.shoppingCardItemProductStore span {
    color: var(--base-color);
}
.shoppingCardItemProductFooterSection {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.shoppingCardItemProductPriceSection {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
/* Price Display */
.shoppingCardItemProductPriceOriginal {
    font-weight: var(--font-weight-normal);
    font-size: 1.125rem;
    line-height: 2rem;
    text-decoration: line-through;
    color: var(--danger-color);
}

.shoppingCardItemProductPriceCurrent {
    font-weight: var(--font-weight-bold);
    font-size: 1.5rem;
    line-height: 2rem;
    color: var(--success-color);
}

.shoppingCartContentCartSummeryContent {
    border: 1px solid #4141411f;
    padding: 1.5rem 1rem;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
/* Summary Section */
.shoppingCartContentCartSummeryRow {
    display: flex;
    justify-content: space-between;
}

.summary-row:first-child {
    font-weight: var(--font-weight-normal);
    font-size: 1.125rem;
    line-height: 2rem;
    text-align: right;
    color: var(--gray-800);
}
.summary-row:last-child {
    font-weight: var(--font-weight-medium);
    font-size: 1.25rem;
    line-height: 1.875rem;
    text-align: right;
    color: var(--gray-800);
}

.shoppingCartContentCartSummeryTotalPrice {
    font-weight: var(--font-weight-bold);
    font-size: 1rem;
    line-height: 2rem;
    text-align: right;
    color: var(--success-color);
}
.shoppingCartContentCartSummeryTotalPriceCount {
    font-weight: var(--font-weight-bold);
    font-size: 1.2rem;
    line-height: 2.125rem;
    text-align: right;
    color: var(--success-color);
}
.shoppingCartContentCartSummeryHr {
    margin: 0;
}
.shoppingCartContentCartSummeryNextBtn {
    background: var(--success-color);
    border: none;
    padding: 0.5rem;
    color: white;
    border-radius: 0.5rem;
    font-weight: var(--font-weight-normal);
    font-size: 0.9rem;
}
.shoppingCartContentCartSummeryNoteSection {
    font-weight: var(--font-weight-normal);
    font-size: 0.875rem;
    line-height: 1.625rem;
    text-align: justify;
    margin-top: 1rem;
}
.shoppingCartContentCartSummeryNoteAdverbCard {
    background: #F3F3F3;
    backdrop-filter: blur(1.25rem);
    border: 0.0625rem solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-2xl);
    text-align: center;
    transition: all var(--transition-base);
    height: 10rem;
    margin-top: 1rem;
}
.shoppingCartAddressList {
    display: flex;
    flex-direction: column;
    padding: 0 !important;
    margin: 0;
    gap: 1rem;
    list-style-type: none;
}
.shoppingCartAddressListSection {
    position: relative;
}

.shoppingCartAddressListItem {
    display: flex;
    align-items: center;
    width: 100%;
    color: #999;
    border: 1px solid #E8E8E8;
    border-radius: 0.5rem;
    background: white;
}
.shoppingCartAddressListItemInput {
    display: flex;
    position: absolute;
    z-index: 10;
    right: 1rem;
}
.shoppingCartAddressListItem:has(.shoppingCartAddressListItemInput:checked) {
    border-color: var(--base-color);
}
.shoppingCartAddressListItemInput[type="radio"] {
    appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    border: 1px solid #ccc;
    border-radius: 50%;
    position: relative;
}

.shoppingCartAddressListItemInput[type="radio"]:checked {
    border-color: var(--base-color);
}

.shoppingCartAddressListItemInput[type="radio"]:checked::before {
    content: '';
    width: 0.625rem;
    height: 0.625rem;
    background: var(--base-color);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.shoppingCartAddressListItemInput[type="radio"] {
    border-radius: 50%;
}
.shoppingCartAddressListItemLabel {
    padding: 1.5rem;
    width: 100%;
    display: flex;
    justify-content: space-between;
    border-radius: 0.5rem;
    align-items: center;
}
.shoppingCartAddressListItem:has(.shoppingCartAddressListItemInput:disabled) {
    background-color: #f8f8f8;
}
.shipment-types {
    padding: 0 !important;
    list-style-type: none;
}

.shoppingCartContentProductCard {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(1.25rem);
    border: 0.0625rem solid rgba(65, 65, 65, 0.2);
    border-radius: 1rem;
    padding: var(--spacing-sm);
    transition: all var(--transition-base);
    overflow: hidden;
    margin-bottom: 0.5rem;
    width: 100%;
    max-height: 16rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.detailsOfOrderTd {
    font-weight: var(--font-weight-normal);
    font-size: 1rem;
    line-height: 1.875rem;
    text-align: right;
}
.detailsOfOrderSecondTd {
    font-weight: var(--font-weight-medium);
    font-size: 1.25rem;
    line-height: 1.75rem;
    text-align: right;

}
.orderDetailShipmentTypeLabel {
    background-color: #f8f8f8;
    font-weight: var(--font-weight-medium);
    font-size: 1rem;
    line-height: 1.875rem;
    text-align: right;
    border: none;
    color: var(--base-color);
    padding: 1rem;
    border-radius: 0.5rem;

}
.orderDetailInputWithButton {
    position: relative;
    width: 100%;
}

.orderDetailInputWithButton input {
    width: 100%;
    padding: 0.9rem;
    border: 1px solid #E8E8E8;
    border-radius: 0.5rem;
    outline: none;
    font-size: 1rem;
}
.orderDetailInputWithButton input:focus {
    box-shadow: none !important;
    border: 1px solid var(--base-color) !important;
}

.orderDetailInputWithButton button {
    position: absolute !important;
    top: 0.5rem;
    left: 0.5rem;
    background-color: var(--base-color);
    color: white;
    border: none;
    transition: background-color 0.3s ease;
    width: 7rem;
}
.orderDetailShipmentTypeSpan {
    display: flex;
    gap: 1rem;
    align-items: center;
}







/* Quantity Controls */
.quantity-controls {
    border: 1px solid #B8B8B8;
    border-radius: 8px;
    overflow: hidden;
    display: inline-flex;
}

.quantity-controls button {
    background: white;
    border: none;
    padding: 0px 10px;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.2s;
}

.quantity-controls button:hover {
    background: #f8f9fa;
    color: #5C4DFF;
}

.quantity-controls input {
    border: none;
    width: 48px;
    text-align: center;
    padding: 5px 0 0 0;
    background: white;
    -webkit-appearance: none;
    -moz-appearance: textfield;
    border-left: 1px solid #B8B8B8;
    border-right: 1px solid #B8B8B8;
}

.quantity-controls input::-webkit-outer-spin-button,
.quantity-controls input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity-controls input:focus {
    outline: none;
}

.qty.loading {
    opacity: 0.6;
    pointer-events: none;
}



.discount-badge {
    background: #dc3545;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 500;
}

.price-row {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

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


.product-color {
    margin-bottom: 10px;
    font-size: 0.95em;
    color: #6c757d;
}

.color-circle {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #dee2e6;
}





.back-btn {
    background: linear-gradient(45deg, #a72828, #c92020);
    border: none;
    padding: 15px;
    font-size: 0.9em;
    font-weight: 200;
    color: white;
    border-radius: 10px;
    width: 100%;
    margin-top: 20px;
    transition: all 0.3s;
}

.back-btn:hover {
    background: linear-gradient(45deg, #882121, #a01e1e);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(167, 40, 40, 0.3);
}

/* Note Section */
.header-title {
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 30px;
    color: #333;
}



/* User Form Card */
.user-form-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    padding: 30px;
    border: 1px solid #e9ecef;
}

.form-title {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 25px;
    text-align: center;
    font-size: 22px;
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    color: #495057;
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
    font-size: 14px;
}

.form-control {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fff;
    color: #495057;
    appearance: none;
}

.form-control:focus {
    border-color: #5C4DFF;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    outline: 0;
}

.form-control::placeholder {
    color: #6c757d;
    font-size: 13px;
}

select.form-control {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: left 0.75rem center;
    background-size: 16px 12px;
    padding-left: 2.25rem;
}

/* Inline Form Row */
.form-row-inline {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 15px;
}

.form-label-inline {
    color: #495057;
    font-weight: 500;
    font-size: 14px;
    min-width: 120px;
    text-align: left;
}

.address-textarea {
    min-height: 80px;
    resize: vertical;
}

/* Action Buttons */
.shoppingCartContentActionButtons {
    display: flex;
}

.btn-outline-primary {
    border: 1px solid var(--base-color);
    color: var(--base-color);
    background: white;
    border-radius: 8px;
    padding: 8px 15px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-outline-primary:hover {
    background: white;
    color: var(--base-color);
}

.btn-primary-custom {
    background-color: #6658f8;
    border-color: #5C4DFF;
    color: white;
    border-radius: 8px;
    padding: 8px 15px;
    font-size: 12px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    background-color: #463bc9;
}

.btn-primary {
    background-color: #6658f8;
    border-color: #5C4DFF;
    border-radius: 8px;
    padding: 12px 25px;
    font-weight: 600;
    font-size: 14px;
    width: 100%;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #6658f8;
    border-color: #5C4DFF;
}

/* Shipping Methods */
.shipping-methods {

}

.shipping-method-title {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 16px;
}

.shipping-option {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.shipping-option:hover {
    background: #f8f9fa;
}

.shipping-option.selected {
    border-color: #5C4DFF;
    background: rgba(13, 110, 253, 0.05);
}

.shipping-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.custom-radio {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    height: 20px;
    width: 20px;
    border: 2px solid #dee2e6;
    border-radius: 50%;
    background: white;
    transition: all 0.3s ease;
}

.shipping-option input[type="radio"]:checked + .custom-radio {
    border-color: #5C4DFF;
}

.shipping-option input[type="radio"]:checked + .custom-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: #5C4DFF;
    border-radius: 50%;
}

.shipping-content {
    margin-right: 40px;
}

.shipping-method-name {
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 5px;
    display: inline-block;
}

.shipping-price {
    color: #28a745;
    font-weight: 600;
    float: left;
    font-size: 13px;
}

.shipping-time {
    color: #6c757d;
    font-size: 12px;
    clear: both;
    margin-top: 5px;
}

.custom-shipping-input {
    margin-top: 10px;
    clear: both;
}

/* Notes Section */
.notes-section {

}

.notes-title {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 16px;
}

.notes-subtitle {
    color: #6c757d;
    font-size: 13px;
    margin-bottom: 15px;
}

/* Address Selector */
#special-selector li,
#special-selector-for-shipping li {
    list-style: none;
    margin-bottom: 10px;
}

.address-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: 2px solid #198754;
    border-radius: 8px;
    background-color: #d1e7dd;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

input[type="radio"]:checked + .address-card {
    border-color: #0f5132;
    box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.25);
    background-color: #cfe6db;
}

.address-card .form-check-input {
    width: 1.2em;
    height: 1.2em;
    border: 2px solid #198754;
    border-radius: 50%;
    display: inline-block;
    position: relative;
}

input[type="radio"]:checked + .address-card .form-check-input::after {
    content: '';
    width: 0.6em;
    height: 0.6em;
    background-color: #198754;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.showMeShopingCard {
    font-weight: var(--font-weight-light);
    font-size: 0.825rem;
    line-height: 1rem;
    vertical-align: middle;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--base-color);
    margin-right: 1.2rem;
}
.showMeMoreDetails {
    font-weight: var(--font-weight-light);
    font-size: 0.825rem;
    line-height: 1rem;
    vertical-align: middle;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--base-color);
    margin-right: 1.2rem;
}
.showMeReviews {
    font-weight: var(--font-weight-light);
    font-size: 0.825rem;
    line-height: 1rem;
    vertical-align: middle;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--base-color);
    margin-right: 1.2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .user-form-card {
        padding: 20px;
        border-radius: 10px;
    }

    .form-title {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .form-control {
        padding: 10px 12px;
        font-size: 13px;
    }

    .btn-primary {
        padding: 10px 20px;
        font-size: 13px;
    }

    .form-row-inline {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .form-label-inline {
        min-width: auto;
        text-align: right;
        margin-bottom: 5px;
    }

    .shoppingCartContentActionButtons {
        flex-direction: column;
    }

    .shipping-price {
        float: none;
        display: block;
        margin-top: 5px;
    }
}
@media (max-width: 62rem) {
    .shoppingCartForDesktopMode {
        display: none;
    }
    .shoppingCartForMobileMode {
        display: flex !important;
        justify-content: center;
    }
    .shoppingCartContentsForMobile {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    .shoppingCartContentForMobile {
        display: flex;
        flex-direction: column;
        padding: var(--spacing-md);
        gap: 1rem;
    }
    .shoppingCardItemProductImageForMobile {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    .shoppingCardItemProductPriceSectionForMobile {
        display: flex;
        flex-direction: column;
    }
    .shoppingCardItemProductContentForMobile {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    .shoppingCardItemProductDetailsForMobile {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    .cardItemForMobile {
        padding: 1rem 0;
        color: inherit;
        display: flex;
        gap: 2rem;
    }
    .cardItemForMobile:not(:last-child) {
        border-bottom: 1px solid rgba(184, 184, 184, 0.75);
    }
    .shoppingCartContentCartSummeryForMobile {
        padding: 0 var(--spacing-md);
        margin-bottom: 6rem;
    }
    .shoppingCartContentCartSummeryFixed {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background-color: #F3F3F3;
        padding: 1rem;
        width: 100%;
        box-sizing: border-box;
        z-index: 11;
    }
    .shoppingCartContentCartSummeryFixedPrice {
        display: flex;
        flex-direction: column;
        text-align: right;
        font-weight: var(--font-weight-light);
        font-size: 0.625rem;
        line-height: 0.938rem;
    }
    .shoppingCartContentCartSummeryFixedPriceSpan {
        font-weight: var(--font-weight-bold);
        font-size: 1.3rem;
        line-height: 1.5rem;
        color: var(--success-color);
    }
    .showAddressInTapThree table tbody tr{
        width: 100%;
        display: flex;
        justify-content: space-between;
    }
    .showAddressInTapThree table tbody tr td{
        width: 100%;
        font-weight: var(--font-weight-normal);
        font-size: 1rem;
        line-height: 1.5rem;
        text-align: right;
    }
    .showAddressInTapThree table tbody tr td:last-child{
        font-weight: var(--font-weight-medium);
    }
    .showAddressInTapFour table tbody tr{
        width: 100%;
        display: flex;
        justify-content: space-between;
    }
    .showAddressInTapFour table tbody tr td{
        width: 100%;
        font-weight: var(--font-weight-normal);
        font-size: 1rem;
        line-height: 1.5rem;
        text-align: right;
    }
    .showAddressInTapThree table tbody tr td:last-child{
        font-weight: var(--font-weight-medium);
    }
    .shoppingCartAddressListItemLabel {
        padding: 1rem 1.5rem;
    }
    .shoppingCartContentCartSummeryNextBtn {
        width: 10rem;
    }
}
