/* Gallery homepage — isolated to the registered Gallery design. */
.atr-design-gallery {
  --gallery-bg: var(--atr-color-background);
  --gallery-surface: var(--atr-color-surface);
  --gallery-surface-soft: var(--atr-color-surface-soft);
  --gallery-primary: var(--atr-color-primary-strong);
  --gallery-accent: var(--atr-color-accent);
  --gallery-secondary: var(--atr-color-accent-soft);
  --gallery-text: var(--atr-color-text);
  --gallery-text-soft: var(--atr-color-text-soft);
  --gallery-muted: var(--atr-color-muted);
  --gallery-line: var(--atr-color-border);
  color: var(--gallery-text);
  background: var(--gallery-bg);
}

.atr-design-gallery .gallery-home { background: var(--gallery-bg); color: var(--gallery-text); overflow: clip; }
.atr-design-gallery .gallery-shell { width: min(100% - 48px, 1360px); margin-inline: auto; }
.atr-design-gallery .gallery-section { padding-block: clamp(84px, 9vw, 144px); }
.atr-design-gallery .gallery-heading { margin-bottom: clamp(34px, 5vw, 68px); }
.atr-design-gallery .gallery-heading--row { display: flex; align-items: end; justify-content: space-between; gap: 28px; }
.atr-design-gallery .gallery-heading h2,
.atr-design-gallery .gallery-lookbook h2,
.atr-design-gallery .gallery-note h2,
.atr-design-gallery .gallery-newsletter h2 {
  max-width: 840px;
  margin: 0;
  color: var(--gallery-text);
  font-family: var(--font-display);
  font-size: clamp(42px, 5.2vw, 78px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -.035em;
}
.atr-design-gallery .gallery-eyebrow { margin: 0 0 16px; color: var(--gallery-accent); font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.atr-design-gallery .gallery-heading-index { color: var(--gallery-muted); font-size: 10px; letter-spacing: .13em; }
.atr-design-gallery .gallery-button,
.atr-design-gallery .gallery-text-link { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.atr-design-gallery .gallery-button { padding: 12px 24px; border: 1px solid var(--gallery-primary); background: var(--gallery-primary); color: var(--gallery-surface); }
.atr-design-gallery .gallery-button:hover { background: var(--gallery-accent); border-color: var(--gallery-accent); }
.atr-design-gallery .gallery-text-link { color: var(--gallery-text); border-bottom: 1px solid var(--gallery-text); }
.atr-design-gallery .gallery-text-link:hover { color: var(--gallery-accent); border-color: var(--gallery-accent); }
.atr-design-gallery :where(a, button, input, [tabindex]):focus-visible { outline: 2px solid var(--gallery-accent); outline-offset: 4px; }

/* Existing header and footer behavior remains untouched. */
.atr-design-gallery .atr-promo-banner { min-height: 34px; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--gallery-line); background: var(--gallery-primary); color: var(--gallery-surface); font-size: 10px; letter-spacing: .07em; }
.atr-design-gallery .atr-promo-banner a { color: var(--gallery-secondary); }
.atr-design-gallery .atr-header { border-bottom: 1px solid var(--gallery-line); background: color-mix(in srgb, var(--gallery-surface) 97%, transparent); color: var(--gallery-text); box-shadow: none; }
.atr-design-gallery .atr-header-inner { max-width: 1440px; min-height: 82px; }
.atr-design-gallery .atr-brand-mark { color: var(--gallery-primary); font-family: var(--font-display); font-weight: 500; letter-spacing: .04em; }
.atr-design-gallery .atr-brand-mark::after { content: " / GALLERY"; margin-inline-start: 8px; color: var(--gallery-accent); font-family: var(--font-body); font-size: 8px; letter-spacing: .15em; }
.atr-design-gallery .atr-nav a { color: var(--gallery-text-soft); font-weight: 500; }
.atr-design-gallery .atr-nav a:hover,
.atr-design-gallery .atr-nav a.active { color: var(--gallery-accent); }
.atr-design-gallery .atr-nav a::after { height: 1px; background: var(--gallery-accent); }
.atr-design-gallery .atr-header-search input { border-color: var(--gallery-line); border-radius: 0; background: var(--gallery-surface-soft); color: var(--gallery-text); }
.atr-design-gallery .atr-icon-btn,
.atr-design-gallery .atr-header-actions a { min-width: 44px; min-height: 44px; color: var(--gallery-text); }
.atr-design-gallery .atr-cart-count { background: var(--gallery-primary); color: var(--gallery-surface); }
.atr-design-gallery .atr-mobile-nav { border-color: var(--gallery-line); background: var(--gallery-surface); color: var(--gallery-text); }

/* Hero */
.atr-design-gallery .gallery-home .gallery-hero { min-height: calc(100svh - 116px); display: grid; grid-template-columns: minmax(0, .62fr) minmax(340px, .38fr); border-bottom: 1px solid var(--gallery-line); background: var(--gallery-surface-soft); overflow: clip; }
.atr-design-gallery .gallery-home .gallery-hero > * { min-width: 0; }
.atr-design-gallery .gallery-home .gallery-hero-media { position: relative; min-width: 0; min-height: calc(100svh - 116px); overflow: clip; background: var(--gallery-secondary); }
.atr-design-gallery .gallery-home .gallery-hero-media > img { width: 100%; height: 100%; min-height: calc(100svh - 116px); object-fit: cover; object-position: center; filter: saturate(.9) contrast(1.02); }
.atr-design-gallery .gallery-home .gallery-hero-slider,
.atr-design-gallery .gallery-home .gallery-hero-slider-track,
.atr-design-gallery .gallery-home .gallery-hero-slide {
  position: absolute;
  inset: 0;
  min-width: 0;
}
.atr-design-gallery .gallery-home .gallery-hero-slider {
  overflow: clip;
}
.atr-design-gallery .gallery-home .gallery-hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity .9s ease;
}
.atr-design-gallery .gallery-home .gallery-hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}
.atr-design-gallery .gallery-home .gallery-hero-slide img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: saturate(.9) contrast(1.02);
  transform: scale(1);
  transition: transform 6.5s ease-out;
}
.atr-design-gallery .gallery-home .gallery-hero-slide.active img {
  transform: scale(1.018);
}
.atr-design-gallery .gallery-home .gallery-hero-slider-controls {
  position: absolute;
  z-index: 4;
  inset: auto auto 24px 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px;
  border: 1px solid color-mix(in srgb, var(--gallery-surface) 34%, transparent);
  background: color-mix(in srgb, var(--gallery-primary) 58%, transparent);
  color: var(--gallery-surface);
  backdrop-filter: blur(8px);
}
.atr-design-gallery .gallery-home .gallery-hero-slider-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}
.atr-design-gallery .gallery-home .gallery-hero-slider-dot,
.atr-design-gallery .gallery-home .gallery-hero-slider-arrow {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--gallery-surface) 34%, transparent);
  border-radius: 0;
  background: transparent;
  color: currentColor;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, opacity .2s ease;
}
.atr-design-gallery .gallery-home .gallery-hero-slider-arrow {
  font-size: 18px;
  font-family: Georgia, serif;
}
.atr-design-gallery .gallery-home .gallery-hero-slider-dot.active,
.atr-design-gallery .gallery-home .gallery-hero-slider-dot:hover,
.atr-design-gallery .gallery-home .gallery-hero-slider-arrow:hover {
  background: var(--gallery-surface);
  color: var(--gallery-primary);
}
.atr-design-gallery .gallery-home .gallery-hero-index { position: absolute; inset: auto 28px 24px auto; padding: 8px 12px; background: color-mix(in srgb, var(--gallery-primary) 86%, transparent); color: var(--gallery-surface); font-size: 9px; letter-spacing: .16em; }
.atr-design-gallery .gallery-home .gallery-hero-copy { position: relative; z-index: 2; align-self: center; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; margin-block: clamp(32px, 5vw, 64px); padding: clamp(34px, 3.8vw, 58px); border: 1px solid color-mix(in srgb, var(--gallery-primary) 12%, var(--gallery-line)); background: color-mix(in srgb, var(--gallery-surface) 94%, var(--gallery-bg)); box-shadow: 0 24px 60px rgba(24,24,24,.08); text-align: right; transform: translateX(clamp(30px, 4vw, 58px)); }
.atr-design-gallery .gallery-home .gallery-hero-copy::before { content: ""; width: clamp(52px, 6vw, 82px); height: 1px; margin-bottom: 20px; background: var(--gallery-accent); opacity: .72; }
.atr-design-gallery .gallery-home .gallery-hero h1 { max-width: 520px; margin: 0; color: var(--gallery-text); font-family: var(--font-display); font-size: 68px; font-weight: 500; line-height: .94; letter-spacing: 0; overflow-wrap: anywhere; }
.atr-design-gallery .gallery-home .gallery-hero-copy > p:not(.gallery-eyebrow) { max-width: 420px; margin: 22px 0 0; color: var(--gallery-muted); font-size: 15.5px; line-height: 1.82; overflow-wrap: anywhere; }
.atr-design-gallery .gallery-home .gallery-hero .gallery-actions { display: flex; align-items: center; gap: 18px; margin-top: 28px; }
.atr-design-gallery .gallery-home .gallery-hero .gallery-button,
.atr-design-gallery .gallery-home .gallery-hero .gallery-text-link { min-height: 44px; }
.atr-design-gallery .gallery-home .gallery-hero .gallery-button { padding: 10px 22px; }
.atr-design-gallery .gallery-plinth-scene { position: absolute; inset: 0; background: linear-gradient(135deg, var(--gallery-surface-soft), var(--gallery-secondary)); }
.atr-design-gallery .gallery-frame { position: absolute; border: 1px solid color-mix(in srgb, var(--gallery-primary) 28%, transparent); }
.atr-design-gallery .gallery-frame--one { width: 42%; height: 58%; inset: 12% auto auto 12%; background: var(--gallery-surface); transform: rotate(-3deg); }
.atr-design-gallery .gallery-frame--two { width: 34%; height: 44%; inset: 17% 13% auto auto; background: color-mix(in srgb, var(--gallery-accent) 24%, var(--gallery-surface)); transform: rotate(4deg); }
.atr-design-gallery .gallery-plinth { position: absolute; width: 48%; height: 19%; inset: auto 23% 7% auto; display: grid; place-items: center; background: var(--gallery-surface); box-shadow: 0 25px 45px rgba(24,24,24,.12); }
.atr-design-gallery .gallery-plinth i { color: var(--gallery-muted); font-size: 10px; font-style: normal; letter-spacing: .2em; }
.atr-design-gallery .gallery-object { position: absolute; width: 18%; height: 38%; inset: auto 38% 24% auto; border: 1px solid var(--gallery-primary); border-radius: 48% 48% 12% 12%; background: linear-gradient(90deg, var(--gallery-primary), var(--gallery-accent), var(--gallery-primary)); box-shadow: 0 24px 38px rgba(24,24,24,.22); }

