/* Get Look 前端样式 */

/* 容器样式 - 确保全宽 */
.get-look-container {
    position: relative;
    width: 100vw;
    max-width: none;
    margin: 0;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow: visible; /* 允许内容完整显示 */
    border-radius: 0;
    /* 移除line-height: 0，让容器高度自然适应内容 */
}

/* 背景区域 - 使用img标签确保高度自适应 */
.get-look-background {
    position: relative;
    width: 100%;
    display: block;
    background: #f5f5f5; /* 在图片加载前显示背景色 */
    /* 移除所有可能干扰图片自然高度的样式 */
}

.get-look-background-image {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
    /* 确保图片能够正确撑起容器 */
    vertical-align: top;
    border: 0;
    margin: 0;
    padding: 0;
}

/* 响应式图片控制 */
/* 桌面端：显示桌面图片，隐藏手机图片 */
.get-look-background-image.desktop-image {
    display: block;
}

.get-look-background-image.mobile-image {
    display: none;
}

/* 移动端：优先显示手机图片，如果没有则显示桌面图片 */
@media (max-width: 768px) {
    /* 如果同时存在桌面和手机图片，隐藏桌面图片 */
    .get-look-background .get-look-background-image.desktop-image {
        display: none;
    }
    
    .get-look-background .get-look-background-image.mobile-image {
        display: block;
    }
    
    /* 如果只有桌面图片（没有手机图片），则显示桌面图片 */
    .get-look-background .get-look-background-image.desktop-image:only-child {
        display: block;
    }
}

/* 当没有图片时的占位 */
.get-look-background.no-image {
    min-height: 400px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 内容区域 - 绝对定位在背景图上 */
.get-look-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    color: #333;
    max-width: 400px;
    text-align: center;
    padding: 20px;
    pointer-events: none; /* 允许点击穿透到下层 */
    line-height: normal; /* 恢复正常行高 */
}

/* 位置类 - 桌面端 */
.get-look-content.top-left { top: 20px; left: 20px; transform: translate(0, 0); }
.get-look-content.top-center { top: 20px; left: 50%; transform: translate(-50%, 0); }
.get-look-content.top-right { top: 20px; right: 20px; transform: translate(0, 0); }
.get-look-content.center-left { top: 50%; left: 20px; transform: translate(0, -50%); }
.get-look-content.center-center { top: 50%; left: 50%; transform: translate(-50%, -50%); }
.get-look-content.center-right { top: 50%; right: 20px; transform: translate(0, -50%); }
.get-look-content.bottom-left { bottom: 20px; left: 20px; transform: translate(0, 0); }
.get-look-content.bottom-center { bottom: 20px; left: 50%; transform: translate(-50%, 0); }
.get-look-content.bottom-right { bottom: 20px; right: 20px; transform: translate(0, 0); }

/* 文字对齐类 */
.get-look-content.text-left { text-align: left; }
.get-look-content.text-center { text-align: center; }
.get-look-content.text-right { text-align: right; }

/* 移动端位置类 */
@media (max-width: 768px) {
    .get-look-content.mobile-top-left { top: 15px !important; left: 15px !important; transform: translate(0, 0) !important; }
    .get-look-content.mobile-top-center { top: 15px !important; left: 50% !important; transform: translate(-50%, 0) !important; }
    .get-look-content.mobile-top-right { top: 15px !important; right: 15px !important; left: auto !important; transform: translate(0, 0) !important; }
    .get-look-content.mobile-center-left { top: 50% !important; left: 15px !important; transform: translate(0, -50%) !important; }
    .get-look-content.mobile-center-center { top: 50% !important; left: 50% !important; transform: translate(-50%, -50%) !important; }
    .get-look-content.mobile-center-right { top: 50% !important; right: 15px !important; left: auto !important; transform: translate(0, -50%) !important; }
    .get-look-content.mobile-bottom-left { bottom: 15px !important; left: 15px !important; top: auto !important; transform: translate(0, 0) !important; }
    .get-look-content.mobile-bottom-center { bottom: 15px !important; left: 50% !important; top: auto !important; transform: translate(-50%, 0) !important; }
    .get-look-content.mobile-bottom-right { bottom: 15px !important; right: 15px !important; left: auto !important; top: auto !important; transform: translate(0, 0) !important; }
    
    /* 移动端文字对齐 */
    .get-look-content.mobile-text-left { text-align: left !important; }
    .get-look-content.mobile-text-center { text-align: center !important; }
    .get-look-content.mobile-text-right { text-align: right !important; }
}

