@import url("https://fonts.googleapis.com/css2?family=Balthazar&display=swap");

:root {
  --bg: #f7f3ef;
  --ink: #0b0b0b;
  --muted: #6f6a65;
  --line: #d8d2ca;
  --dark: #070707;
  --dark-soft: #171717;
  --paper: #fffaf4;
  --gold: #d6a354;
  --red: #c70b0b;
  --green: #4c956c;
  --radius: 8px;
  font-family: Inter, "Noto Sans TC", "Microsoft JhengHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  background: var(--bg);
  color: var(--ink);
  margin: 0;
}

body[data-page="admin"],
body[data-page="login"],
body[data-page="account"],
body[data-page="cart"] {
  background: #0d0d0d;
  color: #f6efe7;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  align-items: center;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  left: 0;
  padding: 20px 34px;
  pointer-events: none;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
}

.line-link:hover {
  color: var(--red);
}

.ati-hero {
  min-height: 100svh;
  overflow: hidden;
  position: relative;
}

.hamburger {
  align-items: center;
  background: transparent;
  border: 0;
  display: grid;
  gap: 5px;
  height: 44px;
  justify-items: center;
  padding: 8px;
  pointer-events: auto;
  width: 44px;
}

.hamburger span {
  background: white;
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
  display: block;
  height: 3px;
  width: 23px;
}

.wordmark {
  color: #f00000;
  font-family: "Balthazar", Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 700;
  justify-self: center;
  letter-spacing: 0.28em;
  line-height: 1;
  pointer-events: auto;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}

.cart-icon {
  align-items: center;
  color: white;
  display: inline-flex;
  height: 44px;
  justify-content: center;
  justify-self: end;
  pointer-events: auto;
  position: relative;
  width: 44px;
}

.cart-icon svg {
  display: block;
  filter: drop-shadow(0 1px 10px rgba(0, 0, 0, 0.55));
}

.cart-icon span {
  align-items: center;
  background: var(--red);
  border-radius: 999px;
  color: white;
  display: flex;
  font-size: 11px;
  height: 18px;
  justify-content: center;
  min-width: 18px;
  position: absolute;
  right: 0;
  top: 0;
}

.menu-drawer {
  background: rgba(0, 0, 0, 0.72);
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  transition: opacity 180ms ease;
  z-index: 70;
}

.menu-drawer.open {
  opacity: 1;
  pointer-events: auto;
}

.menu-panel {
  background: #f8f5f0;
  color: white;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 100svh;
  padding: 84px clamp(24px, 8vw, 72px) 34px;
  position: absolute;
  right: 0;
  top: 0;
  width: min(520px, 100vw);
}

.menu-panel p {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.16em;
  margin: 0 0 28px;
  text-align: left;
  text-transform: uppercase;
}

.menu-panel a,
.policy-toggle,
.drawer-close {
  background: transparent;
  border: 0;
  color: var(--ink);
  font-family: "Balthazar", Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 8vw, 64px);
  font-weight: 500;
  min-height: 74px;
  padding: 0;
  text-align: left;
}

.drawer-close {
  color: var(--ink);
  font-family: Inter, "Noto Sans TC", "Microsoft JhengHei", Arial, sans-serif;
  font-size: 13px;
  font-weight: 400;
  position: absolute;
  right: 28px;
  top: 24px;
}

.menu-panel a:hover,
.policy-toggle:hover {
  color: var(--red);
}

.policy-toggle {
  align-items: center;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 0;
}

.policy-toggle span {
  font-family: Inter, "Noto Sans TC", "Microsoft JhengHei", Arial, sans-serif;
  font-size: 48px;
  line-height: 0;
}

.policy-submenu {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  display: none;
  flex-direction: column;
  gap: 0;
  padding: 12px 0 18px;
}

.policy-submenu.open {
  display: flex;
}

.policy-submenu p {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}

.policy-submenu a {
  font-family: Inter, "Noto Sans TC", "Microsoft JhengHei", Arial, sans-serif;
  font-size: 17px;
  font-weight: 500;
  min-height: 36px;
}

.ati-hero picture,
.ati-hero > picture img {
  display: block;
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.ati-hero::after {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.06) 52%, rgba(0, 0, 0, 0.46));
  content: "";
  inset: 0;
  position: absolute;
}