/* Visual categories */
.atr-design-gallery .gallery-categories { background: var(--gallery-bg); }
.atr-design-gallery .gallery-category-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 92px; gap: 16px; }
.atr-design-gallery .gallery-category { position: relative; min-width: 0; overflow: clip; background: var(--gallery-secondary); }
.atr-design-gallery .gallery-category--1 { grid-column: span 5; grid-row: span 5; }
.atr-design-gallery .gallery-category--2 { grid-column: span 4; grid-row: span 3; }
.atr-design-gallery .gallery-category--3 { grid-column: span 3; grid-row: span 4; }
.atr-design-gallery .gallery-category--4 { grid-column: span 4; grid-row: span 2; }
.atr-design-gallery .gallery-category--5 { grid-column: span 3; grid-row: span 3; }
.atr-design-gallery .gallery-category img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.atr-design-gallery .gallery-category:hover img { transform: scale(1.035); }
.atr-design-gallery .gallery-category > span { position: absolute; inset: auto 0 0; display: flex; align-items: center; gap: 12px; padding: 18px; background: linear-gradient(transparent, rgba(24,24,24,.72)); color: var(--gallery-surface); font-size: 14px; }
.atr-design-gallery .gallery-category > span b { font-size: 9px; font-weight: 400; letter-spacing: .12em; }

