/**
 * Arabic Single Product Page Styles
 * 
 * Design: Luxury gold and deep blue color scheme with RTL support
 * Target: .lang-ar body class
 * Version: 1.0
 */

/* ============================================================================
   RTL Base Styles
   ============================================================================ */
.lang-ar {
    direction: rtl;
    text-align: right;
}

/* ============================================================================
   Color System Override - Gold & Deep Blue Theme
   ============================================================================ */
.lang-ar .product-detail-page {
    --primary-blue: #D4AF37;
    --primary-dark: #B8941F;
    --primary-light: #FFD700;
    --success-green: #D4AF37;
    --text-primary: #1a1a1a;
    --text-secondary: #666;
    --text-light: #999;
    --bg-white: #ffffff;
    --bg-light: #fafbfc;
    --bg-gray: #f5f7fa;
    --border-light: #e8eaed;
    --shadow-sm: 0 1px 3px rgba(212, 175, 55, 0.15);
    --shadow-md: 0 4px 12px rgba(212, 175, 55, 0.2);
    --shadow-lg: 0 8px 24px rgba(212, 175, 55, 0.25);
    --shadow-xl: 0 12px 40px rgba(212, 175, 55, 0.3);
}

/* ============================================================================
   Breadcrumb Navigation - RTL
   ============================================================================ */
.lang-ar .breadcrumb-nav {
    flex-direction: row-reverse;
}

.lang-ar .breadcrumb-nav a:hover {
    color: #D4AF37;
}

/* ============================================================================
   Section Headers - Gold Theme
   ============================================================================ */
.lang-ar .product-section::before {
    left: auto;
    right: 0;
    background: linear-gradient(180deg, #D4AF37 0%, #B8941F 100%);
    border-radius: 0 4px 4px 0;
}

.lang-ar .section-header::after {
    left: auto;
    right: 0;
    background: linear-gradient(90deg, #FFD700 0%, #D4AF37 100%);
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.4);
}

.lang-ar .section-icon {
    background: linear-gradient(135deg, #D4AF37 0%, #B8941F 100%);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.45);
}

.lang-ar .section-icon:hover {
    box-shadow: 0 12px 32px rgba(212, 175, 55, 0.55);
}

/* ============================================================================
   Hero Section - Gold & Deep Blue Theme (统一高度 550px)
   让模板的内联样式（产品特色图片）生效
   
   策略：不覆盖 background 属性，让内联样式完全控制背景
   模板的内联样式会自动叠加显示：background-image: linear-gradient(...), url(产品图片)
   ============================================================================ */
.lang-ar .product-hero {
    /* 布局相关的属性使用 !important 确保生效 */
    min-height: 550px !important; /* 统一为 550px */
    padding: 70px 40px !important; /* 优化内边距 */
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    
    /* 关键修复：完全不设置任何背景相关属性，让内联样式100%控制 */
    /* 移除了 background, background-size, background-position, background-repeat */
    /* 因为即使是辅助属性，用 !important 也会干扰内联样式 */
}

/* Hero Content Grid - RTL布局优化 */
.lang-ar .hero-content {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 70px !important; /* 增加左右间距 */
    align-items: center !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    width: 100% !important;
    direction: rtl !important;
}

/* Hero Image - 产品图片优化 */
.lang-ar .hero-image {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
}

.lang-ar .hero-image img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-height: 470px !important;
    object-fit: contain !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4) !important;
    background: rgba(255,255,255,0.1) !important;
    padding: 20px !important;
    border: 2px solid rgba(212, 175, 55, 0.3) !important;
}

.lang-ar .hero-image img:hover {
    border-color: rgba(212, 175, 55, 0.6) !important;
}

/* Hero Info - 产品信息区域 */
.lang-ar .hero-info {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 22px !important;
    text-align: right !important;
}

.lang-ar .hero-info h1 {
    font-size: 48px !important;
    font-weight: 800 !important;
    color: #fff !important;
    line-height: 1.2 !important;
    letter-spacing: -0.5px !important;
    margin-bottom: 26px !important;
}

.lang-ar .hero-excerpt {
    font-size: 18px !important;
    line-height: 1.75 !important;
    color: rgba(255,255,255,0.95) !important;
    margin-bottom: 30px !important;
}

/* ============================================================================
   Key Specs List - Gold Theme
   ============================================================================ */
.lang-ar .key-specs-list {
    background: rgba(212, 175, 55, 0.15) !important;
    backdrop-filter: blur(10px) !important;
    padding: 34px !important;
    border-radius: 12px !important;
    border: 2px solid rgba(212, 175, 55, 0.3) !important;
}

.lang-ar .key-specs-list h3 {
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #fff !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    margin-bottom: 22px !important;
}

