/* Orders Page Styles */
.orders-wrapper {
    background: #fff;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.04);
    border: 1px solid #e5e7eb;
}

/* Header Styles */
.orders-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3436;
    position: relative;
    padding-right: 15px;
}

.orders-title::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

/* Filter Tabs */
.orders-filter-nav {
    gap: 8px;
}

.orders-filter-nav .nav-link {
    color: #6c757d;
    border-radius: 25px;
    padding: 6px 18px;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.orders-filter-nav .nav-link:hover {
    background-color: #f8f9fa;
    color: #495057;
}

.orders-filter-nav .nav-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* Order Card */
.order-card {
    border-radius: 16px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.order-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
}

/* Order Status - Compact Version */
.order-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}

.status-processing {
    background-color: rgba(255, 193, 7, 0.1);
    color: #f39c12;
}

.status-delivered {
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.status-pending {
    background-color: rgba(108, 117, 125, 0.1);
    color: #6c757d;
}

/* Product Status Badge - برای وضعیت هر محصول */
.product-status-badge {
    display: inline-block;
    padding: 3px 10px;
    background-color: rgba(23, 162, 184, 0.1);
    color: #17a2b8;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
}

.product-status-badge.delivered {
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

/* Product Items - Compact Version */
.order-product-image img {
    width: 150px;
    height: 150px;
    /*object-fit: cover;*/
    /*border-radius: 8px;*/
    border: none !important;
}

.product-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 2px;
}

.product-specs span {
    background-color: #f8f9fa;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.7rem;
    white-space: nowrap;
}

.order-product-details .fw-bold {
    font-size: 0.9rem;
}

/* Order Footer - Compact */
.order-footer {
    background-color: #f8f9fa;
    font-size: 0.85rem;
}

.order-footer small {
    font-size: 0.8rem;
    line-height: 1.4;
}

.order-footer .text-primary {
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .orders-wrapper {
        padding: 15px;
    }

    .orders-title {
        font-size: 1.3rem;
    }

    .order-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 8px;
    }

    .order-header > div:first-child {
        width: 100%;
        font-size: 0.85rem;
    }

    .vr {
        display: none !important;
    }

    .product-specs {
        flex-wrap: wrap;
    }

    .product-specs span {
        margin-bottom: 2px;
    }
}

@media (max-width: 576px) {
    .orders-filter-nav .nav-link {
        padding: 4px 12px;
        font-size: 0.8rem;
    }

    .order-product-details > div {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 5px;
    }

    .product-status-badge {
        margin-top: 2px;
    }

    .order-footer .col-12 {
        margin-bottom: 3px;
    }

    .order-footer .col-12:last-child {
        margin-bottom: 0;
    }
}

/* RTL Fixes */
[dir="rtl"] .ms-3 {
    margin-right: 1rem !important;
    margin-left: 0 !important;
}

[dir="rtl"] .me-1 {
    margin-left: 0.25rem !important;
    margin-right: 0 !important;
}

/* Search Box - Fixed Version */
.orders-search {
    direction: rtl;
    width: 70%;
}

.search-container {
    width: 100%;
    max-width: 320px;
}

.search-box {
    display: flex;
    align-items: center;
    width: 100%;
    background-color: #fff;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.search-box:hover {
    border-color: #cbd5e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.search-box:focus-within {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    color: #adb5bd;
    font-size: 1.1rem;
    background-color: transparent;
    transition: all 0.3s ease;
}

.search-box:focus-within .search-icon {
    color: #667eea;
}

.search-input {
    flex: 1;
    padding: 0.75rem 0 0.75rem 15px;
    border: none;
    outline: none;
    font-size: 0.95rem;
    background-color: transparent;
    direction: rtl;
}

.search-input::placeholder {
    color: #adb5bd;
    font-size: 0.9rem;
    transition: opacity 0.3s ease;
}

.search-input:focus::placeholder {
    opacity: 0.6;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .search-container {
        max-width: 100%;
    }

    .search-icon {
        padding: 0 12px;
        font-size: 1rem;
    }

    .search-input {
        padding: 0.65rem 0 0.65rem 12px;
        font-size: 0.9rem;
    }
}

/* Optional: اگر خواستی عرض ثابت داشته باشه برای دسکتاپ */
@media (min-width: 992px) {
    .search-container {
        max-width: 280px;
    }
}

