/**
 * طراحی دو ستونه برای صفحه محصول در نمایش دسکتاپ - نسخه اصلاح شده نهایی
 * با قدرت اعمال بالاتر
 */

/* تنظیمات اصلی برای نمایش دسکتاپ */
@media screen and (min-width: 992px) {
    /* ساختار کلی صفحه */
    body.shop-page {
        background-color: #f0f0f0 !important;
    }
    
    /* بهبود کانتینر اصلی */
    .product-detail {
        padding: 40px 0 !important;
        background: none !important;
    }
    
    .product-detail .container {
        max-width: 1300px !important;
        padding: 0 !important;
    }
    
    /* طراحی دو ستونه با تناسب مناسب - اعمال !important برای اولویت بیشتر */
    .product-content {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 30px !important;
        padding: 20px !important;
    }
    
    /* ستون راست - گالری و اطلاعات تکمیلی */
    .product-gallery {
        grid-column: 2 !important;
        grid-row: 1 !important;
        border-radius: 10px !important;
        overflow: hidden !important;
        border: 1px solid #f0f0f0 !important;
        max-height: 500px !important;
    }
    
    /* افزودن بخش‌های تکمیلی در ستون راست */
    .right-column-additional {
        grid-column: 2 !important;
        grid-row: 2 !important;
        margin-top: 20px !important;
    }
    
    /* محصولات مشابه در ستون راست */
    .right-column-similar {
        background-color: #fff !important;
        border-radius: 10px !important;
        border: 1px solid #f0f0f0 !important;
        padding: 15px !important;
        margin-bottom: 20px !important;
    }
    
    .right-column-similar-title {
        font-size: 16px !important;
        font-weight: 600 !important;
        color: #333 !important;
        margin-bottom: 15px !important;
        position: relative !important;
        padding-right: 20px !important;
    }
    
    .right-column-similar-title:before {
        content: "" !important;
        position: absolute !important;
        right: 0 !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: 10px !important;
        height: 10px !important;
        background-color: #2e7d32 !important;
        border-radius: 50% !important;
    }
    
    .similar-products-list {
        display: flex !important;
        gap: 10px !important;
        overflow-x: auto !important;
        padding-bottom: 10px !important;
        scrollbar-width: thin !important;
    }
    
    .similar-products-list::-webkit-scrollbar {
        height: 5px !important;
    }
    
    .similar-products-list::-webkit-scrollbar-track {
        background: #f0f0f0 !important;
        border-radius: 10px !important;
    }
    
    .similar-products-list::-webkit-scrollbar-thumb {
        background: #ddd !important;
        border-radius: 10px !important;
    }
    
    .similar-product-item {
        min-width: 110px !important;
        flex-shrink: 0 !important;
        text-align: center !important;
    }
    
    .similar-product-image {
        width: 80px !important;
        height: 80px !important;
        object-fit: contain !important;
        border-radius: 8px !important;
        margin-bottom: 8px !important;
        border: 1px solid #f0f0f0 !important;
        padding: 5px !important;
    }
    
    .similar-product-title {
        font-size: 12px !important;
        color: #555 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        line-height: 1.5 !important;
        max-height: 36px !important;
    }
    
    /* بخش نمایش ویژگی‌های مهم در ستون راست */
    .right-column-features {
        background-color: #fff !important;
        border-radius: 10px !important;
        border: 1px solid #f0f0f0 !important;
        padding: 15px !important;
        margin-bottom: 20px !important;
    }
    
    .right-column-features-title {
        font-size: 16px !important;
        font-weight: 600 !important;
        color: #333 !important;
        margin-bottom: 15px !important;
        position: relative !important;
        padding-right: 20px !important;
    }
    
    .right-column-features-title:before {
        content: "" !important;
        position: absolute !important;
        right: 0 !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: 10px !important;
        height: 10px !important;
        background-color: #2e7d32 !important;
        border-radius: 50% !important;
    }
    
    .right-column-features-list {
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .right-column-feature-item {
        display: flex !important;
        gap: 8px !important;
        margin-bottom: 10px !important;
        padding-bottom: 10px !important;
        border-bottom: 1px dashed #f0f0f0 !important;
    }
    
    .right-column-feature-item:last-child {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
        border-bottom: none !important;
    }
    
    .right-column-feature-icon {
        color: #2e7d32 !important;
        font-size: 14px !important;
        width: 20px !important;
        text-align: center !important;
    }
    
    .right-column-feature-text {
        font-size: 13px !important;
        color: #555 !important;
    }
    
    /* ستون چپ - اطلاعات محصول */
    .product-info {
        grid-column: 1 !important;
        grid-row: 1 / span 2 !important;
        padding: 0 !important;
    }
    
    /* هدر محصول */
    .product-info h1 {
        font-size: 24px !important;
        line-height: 1.3 !important;
        font-weight: 700 !important;
        color: #333 !important;
        margin-bottom: 20px !important;
        padding-bottom: 15px !important;
        border-bottom: 1px solid #f0f0f0 !important;
    }
    
    .product-meta {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        margin-bottom: 20px !important;
    }
    
    .product-rating {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
    }
    
    .product-rating i {
        color: #FFC107 !important;
    }
    
    /* باکس قیمت */
    .digikala-price-box {
        margin: 0 0 20px !important;
    }
    
    /* باکس فروشنده */
    .seller-box {
        margin: 0 0 20px !important;
    }
    
    /* دکمه‌های عملیات */
    .product-actions {
        margin-top: 30px !important;
    }
    
    #add-to-cart-form {
        display: flex !important;
        gap: 15px !important;
        flex-wrap: wrap !important;
    }
    
    .quantity {
        flex: 0 0 150px !important;
    }
    
    .add-to-cart-btn {
        flex: 1 !important;
        min-width: 200px !important;
    }
    
    /* توضیحات تب‌ها */
    .product-tabs .tab-content {
        padding: 25px !important;
        background-color: #fff !important;
        border-radius: 10px !important;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05) !important;
    }
    
    /* تنظیم گالری تصاویر - ستون سمت راست */
    .main-image {
        height: 400px !important;
        margin: 0 !important;
        border-radius: 0 !important;
        border: none !important;
        box-shadow: none !important;
        overflow: hidden !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background-color: #fff !important;
        padding: 20px !important;
    }
    
    .main-image img {
        max-width: 100% !important;
        max-height: 350px !important;
        object-fit: contain !important;
        transition: transform 0.5s !important;
    }
    
    .gallery-thumbnails {
        position: relative !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        display: flex !important;
        justify-content: center !important;
        gap: 10px !important;
        padding: 20px 30px !important;
        background-color: #fff !important;
        border-top: 1px solid #f0f0f0 !important;
    }
    
    .gallery-thumbnails img {
        width: 70px !important;
        height: 70px !important;
        border-radius: 8px !important;
        object-fit: cover !important;
        border: 1px solid #e0e0e0 !important;
        transition: all 0.3s ease !important;
        cursor: pointer !important;
    }
    
    .gallery-thumbnails img.active {
        border-color: #2E7D32 !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    }
    
    .gallery-thumbnails img:hover {
        transform: translateY(-3px) !important;
    }
    
    /* تنظیم اطلاعات محصول - ستون سمت چپ */
    .product-info {
        padding: 25px 30px !important;
        display: flex !important;
        flex-direction: column !important;
        flex: 0 0 60% !important;
        max-width: 88% !important;
        width: 100% !important;
        order: 1 !important;
    }
    
    .product-info h1 {
        font-size: 20px !important;
        margin-bottom: 15px !important;
        font-weight: 700 !important;
        color: #333 !important;
        line-height: 1.4 !important;
        padding-bottom: 15px !important;
        border-bottom: 1px solid #f0f0f0 !important;
    }
    
    .product-meta {
        margin-bottom: 20px !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }
    
    .product-category {
        padding: 5px 12px !important;
        border-radius: 15px !important;
        font-size: 12px !important;
        background-color: #f5f5f5 !important;
        color: #666 !important;
    }
    
    /* بخش قیمت‌گذاری */
    .product-price-wrapper {
        margin: 20px 0 !important;
        padding: 15px !important;
        background: #f5f5f5 !important;
        border-radius: 8px !important;
        position: relative !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        border: none !important;
    }
    
    .product-price-wrapper::before {
        display: none !important;
    }
    
    .original-price {
        font-size: 15px !important;
        margin-left: 10px !important;
        color: #999 !important;
        text-decoration: line-through !important;
    }
    
    .current-price {
        font-size: 20px !important;
        font-weight: 700 !important;
        color: #2E7D32 !important;
    }
    
    /* توضیحات محصول */
    .product-description {
        padding: 15px !important;
        margin: 15px 0 !important;
        border-radius: 8px !important;
        background-color: #f9f9f9 !important;
        line-height: 1.8 !important;
        font-size: 14px !important;
        color: #555 !important;
        max-height: 150px !important;
        overflow-y: auto !important;
    }
    
    /* ویژگی‌های محصول */
    .product-features {
        margin: 20px 0 !important;
    }
    
    .product-features h3 {
        font-size: 16px !important;
        margin-bottom: 15px !important;
        color: #333 !important;
        position: relative !important;
        padding-right: 12px !important;
    }
    
    .product-features h3:before {
        content: "" !important;
        position: absolute !important;
        right: 0 !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: 4px !important;
        height: 18px !important;
        background-color: #2E7D32 !important;
        border-radius: 2px !important;
    }
    
    .product-features ul {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .product-features li {
        padding: 10px !important;
        border-radius: 8px !important;
        font-size: 13px !important;
        background-color: #f5f5f5 !important;
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
    }
    
    .product-features li i {
        color: #2E7D32 !important;
    }
    
    /* بخش اطلاعات اضافی */
    .product-meta-info {
        margin-top: 20px !important;
        padding: 15px !important;
        background-color: #f9f9f9 !important;
        border-radius: 8px !important;
    }
    
    .product-meta-info p {
        margin-bottom: 8px !important;
        font-size: 13px !important;
        color: #666 !important;
    }
    
    .product-meta-info i {
        color: #999 !important;
        width: 20px !important;
        text-align: center !important;
        margin-left: 5px !important;
    }
    
    /* بخش تب‌های محصول */
    .product-tabs {
        margin-top: 25px !important;
        background: #fff !important;
        border-radius: 10px !important;
        box-shadow: 0 1px 5px rgba(0, 0, 0, 0.15) !important;
        padding: 0 !important;
        overflow: hidden !important;
    }
    
    .tab-header {
        background-color: #fff !important;
        padding: 0 20px !important;
        border-bottom: 1px solid #f0f0f0 !important;
        display: flex !important;
    }
    
    .tab-item {
        padding: 15px 20px !important;
        font-weight: 600 !important;
        font-size: 14px !important;
        color: #555 !important;
        cursor: pointer !important;
        position: relative !important;
    }
    
    .tab-item.active {
        color: #2E7D32 !important;
    }
    
    .tab-item.active:after {
        content: "" !important;
        position: absolute !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 3px !important;
        background-color: #2E7D32 !important;
    }
    
    .tab-content {
        padding: 25px !important;
    }
    
    /* مشخصات فنی */
    .specs-table {
        margin-top: 30px;
    }
    
    .specs-row {
        background: #fff;
        border: 1px solid #eee;
        margin-bottom: 10px;
        border-radius: 8px;
        overflow: hidden;
    }
    
    .specs-label {
        font-weight: 700;
        background-color: #f5f5f5;
        padding: 15px 20px;
    }
    
    .specs-value {
        padding: 15px 20px;
    }
    
    /* محصولات مرتبط */
    .related-products {
        margin-top: 40px !important;
    }
    
    .related-products .container {
        max-width: 1300px !important;
    }
    
    .related-products h2 {
        margin-bottom: 30px;
        font-size: 26px;
    }
    
    .related-products .products.row {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 20px !important;
    }
    
    .related-products .products .col-lg-3 {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        padding: 0 !important;
    }
    
    /* ایجاد یک استایل برای کارت محصول */
    .product-card {
        background: white !important;
        border-radius: 10px !important;
        overflow: hidden !important;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05) !important;
        transition: all 0.3s !important;
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    .product-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    }
    
    .product-card .product-image {
        height: 200px;
        position: relative;
        overflow: hidden;
    }
    
    .product-card .product-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s;
    }
    
    .product-card:hover .product-image img {
        transform: scale(1.1);
    }
    
    .product-card .product-info {
        padding: 15px;
    }
    
    .product-card h3 {
        font-size: 16px;
        font-weight: 600;
        margin: 10px 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
} 