/* ==============================================
   استایل های اختصاصی product.php
============================================== */
.layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
    margin-bottom: 60px;
}

/* سایدبار */
.sidebar {
    position: sticky;
    top: 30px;
}

.sidebar-widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 60px;
    height: 2px;
    background: #2e8b57;
}

/* فیلتر برند */
.brand-filters {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.brand-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 15px;
    color: #34495e;
    padding: 8px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: white;
    border: 1px solid #eee;
}

.brand-checkbox:hover {
    background: #f8f9fa;
    border-color: #2e8b57;
}

.brand-checkbox input {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #bdc3c7;
    border-radius: 4px;
    margin-left: 10px;
    position: relative;
    transition: all 0.3s ease;
}

.brand-checkbox input:checked + .checkmark {
    background: #2e8b57;
    border-color: #2e8b57;
}

.brand-checkbox input:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 12px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* فیلتر قیمت */
.price-range {
    padding: 15px;
    background: white;
    border-radius: 10px;
    border: 1px solid #eee;
}

.shop-slider {
    width: 100%;
    height: 6px;
    border-radius: 5px;
    background: #ddd;
    outline: none;
    opacity: 0.7;
    transition: opacity .2s;
}

.shop-slider:hover {
    opacity: 1;
}

.shop-slider::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #2e8b57;
    cursor: pointer;
}

.price-values {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    font-size: 14px;
    color: #7f8c8d;
}

/* بخش اصلی */
.main {
    min-width: 0;
}

.shop-header {
    background: linear-gradient(135deg, #67e99e 0%, #2e8b57 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 40px;
}

.title {
    font-size: 32px;
    margin-bottom: 10px;
}

.description {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 25px;
}

.tools {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    border-radius: 10px;
}

.sort-select {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    background: white;
    color: #2c3e50;
    font-size: 14px;
    cursor: pointer;
    min-width: 200px;
}

/* گرید محصولات */
.shop-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: auto;
}
.product-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.product-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.product-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    transition: transform 0.5s ease;
}

.product-item:hover .product-image img {
    transform: scale(1.05);
}

.sale-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #e74c3c;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    z-index: 2;
}

.quick-view-btn {
    position: absolute;
    bottom: -50px;
    right: 50%;
    transform: translateX(50%);
    background: #2e8b57;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    z-index: 2;
}

.product-item:hover .quick-view-btn {
    bottom: 15px;
    opacity: 1;
}

.quick-view-btn:hover {
    background: #27ae60;
}

.product-title a {
    color: #2c3e50;
    text-decoration: none;
}

.product-title a:hover {
    color: #2e8b57;
}

.product-category {
    font-size: 13px;
    color: #7f8c8d;
    margin-bottom: 10px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.rating-count {
    font-size: 12px;
    color: #95a5a6;
}

.product-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}

.add-to-cart-btn {
    flex: 1;
    background: #2e8b57;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.add-to-cart-btn:hover {
    background: #27ae60;
}

.out-of-stock {
    flex: 1;
    background: #95a5a6;
    color: white;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
}

.add-to-wishlist {
    background: none;
    border: 2px solid #eee;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-to-wishlist:hover {
    border-color: #e74c3c;
    color: #e74c3c;
}

/* صفحه بندی */
.pagination {
    margin-top: 40px;
}

.pagination ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    gap: 8px;
}

.pagination li {
    margin: 0 2px;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 10px 18px;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: #2e8b57;
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination .current {
    background: #2e8b57;
    color: white;
    border-color: #2e8b57;
}
.avasazegar-cart-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
    direction: rtl;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.cart-page-title {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 40px;
    padding-bottom: 15px;
    border-bottom: 3px solid #2e8b57;
    position: relative;
}

.cart-page-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    right: 0;
    width: 100px;
    height: 3px;
    background: #e74c3c;
}

/* لایه بندی صفحه */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    margin-bottom: 50px;
}

/* جدول سبد خرید */
.cart-table-section {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.cart-table-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 0.5fr;
    gap: 15px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 20px;
    align-items: center;
}

/* آیتم های سبد خرید */
.cart-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 0.5fr;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    align-items: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.cart-item:hover {
    background: white;
    border-color: #2e8b57;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.1);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
}

.cart-item-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.cart-item-info {
    padding: 0 15px;
}

.cart-item-title {
    font-size: 16px;
    margin-bottom: 8px;
    color: #2c3e50;
}

.cart-item-title a {
    color: inherit;
    text-decoration: none;
}

.cart-item-title a:hover {
    color: #2e8b57;
}

