/* Home page: brand rows ("New in: Anua / Beauty of Joseon / Biodance").
   Without JS: a plain grid of product cards. With JS (.ah-js on the section): a swipeable slider with arrows,
   a progress bar, staggered reveal and a gentle auto-advance (assets/js/brand-slider.js). */
.ah { padding: clamp(40px, 6vw, 72px) 20px; position: relative; overflow: hidden; }
.ah[data-tone="rose"] { background: linear-gradient(180deg, rgba(253, 224, 227, .55), rgba(253, 224, 227, 0) 85%); }
.ah[data-tone="gold"] { background: linear-gradient(180deg, rgba(251, 239, 207, .65), rgba(251, 239, 207, 0) 85%); }
.ah[data-tone="lilac"] { background: linear-gradient(180deg, rgba(232, 224, 245, .65), rgba(232, 224, 245, 0) 85%); }
.ah-in { max-width: 1200px; margin: 0 auto; }
.ah-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.ah-k { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; opacity: .6; margin-bottom: 6px; }
.ah h2 { font-family: 'Fraunces', Georgia, serif; font-weight: 400; font-size: clamp(26px, 4vw, 38px); line-height: 1.1; margin: 0; }
.ah h2 em { font-style: italic; }
.ah-tools { display: flex; align-items: center; gap: 14px; }
.ah-all { font-size: 14px; text-decoration: underline; text-underline-offset: 3px; color: inherit; }
.ah-arrows { display: none; gap: 8px; }
.ah-arrow { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .14); background: #fff; color: inherit; display: grid; place-items: center; cursor: pointer; padding: 0; transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease; }
.ah-arrow:hover { transform: scale(1.08); box-shadow: 0 6px 16px rgba(0, 0, 0, .1); }
.ah-arrow:disabled { opacity: .35; cursor: default; transform: none; box-shadow: none; }
.ah-arrow svg { width: 18px; height: 18px; }
.ah-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 640px) { .ah-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .ah-grid { grid-template-columns: repeat(6, 1fr); gap: 16px; } }
.ah-card { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; }
.ah-img { display: block; aspect-ratio: 1 / 1; background: #fff; border: 1px solid rgba(0, 0, 0, .06); border-radius: 18px; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.ah-img img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.ah-card:hover .ah-img, .ah-card:focus-visible .ah-img { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0, 0, 0, .08); }
.ah-card:hover .ah-img img, .ah-card:focus-visible .ah-img img { transform: scale(1.06); }
.ah-n { font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ah-p { font-size: 14px; opacity: .7; }
.ah-prog { display: none; height: 3px; border-radius: 3px; background: rgba(0, 0, 0, .08); margin-top: 18px; overflow: hidden; }
.ah-prog i { display: block; height: 100%; width: 30%; border-radius: 3px; background: linear-gradient(90deg, #f3a7b4, #9ec5ee); transition: width .2s ease, margin-left .2s ease; }

/* slider mode: cards have a fixed width so a row always runs past the edge (4 visible on desktop, 6 in total) */
.ah-js .ah-arrows { display: flex; }
.ah-js .ah-prog { display: block; }
.ah-js.ah-fits .ah-arrows, .ah-js.ah-fits .ah-prog { display: none; }
.ah-js .ah-grid { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x proximity; scroll-behavior: smooth; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 4px 2px 8px; margin: 0 -2px; }
.ah-js .ah-grid::-webkit-scrollbar { display: none; }
.ah-js .ah-card { flex: 0 0 clamp(150px, 42vw, 230px); scroll-snap-align: start; }
@media (min-width: 1000px) { .ah-js .ah-card { flex-basis: calc((100% - 48px) / 4); } }
.ah-js .ah-card { opacity: 0; transform: translateY(26px) scale(.96); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 90ms); }
.ah-js.is-in .ah-card { opacity: 1; transform: none; }
.ah-js .ah-card:hover { transition-delay: 0s; }

@media (prefers-reduced-motion: reduce) {
  .ah-img, .ah-img img, .ah-arrow, .ah-prog i { transition: none; }
  .ah-card:hover .ah-img, .ah-card:hover .ah-img img { transform: none; }
  .ah-js .ah-grid { scroll-behavior: auto; }
  .ah-js .ah-card { opacity: 1; transform: none; transition: none; }
}