/* Gallery wall */
.atr-design-gallery .gallery-wall-section { border-block: 1px solid var(--gallery-line); background: var(--gallery-surface); }
.atr-design-gallery .gallery-wall { display: grid; grid-template-columns: 1.2fr .8fr .8fr; grid-template-rows: repeat(2, minmax(250px, 340px)); gap: 18px; }
.atr-design-gallery .gallery-wall-tile { position: relative; min-width: 0; overflow: clip; background: var(--gallery-secondary); }
.atr-design-gallery .gallery-wall-tile--1 { grid-row: 1 / 3; }
.atr-design-gallery .gallery-wall-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.atr-design-gallery .gallery-wall-tile:hover img { transform: scale(1.025); }
.atr-design-gallery .gallery-wall-tile > span { position: absolute; inset: auto 14px 12px; display: flex; gap: 10px; padding: 8px 10px; background: var(--gallery-surface); color: var(--gallery-text); font-size: 11px; }
.atr-design-gallery .gallery-wall-tile > span b { color: var(--gallery-accent); font-size: 9px; }
.atr-design-gallery .gallery-wall-caption { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; padding: 30px; border: 1px solid var(--gallery-line); background: var(--gallery-bg); }
.atr-design-gallery .gallery-wall-caption > span { color: var(--gallery-accent); font-family: var(--font-display); font-size: 52px; }
.atr-design-gallery .gallery-wall-caption p { max-width: 260px; margin: auto 0 20px; color: var(--gallery-muted); line-height: 1.8; }

