/**
 * Single Product - Shared Styles
 * استایل مشترک همه انواع محصول
 *
 * @package Alotoshak
 * @version 1.0.0
 */

/* ============================================
 * 1. ریشه و متغیرها
 * ============================================ */
:root {
    --alo-primary: #007bff;
    --alo-primary-dark: #0056b3;
    --alo-success: #28a745;
    --alo-danger: #dc3545;
    --alo-warning: #ffc107;
    --alo-dark: #1a1a2e;
    --alo-gray: #6c757d;
    --alo-light-gray: #f8f9fa;
    --alo-border: #e9ecef;
    --alo-radius: 12px;
    --alo-radius-lg: 16px;
    --alo-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --alo-shadow-hover: 0 6px 30px rgba(0, 0, 0, 0.12);
    --alo-transition: all 0.3s ease;
    --alo-font: IRANSansX, Tahoma, Arial, sans-serif;
}

/* ============================================
 * 2. عنوان محصول
 * ============================================ */
.alotoshak-product-title {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: var(--alo-dark) !important;
    line-height: 1.5 !important;
    margin: 0 0 20px 0 !important;
    padding: 0 !important;
}

/* ============================================
 * 3. بخش meta
 * ============================================ */
.alotoshak-product-meta-wrapper {
    margin-top: 20px;
}

.alotoshak-product-meta {
    background: #ffffff;
    border-radius: var(--alo-radius);
    padding: 20px;
    margin: 20px 0;
    border: 1px solid var(--alo-border);
    font-family: var(--alo-font);
}

.alotoshak-product-meta .meta-label {
    color: var(--alo-gray);
    font-weight: 600;
    margin-left: 6px;
}

.alotoshak-product-meta p,
.alotoshak-product-meta ul {
    margin: 0 0 12px 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
    color: var(--alo-dark);
    line-height: 1.8;
}

.alotoshak-product-meta ul li {
    display: inline-block;
    margin-left: 12px;
}

/* ============================================
 * 4. دکمه علاقه‌مندی
 * ============================================ */
.alotoshak-favorite-box {
    margin: 15px 0;
}

.alotoshak-favorite-box .add_product_to_favorite {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: var(--alo-light-gray);
    border: 1px solid var(--alo-border);
    border-radius: 8px;
    color: var(--alo-dark);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: var(--alo-transition);
    cursor: pointer;
}

.alotoshak-favorite-box .add_product_to_favorite:hover {
    background: #ffffff;
    border-color: var(--alo-danger);
    color: var(--alo-danger);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.15);
}

.alotoshak-favorite-box .add_product_to_favorite img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.alotoshak-favorite-box .add_product_to_favorite.is-favorite {
    background: #fff5f5;
    border-color: var(--alo-danger);
    color: var(--alo-danger);
}

/* ============================================
 * 5. بخش موجودی
 * ============================================ */
.alotoshak-stock-list {
    margin: 12px 0 !important;
}

.alotoshak-stock-list .stock {
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
}

.alotoshak-stock-list .stock.in-stock {
    color: var(--alo-success);
    background: #e8f8ec;
}

.alotoshak-stock-list .stock.out-of-stock {
    color: var(--alo-danger);
    background: #fde8ea;
}

/* ============================================
 * 6. دسته‌بندی و برچسب
 * ============================================ */
.alotoshak-categories li,
.alotoshak-tags li {
    font-size: 13px;
}

.alotoshak-categories a,
.alotoshak-tags a {
    color: var(--alo-primary);
    text-decoration: none;
    transition: var(--alo-transition);
}

.alotoshak-categories a:hover,
.alotoshak-tags a:hover {
    color: var(--alo-primary-dark);
    text-decoration: underline;
}

/* ============================================
 * 7. لینک اینستاگرام
 * ============================================ */
.alotoshak-instagram-box {
    margin-top: 20px;
}

.alotoshak-instagram-box .blog-single-social-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border: 1px solid var(--alo-border);
    border-radius: var(--alo-radius);
    text-decoration: none;
    color: var(--alo-dark);
    transition: var(--alo-transition);
}

.alotoshak-instagram-box .blog-single-social-box:hover {
    transform: translateY(-2px);
    box-shadow: var(--alo-shadow);
    border-color: #e1306c;
}

.alotoshak-instagram-box .blog-single-social-box-icon img {
    width: 32px;
    height: 32px;
}

.alotoshak-instagram-box .blog-single-social-box-text {
    font-size: 14px;
    line-height: 1.6;
}

.alotoshak-instagram-box .blog-single-social-box-text b {
    color: #e1306c;
}

/* ============================================
 * 8. ویدئوهای محصول
 * ============================================ */
.alotoshak-product-video {
    margin: 20px 0;
    padding: 20px;
    background: var(--alo-light-gray);
    border-radius: var(--alo-radius);
    border: 1px solid var(--alo-border);
}

.alotoshak-product-video .title h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--alo-dark);
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--alo-primary);
    display: inline-block;
}

.alotoshak-video-item {
    margin-bottom: 15px;
}

.alotoshak-video-item iframe,
.alotoshak-video-item video {
    width: 100%;
    max-width: 100%;
    border-radius: 8px;
}

/* ============================================
 * 9. برچسب تخفیف
 * ============================================ */
.alotoshak-onsale {
    display: inline-block;
    background: linear-gradient(135deg, var(--alo-danger), #e74c3c);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    animation: aloPulse 2s infinite;
}

@keyframes aloPulse {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* ============================================
 * 10. واکنش‌گرا
 * ============================================ */
@media (max-width: 768px) {
    .alotoshak-product-title {
        font-size: 22px !important;
    }

    .alotoshak-product-meta {
        padding: 15px;
    }

    .alotoshak-product-meta ul li {
        display: block;
        margin: 6px 0;
    }
}