/* =========================
   LP SCOPE ROOT
========================= */
#lp-ranking {
  /*rankingpage only */
  --cream: #FFFCEB;
  --creamwhite: #FFFDF8;
  --gold: #B38B00;
  --gold2: #BA9600;
  --red: #D40000;
  --text: #222;
  --muted: #666;
  --line: #E6E2D6;
  --white: #fff;

  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Noto Sans JP",
    Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.5;
}

/* reset in LP */
#lp-ranking,
#lp-ranking * {
  box-sizing: border-box;
}

#lp-ranking img {
  max-width: 100%;
  height: auto;
  display: block;
}

#lp-ranking a {
  color: inherit;
  text-decoration: none;
}



/* =========================================================
   BASE / TOKENS
========================================================= */
:root {
  --cream: #FFFCEB;
  --creamwhite: #FFFDF8;
  --gold: #B38B00;
  --gold2: #BA9600;
  --red: #D40000;
  --text: #222;
  --muted: #666;
  --line: #E6E2D6;
  --white: #fff;

  /* layout scale */
  --container-max: 1200px;
  --gutter: 20px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --gap-xs: 8px;
  --gap-sm: 12px;
  --gap-md: 16px;
  --gap-lg: 26px;
}

:root {
  --sec-pad-pc: 96px;
  --sec-pad-sp: 64px;
  --sec-gap-pc: 56px;
  --sec-gap-sp: 40px;
}

/* sectionδ;�? */
#lp-ranking .section,
.section {
  padding: var(--sec-pad-pc) 0;
}


#lp-ranking .sectionHead,
.sectionHead {
  margin-bottom: 36px;
}

#purpose .purposeBlock {
  margin: 88px 0 40px;
}

#purpose .purposeCenter {
  margin: 160px 0 0;
}

@media (max-width: 650px) {
  #purpose .purposeCenter {
    margin: 60px 0 0;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Noto Sans JP", Segoe UI, Roboto, Arial, sans-serif;
}

#lp-ranking img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.yen {
  font-variant-numeric: tabular-nums;
}

.tax {
  font-size: 0.9em;
  color: var(--muted);
  margin-left: 4px;
}

/* container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* section */
.section {
  padding: 72px 0;
  background: var(--white);
}

.section--purpose {
  background: var(--creamwhite);
}

.sectionHead {
  margin: 0 0 22px;
  text-align: center;
}

.sectionHead__ttl {
  margin: 0;
  font-size: 48px;
  letter-spacing: 0.06em;
  font-weight: 700;
  text-align: center;
}

@media (max-width: 768px) {
  .sectionHead__ttl {
    margin: 0;
    font-size: 40px;
  }
}

/*@media (max-width: 460px) {
  .sectionHead__ttl {
    margin: 0;
    font-size: 28px;
  }
}*/

@media (max-width: 479px) {
  .sectionHead__ttl {
    margin: 0;
    font-size: 28px;
  }
}

/* =========================================================
   HERO
========================================================= */
.hero {
  background: var(--cream);
}

.hero__kanban {
  background: var(--cream);
  border-radius: var(--radius-lg);
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__kanban img {
  width: 100%;
  height: auto;
}

/* =========================================================
   LEAD
========================================================= */
.lead {
  background: var(--white);
}

.lead {
  padding: 24px 0 0;
}

.leadHead {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 120px 0 0;
}

.leadHead__badge {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  background: #fff;
  flex-shrink: 0;
}

.leadHead__badgeImg {
  margin-bottom: 100px;
  width: 96px;
  height: 96px;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}


.leadHead__titles {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  line-height: 1;
}

.leadHead__jp {
  margin: 0;
  font-size: 48px;
  font-weight: 600;
}

.leadHead__en {
  margin: 6px 0 0;
  font-size: 19.2px;
  letter-spacing: 0.2em;
  color: #222;
}

/* ===== Tablet ===== */
@media (max-width: 768px) {
  .leadHead {
    margin: 56px 0 0;
    gap: 12px;
  }

  .leadHead__badge,
  .leadHead__badgeImg {
    width: 72px;
    height: 72px;
  }

  .leadHead__jp {
    font-size: 30px;
  }

  .leadHead__en {
    font-size: 14px;
    letter-spacing: 0.14em;
  }
}

/* ===== Small SP ===== */
@media (max-width: 460px) {
  .leadHead {
    gap: 10px;
  }

  .leadHead {
    justify-content: center;
    padding-right: 60px;
  }

  .leadHead__badge,
  .leadHead__badgeImg {
    width: 56px;
    height: 56px;
  }

  .leadHead__jp {
    font-size: 24px;
  }

  .leadHead__en {
    font-size: 12px;
    letter-spacing: 0.12em;
  }
}


/* LEAD BANNER (flex + overlay ribbons) */
.leadBanner {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 8px auto 0px;
  border-radius: var(--radius-lg);
  overflow: visible;
  background: #fff;
}

.leadBanner__img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
}

/* ribbons overlay */
.leadBanner__ribbons {
  position: absolute;
  top: 18%;
  right: 80px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

/* vertical text */
.leadRibbon {
  margin: 0;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: 0.14em;
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  padding: 16px 8.8px;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.08);
}

/* brown ribbon (left) */
.leadRibbon--a {
  background: rgba(255, 255, 255, 0.92);
  color: #222;
  margin-top: -176px;
  margin-left: 0;
  border: 4px solid #b89130;
}

.leadRibbon--a span {
  color: #b89130;
}

/* white ribbon (right) */
.leadRibbon--b {
  background: rgba(255, 255, 255, 0.92);
  color: #222;
  border: 4px solid #b89130;
  margin-top: -208px;
}

.leadRibbon__num {
  text-orientation: upright;
  /* p s? ?ng trong ch? d?c */
  display: inline-block;
}

@media (max-width: 768px) {
  .leadRibbon {
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    padding: 12px 7px;
    letter-spacing: 0.12em;
  }

  .leadBanner__ribbons {
    right: 30px;
    gap: 8px;
  }


  .leadRibbon--a,
  .leadRibbon--b {
    border-width: 3px;
  }

  .leadRibbon--a {
    margin-top: -120px;
  }

  .leadRibbon--b {
    margin-top: -140px;
  }

}

/*@media (max-width: 460px) {

  .leadBanner__ribbons {
    right: 20px;
    gap: 6px;
  }

  .leadRibbon {
    font-size: 12px;
    font-weight: 550;
    padding: 9px 5px;
    letter-spacing: 0.10em;
    text-align: center;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.08);
  }

  .leadRibbon--a,
  .leadRibbon--b {
    border-width: 2px;
  }

  .leadRibbon--a {
    margin-top: -86px;
  }

  .leadRibbon--b {
    margin-top: -102px;
  }
}*/

@media (max-width: 479px) {

  .leadBanner__ribbons {
    right: 20px;
    gap: 6px;
  }

  .leadRibbon {
    font-size: 12px;
    font-weight: 550;
    padding: 9px 5px;
    letter-spacing: 0.10em;
    text-align: center;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.08);
  }

  .leadRibbon--a,
  .leadRibbon--b {
    border-width: 2px;
  }

  .leadRibbon--a {
    margin-top: -86px;
  }

  .leadRibbon--b {
    margin-top: -102px;
  }
}

/* =========================================================
   TOP NAV
========================================================= */
.topNav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 0;
  margin: 22px 0 0px;
}

.topNav__btn {
  width: 180px;
  background: #fff;

  border: 1.5px solid #3a3a3a;
  border-radius: 8px;

  display: flex;

  align-items: center;
  justify-content: center;

  gap: 8px;

  padding: 12px 16px;
  margin: 0;

  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-align: center;
}

.topNav__btn img {
  width: 30px;
  height: auto;
  display: block;
}

/* (Tu? ch?n) hover gi?ng c?m gic UI */
.topNav__btn:hover {
  border-color: var(--gold);
}

.topNav__btn:not([href="#top5"]) img {
  filter: grayscale(1) brightness(0.7);
  opacity: 0.9;
}

.topNav__btn[href="#top5"] img {
  filter: none;
  opacity: 1;
}

.scriptTitle {
  margin: 22px 0 20px;
  text-align: center;
}

.scriptTitle img {
  display: inline-block;
  height: 100%;
  padding: 20px 0 60px;
}

/* Mobile: thu nh? ?nh trong .scriptTitle */
@media (max-width: 767px) {
  .scriptTitle img {
    height: auto;        /* override height:100% */
    max-width: 220px;    /* ch?nh k���ch th??c ?nh tr���n mobile */
    width: 70%;
    padding: 12px 0 28px;
  }
}

/* Mobile nh? h?n */
@media (max-width: 460px) {
  .scriptTitle img {
    max-width: 160px;
    width: 72%;
    padding: 10px 0 22px;
  }
}



/* =========================
   TOP NAV - SP: n���t th?p h?n, g?n h?n
========================= */
@media (max-width: 768px) {
  .topNav {
    gap: 8px;
    /* nh? h?n */
    padding: 0 10px;
    /* gi?m l? */
  }

  .topNav__btn {
    padding: 8px 6px;
    /* �� gi?m padding */
    gap: 4px;
    /* �� gi?m kho?ng c���ch icon-text */
    font-size: 11px;
    /* �� ch? nh? h?n */
    letter-spacing: 0.05em;
    line-height: 1.1;
  }

  .topNav__btn img {
    width: 18px;
    /* �� icon nh? h?n */
    height: 18px;
  }
}

/*@media (max-width: 420px) {
  .topNav__btn {
    min-height: 54px;
    padding: 7px 6px;
    font-size: 12px;
  }

  .topNav__btn img {
    width: 16px;
    height: 16px;
  }
}*/

@media (max-width: 479px) {
    .topNav__btn {
    min-height: 36px;
    padding: 7px 0;
    font-size: 12px;
  }

    .topNav__btn img {
    display:none !important;
  }
}



/* =========================
   TOP NAV - STICKY BEHAVIOR
========================= */

/* ch?nh n?u site c header fixed s?n (vd 64px) */
:root {
  --sticky-offset: 0px;
  --topnav-sticky-h: 98px;
  /* JS s? c?p nh?t theo height th?t */
}

.topNav {
  will-change: transform;
}

