/* ====================================
   Product Details Page - Premium Design
   Modern & Elegant Product Details Layout
   ==================================== */

/* Main Section */
.product-details-premium {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(180deg, #fafbfc 0%, #ffffff 100%);
}

/* Main Content */
.product-main-content {
    position: relative;
}

/* Product Image */
.product-image-premium-detail {
    margin-bottom: 50px;
}

.image-wrapper-detail {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    background: #f5f7fa;
}

.product-main-image-detail {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-wrapper-detail:hover .product-main-image-detail {
    transform: scale(1.05);
}

.image-overlay-detail {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(16, 179, 102, 0.05), rgba(37, 162, 226, 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.image-wrapper-detail:hover .image-overlay-detail {
    opacity: 1;
}

/* Product Content */
.product-content-premium-detail {
    background: #ffffff;
    border-radius: 24px;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

.content-wrapper-detail {
    font-size: 18px;
    line-height: 1.9;
    color: #475569;
}

.content-wrapper-detail p {
    margin-bottom: 24px;
}

.content-wrapper-detail p:last-child {
    margin-bottom: 0;
}

.content-wrapper-detail h1,
.content-wrapper-detail h2,
.content-wrapper-detail h3,
.content-wrapper-detail h4 {
    color: #0f172a;
    font-weight: 700;
    margin-top: 32px;
    margin-bottom: 20px;
}

.content-wrapper-detail h1 {
    font-size: 36px;
}

.content-wrapper-detail h2 {
    font-size: 30px;
}

.content-wrapper-detail h3 {
    font-size: 24px;
}

.content-wrapper-detail ul,
.content-wrapper-detail ol {
    margin: 24px 0;
    padding-right: 24px;
}

.content-wrapper-detail li {
    margin-bottom: 12px;
    line-height: 1.8;
}

/* Sidebar */
.product-sidebar-premium {
    position: sticky;
    top: 100px;
}

/* Sidebar Widget */
.sidebar-widget-premium {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.sidebar-widget-premium:hover {
    box-shadow: 0 15px 50px rgba(16, 179, 102, 0.15);
    transform: translateY(-5px);
}

.widget-header-premium {
    padding: 28px 30px;
    background: linear-gradient(135deg, #10b366 0%, #25a2e2 100%);
    border-bottom: 3px solid rgba(255, 255, 255, 0.2);
}

.widget-title-premium {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}

.title-text-premium {
    position: relative;
    z-index: 2;
}

.title-line-premium {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
}

.widget-content-premium {
    padding: 30px;
}

/* Related Products List */
.related-products-list-premium {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-product-item-premium {
    margin-bottom: 12px;
}

.related-product-item-premium:last-child {
    margin-bottom: 0;
}

.product-link-premium {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #475569;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 12px 16px;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
}

.product-link-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(16, 179, 102, 0.08), rgba(37, 162, 226, 0.08));
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-link-premium:hover::before {
    opacity: 1;
}

.product-link-premium:hover {
    color: #10b366;
    transform: translateX(-5px);
}

[dir="rtl"] .product-link-premium:hover {
    transform: translateX(5px);
}

.link-icon-premium {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 179, 102, 0.1);
    border-radius: 8px;
    color: #10b366;
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.product-link-premium:hover .link-icon-premium {
    background: linear-gradient(135deg, #10b366, #25a2e2);
    color: #ffffff;
    transform: translateX(4px);
}

[dir="rtl"] .product-link-premium:hover .link-icon-premium {
    transform: translateX(-4px);
}

.link-icon-premium svg {
    width: 12px;
    height: 12px;
}

.link-text-premium {
    position: relative;
    z-index: 1;
    flex: 1;
}

/* Contact Items */
.contact-items-detail-premium {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-item-detail-premium {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding-bottom: 28px;
    border-bottom: 1px solid #e2e8f0;
}

.contact-item-detail-premium:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.contact-icon-detail-premium {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(16, 179, 102, 0.1), rgba(37, 162, 226, 0.1));
    border-radius: 12px;
    color: #10b366;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-item-detail-premium:hover .contact-icon-detail-premium {
    background: linear-gradient(135deg, #10b366, #25a2e2);
    color: #ffffff;
    transform: scale(1.1);
}

.contact-icon-detail-premium svg {
    width: 22px;
    height: 22px;
}

.contact-content-detail-premium {
    flex: 1;
}

.contact-label-detail-premium {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 10px 0;
}

.contact-info-detail-premium {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-link-detail-premium {
    color: #64748b;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: block;
}

.contact-link-detail-premium:hover {
    color: #10b366;
    padding-left: 8px;
}

[dir="rtl"] .contact-link-detail-premium:hover {
    padding-left: 0;
    padding-right: 8px;
}

.contact-text-detail-premium {
    color: #64748b;
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
    font-weight: 500;
}

/* ====================================
   Responsive Design
   ==================================== */

@media (max-width: 1199px) {
    .product-details-premium {
        padding: 80px 0;
    }
    
    .product-sidebar-premium {
        top: 80px;
    }
}

@media (max-width: 991px) {
    .product-details-premium {
        padding: 70px 0;
    }
    
    .product-content-premium-detail {
        padding: 40px;
    }
    
    .widget-header-premium {
        padding: 24px 26px;
    }
    
    .widget-content-premium {
        padding: 26px;
    }
    
    .product-sidebar-premium {
        position: static;
        margin-top: 40px;
    }
}

@media (max-width: 767px) {
    .product-details-premium {
        padding: 60px 0;
    }
    
    .product-image-premium-detail {
        margin-bottom: 40px;
    }
    
    .product-content-premium-detail {
        padding: 30px 24px;
        border-radius: 20px;
    }
    
    .content-wrapper-detail {
        font-size: 16px;
    }
    
    .content-wrapper-detail h1 {
        font-size: 28px;
    }
    
    .content-wrapper-detail h2 {
        font-size: 24px;
    }
    
    .content-wrapper-detail h3 {
        font-size: 20px;
    }
    
    .widget-header-premium {
        padding: 22px 24px;
    }
    
    .widget-title-premium {
        font-size: 18px;
    }
    
    .widget-content-premium {
        padding: 24px;
    }
    
    .product-link-premium {
        font-size: 14px;
        padding: 10px 14px;
    }
    
    .contact-items-detail-premium {
        gap: 24px;
    }
    
    .contact-item-detail-premium {
        gap: 16px;
        padding-bottom: 24px;
    }
    
    .contact-icon-detail-premium {
        width: 44px;
        height: 44px;
    }
    
    .contact-icon-detail-premium svg {
        width: 20px;
        height: 20px;
    }
    
    .contact-label-detail-premium {
        font-size: 15px;
    }
    
    .contact-link-detail-premium,
    .contact-text-detail-premium {
        font-size: 14px;
    }
}

@media (max-width: 575px) {
    .product-details-premium {
        padding: 50px 0;
    }
    
    .product-content-premium-detail {
        padding: 24px 20px;
    }
    
    .content-wrapper-detail {
        font-size: 15px;
    }
    
    .widget-header-premium {
        padding: 20px 22px;
    }
    
    .widget-title-premium {
        font-size: 17px;
    }
    
    .widget-content-premium {
        padding: 22px 20px;
    }
}

/* ====================================
   RTL Support
   ==================================== */

[dir="rtl"] .content-wrapper-detail ul,
[dir="rtl"] .content-wrapper-detail ol {
    padding-right: 0;
    padding-left: 24px;
}

/* ====================================
   Print Styles
   ==================================== */

@media print {
    .product-details-premium {
        padding: 40px 0;
        background: #ffffff;
    }
    
    .product-content-premium-detail,
    .sidebar-widget-premium {
        box-shadow: none;
        border: 1px solid #e2e8f0;
    }
    
    .image-overlay-detail {
        display: none;
    }
}