/* Shared product cards */
.atr-design-gallery .gallery-products { background: var(--gallery-bg); }
.atr-design-gallery .gallery-product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.atr-design-gallery .gallery-product-grid > * { min-width: 0; }
.atr-design-gallery .atr-product-card { min-width: 0; height: 100%; border: 1px solid var(--gallery-line); border-radius: 0; background: var(--gallery-surface); box-shadow: none; color: var(--gallery-text); }
.atr-design-gallery .atr-product-card:hover { transform: translateY(-3px); box-shadow: 0 16px 35px rgba(24,24,24,.08); }
.atr-design-gallery .atr-product-card .img-wrap { width: 100%; height: auto;padding: 0; border-bottom: 1px solid var(--gallery-line); background: var(--gallery-surface-soft); }
.atr-design-gallery .atr-product-card .img-wrap > a { width: 100%; height: 100%; padding: 0; }
.atr-design-gallery .atr-product-card .img-wrap img { width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; object-position: center; }
.atr-design-gallery .atr-product-card .img-wrap .placeholder { background: linear-gradient(145deg, var(--gallery-surface-soft), var(--gallery-secondary)); }
.atr-design-gallery .atr-product-card .img-wrap .placeholder svg { display: none; }
.atr-design-gallery .atr-product-card .img-wrap .placeholder::before { content: "05"; width: 48%; aspect-ratio: 4 / 5; display: grid; place-items: center; border: 1px solid var(--gallery-line); background: var(--gallery-surface); color: var(--gallery-accent); font-family: var(--font-display); font-size: clamp(34px,5vw,66px); }
.atr-design-gallery .atr-product-card .card-body { min-height: 162px; padding: 15px; gap: 0; border-top: 0; background: var(--gallery-surface); }
.atr-design-gallery .atr-product-card .product-kind { color: var(--gallery-accent); font-size: 9px; letter-spacing: .08em; }
.atr-design-gallery .atr-product-card .product-name { min-height: calc(2em * 1.25); margin: 6px 0 12px; color: var(--gallery-text); font-family: var(--font-body); font-size: clamp(13px,1.2vw,17px); font-weight: 600; line-height: 1.25; -webkit-line-clamp: 2; }
.atr-design-gallery .atr-product-card .price-row { margin-top: auto; align-items: end; }
.atr-design-gallery .atr-product-card .price-main,
.atr-design-gallery .atr-product-card .price-main :where(bdi, span) { color: var(--gallery-text); }
.atr-design-gallery .atr-product-card .price-main { font-size: clamp(12px,1.1vw,15px); }
.atr-design-gallery .atr-product-card .add-btn { width: 44px; height: 44px; flex: 0 0 44px; border: 1px solid var(--gallery-primary); border-radius: 0; background: var(--gallery-surface); color: var(--gallery-primary); }
.atr-design-gallery .atr-product-card .add-btn:hover { background: var(--gallery-primary); color: var(--gallery-surface); }
.atr-design-gallery .atr-product-card .wishlist-btn,
.atr-design-gallery .atr-product-card .icon-circle { width: 44px; height: 44px; border: 1px solid var(--gallery-line); border-radius: 0; background: var(--gallery-surface); color: var(--gallery-text); }
.atr-design-gallery .atr-product-card .wishlist-btn svg,
.atr-design-gallery .atr-product-card .icon-circle svg { stroke: currentColor; }
.atr-design-gallery .atr-product-card .tag { border-radius: 0; }
.atr-design-gallery .atr-product-card .tag.emerald { background: var(--gallery-primary); color: var(--gallery-surface); }
.atr-design-gallery .atr-product-card .badge-disc .tag { background: var(--atr-color-sale); color: var(--gallery-surface); }

