/* ===== 隐藏默认缩略图 ===== */
.woocommerce-product-gallery .flex-control-nav {
    display: none !important;
}

.my-thumb-carousel {
    margin-top: 15px;
}

/* ===== 基础设置 ===== */
.summary.entry-summary,
.summary.entry-summary * {
    box-sizing: border-box !important;
}

/* ===== summary区域样式 ===== */
.summary.entry-summary {
    /* 尺寸和布局 */
    height: 650px !important;
    min-width: 322px !important;
    max-width: 40dvw !important;
    
    /* Flex布局 */
    display: flex !important;
    flex-direction: column !important;
    
    /* 位置和溢出 */
    position: relative !important;
    overflow: hidden !important;
    
    /* 文本和间距 */
    text-align: left !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* ===== 产品标题 ===== */
.summary .product_title.entry-title {
    text-transform: uppercase !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
    letter-spacing: 2px !important;
    margin: 0 0 0.5vh 0 !important;
    flex-shrink: 0 !important;
    height: auto !important;
    min-height: 0 !important;
}

/* ===== 产品描述 ===== */
.summary .product-full-description {
    font-size: 0.95em !important;
    font-weight: normal !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-y: auto !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: none !important;
    height: auto !important;
    line-height: 1.4 !important;
}

/* 标题和描述之间的间距 */
.summary .product_title + .product-full-description {
    margin-top: 2vh !important;
    margin-bottom: 2vh !important;
}

/* ===== 颜色选择器容器 ===== */
.bundled-items-colors-wrapper {
    flex-shrink: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    position: relative !important;
}

.bundled-items-colors-wrapper:last-child {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* ===== bundled-item样式 ===== */
.bundled-item {
    margin: 0 0 15px 0 !important;
    padding: 0 !important;
}

.bundled-item + .bundled-item {
    margin-top: 15px !important;
}

.bundled-item:last-child {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* 确保最后一个bundled-item的底部对齐 */
.bundled-items-colors-wrapper:last-child .bundled-item:last-child {
    position: relative;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* ===== 颜色选项标题 ===== */
.bundled-item-title {
    color: #333;
    font-family: "trajan-pro-3", serif;
    text-transform: uppercase !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
    letter-spacing: 2px !important;
    text-align: left;
    width: 100%;
    display: block;
    margin: 0 0 15px 0 !important;
}

/* ===== 颜色图片容器 ===== */
.color-images {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 3.64vw !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 确保color-price底部对齐 */
.bundled-items-colors-wrapper .bundled-item:last-child .color-images:last-child {
    align-items: flex-end !important;
}

/* ===== 单个颜色选项 ===== */
.color-images .color-option {
    flex: 0 0 auto !important;
    text-align: center !important;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center !important;
    justify-content: flex-start;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
}

/* 如果仍然有空白，尝试使用绝对定位对齐 */
@media screen and (min-width: 769px) {
    .bundled-items-colors-wrapper:last-child .bundled-item:last-child .color-option:last-child .color-price {
        position: relative;
        bottom: 0;
    }
}

/* ===== 颜色图片 ===== */
.bundled-items-colors-wrapper .color-option .color-image {
    width: 86px !important;
    height: 86px !important;
    max-width: 86px !important;
    object-fit: fill !important;
    transition: all 0.2s ease;
    display: block;
}

/* 允许图片更小以适应至少5个 */
@media (min-width: 992px) {
    .bundled-items-colors-wrapper .color-option .color-image {
        width: 70px !important;
        height: 70px !important;
        max-width: 70px !important;
    }
}

.color-image.unavailable {
    opacity: 0.7;
}

.color-image.unavailable:hover {
    opacity: 1;
}

/* ===== 颜色文字样式 ===== */
.color-option .color-name,
.color-option .color-price {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 0.8em;
    color: #333;
    text-align: center !important;
    width: 100%;
    line-height: 1.2 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 调整间距 */
.color-option .color-name {
    font-weight: 400;
    display: block;
    margin-top: 15px !important;
}

.color-option .color-price {
    display: block;
    margin-top: 15px !important;
    margin-bottom: 0 !important;
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
    .summary .product_title,
    .summary .product-full-description {
        line-height: 0.9;
        font-size: 0.9em;
    }
    
    .color-images {
        gap: 2vw !important;
    }
    
    .bundled-items-colors-wrapper .color-option .color-image {
        width: 60px !important;
        height: 60px !important;
        max-width: 60px !important;
    }
    
    .summary .product-full-description {
        width: 90vw !important;
        height: auto !important;
    }
    
    .color-option .color-name,
    .color-option .color-price {
        font-size: 12px !important;
    }
}

/* ===== 调试用 ===== */
.debug-summary-bottom::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: red;
    z-index: 10000;
}

.debug-last-price::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: blue;
    z-index: 10000;
}

/*隐藏ppcp-re的边距*/
#ppcp-recaptcha-v2-container {
    display: none !important; /* 确保隐藏 */
    margin: 0 !important; /* 关键：强制外边距为0 */
    padding: 0 !important; /* 顺便清除内边距 */
    height: 0 !important; /* 高度归零 */
    min-height: 0 !important; /* 最小高度也归零 */
    border: 0 !important; /* 清除边框 */
}