/**
 * YuyiBuy news category and article layouts.
 * Ported from the owner-supplied EasyStore Aroma 2.0.0 source and scoped to
 * WordPress news templates. Theme version 3.1.4.
 */

/* This stylesheet is enqueued only for news categories and blog posts. Keep
 * horizontal rails and wide imported media inside their own scroll areas. */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

/* EasyStore category layout. */
  #yb-blog-page{
    --yb-pink:#ff78c8;
    --yb-blue:#6da8ff;
    --yb-purple:#765cff;
    --yb-deep:#504a8f;
    --yb-ink:#20243a;
    --yb-muted:#73778d;
    --yb-line:#dfe2ef;
    --yb-soft:#f7f7ff;
    --yb-white:#fff;
    color:var(--yb-ink);
    font-family:Arial,"Noto Sans TC","Microsoft JhengHei",sans-serif;
  }

  #yb-blog-page,
  #yb-blog-page *{box-sizing:border-box}

  #yb-blog-page a{
    color:inherit;
    text-decoration:none;
  }

  #yb-blog-page img{
    display:block;
    max-width:100%;
  }

  .yb-blog-wrap{
    width:min(1680px,100%);
    margin:0 auto;
    padding:26px clamp(16px,3vw,48px) 72px;
  }

  .yb-blog-hero{
    position:relative;
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:28px;
    align-items:center;
    min-height:210px;
    padding:34px clamp(24px,4vw,58px);
    overflow:hidden;
    border:1px solid var(--yb-line);
    border-radius:24px;
    background:
      radial-gradient(520px 240px at 10% 0%,rgba(255,120,200,.20),transparent 68%),
      radial-gradient(560px 260px at 92% 12%,rgba(109,168,255,.24),transparent 68%),
      linear-gradient(135deg,#fff 0%,#f8f6ff 50%,#f3f8ff 100%);
  }

  .yb-blog-hero::after{
    content:"";
    position:absolute;
    right:-90px;
    bottom:-120px;
    width:320px;
    height:320px;
    border:46px solid rgba(118,92,255,.08);
    border-radius:50%;
  }

  .yb-blog-hero-main{
    position:relative;
    z-index:2;
    display:flex;
    align-items:center;
    gap:20px;
    min-width:0;
  }

  .yb-blog-icon{
    flex:0 0 82px;
    width:82px;
    height:82px;
    padding:4px;
    border:1px solid var(--yb-line);
    border-radius:50%;
    background:#fff;
    object-fit:cover;
  }

  .yb-blog-eyebrow{
    margin:0 0 7px;
    color:var(--yb-purple);
    font-size:13px;
    font-weight:900;
    letter-spacing:.12em;
    text-transform:uppercase;
  }

  .yb-blog-title{
    margin:0;
    color:var(--yb-ink);
    font-size:clamp(30px,4vw,52px);
    font-weight:900;
    line-height:1.08;
    letter-spacing:-.035em;
  }

  .yb-blog-subtitle{
    margin:11px 0 0;
    color:var(--yb-muted);
    font-size:15px;
    line-height:1.8;
  }

  .yb-blog-hero-actions{
    position:relative;
    z-index:2;
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:10px;
    width:190px;
  }

  .yb-blog-home-btn,
  .yb-blog-shop-btn{
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:44px;
    padding:0 16px;
    border:1px solid var(--yb-line);
    border-radius:12px;
    font-size:14px;
    font-weight:900;
    text-align:center;
  }

  .yb-blog-home-btn{
    border-color:transparent;
    background:linear-gradient(135deg,var(--yb-pink),var(--yb-blue));
    color:#fff!important;
  }

  .yb-blog-shop-btn{background:#fff}

  .yb-blog-toolbar{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:18px;
    align-items:center;
    margin:24px 0 34px;
    padding:16px 18px;
    border:1px solid #d9dcf0;
    border-radius:16px;
    background:linear-gradient(135deg,#fff8fc 0%,#f5f7ff 100%);
  }

  .yb-blog-search{
    position:relative;
    width:100%;
    max-width:none;
  }

  .yb-blog-search svg{
    position:absolute;
    left:18px;
    top:50%;
    width:21px;
    height:21px;
    transform:translateY(-50%);
    color:#6d63c8;
    pointer-events:none;
  }

  #blogSearchInput{
    width:100%;
    min-height:54px;
    padding:0 20px 0 54px;
    border:2px solid #c9c4ff;
    border-radius:14px;
    outline:none;
    background:#fff;
    color:var(--yb-ink);
    font:inherit;
    font-size:15px;
    font-weight:700;
  }

  #blogSearchInput::placeholder{
    color:#8b8fa5;
    font-weight:700;
  }

  #blogSearchInput:focus{
    border-color:var(--yb-purple);
    background:#fff;
  }

  .yb-blog-count{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:40px;
    padding:0 14px;
    border:1px solid #d9dcf0;
    border-radius:999px;
    background:#fff;
    color:#6258b7;
    font-size:13px;
    font-weight:900;
    white-space:nowrap;
  }

  .yb-section-head{
    display:flex;
    align-items:flex-end;
    gap:16px;
    min-height:37px;
    margin-bottom:22px;
    border-bottom:2px solid var(--yb-deep);
  }

  .yb-section-head strong{
    position:relative;
    display:inline-flex;
    align-items:center;
    min-height:35px;
    padding:0 15px;
    background:linear-gradient(135deg,var(--yb-pink),var(--yb-blue));
    color:#fff;
    font-size:14px;
    font-weight:900;
  }

  .yb-section-head strong::after{
    content:"";
    position:absolute;
    top:0;
    right:-20px;
    width:20px;
    height:100%;
    background:var(--yb-deep);
    clip-path:polygon(0 0,100% 100%,0 100%);
  }

  .yb-section-head span{
    margin-left:auto;
    padding-bottom:9px;
    color:#8a8ea2;
    font-size:13px;
    font-weight:700;
  }

  .yb-feature-layout{
    display:grid;
    grid-template-columns:minmax(0,520px) minmax(0,1fr);
    gap:24px;
    align-items:start;
    width:100%;
    margin:0 0 38px;
  }

  .yb-feature-main{
    display:block;
    min-width:0;
    max-width:520px;
  }

  .yb-feature-main img{
    display:block;
    width:100%;
    height:auto;
    max-height:300px;
    aspect-ratio:16/9;
    object-fit:cover;
    border-radius:0;
    background:#f0f1f8;
  }

  .yb-feature-main h2{
    margin:14px 0 6px;
    color:#252940;
    font-size:20px;
    line-height:1.45;
    font-weight:850;
  }

  .yb-feature-main p{
    margin:12px 0 0;
    color:#74788d;
    font-size:14px;
    line-height:1.85;
    display:-webkit-box;
    -webkit-line-clamp:4;
    -webkit-box-orient:vertical;
    overflow:hidden;
  }

  .yb-feature-meta{
    color:#777c92;
    font-size:13px;
    line-height:1.5;
    font-weight:700;
  }

  .yb-feature-list{
    display:grid;
    align-content:start;
    gap:0;
    min-width:0;
  }

  .yb-feature-item{
    display:grid;
    grid-template-columns:112px minmax(0,1fr);
    gap:14px;
    align-items:start;
    min-width:0;
    padding:0 0 14px;
    margin:0 0 14px;
    border:0;
    border-bottom:1px solid #e4e6f0;
    border-radius:0;
    background:transparent;
    overflow:visible;
  }

  .yb-feature-item:last-child{
    margin-bottom:0;
  }

  .yb-feature-item img{
    display:block;
    width:112px;
    height:75px;
    min-width:112px;
    max-width:112px;
    min-height:75px;
    max-height:75px;
    aspect-ratio:auto;
    object-fit:cover;
    border-radius:0;
    background:#f0f1f8;
  }

  .yb-feature-item > div{
    min-width:0;
    padding:0;
  }

  .yb-feature-item h3{
    margin:0;
    color:#2f334b;
    font-size:16px;
    line-height:1.55;
    font-weight:850;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
  }

  .yb-feature-item time{
    display:block;
    margin-top:6px;
    color:#7f8499;
    font-size:13px;
    font-weight:700;
  }

  .yb-blog-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:28px 14px;
    width:100%;
    max-width:none;
    margin:0;
  }

  .yb-blog-card{
    overflow:visible;
    border:0;
    border-radius:0;
    background:transparent;
  }

  .yb-blog-card[hidden]{display:none!important}

  .yb-blog-card > a{
    display:block;
  }

  .yb-blog-card img{
    display:block;
    width:100%!important;
    height:clamp(130px,10vw,175px)!important;
    min-height:0!important;
    max-height:175px!important;
    aspect-ratio:16/9!important;
    object-fit:cover!important;
    object-position:center!important;
    border-radius:0;
    background:#eef0f8;
  }

  .yb-blog-card-body{
    padding:10px 0 0;
  }

  .yb-blog-card-meta{
    margin:7px 0 0;
    color:#7f8499;
    font-size:13px;
    font-weight:700;
    text-align:center;
  }

  .yb-blog-card-title{
    margin:0;
    color:#30344c;
    font-size:16px;
    line-height:1.55;
    font-weight:850;
    text-align:center;
  }

  .yb-blog-card-desc{
    display:none;
  }

  .yb-blog-empty{
    display:none;
    grid-column:1/-1;
    padding:42px 16px;
    border:1px solid var(--yb-line);
    border-radius:16px;
    color:#85899e;
    text-align:center;
    font-size:14px;
  }

  .yb-blog-empty.is-visible{display:block}

  .pagination,
  .paginate,
  .paginator{
    margin:34px 0 0;
  }

  .pagination{
    width:100%;
    display:flex;
    justify-content:center;
  }

  .pagination ul,
  .pagination .pagination__list{
    display:flex;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
    gap:7px;
    margin:0;
    padding:0;
    list-style:none;
  }

  .pagination a,
  .pagination span{
    min-width:36px;
    height:36px;
    padding:0 10px;
    border:1px solid var(--yb-line);
    border-radius:10px;
    background:#fff;
    color:#50546b;
    font-size:13px;
    font-weight:900;
    display:inline-flex;
    align-items:center;
    justify-content:center;
  }

  .pagination .current,
  .pagination .active,
  .pagination .pagination__item--current{
    border-color:var(--yb-deep)!important;
    background:var(--yb-deep)!important;
    color:#fff!important;
  }

  @media(max-width:1100px){
    .yb-feature-layout{
      grid-template-columns:minmax(0,460px) minmax(0,1fr);
      gap:18px;
    }

    .yb-feature-main{
      max-width:460px;
    }

    .yb-feature-main img{
      max-height:270px;
    }

    .yb-feature-item{
      grid-template-columns:100px minmax(0,1fr);
      gap:12px;
    }

    .yb-feature-item img{
      width:100px;
      min-width:100px;
      max-width:100px;
      height:68px;
      min-height:68px;
      max-height:68px;
    }

    .yb-blog-grid{
      grid-template-columns:repeat(3,minmax(0,1fr));
    }

    .yb-blog-card img{
      height:165px!important;
      max-height:165px!important;
    }
  }

  @media(max-width:860px){
    .yb-feature-layout{
      grid-template-columns:1fr;
    }

    .yb-feature-main{
      max-width:620px;
    }

    .yb-feature-list{
      grid-template-columns:1fr 1fr;
      gap:0 20px;
    }

    .yb-blog-grid{
      grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .yb-blog-card img{
      height:200px!important;
      max-height:200px!important;
    }
  }

  @media(max-width:760px){
    .yb-blog-wrap{
      padding:16px 12px 48px;
    }

    .yb-blog-hero{
      grid-template-columns:1fr;
      min-height:0;
      padding:24px 18px;
      border-radius:18px;
    }

    .yb-blog-hero-main{
      align-items:flex-start;
    }

    .yb-blog-icon{
      flex-basis:62px;
      width:62px;
      height:62px;
    }

    .yb-blog-title{
      font-size:28px;
    }

    .yb-blog-hero-actions{
      flex-direction:row;
      width:100%;
    }

    .yb-blog-home-btn,
    .yb-blog-shop-btn{
      flex:1 1 0;
    }

    .yb-blog-toolbar{
      grid-template-columns:1fr;
      gap:10px;
      margin:18px 0 28px;
      padding:12px;
      border-radius:14px;
    }

    #blogSearchInput{
      min-height:52px;
      padding-left:50px;
      font-size:15px;
    }

    .yb-blog-search svg{
      left:16px;
      width:20px;
      height:20px;
    }

    .yb-blog-count{
      justify-self:end;
      min-height:34px;
      padding:0 12px;
    }

    .yb-feature-layout{
      display:block;
      margin-bottom:30px;
    }

    .yb-feature-main{
      max-width:none;
    }

    .yb-feature-main img{
      max-height:none;
      aspect-ratio:16/9;
    }

    .yb-feature-main h2{
      margin-top:12px;
      font-size:19px;
      font-weight:850;
    }

    .yb-feature-main p{
      margin-top:10px;
      font-size:14px;
      line-height:1.75;
      -webkit-line-clamp:3;
    }

    .yb-feature-list{
      grid-template-columns:1fr;
      gap:0;
      margin-top:18px;
    }

    .yb-feature-item{
      grid-template-columns:112px minmax(0,1fr);
      gap:12px;
      padding-bottom:14px;
      margin-bottom:14px;
    }

    .yb-feature-item img{
      width:112px;
      min-width:112px;
      max-width:112px;
      height:75px;
      min-height:75px;
      max-height:75px;
    }

    .yb-blog-grid{
      grid-template-columns:1fr;
      gap:0;
    }

    .yb-blog-card{
      display:grid;
      grid-template-columns:105px minmax(0,1fr);
      gap:12px;
      padding:12px 0;
      border-bottom:1px solid #e4e6f0;
    }

    .yb-blog-card a{
      display:contents;
    }

    .yb-blog-card img{
      width:105px!important;
      min-width:105px!important;
      max-width:105px!important;
      height:70px!important;
      min-height:70px!important;
      max-height:70px!important;
      aspect-ratio:auto!important;
      object-fit:cover!important;
    }

    .yb-blog-card-body{
      padding:0;
    }

    .yb-blog-card-title{
      color:#30344c;
      font-size:15px;
      line-height:1.55;
      font-weight:850;
      text-align:left;
    }

    .yb-blog-card-meta{
      margin-top:6px;
      color:#7f8499;
      font-size:13px;
      font-weight:700;
      text-align:left;
    }
  }

  @media(max-width:420px){
    .yb-blog-hero-main{
      gap:13px;
    }

    .yb-blog-icon{
      flex-basis:52px;
      width:52px;
      height:52px;
    }

    .yb-blog-title{
      font-size:24px;
    }

    .yb-blog-subtitle{
      font-size:12px;
    }

    .yb-blog-card{
      grid-template-columns:100px minmax(0,1fr);
    }

    .yb-blog-card img{
      width:100px!important;
      min-width:100px!important;
      max-width:100px!important;
      height:67px!important;
      min-height:67px!important;
      max-height:67px!important;
    }

    .yb-blog-quick{
      grid-template-columns:1fr;
    }
  }

  /* ===== 主題背景保留＋內容分區白底 ===== */
  #yb-blog-page,
  #yb-blog-page .yb-blog-wrap{
    background:transparent!important;
  }

  /* 只解除包住分類頁的外層白底，不碰 html、body 或主題背景切換功能 */
  body:has(#yb-blog-page) .page-container:has(#yb-blog-page),
  body:has(#yb-blog-page) .page-width:has(#yb-blog-page),
  body:has(#yb-blog-page) .container:has(#yb-blog-page),
  body:has(#yb-blog-page) .shopify-section:has(#yb-blog-page),
  body:has(#yb-blog-page) .section:has(#yb-blog-page){
    background-color:transparent!important;
  }

  /* 精選與全部文章各自成為獨立白色內容區塊 */
  .yb-blog-wrap > section,
  .yb-blog-wrap > main{
    padding:22px!important;
    border:1px solid var(--yb-line)!important;
    border-radius:18px!important;
    background:#fff!important;
  }

  .yb-blog-wrap > section{
    margin-bottom:30px!important;
  }

  .yb-blog-wrap > main{
    margin-top:0!important;
  }

  /* 讓各篇文章在白底區內仍有清楚的分隔感 */
  .yb-blog-card{
    padding:10px!important;
    border:1px solid #eceef6!important;
    border-radius:14px!important;
    background:#fff!important;
  }

  .yb-feature-main,
  .yb-feature-item{
    border-radius:12px!important;
  }

  @media(max-width:760px){
    .yb-blog-wrap > section,
    .yb-blog-wrap > main{
      padding:14px!important;
      border-radius:14px!important;
    }

    .yb-blog-card{
      padding:12px 0!important;
      border-width:0 0 1px!important;
      border-radius:0!important;
      background:transparent!important;
    }
  }

/* EasyStore single-article layout. */
  .article-template {
    --yb-purple: #765cff;
    --yb-pink: #ff78c8;
    --yb-blue: #6da8ff;
    --yb-deep: #504a8f;
    --yb-ink: #20243a;
    --yb-text: #34384f;
    --yb-line: #e2e5f1;
    color: var(--yb-ink);
    font-family: Arial, "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  }

  .article-template,
  .article-template * {
    box-sizing: border-box;
  }

  .yb-news-article-nav,
  .yb-news-article-bottom-nav {
    width: min(980px, calc(100% - 40px));
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
  }

  .yb-news-article-nav {
    justify-content: flex-start;
    margin-top: 0;
    margin-bottom: 22px;
  }

  .yb-news-article-bottom-nav {
    justify-content: center;
    margin-top: 34px;
    margin-bottom: 36px;
    padding-top: 22px;
    border-top: 1px solid var(--yb-line);
  }

  .yb-news-article-nav a,
  .yb-news-article-bottom-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid #d7daea;
    border-radius: 12px;
    background: #fff;
    color: #4f536c;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
  }

  .yb-news-article-nav a:first-child,
  .yb-news-article-bottom-nav a:first-child {
    border-color: transparent;
    background: linear-gradient(135deg, var(--yb-pink), var(--yb-blue));
    color: #fff;
  }

  .yb-news-article-nav a:hover,
  .yb-news-article-bottom-nav a:hover {
    border-color: #c9c4ff;
    background: #f8f7ff;
    color: var(--yb-purple);
  }

  .yb-news-article-nav a:first-child:hover,
  .yb-news-article-bottom-nav a:first-child:hover {
    background: linear-gradient(135deg, var(--yb-pink), var(--yb-blue));
    color: #fff;
  }

  #yb-article-top .article-template__hero-container {
    width: min(1100px, calc(100% - 40px));
    max-width: 1100px;
    margin: 24px auto 26px;
    padding: 0;
  }

  #yb-article-top .article-template__hero-adapt.media {
    position: relative;
    width: 100%;
    max-width: none;
    aspect-ratio: 3 / 1;
    height: auto;
    margin: 0;
    padding-bottom: 0;
    overflow: hidden;
    border: 1px solid var(--yb-line);
    border-radius: 18px;
    background: #eef0f8;
    box-shadow: none;
  }

  #yb-article-top .article-template__hero-adapt.media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  #yb-article-top .article-template__header {
    width: min(980px, calc(100% - 40px));
    max-width: 980px;
    margin: 0 auto 18px;
    padding: clamp(22px, 3vw, 30px);
    border: 1px solid #dfe2ef;
    border-bottom: 2px solid var(--yb-deep);
    border-radius: 18px;
    background: linear-gradient(135deg, #fff8fc 0%, #f5f7ff 100%);
    box-shadow: none;
    backdrop-filter: none;
    text-align: left;
  }

  .yb-article-category-label {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    margin-bottom: 14px;
    padding: 0 13px;
    background: linear-gradient(135deg, var(--yb-pink), var(--yb-blue));
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
  }

  #yb-article-top .article-template__title {
    display: block;
    margin: 0;
    padding: 0;
    background: transparent;
    color: var(--yb-ink);
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 900;
    line-height: 1.28;
    letter-spacing: -.025em;
    text-align: left;
  }

  #yb-article-top .article-template__title::before,
  #yb-article-top .article-template__title::after {
    display: none;
    content: none;
  }

  .yb-article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 14px;
    color: #7f8499;
    font-size: 14px;
    font-weight: 700;
  }

  #yb-article-top .article-template__header .circle-divider,
  #yb-article-top .article-template__header .caption-with-letter-spacing {
    display: inline-flex;
    margin: 0;
    color: inherit;
    font-size: inherit;
    letter-spacing: .04em;
  }

  .yb-article-author::before {
    content: "作者 ";
    color: #a0a4b5;
  }

  #yb-article-top .article-template__social-sharing {
    width: min(980px, calc(100% - 40px));
    max-width: 980px;
    margin: 0 auto 22px;
    padding: 0;
  }

  #yb-article-top .article-template__content {
    width: min(980px, calc(100% - 40px));
    max-width: 980px;
    margin: 0 auto;
    padding: 0;
    overflow: visible;
    color: var(--yb-text);
    font-size: 17px;
    line-height: 1.9;
  }

  #yb-article-top .article-template__content > p:first-child:empty,
  #yb-article-top .article-template__content > p:first-child br:only-child {
    display: none;
  }

  #yb-article-top .article-template__content .blog-wrapper {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    overflow: visible;
    background: transparent;
    color: var(--yb-text);
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
  }

  #yb-article-top .article-template__content .blog-title {
    display: none;
  }

  #yb-article-top .article-template__content .blog-hero {
    margin: 0 0 18px;
    padding: clamp(18px, 3vw, 26px);
    overflow: visible;
    border: 1px solid #dfe2ef;
    border-radius: 18px;
    background: linear-gradient(135deg, #fff8fc 0%, #f5f7ff 100%);
    box-shadow: none;
    backdrop-filter: none;
  }

  #yb-article-top .article-template__content .blog-summary {
    max-width: none;
    margin: 0;
    color: #4b5068;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.9;
    letter-spacing: 0;
    text-align: left;
  }

  #yb-article-top .article-template__content .toc {
    margin: 18px 0 0;
    padding: 16px 18px;
    border: 1px solid var(--yb-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: none;
  }

  #yb-article-top .article-template__content .toc-title {
    margin: 0 0 9px;
    color: var(--yb-deep);
    font-size: 15px;
    font-weight: 900;
    letter-spacing: .08em;
  }

  #yb-article-top .article-template__content .toc ul {
    margin: 0;
    padding-left: 20px;
  }

  #yb-article-top .article-template__content .toc li {
    margin: 5px 0;
    color: #4d526a;
    font-size: 16px;
    line-height: 1.7;
  }

  #yb-article-top .article-template__content a {
    color: #6258b7;
    text-decoration: underline;
    text-decoration-color: #c9c4ff;
    text-underline-offset: 3px;
  }

  #yb-article-top .article-template__content .blog-section {
    margin-top: 18px;
    padding: clamp(20px, 3vw, 28px);
    border: 1px solid var(--yb-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: none;
    backdrop-filter: none;
  }

  #yb-article-top .article-template__content .blog-section h2 {
    margin: 0 0 14px;
    padding: 0 0 11px 14px;
    border-left: 5px solid var(--yb-purple);
    border-bottom: 1px solid #e4e6f0;
    color: #292d46;
    font-size: clamp(21px, 2.8vw, 27px);
    font-weight: 900;
    line-height: 1.35;
  }

  #yb-article-top .article-template__content .blog-section h3 {
    margin: 24px 0 10px;
    color: #30344c;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.45;
  }

  #yb-article-top .article-template__content .blog-section p,
  #yb-article-top .article-template__content .blog-section li,
  #yb-article-top .article-template__content .faq p,
  #yb-article-top .article-template__content .faq li {
    color: #3f445c;
    font-size: 17px;
    line-height: 1.95;
    letter-spacing: 0;
  }

  #yb-article-top .article-template__content .blog-section p {
    margin: 14px 0 0;
  }

  #yb-article-top .article-template__content .faq {
    margin-top: 18px;
    padding: clamp(18px, 3vw, 24px);
    overflow: visible;
    border: 1px solid var(--yb-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: none;
  }

  #yb-article-top .article-template__content .faq h2 {
    margin: 0 0 14px;
    color: #292d46;
    font-size: clamp(21px, 2.8vw, 27px);
    font-weight: 900;
  }

  #yb-article-top .article-template__content .faq details {
    margin: 10px 0;
    overflow: hidden;
    border: 1px solid #e1e4f0;
    border-radius: 14px;
    background: #f9f9ff;
    box-shadow: none;
    transform: none;
  }

  #yb-article-top .article-template__content .faq summary {
    padding: 15px 46px 15px 16px;
    color: #30344c;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.6;
  }

  #yb-article-top .article-template__content .faq details > *:not(summary) {
    padding: 0 16px 16px;
  }

  #yb-article-top .article-template__content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 16px auto 0;
    border-radius: 14px;
    box-shadow: none;
  }

  #yb-article-top .article-template__content .blog-media {
    width: 100%;
    max-width: 100%;
    margin: 16px 0 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    line-height: 0;
  }

  #yb-article-top .article-template__content .blog-media img {
    margin: 0;
    border-radius: 14px;
  }

  #yb-article-top .article-template__content .blog-media > br,
  #yb-article-top .article-template__content .blog-media > figcaption:empty,
  #yb-article-top .article-template__content .blog-media > figcaption:has(> br:only-child) {
    display: none;
  }

  #yb-article-top .article-template__content figcaption {
    margin: 8px 0 0;
    padding: 0;
    background: transparent;
    color: #74788d;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
  }

  #yb-article-top .article-template__content table {
    width: 100%;
    display: block;
    overflow-x: auto;
    border-collapse: collapse;
    font-size: 15px;
  }

  #yb-article-top .article-template__content th,
  #yb-article-top .article-template__content td {
    padding: 10px 12px;
    border: 1px solid var(--yb-line);
    text-align: left;
  }

  #yb-article-top .article-template__content iframe,
  #yb-article-top .article-template__content video {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 18px auto;
    border: 0;
    border-radius: 14px;
  }

  #yb-article-forum {
    margin-top: 38px;
  }



  @media (max-width: 760px) {
    .yb-news-article-nav,
    .yb-news-article-bottom-nav,
    #yb-article-top .article-template__hero-container,
    #yb-article-top .article-template__header,
    #yb-article-top .article-template__social-sharing,
    #yb-article-top .article-template__content {
      width: calc(100% - 24px);
    }

    .yb-news-article-nav {
      margin-top: 0;
      margin-bottom: 18px;
      gap: 8px;
    }

    .yb-news-article-nav a {
      flex: 1 1 auto;
      min-height: 38px;
      padding: 0 12px;
      font-size: 13px;
    }

    #yb-article-top .article-template__hero-container {
      margin-top: 14px;
      margin-bottom: 20px;
    }

    #yb-article-top .article-template__hero-adapt.media {
      border-radius: 14px;
    }

    #yb-article-top .article-template__header {
      margin-bottom: 16px;
      padding: 18px;
      border-radius: 14px;
    }

    #yb-article-top .article-template__title {
      font-size: clamp(25px, 8vw, 34px);
      line-height: 1.32;
    }

    #yb-article-top .article-template__content {
      font-size: 16px;
    }

    #yb-article-top .article-template__content .blog-hero,
    #yb-article-top .article-template__content .blog-section,
    #yb-article-top .article-template__content .faq {
      border-radius: 14px;
      padding: 17px;
    }

    #yb-article-top .article-template__content .blog-summary,
    #yb-article-top .article-template__content .blog-section p,
    #yb-article-top .article-template__content .blog-section li,
    #yb-article-top .article-template__content .faq p,
    #yb-article-top .article-template__content .faq li {
      font-size: 16px;
      line-height: 1.85;
    }

    #yb-article-top .article-template__content .blog-section h2,
    #yb-article-top .article-template__content .faq h2 {
      font-size: 21px;
    }

    .yb-news-article-bottom-nav {
      display: grid;
      grid-template-columns: 1fr;
      width: calc(100% - 24px);
      margin-top: 26px;
      margin-bottom: 26px;
    }

    .yb-news-article-bottom-nav a {
      width: 100%;
    }
  }