/* Lookbook */
.atr-design-gallery .gallery-lookbook { background: var(--gallery-primary); color: var(--gallery-surface); }
.atr-design-gallery .gallery-lookbook-grid { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(360px,.85fr); align-items: stretch; min-height: 680px; }
.atr-design-gallery .gallery-lookbook-media { position: relative; min-width: 0; overflow: clip; background: var(--gallery-secondary); }
.atr-design-gallery .gallery-lookbook-media img { width: 100%; height: 100%; min-height: 680px; object-fit: cover; filter: saturate(.72); }
.atr-design-gallery .gallery-lookbook-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(48px,7vw,100px); }
.atr-design-gallery .gallery-lookbook h2 { color: var(--gallery-surface); }
.atr-design-gallery .gallery-lookbook-copy > p:not(.gallery-eyebrow) { max-width: 520px; margin: 24px 0; color: color-mix(in srgb, var(--gallery-surface) 68%, transparent); line-height: 1.9; }
.atr-design-gallery .gallery-lookbook-list { width: 100%; margin: 0 0 30px; padding: 0; list-style: none; border-top: 1px solid color-mix(in srgb,var(--gallery-surface) 20%,transparent); }
.atr-design-gallery .gallery-lookbook-list li { border-bottom: 1px solid color-mix(in srgb,var(--gallery-surface) 20%,transparent); }
.atr-design-gallery .gallery-lookbook-list a { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 18px; color: var(--gallery-surface); font-size: 12px; }
.atr-design-gallery .gallery-lookbook-list b { color: var(--gallery-secondary); font-weight: 500; }
.atr-design-gallery .gallery-lookbook .gallery-button { border-color: var(--gallery-surface); background: transparent; }
.atr-design-gallery .gallery-lookbook-art { position: absolute; inset: 0; background: linear-gradient(135deg,var(--gallery-secondary),var(--gallery-accent)); }
.atr-design-gallery .gallery-lookbook-art span { position: absolute; width: 42%; height: 62%; inset: 13% auto auto 16%; border: 1px solid var(--gallery-primary); background: var(--gallery-surface); transform: rotate(-4deg); }
.atr-design-gallery .gallery-lookbook-art i { position: absolute; width: 35%; height: 52%; inset: auto 15% 10% auto; border: 1px solid var(--gallery-primary); background: var(--gallery-primary); transform: rotate(5deg); }
.atr-design-gallery .gallery-lookbook-art b { position: absolute; inset: 8% 8% auto auto; color: var(--gallery-primary); font-family: var(--font-display); font-size: 86px; font-weight: 400; }

/* Rail */
.atr-design-gallery .gallery-rail-section { background: var(--gallery-surface); }
.atr-design-gallery .gallery-scroll-hint { min-height: 44px; display: inline-flex; align-items: center; color: var(--gallery-muted); font-size: 10px; letter-spacing: .08em; }
.atr-design-gallery .gallery-product-rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 54px) / 4); gap: 18px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: inline mandatory; scrollbar-width: thin; scrollbar-color: var(--gallery-accent) var(--gallery-bg); padding: 4px 4px 18px; }
.atr-design-gallery .gallery-product-rail > * { min-width: 0; scroll-snap-align: start; }

