/* ============================================
   OraTheme - 产品详情页样式
   简洁大气风格，参考 DJI 官网设计
   主色调：医疗蓝 #0071e3
   ============================================ */

/* ============================================
   Breadcrumb
   ============================================ */
.ora-breadcrumb {
    padding: 12px 0;
    font-size: 14px;
    color: #6e6e73;
    background: #f5f5f7;
    border-bottom: 1px solid #e5e5e5;
}

.ora-breadcrumb a {
    color: #86868b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ora-breadcrumb a:hover {
    color: #0071e3;
}

.ora-breadcrumb .separator {
    margin: 0 8px;
    color: #d2d2d7;
}

/* ============================================
   Product Main Section
   ============================================ */
.ora-product-main {
    padding: 60px 0;
    background: #ffffff;
}

.ora-product-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    align-items: start;
}

.ora-product-gallery {
    flex: 1;
    max-width: 600px;
}

.ora-product-info {
    flex: 1;
}

/* ============================================
   Product Gallery
   ============================================ */
.ora-product-gallery {
    position: sticky;
    top: 100px;
}

.ora-gallery-main {
    position: relative;
    background: #f5f5f7;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ora-gallery-main img {
    width: 100%;
    height: auto;
    object-fit: contain;
}
    display: flex;
    align-items: center;
    justify-content: center;
}

.ora-gallery-main img.ora-main-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 40px;
}

/* Sale Badge */
.ora-sale-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #0071e3;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 980px;
    font-size: 14px;
    font-weight: 600;
    z-index: 10;
}

/* Gallery Navigation */
.ora-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1d1d1f;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.ora-gallery-prev {
    left: 16px;
}

.ora-gallery-next {
    right: 16px;
}

.ora-gallery-nav:hover {
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-50%) scale(1.05);
}

