/* Home page: hero, style tiles, best sellers, formats, steps, closing band. */

.ath-kicker {
  margin: 0 0 14px;
  font-size: var(--ath-text-xs);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ath-olive-dark);
}

/* Buttons */
.ath-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 32px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--ath-font-ui);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--ath-dur-fast) var(--ath-ease), color var(--ath-dur-fast) var(--ath-ease), border-color var(--ath-dur-fast) var(--ath-ease);
}
body.ath a.ath-btn--solid {
  background: var(--ath-olive);
  color: #fff;
}
body.ath a.ath-btn--solid:hover {
  background: var(--ath-olive-dark);
  color: #fff;
}
body.ath a.ath-btn--ghost {
  border-color: var(--ath-ink);
  color: var(--ath-ink);
  background: transparent;
}
body.ath a.ath-btn--ghost:hover {
  background: var(--ath-ink);
  color: #fff;
}
body.ath .ath-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 0;
}
body.ath .ath-hero-actions--center {
  justify-content: center;
}

/* Hero */
.ath-hero {
  display: grid;
  background: var(--theme-palette-color-6);
}
.ath-hero-media {
  position: relative;
  display: block;
  order: -1;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.ath-hero-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: ath-settle 1.8s var(--ath-ease) both;
}
.ath-hero-caption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.93);
  color: var(--ath-ink);
  font-size: var(--ath-text-xs);
  line-height: 1.3;
  border-radius: 3px;
}
@media (max-width: 899px) {
  /* one quiet line on phones so the picture, headline and button share the first screen */
  .ath-hero-caption {
    left: 10px;
    bottom: 10px;
    padding: 6px 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
.ath-hero-copy {
  width: min(100%, 640px);
  margin-inline: auto;
  padding: 26px 20px 34px;
}
.ath-hero h1 {
  text-wrap: balance;
  margin: 0 0 14px;
  font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: 0;
}
.ath-hero-lead {
  max-width: 46ch;
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ath-charcoal);
}
@media (min-width: 900px) {
  .ath-hero {
    grid-template-columns: 1fr 1fr;
    min-height: min(680px, calc(100vh - 140px));
  }
  .ath-hero-media {
    order: 2;
    aspect-ratio: auto;
  }
  .ath-hero-copy {
    align-self: center;
    margin: 0 0 0 auto;
    padding: 56px clamp(32px, 5vw, 88px) 56px clamp(24px, 4vw, 64px);
  }
}
@keyframes ath-settle {
  from { transform: scale(1.07); }
  to { transform: scale(1); }
}

/* Sections */
.ath-section {
  width: min(100% - 32px, 1280px);
  margin: clamp(44px, 7vw, 96px) auto 0;
}
.ath-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(18px, 3vw, 32px);
}
.ath-section-head h2 {
  margin: 0;
  font-size: clamp(1.35rem, 1.15rem + 0.9vw, 1.85rem);
  line-height: 1.1;
}
.ath-section-head--center {
  display: block;
  text-align: center;
}
.ath-section-head--center p {
  margin: 10px auto 0;
  max-width: 52ch;
  color: var(--ath-muted);
}
body.ath .ath-link-arrow {
  flex: none;
  padding: 12px 0;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ath-ink);
  text-decoration: underline;
  text-underline-offset: 0.35em;
}
body.ath .ath-link-arrow:hover {
  color: var(--ath-olive-dark);
}

/* Style tiles */
.ath-cat-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.ath-cat-grid li {
  margin: 0;
}
.ath-cat-grid a {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 3px;
  background: var(--theme-palette-color-6);
}
.ath-cat-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ath-cat-grid a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17, 17, 17, 0.62), rgba(17, 17, 17, 0) 55%);
  pointer-events: none;
}
.ath-cat-label {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 1;
  font-family: var(--ath-font-display);
  font-size: clamp(1rem, 0.9rem + 0.45vw, 1.2rem);
  font-weight: 600;
  line-height: 1.1;
  color: #fff;
}
@media (min-width: 700px) {
  .ath-cat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
  .ath-cat-grid a {
    aspect-ratio: 1 / 1;
  }
}

/* Formats and steps */
.ath-format-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.ath-format-grid li {
  margin: 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--ath-ink);
}
.ath-format-grid h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  line-height: 1.3;
}
.ath-format-grid p {
  margin: 0;
  color: var(--ath-muted);
  line-height: 1.55;
}
@media (min-width: 800px) {
  .ath-format-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
  }
}