/* tr?ng thi sticky (fixed) */
.topNav.is-sticky {
  position: fixed;
  left: 0;
  right: 0;
  top: calc(var(--sticky-offset) + env(safe-area-inset-top));
  z-index: 9999;

  margin: 0;
  padding: 8px var(--gutter);
  background: #fff;
  backdrop-filter: blur(6px);
  contain: paint;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .08);
}

.topNav.is-sticky {
  transform: translateZ(0);
}

/* chuy?n nt t? d?c -> ngang (icon tri, text ph?i) */
.topNav.is-sticky .topNav__btn {
  width: auto;
  min-height: 56px;
  padding: 10px 14px;

  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 10px;

  font-size: 20px;
  letter-spacing: 0.04em;
  border-radius: 10px;
}

.topNav.is-sticky .topNav__btn img {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
}

/* ? text khng b? xu?ng dng */
.topNav.is-sticky .topNav__btn span {
  white-space: nowrap;
  line-height: 1;
}

/* gi?m kho?ng cch gi?a cc nt */
.topNav.is-sticky {
  gap: 8px;
}

/* n?u mu?n thanh sticky khng qu to trn desktop l?n */
@media (min-width: 769px) {
  .topNav.is-sticky .topNav__btn {
    min-width: 160px;
    /* ho?c b? n?u mu?n auto hon ton */
  }
}

/* Mobile: g?n h?n n?a */
@media (max-width: 768px) {
  .topNav.is-sticky {
    padding: 6px 10px;
    gap: 6px;
  }

  .topNav.is-sticky .topNav__btn {
    min-height: 44px;
    padding: 8px 10px;
    font-size: 14px;
    gap: 8px;
  }
    
  .topNav.is-sticky .topNav__btn img {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
  }
}

@media (max-width: 479px) {
    .topNav.is-sticky .topNav__btn {
    width: 25%;
    padding: 10px 0;
    font-size: 12px;
  }
    
  .topNav.is-sticky .topNav__btn img {
    display: none !important;
  }
}


/* ?n khi footer nav b?t ?u xu?t hi?n */
.topNav.is-sticky.is-hidden {
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
}

/* placeholder ? khng b? nh?y layout khi nav chuy?n sang fixed */
#topNavPlaceholder {
  height: var(--topnav-sticky-h);
  display: none;
}

#topNavPlaceholder.is-on {
  display: block;
}

/* ch?ng anchor b? che b?i sticky nav khi click */
#top5,
#purpose,
#item,
#price {
  scroll-margin-top: calc(var(--topnav-sticky-h) + var(--sticky-offset) + 16px);
}



/* =========================================================
   PICKUP (Rank 1) - PC gi? nguy���n, TB/SP gi?ng MakeShop
========================================================= */
.pickup {
  position: relative;

  /* ? PC layout: 2 c?t + thumbs full width d??i */
  display: grid;
  grid-template-columns: 50% 1fr;
  grid-template-areas:
    "img  body"
    "thumbs thumbs";
  gap: var(--gap-lg);

  background: transparent;
  border-radius: var(--radius-lg);
  padding: 34px;
  padding-left: 0;
  align-items: start;
}

.pickup__rank {
  position: absolute;
  top: -40px;
  left: 10px;
  z-index: 15;
  display: flex;
  gap: 2px;
  pointer-events: none;
  --flag-h: 76.8px;
  --crown-scale: 0.8;
}

.pickup__rank img:first-child {
  height: calc(var(--flag-h) * var(--crown-scale));
  width: auto;
  display: block;
  transform: translateY(6.4px);
}

.pickup__rank img:nth-child(2) {
  height: var(--flag-h);
  width: auto;
  display: block;
}

.pickup__rank img:only-child {
  height: var(--flag-h);
  width: auto;
  display: block;
}

.pickup__img {
  grid-area: img;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.pickup__img img {
  width: 100%;
  height: auto;
  display: block;
}

.pickup__body {
  grid-area: body;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 10px 6px 6px;
}


.pickup__catch {
  background: #fff;
  border: 2px solid #979694;
  padding: 16px 20px;
  text-align: center;
  font-weight: 800;
  line-height: 1.55;
  letter-spacing: 0.04em;
  font-size: 24px;
  box-shadow: 6px 6px 0 var(--gold);
  border-radius: 6px;
}

.pickup__name {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.4;
}

.pickup__price {
  margin: 0 0 12px;
  color: var(--red);
  font-weight: 600;
  font-size: 20px;
  text-align: right;
}

.pickup__price .tax {
  font-size: 16px;
  color: var(--red);
}

.pickup__desc {
  margin: 0;
  color: #222;
  line-height: 1.7;
  font-size: 18px;
}

/* thumbs (PC: full width d??i) */
.pickup .thumbRow {
  grid-area: thumbs;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 16px;
}

.pickup .thumbRow__item {
  flex: 1 1 0;
  min-width: 0;
}

.pickup .thumbRow__link {
  display: block;
  overflow: hidden;
}

.pickup .thumbRow__img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.thumbRow__img.is-active {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 8px;
}




/* =========================================================
   TB (<=1024px): gi?ng MakeShop (img+thumbs tr���i, info ph?i)
========================================================= */
@media (max-width: 1024px) {
  .pickup {
    grid-template-columns: minmax(0, 520px) 1fr;
    grid-template-areas:
      "img   body"
      "thumbs body";
    gap: 18px 22px;

    /* TB kh���ng n���n flush qu��� */
    padding: 24px 0 0;
  }

  /* t?o c?m gi���c gallery MakeShop (img + thumbs th���nh 1 kh?i) */
  .pickup__img {
    border: 1px solid #e6e6e6;
    border-bottom: 0;
    border-radius: 14px 14px 0 0;
  }

  .pickup .thumbRow {
    border: 1px solid #e6e6e6;
    border-top: 0;
    border-radius: 0 0 14px 14px;
    background: #fff;
    padding: 10px;
    gap: 10px;

    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .pickup .thumbRow::-webkit-scrollbar {
    height: 0;
  }

  .pickup .thumbRow__item {
    flex: 0 0 86px;
    /* thumbs ki?u MakeShop */
  }

  .pickup__catch {
    font-size: 18px;
    padding: 12px 14px;
    box-shadow: 4px 4px 0 var(--gold);
  }

  .pickup__name {
    font-size: 16px;
  }

  .pickup__price {
    font-size: 16px;
    text-align: right;
  }

  .pickup__desc {
    font-size: 15px;
  }
}

/* =========================================================
   SP (<=768px): stack gi?ng MakeShop (gallery -> info)
========================================================= */
@media (max-width: 768px) {
  .pickup {
    grid-template-columns: 1fr;
    grid-template-areas:
      "img"
      "thumbs"
      "body";
    gap: 12px;
    padding: 18px 0 0;
  }

  .pickup__rank {
    top: -28px;
    left: 8px;
    --flag-h: 60px;
    --crown-scale: 0.78;
  }

  .pickup__img {
    border: 1px solid #e6e6e6;
    border-bottom: 0;
    border-radius: 12px 12px 0 0;
  }

  .pickup .thumbRow {
    border: 1px solid #e6e6e6;
    border-top: 0;
    border-radius: 0 0 12px 12px;
    background: #fff;
    padding: 10px;
    gap: 8px;

    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .pickup .thumbRow__item {
    flex: 0 0 74px;
  }

  .pickup .thumbRow__img {
    border-radius: 8px;
  }

  .thumbRow__img.is-active {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
    border-radius: 8px;
  }


  .pickup__body {
    padding: 0;
  }

  .pickup__catch {
    font-size: 16px;
    padding: 10px 12px;
    box-shadow: 3px 3px 0 var(--gold);
  }

   @media (max-width: 479px) {
    .pickup__catch br {
    display: none;
      }
    }

  .pickup__name {
    font-size: 16px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 10px;
  }

  .pickup__price {
    font-size: 14px;
    text-align: right;
    margin: 6px 0 0;
  }

  .pickup__price .tax {
    font-size: 10px;
  }

  .pickup__desc {
    font-size: 14px;
  }
}



/* =========================================================
   RANK GRID (2 columns) - grid -> flex wrap
========================================================= */
.rankGrid {
  margin-top: 128px;
}

@media (max-width: 768px) {
  .rankGrid {
    margin-top: 50px;
  }
}

.rankGrid--2col {
  --gap-row: 80px;
  /* d?c */
  --gap-col: 48px;
  /* ngang */

  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-row) var(--gap-col);
}

.rankGrid--2col>.pCard {
  flex: 0 0 calc((100% - var(--gap-col)) / 2);
  min-width: 0;
}

/* =========================================================
   PRODUCT CARD
========================================================= */
.pCard {
  position: relative;
  min-width: 0;
}

.pCard__img {
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  /*background: #fff;*/
}

.pCard__img img {
  width: 100%;
  height: auto;
  display: block;
}

.section--item .pCard__catch {
  margin: 10px 0 6px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--muted);
}

.pCard__name {
  margin: 10px 0 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

.pCard__price {
  margin: 0 0 12px;
  color: var(--red);
  font-weight: 600;
  text-align: right;
  font-size: 16px;
}

.pCard__price .yen {
  font-size: 16px;
  color: var(--red);
}


.pCard__price .tax {
  font-size: 14px;
  color: var(--red);
}

.pCard__desc {
  margin: 0;
  line-height: 1.7;
  font-size: 16px;
}

/* =========================================================
   PRODUCT CARD - TB/SP typography scale (keep PC as-is)
========================================================= */
@media (max-width: 768px) {


  .pCard__name {
    margin: 8px 0 10px;
    padding-bottom: 10px;
    font-size: 18px;
    line-height: 1.45;
  }

  .pCard__price {
    font-size: 22px;
    line-height: 1.15;
  }

  .pCard__price .tax {
    font-size: 14px;
  }

  .pCard__desc {
    font-size: 15px;
    line-height: 1.7;
  }

  .section--item .pCard__catch {
    margin: 8px 0 4px;
    font-size: 13px;
  }
}

/*@media (max-width: 460px) {
  .pCard__name {
    font-size: 14px;
  }

  .pCard__price {
    font-size: 13px;
  }

  .pCard__price .tax {
    font-size: 13px;
  }

  .pCard__desc {
    font-size: 13px;
  }
}*/

@media (max-width: 479px) {
  .pCard__name {
    font-size: 12px;
  }

  .pCard__price {
    font-size: 13px;
  }

  .pCard__price .tax {
    font-size: 10px;
  }

  .pCard__desc {
    font-size: 13px;
  }
}


/* badge for rank cards */
.pCard--rank {
  padding-top: 35.2px;
}

.pCard--rank .pCard__badge {
  position: absolute;
  top: -30px;
  left: 5px;
  z-index: 15;
  display: flex;
  align-items: center;
  /* canh gi?a theo chi?u d?c */
  gap: 4px;
  pointer-events: none;

  /* b?n ch?nh 2 bi?n ny ? cn */
  --flag-h: 76.8px;
  /* kch th??c flag (s?) */
  --crown-scale: 0.8;
  /* crown = 80% flag (t?c 4 so v?i 5) */
}

/* crown (?nh 1) = flag * 0.8 */
.pCard--rank .pCard__badge img:first-child {
  height: calc(var(--flag-h) * var(--crown-scale));
  width: auto;
  display: block;
}

/* flag (?nh 2) */
.pCard--rank .pCard__badge img:nth-child(2) {
  height: var(--flag-h);
  width: auto;
  display: block;
}

/* rank 4/5 ch? c 1 ?nh (flag) */
.pCard--rank .pCard__badge img:only-child {
  height: var(--flag-h);
  width: auto;
  display: block;
}

@media (max-width: 768px) {
  .pCard--rank .pCard__badge {
    --flag-h: 56px;
    top: -6px;
  }

}

@media (max-width: 460px) {
  .pCard--rank .pCard__badge {
    --flag-h: 40px;
    top: 0;
  }
}


/* =========================================================
   BRAND (grid -> flex)
========================================================= */
.brandList {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.brandCard {
  display: flex;
  /* grid -> flex */
  gap: var(--gap-lg);
  align-items: stretch;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.03);
}

.brandCard__img {
  position: relative;
  flex: 0 0 50%;
  border-radius: var(--radius-md);
  overflow: hidden;
  min-width: 0;
}

.brandCard__img img:first-child {
  width: 100%;
  border-radius: var(--radius-md);
}

.brandCard__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  box-sizing: border-box;
  border-radius: var(--radius-md);
  object-fit: fill;
}


.brandCard__body {
  flex: 1 1 auto;
  min-width: 0;
}

.brandCard--imgRight .brandCard__img {
  order: 2;
}

.brandCard--imgRight .brandCard__body {
  order: 1;
}

.brandCard__logo {
  margin-bottom: 10px;
  max-width: 160px;
  margin-left: auto;
  margin-right: 0;
  align-self: flex-end;
  display: flex;
  justify-content: flex-end;
}

.brandCard__sub {
  margin: 10px 0 10px;
  color: #757575;
  font-weight: 500;
  font-size: 19px;
}

.brandCard__ttl {
  margin: 0 4px 10px;
  padding: 4px;
  color: var(--gold2);
  font-weight: 600;
  line-height: 1.35;
  font-size: 30px;

}

.brandCard__desc {
  margin: 0px 0 16px;
  padding: 20px 10px 10px;
  line-height: 1.7;
  border-top: 1px solid #575454;
  font-weight: 400;
  font-size: 16px;
}

.brandCard__foot {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}

.brandCard__price {
  margin: 0;
  color: var(--red);
  font-weight: 700;
  align-self: flex-end;
  font-size: 22px;
  line-height: 1;
}

.brandCard__price .tax {
  color: var(--red);
  font-size: 16px;
  font-weight: 600;
}

.btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  padding: 0 18px;
  border-radius: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  font-size: 22px;
  text-decoration: none; /* quan tr?ng cho <a> */
}

