/*
Theme Name: YY Mall
Theme URI: http://your-domain.com/
Description: 温暖柔和商业模式风 - 优化转化体验
Author: YY
Version: 2.0.3
*/

/* ============================================================
   DESIGN TOKENS — 柔和暖色系统
   ============================================================ */
:root {
    /* 基底色：暖白 / 米白 / 奶油 */
    --bg-base:        #faf7f2;
    --bg-soft:        rgba(245, 240, 234, 0.75);
    --bg-card:        rgba(255, 255, 255, 0.80);
    --bg-soft-pink:   rgba(253, 246, 242, 0.75);
    --bg-soft-green:  rgba(243, 247, 243, 0.75);

    /* 主色调：鼠尾草绿（柔和但可识别） */
    --sage:           #7a9e7e;
    --sage-light:     #a3c0a7;
    --sage-dark:      #5d8462;

    /* 强调色：珊瑚橙（CTA / 重点提示） */
    --coral:          #e8a87c;
    --coral-light:    #f0c4a4;
    --coral-dark:     #d4895f;

    /* 辅助色：暖金 / 淡杏 / 奶茶 */
    --honey:          #d4a574;
    --apricot:        #f2c8a0;
    --latte:          #c4a882;

    /* 文字色（暖灰系，非纯黑） */
    --text-primary:   #3d3530;
    --text-secondary: #7a6e64;
    --text-muted:     #a89e94;
    --text-on-dark:   #faf7f2;

    /* 边框 / 分割线 */
    --border-light:   #ece5dd;
    --border-soft:    #f0ebe3;

    /* 阴影：极浅、大范围扩散 */
    --shadow-xs:  0 2px 8px rgba(122, 110, 100, 0.04);
    --shadow-sm:  0 4px 16px rgba(122, 110, 100, 0.06);
    --shadow-md:  0 8px 28px rgba(122, 110, 100, 0.08);
    --shadow-lg:  0 12px 40px rgba(122, 110, 100, 0.10);

    /* 圆角 */
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-pill: 50px;

    /* 间距（8px 栅格基准） */
    --space-2xs: 4px;
    --space-xs:  8px;
    --space-sm:  16px;
    --space-md:  24px;
    --space-lg:  40px;
    --space-xl:  60px;
    --space-2xl: 48px;
    --space-3xl: 64px;

    /* 缓动曲线 */
    --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition: 0.28s var(--ease-soft);

    /* 字体 */
    --font-sans: "Plus Jakarta Sans", "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* ============================================================
   GLOBAL RESET & BASE
   ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

/* 全局截图背景 */
.yy-bg-static {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--bg-base);
    z-index: -2;
}
.yy-bg-overlay {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: rgba(250, 247, 242, 0.30);
}

body {
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-primary);
    background: transparent;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 纸张纹理叠加已移除（与视频背景冲突） */

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    outline: none;
}

/* ============================================================
   HEADER — 柔和导航（实底，无玻璃）
   ============================================================ */
.yy-header {
    background: rgba(255, 255, 255, 0.96);
    height: 64px;
    position: sticky;
    top: 0;
    z-index: 999;
    border-bottom: 1px solid var(--border-soft);
}

.yy-header-inner {
    max-width: 1320px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    height: 64px;
    padding: 0 24px;
    gap: 8px;
}

.yy-logo {
    font-size: 19px;
    font-weight: 700;
    white-space: nowrap;
    letter-spacing: -0.02em;
}
.yy-logo a { color: var(--text-primary); display: inline-flex; align-items: center; }
/* 站点 Logo 图片（原 .logo-icon 文字方块已由图片替代） */
.yy-logo .yy-logo-img {
    display: inline-block;
    width: 40px; height: 40px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    margin-right: 8px;
    vertical-align: middle;
    box-shadow: var(--shadow-xs);
}

.yy-nav { flex: 1; display: flex; gap: 4px; margin-left: 20px; }
.yy-nav a {
    padding: 8px 16px;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-pill);
    transition: var(--transition);
}
.yy-nav a:hover {
    color: var(--sage-dark);
    background: var(--bg-soft-green);
}
.yy-nav a.active {
    color: var(--sage-dark);
    background: var(--bg-soft-green);
    font-weight: 600;
}

.yy-search { margin-right: 8px; display: flex; align-items: center; }
.yy-search input {
    width: 180px;
    height: 38px;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-pill) 0 0 var(--radius-pill);
    padding: 0 16px;
    font-size: 13.5px;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.70);
    transition: var(--transition);
}
.yy-search input::placeholder { color: var(--text-muted); }
.yy-search input:focus {
    border-color: var(--sage-light);
    background: rgba(255, 255, 255, 0.90);
    width: 220px;
}
.yy-search button {
    height: 38px;
    border: none;
    background: var(--sage);
    color: #fff;
    padding: 0 18px;
    border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
}
.yy-search button:hover { background: var(--sage-dark); }

.yy-user { white-space: nowrap; font-size: 14px; }
.yy-user a {
    color: var(--text-secondary);
    font-weight: 500;
    padding: 8px 14px;
    border-radius: var(--radius-pill);
}
.yy-user a:hover { color: var(--sage-dark); background: var(--bg-soft-green); }

.yy-cart-badge {
    display: inline-block;
    background: var(--coral);
    color: #fff;
    font-size: 11px;
    border-radius: var(--radius-pill);
    padding: 2px 8px;
    margin-left: 4px;
    line-height: 1.4;
    font-weight: 600;
}

/* ============================================================
   HERO SECTION — 首屏温暖大图
   ============================================================ */
.yy-hero {
    max-width: 1320px;
    margin: 24px auto 0;
    padding: 0 24px;
}

