/* ============================================
   Product Detail - Mobile First Design
   参考设计稿：白色背景、Sale徽章、USD标签、+按钮
   ============================================ */

/* 移动端商品详情 - 单列垂直布局 */
@media (max-width: 768px) {
    .product-detail-section {
        padding: 0;
        background: #fff;
    }
    
    .product-detail-container {
        display: block;
        max-width: 100%;
        padding: 0;
        gap: 0;
    }
    
    /* 图片区域 */
    .product-images-panel {
        position: relative;
        padding: 0;
        margin-bottom: 0;
    }
    
    .product-image-card {
        position: relative;
        min-height: 320px;
        background: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 16px;
    }
    
    .product-image-card .product-main-image {
        max-width: 100%;
        height: auto;
        max-height: 360px;
        object-fit: contain;
        object-position: center center;
        margin: 0 auto;
        display: block;
    }
    
    /* Sale 徽章 - 陶土色圆形，商品图左上角 */
    .product-sale-badge {
        position: absolute;
        top: 12px;
        left: 12px;
        width: 48px;
        height: 48px;
        min-width: 48px;
        min-height: 48px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #D17A5D;
        color: #fff;
        font-size: 12px;
        font-weight: 700;
        border-radius: 50%;
        z-index: 5;
    }
    
    .product-sale-badge.hidden {
        display: none;
    }
    
    /* 缩略图 - 左对齐 */
    .product-thumbnails {
        display: flex;
        gap: 12px;
        padding: 16px 16px 24px;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* 缩略图下方：分类面包屑 */
    .product-breadcrumb-mobile {
        padding: 12px 16px;
        padding-top: 0;
        background: #fff;
    }
    
    .product-breadcrumb-mobile .aaa-breadcrumb-inner {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 12px;
        font-weight: 700;
        color: #6b7280;
        text-transform: uppercase;
    }
    
    .product-breadcrumb-mobile .aaa-breadcrumb-cat {
        color: #2563eb;
        text-decoration: none;
    }
    
    .product-thumbnails .product-thumbnail {
        flex-shrink: 0;
        width: 72px;
        height: 72px;
        border: 2px solid #e5e5e5;
        border-radius: 4px;
        overflow: hidden;
        cursor: pointer;
        object-fit: cover;
    }
    
    .product-thumbnails .product-thumbnail.active {
        border-color: #999;
    }
    
    /* 商品信息区 */
    .product-info-panel {
        padding: 20px 16px 24px;
        border-top: 1px solid #e5e5e5;
    }
    
    /* 标题 + 分隔线 + 箭头 */
    .product-title-row {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 16px;
    }
    
    .product-title-mobile,
    #productTitleMobile {
        flex: 1;
        font-size: 18px;
        font-weight: 700;
        color: #555;
        line-height: 1.4;
        margin: 0;
    }
    
    .product-title-sep {
        width: 24px;
        height: 2px;
        background: #ddd;
        flex-shrink: 0;
    }
    
    .product-carousel-arrows {
        display: flex;
        gap: 4px;
    }
    
    .product-carousel-arrows button {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        border: 1px solid #ccc;
        background: #fff;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .product-carousel-arrows button svg {
        width: 16px;
        height: 16px;
        color: #666;
    }
    
    /* 移动端价格：结构与样式见 aaa-watches.css，此处略放大字号 */
    .product-price-mobile.aaa-product-cod-block {
        margin-bottom: 16px;
    }
    .product-price-mobile.aaa-product-cod-block .aaa-product-cod-line {
        font-size: 18px;
    }
    .product-price-mobile.aaa-product-cod-block .aaa-product-handling-fee {
        font-size: 18px;
    }
    
    /* 移动端隐藏重复标题 */
    .product-title-desktop-only {
        display: none !important;
    }
    
    /* 配送信息 - 灰色文字 */
    .product-shipping-mobile {
        font-size: 13px;
        color: #666;
        line-height: 1.8;
        margin-bottom: 20px;
    }
    
    .product-shipping-mobile .shipping-email {
        color: #e74c3c;
    }
    
    /* 数量 + 加入购物车 */
    .product-purchase-row {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 16px;
    }
    
    .product-quantity-mobile {
        display: flex;
        align-items: center;
        border: 1px solid #ddd;
        border-radius: 4px;
        overflow: hidden;
    }
    
    .product-quantity-mobile button {
        width: 40px;
        height: 40px;
        border: none;
        background: #f5f5f5;
        font-size: 18px;
        cursor: pointer;
        color: #333;
    }
    
    .product-quantity-mobile input {
        width: 48px;
        height: 40px;
        border: none;
        border-left: 1px solid #ddd;
        border-right: 1px solid #ddd;
        text-align: center;
        font-size: 16px;
    }
    
    .product-add-cart-mobile {
        flex: 1;
        background: #c45c3e;
        color: #fff;
        border: none;
        padding: 14px 20px;
        font-size: 14px;
        font-weight: 700;
        letter-spacing: 1px;
        border-radius: 4px;
        cursor: pointer;
    }
    
    /* 元数据：SKU, Categories, Tags - 虚线与文字间距统一紧凑 */
    .product-meta-mobile,
    #productMetaMobile {
        padding: 2px 0 2px;
        border-top: 1px dashed #ddd;
        font-weight: 600;
    }
    
    .product-meta-mobile .meta-line {
        padding: 2px 0;
        margin: 0;
        font-size: 13px;
        font-weight: 600;
        color: #6b7280;
        border-bottom: 1px dashed #eee;
        line-height: 1.4;
    }
    
    .product-meta-mobile .meta-line:last-child {
        border-bottom: none;
    }
    
    .product-meta-mobile .meta-link {
        color: #2563eb;
        text-decoration: none;
    }
    
    .product-meta-mobile .meta-link:hover {
        text-decoration: underline;
    }
    
    /* 社交分享 - 图标 */
    .product-social-share {
        display: flex;
        gap: 12px;
        padding: 8px 0 16px;
        border-top: 1px dashed #ddd;
    }
    
    .product-social-share a {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        border-radius: 50%;
        border: 1px solid #ddd;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #666;
        flex-shrink: 0;
    }
    
    .product-social-share a svg {
        width: 20px;
        height: 20px;
    }
    
    /* Related Products - 横向滚动 */
    .related-products-section.related-products-mobile {
        padding: 24px 16px;
        background: #fafafa;
    }
    
    .related-products-section.related-products-mobile .related-products-title {
        font-size: 16px;
        font-weight: 700;
        color: #333;
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-bottom: 16px;
    }
    
    .related-products-section.related-products-mobile .related-products-grid.related-products-scroll {
        display: flex;
        gap: 16px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
    }
    
    .related-products-section.related-products-mobile .related-product-card {
        flex-shrink: 0;
        width: 160px;
    }
    
    .related-products-section.related-products-mobile .related-product-image-wrap {
        position: relative;
        aspect-ratio: 1;
        background: #f5f5f5;
        border-radius: 4px;
        overflow: hidden;
    }
    
    .related-products-section.related-products-mobile .related-product-image-wrap img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .related-products-section.related-products-mobile .aaa-sale-badge {
        position: absolute;
        top: 8px;
        left: 8px;
        width: 46px;
        height: 46px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #D37353;
        color: #fff;
        font-size: 18px;
        border-radius: 50%;
    }
    
    .related-products-section.related-products-mobile .related-product-category {
        font-size: 11px;
        color: #999;
        text-transform: uppercase;
        margin-top: 8px;
    }
    
    .related-products-section.related-products-mobile .related-product-title {
        font-size: 13px;
        font-weight: 600;
        color: #2c3e50;
        margin: 4px 0;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .related-products-section.related-products-mobile .related-product-price {
        font-size: 13px;
    }
    
    .related-products-section.related-products-mobile .related-price-old {
        color: #999;
        text-decoration: line-through;
        margin-right: 6px;
    }
    
    .related-products-section.related-products-mobile .related-price {
        font-weight: 700;
        color: #000;
    }
    
    /* 移动端隐藏桌面描述区块 */
    .product-description-section {
        display: none !important;
    }
    
    /* 隐藏桌面端元素 */
    .product-detail-container .product-like-btn,
    .product-detail-container .product-badge,
    .product-detail-container .product-enlarge-btn,
    .product-detail-container .product-rating,
    .product-detail-container .product-limit,
    .product-detail-container .product-availability,
    .product-detail-container .product-additional-info,
    .product-detail-container .product-shipping-info,
    .product-detail-container .seller-info-card,
    .product-detail-container .product-color-selector,
    .product-detail-container .product-size-selector,
    .product-detail-container .quantity-banner-wrapper,
    .product-detail-container .product-add-to-cart-btn,
    .product-detail-container .discount-badge {
        display: none !important;
    }
    
    .product-detail-container .product-price-section {
        display: none !important;
    }
    
    .product-detail-container .product-quantity,
    .product-detail-container .product-subtotal {
        display: none !important;
    }
}

/* 桌面端隐藏移动端元素 */
@media (min-width: 769px) {
    .product-sale-badge {
        display: none !important;
    }
    
    .product-title-row,
    .product-breadcrumb-mobile,
    .product-price-mobile,
    .product-shipping-mobile,
    .product-purchase-row,
    .product-meta-mobile,
    .product-social-share {
        display: none !important;
    }
}