/* N?u l��� <a>, ch?n visited ���?i m���u t���m */
a.btn:visited {
  color: inherit;
}

/* GOLD VARIANT (use anywhere) */
.btn--gold {
  background: var(--gold);
  color: #fff;
  border: 2px solid var(--gold);
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

/* Tr??ng h?p c? th? l��� <a> (an to���n h?n v��� nhi?u theme hay override a:hover/a:visited) */
a.btn.btn--gold,
a.btn.btn--gold:link,
a.btn.btn--gold:visited {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
  text-decoration: none;
}

a.btn.btn--gold:hover,
a.btn.btn--gold:active,
a.btn.btn--gold:focus,
a.btn.btn--gold:focus-visible,
.btn--gold:hover,
.btn--gold:focus-visible {
  background: #fff;
  color: var(--gold);
  border-color: var(--gold);
  outline: none;
}

/* =========================================================
   7. TABLET (768px - 1024px)
   ========================================================= */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  .container {
    padding: 0 40px;
  }

  .brandCard {
    gap: 30px;
    /* Kho?ng c���ch gi?a ?nh v��� ch? */
    padding: 25px;
    align-items: center;
    /* C���n gi?a theo chi?u d?c ���? layout c���n b?ng */
  }

  /* ���i?u ch?nh t? l? 40% ?nh - 60% n?i dung */
  .brandCard__img {
    flex: 0 0 42%;
  }

  .brandCard__body {
    flex: 1;
  }

  .brandCard__ttl {
    font-size: 24px;
    /* Size ch? v?a v?n cho Tablet */
    margin-bottom: 15px;
  }

  .brandCard__desc {
    font-size: 15px;
    line-height: 1.8;
    padding-top: 15px;
    margin-bottom: 25px;
  }

  .brandCard__foot {
    flex-direction: row;
    /* Tablet v?n n���n ���? gi��� v��� n���t c���ng h���ng n?u ���? r?ng */
    justify-content: space-between;
    align-items: center;
  }

  .brandCard__price {
    align-self: center;
    font-size: 20px;
  }

  .btn {
    min-width: 160px;
    height: 50px;
    font-size: 16px;
  }
}

/* =========================================================
   8. SMARTPHONE (D??i 767px)
   ========================================================= */
@media screen and (max-width: 767px) {
  .section--brand {
    padding: 50px 0;
    background-color: #f9f9f9;
    /* N?n x���m nh?t ���? l���m n?i b?t Card tr?ng */
  }

  .brandList {
    gap: 40px;
    /* T���ng kho?ng c���ch gi?a c���c Card ���? d? ph���n bi?t */
    padding: 0 15px;
  }

  .brandCard {
    flex-direction: column !important;
    gap: 0;
    padding: 0;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    /* B���ng ���? m?m m?i cao c?p */
  }

  /* Reset l?i order: ?nh lu���n l���n ���?u d���El��� card tr���i hay ph?i */
  .brandCard__img,
  .brandCard--imgRight .brandCard__img {
    order: 1 !important;
    width: 100%;
    height: 240px;
    /* Chi?u cao c? ���?nh ���? c���c card ���?u nhau */
    flex: none;
    border-radius: 15px 15px 0 0;
  }

  .brandCard__body,
  .brandCard--imgRight .brandCard__body {
    order: 2 !important;
    padding: 0 25px 20px;
  }

  /* X? l���EFrame ren (lace frame) cho Mobile */
  .brandCard__frame {
    padding: 8px;
    /* Thu nh? padding frame tr���n mobile */
  }

  /* Typography tinh t? h?n */
  .brandCard__sub {
    font-size: 14px;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    color: #888;
  }

  .brandCard__ttl {
    font-size: 16px;
    margin: 0;
    color: #333;
  }

  .brandCard__ttl br {
  display: none;
}


  .brandCard__desc {
    font-size: 14px;
    border-top: 1px dashed #ddd;
    /* Thay ���??ng k? ���?c b?ng ���??ng ���?t n���t cho nh? nh���ng */
    padding-top: 15px;
    color: #555;
    margin:0;
  }

  /* Gi��� v��� N���t b?m */
  .brandCard__foot {
    gap: 20px;
  }

  .brandCard__price {
    align-self: right;
    /* C���n gi?a gi��� */
    font-size: 20px;
  }

  .brandCard__price .yen {
    font-size: 16px;
    /* L���m n?i b?t con s? gi��� ti?n */
  }

  .btn {
    width: 100%;
    height: 56px;
    font-size: 18px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    /* ���? b���ng nh? cho n���t Gold */
  }

  /* C���n ch?nh Logo lu���n ? gi?a tr���n Mobile */
  .brandCard__logo,
  .brandCard--imgRight .brandCard__logo {
    justify-content: center;
    margin: 0 auto 15px;
  }
}



/* =========================================================
   CAT GRID (3 cols) - grid -> flex
========================================================= */
.catGrid {
  --cols: 3;
  --gap: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap);
  padding: 30px 0;
}

.catGrid>.catBanner {
  flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols));
}

.catBanner {
  display: block;
  overflow: hidden;
  background: #fff;
}

.catBanner img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .catGrid {
    --cols: 2;
    --gap: 14px;
    padding: 20px 0;
  }
}

@media (max-width: 420px) {
  .catGrid {
    --cols: 2;
    --gap: 10px;
    padding: 16px 0;
  }

  .catBanner img {
    aspect-ratio: 1 / 1;
  }
}

/* =========================================
   PURPOSE BLOCK: Right sticky, Left reveal
   ========================================= */

.purposeBlock {
  --gap: 48px;
  --left-col: 44%;
  --radius: 20px;

  /* ch?nh theo chi?u cao header c?a b?n */
  --sticky-top: 104px;

  display: flex;
  gap: var(--gap);
  align-items: stretch;
  margin: 64px 0;

  /* t?o ??? di cu?n ? sticky th?y r */
  padding: 32px 0;
}

/* LEFT: khung ?nh */
.purposeBlock__left {
  position: relative;
  flex: 0 0 var(--left-col);
  min-width: 0;

  border-radius: var(--radius);
  overflow: hidden;
  background: #eee;

  /* ch? LEFT m?i animate */
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}

#purpose {
  --purpose-sticky-top: 16px;
}

#purpose .purposeBlock {
  padding: 0;
  margin: 120px 0;
  align-items: flex-start;
}