.yy-hero-banner {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: linear-gradient(135deg, #e8a87c 0%, #f0c4a4 30%, #d4a574 60%, #c4a882 100%);
    padding: 56px 48px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    min-height: 320px;
}

/* ============================================================
   视频背景 Hero —— .yy-hero-banner 用 /1234-h264.mp4 做动态背景
   层级（自下而上）：
     z0  .yy-hero-video    <video> 铺满 banner（object-fit: cover；banner 已 overflow:hidden）
     z1  .yy-hero-overlay  暖白柔纱：把视频提亮，保证深色文字也达标
     z3  .yy-hero-main     文案 + 微信二维码（透明卡，直接压在视频上）
     z1  .yy-hero-banner::before/::after  柔光装饰圆
   ★ 配色沿用主题 token：--coral(CTA) / --text-primary(标题) / --sage-dark(标签)。
   ★ 视频放不出来时（未加载 / 用户开启「减少动效」/ 老浏览器）自动露出 banner 的暖橙渐变。
   ============================================================ */

/* 背景视频：铺满整个 .yy-hero-banner */
.yy-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    pointer-events: none;
}

/* 暖白柔纱：压在视频之上，保证深色正文在视频「最暗的像素」上依然清晰。
   实测（1234-h264.mp4 抽帧 + 正文色 #3d3530）：alpha 0.60 时最坏像素对比度 ≈4.7:1，全部达 WCAG AA。
   ★ 想更清楚地看到视频 → 调小 alpha；想文字更稳 → 调大。 */
.yy-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(250, 247, 242, 0.60);
    pointer-events: none;
}

/* 彩色光晕层已移除：通透玻璃不塞色，暖色来自视频/暖色兜底 */

/* ── ★ Apple 风格毛玻璃（通透 + 锐利边缘光）───────────────
   ❶ background 必须「淡」(0.12 高透) —— 之前用 --bg-card(0.80) 等于贴了张白卡，
      玻璃感全失；淡到能看见背后色彩，才是玻璃。
   ❷ blur(32px) 强模糊 + saturate(200%) 提鲜 + brightness(1.10) 微提亮
      —— Apple 玻璃是「放大并柔化背后色彩」，不是简单地糊一层白。
   ❸ ★ Apple 的标志：inset 0 1px 1px rgba(255,255,255,0.92) 顶部一条
      「锐利亮线」（模拟玻璃切边镜面反光），这是玻璃感最强证据，
      绝不能用模糊 shadow 代替。
   ❹ 0.5px 极细内描边 + 底部次亮线 = 玻璃的「厚度」。 */
.yy-hero-main {
    position: relative;
    z-index: 3;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 48px;
    border-radius: var(--radius-lg);
    /* ★ 完全无玻璃（用户要求）：透明背景，露出 .yy-hero-banner 暖色景；移除所有 backdrop-filter/玻璃背景/边框/阴影/面光/噪点 */
    padding: 44px 48px;
    overflow: hidden;
}
/* 玻璃已移除：不再需要 ::before 斜向面光 与 ::after 颗粒噪点 */
.yy-hero-main::before {
    content: none;
}
.yy-hero-main::after {
    content: none;
}
/* 保证卡片内实际内容浮在 ::before / ::after 之上 */
.yy-hero-content,
.yy-hero-qr {
    z-index: 1;
}

/* 已无玻璃效果，无需 backdrop-filter 兜底块 */


/* 柔光装饰圆：浅背景上需提高不透明度才可见（原深色方案数值过淡） */
.yy-hero-banner::before {
    content: '';
    position: absolute;
    top: -60px; right: -40px;
    width: 300px; height: 300px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    z-index: 1;
}
.yy-hero-banner::after {
    content: '';
    position: absolute;
    bottom: -80px; right: 120px;
    width: 200px; height: 200px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    z-index: 1;
}

.yy-hero-content { position: relative; z-index: 1; flex: 1 1 auto; max-width: 560px; }
/* 标签胶囊：用主题主色 鼠尾草绿(--sage) 浅底 + 深绿字，取代原来的白/深色风 */
.yy-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(163, 192, 167, 0.32);
    color: var(--sage-dark);
    padding: 7px 16px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(122, 158, 126, 0.28);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 18px;
}
.yy-hero-tag .dot {
    width: 6px; height: 6px;
    background: var(--coral);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(232, 168, 124, 0.85);
    animation: breathe 2s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes breathe {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* 浅色毛玻璃上改用主题深暖灰文字（--text-primary/secondary），去掉深色方案的 text-shadow */
.yy-hero h1 {
    font-size: 38px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
}
.yy-hero p {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 28px;
}

.yy-hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
/* CTA 用主题强调色 珊瑚橙(--coral) 打底 + 白字（token 定义：强调色用于 CTA） */
.yy-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--coral);
    color: #fff;
    padding: 13px 32px;
    border-radius: var(--radius-pill);
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(212, 137, 95, 0.30);
    transition: var(--transition);
}
.yy-cta-primary:hover {
    transform: translateY(-2px);
    background: var(--coral-dark);
    color: #fff;
    box-shadow: 0 10px 26px rgba(212, 137, 95, 0.38);
}
.yy-hero-hint {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ============================================================
   微信二维码卡片 —— 大玻璃卡片 (.yy-hero-main) 内的右侧子卡片
   主题浅色子玻璃：比主卡更实（0.90 白）以形成层次，
   配 blur(16px) + --shadow-md（极浅暖棕），不用重黑影。
   层级：.yy-hero-main 内的内容统一 z-index:1（高于卡片自身的 ::before/::after）
   ============================================================ */
.yy-hero-qr {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;          /* 不参与收缩，保持 230px 定宽 */
    margin-right: -48px;     /* ★ 贴着 .yy-hero-main 右边框：吃掉大容器右侧 48px padding */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 230px;
    padding: 24px 22px 22px;
    border-radius: var(--radius-lg);
    /* ★ 完全无玻璃：干净白卡（主题 --bg-card），去掉 backdrop-filter/半透玻璃背景/玻璃描边/面光 */
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    text-align: center;
}
.yy-hero-qr img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(122, 110, 100, 0.14);
}
.yy-hero-qr-cap {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: .5px;
    white-space: nowrap;
    order: -1;               /* 标签置顶（标签在上、图在下） */
}