.get-look-content > * {
    pointer-events: auto; /* 恢复内容元素的点击事件 */
}

/* 确保内容在背景图片上方 */
.get-look-background {
    position: relative;
}

.get-look-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    line-height: 1.2;
    color: inherit;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5), 
                 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.get-look-subtitle {
    font-size: 1.1rem;
    line-height: 1.5;
    margin: 0 0 25px 0;
    color: inherit;
    opacity: 0.9;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4), 
                 1px 1px 1px rgba(0, 0, 0, 0.2);
}

.get-look-external-button {
    display: inline-block;
    padding: 12px 24px;
    background: transparent;
    border: 1px solid #000;
    color: #000;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border-radius: 0;
}

.get-look-external-button:hover {
    background: #000;
    color: #fff;
    text-decoration: none;
}

/* GET THE LOOK 按钮 - 左下角位置 */
.get-look-trigger {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 15;
    pointer-events: auto;
    /* 初始状态：隐藏在左侧 */
    transform: translateX(-120px);
    opacity: 0;
}

/* 进入视窗后的可见状态 */
.get-look-trigger.animate-in {
    animation: slideInFromLeft 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.get-look-trigger:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

/* 已动画按钮的hover效果 */
.get-look-trigger.animate-in:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.get-look-trigger svg {
    width: 18px;
    height: 18px;
    color: #333;
}

/* 弹窗样式 */
.get-look-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.get-look-popup.show {
    display: flex;
    opacity: 1;
}

.get-look-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.get-look-popup-content {
    position: absolute;
    right: 0;
    top: 0;
    width: 450px;
    height: 100vh;
    background: #fff;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.get-look-popup.show .get-look-popup-content {
    transform: translateX(0);
}

.get-look-popup-header {
    padding: 10px 25px;
    border-bottom: 1px solid #e1e1e1;
    background: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.get-look-popup-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.get-look-popup-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.get-look-popup-close:hover {
    color: #333;
}

/* 产品网格 - 使用WooCommerce原生样式 */
.get-look-products-grid {
    padding: 25px;
    flex: 1;
}

/* 确保WooCommerce产品在弹窗中正确显示 */
.get-look-popup .woocommerce,
.get-look-popup .get-look-woocommerce {
    width: 100% !important;
    max-width: none !important;
}

.get-look-popup ul.products,
.get-look-popup ul.get-look-products {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    grid-column-gap: 15px !important;
    grid-row-gap: 15px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    box-shadow: none !important;
}

.get-look-popup ul.products li.product,
.get-look-popup ul.get-look-products li.product {
    display: flex !important;
    flex-direction: column !important;
    background: transparent !important;
    border: none !important;
    border-radius: var(--theme-border-radius, 3px) !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    isolation: isolate !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    width: auto !important;
    float: none !important;
}

.get-look-popup ul.products li.product:hover,
.get-look-popup ul.get-look-products li.product:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
}

.get-look-popup ul.products li.product a,
.get-look-popup ul.get-look-products li.product a,
.get-look-popup ul.products li.product .woocommerce-loop-product__link,
.get-look-popup ul.get-look-products li.product .woocommerce-loop-product__link {
    display: flex !important;
    flex-direction: column !important;
    text-decoration: none !important;
    color: inherit !important;
    height: 100% !important;
}

.get-look-popup ul.products li.product a:hover,
.get-look-popup ul.get-look-products li.product a:hover {
    text-decoration: none !important;
}

.get-look-popup ul.products li.product img,
.get-look-popup ul.get-look-products li.product img,
.get-look-popup ul.products li.product .attachment-woocommerce_thumbnail,
.get-look-popup ul.get-look-products li.product .attachment-woocommerce_thumbnail {
    object-fit: cover !important;
    border-radius: var(--theme-border-radius, 3px) !important;
    margin-bottom: 8px !important;
    transition: transform 0.3s ease !important;
    display: block !important;
}

.get-look-popup ul.products li.product:hover img,
.get-look-popup ul.get-look-products li.product:hover img {
    transform: scale(1.03) !important;
}

.get-look-popup ul.products li.product .woocommerce-loop-product__title,
.get-look-popup ul.get-look-products li.product .woocommerce-loop-product__title,
.get-look-popup ul.products li.product h2,
.get-look-popup ul.get-look-products li.product h2 {
    font-size: 12px !important;
    font-weight: 600 !important;
    margin: 0 0 6px 0 !important;
    line-height: 1.2 !important;
    color: var(--theme-text-color, #333) !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    text-align: left !important;
}

.get-look-popup ul.products li.product .price,
.get-look-popup ul.get-look-products li.product .price {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: var(--theme-text-color, #333) !important;
    margin: 0 !important;
    margin-top: auto !important;
    text-align: left !important;
    display: block !important;
}

.get-look-popup ul.products li.product .price .woocommerce-Price-amount {
    font-weight: inherit;
}

.get-look-popup ul.products li.product .price .sale-price {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    column-gap: 5px;
    text-decoration: inherit;
}

.get-look-popup ul.products li.product .price del {
    order: 2;
    font-size: 80%;
    opacity: 0.6;
    margin-right: 5px;
}

/* 产品徽章样式 */
.get-look-popup ul.products li.product .onsale,
.get-look-popup ul.products li.product .out-of-stock-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    min-width: 45px;
    padding: 4px 8px;
    border-radius: 0;
    text-align: center;
    color: #fff;
    background-color: var(--theme-palette-color-1, #ff6b35);
    font-size: 11px;
    font-weight: 600;
}

.get-look-popup ul.products li.product .out-of-stock-badge {
    background-color: #999;
}

/* 隐藏不需要的WooCommerce元素 */
.get-look-popup .star-rating,
.get-look-popup .add_to_cart_button,
.get-look-popup .added_to_cart,
.get-look-popup .woocommerce-loop-rating,
.get-look-popup .button,
.get-look-popup .onsale {
    display: none !important;
}

/* 确保产品链接正确显示 */
.get-look-popup ul.products li.product a,
.get-look-popup ul.get-look-products li.product a {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* 重置主题可能的冲突样式 */
.get-look-popup ul.products,
.get-look-popup ul.get-look-products {
    --shop-columns: none !important;
    columns: auto !important;
    column-count: auto !important;
}

/* 移动端适配 */
@media (max-width: 768px) {
    /* 容器保持全宽 */
    .get-look-container {
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        width: 100vw;
        overflow: visible; /* 移动端也允许完整显示 */
    }
    
    /* 背景图片移动端优化 */
    .get-look-background {
        overflow: visible; /* 确保图片不被裁剪 */
    }
    
    .get-look-background-image {
        min-height: 200px; /* 降低最小高度 */
        /* 移除object-fit让图片自然显示 */
    }
    
    /* 没有图片时的最小高度 */
    .get-look-background.no-image {
        min-height: 300px;
    }
    
    /* 内容调整 */
    .get-look-content {
        max-width: 280px;
        padding: 15px;
    }
    
    .get-look-title {
        font-size: 1.8rem;
    }
    
    .get-look-subtitle {
        font-size: 1rem;
    }
    
    /* 移动端按钮位置调整和动画 */
    .get-look-trigger {
        bottom: 20px;
        left: 20px;
        padding: 10px 16px;
        font-size: 12px;
        /* 移动端初始状态 */
        transform: translateX(-100px);
        opacity: 0;
    }
    
    .get-look-trigger.animate-in:hover {
        background: rgba(255, 255, 255, 1);
        transform: translateY(-3px);
        box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
    }
    
    .get-look-trigger svg {
        width: 16px;
        height: 16px;
    }
    
    /* 重要：移动端弹窗从底部滑入 */
    .get-look-popup-content {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        width: 100% !important;
        height: 80vh !important;
        border-radius: 20px 20px 0 0 !important;
        transform: translateY(100%) !important;
        max-height: 80vh !important;
        box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.15) !important;
        transition: transform 0.3s ease !important;
    }
    
    .get-look-popup.show .get-look-popup-content {
        transform: translateY(0) !important;
    }
    
    /* 移动端产品网格 */
    .get-look-products-grid {
        padding: 15px;
    }
    
    .get-look-popup ul.products,
    .get-look-popup ul.get-look-products {
        grid-column-gap: 12px !important;
        grid-row-gap: 12px !important;
    }
    
    .get-look-popup ul.products li.product,
    .get-look-popup ul.get-look-products li.product {
        border-radius: var(--theme-border-radius, 3px);
    }
    
 
    
    .get-look-popup ul.products li.product .woocommerce-loop-product__title,
    .get-look-popup ul.get-look-products li.product .woocommerce-loop-product__title,
    .get-look-popup ul.products li.product h2,
    .get-look-popup ul.get-look-products li.product h2 {
        font-size: 11px !important;
        margin-bottom: 4px !important;
    }
    
    .get-look-popup ul.products li.product .price,
    .get-look-popup ul.get-look-products li.product .price {
        font-size: 10px !important;
    }
}

/* 超小屏幕 */
@media (max-width: 480px) {
    .get-look-background {
        min-height: 250px;
    }
    
    .get-look-content {
        max-width: 240px;
    }
    
    .get-look-title {
        font-size: 1.5rem;
    }
    
    .get-look-products-grid {
        gap: 12px;
        padding: 15px;
    }
    
    .product-image {
        height: 100px;
    }
    
    .product-info {
        padding: 10px;
    }
}

/* 大屏幕优化 */
@media (min-width: 1200px) {
    .get-look-background {
        min-height: 500px;
    }
    
    .get-look-content {
        max-width: 500px;
    }
    
    .get-look-title {
        font-size: 3rem;
    }
    
    .get-look-subtitle {
        font-size: 1.2rem;
    }
    
    .get-look-trigger {
        bottom: 40px;
        left: 40px;
    }
    
    .get-look-trigger:hover,
    .get-look-trigger.animate-in:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    }
}

/* 动画效果 */
@keyframes slideInFromLeft {
    0% {
        transform: translateX(-120px);
        opacity: 0;
    }
    70% {
        transform: translateX(10px);
        opacity: 1;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

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

/* GET THE LOOK 按钮的滑入动画和提醒动画 */
.get-look-trigger.animate-in {
    animation: slideInFromLeft 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards, 
               pulseReminder 0.6s ease-in-out infinite;
    animation-delay: 0s, 3s;
}

@keyframes pulseReminder {
    0% {
        transform: scale(1) translateX(0);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }
    50% {
        transform: scale(1.1) translateX(0);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    }
    100% {
        transform: scale(1) translateX(0);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }
}

/* 移动端的滑入动画 */
@media (max-width: 768px) {
    @keyframes slideInFromLeftMobile {
        0% {
            transform: translateX(-100px);
            opacity: 0;
        }
        70% {
            transform: translateX(8px);
            opacity: 1;
        }
        100% {
            transform: translateX(0);
            opacity: 1;
        }
    }
    
    .get-look-trigger.animate-in {
        animation: slideInFromLeftMobile 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards,
                   pulseReminderMobile 0.6s ease-in-out infinite;
        animation-delay: 0s, 3s;
    }
    
    @keyframes pulseReminderMobile {
        0% {
            transform: scale(1) translateX(0);
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        }
        50% {
            transform: scale(1.08) translateX(0);
            box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
        }
        100% {
            transform: scale(1) translateX(0);
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        }
    }
}

.get-look-popup.show .get-look-product-item {
    animation: fadeInUp 0.3s ease forwards;
}

.get-look-popup.show .get-look-product-item:nth-child(1) { animation-delay: 0.1s; }
.get-look-popup.show .get-look-product-item:nth-child(2) { animation-delay: 0.2s; }
.get-look-popup.show .get-look-product-item:nth-child(3) { animation-delay: 0.3s; }
.get-look-popup.show .get-look-product-item:nth-child(4) { animation-delay: 0.4s; }

/* 无障碍支持 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* 打印样式 */
@media print {
    .get-look-popup,
    .get-look-trigger {
        display: none !important;
    }
}

/* 兼容性修复 */
.get-look-container * {
    box-sizing: border-box;
}

/* 清除可能的主题样式冲突 */
.get-look-container button {
    font-family: inherit;
    text-transform: none;
}

.get-look-container h2,
.get-look-container h3,
.get-look-container h4 {
    line-height: inherit;
}

.get-look-container a {
    color: inherit;
}

/* 确保弹窗在所有元素之上 */
.get-look-popup {
    z-index: 999999 !important;
}

/* 热点样式 */
.get-look-hotspot {
    z-index: 1;
    cursor: pointer;
}

.get-look-hotspot-marker {
    position: relative;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 0px solid transparent;
    z-index: 2;
}

.hotspot-dot {
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    transition: all 0.3s ease;
}

/* 悬停、激活、选中状态 */
.get-look-hotspot-marker:hover,
.get-look-hotspot-marker.active,
.get-look-hotspot-marker.selected {
    border: 2px solid #fff;
}

.get-look-hotspot-marker:hover .hotspot-dot,
.get-look-hotspot-marker.active .hotspot-dot,
.get-look-hotspot-marker.selected .hotspot-dot {
    width: 8px;
    height: 8px;
}

/* 闪烁动画 */
@keyframes blink-hotspots {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.get-look-hotspot.blink {
    animation: blink-hotspots 0.5s ease-in-out 6;
}

/* 默认显示小圆点 */
.get-look-hotspot {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* 隐藏小圆点（可选功能）*/
.get-look-hotspot.hidden {
    opacity: 0;
    visibility: hidden;
}

/* 旧的脉冲动画（保留以防需要） */
.hotspot-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: hotspot-pulse 2s infinite ease-out;
    pointer-events: none;
}

.hotspot-pulse.hidden {
    display: none;
}

@keyframes hotspot-pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0;
    }
}

/* 热点浮窗样式 - fixed定位避免被遮挡 */
.get-look-hotspot-tooltip {
    position: fixed;
    z-index: 2147483647;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: visible;
    width: 240px;
    display: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    cursor: pointer;
}

.get-look-hotspot-tooltip.show {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

/* 定位由JavaScript动态计算，不需要CSS规则 */

/* 移除复杂动画，保持简单的淡入效果 */

.hotspot-tooltip-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0;
    background: #fff;
    border-radius: 4px;
}

.tooltip-info {
    flex: 1;
    padding: 12px 15px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-info-title {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-info-price {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #e74c3c;
}

.product-info-price .woocommerce-Price-amount {
    font-weight: inherit;
    color: inherit;
}

.product-info-price del {
    font-size: 12px;
    color: #999;
    margin-right: 6px;
    font-weight: 400;
}

.product-info-price ins {
    text-decoration: none;
}

.tooltip-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 100%;
    border-left: 1px solid #333;
    background: #fff;
    border-radius: 0 4px 4px 0;
    flex-shrink: 0;
}

.tooltip-arrow svg {
    width: 16px;
    height: 16px;
    fill: #333;
    transition: transform 0.2s ease;
}

.get-look-hotspot-tooltip:hover .tooltip-arrow svg {
    transform: translateX(3px);
}

/* 产品侧边抽屉样式 */
.get-look-product-drawer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.get-look-product-drawer.show {
    display: flex;
    opacity: 1;
}

.drawer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    cursor: pointer;
}

.drawer-content {
    position: absolute;
    right: 0;
    top: 0;
    width: 500px;
    max-width: 90vw;
    height: 100vh;
    background: #fff;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.get-look-product-drawer.show .drawer-content {
    transform: translateX(0);
}

.drawer-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #fff;
    padding: 20px;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    flex: 1;
    text-align: left;
}

.drawer-close {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #666;
    transition: all 0.2s ease;
    border-radius: 4px;
}

.drawer-close:hover {
    background: #f5f5f5;
    color: #333;
}

.drawer-close svg {
    display: block;
}

.drawer-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.drawer-footer {
    position: sticky;
    bottom: 0;
    z-index: 10;
    background: #fff;
    padding: 20px;
    border-top: 1px solid #e5e5e5;
    display: flex;
    gap: 12px;
}

/* Body中的变体表单样式 */
.drawer-body .ct-product-add-to-cart {
    margin: 20px 0;
}

.drawer-body .variations_form {
    width: 100%;
}

.drawer-body .variations {
    width: 100%;
    margin-bottom: 0;
    border: 0;
}

.drawer-body .variations tbody {
    border: 0;
}

.drawer-body .variations tr {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
    border: 0;
}

.drawer-body .variations .label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
    padding: 0;
    text-align: left;
    width: 100%;
}

.drawer-body .variations .label label {
    margin: 0;
    font-weight: 600;
}

.drawer-body .variations .label span {
    font-weight: 400;
    color: #666;
}

.drawer-body .variations .value {
    display: block;
    width: 100%;
    padding: 0;
}

.drawer-body .ct-variation-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.drawer-body .ct-swatch-container {
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.drawer-body .ct-swatch-container.active {
    opacity: 1;
}

.drawer-body .ct-swatch-container:not(.active) {
    opacity: 0.6;
}

.drawer-body .ct-swatch-container:hover {
    opacity: 1;
}

/* 图片样式的变体 */
.drawer-body .ct-variation-swatches[data-swatches-type="image"] .ct-swatch {
    width: 70px;
    height: 70px;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.2s ease;
    display: block;
}

.drawer-body .ct-variation-swatches[data-swatches-type="image"] .ct-swatch-container.active .ct-swatch {
    border-color: #333;
}

.drawer-body .ct-variation-swatches[data-swatches-type="image"] .ct-swatch-container:hover .ct-swatch {
    border-color: #666;
}

.drawer-body .ct-variation-swatches[data-swatches-type="image"] .ct-swatch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 按钮样式的变体 */
.drawer-body .ct-variation-swatches[data-swatches-type="button"] .ct-swatch {
    padding: 10px 18px;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
    transition: all 0.2s ease;
    display: block;
}

.drawer-body .ct-variation-swatches[data-swatches-type="button"] .ct-swatch-container.active .ct-swatch {
    border-color: #333;
    background: #f8f8f8;
}

.drawer-body .ct-variation-swatches[data-swatches-type="button"] .ct-swatch:hover {
    border-color: #666;
}

/* 隐藏原生select */
.drawer-body .variations select {
    display: none;
}

/* 变体价格显示 */
.drawer-body .woocommerce-variation-price {
    display: none !important;
}

.drawer-body .single_variation_wrap {
    margin-bottom: 0;
}

.drawer-body .reset_variations {
    display: none;
}

/* Tooltip样式 */
.drawer-body .ct-tooltip {
    position: absolute;
    bottom: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 100;
}

.drawer-body .ct-swatch-container:hover .ct-tooltip {
    opacity: 1;
}

/* Swatch交互增强 */
.drawer-body .ct-swatch-container {
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.drawer-body .ct-swatch-container:not(.active):hover .ct-swatch {
    transform: scale(1.05);
}

.drawer-body .ct-variation-swatches[data-swatches-type="image"] .ct-swatch-container:not(.active):hover .ct-swatch {
    border-color: #999;
}

.drawer-body .ct-variation-swatches[data-swatches-type="button"] .ct-swatch-container:not(.active):hover .ct-swatch {
    border-color: #999;
    background: #fafafa;
}

/* Variation提示信息 */
.drawer-body .woocommerce-info {
    background: #f0f8ff;
    border-left: 3px solid #2196F3;
    padding: 12px 15px;
    margin: 15px 0;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
}

.drawer-btn {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    line-height: 1;
}

.drawer-btn-secondary {
    background: #fff;
    color: #333;
    border: 2px solid #333;
}

.drawer-btn-secondary:hover {
    background: #f5f5f5;
    text-decoration: none;
}

.drawer-btn-primary {
    background: #333;
    color: #fff;
    border: 2px solid #333;
}

.drawer-btn-primary:hover:not(:disabled):not(.disabled) {
    background: #000;
    border-color: #000;
    text-decoration: none;
}

.drawer-btn-primary:disabled,
.drawer-btn-primary.disabled {
    background: #ccc;
    border-color: #ccc;
    color: #888;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Drawer内容区样式 */

.drawer-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 产品详情样式 */
.drawer-product-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.drawer-product-images {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.main-image {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: 8px;
    background: #f5f5f5;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thumbnail-images {
    display: flex;
    gap: 8px;
    overflow-x: auto;
}

.thumbnail-images img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.thumbnail-images img:hover {
    border-color: #ccc;
}

.thumbnail-images img.active {
    border-color: #333;
}

.product-name {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    color: #333;
    margin: 0;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: #e74c3c;
}

.product-price del {
    font-size: 16px;
    color: #999;
    margin-right: 8px;
    font-weight: 400;
}

.product-description {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

.drawer-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    gap: 15px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.drawer-error {
    text-align: center;
    color: #666;
    padding: 40px 20px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .drawer-content {
        width: 100%;
        max-width: 100%;
    }
}

.product-info-price ins {
    text-decoration: none;
}

.tooltip-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 100%;
    border-left: 1px solid #333;
    background: #fff;
    border-radius: 0 4px 4px 0;
    flex-shrink: 0;
}

.tooltip-arrow svg {
    width: 16px;
    height: 16px;
    fill: #333;
    transition: transform 0.2s ease;
}

.get-look-hotspot-tooltip:hover .tooltip-arrow svg {
    transform: translateX(3px);
}

/* 移动端热点适配 */
@media (max-width: 768px) {
    /* 移动端完全隐藏tooltip */
    .get-look-hotspot-tooltip {
        display: none !important;
    }
    
    /* 移动端抽屉样式调整 */
    .get-look-product-drawer .drawer-content {
        width: 100%;
    }
    
    /* 移动端变体表单适配 */
    .drawer-body .ct-variation-swatches[data-swatches-type="image"] .ct-swatch {
        width: 55px;
        height: 55px;
    }
    
    .drawer-body .ct-variation-swatches[data-swatches-type="button"] .ct-swatch {
        padding: 8px 14px;
        font-size: 13px;
    }
    
    .drawer-body .variations .label {
        font-size: 13px;
    }
    
    .drawer-footer {
        flex-direction: column;
    }
    
    .drawer-btn {
        width: 100%;
    }
}

/* 侧边抽屉中的Elementor内容块样式 */
.drawer-body .ct-product-content-block {
    margin: 20px 0;
}

/* Elementor icon list样式 */
.drawer-body .elementor-icon-list-items {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.drawer-body .elementor-icon-list-item {
    margin: 0;
}

.drawer-body .elementor-icon-list-item a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.drawer-body .elementor-icon-list-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drawer-body .elementor-icon-list-icon svg {
    width: 22px;
    height: 22px;
    display: block;
}

.drawer-body .elementor-icon-list-text {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    position: relative;
}

/* 下划线效果 - 从中间向两边展开,只在文字上 */
.drawer-body .elementor-icon-list-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #333;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.drawer-body .elementor-icon-list-item a:hover .elementor-icon-list-text::after {
    transform: scaleX(1);
}

/* Elementor分隔线 */
.drawer-body .elementor-divider {
    margin: 20px 0;
}

.drawer-body .elementor-divider-separator {
    display: block;
    height: 1px;
    background-color: #e5e5e5;
}

/* Elementor折叠面板样式 */
.drawer-body .e-n-accordion {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.drawer-body .e-n-accordion-item {
    margin: 0 !important;
    border: none !important;
    border-bottom: none !important;
    border-top: none !important;
}

.drawer-body .e-n-accordion-item:first-child .e-n-accordion-item-title {
    border-top: 1px solid #e5e5e5;
}

.drawer-body .e-n-accordion-item-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    cursor: pointer;
    user-select: none;
    list-style: none;
    border: none !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: 1px solid #e5e5e5 !important;
}

.drawer-body .e-n-accordion-item-title::-webkit-details-marker {
    display: none;
}

.drawer-body .e-n-accordion-item-title-header {
    flex: 1;
    order: 1;
}

.drawer-body .e-n-accordion-item-title-text {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.drawer-body .e-n-accordion-item-title-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    order: 2;
    margin-left: auto;
}

.drawer-body .e-n-accordion-item-title-icon svg {
    width: 16px;
    height: 16px;
}

/* 默认显示关闭图标(+) */
.drawer-body .e-n-accordion-item-title-icon .e-opened {
    display: none;
}

.drawer-body .e-n-accordion-item-title-icon .e-closed {
    display: block;
}

/* 展开状态显示打开图标(-) */
.drawer-body .e-n-accordion-item[open] .e-n-accordion-item-title-icon .e-opened {
    display: block;
}

.drawer-body .e-n-accordion-item[open] .e-n-accordion-item-title-icon .e-closed {
    display: none;
}

/* 折叠内容 - 无边框,上下15px内距 */
.drawer-body .e-n-accordion-item > div[role="region"] {
    padding: 15px 0 !important;
    animation: slideDown 0.3s ease;
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
    border-left: none !important;
    border-right: none !important;
}

.drawer-body .e-n-accordion-item > div[role="region"] > * {
    border: none !important;
}

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

.drawer-body .elementor-shortcode {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

/* 确保Elementor容器正常显示 */
.drawer-body .e-con,
.drawer-body .e-con-boxed {
    display: flex !important;
    flex-direction: column;
}

.drawer-body .e-con-inner {
    width: 100%;
}

/* 产品规格表格样式 */
.drawer-body .product-specifications {
    font-size: 14px;
}

.drawer-body .spec-row {
    display: flex;
    padding: 8px 0;
    border: none !important;
    border-bottom: none !important;
}

.drawer-body .spec-label {
    font-weight: 600;
    width: 50%;
    color: #333;
    flex: 0 0 50%;
}

.drawer-body .spec-value {
    width: 50%;
    flex: 0 0 50%;
    color: #666;
}

.drawer-body .spec-value p {
    margin: 0;
}