#purpose .purposeBlock__left {
  position: sticky;
  top: var(--purpose-sticky-top);
  align-self: flex-start;

  /* full chi?u cao mn hnh cn l?i */
  height: calc(100vh - var(--purpose-sticky-top));
  height: calc(100svh - var(--purpose-sticky-top));
  overflow: hidden;
  border-radius: 20px;
}

#purpose .purposeBlock__left>img:not(.purposeBlock__script) {
  height: 100%;
  object-position: center bottom;
}

#purpose .purposeBlock__right {
  position: static;
  top: auto;
  align-self: flex-start;
}


.purposeBlock__right {
  flex: 1 1 0;
  min-width: 0;

  display: flex;
  flex-direction: column;
  align-items: center;

  position: sticky;
  top: var(--sticky-top);
  align-self: flex-start;


  background: transparent;
  z-index: 1;
}

.purposeBlock.is-inview .purposeBlock__left {
  opacity: 1;
  transform: translateY(0);
}
/* =========================
   PURPOSE - MOBILE (PHONE)
   ========================= */
@media (max-width: 767px){

  #purpose .purposeBlock{
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    gap:18px !important;
    margin:40px 0 70px !important;
    padding:0 !important;
    position:relative !important;
  }

  /* cho ph���p titleBox / desc / grid tr? th���nh item tr?c ti?p ���? order */
  #purpose .purposeBlock__right{ display:contents !important; }

  /* 1) Title tr���n c���ng */
/* 1) Title tr���n c���ng */
#purpose .titleBox{
  order:1 !important;

  box-sizing:border-box !important;
  width:min(92vw, 520px) !important;   /* t���ng max ���? kh���ng b? "l?ch" khi font l?n */

  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  text-align:center !important;
  gap:6px !important;

  position:static !important;
  transform:none !important;

  background:#fff !important;
  border:1px solid #333 !important;
  box-shadow:7px 7px 0 #D4B62E !important;
  border-radius:0 !important;
  z-index:5 !important;
  margin-bottom: 40px;
}

@media (max-width: 479px) {
    #purpose .titleBox.withimg {
    margin-bottom: 0;        
    }
}
    
#purpose .titleBox__main,
#purpose .titleBox__sub{
  width:100% !important;
  margin:0 !important;
  line-height:1.25 !important;
}

#purpose .titleBox__sub{
  white-space:normal !important;  /* quan tr?ng: b? nowrap */
}

  /* 2) ?nh n?m d??i title + nh? l?i + ch? bo g���c d??i */
  #purpose .purposeBlock__left {
    order:2 !important;
    grid-row: 2 / 3 !important; /* ���?t v���o h���ng 2 */
    grid-column: 1 / 2 !important; /* C?t 1 */
    
    width: 100% !important;
    height: 100% !important;
    min-height: 400px !important; /* Chi?u cao t?i thi?u ���? ?nh to r��� */
    
    position: relative !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    z-index: 1 !important; /* L?p d??i c���ng */
    opacity: 1 !important;
    transform: none !important;
    margin: 0 !important; /* B? margin ���? kh���t */
  }

    @media (max-width: 479px){
        #purpose .purposeBlock__left {
            overflow: visible !important;
            margin: 0 0 90px !important;
        }
    }

  /* C. X? L���E?NH KH���NG B? M���O */
  #purpose .purposeBlock__left > img:not(.purposeBlock__script) {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* QUAN TR?NG: C?t ?nh v?a khung, kh���ng bao gi? b? m���o */
    object-position: center top !important; /* ?u ti���n l?y ph?n tr���n c?a ?nh (khu���n m?t) */
    position: absolute !important;
    inset: 0 !important;
  }

  /* n?u c��� script overlay v?n gi? trong ?nh */
  #purpose .purposeBlock__script{
    position:absolute !important;
    left:50% !important;
    bottom:12px !important;
    transform:translateX(-50%) !important;
    width:min(92vw, 520px) !important;
    height:auto !important;
    z-index:10 !important;
  }

  /* 3) Desc n?m d??i ?nh */
  #purpose .purposeDesc{
    order:3 !important;
    width:min(92vw, 520px) !important;
    margin:6px auto 0 !important;
    text-align:left !important; /* n?u mu?n gi?a: center */
  }

  /* 4) Grid d??i desc */
  #purpose .productGrid{
    order:4 !important;
    width:100% !important;
    padding:0 0 0 16px !important;
  }
}

#purpose .purposeBlock__script {
  display: block !important;
  position: absolute !important;
  bottom: 15px !important;
  right: -1px !important;
  left: auto !important;
  width: 100% !important;
  height: auto !important;
  z-index: 10 !important;
  opacity: 1 !important;
  transform: none !important;
}

#purpose .purposeDesc {
  order: 3 !important;
  width: 100% !important;
  text-align: center !important;
}

#purpose .productGrid {
  order: 4 !important;
  width: 100% !important;
  padding: 0 0 0 20px !important;
}

#purpose .titleBox__main {
  width: 100%;
  text-align: center !important;
  margin-bottom: 5px !important;
}

#purpose .titleBox__sub {
  width: 100%;
  text-align: center !important;
  white-space: nowrap !important;
  display: block !important;
}



/* ====== PURPOSE LEFT: animate image then script ====== */
.purposeBlock__left {
  overflow: hidden;
  border-radius: 20px;
  /* gi? bo gc cho c? kh?i */
}

/* ?nh chnh ph? kn (nh? b?n ang dng) */
.purposeBlock__left>img:not(.purposeBlock__script) {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;

  /* tr?ng thi ban ?u (?n) */
  opacity: 0;
  transform: scale(1.03);
  transition: opacity .55s ease, transform 1.0s ease;
}

/* script overlay */
.purposeBlock__script {
  position: absolute;
  left: 50%;
  bottom: 20px;
  width: min(512px, 95%);
  max-width: none;
  height: auto;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .12));

  /* tr?ng thi ban ?u (?n) */
  opacity: 0;
  transform: translateX(-50%) translateY(10px);
  transition: opacity .45s ease, transform .45s ease;
  transition-delay: 1s;
  /* xu?t hi?n SAU ?nh */
}

/* Khi block vo viewport v ?nh ?? load -> b?t animation */
.purposeBlock.is-inview .purposeBlock__left>img:not(.purposeBlock__script) {
  opacity: 1;
  transform: scale(1);
}

.purposeBlock.is-inview .purposeBlock__script {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}


/* ---------- Tablet (<=1024px): thu g�?n kho�?ng cách, gi�? style PC ---------- */
@media (max-width: 1024px) {
  #purpose {
    --purpose-sticky-top: 12px;
  }

  #purpose .purposeBlock {
    --gap: 32px;
    margin: 96px 0;
  }

  #purpose .purposeBlock__left {
    border-radius: 18px;
  }

  #purpose .titleBox__main {
    font-size: 30px;
  }

  #purpose .titleBox__sub {
    font-size: 24px;
  }

  #purpose .purposeDesc p {
    font-size: 20px;
  }
}

/* ---------- Small SP (<=420px): tighter typography + smaller cards ---------- */
/*@media (max-width: 460px) {

  #purpose .purposeBlock {
    margin: 56px 0;
    gap: 14px;
  }

  #purpose .titleBox {
    padding: 14px 18px;
  }

  #purpose .titleBox__main {
    font-size: 22px;
  }

  #purpose .titleBox__sub {
    font-size: 18px;
  }

  #purpose .purposeDesc p {
    font-size: 16px;
  }*/

  /* script gi? nguyn, ch? nhch nh? cho ?p */
  /*#purpose .purposeBlock__script {
    bottom: 16px;
    width: min(460px, 92%);
  }

  #purpose .productGrid {
    --gap: 14px;
    padding: 10px 16px 8px 0;
  }*/

  /* card width SP */
  /*#purpose .productGrid>* {
    flex-basis: 220px;
    min-width: 220px;
  }
}*/

@media (max-width: 479px) {

  #purpose .purposeBlock {
    margin: 56px 0;
    gap: 14px;
  }

  #purpose .titleBox {
    padding: 14px 0;
  }

  #purpose .titleBox__main {
    font-size: 22px;
  }

  #purpose .titleBox__sub {
    font-size: 14px;
  }

  #purpose .purposeDesc p {
    font-size: 14px;
  }

  /* script gi? nguyn, ch? nhch nh? cho ?p */
  #purpose .purposeBlock__script {
    /*bottom: 16px;*/
    bottom: -90px !important;
    width: min(460px, 92%);
  }

  #purpose .productGrid {
    --gap: 14px;
    padding: 10px 16px 8px 0;
  }

  /* card width SP */
  #purpose .productGrid>* {
    flex-basis: 220px;
    min-width: 220px;
  }
}

/* (Tu? ch?n) ?n scrollbar cho #purpose product swipe (Chrome/Safari) */
#purpose .productGrid::-webkit-scrollbar {
  height: 0;
}




/* =========================================================
   TITLE BOX (auto expand by content)
========================================================= */
.titleBox {
  display: inline-flex;
  /* inline ? box m n?i dung */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;

  margin: 0 auto 30px;
  background: #fff;
  border: 1px solid #333;
  box-shadow: 7px 7px 0 #D4B62E;

  width: fit-content;
  /* t? n? theo text */
  max-width: 100%;
  /* khng v??t qu c?t ph?i */
  padding: 20px 36px;
  /* padding ngang tng ? gi?ng m?u */
  text-align: center;
  box-sizing: border-box;
}

.titleBox__main {
  font-size: 32px;
  font-weight: 800;
  color: #D4B62E;
  letter-spacing: 0.1em;
  line-height: 1.2;
}

.titleBox__sub {
  font-size: 28.8px;
  font-weight: 600;
  color: #222;
  white-space: nowrap;
  /* desktop: ?u tin 1 dng */
  
}
/* =========================================
   #purpose: productGrid--3 
   ========================================= */