/* 中屏及以下：玻璃卡片改为纵向堆叠，二维码居中 */
@media (max-width: 900px) {
    .yy-hero-main { flex-direction: column; gap: 32px; padding: 36px 28px; text-align: center; }
    .yy-hero-content { max-width: 100%; }
    .yy-hero-actions { justify-content: center; }
    .yy-hero-qr { width: 210px; margin-right: 0; }
}
@media (max-width: 768px) {
    .yy-hero-qr { width: 190px; }
}
@media (max-width: 480px) {
    .yy-hero-main { padding: 30px 20px; gap: 26px; }
    .yy-hero-qr { width: 100%; max-width: 220px; }
}

/* ============================================================
   TRUST BADGES — 信任标牌
   ============================================================ */
.yy-trust {
    max-width: 1320px;
    margin: 24px auto 0;
    padding: 0 24px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.yy-trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-md);
    padding: 10px 18px;
    box-shadow: 0 2px 12px rgba(122, 110, 100, 0.05);
    font-size: 13.5px;
    color: var(--text-secondary);
    font-weight: 500;
}
.yy-trust-badge .icon {
    width: 28px; height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 15px;
}
.yy-trust-badge:nth-child(1) .icon { background: var(--bg-soft-green); }
.yy-trust-badge:nth-child(2) .icon { background: var(--bg-soft-pink); }
.yy-trust-badge:nth-child(3) .icon { background: #fef5e7; }

/* ============================================================
   CONTENT WRAPPER — 白色柔和卡片容器
   ============================================================ */
.yy-content-wrapper {
    width: calc(100% - 48px);
    max-width: 1272px;
    margin: 32px auto;
    background: rgba(255, 255, 255, 0.94);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: 0 4px 24px rgba(122, 110, 100, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* ============================================================
   SECTION HEADER — 标题区域
   ============================================================ */
.yy-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}
.yy-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}
.yy-section-title .deco {
    width: 4px; height: 24px;
    background: var(--coral);
    border-radius: 2px;
}
.yy-more-btn {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    background: var(--bg-soft);
    transition: var(--transition);
}
.yy-more-btn:hover {
    color: var(--coral-dark);
    background: var(--bg-soft-pink);
}

/* ============================================================
   PRODUCT GRID — 商品网格
   ============================================================ */
.yy-goods-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

/* ============================================================
   PRODUCT CARD — 柔和商品卡
   ============================================================ */
.yy-good-card {
    background: rgba(255, 255, 255, 0.96);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: var(--transition);
    cursor: pointer;
}
.yy-good-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.88);
    border-color: var(--sage-light);
}

.yy-good-image-wrapper {
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: var(--bg-soft);
    position: relative;
}
.yy-good-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--ease-soft);
}
.yy-good-card:hover .yy-good-image-wrapper img {
    transform: scale(1.04);
}

/* 小标签：上架/热销 */
.yy-good-tag {
    position: absolute;
    top: 12px; left: 12px;
    background: rgba(255, 255, 255, 0.96);
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 600;
    color: var(--coral-dark);
}

.yy-good-info { padding: 16px 18px 20px; }
.yy-good-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.5;
    height: 45px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.yy-good-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 14px;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}
.yy-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.yy-price-box {
    display: flex;
    align-items: baseline;
    color: var(--coral-dark);
}
.yy-price-symbol { font-size: 14px; font-weight: 600; margin-right: 1px; }
.yy-price-value { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }

.yy-add-cart-btn {
    width: 38px; height: 38px;
    border: none !important;
    background: var(--bg-soft-green) !important;
    color: var(--sage-dark) !important;
    border-radius: var(--radius-sm) !important;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    display: flex !important;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    padding: 0 !important;
    line-height: 38px;
    text-indent: 0;
}
.yy-add-cart-btn:hover {
    background: var(--sage) !important;
    color: #fff !important;
    transform: scale(1.08);
}
.yy-add-cart-btn.loading {
    opacity: 0.6;
    pointer-events: none;
}
.yy-add-cart-btn .added {
    display: none;
}

/* WooCommerce add-to-cart redirect: stay on same page after adding */
.added_to_cart {
    display: none !important;
}

/* ============================================================
   CATEGORY TAGS — 分类筛选
   ============================================================ */
.yy-category-section {
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border-soft);
}
.yy-category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.yy-category-tag {
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 500;
    padding: 9px 20px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    background: var(--bg-base);
    transition: var(--transition);
}
.yy-category-tag:hover {
    color: var(--sage-dark);
    border-color: var(--sage-light);
    background: var(--bg-soft-green);
    transform: translateY(-1px);
}
.yy-category-tag.active {
    color: #fff;
    background: var(--sage);
    border-color: var(--sage);
}

/* ============================================================
   PRODUCT DETAIL PAGE — 商品详情
   ============================================================ */
.yy-detail-box {
    display: flex;
    flex-wrap: wrap;
    gap: 48px;
    padding: 10px 0;
}
.yy-detail-image {
    width: 460px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: var(--bg-soft);
    flex-shrink: 0;
}
.yy-detail-image img { width: 100%; height: auto; }

.yy-detail-info { flex: 1; min-width: 280px; max-width: 480px; }

.yy-detail-breadcrumb {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}
.yy-detail-breadcrumb a:hover { color: var(--sage-dark); }

.yy-detail-info h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.35;
    letter-spacing: -0.01em;
    margin-bottom: 12px;
}
.yy-detail-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.yy-detail-price-box {
    background: var(--bg-soft-pink);
    border: 1px solid #f5e0d8;
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin-bottom: 24px;
}
.yy-detail-price-label {
    font-size: 14px;
    color: var(--text-muted);
    margin-right: 12px;
}
.yy-detail-price-value {
    font-size: 28px;
    color: var(--coral-dark);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.yy-detail-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    font-size: 13.5px;
    color: var(--text-muted);
}
.yy-detail-meta span { display: flex; align-items: center; gap: 4px; }

.yy-detail-actions {
    display: flex;
    gap: 12px;
    margin-top: 28px;
}

