:root {
    --primary-light: #BEE9E8;
    --primary: #62B6CB;
    --primary-dark: #1B4965;
    --accent-light: #CAE9FF;
    --accent: #5FA8D3;
    --text-dark: #1B4965;
    --text-light: #5A7D9A;
    --background: #FFFFFF;
    --gray-bg: #F5F7FA;
    --green: #d2ef9a;
    --black: #1f1f1f;
    --secondary: #696c70;
    --secondary2: #a0a0a0;
    --white: #ffffff;
    --surface: #f7f7f7;
    --red: #db4444;
    --purple: #8684d4;
    --success: #3dab25;
    --yellow: #ecb018;
    --pink: #f4407d;
    --line: #e9e9e9;
    --outline: rgba(0, 0, 0, 0.15);
    --surface1: rgba(255, 255, 255, 0.1);
    --surface2: rgba(255, 255, 255, 0.2);
}
.review-block {
    background: linear-gradient(to bottom, #f9fafb, #ffffff);
}
.review-block .item {
    transition: all 0.3s ease;
}
.review-block .item:hover {
    transform: translateY(-3px);
}
.reply-item {
    border-left: 3px solid #e53e3e;
    transition: all 0.3s ease;
}
.reply-item:hover {
    background: #f9fafb !important;
}
.form-review input, .form-review textarea {
    background: #fff;
    transition: all 0.3s ease;
}
.form-review input:focus, .form-review textarea:focus {
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.2);
}
.button-main {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.comment-hidden {
    display: none;
}

.review-block {
    background: #ffffff;
    padding: 40px 0;
}

.review-block .heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding: 0 16px;
}

.review-block .heading4 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.review-block .button-main {
    color: #fff;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.review-block .button-main:hover {
    background:x;
}

/* Review Item Styles */
.list-review .item {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid #e5e7eb;
    transition: box-shadow 0.3s ease;
}

.list-review .item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.list-review .user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.list-review .user .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e7eb;
}

.list-review .user .avatar i {
    font-size: 1.25rem;
    color: #4a5568;
}

.list-review .user .user-info {
    flex-grow: 1;
}

.list-review .user .text-title {
    font-size: 1.125rem;
    font-weight: 600;
}

.list-review .user .text-secondary2 {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 4px;
}

.list-review .user .reply-count {
    font-size: 0.75rem;
    color: #ffffff;
    background: #3dab25;
    padding: 4px 10px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.list-review .body1 {
    font-size: 1rem;
    color: #2d3748;
    line-height: 1.6;
    padding: 16px;
    background: #f9fafb;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.list-review .action .reply-btn {
    color: #3dab25;
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
}

.list-review .action .reply-btn:hover {
    color: #3dab25;
}

/* Reply Item Styles */
.replies {
    margin-top: 16px;
    padding-left: 24px;
    border-left: 4px solid #72ce5e;
}

.reply-item {
    background: #f9fafb;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid #e5e7eb;
}

.reply-item .user .avatar {
    width: 32px;
    height: 32px;
}

.reply-item .user .text-title {
    font-size: 1rem;
}

.reply-item .body1 {
    font-size: 0.9375rem;
}

/* Show More/Less Buttons */
.show-more-replies,
.show-less-replies,
#show-more-main-comments,
#show-less-main-comments {
    background: #3dab25;
    color: #fff;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.show-more-replies:hover,
.show-less-replies:hover,
#show-more-main-comments:hover,
#show-less-main-comments:hover {
    background: #3dab25;
}

/* Review Form Styles */
.form-review {
    margin-top: 32px;
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    border: 1px solid #e5e7eb;
}

.form-review .heading4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.form-review input,
.form-review textarea {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 10px 14px;
    width: 100%;
    font-size: 0.9375rem;
    color: #1a202c;
    background: #f9fafb;
    transition: border-color 0.3s ease;
}

.form-review input:focus,
.form-review textarea:focus {
    outline: none;
    border-color: #3dab25;
    box-shadow: 0 0 0 3px #72ce5e;
}

.form-review textarea {
    resize: vertical;
    min-height: 100px;
}

.form-review .button-main {
    color: #fff;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 6px;
    transition: background 0.3s ease;
}
.bg-success {
    background: #28a745;
}

.form-review .button-main:hover {
    --tw-bg-opacity: 1;
    background-color: rgb(0 165 84);
}
.form-review label {
    font-size: 0.875rem;
    color: #4a5568;
}

.form-review input[type="checkbox"] {
    accent-color: rgb(0 165 84);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .review-block .heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .list-review .item {
        padding: 16px;
    }

    .replies {
        padding-left: 16px;
    }

    .form-review {
        padding: 20px;
    }
}

/* Tab Styles - Fixed */
.menu-tab {
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
}
@media (max-width: 768px) {
    .menu-tab {
        gap: 8px;
    }
}
.tab-item {
    position: relative;
    padding-bottom: 10px;
    cursor: pointer;
    transition: color 0.3s ease;
    color: #6b7280;
}
.tab-item.active {
    color: #000;
}
.tab-item:not(.active)::after {
    content: none;
}
.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #3dab25;
}
.desc-item {
    display: none;
}
.desc-item.active {
    display: block;
}

/* استایل جدید برای نمایش محدودیت‌های خرید */
.purchase-limits {
    background: #cae9e1;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 12px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.limit-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
}

.limit-item i {
    color: var(--primary-dark);
}

.limit-item .label {
    color: #6c756f;
}

.limit-item .value {
    font-weight: 600;
    color: #212529;
}

.limit-item.stock .value {
    color: #28a745;
}