@media (max-width: 767px) {

  /* 1) Container th���nh slider */
  #purpose .purposeBlock .productGrid.productGrid--3{
    --gap: 12px;

    display: flex !important;
    flex-wrap: nowrap !important;          /* QUAN TR?NG: slider ph?i nowrap */
    gap: var(--gap) !important;

    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch;

    scroll-snap-type: x mandatory;
    scroll-padding-left: 20px;

    padding: 0 20px 22px !important;       /* ch?a l? tr���i/ph?i gi?ng --5 */
    scrollbar-width: none;                  /* Firefox */
    -ms-overflow-style: none;               /* old Edge/IE */
  }
  #purpose .purposeBlock .productGrid.productGrid--3::-webkit-scrollbar{
    display: none;
    height: 0;
  }

  /* 2) Card: hi?n th? 2 card / 1 view (gi?ng logic b?n d���ng cho --5) */
  #purpose .purposeBlock .productGrid.productGrid--3 > .pCard{
    flex: 0 0 calc((100% - 40px - var(--gap)) / 2) !important;
    min-width: calc((100% - 40px - var(--gap)) / 2) !important;

    scroll-snap-align: start;
    scroll-margin-left: 20px;
    display: flex;
    flex-direction: column;
  }

  /* 3) ?nh trong card (gi? style b?n ���ang mu?n) */
  #purpose .purposeBlock .productGrid.productGrid--3 .pCard__img{
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }
  #purpose .purposeBlock .productGrid.productGrid--3 .pCard__img > img{
    width: 192px !important;   /* ch?nh to/nh? t?i ����y */
    height: 192px !important;
    object-fit: cover !important;
    border-radius: 12px !important;
    display: block !important;
  }
}

/* SP nh? h?n: n���n gap/padding + size ?nh */
/*@media (max-width: 460px) {
  #purpose .purposeBlock .productGrid.productGrid--3{
    --gap: 8px;
    padding: 0 12px 18px !important;
    scroll-padding-left: 12px;
  }
  #purpose .purposeBlock .productGrid.productGrid--3 > .pCard{
    flex-basis: calc((100% - 24px - var(--gap)) / 2) !important;
    min-width: calc((100% - 24px - var(--gap)) / 2) !important;
    scroll-margin-left: 12px;
  }

  #purpose .purposeBlock .productGrid.productGrid--3 .pCard__img > img{
    width: 160px !important;
    height: 160px !important;
  }
}*/

@media (max-width: 479px) {
  #purpose .purposeBlock .productGrid.productGrid--3{
    --gap: 8px;
    padding: 0 0 18px !important;
    scroll-padding-left: 12px;
  }
  #purpose .purposeBlock .productGrid.productGrid--3 > .pCard{
    flex: 0 1 calc((100% - 24px - var(--gap)) / 2) !important;
    /*min-width: calc((100% - 24px - var(--gap)) / 2) !important;*/
    scroll-margin-left: 12px;
  }

  #purpose .purposeBlock .productGrid.productGrid--3 .pCard__img > img{
    width: 160px !important;
    height: 160px !important;
    object-fit: contain !important;
  }
}

/* =========================================================
   DESCRIPTION
========================================================= */
.purposeDesc {
  width: 100%;
  margin: 0 0 35px;
  padding: 0;
  border: none;
}

.purposeDesc p {
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--line, #E6E2D6);
  text-align: center;
  font-size: 24px;
  color: #444;
  font-weight: 500;
  line-height: 1.4;
}

/* =========================================================
   PRODUCT GRID (3/4/5 cols) - grid -> flex with --cols
========================================================= */
.productGrid {
  --cols: 3;
  --gap: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap);
}

.productGrid--3 {
  --cols: 3;
}

.productGrid--4 {
  --cols: 4;
}

.productGrid--5 {
  --cols: 5;
}

.productGrid>* {
  flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols));
  min-width: 0;
}

/* placeholder boxes */
.imgPh {
  width: 100%;
  background: #EFEFEF;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.imgPh--p {
  aspect-ratio: 1/1;
}

.imgPh--logo {
  height: 34px;
}


/* =========================
   PURPOSE CENTER
========================= */
.purposeCenter {
  margin: 96px 0;
  padding: 0;
}

/* TitleBox center */
.titleBox--center {
  margin: 0 auto 56px;
  text-align: center;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.titleBox--center .titleBox__main,
.titleBox--center .titleBox__sub {
  display: block;
  width: 100%;
  text-align: center;
  line-height: 1.25;
}

.titleBox--center .titleBox__sub {
  margin-top: 4px;
}

/* =========================================================
   PC/TB base: 5 cols (flex wrap) + responsive down to 2 cols
========================================================= */
.purposeCenter .productGrid.productGrid--5 {
  --gap: 36px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--gap);
}

/* 5 c?t */
.purposeCenter .productGrid.productGrid--5>.pCard {
  flex: 0 0 calc((100% - (4 * var(--gap))) / 5);
  min-width: 0;
}

.purposeCenter .pCard__name {
  font-size: 18px;
  line-height: 1.35;

  margin: 0;
  padding: 10px 0 10px 0;
  border: none;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.purposeCenter .pCard__price .yen {
  font-size: 16px;
}



@media (max-width: 1100px) {

  /* 4 c?t */
  .purposeCenter .productGrid.productGrid--5 {
    --gap: 28px;
  }

  .purposeCenter .productGrid.productGrid--5>.pCard {
    flex-basis: calc((100% - (3 * var(--gap))) / 5);
  }
}

@media (max-width: 900px) {

  /* 3 c?t */
  .purposeCenter .productGrid.productGrid--5 {
    --gap: 22px;
  }

  .purposeCenter .productGrid.productGrid--5>.pCard {
    flex-basis: calc((100% - (2 * var(--gap))) / 5);
  }
}

@media (max-width: 600px) {

  /* 2 c?t (ch?a scroll) */
  .purposeCenter {
    margin: 64px 0;
  }

  .purposeCenter .productGrid.productGrid--5 {
    --gap: 16px;
    justify-content: center;
  }

  .purposeCenter .productGrid.productGrid--5>.pCard {
    flex-basis: calc((100% - var(--gap)) / 2);
  }
}

/* =========================================================
   SMARTPHONE (<=767px): HI?N 2 CARD / 1 VIEW + SCROLL NGANG
   (Fix m?t ���?u + thu nh? ch?c ch?n)
========================================================= */
@media (max-width: 767px) {
  .purposeCenter {
    margin: 40px 0;
  }

  .purposeCenter .productGrid.productGrid--5 {
    --gap: 12px;

    flex-wrap: nowrap;
    justify-content: flex-start;

    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;

    /* l? tr���i/ph?i ���? card kh���ng d���nh m���p */
    padding: 0 20px 22px;

    /* snap + FIX ��m?t ���?u�� */
    scroll-snap-type: x mandatory;
    scroll-padding-left: 20px;

    /* ?n scrollbar */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* old Edge/IE */
  }

  .purposeCenter .productGrid.productGrid--5::-webkit-scrollbar {
    display: none;
    height: 0;
  }

  /* 2 card / view: (100% - 40px padding - gap) / 2 */
  .purposeCenter .productGrid.productGrid--5>.pCard {
    flex: 0 0 calc((100% - 40px - var(--gap)) / 2);
    min-width: calc((100% - 40px - var(--gap)) / 2);

    scroll-snap-align: start;
    scroll-margin-left: 20px;
    /* th���m b?o hi?m kh���ng m?t ���?u */
    display: flex;
    flex-direction: column;
  }



  /* IMG vu���ng + cover */
  .purposeCenter .pCard__img {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
    padding: 6px;
    /* <-- t���ng/gi?m 4?10px */
    background: #fff;
    /* vi?n tr?ng */
  }

  .purposeCenter .pCard__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    /* ���? bo g���c ���?p trong frame */
  }

  /* Typography nh? l?i cho SP */
  .purposeCenter .pCard__name {
    font-size: 15px;
    line-height: 1.35;

    margin: 0;
    padding: 0;
    border: none;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;

    min-height: 2.8em;
    /* gi? ���?u chi?u cao 2 d���ng */
  }

  .purposeCenter .pCard__price {
    text-align: right;
    color: #d00000;
    font-weight: 700;

    margin-top: auto;
    font-size: 13px;
    line-height: 1.1;
  }
}
/* =========================================
   SP nh?: pCard__img nh? l?i + lu���n n?m gi?a
   ========================================= */
@media (max-width: 460px) {

  /* KHU #purpose (slider s?n ph?m) */
  #purpose .purposeBlock .productGrid .pCard__img{
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }
  #purpose .purposeBlock .productGrid .pCard__img > img{
    width: 160px !important;   /* <-- ch?nh nh?/l?n t?i ����y */
    height: 160px !important;
    margin: 0 auto !important; /* ���?m b?o lu���n gi?a */
    object-fit: cover !important;
    border-radius: 12px !important;
  }

  /* KHU .purposeCenter (n?u b?n c���Eg mu?n nh? l?i ? ����y) */
  .purposeCenter .pCard__img{
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }
  .purposeCenter .pCard__img img{
    width: 100% !important;
    height: 100% !important;
    margin: 0 auto !important;
    object-fit: cover !important;
    border-radius: 12px !important;
  }
}



/* =========================================================
   VERY SMALL (<=460px): thu nh? th���m ���? 2 card r��� h?n
========================================================= */
@media (max-width: 460px) {
  .purposeCenter {
    margin: 30px 0;
  }

  .titleBox--center {
    padding: 10px 15px;
    margin-bottom: 25px;
    box-shadow: 4px 4px 0px #d4af37;
  }

  .titleBox--center .titleBox__main {
    font-size: 17px;
  }

  .purposeCenter .productGrid.productGrid--5 {
    --gap: 8px;
    padding: 0 12px 18px;
    scroll-padding-left: 12px;
  }

  /* 2 card / view: (100% - 24px padding - gap) / 2 */
  .purposeCenter .productGrid.productGrid--5>.pCard {
    flex-basis: calc((100% - 24px - var(--gap)) / 2);
    min-width: calc((100% - 24px - var(--gap)) / 2);
    scroll-margin-left: 12px;
  }

  .purposeCenter .pCard__img {
    border-radius: 6px;
    margin-bottom: 6px;
  }

  .purposeCenter .pCard__name {
    font-size: 14px;
    min-height: 2.6em;
  }

  .purposeCenter .pCard__price {
    font-size: 10px;
  }

  .purposeCenter .pCard__price .yen {
    font-size: 10x;
  }
}




/* =========================================================
   ITEM SECTION  - title hng trn, ?nh tri, cards ph?i scroll ngang
========================================================= */

