/* 
 * Luredolls Ultimate Replica V3.8.19
 * OPTIMIZED LAYOUT & PILL BUTTON
 */

/* --- 1. 基础重置 --- */
.luredolls-pixel-wrapper {
    background: #e8e8e8 !important; /* 3. 背景颜色设置为 #e8e8e8 */
    width: 100% !important;
    display: block !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

.wd-page-content {
    min-height: 50vh !important;
    background-color: #e8e8e8 !important; /* 4. wd-page-content 同样设置 */
}

/* 1. 价格颜色强制黑色 */
.luredolls-pixel-wrapper .product-price-wrapper,
.luredolls-pixel-wrapper .product-price-wrapper .amount,
.luredolls-pixel-wrapper .product-price-wrapper ins .amount,
.luredolls-pixel-wrapper .product-price-wrapper .woocommerce-Price-amount {
    color: #000000 !important;
}

/* 1. 强制价格颜色为黑色 */
.product-price-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    font-size: 24px !important;
    font-weight: 600 !important;
    color: #000000 !important;
}
.product-price-wrapper .amount, 
.product-price-wrapper ins .amount,
.product-price-wrapper .woocommerce-Price-amount { 
    color: #000000 !important; 
}

.price-sale-badge {
    background: #000;
    color: #fff;
    padding: 3px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.custom-container { width: 100% !important; max-width: 1360px !important; margin: 0 auto !important; padding: 0 20px !important; box-sizing: border-box !important; }
.custom-container-narrow { width: 100% !important; max-width: 900px !important; margin: 0 auto !important; padding: 0 40px !important; box-sizing: border-box !important; }

/* --- 2. 核心布局 & 4. 左侧固定逻辑 --- */
.product-main-grid { 
    display: grid !important; 
    grid-template-columns: 50% 50% !important; 
    column-gap: 50px !important; 
    padding: 30px 0 !important; 
    align-items: start !important; /* 确保粘性起点对齐 */
}

.product-gallery-sticky { 
    position: sticky !important; 
    top: 30px !important; /* 固定在顶部 30px 处 */
    z-index: 10 !important;
    height: fit-content !important; /* 关键：高度由内容决定，允许右侧滚动 */
}

.luredolls-gallery-container { 
    display: grid !important; 
    grid-template-columns: repeat(4, 1fr) !important; 
    gap: 10px !important; 
}
.luredolls-gallery-container .gallery-item.main-feat { grid-column: span 4 !important; }
.luredolls-gallery-container img { width: 100% !important; height: auto !important; border-radius: 8px !important; display: block !important; }

/* --- 3. 购买区域 & 信任图 (2. 强制单行，不超出) --- */
.luredolls-pixel-wrapper .luredolls-custom-btn .product-form__submit,
.luredolls-pixel-wrapper .luredolls-custom-btn .single_add_to_cart_button {
    background-color: #e21b5a !important; 
    border: none !important;
    border-radius: 40px !important; /* 药丸形状 */
    color: #ffffff !important;
    font-family: inherit !important;
    text-transform: uppercase !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    height: auto !important;
    padding: 15px 30px !important;
    width: 100% !important;
    box-shadow: 0 5px 15px rgba(226, 27, 90, 0.3) !important;
    min-height: 70px !important;
    cursor: pointer !important;
    margin-bottom: 15px !important;
}

.luredolls-pixel-wrapper .luredolls-custom-btn .btn-line-1 {
    display: block !important;
    line-height: 1.1 !important;
    font-size: 20px !important;
    color: #ffffff !important;
    visibility: visible !important;
    font-weight: 800 !important; /* 特粗 */
    letter-spacing: 0.5px !important;
}

.luredolls-pixel-wrapper .luredolls-custom-btn .btn-line-2 {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    text-transform: none !important;
    margin-top: 4px !important;
    color: #ffffff !important;
    visibility: visible !important;
    gap: 6px !important;
    opacity: 0.95 !important;
}

.luredolls-trust-badges-v2 {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important; /* 禁止换行 */
    justify-content: space-between !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 25px 0 !important;
    width: 100% !important;
    overflow: hidden !important; /* 严禁溢出 */
}
.luredolls-trust-badges-v2 a {
    flex: 1 1 23% !important; /* 四个图标平分宽度 */
    max-width: 25% !important;
}
.luredolls-trust-badges-v2 img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
}

/* --- 4. 折叠面板全局样式 --- */
.luredolls-pixel-wrapper .product__accordion { border-top: 1px solid rgba(0,0,0,0.08); }
.luredolls-pixel-wrapper .product__accordion:last-child { border-bottom: 1px solid rgba(0,0,0,0.08); }
.luredolls-pixel-wrapper summary {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 15px 0 !important;
    cursor: pointer !important;
    list-style: none !important;
    width: 100% !important;
}
.luredolls-pixel-wrapper summary::-webkit-details-marker { display: none !important; }

.luredolls-pixel-wrapper .accordion__title { 
    font-size: 0.8rem !important;
    font-weight: 400 !important;
    margin: 0 !important; 
    color: #000 !important;
    display: inline-block !important;
    max-width: 100% !important;
    word-break: break-word !important;
    line-height: 1.4 !important;
}

.luredolls-pixel-wrapper .icon-caret { 
    width: 12px !important; 
    height: 12px !important; 
    flex-shrink: 0 !important;
    transition: transform 0.3s ease !important;
    margin-left: 10px !important;
}
.luredolls-pixel-wrapper details[open] .icon-caret { transform: rotate(180deg) !important; }