.cart-item-meta {
    font-size: 13px;
    color: #7f8c8d;
    margin-bottom: 5px;
}

.cart-item-sale {
    display: inline-block;
    background: #e74c3c;
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.cart-item-price,
.cart-item-subtotal {
    font-size: 18px;
    font-weight: bold;
    color: #27ae60;
    text-align: center;
}

.cart-item-quantity {
    text-align: center;
}

.cart-item-quantity .quantity {
    display: inline-flex;
    align-items: center;
    border: 2px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.cart-item-quantity input[type="number"] {
    width: 60px;
    text-align: center;
    border: none;
    padding: 8px;
    font-size: 16px;
    font-weight: bold;
    background: transparent;
}

.cart-item-quantity input[type="button"] {
    width: 40px;
    height: 40px;
    border: none;
    background: #f8f9fa;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cart-item-quantity input[type="button"]:hover {
    background: #2e8b57;
    color: white;
}

.cart-item-remove .remove-item {
    display: block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.cart-item-remove .remove-item:hover {
    background: #c0392b;
    transform: rotate(90deg);
}

/* اقدامات سبد خرید */
.cart-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #eee;
}

.coupon-section {
    flex: 1;
}

.coupon-input {
    display: flex;
    gap: 10px;
    max-width: 400px;
}

.coupon-code {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.coupon-code:focus {
    border-color: #2e8b57;
    outline: none;
}

.apply-coupon {
    background: #2e8b57;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.apply-coupon:hover {
    background: #27ae60;
}

.update-cart-section .update-cart-btn {
    background: #95a5a6;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.update-cart-section .update-cart-btn:hover {
    background: #7f8c8d;
}

/* سایدبار خلاصه */
.cart-sidebar {
    position: sticky;
    top: 30px;
    height: fit-content;
}

.cart-summary {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 30px;
}

.summary-title {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #2e8b57;
    position: relative;
}

.summary-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 60px;
    height: 2px;
    background: #e74c3c;
}

.summary-items {
    margin-bottom: 25px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed #eee;
    color: #34495e;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-value {
    font-weight: bold;
    color: #27ae60;
}

.summary-value.shipping {
    color: #2e8b57;
}

.summary-value.discount {
    color: #e74c3c;
}

.summary-value.tax {
    color: #f39c12;
}

.summary-value.fee {
    color: #9b59b6;
}

.shipping-cost {
    color: #2e8b57;
}

.discount-amount {
    color: #e74c3c;
}

.tax-amount {
    color: #f39c12;
}

.summary-total {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 25px;
    border-radius: 10px;
    margin: 25px 0;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    font-size: 20px;
    font-weight: bold;
}

.total-amount {
    font-size: 24px;
    color: #f1c40f;
}

.summary-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 25px 0;
}

.proceed-checkout-btn {
    display: block;
    background: #2e8b57;
    color: white;
    text-align: center;
    padding: 18px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.proceed-checkout-btn:hover {
    background: #27ae60;
    transform: translateY(-2px);
}

.continue-shopping {
    display: block;
    background: #f8f9fa;
    color: #2e8b57;
    text-align: center;
    padding: 15px;
    border-radius: 10px;
    text-decoration: none;
    border: 2px solid #2e8b57;
    font-weight: bold;
    transition: all 0.3s ease;
}

.continue-shopping:hover {
    background: #2e8b57;
    color: white;
}

/* ویژگی های خرید */
.purchase-features {
    margin-top: 30px;
    border-top: 1px solid #eee;
    padding-top: 25px;
}

.feature-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: #e8f4fc;
    transform: translateX(5px);
}

.feature-icon {
    font-size: 24px;
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.feature-content h4 {
    margin: 0 0 5px 0;
    color: #2c3e50;
    font-size: 16px;
}

.feature-content p {
    margin: 0;
    color: #7f8c8d;
    font-size: 13px;
}

/* محصولات پیشنهادی */
.cross-sells-section {
    background: white;
    border-radius: 15px;
    padding: 40px;
    margin-top: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.cross-sells-section .section-title {
    font-size: 22px;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
}

.cross-sells-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.cross-sell-item {
    background: #f8f9fa;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.cross-sell-item:hover {
    transform: translateY(-10px);
    border-color: #2e8b57;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.cross-sell-image {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    padding: 20px;
}

.cross-sell-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.cross-sell-info {
    padding: 20px;
}

.cross-sell-title {
    font-size: 15px;
    margin-bottom: 10px;
    height: 45px;
    overflow: hidden;
}

.cross-sell-title a {
    color: #2c3e50;
    text-decoration: none;
}

.cross-sell-title a:hover {
    color: #2e8b57;
}

.cross-sell-price {
    font-size: 18px;
    font-weight: bold;
    color: #27ae60;
    margin-bottom: 15px;
}

.cross-sell-actions {
    display: flex;
    gap: 10px;
}

.view-product-btn,
.add-to-cart-quick {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
}

.view-product-btn {
    background: #2e8b57;
    color: white;
    text-decoration: none;
    border: none;
}

.view-product-btn:hover {
    background: #27ae60;
}

.add-to-cart-quick {
    background: #f8f9fa;
    color: #2c3e50;
    border: 2px solid #ddd;
}

.add-to-cart-quick:hover {
    background: #2e8b57;
    color: white;
    border-color: #2e8b57;
}
.avasazegar-checkout-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
    direction: rtl;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.checkout-page-title {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 40px;
    padding-bottom: 15px;
    border-bottom: 3px solid #2e8b57;
    position: relative;
}

.checkout-page-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    right: 0;
    width: 100px;
    height: 3px;
    background: #e74c3c;
}

/* لایه بندی صفحه */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
}

/* فرم اطلاعات */
.checkout-form-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.checkout-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.section-title {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 60px;
    height: 2px;
    background: #2e8b57;
}

/* فیلدهای فرم */
.billing-fields,
.shipping-fields {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-row {
    margin-bottom: 20px;
}

.form-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #34495e;
    font-size: 14px;
}

.form-row .required {
    color: #e74c3c;
}

.form-row input,
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    border-color: #2e8b57;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-row-wide {
    grid-column: 1 / -1;
}