/* EasyStore discussion reference styles. */
  #yb-article-forum {
    max-width: 1100px;
    margin: 48px auto 56px;
    padding: 0 24px;
    color: #172033;
  }
  #yb-article-forum * { box-sizing: border-box; }
  .yb-article-forum-box {
    border: 1px solid #e2e6ef;
    border-radius: 18px;
    background: #fff;
    overflow: hidden;
  }
  .yb-article-forum-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid #e2e6ef;
    background: linear-gradient(90deg, #e9e7ff 0%, #f7f7ff 60%, #fff 100%);
  }
  .yb-article-forum-head h2 {
    margin: 0;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 900;
  }
  .yb-article-forum-link {
    flex: 0 0 auto;
    color: #5b5fc7;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
  }
  .yb-article-forum-status,
  .yb-article-forum-empty {
    padding: 24px 18px;
    color: #667085;
    font-size: 15px;
    text-align: center;
  }
  .yb-article-forum-limit-note {
    padding: 9px 18px;
    border-bottom: 1px solid #edf0f6;
    background: #fafbff;
    color: #667085;
    font-size: 14px;
    text-align: center;
  }
  .yb-article-comment {
    padding: 16px 18px;
    border-bottom: 1px solid #edf0f6;
  }
  .yb-article-comment:last-child { border-bottom: 0; }
  .yb-article-comment-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    color: #667085;
    font-size: 14px;
  }
  .yb-article-comment-author {
    color: #172033;
    font-size: 15px;
    font-weight: 900;
  }
  .yb-article-comment-body {
    color: #344054;
    font-size: 15px;
    line-height: 1.8;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
  }
  .yb-article-comment-body img {
    max-width: 100%;
    height: auto;
  }
  .yb-article-comment-actions {
    margin-top: 10px;
    text-align: right;
  }
  .yb-article-delete-btn {
    border: 0;
    background: transparent;
    color: #b42323;
    padding: 4px 0;
    font-size: 13px;
    cursor: pointer;
  }
  .yb-article-forum-form {
    display: grid;
    gap: 10px;
    padding: 16px 18px 18px;
    border-top: 1px solid #e2e6ef;
    background: #fafbff;
  }
  .yb-article-forum-form textarea {
    width: 100%;
    min-height: 120px;
    resize: vertical;
    border: 1px solid #d9deea;
    border-radius: 12px;
    background: #fff;
    color: #172033;
    padding: 12px 14px;
    font: inherit;
    line-height: 1.65;
    outline: none;
  }
  .yb-article-forum-form textarea:focus { border-color: #8d8cf7; }
  .yb-article-forum-form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .yb-article-forum-note {
    color: #667085;
    font-size: 14px;
  }
  .yb-article-forum-submit,
  .yb-article-login-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #8d8cf7;
    border-radius: 999px;
    background: #8d8cf7;
    color: #fff;
    padding: 9px 16px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
  }
  .yb-article-forum-submit:disabled {
    opacity: .55;
    cursor: not-allowed;
  }
  .yb-article-login-box {
    padding: 18px;
    border-top: 1px solid #e2e6ef;
    text-align: center;
  }
  @media (max-width: 600px) {
    #yb-article-forum { margin-top: 36px; padding: 0 12px; }
    .yb-article-forum-head { align-items: flex-start; }
    .yb-article-forum-form-row { align-items: stretch; flex-direction: column; }
    .yb-article-forum-submit { width: 100%; }
  }