/* One quiet line of help instead of a closing banner */
.ath-help-line {
  margin-bottom: 0;
  padding: 32px 0 8px;
  text-align: center;
  color: var(--ath-muted);
}
.ath-help-line p {
  margin: 0;
}

/* Blocksy's card grid inside a section: no extra top padding */
.ath-section .woocommerce {
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .ath-hero-img {
    animation: none;
  }
  .ath-cat-grid img {
    transition: none;
  }
}

/* Rooms: five tall tiles in a row on desktop; an odd last tile spans the phone grid */
.ath-cat-grid--rooms li:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}
.ath-cat-grid--rooms li:last-child:nth-child(odd) a {
  aspect-ratio: 16 / 9;
}
@media (min-width: 700px) {
  .ath-cat-grid--rooms li:last-child:nth-child(odd) {
    grid-column: auto;
  }
  .ath-cat-grid--rooms li:last-child:nth-child(odd) a {
    aspect-ratio: 1 / 1;
  }
}
@media (min-width: 1000px) {
  .ath-cat-grid--rooms {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
  }
  .ath-cat-grid--rooms a {
    aspect-ratio: 3 / 4;
  }
}

/* Subject links */
.ath-chip-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.ath-chip-row li {
  margin: 0;
}
body.ath .ath-chip-row a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--ath-line);
  border-radius: 999px;
  background: var(--ath-white);
  color: var(--ath-ink);
  font-size: var(--ath-text-sm);
  text-decoration: none;
  transition: background-color var(--ath-dur-fast) var(--ath-ease), border-color var(--ath-dur-fast) var(--ath-ease), color var(--ath-dur-fast) var(--ath-ease);
}
body.ath .ath-chip-row a:hover {
  border-color: var(--ath-olive);
  background: var(--ath-olive);
  color: #fff;
}