/* WooCommerce form overrides for detail page */
.yy-detail-info .cart { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 24px; }
.yy-detail-info .quantity { margin: 0 !important; }
.yy-detail-info .quantity .qty {
    width: 70px; height: 46px;
    text-align: center;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 16px;
    color: var(--text-primary);
}
.yy-detail-info .single_add_to_cart_button {
    flex: 1;
    min-width: 180px;
    height: 46px;
    border: none !important;
    border-radius: var(--radius-md) !important;
    background: var(--sage) !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: var(--transition);
}
.yy-detail-info .single_add_to_cart_button:hover {
    background: var(--sage-dark) !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* ============================================================
   WOOCOMMERCE SHOP GRID OVERRIDE
   ============================================================ */
ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 22px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
ul.products li.product {
    list-style: none !important;
    margin: 0 !important;
    width: auto !important;
}
ul.products::before, ul.products::after { display: none !important; }

.woocommerce .woocommerce-result-count {
    font-size: 14px; color: var(--text-muted); margin: 0; float: left;
}
.woocommerce .woocommerce-ordering { margin: 0 0 1em; }
.woocommerce .woocommerce-ordering select {
    padding: 8px 14px;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-pill);
    font-size: 13.5px;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.75);
}

/* WooCommerce buttons — warm sage style */
.woocommerce button.button,
.woocommerce a.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce .button {
    background: var(--sage) !important;
    color: #fff !important;
    border: none !important;
    border-radius: var(--radius-md) !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    padding: 12px 32px !important;
    transition: var(--transition);
    box-shadow: none !important;
    text-shadow: none !important;
}
.woocommerce button.button:hover,
.woocommerce a.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce .button:hover {
    background: var(--sage-dark) !important;
    color: #fff !important;
    transform: translateY(-1px);
}

.woocommerce .quantity .qty {
    width: 70px; height: 42px;
    text-align: center;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 15px;
}

/* WooCommerce notices — warm toast style */
.woocommerce-message,
.woocommerce-info {
    border-top-color: var(--sage) !important;
    background: var(--bg-soft-green) !important;
    border-radius: var(--radius-md) !important;
    padding: 16px 20px !important;
    color: var(--text-secondary) !important;
}
.woocommerce-message::before,
.woocommerce-info::before { color: var(--sage) !important; }

.woocommerce-error {
    border-top-color: var(--coral) !important;
    background: var(--bg-soft-pink) !important;
    border-radius: var(--radius-md) !important;
}

/* Pagination */
.woocommerce nav.woocommerce-pagination ul {
    border: none !important;
    display: flex;
    gap: 6px;
    justify-content: center;
}
.woocommerce nav.woocommerce-pagination ul li { border: none !important; }
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    padding: 8px 14px;
    border: 1px solid var(--border-light) !important;
    border-radius: var(--radius-sm) !important;
    font-size: 14px;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.70);
}
.woocommerce nav.woocommerce-pagination ul li .current {
    background: var(--sage) !important;
    color: #fff !important;
    border-color: var(--sage) !important;
}

/* ============================================================
   CART PAGE
   ============================================================ */
.woocommerce table.shop_table {
    border-radius: var(--radius-md) !important;
    border: 1px solid var(--border-soft) !important;
    overflow: hidden;
}
.woocommerce table.shop_table th {
    background: var(--bg-soft) !important;
    color: var(--text-secondary) !important;
    font-size: 13.5px;
    padding: 14px 16px !important;
}
.woocommerce table.shop_table td {
    padding: 16px !important;
    border-top: 1px solid var(--border-soft) !important;
}
.woocommerce-cart-form__cart-item img {
    width: 72px !important;
    border-radius: var(--radius-sm);
}

/* ============================================================
   FLOATING CONSULT BUTTON — 右下角轻柔悬浮咨询
   ============================================================ */
.yy-float-consult {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 998;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.yy-float-btn {
    width: 52px; height: 52px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
}
.yy-float-btn.primary {
    background: var(--sage);
    color: #fff;
}
.yy-float-btn.primary::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--sage);
    opacity: 0.3;
    animation: ripple 2.5s ease-out infinite;
}
@keyframes ripple {
    0% { transform: scale(1); opacity: 0.3; }
    100% { transform: scale(1.5); opacity: 0; }
}
.yy-float-btn:hover {
    transform: scale(1.1);
}
.yy-float-cart {
    background: var(--coral);
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-pill);
    padding: 0 20px;
    width: auto;
    height: 52px;
    gap: 6px;
    display: none;
}

/* ============================================================
   FOOTER — 暖灰小字
   ============================================================ */
.yy-footer {
    text-align: center;
    padding: 36px 24px 28px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.8;
}
.yy-footer .divider {
    max-width: 1200px;
    margin: 0 auto 28px;
    height: 1px;
    background: var(--border-soft);
}
.yy-footer a { color: var(--text-muted); }
.yy-footer a:hover { color: var(--sage-dark); }
.yy-footer .footer-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 10px;
}

/* ============================================================
   TOAST NOTIFICATION — 温柔提示
   ============================================================ */
.yy-toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: rgba(255, 255, 255, 0.96);
    color: var(--text-primary);
    padding: 14px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-soft);
    font-size: 14px;
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s var(--ease-soft);
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: none;
}
.yy-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.yy-toast .toast-icon {
    width: 24px; height: 24px;
    border-radius: 50%;
    background: var(--sage);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.yy-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}
.yy-empty .icon { font-size: 48px; margin-bottom: 16px; opacity: 0.4; }
.yy-empty p { font-size: 15px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
    .yy-goods-grid, ul.products { grid-template-columns: repeat(3, 1fr) !important; }
    .yy-detail-image { width: 400px; }
}