/* Curator note */
.atr-design-gallery .gallery-note { width: min(100% - 48px, 1360px); margin-inline: auto; display: grid; grid-template-columns: .3fr 1fr .7fr; align-items: center; gap: clamp(28px,5vw,74px); border-block: 1px solid var(--gallery-line); }
.atr-design-gallery .gallery-note-number { color: var(--gallery-secondary); font-family: var(--font-display); font-size: clamp(100px,14vw,210px); line-height: .8; }
.atr-design-gallery .gallery-note-copy > p:not(.gallery-eyebrow) { max-width: 660px; margin: 24px 0; color: var(--gallery-muted); font-size: 17px; line-height: 1.9; }
.atr-design-gallery .gallery-note-frame { min-height: 390px; display: grid; place-items: center; border-inline-start: 1px solid var(--gallery-line); }
.atr-design-gallery .gallery-note-image-frame { width: 58%; aspect-ratio: 4 / 5; display: block; overflow: clip; border: 1px solid var(--gallery-line); background: linear-gradient(145deg,var(--gallery-surface),var(--gallery-secondary)); box-shadow: 18px 20px 0 var(--gallery-surface); transform: rotate(3deg); }
.atr-design-gallery .gallery-note-image-frame img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; }

/* Newsletter */
.atr-design-gallery .gallery-newsletter { width: min(100% - 48px,1360px); margin: 0 auto clamp(84px,9vw,144px); padding: clamp(42px,6vw,76px); display: grid; grid-template-columns: 1fr minmax(360px,.7fr); align-items: center; gap: clamp(34px,6vw,90px); border: 1px solid var(--gallery-line); background: var(--gallery-surface); }
.atr-design-gallery .gallery-newsletter h2 { font-size: clamp(38px,4.5vw,66px); }
.atr-design-gallery .gallery-newsletter-copy > p:not(.gallery-eyebrow) { margin: 16px 0 0; color: var(--gallery-muted); }
.atr-design-gallery .gallery-newsletter-form { display: grid; grid-template-columns: minmax(0,1fr) auto; border-bottom: 1px solid var(--gallery-primary); }
.atr-design-gallery .gallery-newsletter-form input { min-width: 0; min-height: 52px; padding: 8px 0; border: 0; background: transparent; color: var(--gallery-text); }
.atr-design-gallery .gallery-newsletter-form button { min-width: 108px; min-height: 48px; border: 0; background: transparent; color: var(--gallery-text); font-weight: 700; }

.atr-design-gallery .atr-footer { border-top: 1px solid var(--gallery-line); background: var(--gallery-primary); color: var(--gallery-surface); }
.atr-design-gallery .atr-footer::before { content: "GALLERY / INDEX"; display: block; width: min(100% - 48px,1360px); margin-inline: auto; padding-top: 30px; color: var(--gallery-secondary); font-size: 9px; letter-spacing: .16em; }
.atr-design-gallery .atr-footer-grid { border-bottom-color: color-mix(in srgb,var(--gallery-surface) 18%,transparent); }
.atr-design-gallery .atr-footer h4,
.atr-design-gallery .atr-footer .brand-mark { color: var(--gallery-surface); font-family: var(--font-display); font-weight: 500; }
.atr-design-gallery .atr-footer p,
.atr-design-gallery .atr-footer li,
.atr-design-gallery .atr-footer a { color: color-mix(in srgb,var(--gallery-surface) 65%,transparent); }
.atr-design-gallery .atr-footer a:hover { color: var(--gallery-secondary); }
.atr-design-gallery .atr-footer-bottom { border-top-color: color-mix(in srgb,var(--gallery-surface) 18%,transparent); }
.atr-design-gallery .atr-payment-badge,
.atr-design-gallery .atr-social-btn { border-color: color-mix(in srgb,var(--gallery-surface) 30%,transparent); border-radius: 0; background: transparent; color: var(--gallery-surface); }
.atr-design-gallery .atr-tabbar { border-top-color: var(--gallery-line); background: var(--gallery-surface); color: var(--gallery-muted); }
.atr-design-gallery .atr-tabbar-item.active { color: var(--gallery-accent); }

@media (max-width:1199px) {
  .atr-design-gallery .gallery-home .gallery-hero { grid-template-columns: minmax(0,.58fr) minmax(320px,.42fr); }
  .atr-design-gallery .gallery-home .gallery-hero-copy { padding: clamp(32px, 4vw, 52px); transform: translateX(clamp(24px, 3vw, 38px)); }
  .atr-design-gallery .gallery-home .gallery-hero h1 { font-size: 58px; }
  .atr-design-gallery .gallery-product-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .atr-design-gallery .gallery-product-rail { grid-auto-columns: calc((100% - 36px) / 3); }
  .atr-design-gallery .gallery-wall { grid-template-columns: 1fr 1fr; }
  .atr-design-gallery .gallery-wall-tile--1 { grid-row: span 2; }
  .atr-design-gallery .gallery-note { grid-template-columns: .25fr 1fr; }
  .atr-design-gallery .gallery-note-frame { display: none; }
}

