/* ============================================================
   product.css - استایل کامل صفحه محصول (رز - آلبالویی روشن)
   ============================================================ */

:root {
    --primary: #C62840;
    --secondary: #8B1E2B;
    --text: #2d3748;
    --muted: #718096;
    --border: #f0d6d9;
    --bg: #ffffff;
    --bg-soft: #fdf6f7;
    --radius: 16px;
    --shadow: 0 2px 12px rgba(198,40,64,0.08);
    --shadow-hover: 0 8px 30px rgba(198,40,64,0.15);
    --transition: .3s ease;
}

/* ============================================================
   1. کانتینر اصلی
   ============================================================ */
#product-product {
    padding-top: 40px;
    padding-bottom: 40px;
    margin: 0 auto;
    max-width: 92%;
    background: transparent;
    overflow-x: hidden;
}

/* ============================================================
   2. مسیر راهنما
   ============================================================ */
#product-product .breadcrumb {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 12px 20px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

#product-product .breadcrumb li {
    color: var(--muted);
    font-size: 14px;
}

#product-product .breadcrumb li a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

#product-product .breadcrumb li a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

/* ============================================================
   3. 3 ستون
   ============================================================ */
.product-main-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 0 24px 0;
    gap: 20px;
}

.product-main-row [class*="col-"] {
    padding: 0;
    flex: 1;
}

.product-main-row .col-sm-4 { flex: 0 0 calc(33.333% - 14px); }
.product-main-row .col-sm-5 { flex: 0 0 calc(41.666% - 14px); }
.product-main-row .col-sm-3 { flex: 0 0 calc(25% - 14px); }

/* ============================================================
   4. ستون‌ها - هدرهای جدید شاد و روشن
   ============================================================ */