/* Gallery Thumbs */
.ora-gallery-thumbs {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.ora-gallery-thumbs::-webkit-scrollbar {
    height: 4px;
}

.ora-gallery-thumbs::-webkit-scrollbar-thumb {
    background: #d2d2d7;
    border-radius: 2px;
}

.ora-thumb {
    flex: 0 0 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    background: #fbfbfd;
}

.ora-thumb.active {
    border-color: #0071e3;
}

.ora-thumb:hover {
    border-color: #0071e3;
}

.ora-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

/* ============================================
   Product Info
   ============================================ */
.ora-product-info {
    padding-top: 20px;
}

/* Category */
.ora-product-category {
    font-size: 13px;
    color: #86868b;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ora-product-category a {
    color: #0071e3;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ora-product-category a:hover {
    color: #0077ed;
}

/* Title */
.ora-product-title {
    font-size: 40px;
    font-weight: 700;
    color: #1d1d1f;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

/* Rating */
.ora-product-rating {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.ora-stars {
    display: flex;
    gap: 2px;
}

.ora-star {
    font-size: 18px;
    line-height: 1;
}

.ora-star.filled {
    color: #0071e3;
}

.ora-star.half {
    color: #0071e3;
    opacity: 0.5;
}

.ora-star.empty {
    color: #d2d2d7;
}

.ora-rating-count {
    font-size: 14px;
    color: #86868b;
}

/* Price */
.ora-product-price {
    margin-bottom: 32px;
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.ora-price-current {
    font-size: 36px;
    font-weight: 700;
    color: #0071e3;
    letter-spacing: -0.02em;
}

.ora-price-original {
    font-size: 20px;
    color: #86868b;
    text-decoration: line-through;
}

.ora-price-save {
    font-size: 14px;
    color: #34c759;
    font-weight: 600;
    background: #f0faf3;
    padding: 4px 12px;
    border-radius: 980px;
}

/* Short Description */
.ora-product-short-desc {
    font-size: 17px;
    line-height: 1.8;
    color: #6e6e73;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid #d2d2d7;
}

/* Stock Status */
.ora-stock-status {
    margin-bottom: 32px;
}

.ora-stock {
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ora-stock.in-stock {
    color: #34c759;
}

.ora-stock.on-backorder {
    color: #ff9500;
}

.ora-stock.out-of-stock {
    color: #ff3b30;
}

/* Add to Cart */
.ora-cart-section {
    margin-bottom: 40px;
}

.ora-cart-section form.cart {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ora-cart-section .quantity {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid #d2d2d7;
    border-radius: 980px;
    overflow: hidden;
    width: fit-content;
}

.ora-cart-section .quantity input.qty {
    width: 60px;
    height: 48px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    color: #1d1d1f;
    background: transparent;
    outline: none;
    -moz-appearance: textfield;
}

.ora-cart-section .quantity input.qty::-webkit-outer-spin-button,
.ora-cart-section .quantity input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.ora-cart-section .quantity .minus,
.ora-cart-section .quantity .plus {
    width: 48px;
    height: 48px;
    border: none;
    background: #f5f5f7;
    color: #1d1d1f;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.ora-cart-section .quantity .minus:hover,
.ora-cart-section .quantity .plus:hover {
    background: #e8e8ed;
}

.ora-cart-section .single_add_to_cart_button {
    height: 56px;
    padding: 0 48px;
    background: #0071e3;
    color: #ffffff;
    border: none;
    border-radius: 980px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    max-width: 400px;
}

.ora-cart-section .single_add_to_cart_button:hover {
    background: #0077ed;
    transform: scale(1.02);
    box-shadow: 0 4px 16px rgba(0, 113, 227, 0.3);
}

.ora-cart-section .single_add_to_cart_button:disabled {
    background: #d2d2d7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Trust Badges */
.ora-trust-badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding-top: 32px;
    border-top: 1px solid #d2d2d7;
}

.ora-trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    background: #fbfbfd;
    border-radius: 12px;
    text-align: center;
}

.ora-trust-item svg {
    color: #0071e3;
}

.ora-trust-item span {
    font-size: 13px;
    color: #6e6e73;
    font-weight: 500;
}

/* ============================================
   Product Details Tabs
   ============================================ */
.ora-product-details {
    padding: 80px 0;
    background: #fbfbfd;
}

.ora-tabs {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
}

.ora-tabs-nav {
    display: flex;
    border-bottom: 1px solid #d2d2d7;
    background: #fbfbfd;
}

.ora-tab-btn {
    flex: 1;
    padding: 20px 32px;
    border: none;
    background: transparent;
    font-size: 15px;
    font-weight: 500;
    color: #86868b;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.ora-tab-btn.active {
    color: #0071e3;
    font-weight: 600;
}

.ora-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #0071e3;
}

.ora-tab-btn:hover {
    color: #0071e3;
    background: rgba(0, 113, 227, 0.05);
}

.ora-tabs-content {
    padding: 48px;
}

.ora-tab-panel {
    display: none;
}

.ora-tab-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Description */
.ora-product-description {
    font-size: 17px;
    line-height: 1.8;
    color: #6e6e73;
}

.ora-product-description h2,
.ora-product-description h3 {
    font-size: 28px;
    font-weight: 700;
    color: #1d1d1f;
    margin: 40px 0 20px;
    letter-spacing: -0.02em;
}

.ora-product-description p {
    margin-bottom: 20px;
}

.ora-product-description img {
    border-radius: 12px;
    margin: 32px 0;
}

/* Specifications Table */
.ora-specs-table {
    width: 100%;
    border-collapse: collapse;
}

.ora-specs-table tr {
    border-bottom: 1px solid #f5f5f7;
}

.ora-specs-table tr:last-child {
    border-bottom: none;
}

.ora-specs-table th,
.ora-specs-table td {
    padding: 16px 20px;
    text-align: left;
    font-size: 15px;
}

.ora-specs-table th {
    width: 30%;
    font-weight: 600;
    color: #1d1d1f;
    background: #fbfbfd;
}

.ora-specs-table td {
    color: #6e6e73;
}

/* No Content */
.ora-no-content {
    text-align: center;
    padding: 60px 20px;
    color: #86868b;
    font-size: 15px;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .ora-product-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .ora-product-gallery {
        position: static;
    }
    
    .ora-product-title {
        font-size: 32px;
    }
    
    .ora-product-price .ora-price-current {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .ora-product-main {
        padding: 40px 0;
    }
    
    .ora-product-grid {
        gap: 32px;
    }
    
    .ora-product-title {
        font-size: 26px;
    }
    
    .ora-product-price .ora-price-current {
        font-size: 24px;
    }
    
    .ora-product-price .ora-price-original {
        font-size: 18px;
    }
    
    .ora-trust-badges {
        grid-template-columns: 1fr;
    }
    
    .ora-tabs-nav {
        flex-direction: column;
    }
    
    .ora-tab-btn {
        text-align: left;
    }
    
    .ora-tab-btn.active::after {
        left: 20px;
        right: auto;
        width: 40px;
    }
    
    .ora-tabs-content {
        padding: 32px 24px;
    }
    
    .ora-gallery-thumbs {
        gap: 8px;
    }
    
    .ora-thumb {
        flex: 0 0 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .ora-product-title {
        font-size: 22px;
    }
    
    .ora-product-price .ora-price-current {
        font-size: 20px;
    }
    
    .ora-cart-section .single_add_to_cart_button {
        max-width: 100%;
    }
}