.hero-statements {
  color: white;
  display: grid;
  font-family: "Balthazar", Georgia, "Times New Roman", serif;
  gap: clamp(34px, 6vh, 62px);
  left: clamp(26px, 6vw, 84px);
  position: absolute;
  top: clamp(92px, 14vh, 150px);
  width: min(560px, calc(100% - 48px));
  z-index: 2;
}

.hero-statements article {
  animation: statementPop 620ms ease both;
  animation-delay: var(--statement-delay);
  display: grid;
  gap: 18px;
  opacity: 0;
  transform: translateY(18px);
}

.hero-statements article,
.hero-statements h1,
.hero-statements p {
  font-family: "Balthazar", Georgia, "Times New Roman", serif !important;
}

.hero-statements h1 {
  font-size: clamp(34px, 4.4vw, 62px);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
  margin: 0;
}

.hero-statements p {
  color: white;
  font-size: clamp(16px, 1.7vw, 22px);
  font-weight: 500;
  line-height: 1.35;
  margin: 0;
}

.section-shop-link {
  border-bottom: 1px solid currentColor;
  bottom: 26px;
  color: white;
  font-weight: 700;
  left: 50%;
  line-height: 1.2;
  position: absolute;
  transform: translateX(-50%);
  z-index: 3;
}

@keyframes statementPop {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-copy {
  bottom: 9vh;
  color: white;
  left: clamp(22px, 5vw, 72px);
  max-width: 660px;
  position: absolute;
  z-index: 2;
}

.hero-copy p,
.page-heading p,
.dealer-hero p,
.auth-panel p,
.admin-head p,
.editorial-grid article p,
.carousel-caption p {
  color: var(--gold);
  letter-spacing: 0.16em;
  margin: 0;
  text-transform: uppercase;
}

.hero-copy h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(62px, 10vw, 168px);
  letter-spacing: 0.12em;
  line-height: 0.88;
  margin: 12px 0;
}

.hero-copy h2 {
  font-size: clamp(22px, 3.6vw, 48px);
  line-height: 1.05;
  margin: 0 0 24px;
  max-width: 640px;
}

.line-link {
  border-bottom: 1px solid currentColor;
  display: inline-flex;
  letter-spacing: 0.08em;
  min-height: 32px;
  text-transform: uppercase;
}

.line-link.light {
  color: white;
}

.brand-intro {
  align-items: center;
  background: var(--paper);
  display: grid;
  gap: clamp(24px, 6vw, 84px);
  grid-template-columns: 0.7fr 1fr;
  padding: clamp(34px, 7vw, 96px) clamp(24px, 10vw, 160px);
}

.brand-intro img {
  display: block;
  justify-self: center;
  max-width: min(330px, 68vw);
  width: 100%;
}

.brand-intro p {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 4vw, 58px);
  line-height: 1.08;
  margin: 0;
}

.story-carousel {
  background: #080808;
  color: white;
  min-height: 100svh;
  overflow: hidden;
  position: relative;
}

.story-carousel img {
  display: block;
  height: 100svh;
  object-fit: cover;
  opacity: 0.88;
  width: 100%;
}

.story-carousel::after {
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.32), transparent 54%, rgba(0, 0, 0, 0.18));
  content: "";
  inset: 0;
  position: absolute;
}

.story-progress {
  bottom: 22px;
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(var(--story-count, 3), 1fr);
  left: clamp(18px, 4vw, 54px);
  position: absolute;
  right: clamp(18px, 4vw, 54px);
  z-index: 2;
}

.story-progress span {
  background: rgba(255, 255, 255, 0.28);
  height: 3px;
  overflow: hidden;
  position: relative;
}

.story-progress span.active::after {
  animation: storyFill 5s linear both;
  background: white;
  content: "";
  inset: 0;
  position: absolute;
  transform-origin: left center;
}

.story-carousel .section-shop-link {
  bottom: 54px;
}

@keyframes storyFill {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.featured-products {
  background: #fff;
  color: #111;
  cursor: grab;
  display: flex;
  gap: 1px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  user-select: none;
  -webkit-overflow-scrolling: touch;
}

.featured-products.dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.featured-products.dragging a {
  pointer-events: none;
}

.featured-products::-webkit-scrollbar {
  height: 6px;
}

.featured-products::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.26);
}

.featured-product-card {
  background: #fff;
  flex: 0 0 min(520px, 42vw);
  min-width: 320px;
  scroll-snap-align: start;
}

.featured-main-image {
  background: #fff;
  display: block;
}

.featured-main-image img {
  aspect-ratio: 1 / 1;
  display: block;
  object-fit: contain;
  padding: clamp(28px, 4.2vw, 72px);
  width: 100%;
}