.product-column {
    background: var(--bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    height: 100%;
    overflow: hidden;
    transition: all var(--transition);
}

.product-column:hover {
    box-shadow: var(--shadow-hover);
}

.product-column-header {
    padding: 14px 20px;
    font-weight: 700;
    font-size: 15px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

.product-column-header::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transform: rotate(15deg);
}

.product-column-header i {
    font-size: 18px;
    color: #fff;
    position: relative;
    z-index: 1;
}

.product-column-header span {
    position: relative;
    z-index: 1;
}

/* هدر ستون تصاویر - صورتی شاد */
.product-column-images .product-column-header {
    background: linear-gradient(135deg, #E8436E, #C62840);
    border-bottom: 3px solid #FF6B8A;
    box-shadow: 0 2px 15px rgba(232,67,110,0.3);
}

/* هدر ستون جزئیات - گلبهی روشن */
.product-column-details .product-column-header {
    background: linear-gradient(135deg, #E8436E, #D6335A);
    border-bottom: 3px solid #FF8A9E;
    box-shadow: 0 2px 15px rgba(232,67,110,0.25);
}

/* هدر ستون عملیات - آلبالویی با درخشش */
.product-column-actions .product-column-header {
    background: linear-gradient(135deg, #D6335A, #B82A4A);
    border-bottom: 3px solid #FF6B8A;
    box-shadow: 0 2px 15px rgba(214,51,90,0.3);
}

.product-column-body {
    padding: 20px;
}

/* ============================================================
   5. گالری تصاویر
   ============================================================ */
.thumbnails {
    list-style: none;
    padding: 0;
    margin: 0;
}

.thumbnails > li { margin-bottom: 10px; }

.thumbnails .thumbnail {
    display: block;
    padding: 6px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: all var(--transition);
}

.thumbnails .thumbnail:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.thumbnails .thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.image-additional {
    display: inline-block;
    width: 22%;
    margin-left: 2%;
}

.image-additional .thumbnail { padding: 4px; }

/* ============================================================
   عنوان محصول - h1 کوچکتر
   ============================================================ */
#product-product h1 {
    font-size: 22px !important;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.product-title-main {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.product-subtitle {
    font-size: 14px;
    font-weight: 400;
    color: #4a5568;
    margin: 0 0 16px 0;
}

/* ============================================================
   جدول اطلاعات محصول - جمع و جور با متن‌های مشکی و ضخیم
   ============================================================ */

.product-meta {
    list-style: none;
    padding: 0;
    margin: 16px 0;
    border: 1px solid #eadde1;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

/* هر ردیف */
.product-meta li {
    display: flex;
    align-items: stretch;
    min-height: 38px;
    border-bottom: 1px solid #f1e6e9;
    transition: background .25s ease;
}

.product-meta li:last-child {
    border-bottom: none;
}

/* ستون عنوان */
.product-meta .meta-label {
    flex: 0 0 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    background: linear-gradient(135deg, #a91635, #7d1028);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    border-left: 1px solid rgba(255,255,255,.2);
}

/* ستون مقدار - همه متن‌ها و لینک‌ها یکسان، مشکی و ضخیم */
.product-meta .meta-value {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 20px;
    direction: rtl;
    color: #1a1a1a !important;
    background: #fff;
    font-size: 13px;
    font-weight: 700 !important;  /* همه مقادیر ضخیم */
    line-height: 1.6;
    text-align: right;
    overflow-wrap: anywhere;
}

/* لینک ها - مشکی و ضخیم (همانند متن‌های معمولی) */
.product-meta .meta-value a {
    color: #1a1a1a !important;
    font-weight: 700 !important;  /* لینک‌ها هم ضخیم */
    text-decoration: none;
    transition: color .2s ease;
}

.product-meta .meta-value a:hover {
    color: #b51d3c !important;
    text-decoration: underline;
}

/* فاصله بین چند لینک */
.product-meta .meta-value a:not(:last-child)::after {
    content: " - ";
    color: #aaa;
    margin: 0 6px;
    font-weight: 400; /* جداکننده نازک */
}

/* هاور ردیف */
.product-meta li:hover .meta-value {
    background: #fff8fa;
}

/* شماره ها و مقادیر خاص - همه ضخیم */
.product-meta .meta-value strong {
    color: #1a1a1a;
    font-weight: 700 !important;
}

/* ============================================================
   تبلت
   ============================================================ */
@media(max-width:991px){
    .product-meta .meta-label {
        flex-basis: 100px;
        font-size: 11px;
        padding: 0 8px;
    }
    .product-meta .meta-value {
        padding: 0 16px;
        font-size: 12px;
    }
    .product-meta li {
        min-height: 34px;
    }
}

/* ============================================================
   موبایل
   ============================================================ */
@media(max-width:768px){
    .product-meta li {
        flex-direction: column;
        min-height: 30px;
    }
    .product-meta .meta-label {
        width: 100%;
        min-height: 32px;
        padding: 6px 12px;
        font-size: 11px;
        border-left: none;
        border-bottom: 1px solid rgba(255,255,255,0.2);
        justify-content: center;
        text-align: center;
    }
    .product-meta .meta-value {
        min-height: 34px;
        justify-content: center;
        padding: 6px 12px;
        text-align: center;
        font-size: 12px;
        font-weight: 700 !important;
    }
    .product-meta li:hover .meta-value {
        background: #fdf6f7;
    }
    
    /* h1 در موبایل */
    #product-product h1 {
        font-size: 20px !important;
    }
    .product-title-main {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    #product-product h1 {
        font-size: 18px !important;
    }
    .product-title-main {
        font-size: 18px;
    }
}

/* ============================================================
   6. قیمت و ربان تخفیف - شادتر
   ============================================================ */
.product-price-box {
    position: relative;
    background: linear-gradient(135deg, #fdf6f7 0%, #ffffff 100%);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 18px;
    border: 2px solid #FF6B8A;
    box-shadow: 0 2px 12px rgba(255,107,138,0.15);
    transition: all 0.3s ease;
    overflow: visible;
}

.product-price-box:hover {
    box-shadow: 0 4px 20px rgba(255,107,138,0.25);
    border-color: #E8436E;
}

.discount-ribbon {
    display: inline-block;
    background: linear-gradient(135deg, #FF6B8A, #E8436E);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 20px;
    margin-bottom: 10px;
    box-shadow: 0 2px 15px rgba(232,67,110,0.3);
    letter-spacing: 0.5px;
}

.discount-ribbon .ribbon-percent {
    font-size: 14px;
    font-weight: 800;
}

.price-with-discount {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 6px;
    padding-left: 10px;
}

.price-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.price-current {
    font-size: 21px;
    font-weight: 800;
    color: #2d3748;
}

.price-special {
    font-size: 24px;
    font-weight: 800;
    color: #E8436E;
}

.price-old {
    font-size: 16px;
    color: #a0aec0;
    text-decoration: line-through;
}

.price-tax,
.price-points {
    font-size: 13px;
    color: #718096;
    margin-top: 6px;
    padding: 4px 0;
    border-top: 1px dashed #f0d6d9;
    padding-left: 4px;
}

.price-tax i,
.price-points i {
    margin-left: 6px;
    color: #a0aec0;
}

.price-discounts {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f0d6d9;
}

.price-discounts div {
    font-size: 13px;
    color: #4a5568;
    padding: 4px 8px;
    background: #fdf6f7;
    border-radius: 6px;
    margin-bottom: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-discounts div:last-child {
    margin-bottom: 0;
}

.price-discounts .discount-qty {
    font-weight: 600;
    color: #2d3748;
}

.price-discounts .discount-price {
    color: #E8436E;
    font-weight: 600;
}

/* ============================================================
   7. فرم و گزینه‌ها
   ============================================================ */
#product .form-group { margin-bottom: 16px; }
#product .form-group label {
    font-weight: 600;
    font-size: 14px;
    color: var(--muted);
    display: block;
    margin-bottom: 4px;
}

#product .form-control {
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    width: 100%;
    background: var(--bg);
    transition: all var(--transition);
}

#product .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(198,40,64,0.08);
    outline: none;
}

#product .radio,
#product .checkbox { padding: 4px 0; }

#product .radio label,
#product .checkbox label {
    font-weight: 400;
    font-size: 14px;
    color: var(--muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

#product input[type="radio"],
#product input[type="checkbox"] {
    accent-color: var(--primary);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.radio label img,
.checkbox label img {
    max-width: 40px;
    border-radius: 4px;
}

/* ============================================================
   8. امتیاز
   ============================================================ */
.rating {
    background: var(--bg-soft);
    border-radius: 10px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    margin-bottom: 16px;
}

.rating-stars {
    display: flex;
    gap: 3px;
    margin-bottom: 4px;
}

.rating .fa {
    font-size: 16px;
    color: #dce0e6;
}
.rating .fa-star { color: #f6ad55; }

.rating p {
    font-size: 13px;
    color: var(--muted);
    margin: 0;
}

.rating p a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

.rating p a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

/* ============================================================
   9. موجودی
   ============================================================ */
.stock-status-box {
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

.stock-status-box.in-stock {
    background: #f0faf0;
    border: 1px solid #c6f6d5;
}

.stock-status-box.in-stock .stock-status-icon {
    background: #38a169;
    color: #fff;
}

.stock-status-box.in-stock .stock-status-value {
    color: #38a169;
}

.stock-status-box.out-of-stock {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.stock-status-box.out-of-stock .stock-status-icon {
    background: #e53e3e;
    color: #fff;
}

.stock-status-box.out-of-stock .stock-status-value {
    color: #e53e3e;
}

.stock-status-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.stock-status-label {
    font-size: 13px;
    color: #4a5568;
}

.stock-status-value {
    font-size: 16px;
    font-weight: 700;
}

.minimum-alert {
    background: #fefcbf;
    border-color: #f6e05e;
    color: #744210;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    margin-bottom: 16px;
}

/* ============================================================
   10. تعداد و دکمه خرید - آلبالویی تیره (همه دکمه‌های خرید)
   ============================================================ */
.quantity-group label {
    font-weight: 600;
    font-size: 14px;
    color: #4a5568;
    display: block;
    margin-bottom: 6px;
}

.quantity-input-wrapper {
    display: flex;
    align-items: center;
    border: 2px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg);
    transition: all var(--transition);
}

.quantity-input-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(198,40,64,0.08);
}

.qty-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: var(--bg-soft);
    color: var(--muted);
    font-size: 18px;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
}

.qty-btn:hover {
    background: var(--primary);
    color: #fff;
}

.quantity-input {
    width: 60px;
    height: 44px;
    border: none;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    background: transparent;
    outline: none;
    padding: 0;
}

/* دکمه افزودن به سبد خرید - آلبالویی تیره */
.add-to-cart-btn {
    background: linear-gradient(135deg, #C62840, #8B1E2B);
    border: none;
    border-radius: 10px;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 4px 20px rgba(139,30,43,0.35);
    transition: all var(--transition);
    width: 100%;
    margin-bottom: 10px;
}

.add-to-cart-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 35px rgba(139,30,43,0.45);
    background: linear-gradient(135deg, #D6335A, #8B1E2B);
}

.add-to-cart-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.add-to-cart-btn i { margin-left: 8px; }

/* دکمه‌های خرید در محصولات مرتبط - آلبالویی تیره */
.related-card-actions .btn-cart {
    background: linear-gradient(135deg, #C62840, #8B1E2B);
    color: #fff;
    box-shadow: 0 2px 12px rgba(139,30,43,0.25);
}

.related-card-actions .btn-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139,30,43,0.35);
    background: linear-gradient(135deg, #D6335A, #8B1E2B);
}

/* دکمه‌های عملیات (غیر از دکمه خرید) */
.quick-actions {
    display: flex;
    gap: 8px;
}

.quick-action-btn {
    flex: 1;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px;
    font-size: 16px;
    cursor: pointer;
    background: var(--bg-soft);
    color: var(--muted);
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.quick-action-btn .fa-heart { color: #e53e3e; }
.quick-action-btn .fa-exchange { color: var(--primary); }

/* ============================================================
   11. تب‌ها
   ============================================================ */
.product-tabs-row {
    background: var(--bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    overflow: hidden;
    margin-bottom: 24px;
}

.nav-tabs {
    border-bottom: 2px solid var(--border);
    padding: 0 20px;
    margin: 0;
}

.nav-tabs > li { margin-bottom: -2px; }

.nav-tabs > li > a {
    border: none;
    border-radius: 8px 8px 0 0;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    background: transparent;
    transition: all var(--transition);
}

.nav-tabs > li > a:hover {
    color: var(--primary);
    background: var(--bg-soft);
}

.nav-tabs > li.active > a {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
}

.tab-content { padding: 24px 20px; }
.tab-content p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--muted);
}

/* ============================================================
   12. جدول ویژگی‌ها - ردیف‌های شادتر
   ============================================================ */
.table-bordered {
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    font-size: 14px;
    color: var(--muted);
    width: 100%;
}

.table-bordered thead tr { 
    background: linear-gradient(135deg, #E8436E, #C62840);
}
.table-bordered thead td {
    font-weight: 700;
    padding: 14px 18px;
    border-color: #B82A4A;
    color: #ffffff;
}

.table-bordered tbody td {
    padding: 12px 18px;
    border-color: var(--border);
}

.table-bordered tbody tr:nth-child(odd) { 
    background: #fce9f0;
}
.table-bordered tbody tr:nth-child(even) { 
    background: #fdf6f9;
}
.table-bordered tbody tr:hover td { 
    background: #f5d6de;
}

/* ============================================================
   13. محصولات مرتبط
   ============================================================ */
.related-products-wrapper {
    background: var(--bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    padding: 24px 20px;
    margin-bottom: 24px;
}

.related-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
    margin: 0 0 20px 0;
    padding-right: 12px;
    border-right: 4px solid #E8436E;
}

.related-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -8px;
}

.related-item {
    padding: 0 8px;
    margin-bottom: 20px;
}

.related-card {
    background: var(--bg);
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.related-card-image {
    background: var(--bg-soft);
    overflow: hidden;
    position: relative;
    padding-top: 100%;
}

.related-card-image a {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.related-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.related-card:hover .related-card-image img { transform: scale(1.05); }

.related-card-image .sale {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #FF6B8A, #E8436E);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    z-index: 2;
    box-shadow: 0 2px 12px rgba(232,67,110,0.3);
}

.related-card-body {
    padding: 14px 16px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.related-card-name {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
    height: 38px;
    overflow: hidden;
}

.related-card-name a {
    color: var(--text);
    text-decoration: none;
    transition: color var(--transition);
}

.related-card-name a:hover { color: var(--primary); }

.related-card-desc {
    font-size: 12px;
    color: var(--muted);
    margin: 0 0 4px 0;
    line-height: 1.5;
    height: 32px;
    overflow: hidden;
}

.related-card-rating {
    display: flex;
    gap: 2px;
    margin-bottom: 4px;
}

.related-card-rating .fa {
    font-size: 12px;
    color: var(--border);
}
.related-card-rating .fa-star { color: #f6ad55; }

.related-card-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 8px;
    margin: 4px 0 8px;
}

.related-card-price .price-current {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}
.related-card-price .price-special {
    font-size: 16px;
    font-weight: 700;
    color: #E8436E;
}
.related-card-price .price-old {
    font-size: 13px;
    color: var(--muted);
    text-decoration: line-through;
}
.related-card-price .price-tax {
    display: block;
    font-size: 10px;
    color: var(--muted);
    width: 100%;
}

.related-card-actions {
    display: flex;
    gap: 6px;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

.related-card-actions button {
    flex: 1;
    border: none;
    border-radius: 8px;
    padding: 8px 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    background: var(--bg-soft);
    color: var(--muted);
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.related-card-actions button:hover { transform: translateY(-2px); }

/* دکمه‌های غیر از خرید در محصولات مرتبط */
.related-card-actions .btn-wishlist:hover {
    background: #fff5f5;
    color: #e53e3e;
}

.related-card-actions .btn-compare:hover {
    background: #fdf0f1;
    color: var(--primary);
}

/* ============================================================
   14. برچسب‌ها
   ============================================================ */
.product-tags-row {
    background: var(--bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    padding: 16px 24px;
    margin-bottom: 24px;
}

.product-tags-row p {
    font-size: 14px;
    color: var(--muted);
    margin: 0;
}

.product-tags-row p a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

.product-tags-row p a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

/* ============================================================
   15. ریسپانسیو
   ============================================================ */
@media (max-width: 991px) {
    .product-main-row [class*="col-"] {
        flex: 0 0 100% !important;
    }
    
    .product-column { margin-bottom: 16px; }
    .product-column-body { padding: 16px; }
    .product-tabs-row { border-radius: 12px; }
    .related-products-wrapper {
        border-radius: 12px;
        padding: 20px 16px;
    }
    .product-tags-row {
        border-radius: 12px;
        padding: 14px 20px;
    }
    .nav-tabs { padding: 0 16px; }
    .nav-tabs > li > a {
        padding: 12px 16px;
        font-size: 13px;
    }
    .tab-content { padding: 20px 16px; }
    
    /* جدول اطلاعات در تبلت */
    .product-meta li .meta-label {
        flex: 0 0 90px;
        min-width: 90px;
        padding: 6px 10px;
        font-size: 11px;
    }
    .product-meta li .meta-value {
        padding: 6px 14px;
        font-size: 12px;
    }
    .product-meta li {
        min-height: 34px;
    }
}

@media (max-width: 768px) {
    #product-product {
        padding-top: 30px;
        max-width: 95%;
    }
    
    .product-column { border-radius: 12px; }
    .product-column-header {
        padding: 10px 16px;
        font-size: 13px;
    }
    .product-column-body { padding: 14px; }
    
    .price-current,
    .price-special { font-size: 22px; }
    .price-old { font-size: 16px; }
    .price-with-discount { padding-left: 8px; }
    .product-price-box { padding: 12px 16px; }
    
    .image-additional { width: 18%; }
    .nav-tabs > li > a {
        padding: 10px 14px;
        font-size: 13px;
    }
    .tab-content { padding: 16px 14px; }
    .add-to-cart-btn {
        font-size: 15px;
        padding: 12px 20px;
    }
    
    .related-item { padding: 0 6px; }
    .related-card-body { padding: 12px 14px 14px; }
    .related-card-name { font-size: 13px; height: 34px; }
    .related-card-actions .btn-text { display: none; }

    /* جدول اطلاعات در موبایل - تبدیل به حالت عمودی */
    .product-meta li {
        flex-direction: column;
        align-items: stretch;
        min-height: 30px;
    }
    .product-meta li .meta-label {
        flex: none;
        min-width: auto;
        padding: 6px 12px;
        font-size: 11px;
        justify-content: center;
        text-align: center;
        border-left: none;
        border-bottom: 1px solid rgba(255,255,255,0.2);
        align-items: center;
    }
    .product-meta li .meta-value {
        padding: 6px 12px;
        font-size: 12px;
        justify-content: center;
        text-align: center;
        align-items: center;
        min-height: 32px;
        font-weight: 700 !important;
    }
    .product-meta li:hover .meta-value {
        background: #fdf6f7;
    }
    
    #product-product h1 {
        font-size: 20px !important;
    }
}

@media (max-width: 480px) {
    #product-product {
        padding-top: 20px;
        max-width: 100%;
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .product-column { border-radius: 10px; }
    .product-column-header {
        padding: 8px 14px;
        font-size: 12px;
    }
    .product-column-body { padding: 12px; }
    
    .price-current,
    .price-special { font-size: 20px; }
    .price-old { font-size: 15px; }
    .price-with-discount { padding-left: 6px; }
    .product-price-box { padding: 10px 14px; }
    
    .discount-ribbon {
        font-size: 12px;
        padding: 3px 14px;
    }
    .discount-ribbon .ribbon-percent { font-size: 13px; }
    
    .image-additional { width: 22%; }
    .image-additional .thumbnail { padding: 2px; }
    
    #product .form-control { padding: 8px 12px; font-size: 13px; }
    .quantity-input { width: 50px; height: 36px; font-size: 13px; }
    .qty-btn { width: 34px; height: 36px; font-size: 13px; }
    .add-to-cart-btn {
        font-size: 14px;
        padding: 10px 16px;
        border-radius: 8px;
    }
    .quick-action-btn { padding: 8px; font-size: 14px; }
    
    .rating { padding: 8px 12px; }
    .rating .fa { font-size: 14px; }
    .rating p { font-size: 12px; }
    
    .stock-status-box { padding: 8px 12px; }
    .stock-status-icon { width: 30px; height: 30px; font-size: 14px; }
    
    .nav-tabs {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
        padding: 0 10px;
    }
    .nav-tabs > li { flex: 1; min-width: 50px; text-align: center; }
    .nav-tabs > li > a {
        font-size: 11px;
        padding: 8px 8px;
        border-radius: 6px 6px 0 0;
    }
    .tab-content { padding: 12px 10px; }
    .tab-content p { font-size: 13px; }
    
    .related-products-wrapper {
        border-radius: 10px;
        padding: 14px 10px;
    }
    .related-item { padding: 0 4px; }
    .related-title { font-size: 17px; }
    .related-card-body { padding: 10px 10px 12px; }
    .related-card-name { font-size: 12px; height: 30px; }
    .related-card-desc { font-size: 11px; height: 24px; }
    .related-card-price .price-current,
    .related-card-price .price-special { font-size: 14px; }
    .related-card-actions button { font-size: 10px; padding: 4px 2px; }
    
    .product-tags-row {
        padding: 12px 14px;
        border-radius: 10px;
    }
    .product-tags-row p { font-size: 13px; }
    .table-bordered { font-size: 13px; }
    .table-bordered thead td,
    .table-bordered tbody td { padding: 8px 12px; }
    
    #product-product h1 {
        font-size: 18px !important;
    }
}

@media (max-width: 360px) {
    #product-product {
        padding-top: 16px;
        padding-left: 6px;
        padding-right: 6px;
    }
    
    .product-title-main { font-size: 16px; }
    .product-subtitle { font-size: 13px; }
    .product-column { border-radius: 8px; }
    .product-column-body { padding: 10px; }
    
    .price-current,
    .price-special { font-size: 18px; }
    .price-old { font-size: 14px; }
    .price-with-discount { padding-left: 4px; }
    
    .quick-action-btn { padding: 6px; font-size: 12px; }
    .rating .fa { font-size: 12px; }
    .rating p { font-size: 11px; }
    
    .nav-tabs > li > a {
        font-size: 10px;
        padding: 6px 4px;
    }
    
    .related-card-name { font-size: 11px; height: 26px; }
    .related-card-desc { font-size: 10px; height: 20px; }
    .related-card-price .price-current,
    .related-card-price .price-special { font-size: 13px; }
    .related-card-actions button { font-size: 9px; padding: 3px 2px; }
    
    .product-tags-row {
        padding: 12px 14px;
        border-radius: 10px;
    }
    .product-tags-row p { font-size: 13px; }
    .table-bordered { font-size: 13px; }
    .table-bordered thead td,
    .table-bordered tbody td { padding: 8px 12px; }
    
    #product-product h1 {
        font-size: 16px !important;
    }
}