/* WordPress template adaptations and accessible interaction states. */
.site-main--news-category,
.site-main--news-article {
  padding-top: 0;
  background: transparent;
}

#yb-blog-page .yb-section-head h2 {
  margin: 0;
  color: inherit;
  font: inherit;
  font-weight: 900;
}

#yb-blog-page .yb-blog-icon--fallback {
  display: inline-grid;
  place-items: center;
  color: #504a8f;
  font-size: 32px;
  font-weight: 900;
}

#yb-blog-page .yb-blog-card[hidden],
#yb-blog-page .yb-blog-empty[hidden] {
  display: none !important;
}

#yb-blog-page .yb-blog-empty:not([hidden]) {
  grid-column: 1 / -1;
  display: block;
}

#yb-blog-page .yb-blog-pagination {
  margin: 34px 0 0;
}

#yb-blog-page .yb-blog-pagination ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

#yb-blog-page .yb-blog-pagination a,
#yb-blog-page .yb-blog-pagination .current {
  display: inline-grid;
  place-items: center;
  min-width: 36px;
  height: 36px;
  padding: 0 9px;
  border: 1px solid rgba(80, 74, 143, 0.24);
  border-radius: 10px;
  background: #fff;
  color: #504a8f;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
}

#yb-blog-page .yb-blog-pagination .current {
  border-color: #504a8f;
  background: #504a8f;
  color: #fff;
}