.featured-product-info {
  align-items: flex-start;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 22px 28px 18px;
}

.featured-product-info h2 {
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 8px;
}

.shop-card h2,
.cart-row h2 {
  font-size: 18px;
  font-weight: 500;
  margin: 20px 0 8px;
}

.featured-product-info p,
.shop-card p,
.cart-row p,
.footer p,
.auth-panel span,
.dealer-hero span,
.editorial-grid span,
.carousel-caption span,
.note {
  color: var(--muted);
  line-height: 1.7;
}

.featured-bookmark {
  align-items: center;
  color: inherit;
  display: inline-flex;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.featured-bookmark:hover {
  color: var(--gold);
}

.featured-thumbs {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(5, minmax(52px, 1fr));
  padding: 0 28px 28px;
}

.featured-thumbs a {
  border: 1px solid transparent;
  background: #faf8f5;
  display: block;
}

.featured-thumbs a.active,
.featured-thumbs a:hover {
  border-color: rgba(0, 0, 0, 0.42);
}

.featured-thumbs img {
  aspect-ratio: 1 / 0.7;
  display: block;
  object-fit: contain;
  padding: 6px;
  width: 100%;
}

.customer-voices {
  background: #fff;
  color: #111;
  padding: 0 0 36px;
}

.customer-voices header {
  padding: 14px clamp(20px, 4vw, 50px) 18px;
}

.customer-voices h2 {
  color: #d20d0d;
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: 0;
  margin: 0 0 8px;
}

.customer-voices p {
  color: #595959;
  font-size: clamp(16px, 1.6vw, 22px);
  font-style: italic;
  margin: 0;
}

.customer-share-strip {
  display: flex;
  gap: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
}

.customer-share-strip::-webkit-scrollbar {
  display: none;
}

.customer-share-card {
  align-items: center;
  aspect-ratio: 4 / 5;
  background: #171717;
  background-position: center;
  background-size: cover;
  color: white;
  display: flex;
  flex: 0 0 clamp(230px, 20vw, 380px);
  justify-content: center;
  overflow: hidden;
  position: relative;
  scroll-snap-align: start;
}

.customer-share-card::after {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 32%, rgba(0, 0, 0, 0.5));
  content: "";
  inset: 0;
  opacity: 0;
  position: absolute;
  transition: opacity 0.22s ease;
}

.customer-share-card.loaded .customer-share-fallback {
  opacity: 0;
}

.customer-share-card:hover::after,
.customer-share-card:hover .customer-share-hover {
  opacity: 1;
}

.customer-share-user {
  color: white;
  font-size: 13px;
  font-weight: 700;
  left: 14px;
  letter-spacing: 0.02em;
  position: absolute;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
  top: 12px;
  z-index: 2;
}

