/*
Theme Name: Nest Pro Perfect Header
Author: Nest Customizer
Description: 1:1 完美还原 Nest HTML 模板头部，支持 WooCommerce，全响应式适配各种手机。
Version: 1.0
Text Domain: nest
*/

/* --- 核心修复：防止 WordPress 管理栏遮挡头部 --- */
#wpadminbar { z-index: 99999 !important; }

/* 初始状态 */
.header-area { top: 0; transition: top 0.3s; }

/* 当用户登录，且屏幕宽度大于 782px (桌面端) 时 */
@media screen and (min-width: 783px) {
    body.admin-bar .header-area.sticky-bar.stick {
        top: 32px !important;
    }
}

/* 当屏幕宽度小于 782px (手机端) 时 */
@media screen and (max-width: 782px) {
    body.admin-bar .header-area.sticky-bar.stick {
        top: 46px !important;
    }
}

.promo-pill {
    background: red;
    color: white;
    display: inline-block !important; /* 强制显示 */
    padding: 5px;
}

/* 容器布局：确保不会挤压标题 */
.my-custom-promo-wrapper {
    margin-bottom: 6px;
    line-height: 1;
}

/* 标签精修 */
.promo-pill {
    background: linear-gradient(135deg, #ff4d4f 0%, #cf1322 100%); /* 渐变色更有深度 */
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px; /* 稍微硬朗一点的圆角 */
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(207, 19, 34, 0.2);
    transition: all 0.3s ease;
}

/* 鼠标悬停到商品卡片时的联动效果 */
.product:hover .promo-pill {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(207, 19, 34, 0.3);
    filter: brightness(1.1);
}

/* 详情页主容器 */
.my-custom-single-product {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 30px;
}

/* 左侧图片：占 50% */
.product-media-section {
    flex: 1 1 500px; /* 最小 500px，否则换行 */
}

/* 右侧信息：占剩余空间 */
.product-info-section {
    flex: 1 1 400px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .my-custom-single-product {
        flex-direction: column;
    }
}