#yb-blog-page a:focus-visible,
#yb-blog-page input:focus-visible,
#yb-article-top a:focus-visible,
#yb-article-top button:focus-visible,
#yb-article-top summary:focus-visible,
.yb-news-related a:focus-visible,
.yb-r18-overlay a:focus-visible,
.yb-r18-overlay button:focus-visible,
.yb-r18-overlay label:focus-visible {
  outline: 3px solid #20243a;
  outline-offset: 3px;
}

/* Preserve source body styling after replacing its invalid nested main. */
#yb-article-top .blog-wrapper .blog-main {
  display: block;
}

#yb-article-top .article-template__hero-adapt {
  position: relative;
  aspect-ratio: 3 / 1;
  padding: 0 !important;
  overflow: hidden;
  background: #f0eff8;
}

#yb-article-top .article-template__hero-adapt > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#yb-article-top .article-template__content .yuyibuy-imported-article-hero {
  display: none !important;
}

/* Native, dependency-free sharing panel. */
#yb-article-top .yb-share {
  position: relative;
  width: 100%;
}

#yb-article-top .yb-share > summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 32px;
  padding: 4px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #ff78c8;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

#yb-article-top .yb-share > summary::-webkit-details-marker {
  display: none;
}

#yb-article-top .yb-share > summary svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