@media (max-width: 768px) {
    .yy-goods-grid, ul.products { grid-template-columns: repeat(2, 1fr) !important; gap: 14px !important; }
    .yy-content-wrapper { width: calc(100% - 24px); padding: 24px 20px; }
    .yy-hero { padding: 0 12px; }
    .yy-hero-banner { padding: 36px 24px; min-height: 240px; }
    .yy-hero-main { padding: 32px 24px; }
    .yy-hero h1 { font-size: 26px; }
    .yy-hero p { font-size: 15px; }
    .yy-header-inner { flex-wrap: wrap; height: auto; padding: 12px 16px; }
    .yy-header { position: sticky; }
    .yy-nav { order: 3; width: 100%; overflow-x: auto; padding: 4px 0; gap: 2px; }
    .yy-nav a { white-space: nowrap; font-size: 13px; padding: 6px 12px; }
    .yy-search { display: none; }
    .yy-detail-box { flex-direction: column; gap: 24px; }
    .yy-detail-image { width: 100%; max-width: 420px; margin: 0 auto; }
    .yy-trust { padding: 0 12px; }
    .yy-trust-badge { padding: 8px 14px; font-size: 12.5px; }
    .yy-float-consult { bottom: 16px; right: 16px; }
    .yy-float-cart { display: flex; }
    .yy-section-title { font-size: 20px; }
}

@media (max-width: 480px) {
    /* ===== 8px 栅格：容器与边距 ===== */
    .yy-content-wrapper { width: calc(100% - 32px); margin: 24px auto; padding: 24px 16px; }
    .yy-hero { padding: 0 16px; }
    .yy-hero-banner { padding: 32px 24px; min-height: 220px; }
    .yy-hero-main { padding: 26px 18px; }
    .yy-hero h1 { font-size: 24px; line-height: 1.3; margin-bottom: 12px; }
    .yy-hero p { font-size: 14px; line-height: 1.6; margin-bottom: 20px; }
    .yy-hero-actions { gap: 12px; }
    .yy-cta-primary { padding: 12px 28px; font-size: 15px; }
    .yy-hero-hint { font-size: 12px; }

    /* 信任标牌：强制双列网格、统一内边距、文字不贴边 */
    .yy-trust { padding: 0 16px; display: grid !important; grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .yy-trust-badge { padding: 10px 12px; font-size: 12px; }

    /* 章节标题与网格 */
    .yy-section-header { margin-bottom: 20px; }
    .yy-section-title { font-size: 20px; gap: 8px; }
    .yy-more-btn { font-size: 13px; padding: 6px 12px; }

    .yy-goods-grid, ul.products { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }

    /* 商品卡：图片 1:1、信息区统一内边距、文字不贴边、触控友好 */
    .yy-good-image-wrapper { aspect-ratio: 1 / 1; }
    .yy-good-info { padding: 12px 16px 16px; }
    .yy-good-name { font-size: 14px; font-weight: 600; line-height: 1.45; height: auto; min-height: 40px; margin-bottom: 8px; }
    .yy-good-desc { font-size: 12px; line-height: 1.5; margin-bottom: 12px; }
    .yy-price-symbol { font-size: 13px; }
    .yy-price-value { font-size: 18px; }
    .yy-add-cart-btn { width: 40px; height: 40px; font-size: 16px; line-height: 40px; }

    /* 商品详情：主图 1:1、文字层级收紧 */
    .yy-detail-image { aspect-ratio: 1 / 1; }
    .yy-detail-image img { width: 100%; height: 100%; object-fit: cover; }
    .yy-detail-info h1 { font-size: 20px; }
    .yy-detail-desc { font-size: 14px; }
    .yy-detail-price-box { padding: 16px; }
    .yy-detail-price-value { font-size: 24px; }
}

/* ============================================================
   HOMEPAGE SHORTCODE STYLES — 后台编辑器短代码样式
   ============================================================ */
.yy-goods-grid { grid-template-columns: repeat(var(--cols, 4), 1fr); }

/* 自由文字区块 */
.yy-text-block {
    border-radius: 18px;
    padding: 28px 32px;
    margin: 24px 0;
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-secondary);
}
.yy-text-block.bg-soft   { background: #faf6f0; border: 1px solid #f0ebe3; }
.yy-text-block.bg-white  { background: #fff; border: 1px solid #ece5dd; box-shadow: 0 2px 12px rgba(122,110,100,0.04); }
.yy-text-block.bg-green  { background: #f0f6f1; border: 1px solid #dde9df; }
.yy-text-block.bg-pink   { background: #fdf4f0; border: 1px solid #f5e0d8; }
.yy-text-block.bg-none   { background: transparent; border: none; padding: 0; }
.yy-text-block h2, .yy-text-block h3 {
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 12px;
}
.yy-text-block p { margin-bottom: 12px; }
.yy-text-block img { border-radius: 14px; max-width: 100%; height: auto; }

/* 宽幅横幅 */
.yy-custom-banner {
    background-size: cover;
    background-position: center;
    background-color: #f5f0ea;
    border-radius: 20px;
    margin: 24px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    position: relative;
}
.yy-custom-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.25), rgba(0,0,0,0.1));
}
.yy-custom-banner-content {
    position: relative;
    z-index: 1;
    padding: 32px;
    color: #fff;
}
.yy-custom-banner-content h2 { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.yy-custom-banner-content p { font-size: 15px; opacity: 0.9; margin-bottom: 16px; }
.yy-banner-btn {
    display: inline-block;
    padding: 12px 32px;
    background: rgba(255,255,255,0.95);
    color: var(--coral-dark);
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.28s var(--ease-soft);
}
.yy-banner-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.2); }

/* 首页内容区域 */
.home .yy-content-wrapper,
.front-page .yy-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

/* 后台编辑器中的短代码提示 */
.wp-block-shortcode { 
    background: #f5f0ea; 
    border-radius: 8px; 
    padding: 8px 12px;
}

/* ============================================================
   CART & CHECKOUT — 经典WooCommerce柔暖样式
   ============================================================ */

/* Cart form */
.yy-cart-content,
.yy-checkout-content {
    margin-top: 20px;
}

.woocommerce-cart-form table.shop_table,
.woocommerce-checkout-review-order-table,
form.woocommerce-checkout table {
    border: none !important;
    border-radius: 18px !important;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(122, 110, 100, 0.06);
    border: 1px solid #f0ebe3 !important;
}

.woocommerce-cart-form table.shop_table th {
    background: #faf7f2 !important;
    color: var(--text-secondary) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    padding: 16px 14px !important;
    letter-spacing: 0;
    border-bottom: 1px solid #f0ebe3 !important;
}