/* 1) Grid: row 1 = title, row 2 = left + right */
.section--item .itemBlock {
  display: grid;
  grid-template-columns: 360px 1fr;
  grid-template-areas:
    "ttl  ttl"
    "left right";
  column-gap: 48px;
  row-gap: 22px;
  align-items: start;
  margin-top: 88px;
  margin-bottom: 72px;
}

.section--item .itemBlock {
  position: relative;
}

/* ===== Title TATE ===== */
.section--item .itemBlock__ttl--tate {
  -webkit-writing-mode: vertical-rl;
  writing-mode: vertical-rl;

  position: absolute;
  top: 10px;
  left: 20px;
  z-index: 10;
  margin: 0;
  font-family: "Yu Mincho", "MS PMincho", serif;
  font-size: 26px;
  font-weight: normal;
  color: #533e15;
  letter-spacing: 0.2em;
  white-space: nowrap;
  border-right: 1px solid #533e15;
  padding-right: 0.5em;
  /* Kho?ng cch gi?a ch? v ??ng k? */
  padding-bottom: 10px;
  /* Kho?ng cch ? ??ng k? di h?n ch? m?t cht n?u mu?n */
  width: auto;
  max-width: none;
  display: block;
}

/* ===== Title YOKO ===== */
.section--item .itemBlock__ttl--yoko {
  -webkit-writing-mode: horizontal-tb;
  writing-mode: horizontal-tb;
  /* m?c ?nh, nh?ng khai bo r */
  position: absolute;
  top: 40px;
  left: 16px;
  z-index: 10;
  margin: 0;
  font-family: "Yu Mincho", "MS PMincho", serif;
  font-size: 26px;
  font-weight: normal;
  color: #533e15;
  letter-spacing: 0.2em;
  white-space: nowrap;
  border-bottom: 1px solid #533e15;
}

.section--item .itemBlock__ttl--tate::after,
.section--item .itemBlock__ttl--yoko::after {
  display: none;
}

.section--item .itemBlock__left {
  grid-area: left;
  max-width: 360px;
}

.section--item .itemBlock__left img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 18px;
  display: block;
}

/* 4) Right: scroller + fade hint */
.section--item .itemBlock__right {
  grid-area: right;
  position: relative;
  min-width: 0;
  /* ? b?t bu?c ? overflow-x ho?t ?ng ??ng trong grid */
}

/* track scroll ngang */
.section--item .productGrid.productGrid--4 {
  display: flex;
  flex-wrap: nowrap;
  gap: 24px;

  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;

  padding: 18px 90px 12px 0;
  /* ch?a ch? ? th?y cn n?a */
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
}

.section--item .productGrid.productGrid--4>.pCard {
  flex: 0 0 235px;
  min-width: 235px;
  scroll-snap-align: start;
  position: relative;
}

/* fade hint bn ph?i */
.section--item .itemBlock__right::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 90px;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(90deg,
      rgba(255, 253, 248, 0),
      rgba(255, 253, 248, 1));
}

/* 5) Badge (crown + flag) */
.section--item .pCard--rank {
  padding-top: 22px;
}

.section--item .pCard--rank .pCard__badge {
  position: absolute;
  top: 0;
  left: 6px;
  transform: translateY(-16px);
  z-index: 10;

  display: flex;
  gap: 6px;
  pointer-events: none;
}

/* size m?c ?nh (desktop) */
.section--item .pCard--rank .pCard__badge img {
  height: 44px;
  width: auto;
  display: block;
}

/* =========================================================
   ƥ (#item) - badge size nh? h?n (gi? logic c?a b?n)
========================================================= */
#item .pCard--rank .pCard__badge {
  --flag-h: 41.6px;
  --crown-scale: 0.78;
}

/* crown */
#item .pCard--rank .pCard__badge img:first-child {
  height: calc(var(--flag-h) * var(--crown-scale));
}

/* flag */
#item .pCard--rank .pCard__badge img:nth-child(2) {
  height: var(--flag-h);
}

/* ch? c 1 ci (ch? flag) */
#item .pCard--rank .pCard__badge img:only-child {
  height: var(--flag-h);
}

/* scrollbar m?nh (tu? ch?n) */
.section--item .productGrid.productGrid--4::-webkit-scrollbar {
  height: 8px;
}

.section--item .productGrid.productGrid--4::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, .18);
  border-radius: 999px;
}

.section--item .productGrid.productGrid--4::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, .06);
  border-radius: 999px;
}

/* =========================================================
   ITEM (#item) Responsive
   - TB (Tablet) <=1024px: gi�? b�? c�?c PC, ch�? thu nh�? ??�? hi�?n th�? ??�? ph�?n
   - SP (Smartphone) <=768px: banner + list d�?c (gi�?ng �?nh b�?n g�?i)
========================================================= */

/* TB: banner + list */
@media (max-width: 1024px) {
  .section--item .itemBlock {
    grid-template-columns: 1fr;
    grid-template-areas:
      "ttl"
      "left"
      "right";
    column-gap: 0;
    row-gap: 18px;
    margin-top: 72px;
    margin-bottom: 56px;
  }



  .section--item .itemBlock__ttl--yoko,
  .section--item .itemBlock__ttl--tate {
    position: static;
    top: auto;
    left: auto;

    grid-area: ttl;
    justify-self: start;

    -webkit-writing-mode: horizontal-tb;
    writing-mode: horizontal-tb;

    display: flex;
    align-items: center;
    gap: 16px;

    margin: 0 0 10px;
    padding: 0 0 10px;

    font-size: 22px;
    letter-spacing: 0.18em;
    white-space: normal;
    border-bottom: 1px solid #533e15;
  }

  .section--item .itemBlock__ttl--yoko::after,
  .section--item .itemBlock__ttl--tate::after {
    content: "";
    display: block;
    flex: 1;
    height: 1px;
    background: #533e15;
  }

  /* �?nh trái th??nh banner */
  .section--item .itemBlock__left {
    max-width: none;
    margin-bottom: 10px;
  }

  .section--item .itemBlock__left img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 16px;
  }

  /* b�? fade hint + b�? scroll ngang */
  .section--item .itemBlock__right::after {
    display: none;
  }

  /* list d�?c */
  .section--item .productGrid.productGrid--4 {
    display: flex;
    flex-direction: column;
    gap: 22px;

    overflow: visible;
    padding: 0;

    scroll-snap-type: none;
  }

  /* vô hi�?u drag ngang khi chuy�?n sang list d�?c */
  #item.section--item .productGrid.dragScroll {
    cursor: auto;
    user-select: auto;
    -webkit-user-select: auto;
    touch-action: pan-y;
  }

  /* card d�?ng 2 c�?t: �?nh trái + text ph�?i */
  .section--item .productGrid.productGrid--4>.pCard {
    flex: none;
    min-width: 0;

    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 8px 18px;
    align-items: start;
  }

  .section--item .productGrid.productGrid--4>.pCard .pCard__img {
    grid-column: 1;
    grid-row: 1 / span 3;
    width: 140px;
    border-radius: 12px;
  }

  .section--item .productGrid.productGrid--4>.pCard .pCard__img img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    display: block;
  }

  .section--item .productGrid.productGrid--4>.pCard .pCard__catch,
  .section--item .productGrid.productGrid--4>.pCard .pCard__name,
  .section--item .productGrid.productGrid--4>.pCard .pCard__price,
  .section--item .productGrid.productGrid--4>.pCard .pCard__desc {
    grid-column: 2;
  }


  #item.section--item .productGrid.productGrid--4 .pCard__catch {
    margin: 0;
    font-size: 13px;

    display: inline-block;
    padding-bottom: 4px;
    border-bottom: 1px solid #533e15 !important;
    line-height: 1.2;
  }

  #item.section--item .productGrid.productGrid--4 .pCard__name {
    margin: 2px 0 0;
    padding: 0;
    border: none;
    font-size: 18px;
    line-height: 1.45;
  }

  #item.section--item .productGrid.productGrid--4 .pCard__price {
    margin: 8px 0 0;
    text-align: right;
    font-size: 20px;
    line-height: 1.15;
  }

  #item.section--item .productGrid.productGrid--4 .pCard__price .tax {
    font-size: 12px;
  }

  #item .pCard--rank {
    padding-top: 0;
  }

  #item .pCard--rank .pCard__badge {
    top: -10px;
    left: -4px;
    transform: none;
    gap: 5px;
    --flag-h: 36px;
    --crown-scale: 0.78;
  }
}


@media (max-width: 768px) {
  .section--item .itemBlock {
    grid-template-columns: 1fr;
    grid-template-areas:
      "ttl"
      "left"
      "right";
    column-gap: 0;
    row-gap: 14px;
    margin-top: 56px;
    margin-bottom: 48px;
  }

  /* Title: text bên trái + line kéo d??i sang ph�?i */
  .section--item .itemBlock__ttl--yoko,
  .section--item .itemBlock__ttl--tate {
    position: static;
    top: auto;
    left: auto;

    grid-area: ttl;
    justify-self: start;

    -webkit-writing-mode: horizontal-tb;
    writing-mode: horizontal-tb;

    display: flex;
    align-items: center;
    gap: 14px;

    margin: 0 0 8px;
    padding: 0 0 8px;

    font-size: 20px;
    letter-spacing: 0.16em;
    white-space: normal;
    border-bottom: 1px solid #533e15;

  }

  .section--item .itemBlock__ttl--yoko::after,
  .section--item .itemBlock__ttl--tate::after {
    content: "";
    display: block;
    flex: 1;
    height: 1px;
    background: #533e15;
  }

  /* �?nh trái th??nh banner */
  .section--item .itemBlock__left {
    max-width: none;
    margin: 0;
  }

  .section--item .itemBlock__left img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 40px;
  }

  /* b�? fade hint (vì không còn scroll ngang) */
  .section--item .itemBlock__right::after {
    display: none;
  }

  /* list d�?c */
  .section--item .productGrid.productGrid--4 {
    display: flex;
    flex-direction: column;
    gap: 40px;

    overflow: visible;
    padding: 0;

    scroll-snap-type: none;
  }

  /* card d�?ng 2 c�?t: �?nh trái + text ph�?i */
  .section--item .productGrid.productGrid--4>.pCard {
    flex: none;
    min-width: 0;

    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 6px 16px;
    align-items: start;
  }

  #item.section--item .productGrid.productGrid--4 .pCard__name {
    font-size: 14px;
  }

  #item.section--item .productGrid.productGrid--4 .pCard__name {
    font-size: 14px;
  }

  .section--item .productGrid.productGrid--4>.pCard .pCard__img {
    grid-column: 1;
    grid-row: 1 / span 3;
    width: 120px;
    border-radius: 10px;
  }

  .section--item .productGrid.productGrid--4>.pCard .pCard__img img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    display: block;
  }

  .section--item .productGrid.productGrid--4>.pCard .pCard__catch,
  .section--item .productGrid.productGrid--4>.pCard .pCard__name,
  .section--item .productGrid.productGrid--4>.pCard .pCard__price,
  .section--item .productGrid.productGrid--4>.pCard .pCard__desc {
    grid-column: 2;
  }

  .section--item .productGrid.productGrid--4>.pCard .pCard__catch {
    margin: 0;

    display: inline-block;
    padding-bottom: 4px;
    border-bottom: 1px solid #533e15 !important;
    line-height: 1.2;
  }

  .section--item .productGrid.productGrid--4>.pCard .pCard__name {
    margin: 2px 0 0;
    padding: 0;
    border: none;
  }

  .section--item .productGrid.productGrid--4>.pCard .pCard__price {
    margin: 6px 0 0;
    text-align: left;
  }

  /* badge ??è lên thumbnail (gi�?ng �?nh b�?n g�?i) */
  #item .pCard--rank {
    padding-top: 0;
  }

  #item .pCard--rank .pCard__badge {
    top: -28px;
    left: -4px;
    transform: none;
    gap: 4px;
    --flag-h: 34px;
    --crown-scale: 0.78;
  }
}