#yb-article-top .yb-share__panel {
  display: grid;
  gap: 12px;
  width: min(100%, 620px);
  padding: 16px;
  margin-top: 10px;
  border: 1px solid #e0def2;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 35px rgba(55, 48, 104, 0.12);
}

#yb-article-top .yb-share__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#yb-article-top .yb-share__links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 7px 13px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 120, 200, 0.15), rgba(109, 168, 255, 0.17));
  color: #504a8f;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

#yb-article-top .yb-share__copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

#yb-article-top .yb-share__copy input {
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #d9d5ef;
  border-radius: 11px;
  background: #fafaff;
  color: #34384f;
}

#yb-article-top .yb-share__copy button {
  min-height: 42px;
  padding: 8px 15px;
  border: 0;
  border-radius: 11px;
  background: #504a8f;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

#yb-article-top .yb-share__status {
  min-height: 1.4em;
  margin: 0;
  color: #5d6176;
  font-size: 13px;
}

/* WordPress comments inside the EasyStore-shaped discussion card. */
#yb-article-top .yb-article-forum {
  width: min(calc(100% - 40px), 980px);
  padding: 0;
  margin: 48px auto 56px;
  overflow: hidden;
  border: 1px solid #e2e6ef;
  border-radius: 18px;
  background: #fff;
  color: #172033;
}