.limit-item.stock.low .value {
    color: #dc3545;
}

.quantity-btn {
    cursor: pointer;
    padding: 8px 12px;
    border: none;
    background: #f1f5f9;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.quantity-btn:hover:not(:disabled) {
    background: #3dab25;
    color: white;
}

.quantity-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #e5e7eb;
}

.quantity-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 4px;
    display: none;
}

/* استایل برای Exam و Course */
.exam-type, .course-type {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    margin: 12px 0;
    font-weight: 600;
}

.quantity-block {
    display: flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    overflow: hidden;
}

.quantity-input {
    width: 60px;
    text-align: center;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    background: white;
}

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


 .quantity-controls {
     box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
     transition: all 0.3s ease;
 }

.quantity-controls:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.quantity-btn {
    transition: all 0.2s ease;
    border: none;
    outline: none;
    font-size: 1.25rem;
}

.quantity-btn:not(:disabled):hover {
    background-color: #3dab25 !important;
    color: white !important;
}

.quantity-btn:not(:disabled):active {
    transform: scale(0.95);
}

.quantity-input {
    background: white;
    font-weight: 600;
    color: #1f2937;
}

.quantity-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(61, 171, 37, 0.2);
}

.quantity-display {
    color: #1f2937;
    font-weight: 600;
    background: #f9fafb;
}

/* استایل برای دکمه‌های غیرفعال */
.quantity-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f3f4f6 !important;
    color: #9ca3af !important;
}

/* استایل خطا */
.quantity-error {
    animation: slideDown 0.3s ease;
}

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

/* استایل برای وضعیت ناموجود */
.button-main:disabled {
    background-color: #9ca3af !important;
    border-color: #9ca3af !important;
    cursor: not-allowed !important;
}
@media (max-width: 530px) {
    .quantity-selector {
        display: grid;
        gap:1rem;
    }
}

/* استایل‌های اضافی */
.rounded-circle {
    border-radius: 50%;
}

.border-complete-200 {
    border: 1px solid #e5e7eb;
}

.border-secondary-500 {
    border-color: var(--primary) ;
}

.text-h5-180 {
    font-size: 1.125rem;
    line-height: 1.75;
}

.text-body-1-180 {
    font-size: 0.875rem;
    line-height: 1.75;
}

.color-option-box {
    transition: all 0.2s ease;
}

.color-option-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.size-option-box {
    transition: all 0.2s ease;
    min-width: 80px;
}

.size-option-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-light) !important;
}

.selected {
    border-color: var(--primary-dark) !important;
}
.scrollbar-hide {
    -ms-overflow-style: none;  /* برای اینترنت اکسپلورر و Edge */
    scrollbar-width: none;  /* برای فایرفاکس */
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;  /* برای Chrome, Safari و Opera */
}


 .rounded-circle {
     border-radius: 50%;
 }

.color-option-box, .size-option-box {
    transition: all 0.2s ease;
}

.color-option-box:hover, .size-option-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.selected {
    border-color: #3b82f6 !important;
}

.hidden {
    display: none;
}

/* استایل‌های دکمه‌های اسلایدر */
#color-prev, #color-next, #size-prev, #size-next {
    transition: opacity 0.3s ease, transform 0.2s ease;
}

#color-prev:hover, #color-next:hover, #size-prev:hover, #size-next:hover {
    transform: translateY(-50%) scale(1.1);
}

 .pdf-download-section {
     margin: 24px 0;
     padding: 16px;
     background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
     border-radius: 12px;
     box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
     display: flex;
     align-items: center;
     justify-content: space-between;
     gap: 16px;
     transition: all 0.3s ease;
 }

.pdf-download-section:hover {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
}

.pdf-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pdf-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.pdf-icon i {
    font-size: 24px;
    color: white;
}

.pdf-text h4 {
    color: white;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.pdf-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
}

.pdf-download-btn {
    background: white;
    color: #667eea;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.pdf-download-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #764ba2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: white;
}

@media (max-width: 768px) {
    .pdf-download-section {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .pdf-info {
        flex-direction: column;
        text-align: center;
    }

    .pdf-download-btn {
        width: 100%;
        justify-content: center;
    }
}

.variant-section {
 background: #fff;
 border-radius: 10px;
 padding: 20px;
 margin: 20px 0;
 border: 1px solid #e5e7eb;
}

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

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

.variant-group-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.variant-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.variant-option {
    padding: 8px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s;
    background: #fff;
}

.variant-option:hover {
    border-color: #888;
}

.variant-option.selected {
    border-color: #3dab25;
    background: #f0fdf4;
    color: #3dab25;
    font-weight: 500;
}

.variant-option.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    position: relative;
}

.variant-option.disabled::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 5%;
    width: 90%;
    height: 2px;
    background: #f00;
    transform: rotate(-45deg);
}

.color-option {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    border: 2px solid #e0e0e0;
    position: relative;
    cursor: pointer;
}

.color-option.selected {
    border-color: #3dab25;
    box-shadow: 0 0 0 2px rgba(61, 171, 37, 0.2);
}

.color-preview {
    width: 100%;
    height: 100%;
    border-radius: 4px;
}

.variant-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.variant-loader.active {
    display: flex;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3dab25;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: #333;
    font-size: 16px;
}

.variant-info {
    background: #f8fafc;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    border: 1px solid #e5e7eb;
}

.variant-info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #ddd;
}

.variant-info-row:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.variant-info-label {
    color: #666;
    font-size: 14px;
}

.variant-info-value {
    color: #333;
    font-weight: 500;
}

.final-price {
    font-size: 24px;
    color: #3dab25;
    font-weight: 700;
}



