﻿/*FreePack*/
/* استایل اصلی */
.PSC-shopping-cart-container {
    max-width: 1200px;
    margin: 50px auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
    font-family: 'Yekan', 'Vazir', sans-serif;
    direction: rtl;
}

.PSC-cart-header {
    text-align: center;
    margin-bottom: 30px;
}

.PSC-cart-title {
    font-size: 2.2rem;
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 15px;
}

.PSC-cart-divider {
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, #3498db, #2ecc71);
    margin: 20px auto;
    border-radius: 3px;
}

.PSC-cart-description {
    font-size: 1.2rem;
    color: #555;
    margin: 20px 0;
    text-align: center;
}

/* بخش جمع کل */
.PSC-cart-summary {
    background: #e3f2fd;
    border-radius: 10px;
    padding: 25px;
    margin: 30px auto;
    text-align: center;
    border: 1px solid #bbdefb;
    max-width: 600px;
}

.PSC-total-section {
    margin-bottom: 20px;
}

.PSC-total-label {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-left: 10px;
}

.PSC-total-amount {
    font-size: 1.8rem;
    font-weight: 700;
    color: #27ae60;
}

.PSC-next-step-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to left, #2ecc71, #27ae60);
    color: white;
    padding: 15px 35px;
    border-radius: 8px;
    font-size: 1.4rem;
    text-decoration: none !important;
    transition: all 0.3s;
    box-shadow: 0 4px 8px rgba(46, 204, 113, 0.3);
    border: none;
    cursor: pointer;
}

    .PSC-next-step-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 12px rgba(46, 204, 113, 0.4);
        background: linear-gradient(to left, #27ae60, #2ecc71);
    }

.PSC-btn-icon {
    margin-right: 15px;
    font-size: 1.2rem;
}

/* محصولات */
.PSC-products-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    padding: 15px;
    margin-top: 40px;
}

.PSC-product-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    border: 1px solid #f0f0f0;
}

    .PSC-product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    }

.PSC-product-link {
    text-decoration: none !important;
    color: inherit;
    display: block;
    height: 100%;
}

.PSC-product-image-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
}

.PSC-product-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: transform 0.3s;
}

.PSC-product-card:hover .PSC-product-image {
    transform: scale(1.05);
}

.PSC-product-info {
    padding: 20px;
    text-align: center;
}

.PSC-product-name {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #2c3e50;
    line-height: 1.4;
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* کنترل تعداد */
.PSC-quantity-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 15px 0;
}

.PSC-quantity-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1.9rem;
    text-decoration: none;
}

.PSC-increase-btn {
    background-color: #3498db;
    margin-right:5px;
    color: white;
}

    .PSC-increase-btn:hover {
        background-color: #2980b9;
    }

.PSC-decrease-btn {
    background-color: #e67e22;
    margin-left: 5px;
    color: white;
}

    .PSC-decrease-btn:hover {
        background-color: #d35400;
    }

.PSC-remove-btn {
    background-color: #e74c3c;
    color: white;
}

    .PSC-remove-btn:hover {
        background-color: #c0392b;
    }

.PSC-quantity {
    font-size: 1.4rem;
    font-weight: 600;
    min-width: 30px;
}

/* قیمت */
.PSC-price {
    font-size: 1.2rem;
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 5px;
}

.PSC-price-value {
    font-weight: 700;
    color: #27ae60;
}