.luredolls-pixel-wrapper .accordion__content { padding: 5px 0 30px !important; font-size: 14px !important; line-height: 1.6 !important; color: #333 !important; }
.luredolls-pixel-wrapper .accordion__content img { max-width: 100% !important; height: auto !important; margin: 10px auto !important; display: block !important; }

/* --- 5. Expo 区域 (Shopify Structure) --- */
.pixel-expo-section { padding: 80px 0 !important; background: #f4f1f0 !important; }
.image-with-text__grid {
    display: flex !important;
    flex-direction: row-reverse !important; /* 文案左，图片右 */
    background: #e9e7e4 !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    align-items: stretch !important;
}
.image-with-text__media-item { flex: 1.2 !important; min-height: 400px !important; }
.image-with-text__media { height: 100% !important; position: relative !important; }
.image-with-text__media img { width: 100% !important; height: 100% !important; object-fit: cover !important; display: block !important; }

.image-with-text__text-item { 
    flex: 1 !important; 
    padding: 60px !important; 
    display: flex !important; 
    flex-direction: column !important; 
    justify-content: center !important; 
    text-align: left !important;
}
.image-with-text__heading { font-size: 28px !important; margin-bottom: 20px !important; text-transform: uppercase !important; font-weight: 800 !important; }
.image-with-text__text { font-size: 16px !important; margin-bottom: 30px !important; line-height: 1.6 !important; color: #555 !important; }
.button--secondary { display: inline-block; padding: 12px 35px; border: 1px solid #999; border-radius: 25px; text-decoration: none; color: #333; width: fit-content; font-size: 14px; transition: all 0.3s; }
.button--secondary:hover { background: #333; color: #fff; border-color: #333; }

/* --- 6. FAQ 区域 --- */
.pixel-faq-section-v4 { padding: 80px 0 !important; background: transparent !important; }
.faq-container-wrapper { background: #e9e7e4 !important; border-radius: 20px !important; padding: 60px 40px !important; }

/* --- 6.1 独立图片画廊区域 --- */
.pixel-image-gallery-v2 { padding: 60px 0 !important; background: transparent !important; }
.faq-image-gallery { display: flex; flex-direction: column; gap: 25px; align-items: center; width: 100%; }
.faq-gallery-item { width: 100%; max-width: 900px; border-radius: 15px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.faq-gallery-item img { width: 100%; height: auto; display: block; }

.luredolls-pixel-wrapper .luredolls-custom-btn .product-form__submit {
    background-color: #e21b5a !important; 
    border: none !important;
    border-radius: 40px !important;
    color: #ffffff !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 15px 30px !important;
    width: 100% !important;
    box-shadow: 0 5px 15px rgba(226, 27, 90, 0.3) !important;
    min-height: 70px !important;
    cursor: pointer !important;
}

.luredolls-pixel-wrapper .btn-line-1 {
    font-size: 20px !important;
    font-weight: 800 !important;
    display: block !important;
    line-height: 1.2 !important;
}

.luredolls-pixel-wrapper .btn-line-2 {
    font-size: 14px !important;
    font-weight: 500 !important;
    display: block !important;
    opacity: 0.9 !important;
    margin-top: 4px !important;
}

/* 隐藏 WooCommerce 原始的单行按钮，只保留我们注入的两行自定义按钮 */
.luredolls-pixel-wrapper .cart .single_add_to_cart_button:not(.product-form__submit) {
    display: none !important;
}

/* 确保变体选择器（尺寸/颜色）与按钮之间有美观的间距 */
.luredolls-pixel-wrapper .variations_form {
    margin-bottom: 20px !important;
    background: transparent !important;
}

.luredolls-pixel-wrapper .variations td.label {
    padding-bottom: 10px !important;
    font-weight: 600 !important;
    color: #333 !important;
}

/* 修复自定义按钮点击效果 */
.luredolls-pixel-wrapper .luredolls-custom-btn .product-form__submit {
    cursor: pointer !important;
    width: 100% !important;
    margin-bottom: 0 !important;
}

/* --- 8. 全局悬浮视频 (Floating Video) --- */
.floating-video-minimized {
    position: fixed !important;
    bottom: 30px !important;
    left: 30px !important; /* Move to left */
    width: 60px !important;
    height: 60px !important;
    background: #e21b5a !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 9999 !important;
    box-shadow: 0 4px 15px rgba(226, 27, 90, 0.4) !important;
    transition: all 0.3s ease !important;
}

.floating-video-minimized::after {
    content: '';
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 15px solid #fff;
    margin-left: 5px;
}

.floating-video-minimized:hover { transform: scale(1.1); background: #c41249 !important; }

.floating-video-wrapper {
    position: fixed !important;
    bottom: 30px !important;
    left: 30px !important; /* Move to left */
    width: 220px !important;
    height: 330px !important;
    background: #000 !important;
    border-radius: 15px !important;
    overflow: hidden !important;
    z-index: 9999 !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important;
    display: none;
}

.floating-video-controls-top {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    z-index: 10 !important;
}

.floating-close-btn, .floating-mute-btn {
    width: 42px !important; /* 宽度保持一样 */
    height: 42px !important; /* 高度保持一样 */
    background: rgba(0,0,0,0.6) !important;
    border: 1px solid rgba(255,255,255,0.3) !important;
    border-radius: 50% !important;
    color: #fff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
}

.floating-close-btn:hover, .floating-mute-btn:hover {
    background: rgba(226, 27, 90, 0.8) !important;
    transform: scale(1.1) !important;
}

.floating-close-btn {
    width: 42px !important;
    height: 42px !important;
    font-size: 22px !important;
    line-height: 1 !important;
}

.floating-mute-btn svg {
    width: 18px !important;
    height: 18px !important;
    display: block;
}

.floating-video-wrapper video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* 隐藏假发定制选项和数量选择器 - Modified by Antigravity */
.product-buy-section .variation.customyourdollswig,
.product-buy-section .quantity {
    display: none !important;
}