@media (max-width:900px) {
  .atr-design-gallery .gallery-shell { width: min(100% - 32px,1360px); }
  .atr-design-gallery .gallery-home .gallery-hero { min-height: calc(100svh - 98px); grid-template-columns: minmax(0, 1fr); background: var(--gallery-surface); }
  .atr-design-gallery .gallery-home .gallery-hero-media,
  .atr-design-gallery .gallery-home .gallery-hero-media > img { min-height: clamp(420px, 52svh, 580px); }
  .atr-design-gallery .gallery-home .gallery-hero-copy { align-self: stretch; margin: 0; padding: 52px 32px 68px; border: 0; border-top: 1px solid var(--gallery-line); background: var(--gallery-surface); box-shadow: none; transform: none; }
  .atr-design-gallery .gallery-home .gallery-hero h1 { font-size: 52px; }
  .atr-design-gallery .gallery-category-grid { grid-template-columns: repeat(2,1fr); grid-auto-rows: 260px; }
  .atr-design-gallery .gallery-category { grid-column: auto; grid-row: auto; }
  .atr-design-gallery .gallery-category--1 { grid-row: span 2; }
  .atr-design-gallery .gallery-lookbook-grid { grid-template-columns: 1fr; }
  .atr-design-gallery .gallery-lookbook-media,
  .atr-design-gallery .gallery-lookbook-media img { min-height: 560px; }
  .atr-design-gallery .gallery-newsletter { grid-template-columns: 1fr; }
}