/* Small SP */
@media (max-width: 460px) {
  .section--item .itemBlock {
    margin-top: 48px;
    margin-bottom: 40px;
    row-gap: 12px;
  }

    .section--item .itemBlock__ttl--yoko,
  .section--item .itemBlock__ttl--tate {
   font-size: 16px;

  }

  .section--item .productGrid.productGrid--4>.pCard {
    grid-template-columns: 104px 1fr;
    gap: 6px 12px;
  }

  #item.section--item .productGrid.productGrid--4 .pCard__nname {
    font-size: 13px;
  }

  #item.section--item .productGrid.productGrid--4 .yen {
    font-size: 13px;
  }

  .section--item .productGrid.productGrid--4>.pCard .pCard__img {
    width: 104px;
  }

  #item .pCard--rank .pCard__badge {
    --flag-h: 30px;
  }

}


/* =========================================================
   itembetsu scroll
========================================================= */

/* Drag to scroll (ko tr?c ti?p trn s?n ph?m) */
.dragScroll {
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  /* cho php cu?n d?c trang; x? l ko ngang b?ng JS */
}

.dragScroll.is-dragging {
  cursor: grabbing;
}

/* trnh ko-??p ?nh / bi en ch? khi drag */
.dragScroll img,
.dragScroll a {
  -webkit-user-drag: none;
  user-select: none;
}


/* =========================================================
    (#price) - match layout screenshot
========================================================= */
#price.section--price {
  background: --var(line);
  padding: 40px 0 80px;
}

#price .container {
  max-width: 1240px;
  /* ? ra ??ng kho?ng cch 5 cards */
  margin: 0 auto;
  padding: 0 24px;
}

/* ====== Title "" (gi?a, to, c bng nh? mu nu) ====== */
#price .sectionHead {
  margin-bottom: 72px;
}

#price .sectionHead__ttl {
  margin: 0;
  text-align: center;
  font-size: 48px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: #222;
  line-height: 1.1;
}

/* ====== Block ====== */
#price .priceBlock {
  margin: 60px 0 40px;
}

/* ====== Sub title "1,000" + g?ch d??i di ====== */
#price .priceBlock__ttl {
  margin: 0 0 44px;
  padding: 0 0 14px;

  width: 460px;
  /* chi?u di line gi?ng ?nh */
  max-width: 100%;

  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #222;

  border-bottom: 3px solid #CFCFCF;
}

/* ====== Grid 5 items 1 hng nh? ?nh ====== */
/* ====== #price: vu?t ngang + hi?n th? 4.5 s?n ph?m ====== */
#price .productGrid.productGrid--5 {
  --gap: 24px;

  display: flex;
  flex-wrap: nowrap;
  gap: var(--gap);

  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;

  padding: 26px 0 12px;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;

  /* ?N scrollbar (Chrome/Safari/Edge/Firefox) */
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* old Edge/IE */
}

#price .productGrid.productGrid--5::-webkit-scrollbar {
  height: 0;
  display: none;
  /* Chrome/Safari */
}

/* Card width ? v?a 4.5 items trong khung nhn */
#price .productGrid.productGrid--5>.pCard {
  flex: 0 0 calc((100% - (4 * var(--gap))) / 4.5);
  min-width: calc((100% - (4 * var(--gap))) / 4.5);
  scroll-snap-align: start;
}


/* ====== Card (khng h?p, khng shadow) ====== */
#price .pCard {
  position: relative;
  width: auto;
  /* <-- ?i dng ny */
  text-align: center;
  background: transparent;
  padding: 0;
  border: none;
  box-shadow: none;
}

/* ?nh vung, vi?n m?nh */
#price .pCard__img {
  display: block;
}

#price .pCard__img img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border: 1px solid #E6E6E6;
  border-radius: 0;
}

/* catch */
#price .pCard__catch {
  margin: 14px 0 8px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--muted);
}

/* name */
#price .pCard__name {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.45;
  color: #111;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

/* price */
#price .pCard__price {
  margin: 0;
  font-weight: 900;
  color: #D10F1B;
  line-height: 1;
}

#price .pCard__price .yen {
  font-size: 24px;
  letter-spacing: 0.02em;
}

#price .pCard__price .tax {
  font-size: 12px;
  font-weight: 800;
  margin-left: 2px;
  color: #D10F1B;
}

/* ====== Badge (crown + flag) nh ln trn ?nh ====== */
#price .pCard--rank .pCard__badge {
  position: absolute;
  top: -36px;
  /* nh ln nh? ?nh */
  left: 0;
  z-index: 10;
  display: flex;
  gap: 6px;
  pointer-events: none;

  --flag-h: 40px;
  /* ??ng c?m gic ?nh */
  --crown-scale: 0.9;
}

/* crown */
#price .pCard--rank .pCard__badge img:first-child {
  height: calc(var(--flag-h) * var(--crown-scale));
  width: auto;
  display: block;
}

/* flag khi c 2 ?nh */
#price .pCard--rank .pCard__badge img:nth-child(2) {
  height: var(--flag-h);
  width: auto;
  display: block;
}

/* rank4/rank5 ch? c 1 ?nh */
#price .pCard--rank .pCard__badge img:only-child {
  height: var(--flag-h);
  width: auto;
  display: block;
}

/* ====== Responsive (gi? logic, desktop m?i l gi?ng ?nh 100%) ====== */
/* =========================
   (#price) Responsive (flex-based)
   - TB (Tablet) = m���y t���nh b?ng
   - SP (Smartphone) = ���i?n tho?i
   - PC (Desktop) = m���y t���nh
========================= */

/* TB: v?n swipe, card to v?a h?n (kho?ng ~3 c���i trong khung) */
@media (max-width: 1024px) {
  #price .productGrid.productGrid--5 {
    --gap: 18px;
    padding: 18px 0 10px;
  }

  #price .productGrid.productGrid--5>.pCard {
    flex: 0 0 calc((100% - (2 * var(--gap))) / 3.05);
    min-width: calc((100% - (2 * var(--gap))) / 3.05);
  }

  #price .pCard__name {
    font-size: 16px;
  }

  #price .pCard__price .yen {
    font-size: 22px;
  }

  #price .pCard--rank .pCard__badge {
    top: -30px;
    --flag-h: 34px;
    --crown-scale: 0.85;
  }
}

/* SP: hi?n th? ����ng 2 kh?i, c���n l?i l??t ngang */
@media (max-width: 650px) {
  #price .container {
    padding: 0 16px;
  }

  #price .sectionHead__ttl {
    margin: 0;
    text-align: center;
    font-size: 28px;
    font-weight: 700;
  }

  #price .productGrid.productGrid--5 {
    --gap: 14px;
    padding: 20px 0 8px;
    /* cho ph���p thao t���c swipe t? nhi���n tr���n mobile */
    touch-action: pan-x pan-y;
  }

  /* 2 cards / viewport */
  #price .productGrid.productGrid--5>.pCard {
    flex: 0 0 calc((100% - var(--gap)) / 2);
    min-width: calc((100% - var(--gap)) / 2);
  }

  #price .pCard__catch {
    font-size: 12px;
    margin: 10px 0 6px;
  }

  #price .pCard__name {
    font-size: 14px;
    margin: 0 0 10px;
    -webkit-line-clamp: 3;
  }

  #price .pCard__price .yen {
    font-size: 18px;
  }

  #price .pCard__price .tax {
    font-size: 11px;
  }

  /* badge nh? l?i ���? kh���ng �ȏ��n�� v���o ?nh qu��� nhi?u */
  #price .pCard--rank .pCard__badge {
    top: -26px;
    gap: 4px;
    --flag-h: 30px;
    --crown-scale: 0.8;
  }
}

/* SP nh?: v?n gi? 2 kh?i nh?ng ch? g?n h?n */
@media (max-width: 460px) {
  #price .priceBlock__ttl {
    font-size: 20px;
    padding: 0 0 6px;
  }

  #price .productGrid.productGrid--5 {
    --gap: 12px;
  }

  #price .pCard__name {
    font-size: 14px;
  }

  #price .pCard__price .yen {
    font-size: 13px;
  }
}



/* =========================================================
   SERVICE GRID (3 cols) - grid -> flex
========================================================= */
.serviceGrid {
  --cols: 3;
  --gap: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap);
}

.serviceGrid>.serviceCard {
  flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols));
  min-width: 0;
}

.serviceCard {
  background: #fff;
  padding: 14px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.03);
}

.serviceCard__img {
  overflow: hidden;
}