.woocommerce-cart-form table.shop_table td {
    padding: 16px 14px !important;
    border-top: 1px solid #f5f0e8 !important;
    background: #fff !important;
}

.woocommerce-cart-form table.shop_table tr:hover td {
    background: #fffdf8 !important;
}

/* Product name in cart */
.woocommerce-cart-form .product-name a,
.woocommerce-cart-form .product-name {
    color: var(--text-primary) !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    text-decoration: none !important;
}

/* Product image in cart */
.woocommerce-cart-form .product-thumbnail img {
    border-radius: 12px !important;
    width: 72px !important;
    height: auto !important;
}

/* Quantity input */
.woocommerce-cart-form .qty:not(.input-text) {
    width: 56px !important;
    height: 40px !important;
    border-radius: 12px !important;
    border: 1.5px solid #e5d9cc !important;
    background: #fdf9f4 !important;
    text-align: center;
    font-size: 15px;
    color: var(--text-primary);
}
.woocommerce-cart-form .qty:focus {
    border-color: #f0b89e !important;
    box-shadow: 0 0 0 3px rgba(240, 184, 158, 0.12);
    outline: none;
}

/* Remove button */
.woocommerce-cart-form .product-remove a.remove {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: #fce8e0 !important;
    color: #d4795a !important;
    font-size: 18px !important;
    line-height: 30px !important;
    transition: all 0.2s;
}
.woocommerce-cart-form .product-remove a.remove:hover {
    background: #f5c0b0 !important;
    color: #fff !important;
    transform: scale(1.1);
}

/* Cart totals */
.cart_totals .shop_table,
.woocommerce-cart .cart-collaterals .cart_totals table {
    border-radius: 16px !important;
    border: 1px solid #f0ebe3 !important;
    background: #fffdf8 !important;
}
.cart_totals .shop_table th {
    background: transparent !important;
    border-bottom: 1px solid #f5f0e8 !important;
    font-size: 14px !important;
    color: var(--text-secondary) !important;
}
.cart_totals .shop_table td {
    border-bottom: 1px solid #f5f0e8 !important;
    text-align: right;
}

/* Coupon */
.woocommerce-cart-form .coupon .input-text,
.checkout_coupon .input-text {
    height: 44px !important;
    border-radius: 14px !important;
    border: 1.5px solid #e5d9cc !important;
    background: #fdf9f4 !important;
    padding: 0 16px !important;
    font-size: 14px !important;
    min-width: 140px !important;
}
.woocommerce-cart-form .coupon .button,
.checkout_coupon .button {
    height: 44px !important;
    border-radius: 14px !important;
    background: var(--bg-soft) !important;
    color: var(--text-secondary) !important;
    border: none !important;
    font-weight: 600 !important;
    padding: 0 24px !important;
    transition: all 0.25s;
}
.woocommerce-cart-form .coupon .button:hover,
.checkout_coupon .button:hover {
    background: var(--coral) !important;
    color: #fff !important;
}

/* Update cart button */
.woocommerce-cart-form button[name='update_cart'] {
    height: 44px !important;
    border-radius: 14px !important;
    background: var(--bg-soft-green) !important;
    color: var(--sage-dark) !important;
    border: none !important;
    font-weight: 600 !important;
    padding: 0 28px !important;
}

/* Proceed to checkout */
.wc-proceed-to-checkout .checkout-button,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
    height: 56px !important;
    line-height: 56px !important;
    border-radius: 50px !important;
    background: linear-gradient(135deg, #f8b4a2 0%, #e89a7c 100%) !important;
    color: #fff !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    text-align: center !important;
    box-shadow: 0 6px 20px rgba(232, 154, 124, 0.30) !important;
    transition: all 0.3s !important;
    margin-bottom: 8px !important;
    display: block !important;
    text-decoration: none !important;
}
.wc-proceed-to-checkout .checkout-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 30px rgba(232, 154, 124, 0.40) !important;
}

/* Cart empty state */
.woocommerce-cart .cart-empty,
.woocommerce-checkout .cart-empty {
    text-align: center;
    padding: 60px 20px !important;
    font-size: 18px !important;
    color: var(--text-muted) !important;
}
.woocommerce-cart .return-to-shop .button,
.woocommerce-checkout .return-to-shop .button {
    height: 48px !important;
    line-height: 48px !important;
    border-radius: 50px !important;
    background: linear-gradient(135deg, #f8b4a2, #e89a7c) !important;
    color: #fff !important;
    font-weight: 600 !important;
    padding: 0 40px !important;
}

/* Checkout form */
form.woocommerce-checkout .col2-set .col-1,
form.woocommerce-checkout .col2-set .col-2 {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
}

.woocommerce-billing-fields h3,
.woocommerce-shipping-fields h3,
.woocommerce-additional-fields h3,
#ship-to-different-address label {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: var(--text-primary) !important;
    margin-bottom: 16px !important;
    padding-bottom: 8px;
    border-bottom: 2px solid #f5f0e8;
}

/* Checkout inputs */
form.woocommerce-checkout input[type="text"],
form.woocommerce-checkout input[type="email"],
form.woocommerce-checkout input[type="tel"],
form.woocommerce-checkout input[type="password"],
form.woocommerce-checkout textarea,
form.woocommerce-checkout select {
    height: 50px !important;
    border-radius: 14px !important;
    border: 1.5px solid #e5d9cc !important;
    background: #fdf9f4 !important;
    padding: 0 16px !important;
    font-size: 15px !important;
    color: var(--text-primary) !important;
    transition: all 0.25s;
    width: 100%;
    box-sizing: border-box;
}
form.woocommerce-checkout textarea {
    height: auto !important;
    padding: 12px 16px !important;
    min-height: 80px;
}
form.woocommerce-checkout input:focus,
form.woocommerce-checkout textarea:focus,
form.woocommerce-checkout select:focus {
    border-color: #f0b89e !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(240, 184, 158, 0.12) !important;
    outline: none !important;
}

