/* Shared catalog presentation; product cards intentionally follow the live site's story-card rules in main.css. */
body.theme-classic3[data-page^="products"] .product-channel-hero>img[src]{left:auto;right:0;width:70%;max-width:70%;object-fit:cover;object-position:right center}
@media(max-width:640px){body.theme-classic3[data-page^="products"] .product-channel-hero>img[src]{width:100%;max-width:100%;opacity:.5}}
body.theme-classic3[data-page^="products"]{background:#f6f9fc}
body.theme-classic3[data-page^="products"] [hidden]{display:none!important}
body.theme-classic3[data-page^="products"] .product-channel-hero{display:flex;position:relative;min-height:310px;height:auto;padding:55px 0;align-items:center;background:#edf6fb;overflow:hidden;margin:var(--header-height,72px) 0 0}
body.theme-classic3[data-page^="products"] .product-channel-hero>img{display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center top;opacity:1}
body.theme-classic3[data-page^="products"] .product-channel-hero::after{background:linear-gradient(90deg,#f6fbffff 0%,#f6fbffed 35%,#f6fbff55 68%,transparent)}
body.theme-classic3[data-page^="products"] .product-channel-hero .container,body.theme-classic3[data-page^="products"] .product-catalog-section>.container{width:calc(100% - 80px);max-width:1200px;margin:auto;position:relative}
body.theme-classic3[data-page^="products"] .product-channel-hero h1{font-size:38px;line-height:1.3;max-width:620px;margin:12px 0;color:#12395f}
body.theme-classic3[data-page^="products"] .product-channel-hero p{font-size:16px;max-width:570px;line-height:1.9;margin:0;color:#586f87}
body.theme-classic3[data-page^="products"] .product-catalog-section{position:relative;min-height:0;margin:0;padding:30px 0 64px;background:#f6f9fc}
body.theme-classic3[data-page^="products"] .product-channel-tabs{position:static;inset:auto;display:flex;justify-content:center;gap:12px;margin:0 0 26px;flex-wrap:wrap}
body.theme-classic3[data-page^="products"] .product-channel-tabs a{min-width:138px;padding:13px 22px;border-radius:6px;font-size:16px;font-weight:600}
body.theme-classic3[data-page^="products"] .product-filters{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:10px 0!important;margin:0;border:0;background:transparent;grid-template-columns:none}
body.theme-classic3[data-page^="products"] .product-filters .filter-btn{display:inline-flex;align-items:center;justify-content:center;min-width:76px;padding:8px 15px;font-size:14px;line-height:1.5;border-radius:6px;text-decoration:none;grid-column:auto}
.catalog-filter-label{min-width:46px;color:#7b8b9d;font-size:14px}.catalog-results{display:flex;justify-content:space-between;align-items:center;padding:22px 0 18px;gap:14px}.catalog-results h2{margin:0;font-size:22px;color:#12395f}.catalog-results p{margin:0;color:#7b8b9d;font-size:14px}
@media(max-width:640px){body.theme-classic3[data-page^="products"] .product-channel-hero{min-height:245px;padding:35px 0}body.theme-classic3[data-page^="products"] .product-channel-hero .container,body.theme-classic3[data-page^="products"] .product-catalog-section>.container{width:calc(100% - 36px)}body.theme-classic3[data-page^="products"] .product-channel-hero h1{font-size:29px;max-width:80%}body.theme-classic3[data-page^="products"] .product-channel-hero p{font-size:14px;max-width:83%}body.theme-classic3[data-page^="products"] .product-channel-hero::after{background:linear-gradient(90deg,#f6fbfff5,#f6fbffbf 65%,#f6fbff45)}body.theme-classic3[data-page^="products"] .product-channel-tabs{gap:7px;margin-bottom:18px}body.theme-classic3[data-page^="products"] .product-channel-tabs a{min-width:0;flex:1;padding:10px 8px;font-size:14px}.catalog-results{align-items:flex-start}.catalog-results h2{font-size:20px}.catalog-filter-label{min-width:40px}}

@media(max-width:760px){body.theme-classic3[data-page^='products'] .site-header nav.nav-desktop{display:none!important}body.theme-classic3[data-page^='products'] .site-header .header-inner{display:flex;justify-content:space-between}body.theme-classic3[data-page^='products'] .site-header .header-tools{margin-left:auto}body.theme-classic3[data-page^='products'] .product-filters .filter-btn{width:auto!important;max-width:none!important;flex:0 0 auto;min-width:62px;padding:8px 12px}body.theme-classic3[data-page^='products'] .catalog-filter-label{display:block;flex:0 0 40px;width:40px;text-align:left}body.theme-classic3[data-page^='products'] .product-age-pills{justify-content:flex-start;align-items:center}}

/* One aligned control panel across overview, child, adult and age landing pages. */
body.theme-classic3[data-page^="products"] .product-catalog-section>.container{display:block}
body.theme-classic3[data-page^="products"] .catalog-controls{display:block;width:100%;max-width:none;box-sizing:border-box;padding:24px;background:#fff;border:1px solid #e3ebf2;border-radius:12px;text-align:left;box-shadow:0 4px 18px #26476704}
body.theme-classic3[data-page^="products"] .catalog-controls .product-channel-tabs{width:100%;justify-content:center;margin:0 0 14px;padding:0 0 22px;border-bottom:1px solid #edf1f5}
body.theme-classic3[data-page^="products"] .catalog-controls .product-filters{position:relative;justify-content:flex-start;align-content:flex-start;text-align:left;width:100%;max-width:none;min-height:56px;padding:8px 0 8px 64px!important;gap:10px;box-sizing:border-box}
body.theme-classic3[data-page^="products"] .catalog-controls .catalog-filter-label,body.theme-classic3[data-page^="products"] .catalog-controls .product-scene-pills::before{position:absolute;left:0;top:18px;min-width:46px;width:46px;margin:0;color:#7b8b9d;font-size:14px;line-height:22px;text-align:left}
body.theme-classic3[data-page^="products"] .catalog-controls .product-scene-pills::before{content:'需求'}
body.theme-classic3[data-page^="products"] .catalog-controls .filter-btn{margin:0;min-height:39px;box-sizing:border-box;cursor:pointer;transition:background .15s,border-color .15s;white-space:nowrap}
body.theme-classic3[data-page^="products"] .catalog-controls a:focus-visible,body.theme-classic3[data-page^="products"] .catalog-controls button:focus-visible{outline:2px solid #12395f;outline-offset:3px}
body.theme-classic3[data-page^="products"] .catalog-controls .filter-btn:not(.active):hover{background:#fff4f4;border-color:#ed2436;color:#dc1d30}
body.theme-classic3[data-page^="products"] .catalog-results{width:100%;max-width:none;justify-content:space-between;text-align:left;padding:24px 0 14px}
body.theme-classic3[data-page^="products"] .catalog-results h2,body.theme-classic3[data-page^="products"] .catalog-results p{margin:0;text-align:left}
@media(max-width:640px){body.theme-classic3[data-page^="products"] .catalog-controls{padding:16px 12px}body.theme-classic3[data-page^="products"] .catalog-controls .product-channel-tabs{gap:6px;padding-bottom:16px;margin-bottom:10px}body.theme-classic3[data-page^="products"] .catalog-controls .product-channel-tabs a{padding:10px 5px;min-width:0}body.theme-classic3[data-page^="products"] .catalog-controls .product-filters{padding-left:46px!important;gap:8px}body.theme-classic3[data-page^="products"] .catalog-controls .catalog-filter-label,body.theme-classic3[data-page^="products"] .catalog-controls .product-scene-pills::before{width:36px;min-width:36px}body.theme-classic3[data-page^="products"] .catalog-results{padding-top:20px}}

/* Shared compact proportions for scene combinations (not the main product cards). */
body.theme-classic3[data-page^="products"] .product-combo-grid{gap:24px}
.catalog-product-group{grid-column:1/-1;min-width:0;margin:0 0 12px}.catalog-group-heading{display:flex;align-items:center;gap:12px;margin:4px 0 16px;padding-bottom:12px;border-bottom:1px solid #e1e9f0}.catalog-group-heading h3{margin:0;font-size:18px;color:#12395f}.catalog-group-heading span{font-size:12px;color:#8191a3}
body.theme-classic3[data-page^="products"] .product-combo-card{display:block;min-height:0;height:184px;padding:0;border:1px solid #e3ebf2;border-radius:9px;background:#fff;box-shadow:0 5px 22px #26476706}
body.theme-classic3[data-page^="products"] .product-combo-card__link{display:grid;grid-template-columns:120px minmax(0,1fr);height:100%;color:inherit;text-decoration:none;outline-offset:-3px}
body.theme-classic3[data-page^="products"] .product-combo-card__media{width:120px;height:100%;margin:0;padding:16px 10px;border-radius:0;background:linear-gradient(135deg,#f5f9fc,#fff);box-sizing:border-box}
body.theme-classic3[data-page^="products"] .product-combo-card__media img{object-fit:contain}
body.theme-classic3[data-page^="products"] .product-combo-card__body{padding:14px 16px;overflow:hidden}
body.theme-classic3[data-page^="products"] .product-combo-card__age{font-size:10px;line-height:1.5;padding:2px 7px;margin:0 0 6px;color:var(--combo-theme);background:var(--combo-theme-tint)}
body.theme-classic3[data-page^="products"] .product-combo-card__title{font-size:16px;line-height:1.4;color:#12395f;margin:0 0 6px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
body.theme-classic3[data-page^="products"] .product-combo-card__intro{font-size:12px;line-height:1.6;color:#7b8b9d;margin:0 0 6px}
body.theme-classic3[data-page^="products"] .product-combo-card__cta{min-width:96px;min-height:29px;padding:5px 12px;font-size:12px;line-height:1.5;border:0;background:#e51e30;color:#fff;box-sizing:border-box}
@media(max-width:1050px){body.theme-classic3[data-page^="products"] .product-combo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){body.theme-classic3[data-page^="products"] .product-combo-grid{grid-template-columns:1fr}body.theme-classic3[data-page^="products"] .product-combo-grid{gap:18px}.catalog-product-group{margin-bottom:6px}body.theme-classic3[data-page^="products"] .product-combo-card{height:190px}body.theme-classic3[data-page^="products"] .product-combo-card__link{grid-template-columns:108px minmax(0,1fr)}body.theme-classic3[data-page^="products"] .product-combo-card__media{width:108px;padding:14px 8px}}

.product-scene-age{margin:28px 0}.scene-content-pending{padding:32px;background:#faf7f4;border-radius:12px}
body.theme-classic3[data-page^="products"] .product-scene-age .product-combo-card{height:auto}
body.theme-classic3[data-page^="products"] .product-scene-age .product-combo-card__link{display:flex;flex-direction:column;height:100%}
body.theme-classic3[data-page^="products"] .product-scene-age .product-combo-card__media{width:100%;height:190px;padding:16px}
body.theme-classic3[data-page^="products"] .product-scene-age .product-combo-card__body{padding:18px 20px;gap:6px}
body.theme-classic3[data-page^="products"] .product-scene-age .product-combo-card__cta{align-self:flex-start;margin-top:auto}

#products-grid.product-combo-stage{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;align-items:start}.product-scene-age{min-width:0;margin:0}.product-scene-age .product-combo-grid{display:grid;grid-template-columns:1fr;gap:20px}.product-combo-card__media img{width:100%;height:240px;object-fit:cover}.product-combo-card__body{padding:18px;text-align:center}@media(max-width:760px){#products-grid.product-combo-stage{grid-template-columns:1fr}}
body.theme-classic3[data-page^="products"] .product-scene-age .product-combo-card__media{height:220px;padding:0}body.theme-classic3[data-page^="products"] .product-scene-age .product-combo-card__media img{height:100%;width:100%;object-fit:cover}body.theme-classic3[data-page^="products"] .product-scene-age .product-combo-card__cta{align-self:center}
body.theme-classic3[data-page^="products"] #products-grid .product-scene-age .product-combo-grid{display:grid;grid-template-columns:1fr;width:100%}body.theme-classic3[data-page^="products"] #products-grid .product-scene-age .product-combo-card{width:100%;max-width:none}

/* Full-card link without changing the live compact card's direct-child layout. */
body.theme-classic3[data-page^="products"] .product-bento--catalog .product-card .product-card-hit{position:absolute;inset:0;z-index:5;display:block;border-radius:inherit;text-decoration:none}
body.theme-classic3[data-page^="products"] .product-bento--catalog .product-card .product-card-hit:focus-visible{outline:2px solid var(--color-primary);outline-offset:2px}

/* 产品页面：隐藏分组标题右侧的数量文字（如“共 20 款”“共 10 款”） */
body[data-page^="products"] .catalog-audience-group>h2 small,body[data-page^="products"] .catalog-type-group>h3 small{display:none}

/* 产品总览：仅页签、无筛选区时去掉页签底部分隔线和留白 */
body.theme-classic3 .catalog-controls.catalog-controls--tabs-only .product-channel-tabs{margin-bottom:0;padding-bottom:0;border-bottom:0}

/* 婴童/成人产品页：隐藏类型筛选行（全部/益生菌/营养品），保留控件供脚本读取类型名称 */
body.theme-classic3 .catalog-controls--no-type #products-type-filters{display:none!important}


/* 婴童组合推荐：卡片上方的年龄标签 */
.catalog-combo-entry{display:flex;flex-direction:column;gap:12px;min-width:0}
.catalog-combo-entry>.product-combo-card{width:100%}
.catalog-combo-age{display:flex;align-items:center;gap:14px;margin:0;color:#0b315c;font-size:clamp(19px,2vw,26px);font-weight:800;line-height:1.3}
.catalog-combo-age::before{content:'';flex:0 0 28px;width:28px;height:3px;border-radius:2px;background:#e51e30}
.catalog-combo-entry:has(.product-combo-card[hidden]){display:none!important}


/* 产品列表卡片高度与产品组合推荐卡片保持一致（仅桌面横向卡片；平板/移动端为纵向卡片，高度随内容自适应） */
@media(min-width:769px){
  body.theme-classic3[data-page^="products"] .product-bento--catalog .product-card,
  body.theme-classic3[data-page^="products"] .product-bento--catalog .product-card:nth-child(1),
  body.theme-classic3[data-page^="products"] .product-bento--catalog .product-card:nth-child(2){height:192px}
}
/* 移动端不锁定卡片高度：由 classic3 / cms-adaptation 的纵向自适应或横向紧凑布局决定 */


/* 产品列表卡片亮点：完整显示并自动换行 */
body.theme-classic3[data-page^="products"] .product-bento--catalog .product-card-body p:not(.product-card-spec){
  display:block;
  -webkit-line-clamp:unset;
  -webkit-box-orient:unset;
  white-space:normal;
  overflow:visible;
  text-overflow:clip;
  overflow-wrap:anywhere;
}

/* 产品总览/婴童/成人产品页移动端 Banner：放大图片、取消蒙版，文字叠在图片左侧 */
@media(max-width:640px){
  body.theme-classic3[data-page="products"] .product-channel-hero,
  body.theme-classic3[data-page="products-child"] .product-channel-hero,
  body.theme-classic3[data-page="products-adult"] .product-channel-hero{display:block!important;position:relative;height:44vw!important;min-height:0!important;max-height:none!important;padding:0!important;background:#edf6fb;overflow:hidden}
  body.theme-classic3[data-page="products-child"] .product-channel-hero>img[src],
  body.theme-classic3[data-page="products-adult"] .product-channel-hero>img[src]{position:absolute;inset:0;width:100%;height:100%;max-width:none;opacity:1;object-fit:cover;object-position:100% 50%}
  body.theme-classic3[data-page="products"] .product-channel-hero>img[src]{position:absolute;inset:0;width:100%;height:100%;max-width:none;opacity:1;object-fit:cover;object-position:45% 50%}
  body.theme-classic3[data-page="products"] .product-channel-hero::after,
  body.theme-classic3[data-page="products-child"] .product-channel-hero::after,
  body.theme-classic3[data-page="products-adult"] .product-channel-hero::after{content:none;background:none}
  body.theme-classic3[data-page="products"] .product-channel-hero .container,
  body.theme-classic3[data-page="products-child"] .product-channel-hero .container,
  body.theme-classic3[data-page="products-adult"] .product-channel-hero .container{position:absolute;left:18px;right:18px;top:0;bottom:0;width:auto;max-width:none;margin:0;padding:0;display:flex;flex-direction:column;justify-content:center}
  body.theme-classic3[data-page="products"] .product-channel-hero .section-label,
  body.theme-classic3[data-page="products-child"] .product-channel-hero .section-label,
  body.theme-classic3[data-page="products-adult"] .product-channel-hero .section-label{font-size:clamp(11px,2.5vw,13px);line-height:1.2;margin:0 0 3px}
  body.theme-classic3[data-page="products-child"] .product-channel-hero h1,
  body.theme-classic3[data-page="products-adult"] .product-channel-hero h1{font-size:clamp(21px,5.8vw,31px);line-height:1.15;max-width:45%;margin:0 0 4px}
  body.theme-classic3[data-page="products"] .product-channel-hero h1{font-size:clamp(21px,5.8vw,31px);line-height:1.15;max-width:43%;margin:0 0 4px}
  body.theme-classic3[data-page="products-child"] .product-channel-hero p,
  body.theme-classic3[data-page="products-adult"] .product-channel-hero p{font-size:clamp(11px,2.7vw,14px);line-height:1.4;max-width:45%;margin:0}
  body.theme-classic3[data-page="products"] .product-channel-hero p{font-size:clamp(11px,2.7vw,14px);line-height:1.4;max-width:43%;margin:0}
}
