/* ==========================================================================
       UNIFIED RESPONSIVE STYLES FOR /kien-thuc/arabica-la-gi
       Breakpoints:
         - Mobile: < 640px (320, 390, 430, 639px)
         - Tablet / Narrow: 640px - 1099px (640, 768, 1024, 1099px)
         - Desktop: >= 1100px (1100, 1280, 1440, 1920px)
       Scoped inside .xcp-ar01-page so site header/footer/nav remain untouched.
       ========================================================================== */
    .xcp-ar01-page {
      --ar-deep: #081d15;
      --ar-primary: #0d6b4a;
      --ar-primary-hover: #095238;
      --ar-soft: #eef7f3;
      --ar-accent: #c98a3b;
      --ar-text-main: #10241c;
      --ar-text-body: #2c4037;
      --ar-text-muted: #5a7066;
      --ar-bg: #f6f8f6;
      --ar-card: #ffffff;
      --ar-border: #dfe7e3;
      --ar-font-body: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, sans-serif;
      --ar-font-head: 'Plus Jakarta Sans', 'Be Vietnam Pro', sans-serif;
      font-family: var(--ar-font-body);
      background: var(--ar-bg);
      color: var(--ar-text-body);
      line-height: 1.68;
      font-size: 15px;
      overflow-x: clip;
      width: 100%;
    }

    .xcp-ar01-page *,
    .xcp-ar01-page *::before,
    .xcp-ar01-page *::after {
      box-sizing: border-box;
    }

    :where(.xcp-ar01-page) .xcp-ar01-container {
      width: 100%;
      max-width: 1160px;
      margin: 0 auto;
      padding: 0 16px;
    }

    /* 1. HERO SECTION — Mobile (<640px) & Tablet (640-1099px): 1 cột */
    :where(.xcp-ar01-page) .ar-hero {
      background: linear-gradient(150deg, #072219 0%, #0d4b34 65%, #115e41 100%);
      color: #ffffff;
      padding: 20px 0 24px;
      margin-inline: 8px;
      font-family: Arial, sans-serif;
    }
    :where(.xcp-ar01-page) .ar-hero__grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 16px;
      align-items: center;
    }
    :where(.xcp-ar01-page) .ar-crumb {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 6px;
      font-size: 12.48px;
      color: rgba(255, 255, 255, 0.78);
      margin-bottom: 10px;
    }
    :where(.xcp-ar01-page) .ar-crumb a {
      color: rgba(255, 255, 255, 0.9);
      text-decoration: none;
    }
    :where(.xcp-ar01-page) .ar-crumb a:hover { text-decoration: underline; }
    :where(.xcp-ar01-page) .ar-meta {
      display: inline-block;
      background: rgba(255, 255, 255, 0.14);
      color: #dcf8eb;
      font-size: 11.84px;
      font-weight: 700;
      padding: 3px 10px;
      border-radius: 99px;
      margin-bottom: 10px;
    }
    :where(.xcp-ar01-page) .ar-hero h1 {
      font-family: Arial, sans-serif;
      font-size: 22.08px !important;
      line-height: 1.26;
      font-weight: 800;
      margin: 0 0 10px;
      letter-spacing: 0;
      color: #ffffff;
    }
    :where(.xcp-ar01-page) .ar-hero__def {
      font-size: 14.72px;
      line-height: 1.6;
      color: rgba(255, 255, 255, 0.92);
      margin: 0;
    }
    :where(.xcp-ar01-page) .ar-hero__def strong { color: #ffffff; }
    :where(.xcp-ar01-page) .ar-hero__media {
      margin: 0;
      border-radius: 14px;
      overflow: hidden;
      border: 1.5px solid rgba(255, 255, 255, 0.18);
      background: #0a2a1e;
    }
    :where(.xcp-ar01-page) .ar-hero__media img {
      width: 100%;
      height: 195px;
      object-fit: cover;
      display: block;
    }
    :where(.xcp-ar01-page) .ar-hero__cap {
      padding: 8px 12px;
      font-size: 12.16px;
      color: rgba(255, 255, 255, 0.84);
      background: rgba(6, 23, 16, 0.85);
      line-height: 1.45;
    }

    /* 2. MAIN LAYOUT — Mobile & Tablet (<1100px): 1 cột; Desktop (>=1100px): 2 cột với Sticky TOC */
    :where(.xcp-ar01-page) .ar-main-wrap {
      padding: 18px 0 48px;
    }
    :where(.xcp-ar01-page) .ar-layout {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      gap: 24px;
      align-items: start;
    }

    /* Desktop Sticky Sidebar — ẩn dưới 1100px */
    :where(.xcp-ar01-page) .ar-sidebar-desktop {
      display: none;
    }

    /* Mobile & Tablet Collapsible TOC — hiện dưới 1100px */
    :where(.xcp-ar01-page) .ar-toc-collapsible {
      background: #f3f9f6;
      border: 1px solid rgba(13, 107, 74, 0.22);
      border-radius: 12px;
      padding: 12px 15px;
      margin-bottom: 18px;
      box-shadow: 0 2px 8px rgba(8, 29, 21, 0.04);
    }
    :where(.xcp-ar01-page) .ar-toc-collapsible summary {
      font-family: var(--ar-font-head);
      font-weight: 800;
      font-size: 14.24px;
      color: var(--ar-deep);
      cursor: pointer;
      list-style: none;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
    }
    :where(.xcp-ar01-page) .ar-toc-collapsible summary::-webkit-details-marker { display: none; }
    :where(.xcp-ar01-page) .ar-toc-summary-left {
      display: inline-flex;
      align-items: center;
      gap: 8px;
    }
    :where(.xcp-ar01-page) .ar-toc-summary-right {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 12px;
      font-weight: 600;
      color: var(--ar-primary);
      background: #ffffff;
      border: 1px solid rgba(13, 107, 74, 0.2);
      padding: 3px 9px;
      border-radius: 99px;
      white-space: nowrap;
    }
    :where(.xcp-ar01-page) .ar-toc-collapsible[open] .ar-toc-chevron {
      transform: rotate(180deg);
    }
    :where(.xcp-ar01-page) .ar-toc-chevron {
      display: inline-block;
      transition: transform 0.18s ease;
    }
    :where(.xcp-ar01-page) .ar-toc-collapsible summary:focus-visible {
      outline: 2px solid var(--ar-primary);
      outline-offset: 3px;
      border-radius: 6px;
    }
    :where(.xcp-ar01-page) .ar-toc-list {
      list-style: none;
      margin: 12px 0 0;
      padding: 10px 0 0;
      border-top: 1px dashed rgba(13, 107, 74, 0.22);
      display: grid;
      gap: 5px;
    }
    :where(.xcp-ar01-page) .ar-toc-list a {
      display: flex;
      align-items: flex-start;
      gap: 9px;
      font-size: 13.44px;
      color: var(--ar-text-body);
      text-decoration: none;
      padding: 6px 9px;
      border-radius: 8px;
      line-height: 1.42;
      transition: background 0.15s ease, color 0.15s ease;
    }
    :where(.xcp-ar01-page) .ar-toc-num {
      flex-shrink: 0;
      min-width: 22px;
      height: 20px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 11.2px;
      font-weight: 800;
      color: var(--ar-primary);
      background: #e4f3ec;
      border-radius: 5px;
      margin-top: 1px;
    }
    :where(.xcp-ar01-page) .ar-toc-list a:hover,:where(.xcp-ar01-page)
    .ar-toc-list a:focus-visible {
      background: #e7f4ee;
      color: var(--ar-primary);
      font-weight: 600;
      outline: none;
    }
    :where(.xcp-ar01-page) .ar-toc-list a:hover .ar-toc-num,:where(.xcp-ar01-page)
    .ar-toc-list a.is-active .ar-toc-num {
      background: var(--ar-primary);
      color: #ffffff;
    }

    /* Article Card */
    :where(.xcp-ar01-page) .ar-article {
      background: var(--ar-card);
      border: 1px solid var(--ar-border);
      border-radius: 14px;
      padding: 18px 16px 26px;
      min-width: 0;
    }
    :where(.xcp-ar01-page) .ar-article p {
      margin: 0 0 14px;
    }
    :where(.xcp-ar01-page) .ar-article a {
      color: var(--ar-primary);
      font-weight: 600;
      text-decoration: underline;
      text-underline-offset: 3px;
    }
    :where(.xcp-ar01-page) .ar-article a:hover { color: var(--ar-primary-hover); }

    /* Heading scroll margin so real fixed site header never covers anchor targets */
    :where(.xcp-ar01-page) .ar-article h2,:where(.xcp-ar01-page)
    .ar-aeo-box__title {
      scroll-margin-top: max(108px, var(--site-header-h, 124px));
    }
    :where(.xcp-ar01-page) .ar-article h2 {
      font-family: var(--ar-font-head);
      font-size: 19.2px;
      line-height: 1.32;
      font-weight: 800;
      color: var(--ar-text-main);
      margin: 28px 0 12px;
      padding-bottom: 7px;
      border-bottom: 2px solid var(--ar-soft);
    }
    :where(.xcp-ar01-page) .ar-article h3 {
      font-family: var(--ar-font-head);
      font-size: 15.68px;
      font-weight: 700;
      color: var(--ar-deep);
      margin: 16px 0 8px;
    }

    /* AEO Quick Answer Box */
    :where(.xcp-ar01-page) .ar-aeo-box {
      background: var(--ar-soft);
      border: 1px solid rgba(13, 107, 74, 0.25);
      border-left: 4px solid var(--ar-primary);
      border-radius: 12px;
      padding: 16px 16px;
      margin: 0 0 22px;
    }
    :where(.xcp-ar01-page) .ar-aeo-box__title {
      font-family: var(--ar-font-head);
      font-size: 16.64px !important;
      font-weight: 800;
      color: var(--ar-primary) !important;
      margin: 0 0 10px !important;
      padding-bottom: 0 !important;
      border-bottom: none !important;
      scroll-margin-top: max(108px, var(--site-header-h, 124px));
    }
    :where(.xcp-ar01-page) .ar-aeo-list {
      list-style: none;
      margin: 0;
      padding: 0;
      display: grid;
      gap: 9px;
    }
    :where(.xcp-ar01-page) .ar-aeo-list li {
      font-size: 14.4px;
      line-height: 1.58;
      padding-left: 16px;
      position: relative;
    }
    :where(.xcp-ar01-page) .ar-aeo-list li::before {
      content: "•";
      position: absolute;
      left: 0;
      color: var(--ar-primary);
      font-weight: 800;
    }

    /* Swipe Hint (Mobile only) */
    :where(.xcp-ar01-page) .ar-swipe-hint {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 12px;
      font-weight: 600;
      color: var(--ar-text-muted);
      margin: 4px 0 8px;
    }

    /* Photo Grids (1 col on mobile, 2/3 cols on tablet & desktop) */
    :where(.xcp-ar01-page) .ar-photo-duo,:where(.xcp-ar01-page)
    .ar-photo-trio {
      display: grid;
      grid-template-columns: 1fr;
      gap: 12px;
      margin: 14px 0 20px;
    }
    :where(.xcp-ar01-page) .ar-photo-card {
      margin: 0;
      border: 1px solid var(--ar-border);
      border-radius: 12px;
      overflow: hidden;
      background: #fafcfb;
    }
    :where(.xcp-ar01-page) .ar-photo-card img {
      width: 100%;
      height: 185px;
      object-fit: cover;
      display: block;
    }
    :where(.xcp-ar01-page) .ar-photo-card figcaption {
      padding: 9px 12px;
      font-size: 12.8px;
      color: var(--ar-text-muted);
      line-height: 1.45;
      border-top: 1px solid var(--ar-border);
    }

    /* 4 Trait Cards */
    :where(.xcp-ar01-page) .ar-trait-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 12px;
      margin: 14px 0 20px;
    }
    :where(.xcp-ar01-page) .ar-trait-card {
      background: #fafcfb;
      border: 1px solid var(--ar-border);
      border-radius: 12px;
      padding: 14px 15px;
    }
    :where(.xcp-ar01-page) .ar-trait-card__num {
      display: inline-block;
      background: var(--ar-primary);
      color: #ffffff;
      font-size: 11.52px;
      font-weight: 800;
      padding: 2px 8px;
      border-radius: 6px;
      margin-bottom: 6px;
    }
    :where(.xcp-ar01-page) .ar-trait-card h3 { margin: 0 0 6px; }
    :where(.xcp-ar01-page) .ar-trait-card p { margin: 0; font-size: 14.08px; line-height: 1.58; }

    /* Sensory Section & Acidity Table */
    :where(.xcp-ar01-page) .ar-sensory-intro {
      display: grid;
      grid-template-columns: 1fr;
      gap: 14px;
      align-items: center;
      margin-bottom: 14px;
    }
    :where(.xcp-ar01-page) .ar-note-box {
      background: #fffaf2;
      border: 1px solid #f0dec2;
      border-left: 4px solid var(--ar-accent);
      border-radius: 10px;
      padding: 12px 14px;
      font-size: 14.08px;
      color: #4f3a1c;
      margin: 12px 0 16px;
      line-height: 1.55;
    }
    :where(.xcp-ar01-page) .ar-tbl-wrap {
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      border: 1px solid var(--ar-border);
      border-radius: 12px;
      margin: 0 0 16px;
      max-width: 100%;
    }
    :where(.xcp-ar01-page) .ar-tbl-wrap:focus-visible {
      outline: 2px solid var(--ar-primary);
      outline-offset: 2px;
    }
    :where(.xcp-ar01-page) table.ar-table {
      width: 100%;
      min-width: 520px;
      border-collapse: collapse;
      font-size: 13.6px;
      background: #ffffff;
    }
    :where(.xcp-ar01-page) table.ar-table th {
      background: var(--ar-deep);
      color: #ffffff;
      text-align: left;
      padding: 10px 12px;
      font-weight: 700;
    }
    :where(.xcp-ar01-page) table.ar-table td {
      padding: 10px 12px;
      border-bottom: 1px solid var(--ar-border);
      vertical-align: top;
      line-height: 1.52;
    }
    :where(.xcp-ar01-page) table.ar-table tr:last-child td { border-bottom: none; }
    :where(.xcp-ar01-page) table.ar-table tr:nth-child(even) td { background: #fafcfb; }

    /* Brewing Methods List */
    :where(.xcp-ar01-page) .ar-brew-list {
      display: grid;
      gap: 10px;
      margin: 14px 0 20px;
    }
    :where(.xcp-ar01-page) .ar-brew-item {
      border: 1px solid var(--ar-border);
      border-radius: 12px;
      padding: 13px 15px;
      background: #fafcfb;
    }
    :where(.xcp-ar01-page) .ar-brew-item__title {
      display: block;
      color: var(--ar-primary);
      font-size: 14.88px;
      margin-bottom: 4px;
    }
    :where(.xcp-ar01-page) .ar-brew-item p { margin: 0; font-size: 14.08px; }

    /* ==========================================================================
       SINGLE PRODUCT BUYING BLOCK (5 CARDS — NO DUPLICATE PRICE TABLE)
       - Mobile (< 640px): Horizontal swipe with peek of next card (76% width)
       - Tablet (640-1099px): 2-column grid
       - Desktop (>= 1100px): 3-column grid
       ========================================================================== */
    :where(.xcp-ar01-page) .ar-prod-shelf {
      display: flex;
      gap: 12px;
      overflow-x: auto;
      scroll-snap-type: x mandatory;
      -webkit-overflow-scrolling: touch;
      padding: 2px 2px 10px;
      margin: 0 0 16px;
      max-width: 100%;
    }
    :where(.xcp-ar01-page) .ar-prod-shelf::-webkit-scrollbar { height: 5px; }
    :where(.xcp-ar01-page) .ar-prod-shelf::-webkit-scrollbar-thumb { background: #c5d6ce; border-radius: 99px; }

    :where(.xcp-ar01-page) .ar-prod-card {
      flex: 0 0 76%;
      min-width: 224px;
      max-width: 280px;
      scroll-snap-align: start;
      border: 1px solid var(--ar-border);
      border-radius: 13px;
      padding: 13px;
      background: #ffffff;
      display: flex;
      flex-direction: column;
      text-decoration: none !important;
      color: var(--ar-text-body) !important;
      transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
    }
    :where(.xcp-ar01-page) .ar-prod-card:hover,:where(.xcp-ar01-page)
    .ar-prod-card:focus-visible {
      border-color: var(--ar-primary);
      box-shadow: 0 8px 20px rgba(8, 29, 21, 0.08);
      transform: translateY(-2px);
      outline: none;
    }
    :where(.xcp-ar01-page) .ar-prod-card__img {
      height: 128px;
      background: #f4f7f5;
      border-radius: 9px;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 8px;
      margin-bottom: 10px;
    }
    :where(.xcp-ar01-page) .ar-prod-card__img img {
      max-height: 100%;
      max-width: 100%;
      object-fit: contain;
    }
    @media (max-width: 639px) {
      :where(.xcp-ar01-page.article-story) .ar-prod-card__img {
        height: auto;
        aspect-ratio: 1;
        padding: 0;
        overflow: hidden;
      }
      :where(.xcp-ar01-page.article-story) .ar-prod-card__img img {
        width: 100%;
        height: 100%;
        object-fit: contain;
      }
    }
    :where(.xcp-ar01-page) .ar-prod-card__badge {
      font-size: 11.2px;
      font-weight: 700;
      color: var(--ar-primary);
      background: var(--ar-soft);
      padding: 2px 8px;
      border-radius: 99px;
      width: fit-content;
      margin-bottom: 6px;
    }
    :where(.xcp-ar01-page) .ar-prod-card__name {
      font-family: var(--ar-font-head);
      font-size: 15.04px;
      font-weight: 800;
      color: var(--ar-text-main);
      margin-bottom: 5px;
    }
    :where(.xcp-ar01-page) .ar-prod-card__notes {
      font-size: 12.64px;
      color: var(--ar-text-muted);
      line-height: 1.46;
      margin-bottom: 6px;
      flex-grow: 1;
    }
    :where(.xcp-ar01-page) .ar-prod-card__brew {
      font-size: 12.16px;
      color: var(--ar-text-body);
      background: #f8fbf9;
      padding: 5px 8px;
      border-radius: 7px;
      margin-bottom: 10px;
      line-height: 1.4;
    }
    :where(.xcp-ar01-page) .ar-prod-card__prices {
      border-top: 1px dashed var(--ar-border);
      padding-top: 8px;
      display: flex;
      flex-direction: column;
      gap: 3px;
      font-size: 13.12px;
    }
    :where(.xcp-ar01-page) .ar-prod-card__price-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 6px;
    }
    :where(.xcp-ar01-page) .ar-prod-card__price-row strong {
      color: var(--ar-primary);
      font-size: 14.08px;
      white-space: nowrap;
    }

    /* Info Box + 2 Action Buttons at End of Buying Section (Before FAQ, NOT Sticky) */
    :where(.xcp-ar01-page) .ar-branch-box {
      background: var(--ar-soft);
      border: 1px solid rgba(13, 107, 74, 0.22);
      border-radius: 12px;
      padding: 15px 16px;
      margin: 16px 0 18px;
      font-size: 13.92px;
    }
    :where(.xcp-ar01-page) .ar-branch-box h3 {
      margin: 0 0 8px;
      color: var(--ar-primary);
    }
    :where(.xcp-ar01-page) .ar-branch-box ul {
      margin: 8px 0 0 16px;
      padding: 0;
      display: grid;
      gap: 6px;
    }

    :where(.xcp-ar01-page) .ar-action-pair {
      display: grid;
      grid-template-columns: 1fr;
      gap: 10px;
      margin: 16px 0 26px;
    }
    :where(.xcp-ar01-page) .ar-btn-primary,:where(.xcp-ar01-page)
    .ar-btn-secondary {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 12px 16px;
      border-radius: 10px;
      font-weight: 700;
      font-size: 14.08px;
      text-decoration: none !important;
      transition: background 0.15s ease, transform 0.15s ease;
    }
    :where(.xcp-ar01-page) .ar-btn-primary {
      background: var(--ar-primary);
      color: #ffffff !important;
    }
    :where(.xcp-ar01-page) .ar-btn-primary:hover { background: var(--ar-primary-hover); }
    :where(.xcp-ar01-page) .ar-btn-secondary {
      background: #ffffff;
      color: var(--ar-primary) !important;
      border: 1.5px solid var(--ar-primary);
    }
    :where(.xcp-ar01-page) .ar-btn-secondary:hover { background: var(--ar-soft); }

    /* FAQ Accordion */
    :where(.xcp-ar01-page) .ar-faq-list {
      display: grid;
      gap: 10px;
      margin-top: 12px;
    }
    :where(.xcp-ar01-page) .ar-faq-item {
      border: 1px solid var(--ar-border);
      border-radius: 12px;
      padding: 13px 15px;
      background: #fafcfb;
    }
    :where(.xcp-ar01-page) .ar-faq-item[open] {
      background: #ffffff;
      border-color: rgba(13, 107, 74, 0.38);
    }
    :where(.xcp-ar01-page) .ar-faq-item summary {
      font-weight: 700;
      font-size: 14.72px;
      color: var(--ar-text-main);
      cursor: pointer;
      list-style: none;
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 10px;
    }
    :where(.xcp-ar01-page) .ar-faq-item summary::-webkit-details-marker { display: none; }
    :where(.xcp-ar01-page) .ar-faq-item summary::after {
      content: "+";
      font-size: 18.4px;
      font-weight: 800;
      color: var(--ar-primary);
      line-height: 1.2;
    }
    :where(.xcp-ar01-page) .ar-faq-item[open] summary::after { content: "−"; }
    :where(.xcp-ar01-page) .ar-faq-item summary:focus-visible {
      outline: 2px solid var(--ar-primary);
      outline-offset: 3px;
      border-radius: 6px;
    }
    :where(.xcp-ar01-page) .ar-faq-item p {
      margin: 10px 0 0;
      padding-top: 10px;
      border-top: 1px dashed var(--ar-border);
      font-size: 14.24px;
    }

    :where(.xcp-ar01-page) .ar-author-bar {
      margin-top: 24px;
      padding-top: 14px;
      border-top: 1px solid var(--ar-border);
      font-size: 13.28px;
      color: var(--ar-text-muted);
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      gap: 8px;
    }

    /* Ẩn gợi ý kéo ngang bảng vị chua ngay khi bảng min-width 520px đã vừa khung (>= 585px) */
    @media (min-width: 585px) {
      :where(.xcp-ar01-page) .ar-swipe-hint--tbl { display: none; }
    }

    /* ==========================================================================
       TABLET & NARROW SCREENS: 640px - 1099px
       - Hero: vẫn 1 cột để tiêu đề không bị ép
       - TOC: vẫn giữ mục lục thu gọn, KHÔNG đặt sidebar chiếm chiều ngang
       - 5 thẻ sản phẩm: chuyển sang lưới 2 cột (không bắt vuốt ngang)
       ========================================================================== */
    @media (min-width: 640px) {
      :where(.xcp-ar01-page) .xcp-ar01-container { padding: 0 24px; }
      :where(.xcp-ar01-page) .ar-hero { padding: 28px 0 32px; }
      :where(.xcp-ar01-page) .ar-hero__media img { height: 280px; }
      :where(.xcp-ar01-page) .ar-article { padding: 26px 28px 34px; }
      :where(.xcp-ar01-page) .ar-article h2 { font-size: 21.12px; }
      :where(.xcp-ar01-page) .ar-photo-duo,:where(.xcp-ar01-page)
      .ar-trait-grid { grid-template-columns: repeat(2, 1fr); }
      :where(.xcp-ar01-page) .ar-photo-trio { grid-template-columns: repeat(3, 1fr); }
      :where(.xcp-ar01-page) .ar-sensory-intro { grid-template-columns: 1.2fr 0.8fr; }
      :where(.xcp-ar01-page) .ar-action-pair { grid-template-columns: repeat(2, 1fr); }

      /* Tắt gợi ý vuốt ngang cho kệ sản phẩm & bảng vị chua từ 640px trở lên (vì đã vừa khung) */
      :where(.xcp-ar01-page) .ar-swipe-hint--prod,:where(.xcp-ar01-page)
      .ar-swipe-hint--tbl { display: none; }

      /* 5 thẻ sản phẩm thành lưới 2 cột ở 640-1099px */
      :where(.xcp-ar01-page) .ar-prod-shelf {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        overflow-x: visible;
        scroll-snap-type: none;
        padding: 0;
        gap: 14px;
      }
      :where(.xcp-ar01-page) .ar-prod-card {
        flex: none;
        min-width: 0;
        max-width: none;
      }
    }

    /* ==========================================================================
       DESKTOP: >= 1100px
       - Hero chia 2 cột: Tiêu đề + định nghĩa trái, ảnh V60 phải
       - Thân bài chia 2 cột: Sticky TOC bên trái dưới header
       - 5 thẻ sản phẩm thành lưới 3 cột
       - Khung nội dung giới hạn max-width: 1160px (1100-1200px)
       ========================================================================== */
    @media (min-width: 1100px) {
      :where(.xcp-ar01-page) .ar-hero { padding: 38px 0 42px; }
      :where(.xcp-ar01-page) .ar-hero__grid {
        grid-template-columns: 1.18fr 0.82fr;
        gap: 32px;
      }
      :where(.xcp-ar01-page) .ar-hero__media img { height: 300px; }

      :where(.xcp-ar01-page) .ar-main-wrap { padding: 30px 0 56px; }
      :where(.xcp-ar01-page) .ar-layout {
        grid-template-columns: 250px minmax(0, 1fr);
        gap: 28px;
      }

      /* Ẩn TOC thu gọn, hiện Sticky TOC cột bên trái */
      :where(.xcp-ar01-page) .ar-toc-collapsible { display: none; }
      :where(.xcp-ar01-page) .ar-sidebar-desktop {
        display: flex;
        flex-direction: column;
        gap: 16px;
        position: sticky;
        top: var(--site-header-h, 142px);
      }
      :where(.xcp-ar01-page) .ar-toc-box {
        background: var(--ar-card);
        border: 1px solid var(--ar-border);
        border-radius: 12px;
        padding: 18px;
      }
      :where(.xcp-ar01-page) .ar-toc-box__title {
        font-family: var(--ar-font-head);
        font-size: 13.76px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0;
        color: var(--ar-primary);
        margin: 0 0 10px;
        padding-bottom: 8px;
        border-bottom: 1px solid var(--ar-border);
      }
      :where(.xcp-ar01-page) .ar-sidebar-desktop .ar-toc-list {
        margin-top: 0;
        padding-top: 0;
        border-top: none;
        border-left: 2px solid #e3ece7;
        padding-left: 8px;
      }
      :where(.xcp-ar01-page) .ar-sidebar-desktop .ar-toc-list a {
        position: relative;
      }
      :where(.xcp-ar01-page) .ar-sidebar-desktop .ar-toc-list a.is-active {
        background: var(--ar-soft);
        color: var(--ar-primary);
        font-weight: 700;
      }
      :where(.xcp-ar01-page) .ar-sidebar-desktop .ar-toc-list a.is-active::before {
        content: "";
        position: absolute;
        left: -10px;
        top: 6px;
        bottom: 6px;
        width: 3px;
        border-radius: 99px;
        background: var(--ar-primary);
      }

      :where(.xcp-ar01-page) .ar-article { padding: 34px 38px 40px; }

      /* 5 thẻ sản phẩm thành lưới 3 cột trên Desktop */
      :where(.xcp-ar01-page) .ar-prod-shelf {
        grid-template-columns: repeat(3, 1fr);
      }
      :where(.xcp-ar01-page) .ar-swipe-hint--tbl { display: none; }
    }
    /* Related Articles Section (Đọc tiếp theo chủ đề — cuối trang kiến thức) */
    :where(.xcp-ar01-page) .ar-related-sec {
      padding: 8px 0 46px;
    }
    :where(.xcp-ar01-page) .ar-related-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 16px;
    }
    :where(.xcp-ar01-page) .ar-related-head h2 {
      font-family: var(--ar-font-head);
      font-size: 19.84px;
      font-weight: 800;
      color: var(--ar-text-main);
      margin: 0;
    }
    :where(.xcp-ar01-page) .ar-related-head a {
      font-size: 13.6px;
      font-weight: 700;
      color: var(--ar-primary);
      text-decoration: none;
    }
    :where(.xcp-ar01-page) .ar-related-head a:hover { text-decoration: underline; }
    :where(.xcp-ar01-page) .ar-related-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 14px;
    }
    :where(.xcp-ar01-page) .ar-rel-card {
      background: var(--ar-card);
      border: 1px solid var(--ar-border);
      border-radius: 13px;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      text-decoration: none;
      color: var(--ar-text-body);
      transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
    }
    :where(.xcp-ar01-page) .ar-rel-card:hover {
      transform: translateY(-2px);
      border-color: var(--ar-primary);
      box-shadow: 0 8px 20px rgba(8, 29, 21, 0.08);
    }
    :where(.xcp-ar01-page) .ar-rel-card img {
      width: 100%;
      height: 165px;
      object-fit: cover;
      display: block;
    }
    :where(.xcp-ar01-page) .ar-rel-card__body {
      padding: 13px 15px 15px;
      display: flex;
      flex-direction: column;
      flex-grow: 1;
    }
    :where(.xcp-ar01-page) .ar-rel-card__tag {
      font-size: 11.52px;
      font-weight: 700;
      color: var(--ar-primary);
      margin-bottom: 5px;
    }
    :where(.xcp-ar01-page) .ar-rel-card__title {
      font-family: var(--ar-font-head);
      font-size: 15.04px;
      font-weight: 800;
      line-height: 1.4;
      color: var(--ar-text-main);
      margin: 0 0 10px;
      flex-grow: 1;
    }
    :where(.xcp-ar01-page) .ar-rel-card__more {
      font-size: 13.12px;
      font-weight: 700;
      color: var(--ar-primary);
    }
    @media (min-width: 640px) {
      :where(.xcp-ar01-page) .ar-related-grid { grid-template-columns: repeat(2, 1fr); }
    }
    @media (min-width: 1100px) {
      :where(.xcp-ar01-page) .ar-related-grid { grid-template-columns: repeat(3, 1fr); }
    }