/* Checkout labels */
form.woocommerce-checkout label {
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: var(--text-secondary) !important;
    margin-bottom: 5px !important;
}

/* Place order button */
#place_order {
    height: 56px !important;
    border-radius: 50px !important;
    background: linear-gradient(135deg, var(--sage) 0%, #5d8462 100%) !important;
    color: #fff !important;
    border: none !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    width: 100% !important;
    box-shadow: 0 6px 20px rgba(122, 158, 126, 0.30) !important;
    transition: all 0.3s !important;
    cursor: pointer !important;
}
#place_order:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 30px rgba(122, 158, 126, 0.40) !important;
}
#place_order:active {
    transform: scale(0.97) !important;
}

/* Order review table */
.woocommerce-checkout-review-order-table {
    border-radius: 16px !important;
    border: 1px solid #f0ebe3 !important;
    overflow: hidden;
}
.woocommerce-checkout-review-order-table th {
    background: #faf7f2 !important;
    color: var(--text-secondary) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    padding: 14px !important;
}
.woocommerce-checkout-review-order-table td {
    padding: 14px !important;
    border-top: 1px solid #f5f0e8 !important;
}
.woocommerce-checkout-review-order-table .order-total th,
.woocommerce-checkout-review-order-table .order-total td {
    background: #fffdf8 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--coral-dark) !important;
}

/* Payment methods */
ul.wc_payment_methods,
ul.payment_methods {
    list-style: none !important;
    padding: 0 !important;
}
ul.wc_payment_methods li {
    background: #fffdf8 !important;
    border: 1px solid #f0ebe3 !important;
    border-radius: 14px !important;
    padding: 16px !important;
    margin-bottom: 10px !important;
    transition: all 0.2s;
}
ul.wc_payment_methods li:hover {
    border-color: #f0b89e !important;
}
ul.wc_payment_methods label {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: var(--text-primary) !important;
    cursor: pointer;
}
ul.wc_payment_methods .payment_box {
    background: #faf7f2 !important;
    border-radius: 10px !important;
    padding: 12px 16px !important;
    margin-top: 10px !important;
    border: none !important;
}

/* Checkout notices */
.woocommerce-NoticeGroup,
.woocommerce-info,
.woocommerce-message {
    background: var(--bg-soft-green) !important;
    border-radius: 14px !important;
    border: 1px solid var(--border-green, #d8e8da) !important;
    color: var(--sage-dark) !important;
    padding: 14px 20px !important;
    list-style: none !important;
}
.woocommerce-info::before,
.woocommerce-message::before {
    color: var(--sage) !important;
}

/* Login reminder on checkout */
.woocommerce-form-login-toggle .woocommerce-info {
    background: var(--bg-soft-pink) !important;
    border-color: #f5e0d8 !important;
    color: var(--coral-dark) !important;
}
.woocommerce-form-login-toggle .woocommerce-info::before {
    color: var(--coral-dark) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .woocommerce-cart-form table.shop_table thead { display: none; }
    .woocommerce-cart-form table.shop_table tr { display: block; padding: 12px; border-bottom: 2px solid #f5f0e8; }
    .woocommerce-cart-form table.shop_table td { display: block; text-align: right !important; padding: 4px 0 !important; border: none !important; }
    .woocommerce-cart-form table.shop_table td::before {
        content: attr(data-title);
        float: left;
        font-weight: 600;
        font-size: 13px;
        color: var(--text-secondary);
    }
    .woocommerce-cart-form .product-thumbnail { display: none !important; }
    .woocommerce-cart-form .product-quantity .qty { width: 80px !important; }
}

/* ============================================================
   AUTH PAGES — 登录/注册 大容器柔暖设计
   ============================================================ */
.yy-auth-wrap {
    min-height: calc(100vh - 64px);
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    justify-content: center;
    padding: 32px 0;
    background: linear-gradient(160deg, #fff9f0 0%, #ffefea 50%, #fdf4ee 100%);
    position: relative;
}

/* 柔和装饰圆 */
.yy-auth-wrap::before {
    content: '';
    position: absolute;
    top: 60px; left: 8%;
    width: 280px; height: 280px;
    background: rgba(232, 168, 124, 0.10);
    border-radius: 50%;
    filter: blur(60px);
}
.yy-auth-wrap::after {
    content: '';
    position: absolute;
    bottom: 40px; right: 8%;
    width: 320px; height: 320px;
    background: rgba(122, 158, 126, 0.08);
    border-radius: 50%;
    filter: blur(70px);
}

.yy-auth-card {
    position: relative;
    z-index: 1;
    width: 90%;
    max-width: 90vw;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 32px;
    padding: 56px 8%;
    box-shadow: 0 12px 48px rgba(122, 110, 100, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.7);
}

/* 登录/注册页通知（错误/成功提示） */
.yy-auth-notices {
    position: relative;
    z-index: 1;
    width: 90%;
    max-width: 90vw;
}
.yy-auth-notices .woocommerce-message,
.yy-auth-notices .woocommerce-error,
.yy-auth-notices .woocommerce-info {
    margin: 0;
    border-radius: 14px;
    font-size: 14px;
}
.yy-auth-notices .woocommerce-error {
    background: #fdf1ef;
    border-top-color: #d4895f;
    color: #a33d2b;
}
.yy-auth-notices .woocommerce-error::before { color: #d4895f; }
.yy-auth-notices .woocommerce-message {
    background: #f1f8f1;
    border-top-color: #7a9e7e;
    color: #3b6d11;
}
.yy-auth-notices .woocommerce-message::before { color: #7a9e7e; }

.yy-auth-header {
    text-align: center;
    margin-bottom: 36px;
}
.yy-auth-emoji {
    font-size: 52px;
    margin-bottom: 14px;
    display: inline-block;
    animation: yy-float 3s ease-in-out infinite;
}
@keyframes yy-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
.yy-auth-header h1 {
    font-size: 30px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}
.yy-auth-header p {
    font-size: 16px;
    color: var(--text-muted);
}

.yy-auth-form { margin: 0; }

.yy-field-group {
    margin-bottom: 22px;
    position: relative;
}
.yy-field-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    padding-left: 4px;
}
.yy-field-hint {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 6px;
    line-height: 1.4;
    padding-left: 4px;
}

/* 输入框 — 更圆润柔和 */
.yy-input {
    width: 100%;
    height: 56px;
    padding: 0 22px;
    border: 2px solid #ecdfd1;
    border-radius: 18px;
    font-size: 16px;
    color: var(--text-primary);
    background: #fdf9f4;
    transition: all 0.3s var(--ease-soft);
    font-family: inherit;
    box-sizing: border-box;
}
.yy-input::placeholder {
    color: #cbbfae;
}
.yy-input:hover {
    border-color: #e0cdb8;
    background: #fffdf9;
}
.yy-input:focus {
    border-color: #f0b89e;
    background: #ffffff;
    box-shadow: 0 0 0 5px rgba(240, 184, 158, 0.14), 0 2px 8px rgba(240, 184, 158, 0.08);
}

/* Password field with toggle */
.yy-password-wrap {
    position: relative;
    display: block;
}
.yy-password-wrap .yy-input {
    padding-right: 56px;
}
.yy-toggle-pwd {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 20px;
    user-select: none;
    opacity: 0.5;
    transition: opacity 0.2s, transform 0.2s;
}
.yy-toggle-pwd:hover { opacity: 1; transform: translateY(-50%) scale(1.1); }

/* Divider */
.yy-auth-divider {
    text-align: center;
    margin: 28px 0 24px;
    position: relative;
    color: var(--text-muted);
    font-size: 13px;
}
.yy-auth-divider::before {
    content: '';
    position: absolute;
    top: 50%; left: 0; right: 0;
    height: 1px;
    background: var(--border-light);
}
.yy-auth-divider span {
    position: relative;
    background: transparent;
    padding: 0 16px;
}

/* Privacy hint */
.yy-auth-privacy {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin: 18px 0 28px;
    padding: 14px;
    background: var(--bg-soft-green);
    border-radius: 14px;
}

/* Options row */
.yy-auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    font-size: 14.5px;
    padding: 0 4px;
}
.yy-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-secondary);
}
.yy-remember input[type="checkbox"] {
    width: 20px; height: 20px;
    accent-color: var(--sage);
    cursor: pointer;
    border-radius: 6px;
}
.yy-forgot {
    color: var(--text-muted);
    font-size: 14px;
    transition: var(--transition);
}
.yy-forgot:hover { color: var(--coral-dark); }

/* 提交按钮 — 胶囊形更柔和 */
.yy-auth-submit { margin: 0; padding: 0 4px; }
.yy-auth-btn {
    width: 100%;
    height: 58px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, #f8b4a2 0%, #e89a7c 50%, #e08a6a 100%);
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--ease-soft);
    letter-spacing: 0.02em;
    box-shadow: 0 6px 20px rgba(232, 154, 124, 0.30);
    position: relative;
    overflow: hidden;
}
.yy-auth-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}
.yy-auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(232, 154, 124, 0.40);
    background: linear-gradient(135deg, #f0a088 0%, #e08a6a 50%, #d67a5a 100%);
}
.yy-auth-btn:hover::before { left: 100%; }
.yy-auth-btn:active {
    transform: scale(0.97);
}