.lang-ar .key-specs-list li {
    font-size: 16px !important;
    line-height: 1.65 !important;
    font-weight: 500 !important;
    color: #fff !important;
    margin-bottom: 11px !important;
    padding-left: 0 !important;
    padding-right: 36px !important;
}

.lang-ar .key-specs-list li:before {
    left: auto !important;
    right: 0 !important;
    color: #D4AF37 !important;
    background: rgba(212, 175, 55, 0.25) !important;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.4) !important;
}

/* ============================================================================
   CTA Buttons - Gold Theme (阿拉伯金色主题)
   ============================================================================ */
.lang-ar .btn-hero,
.lang-ar .btn-cta {
    padding: 17px 34px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    letter-spacing: 0.3px !important;
    transition: all 0.3s ease !important;
}

.lang-ar .btn-primary,
.lang-ar .btn-hero.btn-primary {
    background: linear-gradient(135deg, #D4AF37 0%, #FFD700 100%) !important;
    color: #003366 !important;
    border: none !important;
}

.lang-ar .btn-primary::before {
    background: rgba(212, 175, 55, 0.15) !important;
}

.lang-ar .btn-primary:hover,
.lang-ar .btn-hero.btn-primary:hover {
    background: linear-gradient(135deg, #FFD700 0%, #D4AF37 100%) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 28px rgba(212, 175, 55, 0.4) !important;
}

.lang-ar .btn-secondary,
.lang-ar .btn-hero.btn-secondary {
    background: rgba(212, 175, 55, 0.15) !important;
    color: #fff !important;
    border: 2px solid rgba(212, 175, 55, 0.4) !important;
}

.lang-ar .btn-secondary:hover,
.lang-ar .btn-hero.btn-secondary:hover {
    background: rgba(212, 175, 55, 0.25) !important;
    border-color: rgba(212, 175, 55, 0.7) !important;
    transform: translateY(-3px) !important;
}

/* ============================================================================
   Technical Parameters Table - RTL & English Site Style
   技术参数表 - RTL布局 & 英文站点样式
   ============================================================================ */
.lang-ar .tech-params-table {
    direction: rtl;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

.lang-ar .tech-params-table th,
.lang-ar .tech-params-table td {
    text-align: right;
}

/* 应用英文站点样式：灰色指标背景，白色参数背景 */
.lang-ar .tech-params-table th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    color: #1a1a1a !important;
}

.lang-ar .tech-params-table td {
    background: #ffffff !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #666 !important;
}

.lang-ar .tech-params-table tr:hover {
    background: #f8f9fa !important;
}

.lang-ar .tech-params-table th::before {
    display: none !important;
}

/* ============================================================================
   Two Column Grid - RTL
   ============================================================================ */
.lang-ar .column-box {
    border-left: none;
    border-right: 5px solid #D4AF37;
}

.lang-ar .column-box::before {
    right: auto;
    left: 0;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
    transform: translate(-30%, -30%);
}

.lang-ar .column-box:hover {
    transform: translateX(-6px);
    border-right-width: 6px;
}

.lang-ar .column-box h3 .dashicons {
    color: #D4AF37;
    background: rgba(212, 175, 55, 0.15);
}

.lang-ar .column-box:hover h3 .dashicons {
    background: rgba(212, 175, 55, 0.25);
}

.lang-ar .column-box li {
    padding-left: 0;
    padding-right: 36px;
}

.lang-ar .column-box li:before {
    left: auto;
    right: 0;
    color: #D4AF37;
    background: rgba(212, 175, 55, 0.15);
}

/* ============================================================================
   Standards Grid - Gold Theme
   ============================================================================ */
.lang-ar .standard-badge::before {
    background: linear-gradient(90deg, #D4AF37 0%, #FFD700 100%);
}

.lang-ar .standard-badge::after {
    right: auto;
    left: 0;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
    transform: translate(-30%, 30%);
}

.lang-ar .standard-badge:hover {
    border-color: #D4AF37;
}

.lang-ar .standard-badge .dashicons {
    color: #D4AF37;
    background: rgba(212, 175, 55, 0.15);
}

.lang-ar .standard-badge:hover .dashicons {
    background: rgba(212, 175, 55, 0.25);
}

/* ============================================================================
   Info Cards - RTL & Gold Theme
   ============================================================================ */
.lang-ar .info-card::before {
    right: auto;
    left: 0;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
    transform: translate(-40%, -40%);
}

.lang-ar .info-card:hover {
    border-color: #D4AF37;
}

.lang-ar .info-card h3 .dashicons {
    color: #D4AF37;
    background: rgba(212, 175, 55, 0.15);
}

.lang-ar .info-card:hover h3 .dashicons {
    background: rgba(212, 175, 55, 0.25);
}

/* ============================================================================
   Quality Flow - Gold Theme
   ============================================================================ */
.lang-ar .quality-step {
    background: linear-gradient(135deg, #FFF8E7 0%, #FFF4D6 100%);
    border: 2px solid #FFD700;
}

.lang-ar .quality-step::before {
    background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.15) 0%, transparent 50%);
}

.lang-ar .quality-step:hover {
    border-color: #D4AF37;
}

.lang-ar .quality-step .step-number {
    background: linear-gradient(135deg, #D4AF37 0%, #B8941F 100%);
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.5);
}

.lang-ar .quality-step:hover .step-number {
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.6);
}

/* ============================================================================
   Support Cards - Gold Theme
   ============================================================================ */
.lang-ar .support-card::before {
    left: auto;
    right: 0;
    background: linear-gradient(180deg, #D4AF37 0%, #FFD700 100%);
}

.lang-ar .support-card::after {
    right: auto;
    left: 0;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
    transform: translate(-30%, 30%);
}

.lang-ar .support-card:hover {
    border-color: #D4AF37;
}

.lang-ar .support-card .dashicons {
    color: #D4AF37;
    background: rgba(212, 175, 55, 0.15);
}

.lang-ar .support-card:hover .dashicons {
    background: linear-gradient(135deg, #D4AF37 0%, #B8941F 100%);
    color: #fff;
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.5);
}

/* ============================================================================
   CTA Section - Gold & Deep Blue Theme - Optimized
   ============================================================================ */
.lang-ar .cta-section {
    background: linear-gradient(135deg, #003366 0%, #004080 100%);
    position: relative;
    overflow: hidden;
}

/* 优化的装饰性背景元素 - 更柔和的金色点缀 */
.lang-ar .cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.lang-ar .cta-section::after {
    content: '';
    position: absolute;
    bottom: -40%;
    right: -15%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.06) 0%, transparent 70%);
    border-radius: 50%;
}

/* 确保内容在装饰元素之上 */
.lang-ar .cta-section h2,
.lang-ar .cta-section p,
.lang-ar .cta-buttons {
    position: relative;
    z-index: 1;
}

.lang-ar .btn-cta-primary {
    background: linear-gradient(135deg, #D4AF37 0%, #FFD700 100%);
    color: #003366;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.lang-ar .btn-cta-primary:hover {
    background: linear-gradient(135deg, #FFD700 0%, #D4AF37 100%);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.lang-ar .btn-cta-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(212, 175, 55, 0.5);
    color: #FFD700;
    backdrop-filter: blur(10px);
}

.lang-ar .btn-cta-secondary:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: #FFD700;
    color: #FFD700;
}

/* ============================================================================
   Related Products - Gold Theme
   ============================================================================ */
.lang-ar .related-products h2::after {
    background: linear-gradient(90deg, #D4AF37 0%, #FFD700 100%);
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.4);
}

.lang-ar .related-product-card::before {
    background: linear-gradient(90deg, #D4AF37 0%, #FFD700 100%);
}

.lang-ar .related-product-card:hover {
    border-color: #D4AF37;
}

.lang-ar .related-product-card:hover .related-product-info h3 {
    color: #D4AF37;
    transform: translateX(-4px);
}

/* ============================================================================
   Modal - RTL & Gold Theme
   ============================================================================ */
.lang-ar .modal-content {
    direction: rtl;
    text-align: right;
}

.lang-ar .modal-close {
    right: auto;
    left: 24px;
}

.lang-ar .form-group {
    text-align: right;
}

.lang-ar .form-group input {
    text-align: right;
}

.lang-ar .form-group input:focus {
    border-color: #D4AF37;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.15);
}

.lang-ar .btn-submit {
    background: linear-gradient(135deg, #D4AF37, #B8941F);
}

.lang-ar .btn-submit:hover {
    background: linear-gradient(135deg, #FFD700, #D4AF37);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.5);
}

/* ============================================================================
   Responsive Adjustments for RTL - 响应式设计
   ============================================================================ */

/* Tablet - 平板设备 (1024px) */
@media (max-width: 1024px) {
    .lang-ar .product-hero {
        min-height: 500px !important;
        padding: 60px 30px !important;
    }
    
    .lang-ar .hero-content {
        gap: 50px !important;
    }
    
    .lang-ar .hero-info h1 {
        font-size: 40px !important;
    }
    
    .lang-ar .hero-image img {
        max-height: 400px !important;
    }
}

/* Tablet - 平板设备 (968px) */
@media (max-width: 968px) and (min-width: 769px) {
    .lang-ar .product-hero {
        min-height: 480px !important;
        padding: 55px 28px !important;
    }
    
    .lang-ar .hero-content {
        grid-template-columns: 52% 48% !important;
        gap: 40px !important;
    }
    
    .lang-ar .hero-image {
        order: 2 !important;
    }
    
    .lang-ar .hero-info {
        order: 1 !important;
        text-align: right !important;
    }
    
    .lang-ar .hero-cta {
        justify-content: flex-start !important;
    }
    
    .lang-ar .hero-info h1 {
        font-size: 34px !important;
    }
    
    .lang-ar .hero-excerpt {
        font-size: 16px !important;
    }
    
    .lang-ar .hero-image img {
        max-height: 350px !important;
    }
}

/* Mobile - 移动设备 (768px) */
@media (max-width: 768px) {
    .lang-ar .product-hero {
        min-height: 450px !important;
        padding: 50px 24px !important;
    }
    
    .lang-ar .hero-content {
        grid-template-columns: 55% 45% !important;
        gap: 30px !important;
    }
    
    .lang-ar .hero-image {
        order: 2 !important;
    }
    
    .lang-ar .hero-info {
        order: 1 !important;
        text-align: right !important;
    }
    
    .lang-ar .hero-cta {
        justify-content: flex-start !important;
    }
    
    .lang-ar .hero-info h1 {
        font-size: 28px !important;
    }
    
    .lang-ar .hero-excerpt {
        font-size: 15px !important;
    }
    
    .lang-ar .hero-image img {
        max-height: 320px !important;
        padding: 12px !important;
    }
    
    .lang-ar .key-specs-list {
        padding: 20px !important;
    }
    
    .lang-ar .key-specs-list h3 {
        font-size: 14px !important;
    }
    
    .lang-ar .key-specs-list li {
        font-size: 13px !important;
    }
    
    .lang-ar .btn-hero {
        padding: 13px 26px !important;
        font-size: 14px !important;
    }
}

/* Mobile - 移动设备 (640px) */
@media (max-width: 640px) {
    .lang-ar .product-hero {
        min-height: 400px !important;
        padding: 40px 16px !important;
    }
    
    .lang-ar .hero-content {
        grid-template-columns: 60% 40% !important;
        gap: 20px !important;
    }
    
    .lang-ar .hero-image {
        order: 2 !important;
    }
    
    .lang-ar .hero-info {
        order: 1 !important;
        text-align: right !important;
    }
    
    .lang-ar .modal-close {
        left: 10px !important;
    }
    
    .lang-ar .hero-info h1 {
        font-size: 22px !important;
        margin-bottom: 12px !important;
    }
    
    .lang-ar .hero-excerpt {
        font-size: 13px !important;
        margin-bottom: 16px !important;
    }
    
    .lang-ar .hero-image img {
        max-height: 200px !important;
        padding: 8px !important;
    }
    
    .lang-ar .key-specs-list {
        padding: 14px !important;
    }
    
    .lang-ar .key-specs-list h3 {
        font-size: 12px !important;
    }
    
    .lang-ar .key-specs-list li {
        font-size: 11px !important;
        padding-left: 0 !important;
        padding-right: 20px !important;
    }
    
    .lang-ar .btn-hero,
    .lang-ar .btn-cta {
        padding: 10px 20px !important;
        font-size: 12px !important;
    }
}

/* Mobile - 移动设备 (480px) */
@media (max-width: 480px) {
    .lang-ar .product-hero {
        min-height: 380px !important;
        padding: 35px 12px !important;
    }
    
    .lang-ar .hero-content {
        grid-template-columns: 62% 38% !important;
        gap: 15px !important;
    }
    
    .lang-ar .hero-info h1 {
        font-size: 18px !important;
    }
    
    .lang-ar .hero-excerpt {
        font-size: 12px !important;
    }
    
    .lang-ar .hero-image img {
        max-height: 160px !important;
        padding: 6px !important;
    }
    
    .lang-ar .key-specs-list {
        padding: 12px !important;
    }
    
    .lang-ar .key-specs-list h3 {
        font-size: 11px !important;
    }
    
    .lang-ar .key-specs-list li {
        font-size: 10px !important;
    }
    
    .lang-ar .btn-hero,
    .lang-ar .btn-cta {
        padding: 9px 18px !important;
        font-size: 11px !important;
    }
}

/* ============================================================================
   Print Styles - RTL - 打印样式
   ============================================================================ */
@media print {
    .lang-ar .product-detail-page {
        direction: rtl !important;
    }
    
    .lang-ar .product-hero {
        min-height: auto !important;
        padding: 2rem 1rem !important;
    }
    
    .lang-ar .btn-hero,
    .lang-ar .btn-cta {
        display: none !important;
    }
}
