/**
 * Single Product - Simple Product Styles
 * استایل محصولات ساده
 *
 * @package Alotoshak
 * @version 1.0.0
 */

/* ============================================
 * 1. بخش قیمت
 * ============================================ */
.alotoshak-product-price-wrapper {
    margin: 20px 0;
}

.alotoshak-price-html {
    font-size: 28px !important;
    font-weight: 800 !important;
    color: var(--alo-success) !important;
    direction: ltr;
    text-align: right;
    margin: 0 !important;
}

.alotoshak-price-html del {
    font-size: 18px;
    color: #adb5bd;
    font-weight: 500;
    margin-left: 10px;
}

.alotoshak-price-html ins {
    text-decoration: none;
    font-weight: 800;
}

.alotoshak-price-notice {
    background: #fff3cd;
    border: 1px solid var(--alo-warning);
    border-radius: 8px;
    padding: 12px 16px;
    color: #856404;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
}

.alotoshak-custom-price-title {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: var(--alo-primary) !important;
    padding: 12px;
    background: #e7f1ff;
    border-radius: 8px;
    text-align: center;
}

/* ============================================
 * 2. دکمه‌های استعلام
 * ============================================ */
.alotoshak-consultation-btn,
.alotoshak-call-price {
    display: block;
    text-align: center;
    padding: 16px 24px;
    border-radius: var(--alo-radius);
    text-decoration: none !important;
    transition: var(--alo-transition);
    margin: 15px 0;
}

.alotoshak-consultation-btn {
    background: linear-gradient(135deg, var(--alo-primary), var(--alo-primary-dark));
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.alotoshak-consultation-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
}

.alotoshak-consultation-btn p,
.alotoshak-call-price p {
    margin: 0 !important;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}

.alotoshak-call-price {
    background: var(--alo-light-gray);
    border: 2px dashed var(--alo-gray);
    color: var(--alo-gray) !important;
    font-size: 16px;
    font-weight: 700;
}

/* ============================================
 * 3. فرم افزودن به سبد
 * ============================================ */
.alotoshak-simple-cart {
    background: #ffffff;
    border-radius: var(--alo-radius-lg);
    padding: 24px;
    box-shadow: var(--alo-shadow);
    margin: 20px 0;
    border: 1px solid #f0f0f0;
    transition: var(--alo-transition);
}

.alotoshak-simple-cart:hover {
    box-shadow: var(--alo-shadow-hover);
}

/* ============================================
 * 4. جعبه مبلغ کل
 * ============================================ */
.alotoshak-total-box {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    padding: 14px 20px;
    border-radius: 10px;
    margin: 15px 0;
    text-align: center;
    border: 1px solid var(--alo-warning);
}

.alotoshak-total-box .total-label {
    font-size: 16px;
    color: #856404;
    font-weight: 600;
    margin-left: 10px;
}

.alotoshak-total-box .total-price {
    font-size: 22px;
    font-weight: 800;
    color: #d39e00;
    direction: ltr;
    display: inline-block;
    transition: transform 0.2s ease;
}

/* ============================================
 * 5. کنترل تعداد و دکمه
 * ============================================ */
.alotoshak-add-to-cart-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.alotoshak-quantity-wrapper {
    display: flex;
    align-items: center;
    background: var(--alo-light-gray);
    border-radius: 8px;
    border: 1px solid #dee2e6;
    overflow: hidden;
}

.alotoshak-qty-btn {
    width: 42px;
    height: 42px;
    border: none;
    background: transparent;
    font-size: 22px;
    font-weight: 700;
    color: #495057;
    cursor: pointer;
    transition: var(--alo-transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.alotoshak-qty-btn:hover {
    background: #e9ecef;
    color: var(--alo-dark);
}

.alotoshak-qty-btn:active {
    transform: scale(0.95);
}

.alotoshak-quantity-wrapper .quantity {
    margin: 0;
}

.alotoshak-quantity-wrapper .quantity input.alotoshak-qty-input,
.alotoshak-quantity-wrapper .quantity input[type="number"] {
    width: 70px;
    height: 42px;
    border: none;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    background: transparent;
    padding: 0;
    -moz-appearance: textfield;
    color: var(--alo-dark);
}

.alotoshak-quantity-wrapper .quantity input::-webkit-outer-spin-button,
.alotoshak-quantity-wrapper .quantity input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ============================================
 * 6. دکمه افزودن به سبد
 * ============================================ */
.alotoshak-add-to-cart-btn {
    flex: 1;
    min-width: 200px;
    height: 52px;
    background: linear-gradient(135deg, var(--alo-primary), var(--alo-primary-dark)) !important;
    border: none !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px;
    transition: var(--alo-transition) !important;
    text-transform: none !important;
    letter-spacing: 0.5px;
    cursor: pointer;
}

.alotoshak-add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4) !important;
    background: linear-gradient(135deg, #0069d9, #004085) !important;
}

.alotoshak-add-to-cart-btn:active {
    transform: translateY(0);
}

.alotoshak-add-to-cart-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

/* ============================================
 * 7. واکنش‌گرا
 * ============================================ */
@media (max-width: 768px) {
    .alotoshak-simple-cart {
        padding: 18px;
    }

    .alotoshak-add-to-cart-wrapper {
        flex-direction: column;
        width: 100%;
    }

    .alotoshak-quantity-wrapper {
        width: 100%;
        justify-content: center;
    }

    .alotoshak-add-to-cart-btn {
        width: 100%;
    }

    .alotoshak-price-html {
        font-size: 22px !important;
    }

    .alotoshak-total-box .total-price {
        font-size: 18px;
    }
}