/* روش های ارسال */
.shipping-methods {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.shipping-method {
    margin-bottom: 15px;
    padding: 15px;
    border: 2px solid transparent;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.shipping-method:hover,
.shipping-method.selected {
    border-color: #2e8b57;
    background: #e8f4fc;
}

.shipping-method input[type="radio"] {
    margin-left: 10px;
}

/* روش های پرداخت */
.payment-methods {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
}

.payment-method {
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-method:hover,
.payment-method.selected {
    border-color: #2e8b57;
    background: #e8f4fc;
}

.payment-method input[type="radio"] {
    display: none;
}

.payment-method label {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    margin: 0;
    width: 100%;
}

.method-icon {
    font-size: 24px;
    width: 50px;
    height: 50px;
    background: #f8f9fa;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.method-info {
    flex: 1;
}

.method-name {
    display: block;
    font-weight: bold;
    color: #2c3e50;
    font-size: 16px;
    margin-bottom: 5px;
}

.method-desc {
    display: block;
    font-size: 13px;
    color: #7f8c8d;
}

.payment-gateways {
    padding: 20px;
    background: white;
    border-radius: 10px;
    border: 1px solid #eee;
}

.payment_box {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.payment_box p {
    margin: 0;
    font-size: 14px;
    color: #34495e;
}

/* سایدبار خلاصه سفارش */
.checkout-sidebar {
    position: sticky;
    top: 30px;
    height: fit-content;
}

.order-summary {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

/* آیتم های سفارش */
.order-items {
    margin-bottom: 25px;
}

.order-items-header {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 2px solid #eee;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 15px;
}

.order-items-list {
    max-height: 300px;
    overflow-y: auto;
    padding-left: 10px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px dashed #eee;
    color: #34495e;
}

.order-item:last-child {
    border-bottom: none;
}

.item-info {
    flex: 1;
    padding-left: 15px;
}

.item-name {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.item-quantity {
    font-size: 12px;
    color: #7f8c8d;
    margin-right: 10px;
}

.item-total {
    font-weight: bold;
    color: #27ae60;
    min-width: 100px;
    text-align: left;
}

/* جزئیات خلاصه */
.order-summary-details {
    margin: 25px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

/* جمع کل */
.order-total {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 25px;
    border-radius: 10px;
    margin: 25px 0;
}


/* توافقنامه ها */
.checkout-agreements {
    margin: 25px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.agreement-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    cursor: pointer;
    font-size: 14px;
    color: #34495e;
}

.agreement-checkbox:last-child {
    margin-bottom: 0;
}

.agreement-checkbox input[type="checkbox"] {
    display: none;
}


.agreement-text {
    line-height: 1.6;
}

.agreement-text a {
    color: #2e8b57;
    text-decoration: none;
}

.agreement-text a:hover {
    text-decoration: underline;
}

/* دکمه نهایی */
.checkout-actions {
    margin-top: 30px;
}

.place-order-btn {
    display: block;
    width: 100%;
    background: #2e8b57;
    color: white;
    border: none;
    padding: 20px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    margin-bottom: 20px;
}

.place-order-btn:hover {
    background: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(46, 204, 113, 0.3);
}

.secure-payment-notice {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px solid #2e8b57;
}

.secure-icon {
    font-size: 24px;
    color: #2e8b57;
}

.secure-text {
    flex: 1;
}

.secure-text strong {
    display: block;
    color: #2c3e50;
    margin-bottom: 3px;
}

.secure-text span {
    font-size: 12px;
    color: #7f8c8d;
}

/* ویژگی های اطمینان بخش */
.trust-features {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.trust-item:last-child {
    border-bottom: none;
}

.trust-icon {
    font-size: 24px;
    width: 50px;
    height: 50px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2e8b57;
}

.trust-content h4 {
    margin: 0 0 5px 0;
    color: #2c3e50;
    font-size: 16px;
}

.trust-content p {
    margin: 0;
    color: #7f8c8d;
    font-size: 13px;
}
.avasazegar-single-product {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
    direction: rtl;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* مسیر ناوبری */
.product-breadcrumb {
    background: #f8f9fa;
    padding: 15px 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    font-size: 14px;
}

/* بخش اصلی */
.product-main-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

/* گالری تصاویر */
.product-gallery {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.main-image {
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border: 2px solid #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
}

.featured-image {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.image-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
}

.thumbnail-item {
    flex: 0 0 80px;
    height: 80px;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.thumbnail-item:hover,
.thumbnail-item.active {
    border-color: #2e8b57;
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* اطلاعات محصول */
.product-info {
    padding: 25px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-title {
    font-size: 16px;
    margin-bottom: 10px;
    color: #2c3e50;
}

.product-meta {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.review-count {
    font-size: 14px;
    color: #7f8c8d;
}

.product-sku {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.sku-label {
    color: #95a5a6;
}

.sku-value {
    font-family: monospace;
    background: #f8f9fa;
    padding: 3px 8px;
    border-radius: 4px;
    color: #2c3e50;
}

.product-status .in-stock {
    color: #27ae60;
    background: #eafaf1;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
}

/* بخش قیمت */
.product-price-section {
    margin: 25px 0;
    padding: 20px;
    background: #2e8b57;
    border-radius: 10px;
    color: white;
}

.price-sale {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.original-price {
    text-decoration: line-through;
    opacity: 0.7;
    font-size: 18px;
}

.sale-price {
    font-size: 32px;
    font-weight: bold;
}

.discount-percentage {
    background: #e74c3c;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 18px;
    font-weight: bold;
}

.price-regular .current-price {
    font-size: 32px;
    font-weight: bold;
}

/* توضیحات کوتاه */
.product-short-description {
    margin: 25px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    line-height: 1.8;
    color: #34495e;
}

/* عملیات محصول */
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.quantity-selector label {
    font-weight: bold;
    color: #2c3e50;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-control button {
    width: 40px;
    height: 40px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quantity-control button:hover {
    border-color: #2e8b57;
    color: #2e8b57;
}

.quantity-control input {
    width: 70px;
    height: 40px;
    text-align: center;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
}

.action-buttons {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.single_add_to_cart_button,
.buy-now-btn,
.add-to-wishlist-btn {
    padding: 6px 32px;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
}

.single_add_to_cart_button {
    background: #2e8b57;
    color: white;
}

.single_add_to_cart_button:hover {
    background: #27ae60;
}

.buy-now-btn {
    background: #2e8b57;
    color: white;
}

.buy-now-btn:hover {
    background: #27ae60;
}

.add-to-wishlist-btn {
    background: white;
    color: #e74c3c;
    border: 2px solid #e74c3c;
}

.add-to-wishlist-btn:hover {
    background: #e74c3c;
    color: white;
}

/* ویژگی های محصول */
.product-features {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #eee;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: #e8f4fc;
    transform: translateX(-5px);
}

.feature-text {
    flex: 1;
    color: #2c3e50;
}

/* تب های محصول */
.product-tabs {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin: 50px 0;
    overflow: hidden;
}

.tabs-header {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    overflow-x: auto;
}

.tab-btn {
    flex: 1;
    min-width: 150px;
    padding: 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 16px;
    font-weight: bold;
    color: #7f8c8d;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
}

.tab-btn.active {
    color: #2e8b57;
    border-bottom-color: #2e8b57;
    background: white;
}

.tab-btn:hover:not(.active) {
    color: #2e8b57;
    background: rgba(52, 152, 219, 0.1);
}

.tabs-content {
    padding: 30px;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* جدول مشخصات */
.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid #eee;
}

.specs-table td {
    padding: 15px 20px;
}

.specs-table tr:nth-child(even) {
    background: #f8f9fa;
}

.specs-table tr:hover {
    background: #e8f4fc;
}

/* بخش نظرات */
.review-summary {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.average-rating {
    text-align: center;
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
}

.rating-number {
    font-size: 48px;
    font-weight: bold;
    color: #2e8b57;
    margin-bottom: 10px;
}

.rating-stars {
    margin-bottom: 10px;
}

.rating-bars {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
}

.rating-bar-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.star-count {
    width: 80px;
    font-size: 14px;
    color: #7f8c8d;
}

.bar-container {
    flex: 1;
    height: 8px;
    background: #ecf0f1;
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: #2e8b57;
    border-radius: 4px;
    transition: width 1s ease;
}

.bar-count {
    width: 30px;
    text-align: left;
    font-size: 14px;
    color: #2c3e50;
}

/* سوالات متداول */
.faq-accordion {
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
}

.faq-item {
    border-bottom: 1px solid #eee;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    padding: 20px;
    background: #f8f9fa;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    color: #2c3e50;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #e8f4fc;
}

.faq-toggle {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 500px;
}

/* محصولات مرتبط */
.related-products {
    margin-top: 60px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.related-item {
    background: white;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.related-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.related-item img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    margin-bottom: 15px;
}

.related-title {
    font-size: 16px;
    margin-bottom: 10px;
    height: 45px;
    overflow: hidden;
}

.related-title a {
    color: #2c3e50;
    text-decoration: none;
}

.related-title a:hover {
    color: #2e8b57;
}

.related-price {
    font-size: 18px;
    font-weight: bold;
    color: #27ae60;
    margin-bottom: 15px;
}

.view-related-btn {
    display: inline-block;
    background: #2e8b57;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.view-related-btn:hover {
    background: #27ae60;
}
.avasazegar-archive-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
    direction: rtl;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.archive-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

/* سایدبار */
.archive-sidebar {
    border-radius: 15px;
    height: fit-content;
    position: sticky;
    top: 30px;
}

.sidebar-widget:last-child {
    margin-bottom: 0;
}

/* بخش اصلی */
.archive-main {
    min-width: 0;
}

.archive-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 40px;
}

.archive-title {
    font-size: 32px;
    margin-bottom: 10px;
}

.archive-description {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 25px;
}

.archive-tools {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    border-radius: 10px;
}

.view-toggle {
    display: flex;
    gap: 10px;
}

.view-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.view-btn.active,
.view-btn:hover {
    background: white;
    color: #764ba2;
}

/* گرید محصولات */
.products-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.product-archive-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.product-archive-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.product-archive-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.product-archive-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    transition: transform 0.5s ease;
}

.product-archive-item:hover .product-archive-image img {
    transform: scale(1.05);
}

.product-archive-info {
    padding: 20px;
}

.product-archive-title {
    font-size: 16px;
    margin-bottom: 10px;
    height: 45px;
    overflow: hidden;
}

.product-archive-title a {
    color: #2c3e50;
    text-decoration: none;
}

.product-archive-title a:hover {
    color: #2e8b57;
}

.product-archive-category {
    font-size: 13px;
    color: #7f8c8d;
    margin-bottom: 10px;
}

.product-archive-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 15px;
}

.product-archive-price {
    font-size: 20px;
    font-weight: bold;
    color: #27ae60;
    margin-bottom: 15px;
}

.product-archive-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

/* صفحه بندی */
.archive-pagination {
    margin-top: 40px;
}

.archive-pagination ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    gap: 8px;
}

.archive-pagination li {
    margin: 0 2px;
}

.archive-pagination a,
.archive-pagination span {
    display: inline-block;
    padding: 10px 18px;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: #2e8b57;
    transition: all 0.3s ease;
}

.archive-pagination a:hover,
.archive-pagination .current {
    background: #2e8b57;
    color: white;
    border-color: #2e8b57;
}

/* overide css woocommerce */
.wc-block-components-sidebar-layout .wc-block-components-main {
    box-shadow: 2px 2px 20px 2px #eee;
    margin-top: 30px;
    border-radius: 16px;
    padding: 2% !important;
}
.wc-block-components-sidebar {
    padding: 2% !important;
    width: 30% !important;
    box-shadow: 2px 2px 20px 2px #eee;
    margin-top: 30px !important;
    border-radius: 16px;
    margin-right: 20px;
}
.wc-block-components-product-badge {
    border: 0 !important;
    border-right: 2px solid rgb(4 196 89) !important;
    padding: 4px .66em !important;
    color: #000 !important;
    background: rgb(195 220 206) !important;
}