#yb-article-top .yb-article-forum__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid #e2e6ef;
  background: linear-gradient(90deg, #fbe8f5 0%, #eeefff 62%, #fff 100%);
}

#yb-article-top .yb-article-forum__header h2,
#yb-article-top .yb-article-forum__header p {
  margin: 0;
}

#yb-article-top .yb-article-forum__header h2 {
  color: #20243a;
  font-size: 20px;
  font-weight: 900;
}

#yb-article-top .yb-article-forum__header > span {
  flex: 0 0 auto;
  color: #667085;
  font-size: 14px;
  font-weight: 800;
}

#yb-article-top .yb-article-forum__eyebrow {
  color: #765cff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

#yb-article-top .yb-article-forum__notice {
  padding: 26px 20px;
  margin: 0;
  color: #667085;
  font-size: 15px;
  text-align: center;
}

#yb-article-top .comments-area {
  padding: 20px;
}

#yb-article-top .comments-title {
  margin: 0 0 18px;
  font-size: 18px;
}

#yb-article-top .comment-list {
  padding: 0;
  margin: 0 0 24px;
  list-style: none;
}

#yb-article-top .comment-list .comment {
  padding: 14px 0;
  border-bottom: 1px solid #edf0f6;
}

#yb-article-top .comment-list .children {
  padding-left: 22px;
  list-style: none;
}

