/* Homepage copy and layout polish. Existing heading fonts/glow remain intact. */
#wrapwrap:has(.kc-home) .kc-subnav { position: static; top: auto; }
.kc-home { padding-bottom: 28px; }
.kc-home .kc-wrap { min-width: 0; }
.kc-home .kc-home__cta { display: inline-flex; gap: 14px; align-items: center; }
.kc-home .kc-hero__text { max-width: 40ch; font-size: 17px; line-height: 1.6; }
.kc-home .kc-section-title { align-items: end; gap: 20px; margin: 0 0 22px; }
.kc-home .kc-section-title h2 { margin-bottom: 0; }
.kc-home .kc-section-title p { max-width: 44ch; margin: 0; font-size: 15px; line-height: 1.6; }
.kc-home-stores { margin: 36px 0 48px; }
.kc-home-stores__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.kc-home-store { display: flex; flex-direction: column; min-width: 0; margin: 0; padding: 24px; border: 1px solid #cdd0bf; border-radius: 14px; background: #fff; }
.kc-home-store__city { margin: 0 0 10px; color: #3b491d; font-size: 13px; font-weight: 700; }
.kc-home-store h3 { margin: 0 0 16px; font-size: 24px; line-height: 1.25; font-weight: 600; }
.kc-home-store__methods { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.kc-home-store__methods span { padding: 5px 10px; border-radius: 5px; background: #f4f2e5; color: #3b491d; font-size: 14px; line-height: 1.4; }
.kc-home-store__choose { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; min-height: 46px; margin-top: auto; padding: 10px 14px; border: 1px solid #3b491d; border-radius: 6px; background: #fff; color: #3b491d; font: inherit; font-size: 15px; font-weight: 700; text-align: start; }
.kc-home-store__choose:hover, .kc-home-store__choose[aria-pressed="true"] { background: #3b491d; color: #fff; }
.kc-home-store__choose:focus-visible { outline: 3px solid #fdd201; outline-offset: 3px; }
.kc-home .kc-category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 16px; }
.kc-home .kc-category-grid > .kc-tile, .kc-home .kc-category-grid > .kc-tile.kc-tile--feature { grid-column: auto; grid-row: auto; min-width: 0; min-height: 180px; height: 100%; padding: 24px; }
.kc-home .kc-category-grid > .kc-tile h3 { max-width: calc(100% - 28px); margin-top: 18px; font-size: 25px; line-height: 1.2; overflow-wrap: break-word; }
.kc-home .kc-category-grid > .kc-tile small { font-size: 13px; line-height: 1.4; }
.kc-home .kc-home__shop { margin: 44px 0 0; gap: 32px; align-items: center; }
.kc-home .kc-home__shop > div:first-child p { max-width: 40ch; font-size: 16px; line-height: 1.6; margin-bottom: 0; }
.kc-home .kc-home__shop h2 { max-width: 16ch; line-height: 1.2; }
.kc-home .kc-home__shop-card { min-width: 0; padding: 26px; border-radius: 12px; border: 1px solid #cdd0bf; }
.kc-home .kc-home__shop-card h3 { font-size: 23px; line-height: 1.3; }
.kc-home .kc-home__shop-card p, .kc-home .kc-home__shop-card a:not(.kc-btn) { font-size: 16px; line-height: 1.6; }
.kc-home .kc-home__shop-card a:not(.kc-btn) { color: #3b491d; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
#wrapwrap:has(.kc-home) .kc-footer { margin-top: 0; padding-top: 30px; font-size: 15px; line-height: 1.55; }
#wrapwrap:has(.kc-home) .kc-footer__title { font-size: 14px; line-height: 1.4; }
#wrapwrap:has(.kc-home) .kc-footer__list a { display: inline-flex; align-items: center; min-height: 32px; line-height: 1.45; }
#wrapwrap:has(.kc-home) .kc-footer__stores { max-width: 25ch; margin-top: 12px; font-size: 15px; }
#wrapwrap:has(.kc-home) .kc-footer__scope { max-width: 95ch; font-size: 14px; line-height: 1.6; }
#wrapwrap:has(.kc-home) .kc-footer .small { font-size: 13px; }
@media (min-width: 768px) {
  #wrapwrap:has(.kc-home) .kc-head > .kc-wrap { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 20px; padding-top: 16px; padding-bottom: 16px; }
  #wrapwrap:has(.kc-home) .kc-head-actions { display: flex; min-width: 0; flex: 1 1 auto; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
  #wrapwrap:has(.kc-home) .kc-head .kc-head-search { flex: 1 1 200px; min-width: 160px; max-width: 280px; }
  #wrapwrap:has(.kc-home) .kc-head-search__input { flex: 1 1 auto; width: 100%; min-width: 0; }
  #wrapwrap:has(.kc-home) .kc-head-btn { flex: 0 0 auto; max-width: 220px; white-space: normal; line-height: 1.3; }
  #wrapwrap:has(.kc-home) .kc-head-btn--account { overflow: visible; text-overflow: clip; }
  #wrapwrap:has(.kc-home) .kc-subnav > .kc-wrap { display: flex; flex-wrap: wrap; min-width: 0; gap: 0 20px; overflow: visible; }
  #wrapwrap:has(.kc-home) .kc-subnav__links { display: flex; flex: 1 1 750px; flex-wrap: wrap; gap: 0 20px; min-width: 0; overflow: visible; }
  #wrapwrap:has(.kc-home) .kc-subnav__links > a { flex: 0 1 auto; min-width: 0; gap: 5px; white-space: normal; padding: 12px 0; }
  #wrapwrap:has(.kc-home) .kc-subnav__count { margin-left: 0; flex-shrink: 0; }
  #wrapwrap:has(.kc-home) .kc-subnav__more { flex: 0 0 auto; min-height: 44px; }
}
@media (min-width: 992px) {
  .kc-home .kc-hero { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
  .kc-home .kc-hero__art { min-width: 0; }
  .kc-home .kc-hero__mark { min-width: 0; width: calc(100% - 64px); max-width: calc(100% - 64px); font-size: clamp(68px, 7.3vw, 104px); line-height: 1; letter-spacing: -.035em; transform: rotate(-4deg); }
  .kc-home .kc-hero__mark small { font-size: 12px; line-height: 1.4; letter-spacing: 3px; }
}
@media (min-width: 768px) and (max-width: 1099px) {
  .kc-home .kc-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
  .kc-home-stores__grid { grid-template-columns: minmax(0, 1fr); }
  .kc-home-store { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 20px; padding: 20px; }
  .kc-home-store__city, .kc-home-store h3, .kc-home-store__methods { grid-column: 1; }
  .kc-home-store h3 { margin-bottom: 12px; }
  .kc-home-store__methods { margin-bottom: 0; }
  .kc-home-store__choose { grid-column: 2; grid-row: 1 / 4; align-self: center; margin: 0; width: auto; min-width: 160px; }
}
@media (max-width: 767px) {
  .kc-home .kc-section-title { display: block; margin-bottom: 20px; }
  .kc-home .kc-section-title p { margin-top: 12px; font-size: 15px; }
  .kc-home .kc-hero__text { font-size: 16px; }
  .kc-home .kc-category-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .kc-home .kc-category-grid > .kc-tile, .kc-home .kc-category-grid > .kc-tile.kc-tile--feature { min-height: 170px; padding: 20px; }
  .kc-home .kc-category-grid > .kc-tile h3 { font-size: 25px; }
  .kc-home-stores { margin: 30px 0 36px; }
  .kc-home-store { display: flex; padding: 20px; }
  .kc-home-store__methods { margin-bottom: 18px; }
  .kc-home-store__choose { width: 100%; }
  .kc-home .kc-home__shop { margin-top: 34px; gap: 22px; }
  .kc-home .kc-home__shop-card { padding: 22px; }
  #wrapwrap:has(.kc-home) .kc-footer__list a { min-height: 38px; }
}
@media (min-width: 768px) and (max-width: 991px) and (max-height: 500px) {
  #wrapwrap:has(.kc-home) .kc-head > .kc-wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; padding-top: 10px; padding-bottom: 10px; }
  #wrapwrap:has(.kc-home) .kc-head-actions { display: contents; }
  #wrapwrap:has(.kc-home) .kc-subnav__links { display: none; }
}
:lang(th) .kc-home .kc-eyebrow, :lang(th) .kc-home-store__city { letter-spacing: normal; }

/* Balanced desktop categories; compact disclosure at tablet widths. */
@media (min-width: 1100px) {
  #wrapwrap:has(.kc-home) .kc-subnav > .kc-wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 24px; }
  #wrapwrap:has(.kc-home) .kc-subnav__links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 16px; }
  #wrapwrap:has(.kc-home) .kc-subnav__links > a { min-height: 44px; padding: 8px 0; }
}
@media (min-width: 768px) and (max-width: 1099px) {
  #wrapwrap:has(.kc-home) .kc-subnav__links { display: none; }
  #wrapwrap:has(.kc-home) .kc-subnav__more { width: 100%; justify-content: space-between; }
}
@media (min-width: 768px) and (max-width: 991px) and (max-height: 500px) {
  #wrapwrap:has(.kc-home) .kc-head .kc-head-search { width: 100%; min-width: 0; max-width: none; }
}