/* Accordion Styles */
.order-header.clickable {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.order-header.clickable:hover {
    background-color: #f8f9fa;
}

.order-header.clickable:hover::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.accordion-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f1f3f5;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.order-header.clickable:hover .accordion-icon {
    background-color: #e9ecef;
    transform: scale(1.1);
}

.accordion-icon i {
    font-size: 1.1rem;
    color: #6c757d;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.order-header.clickable:hover .accordion-icon i {
    color: #495057;
}

/* Rotate animation */
.rotate-icon {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.rotate-icon.rotated {
    transform: rotate(180deg);
}

.rotate-icon.rotated i {
    color: #667eea;
}

/* Collapsible Animation */
.order-collapsible {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: top;
    transform: scaleY(0);
}

.order-collapsible.show {
    max-height: 2000px; /* عدد بزرگ برای جا دادن همه محتوا */
    opacity: 1;
    transform: scaleY(1);
}

/* Active state for header */
.order-header.clickable.active {
    background-color: #f8f9fa;
    border-bottom: none;
}

.order-header.clickable.active .accordion-icon {
    background-color: #667eea;
}

.order-header.clickable.active .accordion-icon i {
    color: white;
}

/* Entrance animation for content */
.order-collapsible.show .order-products {
    animation: slideIn 0.5s ease forwards;
}

.order-collapsible.show .order-footer {
    animation: fadeIn 0.5s ease 0.2s forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Ripple effect on click */
.order-header.clickable:active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(102, 126, 234, 0.3);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
    animation: ripple 0.4s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(100, 100);
        opacity: 0;
    }
}

/* Mobile adjustments */
@media (max-width: 576px) {
    .order-header.clickable {
        padding: 12px !important;
    }

    .accordion-icon {
        width: 28px;
        height: 28px;
    }

    .accordion-icon i {
        font-size: 1rem;
    }
}
/*--------------------------------ordersPage css----------------------------------*/


/* Reviews Page Styles */
.reviews-wrapper {
    background: #fff;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.04) !important;
    border: 1px solid #e5e7eb !important;
}

/* Header Styles */
.reviews-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3436;
    position: relative;
    padding-right: 15px;
}

.reviews-title::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

/* Filter Tabs */
.reviews-filter-nav {
    gap: 8px;
}

.reviews-filter-nav .nav-link {
    color: #6c757d;
    border-radius: 25px;
    padding: 6px 18px;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.reviews-filter-nav .nav-link:hover {
    background-color: #f8f9fa;
    color: #495057;
}

.reviews-filter-nav .nav-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* Review Card */
.review-card {
    border-radius: 16px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.review-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
    transform: translateY(-2px);
}

.review-header {
    background-color: #fff;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.review-product-image img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 12px;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 4px;
}

.product-category {
    font-size: 0.8rem;
    color: #6c757d;
}

/* Review Status */
.review-status {
    display: inline-flex;
    align-items: center;
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}

.status-approved {
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.status-pending {
    background-color: rgba(255, 193, 7, 0.1);
    color: #f39c12;
}

.status-rejected {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

/* Rating Stars */
.rating-stars {
    direction: ltr;
}

.stars-container {
    display: flex;
    gap: 4px;
}

.stars-container i {
    font-size: 1.2rem;
    transition: all 0.2s ease;
}

.star-filled {
    color: #ffc107;
}

.star-empty {
    color: #e9ecef;
}

/* Hover effect on stars */
.review-card:hover .star-filled {
    animation: starPulse 0.3s ease;
}

@keyframes starPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Review Text */
.review-text {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #495057;
    border-right: 3px solid #667eea;
}

.review-text p {
    margin-bottom: 0;
}

/* Rejection Reason */
.rejection-reason {
    border-right: 3px solid #dc3545;
    font-size: 0.85rem;
}

.rejection-reason small {
    color: #dc3545;
}

/* Review Images */
.review-images {
    margin-top: 10px;
}

.review-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.review-thumbnail:hover {
    transform: scale(1.05);
    border-color: #667eea;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* Pagination (همانند صفحه سفارشات) */
.pagination .page-link {
    color: #6c757d;
    border-radius: 10px;
    margin: 0 3px;
    padding: 8px 15px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background-color: #f1f3f5;
    color: #495057;
}

.pagination .page-link.active,
.pagination .active .page-link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .reviews-wrapper {
        padding: 15px;
    }

    .reviews-title {
        font-size: 1.3rem;
    }

    .review-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 10px;
    }

    .review-product-image img {
        width: 50px;
        height: 50px;
    }

    .product-title {
        font-size: 0.95rem;
    }

    .stars-container i {
        font-size: 1rem;
    }

    .review-text {
        padding: 12px;
        font-size: 0.9rem;
    }

    .review-thumbnail {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 576px) {
    .reviews-filter-nav .nav-link {
        padding: 4px 12px;
        font-size: 0.8rem;
    }

    .review-footer {
        flex-direction: column;
        gap: 8px;
    }

    .review-footer .btn {
        width: 100%;
    }

    .review-date-time {
        font-size: 0.8rem;
    }

    .review-thumbnail {
        width: 50px;
        height: 50px;
    }
}

/* Animation for new reviews */
@keyframes slideInReview {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.review-card {
    animation: slideInReview 0.5s ease forwards;
}

.review-card:nth-child(1) { animation-delay: 0.1s; }
.review-card:nth-child(2) { animation-delay: 0.2s; }
.review-card:nth-child(3) { animation-delay: 0.3s; }
.review-card:nth-child(4) { animation-delay: 0.4s; }

/*--------------------------------commentsPage css----------------------------------*/


/* Addresses Page Styles */
.addresses-wrapper {
    background: #fff;
    border-radius: 20px;
    padding: 25px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}

/* Header Styles */
.addresses-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3436;
    position: relative;
    padding-right: 15px;
}

.addresses-title::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

/* Add Address Button */
.add-address-btn {
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 500;
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
    transition: all 0.3s ease;
    border: none;
}

.add-address-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.4);
}

/* Search Box (استفاده از استایل‌های قبلی) */

/* Address Card */
.address-card {
    border-radius: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.address-card:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,0.1) !important;
    transform: translateY(-2px);
}