/* رسپانسیو */
@media (max-width: 992px) {
    .PSC-products-container {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media (max-width: 768px) {
    .PSC-shopping-cart-container {
        padding: 20px;
    }

    .PSC-cart-title {
        font-size: 1.8rem;
    }

    .PSC-product-image-container {
        height: 180px;
    }

    .PSC-product-name {
        font-size: 1.3rem;
    }

    .PSC-total-label {
        font-size: 1.3rem;
    }

    .PSC-total-amount {
        font-size: 1.5rem;
    }

    .PSC-next-step-btn {
        padding: 12px 25px;
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .PSC-products-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .PSC-product-image-container {
        height: 150px;
    }

    .PSC-product-name {
        font-size: 1.2rem;
        height: 36px;
    }

    .PSC-shopping-cart-container {
        padding: 15px;
        margin: 20px 10px;
    }

    .PSC-cart-title {
        font-size: 1.6rem;
    }

    .PSC-cart-description {
        font-size: 1.1rem;
    }

    .PSC-next-step-btn {
        padding: 10px 20px;
        font-size: 1.1rem;
    }

    .PSC-btn-icon {
        margin-right: 10px;
    }

    .PSC-quantity {
        font-size: 1.4rem;
        font-weight: 600;
        min-width: 10px;
        margin:0 !important;
    }

    .PSC-quantity-btn {
        margin:0 !important;
    }
}

/*ShopingCart UserProfile*/
/* استایل اصلی */
.USC-cart-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 20px;
    font-family: 'Yekan', 'Vazir', sans-serif;
    direction: rtl;
}

.USC-header {
    text-align: center;
    margin-bottom: 40px;
}

.USC-title {
    font-size: 2.2rem;
    color: #2c3e50;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

    .USC-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        right: 50%;
        transform: translateX(50%);
        width: 100px;
        height: 4px;
        background: linear-gradient(to right, #3498db, #2ecc71);
        border-radius: 2px;
    }

/* جدول محصولات */
.USC-products-table {
    margin: 40px 0;
    overflow-x: auto;
}

.USC-table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

    .USC-table thead tr {
        background-color: #3498db;
        color: white;
        text-align: right;
    }

    .USC-table th,
    .USC-table td {
        padding: 15px;
        text-align: center;
    }

    .USC-table th {
        font-weight: 600;
    }

    .USC-table tbody tr {
        border-bottom: 1px solid #f0f0f0;
        transition: all 0.3s;
    }

        .USC-table tbody tr:nth-of-type(even) {
            background-color: #f9f9f9;
        }

        .USC-table tbody tr:last-of-type {
            border-bottom: 2px solid #3498db;
        }

        .USC-table tbody tr:hover {
            background-color: #f1f8ff;
        }

.USC-product-name {
    font-weight: 600;
    color: #2c3e50;
}

.USC-product-price {
    color: #27ae60;
    font-weight: 700;
}

.USC-product-quantity {
    font-weight: 600;
}

.USC-remove-btn {
    color: #e74c3c;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

    .USC-remove-btn:hover {
        color: #c0392b;
        transform: translateX(-3px);
    }

/* بخش روش ارسال */
.USC-shipping-section {
    margin-top: 50px;
    padding: 30px;
    background-color: #f8fafc;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.USC-section-title {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.USC-shipping-description {
    font-size: 1.8rem;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
}

.USC-shipping-options {
    margin: 30px 0;
}

.USC-option-card {
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

    .USC-option-card:hover {
        border-color: #3498db;
        box-shadow: 0 5px 15px rgba(52, 152, 219, 0.1);
    }

    .USC-option-card.active {
        border-color: #3498db;
        background-color: #f0f8ff;
    }
    /* استایل برای گزینه‌های غیرفعال */
    .USC-option-card:not(.active) {
        opacity: 0.6;
        cursor: pointer !important;
        background-color: #f8f9fa;
    }

/* استایل برای نشانگر غیرفعال */
.badge.bg-secondary {
    font-size: 0.75rem;
    padding: 0.2em 0.4em;
    margin-right: 5px;
}

    .USC-option-card input[type="radio"] {
        position: absolute;
        opacity: 0;
    }

.USC-option-label {
    font-size: 1.7rem;
    font-weight: 700;
    color: #2c3e50;
    margin-right: 30px;
    display: block;
    transition: all 0.3s;
}

.USC-option-card.active .USC-option-label {
    color: #3498db;
}

.USC-option-detail {
    font-size: 1.4rem;
    color: #555;
    margin: 10px 0 0 30px;
    line-height: 1.6;
}

.USC-option-card.active .USC-option-detail {
    color: #333;
}

/* دکمه ثبت */
.USC-submit-container {
    text-align: center;
    margin: 50px 0 30px;
}

.USC-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to left, #2ecc71, #27ae60);
    color: white;
    padding: 15px 40px;
    border-radius: 8px;
    font-size: 1.6rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(46, 204, 113, 0.3);
}

    .USC-submit-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 15px rgba(46, 204, 113, 0.4);
        background: linear-gradient(to left, #27ae60, #2ecc71);
    }

.USC-btn-icon {
    margin-right: 15px;
    font-size: 1.2rem;
}

/* رسپانسیو */
@media (max-width: 992px) {
    .USC-cart-container {
        padding: 15px;
    }

    .USC-title {
        font-size: 1.8rem;
    }

    .USC-table th,
    .USC-table td {
        padding: 12px 8px;
    }
}

@media (max-width: 768px) {
    .USC-shipping-section {
        padding: 20px;
    }

    .USC-section-title {
        font-size: 1.9rem;
    }

    .USC-option-label {
        font-size: 1.6rem;
    }

    .USC-submit-btn {
        padding: 12px 30px;
        font-size: 1.4rem;
    }
}

@media (max-width: 576px) {
    .USC-title {
        font-size: 1.6rem;
    }

    .USC-shipping-description {
        font-size: 1.3rem;
    }

    .USC-option-card {
        padding: 15px;
    }
}

/*ShowFactors*/

/* استایل اصلی */
.FAC-invoice-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 20px;
    font-family: 'Yekan', 'Vazir', sans-serif;
    direction: rtl;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.FAC-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.FAC-back-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    background-color: #e74c3c;
    color: white;
    border-radius: 5px;
    text-decoration: none !important;
    transition: all 0.3s;
}

    .FAC-back-btn:hover {
        background-color: #c0392b;
        transform: translateX(-5px);
    }

.FAC-back-icon {
    margin-right: 8px;
}

.FAC-title {
    font-size: 2rem;
    color: #2c3e50;
    font-weight: 700;
    margin: 0;
}

/* جدول محصولات */
.FAC-products-table {
    margin: 30px 0;
    overflow-x: auto;
}

.FAC-table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.03);
}

    .FAC-table thead tr {
        background-color: #3498db;
        color: white;
    }

    .FAC-table th {
        padding: 15px;
        text-align: center;
        font-weight: 600;
    }

    .FAC-table td {
        padding: 12px 15px;
        text-align: center;
        border-bottom: 1px solid #f0f0f0;
    }

.FAC-product-row:hover {
    background-color: #f8fafc;
}

.FAC-product-name {
    font-weight: 600;
    color: #2c3e50;
}

.FAC-unit-price, .FAC-subtotal {
    font-weight: 700;
    color: #27ae60;
}

.FAC-quantity {
    font-weight: 600;
}

.FAC-weight, .FAC-total-weight {
    font-family: 'Tahoma';
    color: #555;
}

.FAC-discount-badge {
    display: inline-block;
    background-color: #e74c3c;
    color: white;
    font-size: 0.8rem;
    padding: 2px 6px;
    border-radius: 10px;
    margin-right: 5px;
}

.FAC-shipping-row {
    font-weight: 600;
}

.FAC-shipping-label {
    color: #2c3e50;
}

.FAC-payment-location {
    color: #e74c3c;
}

.FAC-free-shipping {
    color: #27ae60;
}

/* بخش جمع کل */
.FAC-total-section {
    margin: 30px 0;
    text-align: left;
}

.FAC-total-line {
    width: 200px;
    height: 2px;
    background-color: #3498db;
    margin-bottom: 15px;
}

.FAC-total-amount {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.5rem;
    font-weight: 600;
}
    /* استایل زمانی که کیف پول فعال است */
    .FAC-total-amount.wallet-active {
        font-size: 14px;
        color: #7f8c8d;
        font-weight:400;
    }

        .FAC-total-amount.wallet-active .FAC-total-price {
            color: #555;
            text-decoration: line-through;
        }

/*.FAC-wallet-remaining {
    font-size: 16px;
    color: #27ae60;
    font-weight: bold;
    margin-top: 8px;
}*/

.FAC-total-price {
    color: #e74c3c;
    font-size: 1.8rem;
}

/* بخش آدرس */
.FAC-address-section {
    margin: 30px 0;
    padding: 20px;
    background-color: #f8fafc;
    border-radius: 8px;
    border-right: 4px solid #3498db;
}

/* بخش کد تخفیف */
.FAC-discount-section {
    margin: 30px 0;
}

.FAC-discount-box {
    max-width: 500px;
    margin: 0 auto;
    background-color: #e3f2fd;
    padding: 20px;
    border-radius: 8px;
}

.FAC-discount-input {
    display: flex;
    gap: 10px;
}

.FAC-discount-field {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1.4rem;
}

.FAC-discount-btn {
    padding: 12px 20px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .FAC-discount-btn:hover {
        background-color: #2980b9;
    }

.FAC-discount-icon {
    font-size: 1rem;
}

/* استایل سوئیچ کیف پول */
.FAC-wallet-toggle {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 10px;
}

.FAC-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

    .FAC-switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.FAC-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

    .FAC-slider:before {
        position: absolute;
        content: "";
        height: 16px;
        width: 16px;
        left: 4px;
        bottom: 4px;
        background-color: white;
        transition: .4s;
        border-radius: 50%;
    }

input:checked + .FAC-slider {
    background-color: #27ae60;
}

    input:checked + .FAC-slider:before {
        transform: translateX(26px);
    }

.FAC-wallet-label {
    font-size: 14px;
    color: #555;
}

.FAC-wallet-remaining {
    margin-top: 10px;
    padding: 8px 3px 8px 5px;
    background-color: #f8f9fa;
    font-weight:600;
    border-radius: 5px;
    display: flex;
    justify-content: right !important;
}

/* بخش پرداخت */
.FAC-payment-section {
    margin: 50px 0;
    text-align: center;
}

.FAC-payment-btn {
    display: inline-flex;
    align-items: center;
    padding: 15px 40px;
    background: linear-gradient(to left, #2ecc71, #27ae60);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.7rem;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(46, 204, 113, 0.3);
    margin-bottom: 20px;
    text-decoration:none !important;
}

    .FAC-payment-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 15px rgba(46, 204, 113, 0.4);
        background: linear-gradient(to left, #27ae60, #2ecc71);
    }

.FAC-payment-icon {
    margin-right: 15px;
}

.FAC-delivery-info {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #f9f9f9;
    padding: 10px 20px;
    border-radius: 30px;
    color: #555;
}

.FAC-delivery-icon {
    color: #3498db;
}

/* رسپانسیو */
@media (max-width: 992px) {
    .FAC-invoice-container {
        padding: 15px;
    }

    .FAC-table th,
    .FAC-table td {
        padding: 10px 8px;
    }

    .FAC-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .FAC-discount-input {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .FAC-title {
        font-size: 1.6rem;
    }

    .FAC-payment-btn {
        padding: 12px 25px;
        font-size: 1.7rem;
    }

    .FAC-total-amount {
        font-size: 1.3rem;
    }
}