.serviceCard__img .imgPh {
  aspect-ratio: 1/1;
}

.serviceCard__ttl {
  margin: 12px 0 8px;
  font-size: 16px;
  font-weight: 900;
  text-align: center;
}

.serviceCard__txt {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .serviceGrid {
    --cols: 2;
    --gap: 14px;
    padding: 20px 0;
  }
}

@media (max-width: 420px) {
  .serviceGrid {
    --cols: 2;
    --gap: 10px;
    padding: 16px 0;
  }

  .serviceCard {
    padding: 0;
  }
}




/* =========================================================
   TOP5 (#top5) - 1200px / spacing / typography tuning
   ========================================================= */

/* 1) N?n vng nh?t ? t?o ȶܡ */
#top5.section--top5 {
  background: #fffdf8;
  padding: 96px 0 104px;
}

#top5 .container {
  max-width: 1200px;
  padding: 0 24px;
}


/* =========================================================
   Pick up title (t?m dng text Pick up, sau ny ?i sang ?nh)
   + thm Ƚ ? pha trn Pick up
========================================================= */
#top5 .scriptTitle {
  position: relative;
  margin: 10px 0 26px;
  text-align: center;
  font-size: 40px;
  /* gi?m nh? ? b?t to */
  letter-spacing: 0.04em;
}

/*  (trn ch? Pick up) */
#top5 .scriptTitle::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -180px;
  transform: translateX(-50%);
  width: 1px;
  height: 160px;
  background: var(--gold);
}

@media (max-width: 460px) {
  #top5 .scriptTitle {
    margin: 6px 0 14px;
    font-size: 20px;
  }

  #top5 .scriptTitle::before {
    top: -60px;
    height: 45px;
  }
}



/* =========================================================
   Pick up block spacing + cn b? c?c cho nh?
========================================================= */


#top5 .rankGrid--2col {
  --gap-row: 84px;
  --gap-col: 120px;
  /* kho?ng cch ngang gi?a 2 v 3, 4 v 5 -> tng r */
}

#top5 .rankGrid--2col .pCard__name {
  font-size: 22px;
  margin: 24px 0 10px;
  padding: 10px;
}

#top5 .rankGrid--2col .pCard__desc {
  font-size: 16px;
  line-height: 1.7;
  padding: 10px;
  letter-spacing: 0.02em;
}

/* Gi c th? gi?m nh? ? t?ng th? ??? to */
#top5 .rankGrid--2col .pCard__price {
  font-size: 16px;
}

#top5 .rankGrid--2col .pCard__price .tax {
  font-size: 16px;
}

#top5 .pickup {
  gap: 44px;
  /* tng kho?ng cch cho thong */
  border-radius: 20px;
}


#top5 .pickup__name {
  text-align: center;
  font-size: 20px;
  display: inline-block;
  margin: 20px 0 0 5px;
  padding-bottom: 18px;
  letter-spacing: 0.04em;
  text-align: left;
}


/* =========================================================
   Responsive: nh? mn hnh th gap gi?m l?i
========================================================= */
@media (max-width: 768px) {
  #top5 .rankGrid--2col {
    --gap-col: 44px;
    --gap-row: 64px;
  }

  /* gi? layout d?c */
  #top5 .pickup {
    display: flex;
    flex-direction: column;
    padding-left: 0;
    gap: 0;
  }

  /* quan tr?ng: l���m ph?ng body ���? catch/name/price/desc th���nh flex-item */
  #top5 .pickup__body {
    display: contents !important;
  }

  /* ? th? t? m?i: catch (tr���n c���ng) -> rank -> img -> thumbs -> name -> price -> desc */
  #top5 .pickup__catch {
    order: 1;
  }

  #top5 .pickup__rank {
    order: 2;

    /* ? b? absolute ���? n��� KH���NG n?m tr���n catch n?a */
    position: static !important;
    top: auto;
    left: auto;
    transform: none;
    transform: translateY(6px);
    gap: 4px;
    top: -18px;
    --flag-h: 40px;
    --crown-scale: 0.78;
    z-index: 1;
    pointer-events: none;
  }

  #top5 .pickup__img {
    order: 3;
  }

  #top5 .thumbRow {
    order: 4;
  }

  #top5 .pickup__name {
    order: 5;
  }

  #top5 .pickup__price {
    order: 6;
    align-self: flex-end;
    margin-left: auto;
  }

  #top5 .pickup__desc {
    order: 7;
  }

  .pickup__body .btn {
    align-self: center;
  }

  #top5 .btn{
    order: 8;
    margin-top: 20px;
  }



  #top5.section--top5 {
    padding: 72px 0 80px;
  }

  #top5 .sectionHead__ttl {
    height: 110px;
  }

  #top5 .scriptTitle {
    font-size: 32px;
  }

  #top5 .pickup__name {
    font-size: 16px;
  }

  #top5 .rankGrid--2col {
    --gap-col: 0px;
    --gap-row: 44px;
  }

  #top5 .rankGrid--2col .pCard__name {
    font-size: 16px;
    margin: 12px 0 6px;
    padding-bottom: 6px;
  }



  #top5 .rankGrid--2col .pCard__desc {
    font-size: 14px;
  }

}


/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 1024px) {

  /* 1024px */
  .rankGrid--2col>.pCard {
    flex-basis: calc(50% - 12px);
  }

  .productGrid--5 {
    --cols: 4;
  }

  /* gi?m 5 -> 4 cho d? nhn */
}

@media (max-width: 768px) {

  /* 768px */
  .pickup {
    flex-direction: column;
  }

  .pickup__img {
    flex-basis: auto;
  }

  .rankGrid--2col>.pCard {
    flex: 0 0 100%;
  }

  .purposeBlock {
    flex-direction: column;
  }

  .purposeBlock__left {
    flex-basis: auto;
    width: 100%;
  }

  .itemBlock {
    flex-direction: column;
  }

  .itemBlock__left {
    flex-basis: auto;
    width: 100%;
  }

  .productGrid--4 {
    --cols: 2;
  }

  .productGrid--5 {
    --cols: 2;
  }


}

@media (max-width: 420px) {

  /* 420px */
  .topNav__btn {
    width: 100%;
  }

  .thumbRow {
    flex-wrap: wrap;
  }

  .thumbRow__item {
    flex: 0 0 calc(50% - 6px);
  }

  .productGrid {
    --cols: 1;
  }
}

/* =========================================================
   Pickup (Rank 1) ??? TB/SP balance + SP reorder + swipe thumbs
   ??? PC styles are kept as-is. Add wrapper .pickupBlock (see HTML note).
   ========================================================= */

/* ---- Tablet: make typography & spacing more balanced ---- */
@media (max-width: 1024px) {
  .pickup {
    gap: 24px;

    /* keep PC left flush behavior */
  }

  .pickup__img {
    flex: 0 0 52%;
    border-radius: 14px;
  }

  .pickup__body {
    gap: 12px;
    padding: 6px 0 0;
  }

  .pickup__catch {
    font-size: 20px;
    padding: 14px 16px;
    box-shadow: 5px 5px 0 var(--gold);
  }

  .pickup__name {
    font-size: 22px;
    padding-bottom: 10px;
  }

  .pickup__price {
    font-size: 22px;
    margin: 0 0 8px;
  }

  .pickup__price .tax {
    font-size: 14px;
  }

  .pickup__desc {
    font-size: 16px;
  }

  .thumbRow {
    gap: 12px;
    margin-top: 14px;
  }

}

/* ---- SP: ????????? ??????
   catch ??? (big img + thumbRow as one frame, swipe) ??? name/price/desc
   NOTE: requires wrapping <article.pickup> and <ul.thumbRow> by .pickupBlock
   and keeps PC/TB unchanged (no base styles for .pickupBlock).
---- */
@media (max-width: 768px) {

  /* wrapper that contains: <article class="pickup"> ... </article> + <ul class="thumbRow"> ... </ul> */
  .pickupBlock {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "catch"
      "media"
      "thumbs"
      "name"
      "price"
      "desc";
  }

  /* flatten boxes so we can place inner elements into the grid */
  .pickup {
    display: contents;
  }

  .pickup__body {
    display: contents;
  }

  /* rank badge stays on top-left of the media frame */
  .pickup__rank {
    position: absolute;
    top: -28px;
    left: 10px;
    z-index: 20;
    --flag-h: 64px;
    --crown-scale: 0.78;
  }

  .pickup__catch {
    grid-area: catch;
    margin: 0 0 14px 14px;
    font-size: 18px;
    padding: 12px 14px;
    box-shadow: 4px 4px 0 var(--gold);
  }

  /* media frame top (big image) */
  .pickup__img {
    grid-area: media;
    border: 1px solid var(--line);
    border-bottom: 0;
    border-radius: 16px 16px 0 0;
  }

  /* media frame bottom (thumbs) */
  .thumbRow {
    grid-area: thumbs;
    background: #fff;
    border: 1px solid var(--line);
    border-top: 0;
    border-radius: 0 0 16px 16px;
    padding: 10px;
    margin-top: -2px;
    /* stitch with image frame */
    gap: 10px;

    /* swipe */
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }

  .thumbRow__item {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .thumbRow__img {
    width: clamp(72px, 22vw, 96px);
    aspect-ratio: 1 / 1;
    border-radius: 12px;
  }

  .pickup__name {
    grid-area: name;
    font-size: 18px;
    line-height: 1.5;
    padding: 12px 0 10px;
    border-bottom: 1px solid var(--line);
  }

  .pickup__price {
    grid-area: price;
    font-size: 18px;
    margin: 10px 0 0;
    text-align: right;
    /* mobile: easier to scan */
  }

  .pickup__price .tax {
    font-size: 12px;
  }

  .pickup__desc {
    grid-area: desc;
    font-size: 14px;
    line-height: 1.75;
    margin: 8px 0 0;
  }
}

/* small SP: keep swipe (override old wrap rule) */
@media (max-width: 420px) {
  .thumbRow {
    flex-wrap: nowrap;
  }
}


/* スクロール修正 */
.dragScroll, [data-dragscroll] { touch-action: pan-y; }

.dragScroll img, [data-dragscroll] img {
  -webkit-user-drag: none;
  user-select: none;
}

.is-dragging-active a { pointer-events: none; }