.xcp-ar01-page .ar-legacy-anchor {
  display: block;
  block-size: 0;
}
.xcp-ar01-page :is(.ar-sensory-intro, .ar-photo-duo) > :only-child { grid-column: 1 / -1; }

:where(.article-story) .ar-aeo-box > h2:not(.ar-aeo-box__title) {
  font-size: 16.64px;
  color: var(--ar-primary);
  margin: 0 0 10px;
  padding: 0;
  border: 0;
}
:where(.article-story) .ar-aeo-box ul:not(.ar-aeo-list) {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}
:where(.article-story) .ar-aeo-box ul:not(.ar-aeo-list) li {
  font-size: 14.4px;
  line-height: 1.58;
  padding-left: 16px;
  position: relative;
}
:where(.article-story) .ar-aeo-box ul:not(.ar-aeo-list) li::before {
  content: "\2022";
  position: absolute;
  left: 0;
  color: var(--ar-primary);
  font-weight: 800;
}
:where(.article-story) .ar-aeo-box li > p,
:where(.article-story) :is(.ar-note-box, .ar-branch-box) > p:last-child { margin: 0; }
:where(.article-story) .ar-brew-item + .ar-brew-item { margin-top: 10px; }
:where(.article-story) .ar-brew-item > p:first-child > strong:only-child {
  display: block;
  color: var(--ar-primary);
  font-size: 14.88px;
  margin-bottom: 4px;
}
.article-story .ar-table :is(th, td) > p { margin: 0; }
.article-story .ar-article > [data-columns] { gap: 12px; }
.article-story .ar-article figure[data-caption-card] { margin: 0; border-radius: 12px; }
.article-story .ar-article [data-ratio="equal"] > [data-column] > figure[data-caption-card] { height: 100%; }
.article-story .ar-article [data-column] > p:last-child:empty { display: none; }
.article-story .ar-article [data-cta-button] > a {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14.08px;
  font-weight: 700;
  text-decoration: none;
}
.article-story .ar-article [data-cta-button][data-variant="primary"] > a { background: var(--ar-primary); color: #fff; }
.article-story .ar-article [data-cta-button][data-variant="outline"] > a { background: #fff; color: var(--ar-primary); border: 1.5px solid var(--ar-primary); }
.article-story .ar-article [data-cta-button][data-variant="primary"] > a:hover { background: var(--ar-primary-hover); }
.article-story .ar-article [data-cta-button][data-variant="outline"] > a:hover { background: var(--ar-soft); }

.xcp-ar01-page .ar-legacy-anchor,
.xcp-ar01-page .ar-hero h1 {
  scroll-margin-top: max(108px, var(--site-header-h, 124px));
}

/* Keep the article title independent of the site's global mobile h1 override. */
@media (min-width: 585px) {
  .xcp-ar01-page .ar-hero h1 { font-size: 27.2px !important; }
}

@media (min-width: 768px) {
  .xcp-ar01-page .ar-hero h1 { font-size: 32.8px !important; }
}

@media (min-width: 640px) and (max-width: 767px) {
  .xcp-ar01-page .ar-hero h1 { font-size: 28px !important; }
}

@media (min-width: 819px) {
  .xcp-ar01-page .ar-hero h1 { font-size: 35px !important; }
}