/* Switch link */
.yy-auth-switch {
    text-align: center;
    margin-top: 28px;
    font-size: 15px;
    color: var(--text-muted);
}
.yy-auth-switch a {
    color: var(--coral-dark);
    font-weight: 600;
    transition: var(--transition);
    margin-left: 2px;
}
.yy-auth-switch a:hover {
    color: var(--sage-dark);
}

/* WooCommerce error/message on auth page */
.woocommerce-error,
.woocommerce-message {
    background: var(--bg-soft-pink) !important;
    border-radius: 14px !important;
    border: 1px solid #f5e0d8 !important;
    color: var(--coral-dark) !important;
    padding: 14px 20px !important;
    margin-bottom: 20px !important;
    font-size: 14px !important;
    list-style: none !important;
}
.woocommerce-error li,
.woocommerce-message li { list-style: none !important; }

/* Logged-in account page */
.woocommerce-MyAccount-navigation ul {
    list-style: none; padding: 0; margin: 0 0 24px;
    display: flex; gap: 8px; flex-wrap: wrap;
}
.woocommerce-MyAccount-navigation ul li a {
    display: inline-block; padding: 8px 18px;
    border-radius: 50px; background: var(--bg-soft);
    color: var(--text-secondary); font-size: 14px; font-weight: 500;
    transition: var(--transition); text-decoration: none;
}
.woocommerce-MyAccount-navigation ul li.is-active a {
    background: var(--sage); color: #fff;
}
.woocommerce-MyAccount-navigation ul li a:hover {
    background: var(--coral); color: #fff;
}
.woocommerce-MyAccount-content { padding: 0; font-size: 14.5px; }

@media (max-width: 768px) {
    .yy-auth-card { padding: 40px 24px; }
    .yy-auth-header h1 { font-size: 24px; }
    .yy-auth-header p { font-size: 14.5px; }
    .yy-input { height: 52px; font-size: 15px; border-radius: 16px; }
    .yy-auth-btn { height: 54px; font-size: 16px; }
}
@media (max-width: 480px) {
    .yy-auth-wrap { padding: 16px 0; }
    .yy-auth-card { width: 92%; padding: 32px 20px; border-radius: 24px; }
    .yy-auth-header h1 { font-size: 22px; }
    .yy-auth-header .yy-auth-emoji { font-size: 42px; }
}

/* ===== 视频背景 Hero：无障碍与降级 =====
   1) 用户开启「减少动效」→ 不播放视频，露出 banner 的暖橙渐变；
   2) 视频尚未加载 / 加载失败 → 同样是暖橙渐变兜底（.yy-hero-banner 自带 background）。
   两条规则都排在文件末尾，确保不被前面的规则覆盖。 */
@media (prefers-reduced-motion: reduce) {
    .yy-hero-video { display: none !important; }
}