.address-card::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.address-card:hover::before {
    opacity: 1;
}

/* Default Badge */
.default-badge-wrapper {
    position: absolute;
    top: 15px;
    left: 15px;
}

.default-badge {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 3px 10px rgba(40, 167, 69, 0.3);
}

/* Address Info */
.address-info-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 5px 0;
}

.info-label {
    min-width: 120px;
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
}

.info-value {
    font-size: 0.95rem;
    color: #2d3436;
    font-weight: 400;
    flex: 1;
}

/* Action Buttons */
.address-actions {
    border-top: 1px dashed #dee2e6;
    padding-top: 15px;
}

.address-actions .btn {
    border-radius: 30px;
    padding: 6px 18px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.address-actions .btn:hover {
    transform: translateY(-2px);
}

.address-actions .btn-outline-success:hover {
    background: linear-gradient(135deg, #28a745, #20c997);
    border-color: transparent;
    color: white;
}

.address-actions .btn-outline-danger:hover {
    background: linear-gradient(135deg, #dc3545, #c82333);
    border-color: transparent;
    color: white;
}

.address-actions .btn-outline-primary:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: white;
}

/* Modal Styles */
.modal-content {
    border-radius: 20px;
    overflow: hidden;
}

.modal-header {
    padding: 15px 20px;
}

.modal-header.bg-success {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
}

.modal-header.bg-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.modal-header.bg-danger {
    background: linear-gradient(135deg, #dc3545, #c82333) !important;
}

.modal-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.modal-body .form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.modal-body .form-control,
.modal-body .form-select {
    border-radius: 12px;
    border: 2px solid #e9ecef;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.modal-body .form-control:focus,
.modal-body .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.1);
}

.modal-body .form-control-lg,
.modal-body .form-select-lg {
    font-size: 0.95rem;
}

.form-select{
    padding: 10px 32px !important;
}

.modal-footer {
    padding: 15px 20px;
    background-color: #f8f9fa;
}

.modal-footer .btn {
    border-radius: 50px;
    padding: 10px 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.modal-footer .btn:hover {
    transform: translateY(-2px);
}

.modal-footer .btn-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    border: none;
}

.modal-footer .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

/* Toast */
.toast {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.toast-header {
    padding: 12px 15px;
}

.toast-body {
    padding: 15px;
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
    .addresses-wrapper {
        padding: 15px;
    }

    .addresses-title {
        font-size: 1.3rem;
    }

    .address-info-item {
        flex-direction: column;
        gap: 2px;
    }

    .info-label {
        min-width: auto;
        font-size: 0.8rem;
    }

    .info-value {
        font-size: 0.9rem;
    }

    .default-badge-wrapper {
        position: static;
        margin-bottom: 10px;
    }

    .address-actions {
        flex-direction: column;
    }

    .address-actions .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .add-address-btn {
        width: 100%;
    }

    .modal-dialog {
        margin: 10px;
    }
}

/*--------------------------------addressesPage css----------------------------------*/


.receiver-box.active{
    background-color:#e7f5ff;
    border-color:#0d6efd;
}

.receiver-box{
    transition: all .25s ease;
    cursor:pointer;
}

.receiver-box:hover{
    background:#f8f9fa;
    border-color:#dee2e6;
}

.receiver-box.active{
    background:#e7f1ff;
    border-color:#0d6efd;
}

.cart-product{
    transition:all .2s;
    padding:8px;
    border-radius:8px;
}

.cart-product:hover{
    background:#f8f9fa;
}

.summary-divider{
    height:1px;
    background:#eee;
    margin:20px 0;
}

.stylish-checkbox {
    width: 20px;
    height: 20px;
    accent-color: #0d6efd;
    cursor: pointer;
    transition: all 0.2s ease;
}

.stylish-checkbox:hover {
    transform: scale(1.15);
}

.stylish-checkbox:checked {
    box-shadow: 0 0 10px rgba(13,110,253,0.4);
}



/*--------------------------------checkoutPage css----------------------------------*/