#yb-article-top .comment-form {
  display: grid;
  gap: 12px;
}

#yb-article-top .comment-form p {
  margin: 0;
}

#yb-article-top .comment-form label {
  display: block;
  margin-bottom: 5px;
  color: #344054;
  font-weight: 800;
}

#yb-article-top .comment-form textarea,
#yb-article-top .comment-form input:not([type="checkbox"]):not([type="submit"]) {
  width: 100%;
  border: 1px solid #d9deea;
  border-radius: 12px;
  background: #fff;
}

#yb-article-top .comment-form textarea {
  min-height: 120px;
  padding: 12px 14px;
}

#yb-article-top .comment-form input:not([type="checkbox"]):not([type="submit"]) {
  height: 44px;
  padding: 0 12px;
}

#yb-article-top .comment-form input[type="submit"] {
  min-height: 42px;
  padding: 9px 18px;
  border: 1px solid #765cff;
  border-radius: 999px;
  background: #765cff;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

/* Local WooCommerce recommendations in the original pink panel language. */
.yb-news-related {
  width: min(calc(100% - 40px), 1100px);
  padding: clamp(20px, 3vw, 34px);
  margin: 0 auto 64px;
  overflow: hidden;
  border: 1px solid rgba(255, 120, 200, 0.38);
  border-radius: 24px;
  background:
    radial-gradient(circle at 5% 0%, rgba(255, 120, 200, 0.24), transparent 36%),
    radial-gradient(circle at 100% 100%, rgba(109, 168, 255, 0.22), transparent 40%),
    linear-gradient(135deg, #fff7fc 0%, #f6f7ff 100%);
}

.yb-news-related__head {
  margin-bottom: 20px;
}

.yb-news-related__head p,
.yb-news-related__head h2 {
  margin: 0;
}

.yb-news-related__head p {
  color: #765cff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.yb-news-related__head h2 {
  color: #20243a;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
}

.yb-news-related__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.yb-news-related__item {
  min-width: 0;
}

.yb-news-related__item > a {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  min-height: 150px;
  overflow: hidden;
  border: 1px solid rgba(80, 74, 143, 0.14);
  border-radius: 18px;
  background: #fff;
  color: #20243a;
  text-decoration: none;
}

.yb-news-related__image {
  display: block;
  min-height: 150px;
  background: #f1f0f8;
}

.yb-news-related__image img {
  width: 100%;
  height: 100%;
  min-height: 150px;
  object-fit: cover;
}

.yb-news-related__body {
  display: flex;
  min-width: 0;
  padding: 17px;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
}

.yb-news-related__body strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 16px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.yb-news-related__price {
  color: #504a8f;
  font-weight: 900;
}

.yb-news-related__price del {
  opacity: 0.55;
  font-size: 0.86em;
}

/* Local age-gate images already present in the WordPress media library. */
.yb-r18-confirm {
  position: fixed !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.yb-r18-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  text-align: center;
}

.yb-r18-confirm:checked + .yb-r18-overlay {
  display: none;
}

#yb-blog-page .yb-blog-all-posts {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

html.yb-r18-locked {
  overflow: hidden;
}

.yb-r18-card {
  position: relative;
  width: min(1100px, 90vw);
  line-height: 0;
}

.yb-r18-warning-image {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  border-radius: 12px;
}

.yb-r18-warning-fallback {
  padding: 72px 30px 120px;
  border-radius: 18px;
  background: #211b31;
  color: #fff;
  font-size: clamp(22px, 4vw, 42px);
  font-weight: 900;
  line-height: 1.5;
}

.yb-r18-buttons {
  position: absolute;
  left: 50%;
  bottom: 7.5%;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 3vw, 34px);
  transform: translateX(-50%);
}