@media (max-width:767px) {
  .atr-design-gallery .gallery-shell { width: min(100% - 24px,1360px); }
  .atr-design-gallery .gallery-section { padding-block: 68px; }
  .atr-design-gallery .gallery-heading h2,
  .atr-design-gallery .gallery-lookbook h2,
  .atr-design-gallery .gallery-note h2,
  .atr-design-gallery .gallery-newsletter h2 { font-size: clamp(34px,11vw,52px); }
  .atr-design-gallery .gallery-heading--row { align-items: start; }
  .atr-design-gallery .gallery-heading-index { display: none; }
  .atr-design-gallery .atr-header-inner { min-height: 64px; }
  .atr-design-gallery .atr-brand-mark::after { display: none; }
  .atr-design-gallery .gallery-home .gallery-hero-media,
  .atr-design-gallery .gallery-home .gallery-hero-media > img { min-height: clamp(340px, 78vw, 430px); }
  .atr-design-gallery .gallery-home .gallery-hero-slider-controls { inset: auto auto 16px 16px; gap: 6px; padding: 6px; }
  .atr-design-gallery .gallery-home .gallery-hero-slider-dot,
  .atr-design-gallery .gallery-home .gallery-hero-slider-arrow { width: 28px; height: 28px; }
  .atr-design-gallery .gallery-home .gallery-hero-index { inset: auto 16px 16px auto; }
  .atr-design-gallery .gallery-home .gallery-hero-copy { padding: 38px 20px 54px; }
  .atr-design-gallery .gallery-home .gallery-hero-copy::before { margin-bottom: 16px; }
  .atr-design-gallery .gallery-home .gallery-hero h1 { font-size: 42px; line-height: .98; }
  .atr-design-gallery .gallery-home .gallery-hero-copy > p:not(.gallery-eyebrow) { margin-top: 18px; font-size: 15px; line-height: 1.78; }
  .atr-design-gallery .gallery-home .gallery-hero .gallery-actions { flex-wrap: wrap; gap: 14px; margin-top: 24px; }
  .atr-design-gallery .gallery-category-grid { grid-template-columns: minmax(0,1fr); grid-auto-rows: auto; gap: 9px; overflow: visible; }
  .atr-design-gallery .gallery-category {
    width: 100%;
    max-width: 380px;
    min-width: 0;
    min-height: 0;
    height: clamp(200px, 60vw, 340px);
    aspect-ratio: auto;
    margin-inline: auto;
    grid-column: auto;
    grid-row: auto;
  }
  .atr-design-gallery .gallery-category--1 { grid-row: auto; }
  .atr-design-gallery .gallery-category > span { padding: 10px; font-size: 11px; }
  .atr-design-gallery .gallery-product-grid > .atr-product-card { width: 100%; max-width: 360px; margin-inline: auto; }
  .atr-design-gallery :is(.gallery-categories, .gallery-products, .gallery-rail-section) { padding-block: 44px; }
  .atr-design-gallery :is(.gallery-categories, .gallery-products, .gallery-rail-section) .gallery-heading { margin-bottom: 22px; }
  .atr-design-gallery .gallery-wall { grid-template-columns: 1fr 1fr; grid-template-rows: 340px 220px auto; gap: 9px; }
  .atr-design-gallery .gallery-wall-tile--1 { grid-column: 1 / -1; grid-row: auto; }
  .atr-design-gallery .gallery-wall-caption { grid-column: 1 / -1; min-height: 230px; }
  .atr-design-gallery .gallery-product-grid { grid-template-columns: minmax(0,1fr); gap: 9px; }
  .atr-design-gallery .atr-product-card .card-body { min-height: 148px; padding: 10px; }
  .atr-design-gallery .atr-product-card .product-name { font-size: 12px; }
  .atr-design-gallery .atr-product-card .price-main { font-size: 11px; }
  .atr-design-gallery .gallery-lookbook-media,
  .atr-design-gallery .gallery-lookbook-media img { min-height: 420px; }
  .atr-design-gallery .gallery-lookbook-copy { padding: 48px 22px 58px; }
  .atr-design-gallery .gallery-product-rail { margin-inline: 0; grid-auto-columns: min(84vw, 340px); gap: 12px; }
  .atr-design-gallery .gallery-scroll-hint { font-size: 9px; }
  .atr-design-gallery .gallery-note { width: min(100% - 24px,1360px); grid-template-columns: 1fr; gap: 22px; }
  .atr-design-gallery .gallery-note-number { font-size: 92px; }
  .atr-design-gallery .gallery-note-copy > p:not(.gallery-eyebrow) { font-size: 15px; }
  .atr-design-gallery .gallery-newsletter { width: min(100% - 24px,1360px); margin-bottom: 68px; padding: 36px 22px; }
  .atr-design-gallery .gallery-newsletter-form { grid-template-columns: 1fr; border: 0; gap: 10px; }
  .atr-design-gallery .gallery-newsletter-form input { padding-inline: 10px; border: 1px solid var(--gallery-line); }
  .atr-design-gallery .gallery-newsletter-form button { width: 100%; border: 1px solid var(--gallery-primary); background: var(--gallery-primary); color: var(--gallery-surface); }
}

@media (max-width:359px) {
  .atr-design-gallery .gallery-shell,
  .atr-design-gallery .gallery-note,
  .atr-design-gallery .gallery-newsletter { width: calc(100% - 16px); }
  .atr-design-gallery .gallery-home .gallery-hero .gallery-actions { flex-direction: column; align-items: stretch; }
  .atr-design-gallery .gallery-home .gallery-hero .gallery-actions .gallery-text-link { align-self: flex-start; }
  .atr-design-gallery .gallery-home .gallery-hero h1 { font-size: 38px; }
  .atr-design-gallery .gallery-category-grid,
  .atr-design-gallery .gallery-product-grid { gap: 6px; }
  .atr-design-gallery .atr-product-card .card-body { padding: 8px; }
  .atr-design-gallery .atr-product-card .add-btn { width: 42px; height: 44px; flex-basis: 42px; }
}

@media (prefers-reduced-motion:reduce) {
  .atr-design-gallery *,
  .atr-design-gallery *::before,
  .atr-design-gallery *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Compact shared card content on mobile without changing card identity. */
@media (max-width: 767px) {
  .atr-design-gallery .gallery-home .atr-product-card .card-body {
    min-height: 0;
    padding: 12px 14px 14px;
    gap: 6px;
  }
  .atr-design-gallery .gallery-home .atr-product-card .product-kind { margin: 0; line-height: 1.3; }
  .atr-design-gallery .gallery-home .atr-product-card .product-name { min-height: 0; margin: 0; }
  .atr-design-gallery .gallery-home .atr-product-card .rating-row { margin: 0; }
  .atr-design-gallery .gallery-home .atr-product-card .price-row { gap: 10px; }
}