/* Hero carousel: one slide per collection, three of its artworks each */
.ath-carousel {
  background: var(--theme-palette-color-6);
}
.ath-slides {
  position: absolute;
  inset: 0;
}
.ath-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 900ms var(--ath-ease), visibility 0s linear 900ms;
}
.ath-slide.is-active {
  z-index: 1;
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}
.ath-slide--n2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.ath-slide--n1 {
  grid-template-columns: minmax(0, 1fr);
}
.ath-slide-tile {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--theme-palette-color-6);
}
.ath-slide-img {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: 7%;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(36, 36, 36, 0.28));
}
.ath-slide-caption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  max-width: calc(100% - 168px);
  padding: 8px 12px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ath-ink);
  text-decoration: none;
  line-height: 1.25;
}
.ath-slide-kicker {
  display: none;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ath-muted);
}
.ath-slide-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--ath-font-display);
  font-size: 1.05rem;
  font-weight: 600;
}
.ath-slide-go {
  flex: none;
}
.ath-carousel-ui {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 2px 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
}
.ath-carousel-ui[hidden] {
  display: none;
}
.ath-car-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ath-ink);
  cursor: pointer;
  transition: background-color var(--ath-dur-fast) var(--ath-ease);
}
.ath-car-btn:hover {
  background: var(--theme-palette-color-6);
}
.ath-car-play .ath-ico-play,
.ath-car-play.is-paused .ath-ico-pause {
  display: none;
}
.ath-car-play.is-paused .ath-ico-play {
  display: block;
}
.ath-car-count {
  display: none;
  padding: 0 10px 0 4px;
  font-size: var(--ath-text-xs);
  font-variant-numeric: tabular-nums;
  color: var(--ath-muted);
}
@media (min-width: 900px) {
  .ath-slide {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  }
  .ath-slide .ath-slide-tile:first-child {
    grid-row: 1 / 3;
  }
  .ath-slide--n2 {
    grid-template-rows: minmax(0, 1fr);
  }
  .ath-slide--n2 .ath-slide-tile:first-child {
    grid-row: auto;
  }
  .ath-slide--n1 {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
  }
  .ath-slide-caption {
    left: 16px;
    bottom: 16px;
    max-width: calc(100% - 290px);
    padding: 10px 16px;
  }
  .ath-slide-kicker {
    display: inline;
  }
  .ath-slide-name {
    font-size: 1.2rem;
  }
  .ath-carousel-ui {
    right: 16px;
    bottom: 16px;
  }
  .ath-car-count {
    display: inline;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ath-slide {
    transition: none;
  }
  .ath-slide.is-active .ath-slide-img {
    animation: none;
  }
}

/* Bestsellers: one row that scrolls sideways, four cards wide on desktop */
.ath-section-tools {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ath-best-btn {
  border: 1px solid var(--ath-line);
  background: #fff;
}
.ath-best-btn[hidden] {
  display: none;
}
body.ath .ath-bestsellers .woocommerce {
  margin: 0;
}
body.ath .ath-bestsellers ul.products[data-products] {
  display: flex !important;
  gap: 20px;
  margin: 0;
  padding: 0 0 6px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 2px;
  scrollbar-width: none;
}
body.ath .ath-bestsellers ul.products[data-products]::-webkit-scrollbar {
  display: none;
}
body.ath .ath-bestsellers ul.products[data-products] > li.product {
  flex: 0 0 calc((100% - 20px) / 2);
  min-width: 0;
  margin: 0;
  scroll-snap-align: start;
}
@media (min-width: 700px) {
  body.ath .ath-bestsellers ul.products[data-products] > li.product {
    flex-basis: calc((100% - 40px) / 3);
  }
}
@media (min-width: 1000px) {
  body.ath .ath-bestsellers ul.products[data-products] > li.product {
    flex-basis: calc((100% - 60px) / 4);
  }
}

/* Plain shop controls: square buttons, no pills, no counters */
.ath-slide-caption {
  gap: 0;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 0;
  max-width: calc(100% - 120px);
}
.ath-slide-name {
  font-size: 0.9375rem;
  font-weight: 600;
}
.ath-carousel-ui {
  gap: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
}
.ath-car-btn {
  width: 40px;
  height: 40px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.94);
  border: 0;
}
.ath-car-btn + .ath-car-btn {
  margin-left: 1px;
}
.ath-best-btn {
  border-radius: 0;
  border: 1px solid var(--ath-ink);
  background: #fff;
}
body.ath .ath-chip-row a {
  border-radius: 2px;
  min-height: 42px;
}
body.ath .ath-link-arrow {
  padding: 8px 0;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}
@media (min-width: 900px) {
  .ath-slide-caption {
    left: 16px;
    bottom: 16px;
    padding: 10px 16px;
    max-width: calc(100% - 140px);
  }
  .ath-slide-name {
    font-size: 1rem;
  }
}

/* Hero: one room scene per collection, a plain frame around it */
.ath-hero {
  background: var(--theme-palette-color-6);
}
.ath-hero-media {
  aspect-ratio: 4 / 3;
}
@media (min-width: 900px) {
  .ath-hero-media {
    aspect-ratio: auto;
  }
}
.ath-slide,
.ath-slide--n1,
.ath-slide--n2 {
  display: block;
  grid-template-columns: none;
  grid-template-rows: none;
}
.ath-slide .ath-slide-tile,
.ath-slide .ath-slide-tile:first-child {
  position: absolute;
  inset: 0;
  grid-row: auto;
  background: var(--ath-stone);
}
.ath-slide .ath-slide-img {
  padding: 0;
  object-fit: cover;
  filter: none;
}

/* Buying from ArttoHang: the facts a first-time customer looks for, in one panel */
.ath-care {
  margin-bottom: 0;
  padding-bottom: clamp(40px, 6vw, 72px);
}
.ath-care-grid {
  display: grid;
  gap: 28px;
  padding: clamp(24px, 4vw, 40px);
  background: var(--theme-palette-color-6);
}
.ath-care-grid h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}
.ath-care-grid p {
  margin: 0 0 10px;
  color: var(--ath-charcoal);
  line-height: 1.6;
}
.ath-care-grid a {
  color: var(--ath-ink);
  font-weight: 500;
  text-underline-offset: 0.25em;
}
@media (min-width: 700px) {
  .ath-care-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1100px) {
  .ath-care-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 36px;
  }
}

.ath-care-grid a {
  display: inline-block;
  padding: 10px 0;
}

/* Five room tiles share one height on desktop (the odd-last-tile rule is for the two-column phone grid) */
@media (min-width: 1000px) {
  .ath-cat-grid--rooms li:last-child:nth-child(odd) a {
    aspect-ratio: 3 / 4;
  }
}
