/**
 * WooCommerce Styles - 完全按照截图1:1复刻
 */

/* ========================================
   0. 产品图片画廊 - 带左右箭头
   ======================================== */
.woocommerce-product-gallery {
    position: relative;
    margin-bottom: 2rem;
}

.woocommerce-product-gallery__wrapper {
    position: relative;
}

.woocommerce-product-gallery__image {
    margin-bottom: 0;
}

.woocommerce-product-gallery__image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

/* 图片切换箭头 */
.woocommerce-product-gallery::before,
.woocommerce-product-gallery::after {
    content: '❯';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.8rem;
    z-index: 10;
    transition: all 0.3s ease;
}

.woocommerce-product-gallery::before {
    content: '❮';
    left: 1rem;
}

.woocommerce-product-gallery::after {
    right: 1rem;
}

.woocommerce-product-gallery::before:hover,
.woocommerce-product-gallery::after:hover {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* ========================================
   1. 库存紧迫感横幅 - **RUNNING LOW ON STOCK**
   ======================================== */
.stock-urgency-banner {
    background: white;
    border: 2px solid black;
    color: black;
    text-align: center;
    padding: 1rem 2rem;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* ========================================
   2. 产品评分 - 星级 + 100+ reviews
   ======================================== */
.product-rating-wrapper {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.star-rating-container {
    display: flex;
    gap: 0.2rem;
}

.star {
    font-size: 2rem;
    line-height: 1;
}

.star-full {
    color: #FFC107;
}

.star-half {
    color: #FFC107;
    position: relative;
}

.star-half::after {
    content: '★';
    position: absolute;
    left: 0;
    width: 50%;
    overflow: hidden;
    color: #E0E0E0;
}

.star-empty {
    color: #E0E0E0;
}

.review-count {
    font-size: 1.4rem;
    color: #666;
}

/* ========================================
   3. 产品标题
   ======================================== */
.product-title {
    font-size: 3.2rem;
    font-weight: 700;
    margin: 0 0 1.5rem 0;
    line-height: 1.2;
}

/* ========================================
   4. 产品价格 - $49.99 $69.99 SAVE 28%
   ======================================== */
.product-price-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.price-sale {
    font-size: 3.2rem;
    font-weight: 700;
    color: #A7C7E7;
}

.price-regular {
    font-size: 2.4rem;
    color: #999;
    text-decoration: line-through;
}

.save-badge {
    background: #4CAF50;
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 4px;
    font-size: 1.3rem;
    font-weight: 700;
}

/* ========================================
   5. Emoji 好处点
   ======================================== */
.emoji-benefits-list {
    margin-bottom: 2rem;
}

.emoji-benefit-item {
    font-size: 1.5rem;
    line-height: 2;
    margin-bottom: 0.5rem;
}

/* ========================================
   6. 变体选择器 (Size/Color Pills)
   ======================================== */
.variations_form .variations {
    margin-bottom: 2rem;
}

.variations_form .variations .label {
    display: block;
    font-weight: 600;
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
}

.variations_form .variations .value {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Pills 样式 */
.variations_form .variations select {
    display: none;
}

.variation-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.variation-pill {
    background: white;
    border: 1px solid #ddd;
    border-radius: 50px;
    padding: 1rem 2rem;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.variation-pill:hover {
    border-color: #A7C7E7;
}

.variation-pill.selected {
    background: black;
    color: white;
    border-color: black;
}

.variation-pill.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* ========================================
   7. BUNDLE & SAVE 区域
   ======================================== */
.bundle-save-section {
    margin: 2rem 0;
    padding: 2rem 0;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
}

.bundle-save-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.bundle-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bundle-option {
    background: white;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bundle-option:hover {
    border-color: #A7C7E7;
}

.bundle-option.selected {
    border-color: #4CAF50;
    background: #f0f9f0;
}

.bundle-option-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.bundle-radio {
    width: 20px;
    height: 20px;
}

.bundle-info {
    display: flex;
    flex-direction: column;
}

.bundle-quantity {
    font-size: 1.6rem;
    font-weight: 700;
}

.bundle-savings {
    font-size: 1.3rem;
    color: #666;
}

.bundle-price {
    font-size: 2rem;
    font-weight: 700;
}

/* ========================================
   8. 数量选择器
   ======================================== */
.quantity {
    margin-bottom: 1.5rem;
}

.quantity input[type="number"] {
    width: 100%;
    padding: 1rem;
    font-size: 1.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* ========================================
   9. ADD TO CART 按钮
   ======================================== */
.single_add_to_cart_button {
    width: 100%;
    background: #A7C7E7;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 1.5rem 2rem;
    font-size: 1.6rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.single_add_to_cart_button:hover {
    background: #95b5d5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(167, 199, 231, 0.3);
}

/* ========================================
   10. 支付选项
   ======================================== */
.payment-options-wrapper {
    margin-bottom: 2rem;
}

.google-pay-button {
    width: 100%;
    background: black;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 1.5rem 2rem;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    margin-bottom: 1rem;
}

.google-pay-button:hover {
    background: #333;
}

.gpay-text {
    font-size: 1.6rem;
}

.more-payment-link {
    display: block;
    text-align: center;
    font-size: 1.4rem;
    color: #666;
    text-decoration: underline;
}

/* ========================================
   11. 信任徽章
   ======================================== */
.trust-badges-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 2rem 0;
    padding: 2rem 0;
    border-top: 1px solid #e5e5e5;
}

.trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
}

.trust-badge svg {
    margin-bottom: 0.5rem;
}

.badge-text {
    display: flex;
    flex-direction: column;
    font-size: 1.3rem;
}

.badge-text strong {
    font-weight: 700;
}

.badge-text span {
    color: #666;
}

/* ========================================
   12. 配送时间线
   ======================================== */
.delivery-timeline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.step-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-step-active .step-icon {
    background: black;
}

.step-icon svg {
    stroke: white;
}

.step-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 1.2rem;
    text-align: center;
}

.step-text strong {
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.step-text span {
    color: #666;
}

.timeline-line {
    flex: 1;
    height: 2px;
    background: #e5e5e5;
    margin: 0 1rem;
}

/* ========================================
   13. 产品描述区域
   ======================================== */
.woocommerce-Tabs-panel {
    padding: 3rem 0;
}

.woocommerce-Tabs-panel h2 {
    font-size: 3.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
}

.woocommerce-Tabs-panel img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem 0;
}

/* ========================================
   14. FAQ 手风琴
   ======================================== */
.woocommerce-accordion {
    margin: 3rem 0;
}

.accordion-item {
    border-bottom: 1px solid #e5e5e5;
}

.accordion-header {
    padding: 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 1.6rem;
    font-weight: 600;
}

.accordion-header::before {
    content: '☑';
    margin-right: 1rem;
    font-size: 2rem;
}

.accordion-header::after {
    content: '❯';
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-header::after {
    transform: rotate(90deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-item.active .accordion-content {
    max-height: 500px;
    padding-bottom: 1.5rem;
}

/* ========================================
   移动端响应式
   ======================================== */
@media (max-width: 749px) {
    .product-title {
        font-size: 2.4rem;
    }
    
    .price-sale {
        font-size: 2.4rem;
    }
    
    .price-regular {
        font-size: 1.8rem;
    }
    
    .trust-badges-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .delivery-timeline {
        flex-direction: column;
        gap: 1rem;
    }
    
    .timeline-line {
        width: 2px;
        height: 30px;
        margin: 0.5rem 0;
    }
}