.customer-share-fallback {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.customer-share-hover {
  align-items: center;
  color: white;
  display: inline-flex;
  inset: 0;
  justify-content: center;
  opacity: 0;
  position: absolute;
  transition: opacity 0.22s ease;
  z-index: 2;
}

.admin-image-preview {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-image-preview figure {
  border: 1px solid var(--line);
  margin: 0;
  overflow: hidden;
}

.admin-image-preview img {
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  width: 100%;
}

.admin-image-preview figcaption {
  color: var(--muted);
  font-size: 13px;
  padding: 10px 12px;
}

.story-admin-preview {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

.story-admin-card {
  background: #171717;
  border: 1px solid var(--line);
  cursor: grab;
  overflow: hidden;
}

.story-admin-card.dragging {
  opacity: 0.45;
}

.story-admin-card img {
  aspect-ratio: 9 / 14;
  display: block;
  object-fit: cover;
  width: 100%;
}

.story-admin-card div {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr auto;
  padding: 12px;
}

.story-admin-card strong {
  font-size: 14px;
  grid-column: 1 / 2;
}

.story-admin-card span {
  color: var(--muted);
  font-size: 12px;
  grid-column: 1 / 2;
}

.story-admin-card button {
  align-self: center;
  background: transparent;
  border: 1px solid var(--line);
  color: inherit;
  grid-column: 2 / 3;
  grid-row: 1 / 3;
  min-height: 34px;
  padding: 0 12px;
}

.share-admin-preview {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

.share-admin-card {
  background: #171717;
  border: 1px solid var(--line);
  display: grid;
  gap: 12px;
  padding: 12px;
}

.share-admin-card strong {
  font-size: 14px;
}

.share-admin-card button {
  background: transparent;
  border: 1px solid var(--line);
  color: inherit;
  min-height: 36px;
}

.cart-row button,
.outline {
  background: transparent;
  border: 0;
  border-bottom: 1px solid currentColor;
  color: inherit;
  min-height: 36px;
  padding: 0;
  text-transform: uppercase;
}

.carousel-block {
  background: var(--dark);
  color: white;
  display: grid;
  grid-template-columns: 1.5fr 0.9fr;
  min-height: 640px;
}

.carousel-media {
  min-height: 640px;
  overflow: hidden;
}

.carousel-media img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.carousel-caption {
  align-self: end;
  padding: clamp(28px, 5vw, 72px);
}

.carousel-caption h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 5vw, 86px);
  line-height: 0.95;
  margin: 18px 0;
}

.carousel-controls {
  display: flex;
  gap: 8px;
  margin-top: 28px;
}

.carousel-controls button {
  background: rgba(255, 255, 255, 0.35);
  border: 0;
  height: 4px;
  padding: 0;
  width: 42px;
}

.carousel-controls button.active {
  background: var(--gold);
}

.look-strip {
  background: var(--dark);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.look-strip article {
  min-height: 280px;
  overflow: hidden;
  position: relative;
}

.look-strip img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.look-strip span {
  background: rgba(0, 0, 0, 0.62);
  color: white;
  left: 12px;
  padding: 6px 10px;
  position: absolute;
  top: 12px;
}

.editorial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.editorial-grid article {
  background: var(--paper);
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
}

.editorial-grid img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.editorial-grid article > div {
  align-self: center;
  padding: clamp(24px, 4vw, 56px);
}

.editorial-grid h2,
.page-heading h1,
.dealer-hero h1,
.auth-panel h1,
.product-detail h1 {
  font-size: clamp(36px, 5vw, 74px);
  line-height: 1.02;
  margin: 12px 0 18px;
}

.page-heading,
.dealer-hero,
.auth-panel,
.policy-page {
  margin: 0 auto;
  max-width: 1180px;
  padding: clamp(44px, 8vw, 112px) clamp(18px, 4vw, 48px);
}

.policy-page {
  min-height: 70svh;
  padding-top: 140px;
}

.policy-page p {
  color: var(--gold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.policy-page h1 {
  font-size: clamp(42px, 7vw, 92px);
  line-height: 1;
  margin: 12px 0 18px;
}

.policy-page span {
  color: var(--muted);
  display: block;
  font-size: 20px;
  line-height: 1.8;
  max-width: 760px;
}

.filter-row,
.chips,
.option-row,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-row a,
.chips span,
.option-row button {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 40px;
  padding: 9px 14px;
}

.filter-row a.active {
  background: var(--ink);
  color: white;
}

.shop-page {
  background: #050505;
  color: white;
  min-height: 100svh;
  padding-top: 84px;
}

.shop-topbar {
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  min-height: 74px;
  padding: 0 clamp(18px, 3vw, 44px);
}

.shop-topbar div {
  text-align: center;
}

.shop-topbar p {
  color: rgba(255, 255, 255, 0.52);
  font-size: 11px;
  letter-spacing: 0.22em;
  margin: 0 0 5px;
}

.shop-topbar h1 {
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 500;
  letter-spacing: 0.12em;
  margin: 0;
  text-align: center;
}

.shop-topbar button,
.shop-topbar a {
  background: transparent;
  border: 0;
  color: white;
  font: inherit;
  letter-spacing: 0.02em;
  min-height: 40px;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.shop-topbar a {
  justify-self: end;
}

.shop-filter-panel {
  align-items: center;
  background: #0b0b0b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  gap: 8px;
  justify-content: center;
  max-height: 0;
  overflow: hidden;
  padding: 0 clamp(18px, 3vw, 44px);
  transition: max-height 0.28s ease, padding 0.28s ease;
}

.shop-filter-panel.open {
  max-height: 120px;
  padding-bottom: 16px;
  padding-top: 16px;
}

.shop-filter-panel a {
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: white;
  min-height: 38px;
  padding: 8px 16px;
  text-transform: uppercase;
}

.shop-filter-panel a.active,
.shop-filter-panel a:hover {
  background: white;
  color: #050505;
}

.shop-count {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  letter-spacing: 0.14em;
  padding: 18px clamp(18px, 3vw, 44px);
}

.shop-product-grid {
  background: #1a1a1a;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.shop-card {
  background: #0a0a0a;
  color: white;
  min-width: 0;
  padding-bottom: 20px;
}

.shop-card-image {
  background: #f7f5f2;
  display: block;
  overflow: hidden;
  position: relative;
}

.shop-card-image img {
  aspect-ratio: 4 / 5.1;
  display: block;
  object-fit: contain;
  padding: clamp(18px, 3vw, 44px);
  transition: transform 0.35s ease;
  width: 100%;
}

.shop-card-image:hover img {
  transform: scale(1.04);
}

.shop-card-image span {
  background: #050505;
  color: white;
  font-size: 11px;
  left: 12px;
  letter-spacing: 0.08em;
  padding: 6px 8px;
  position: absolute;
  text-transform: uppercase;
  top: 12px;
}

.shop-card-meta {
  align-items: flex-start;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr auto;
  padding: 18px 18px 6px;
}

.shop-card-meta a {
  color: white;
  font-size: 16px;
  line-height: 1.35;
}

.shop-card-meta button {
  align-items: center;
  background: transparent;
  border: 0;
  color: white;
  display: inline-flex;
  height: 32px;
  justify-content: center;
  padding: 0;
  width: 32px;
}

.shop-card > p {
  color: rgba(255, 255, 255, 0.62);
  margin: 0;
  padding: 0 18px 12px;
}

.shop-add {
  background: transparent;
  border: 0;
  border-bottom: 1px solid currentColor;
  color: white;
  cursor: pointer;
  margin-left: 18px;
  min-height: 34px;
  padding: 0;
  text-transform: uppercase;
}

.solid {
  align-items: center;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  color: white;
  display: inline-flex;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
}

body[data-page="admin"] .solid,
body[data-page="login"] .solid,
body[data-page="account"] .solid,
body[data-page="cart"] .solid {
  background: var(--gold);
  border-color: var(--gold);
  color: #120d07;
}

.wide {
  width: 100%;
}

.product-detail,
.cart-layout {
  display: grid;
  gap: clamp(24px, 5vw, 72px);
  grid-template-columns: 1fr 1fr;
  margin: 0 auto;
  max-width: 1180px;
  padding: clamp(44px, 8vw, 112px) clamp(18px, 4vw, 48px);
}

.product-detail > img {
  aspect-ratio: 1;
  display: block;
  object-fit: cover;
  width: 100%;
}

.product-detail > div {
  align-self: center;
}

.option-row {
  align-items: center;
  margin: 18px 0;
}

.auth-panel {
  max-width: 640px;
}

.auth-panel form,
.admin-form {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

label {
  color: inherit;
  display: grid;
  gap: 8px;
}

input,
select,
textarea {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  color: inherit;
  min-height: 46px;
  padding: 10px 12px;
}

body:not([data-page="admin"]):not([data-page="login"]):not([data-page="account"]):not([data-page="cart"]) input,
body:not([data-page="admin"]):not([data-page="login"]):not([data-page="account"]):not([data-page="cart"]) select,
body:not([data-page="admin"]):not([data-page="login"]):not([data-page="account"]):not([data-page="cart"]) textarea {
  background: white;
  border-color: var(--line);
  color: var(--ink);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.admin-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100svh - 86px);
}

.admin-sidebar {
  background: #121212;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 26px;
}

.admin-sidebar h1 {
  font-size: 34px;
  margin: 0 0 14px;
}

.admin-sidebar button {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  color: white;
  min-height: 42px;
  text-align: left;
  padding: 0 12px;
}

.admin-sidebar button.active {
  background: var(--gold);
  color: #120d07;
}

.admin-content {
  padding: clamp(22px, 4vw, 52px);
}

.admin-head h2 {
  font-size: clamp(32px, 4vw, 58px);
  margin: 8px 0 24px;
}

.metric-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, 1fr);
}

.metric-grid article,
.checkout-panel,
.admin-table {
  background: #171717;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
}

.metric-grid article {
  padding: 18px;
}

.metric-grid span {
  color: #b8ada1;
}

.metric-grid strong {
  display: block;
  font-size: 28px;
  margin-top: 10px;
}

.bar-chart {
  align-items: end;
  background: #171717;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(5, 1fr);
  height: 260px;
  margin-top: 16px;
  padding: 18px;
}

.bar-chart div {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  justify-content: end;
}

.bar-chart span {
  background: linear-gradient(var(--gold), var(--red));
  border-radius: 6px 6px 0 0;
  display: block;
  min-height: 12px;
  width: 100%;
}

.bar-chart em {
  color: #b8ada1;
  font-style: normal;
}

.admin-table {
  margin-top: 16px;
  overflow: hidden;
}

.admin-table div {
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr auto auto;
  min-height: 54px;
  padding: 10px 14px;
}

.admin-table div:last-child {
  border-bottom: 0;
}

.checkbox-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.checkbox-grid label {
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  display: flex;
  min-height: 44px;
  padding: 0 12px;
}

.cart-row {
  align-items: center;
  background: #171717;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  gap: 16px;
  grid-template-columns: 90px 1fr auto;
  padding: 14px;
}

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

.checkout-panel {
  align-self: start;
  padding: 22px;
}

.empty {
  color: #b8ada1;
  padding: 24px;
}

.footer {
  background: #050505;
  color: white;
  display: grid;
  gap: 28px;
  grid-template-columns: 1.2fr 0.7fr 1.5fr;
  padding: clamp(30px, 6vw, 76px) clamp(18px, 4vw, 48px);
}

.footer img {
  display: block;
  max-width: 150px;
}

.footer h2 {
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer a {
  color: #d7d0c8;
  display: block;
  margin: 9px 0;
}

@media (max-width: 1080px) {
  .carousel-block,
  .editorial-grid,
  .editorial-grid article,
  .product-detail,
  .cart-layout,
  .admin-layout,
  .footer {
    grid-template-columns: 1fr;
  }

  .shop-grid,
  .shop-product-grid,
  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .carousel-media {
    min-height: 420px;
  }

  .admin-sidebar {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    border-right: 0;
  }
}

@media (max-width: 680px) {
  .ati-hero {
    min-height: 760px;
  }

  .site-header {
    padding: 16px 18px;
  }

  .wordmark {
    font-size: 32px;
    letter-spacing: 0.18em;
  }

  .hero-statements {
    gap: 40px;
    top: 76px;
  }

  .hero-statements h1 {
    font-size: 34px;
  }

  .hero-statements p {
    font-size: 18px;
  }

  .hero-copy {
    bottom: 52px;
    left: 18px;
    right: 18px;
  }

  .hero-copy h1 {
    font-size: 54px;
  }

  .look-strip,
  .shop-grid,
  .metric-grid,
  .checkbox-grid,
  .brand-intro {
    grid-template-columns: 1fr;
  }

  .shop-page {
    padding-top: 72px;
  }

  .shop-topbar {
    column-gap: 12px;
    grid-template-columns: auto minmax(0, 1fr);
    min-height: 66px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .shop-topbar button,
  .shop-topbar a {
    font-size: 13px;
  }

  .shop-topbar p {
    display: none;
  }

  .shop-topbar a {
    display: none;
  }

  .shop-topbar h1 {
    font-size: 15px;
    letter-spacing: 0.08em;
  }

  .shop-filter-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .shop-filter-panel.open {
    max-height: 320px;
  }

  .shop-filter-panel a {
    text-align: center;
  }

  .shop-count {
    padding: 14px 16px;
  }

  .shop-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shop-card-image img {
    aspect-ratio: 3 / 4.2;
    padding: 14px;
  }

  .shop-card-meta {
    padding: 13px 12px 5px;
  }

  .shop-card-meta a {
    font-size: 13px;
  }

  .shop-card-meta button {
    height: 28px;
    width: 28px;
  }

  .shop-card > p {
    font-size: 13px;
    padding: 0 12px 10px;
  }

  .shop-add {
    font-size: 12px;
    margin-left: 12px;
    min-height: 30px;
  }

  .customer-share-card {
    flex-basis: 62vw;
  }

  .featured-product-card {
    flex-basis: 100%;
    min-width: min(100vw, 430px);
  }

  .featured-main-image img {
    aspect-ratio: 1 / 1.18;
    padding: 24px;
  }

  .featured-product-info {
    padding: 18px 20px 14px;
  }

  .featured-thumbs {
    gap: 6px;
    padding: 0 20px 22px;
  }

  .admin-image-preview {
    grid-template-columns: 1fr;
  }

  .story-admin-preview {
    grid-template-columns: 1fr;
  }

  .page-heading,
  .dealer-hero,
  .auth-panel,
  .product-detail,
  .cart-layout {
    padding-left: 18px;
    padding-right: 18px;
  }

  .admin-table div,
  .cart-row {
    grid-template-columns: 1fr;
  }
}