.yb-r18-buttons a,
.yb-r18-buttons button,
.yb-r18-buttons label {
  display: block;
  width: min(240px, 30%);
  padding: 0;
  border: 0;
  background: transparent;
  line-height: 0;
  cursor: pointer;
}

.yb-r18-button-image {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 760px) {
	.footer__mini-payments img {
		width: 100% !important;
		min-width: 0 !important;
		max-width: 100% !important;
	}

  #yb-blog-page .yb-section-head h2 {
    font-size: inherit;
  }

  #yb-article-top .yb-share__copy {
    grid-template-columns: 1fr;
  }

  #yb-article-top .yb-share__copy button {
    width: 100%;
  }

  #yb-article-top .yb-article-forum {
    width: calc(100% - 24px);
    margin-top: 36px;
  }

  #yb-article-top .yb-article-forum__header {
    align-items: flex-start;
    padding: 16px;
  }

  #yb-article-top .comments-area {
    padding: 16px;
  }

  .yb-news-related {
    width: calc(100% - 24px);
    padding: 18px 14px;
    margin-bottom: 48px;
    border-radius: 18px;
  }

.yb-news-related__grid {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  contain: layout paint;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

  .yb-news-related__item {
    flex: 0 0 min(86vw, 430px);
    scroll-snap-align: start;
  }

  .yb-news-related__item > a {
    grid-template-columns: 118px minmax(0, 1fr);
    min-height: 118px;
  }

  .yb-news-related__image,
  .yb-news-related__image img {
    min-height: 118px;
  }

  .yb-news-related__body {
    padding: 13px;
  }
}

@media (max-width: 560px) {
  .yb-r18-overlay {
    padding: 8px;
  }

  .yb-r18-card {
    width: 96vw;
  }

  .yb-r18-buttons {
    bottom: 7%;
    gap: 10px;
  }

  .yb-r18-buttons a,
  .yb-r18-buttons button,
  .yb-r18-buttons label {
    width: 31%;
  }
}

@media (prefers-reduced-motion: reduce) {
  #yb-blog-page *,
  #yb-article-top *,
  .yb-news-related * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
