:root {
  --ink: #101010;
  --muted: #696969;
  --line: #dedede;
  --paper: #ffffff;
  --soft: #f5f3ef;
  --charcoal: #202224;
  --accent: #b31f2a;
  --olive: #68735a;
  --blue: #315d8f;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  --header-height: 92px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: 'Poppins', Arial, Helvetica, sans-serif;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.nav-open,
body.search-open,
body.cart-open,
body.login-open,
body.terms-open,
body.account-address-modal-open {
  overflow: hidden;
}

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

img {
  display: block;
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  font-weight: 700;
}

h2 {
  font-weight: 600;
}

.announcement {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  min-height: 34px;
  padding: 0;
  color: #fff;
  background: var(--ink);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.announcement-track {
  display: inline-flex;
  width: max-content;
  min-height: 34px;
  align-items: center;
  padding-left: 100%;
  animation: announcement-marquee 24s linear infinite;
}

.announcement-track span {
  position: relative;
  padding: 0 34px;
}

.announcement-track span::after {
  position: absolute;
  top: 50%;
  right: -3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
  transform: translateY(-50%);
}

.announcement-track span:last-child::after {
  display: none;
}

.announcement:hover .announcement-track {
  animation-play-state: paused;
}

@keyframes announcement-marquee {
  from {
    transform: translateX(0%);
  }

  to {
    transform: translateX(-100%);
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 58px;
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 32px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  width: max-content;
  font-size: 25px;
  font-weight: 700;
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: 0;
}

.brand span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--accent);
}

.brand.brand-with-logo {
  font-size: 0;
  line-height: 1;
}

.brand-logo {
  width: 168px;
  max-height: 42px;
  object-fit: contain;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 100%;
}

.nav-item {
  position: relative;
  height: 100%;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 58px;
  padding: 0 13px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.nav-link:hover {
  color: var(--accent);
}

.mega-panel {
  position: absolute;
  top: 58px;
  left: 50%;
  width: min(760px, calc(100vw - 48px));
  padding: 26px;
  border: 1px solid var(--line);
  border-top: 0;
  background: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav-item:hover .mega-panel,
.nav-item:focus-within .mega-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.mega-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 240px;
  gap: 28px;
}

.mega-title {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.mega-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mega-list a {
  font-size: 14px;
  font-weight: 500;
}

.mega-list a:hover {
  color: var(--accent);
}

.mega-image {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--soft);
}

.mega-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mega-image strong {
  position: absolute;
  right: 14px;
  bottom: 12px;
  left: 14px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.header-bulk-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(16, 16, 16, 0.18);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.header-bulk-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: #fff6f7;
}

.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.icon-btn:hover {
  border-color: var(--line);
  background: var(--soft);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.cart-count {
  position: absolute;
  top: 2px;
  right: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  color: #fff;
  background: var(--accent);
  font-size: 10px;
  font-weight: 700;
}

.mobile-toggle {
  display: none;
}

.mobile-nav {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  width: min(380px, 88vw);
  height: 100dvh;
  max-height: 100dvh;
  padding: 22px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  transform: translateX(-105%);
  transition: transform 220ms ease;
}

body.nav-open .mobile-nav {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
}

.mobile-menu-list {
  display: grid;
  align-content: start;
  flex: 1 1 auto;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mobile-menu-list a {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
}

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

body.nav-open .drawer-backdrop,
body.search-open .drawer-backdrop,
body.cart-open .drawer-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.search-drawer {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 95;
  padding: 22px 32px 30px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  transform: translateY(-105%);
  transition: transform 220ms ease;
}

body.search-open .search-drawer {
  transform: translateY(0);
}

.cart-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 95;
  display: grid;
  grid-template-rows: auto 1fr;
  width: min(460px, 92vw);
  background: #fff;
  box-shadow: -24px 0 64px rgba(0, 0, 0, 0.18);
  transform: translateX(105%);
  transition: transform 220ms ease;
}

body.cart-open .cart-drawer {
  transform: translateX(0);
}

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 86px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.cart-drawer-header h2 {
  margin: 4px 0 0;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.cart-drawer-content {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 0;
}

.drawer-cart-list {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 0;
  overflow: auto;
  padding: 18px 20px;
}

.drawer-cart-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.drawer-cart-item img {
  width: 92px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 6px;
  background: var(--soft);
}

.drawer-cart-main {
  min-width: 0;
}

.drawer-cart-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.drawer-cart-top h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.drawer-cart-top strong {
  white-space: nowrap;
  font-size: 13px;
}

.drawer-cart-main p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.drawer-cart-actions {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.remove-link {
  min-height: 34px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.cart-drawer-footer {
  display: grid;
  gap: 12px;
  padding: 18px 20px 20px;
  border-top: 1px solid var(--line);
  background: var(--soft);
}

.cart-drawer-empty {
  display: grid;
  align-content: center;
  gap: 14px;
  min-height: 100%;
  padding: 30px 20px;
}

.cart-drawer-empty h3 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
}

.cart-drawer-empty p {
  margin: 0;
  color: var(--muted);
}

.search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  max-width: 920px;
  margin: 0 auto;
}

.search-input {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-bottom: 2px solid var(--ink);
  outline: 0;
  font-size: 28px;
  font-weight: 600;
}

.search-results {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  max-width: 920px;
  margin: 22px auto 0;
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: calc(100vh - var(--header-height) - 56px);
  min-height: calc(100svh - var(--header-height) - 56px);
  overflow: hidden;
  background: var(--charcoal);
  isolation: isolate;
}

.hero-slider {
  touch-action: pan-y;
  width: 100%;
  margin: 0;
  min-height: 0;
  aspect-ratio: 1500 / 460;
  max-height: 460px;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  background-image: var(--hero-image);
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
  pointer-events: none;
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.62));
  pointer-events: none;
}

.hero-slide {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--slide-image, var(--hero-image));
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transform: none;
  transition: opacity 620ms ease;
  will-change: opacity;
}

.hero-slide.active {
  opacity: 1;
  transform: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 16px;
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 9vh;
  color: #fff;
  text-align: center;
}

.eyebrow {
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.product-info .eyebrow {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  max-width: 100%;
  overflow: hidden;
  letter-spacing: 0.04em;
}

.product-breadcrumb .crumb-home,
.product-breadcrumb .crumb-category,
.product-breadcrumb .crumb-product {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-breadcrumb .crumb-category {
  max-width: 180px;
}

.product-breadcrumb .crumb-product {
  max-width: 220px;
  color: var(--ink);
}

.product-breadcrumb .crumb-sep {
  flex: 0 0 auto;
  color: var(--muted);
}

.product-info .eyebrow a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.product-info .eyebrow a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.hero h1 {
  margin: 0;
  font-size: clamp(46px, 8vw, 112px);
  font-weight: 700;
  line-height: 0.88;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero p {
  max-width: 560px;
  margin: 0 auto;
  font-size: clamp(15px, 1.5vw, 20px);
  font-weight: 500;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 50%;
  background: rgba(16, 16, 16, 0.28);
  color: #fff;
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(10px);
  touch-action: manipulation;
}

.slider-arrow svg,
.product-carousel-btn svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.4;
}

.slider-arrow:hover {
  background: rgba(255, 255, 255, 0.2);
}

.slider-prev {
  left: 26px;
}

.slider-next {
  right: 26px;
}

.slider-dots {
  position: absolute;
  right: 0;
  bottom: 28px;
  left: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 9px;
}

.slider-dot {
  width: 38px;
  height: 3px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
}

.slider-dot.active {
  background: #fff;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.btn:hover {
  background: #303030;
}

.btn.light {
  border-color: #fff;
  background: #fff;
  color: var(--ink);
}

.btn.light:hover {
  background: #ececec;
}

.btn.ghost {
  background: transparent;
  color: var(--ink);
}

.btn.ghost:hover {
  background: var(--ink);
  color: #fff;
}

.btn.full {
  width: 100%;
}

.section {
  padding: 64px 32px;
}

.section.compact {
  padding-top: 42px;
  padding-bottom: 42px;
}

.section.alt {
  background: var(--soft);
}

.container {
  width: min(1480px, 100%);
  margin: 0 auto;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.section-head h2,
.collection-title h1,
.cart-page h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 54px);
  font-weight: 700;
  line-height: 0.94;
}

.product-info h1 {
  margin: 0;
  font-size: clamp(20px, 2.5vw, 32px);
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0;
}

.section-head p,
.collection-title p {
  max-width: 590px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
}

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

.campaign-banner {
  position: relative;
  display: grid;
  align-items: end;
  min-height: clamp(210px, 24vw, 340px);
  overflow: hidden;
  border-radius: 6px;
  background: var(--charcoal);
  color: #fff;
}

.campaign-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  transition: transform 420ms ease;
}

.campaign-banner:hover img {
  transform: scale(1.025);
}

.campaign-banner::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.62));
}

.campaign-copy {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: start;
  gap: 12px;
  width: min(620px, calc(100% - 36px));
  margin: 0 auto 24px 28px;
}

.campaign-eyebrow {
  color: rgba(255, 255, 255, 0.88);
}

.campaign-copy h2 {
  margin: 0;
  font-size: clamp(30px, 4.8vw, 64px);
  font-weight: 700;
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: 0;
}

.category-tile {
  position: relative;
  display: grid;
  align-items: end;
  min-height: min(720px, 56vw);
  overflow: hidden;
  border-radius: 6px;
  background: var(--charcoal);
  color: #fff;
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 360ms ease;
}

.category-tile:hover img {
  transform: scale(1.035);
}

.category-tile::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.58));
}

.tile-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  padding: 26px;
}

.tile-copy h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 76px);
  font-weight: 700;
  line-height: 0.9;
  text-transform: uppercase;
}

.tabbar,
.filterbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tab-btn,
.filter-btn {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}

.tab-btn.active,
.filter-btn.active,
.tab-btn:hover,
.filter-btn:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px 14px;
}

.product-carousel {
  display: block;
  overflow: visible;
  padding: 4px 0 10px;
}

.product-carousel-shell {
  position: relative;
  display: grid;
  gap: 16px;
  width: 100%;
  margin: 0 auto;
}

.product-carousel-viewport {
  width: 100%;
  overflow: hidden;
}

.product-carousel-track {
  display: flex;
  gap: 14px;
  width: 100%;
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.product-carousel .product-card {
  flex: 0 0 calc((100% - 42px) / 4);
  width: calc((100% - 42px) / 4);
}

.product-carousel .product-media {
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.12);
}

.product-carousel-btn {
  position: absolute;
  top: 38%;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transform: translateY(-50%);
}

.product-carousel-btn:hover {
  background: var(--ink);
  color: #fff;
}

.product-carousel-prev {
  left: 12px;
}

.product-carousel-next {
  right: 12px;
}

.product-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.product-carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #c9c9c9;
  cursor: pointer;
}

.product-carousel-dot.active {
  width: 26px;
  border-radius: 999px;
  background: var(--ink);
}

.product-card {
  display: grid;
  gap: 10px;
}

.product-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 6px;
  background: var(--soft);
}

.product-media a {
  display: block;
  width: 100%;
  height: 100%;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 320ms ease;
}

.product-card:hover .product-media img {
  transform: scale(1.035);
}

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  padding: 6px 9px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.product-meta {
  display: grid;
  gap: 5px;
}

.product-name-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.product-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.price {
  white-space: nowrap;
  font-size: 14px;
  font-weight: 700;
}

.price-stack {
  display: inline-grid;
  justify-items: end;
  gap: 2px;
}

.price-old {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  text-decoration: line-through;
}

.price-current {
  color: var(--accent);
}

.price-old-inline {
  margin-right: 6px;
  color: var(--muted);
  text-decoration: line-through;
}

.campaign-hint {
  margin: 2px 0 0;
  color: #166534;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.line-price-stack {
  display: inline-grid;
  justify-items: end;
  gap: 2px;
}

.line-price-stack small {
  color: var(--muted);
  font-size: 11px;
  text-decoration: line-through;
}

.line-price-stack strong {
  font-size: 13px;
}

.color-line {
  color: var(--muted);
  font-size: 12px;
}

.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 24px;
}

.swatch-btn {
  border: 1px solid transparent;
  background: transparent;
  padding: 3px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.swatch-btn.active {
  border-color: rgba(15, 23, 42, 0.35);
}

.swatch {
  width: 18px;
  height: 18px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  background: var(--swatch);
}

.collection-hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: clamp(220px, 30vw, 300px);
  padding: 20px 28px;
  overflow: hidden;
  color: #fff;
  background: var(--charcoal);
}

.collection-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.collection-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.62));
}

.collection-title {
  position: relative;
  z-index: 1;
  width: min(1480px, 100%);
  margin: 0 auto;
}

.collection-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.collection-toolbar .filterbar {
  flex: 1 1 auto;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.collection-toolbar .filterbar::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.collection-toolbar .filter-btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.collection-toolbar .sort-select {
  flex: 0 0 auto;
}

.sort-select {
  min-height: 38px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.story-band {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 38px;
  align-items: center;
}

.story-band.reverse {
  grid-template-columns: 0.9fr 1.1fr;
}

.story-image {
  min-height: 560px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--soft);
}

.home-collection-band .story-image {
  min-height: 0;
  height: clamp(180px, 22vw, 260px);
  max-height: 260px;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-collection-band .story-image img {
  display: block;
  object-fit: cover;
  object-position: right center;
}

.home-collection-band {
  grid-template-columns: minmax(0, 0.94fr) minmax(360px, 1.06fr);
  gap: 16px;
  align-items: stretch;
}

.home-collection-media {
  display: block;
  width: min(100%, 677px);
  aspect-ratio: 677 / 330;
  min-height: 0;
  justify-self: start;
  border-radius: 6px;
  overflow: hidden;
  background: var(--soft);
  border: 1px solid var(--line);
}

.home-collection-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.home-collection-panel {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 18px;
  align-content: center;
}

.home-collection-panel h2 {
  margin: 0;
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 0.98;
  letter-spacing: 0;
}

.home-collection-description {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.home-collection-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.home-collection-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8f8f8;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.home-collection-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.story-copy {
  display: grid;
  gap: 16px;
  max-width: 540px;
}

.story-copy h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 76px);
  font-weight: 700;
  line-height: 0.88;
  text-transform: uppercase;
}

.story-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.category-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(210px, 1fr);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.category-pill {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 170px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--charcoal);
  color: #fff;
}

.category-pill img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-pill::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.68));
}

.category-pill span {
  position: relative;
  z-index: 1;
  padding: 14px;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
}

.drop-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: clamp(380px, 52vh, 500px);
  background: var(--ink);
  color: #fff;
}

.drop-hero-media {
  min-height: clamp(260px, 38vh, 380px);
}

.drop-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.drop-hero-copy {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 36px;
}

.drop-hero-copy h1 {
  margin: 0;
  font-size: clamp(34px, 4.8vw, 70px);
  font-weight: 700;
  line-height: 0.88;
  text-transform: uppercase;
}

.drop-hero-compact {
  min-height: clamp(285px, 40vh, 390px);
  max-height: 390px;
  overflow: hidden;
}

.drop-hero-compact .drop-hero-media {
  min-height: 0;
  max-height: 390px;
}

.drop-hero-compact .drop-hero-copy {
  gap: 14px;
  padding: 26px 28px;
  align-content: center;
  background: linear-gradient(180deg, #141923 0%, #0f141e 100%);
}

.drop-hero-compact .drop-hero-copy h1 {
  font-size: clamp(26px, 3.4vw, 44px);
}

.drop-hero-compact .countdown {
  width: min(410px, 100%);
}

.drop-hero-compact .drop-hero-kicker {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.74);
}

.drop-hero-compact .drop-hero-title {
  margin: 0;
  line-height: 1.06;
  font-size: clamp(27px, 3.5vw, 46px);
  text-transform: none;
}

.drop-hero-compact .drop-hero-text {
  margin: 0;
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  line-height: 1.6;
}

.drop-hero-countdown {
  display: grid;
  gap: 8px;
}

.drop-hero-countdown-label {
  margin: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.66);
}

.drop-hero-compact .count-box {
  border-radius: 8px;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  padding: 11px 8px;
}

.drop-hero-compact .count-box strong {
  font-size: clamp(20px, 2.2vw, 30px);
}

.drop-hero-compact .count-box span {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.7);
}

.drop-hero-compact .drop-hero-cta {
  width: fit-content;
}

.bulk-order-section {
  background: linear-gradient(180deg, #fdfbf7 0%, #ffffff 28%);
}

.bulk-order-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 24px;
  align-items: start;
}

.bulk-products-column {
  display: grid;
  gap: 14px;
}

.bulk-products-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.bulk-products-head h2 {
  margin: 0;
  font-size: clamp(26px, 3.4vw, 42px);
  font-weight: 700;
  line-height: 1.04;
  text-transform: uppercase;
}

.bulk-products-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

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

.bulk-product-card {
  display: grid;
  grid-template-columns: 124px 1fr;
  min-height: 138px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.bulk-product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.bulk-product-media {
  display: block;
  background: #f4f1eb;
}

.bulk-product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bulk-product-meta {
  display: grid;
  gap: 9px;
  padding: 12px;
  align-content: start;
}

.bulk-product-meta h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.36;
}

.bulk-product-meta h3 a:hover {
  color: var(--accent);
}

.bulk-product-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}

.bulk-product-price {
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

.bulk-product-stock {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bulk-product-link {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 11px;
}

.bulk-video-column {
  position: relative;
}

.bulk-video-card {
  position: sticky;
  top: calc(var(--header-height) + 16px);
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.08);
}

.bulk-video-card h2 {
  margin: 0;
  font-size: clamp(24px, 2.7vw, 34px);
  line-height: 1.06;
  text-transform: uppercase;
}

.bulk-video-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.bulk-video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  background: radial-gradient(circle at 22% 18%, #2e3642 0%, #12151b 46%, #0a0c10 100%);
}

.bulk-video-frame::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(0, 0, 0, 0.28) 100%);
  content: "";
}

.bulk-video-player,
.bulk-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.bulk-video-player {
  z-index: 0;
  display: block;
  border: 0;
  object-fit: cover;
  background: #000;
}

.bulk-video-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bulk-video-player::-webkit-media-controls-panel {
  background: linear-gradient(180deg, rgba(15, 15, 15, 0.2) 0%, rgba(15, 15, 15, 0.66) 100%);
}

.bulk-video-player::-webkit-media-controls-play-button,
.bulk-video-player::-webkit-media-controls-mute-button,
.bulk-video-player::-webkit-media-controls-fullscreen-button {
  filter: saturate(1.25);
}

.bulk-video-frame iframe {
  z-index: 0;
  border: 0;
}

.bulk-video-points {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bulk-video-points li {
  position: relative;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.5;
}

.bulk-video-points li::before {
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.bulk-video-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.bulk-empty-state {
  margin: 0;
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 14px;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(70px, 1fr));
  gap: 8px;
  width: min(520px, 100%);
}

.count-box {
  padding: 14px 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  text-align: center;
}

.count-box strong {
  display: block;
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1;
}

.count-box span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

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

.lookbook-tile {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--soft);
}

.lookbook-tile.large {
  grid-column: span 7;
  min-height: 620px;
}

.lookbook-tile.medium {
  grid-column: span 5;
}

.lookbook-tile.small {
  grid-column: span 4;
}

.lookbook-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lookbook-caption {
  position: absolute;
  right: 18px;
  bottom: 16px;
  left: 18px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.48);
}

.lookbook-caption h2 {
  margin: 0;
  font-size: clamp(24px, 4vw, 54px);
  font-weight: 700;
  line-height: 0.9;
  text-transform: uppercase;
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.58fr);
  gap: 40px;
}

.product-gallery {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.product-main-image-wrap {
  position: relative;
  display: inline-flex;
  overflow: hidden;
  border-radius: 6px;
  background: var(--soft);
  max-width: 100%;
}

.product-main-image {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100svh - var(--header-height) - 70px);
  object-fit: contain;
  display: block;
  margin: 0 auto;
  transition: transform 280ms ease;
}

.product-main-image-wrap:hover .product-main-image {
  transform: scale(1.1);
}

.product-gallery-custom {
  display: grid;
  gap: 12px;
  align-content: start;
}

.product-gallery-custom .product-main-image-wrap {
  width: 100%;
}

.product-gallery-custom .product-main-image {
  width: 100%;
  max-width: 100%;
}

.product-gallery-custom .product-main-image-wrap:hover .product-main-image {
  transform: none;
}

.mockup-side-toggle {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.mockup-side-btn {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}

.mockup-side-btn.active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.mockup-side-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.mockup-stage {
  position: relative;
  width: 100%;
  outline: none;
}

.mockup-stage:focus-visible {
  box-shadow: 0 0 0 2px rgba(16, 16, 16, 0.3);
}

.design-overlay-image {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(42%, 320px);
  max-width: 82%;
  transform: translate(-50%, -50%);
  cursor: grab;
  user-select: none;
  touch-action: none;
  z-index: 2;
}

.design-overlay-image.is-hidden {
  display: none;
}

.design-overlay-image.is-dragging {
  cursor: grabbing;
}

.design-toolbar {
  display: grid;
  gap: 10px;
}

.design-toolbar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.design-toolbar-row-actions .btn {
  min-height: 36px;
  padding-right: 14px;
  padding-left: 14px;
}

.design-upload-btn {
  position: relative;
  overflow: hidden;
}

.design-upload-btn input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.design-scale-control {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.design-stepper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.design-stepper button {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.design-stepper button:hover {
  border-color: var(--ink);
}

.design-stepper input[type="range"] {
  width: 160px;
}

.design-scale-control strong,
.design-rotate-control strong {
  min-width: 52px;
  color: var(--ink);
  font-size: 12px;
  text-align: right;
}

.design-rotate-control {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.design-rotate-control input[type="range"] {
  width: 140px;
}

.design-hint {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 1024px) {
  .product-layout {
    grid-template-columns: 1fr;
  }
}

.product-info {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  align-self: start;
  display: grid;
  gap: 18px;
}

.product-info .price {
  font-size: 20px;
}

.product-price-wrap {
  display: inline-flex;
  align-items: center;
}

.product-info .campaign-hint {
  margin-top: -8px;
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0;
}

.option-group {
  display: grid;
  gap: 10px;
}

.option-label {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.required-asterisk {
  color: #e74c3c;
  margin-left: 4px;
}

.size-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.size-btn,
.color-btn {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.size-btn.active,
.color-btn.active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.color-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.color-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
}

.variant-inputs-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.variant-input-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.variant-input-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}

.variant-type-select,
.variant-text-input,
.variant-file-input,
.variant-date-input {
  width: 100%;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
}

.variant-type-select {
  margin-bottom: 8px;
  cursor: pointer;
}

.variant-text-input:focus,
.variant-file-input:focus,
.variant-date-input:focus,
.variant-type-select:focus {
  outline: none;
  border-color: var(--ink);
}

.variant-text-input.variant-input-error,
.variant-file-input.variant-input-error,
.variant-date-input {
  cursor: pointer;
  position: relative;
}

.variant-date-input:hover {
  border-color: var(--ink);
}

.variant-date-input.variant-input-error {
  border-color: #e74c3c;
  background: #fee;
  cursor: pointer;
}

.form-hint {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

.color-dot {
  width: 14px;
  height: 14px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  background: var(--swatch);
}

.accordion {
  border-top: 1px solid var(--line);
}

.accordion details {
  border-bottom: 1px solid var(--line);
}

.accordion summary {
  padding: 16px 0;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}

.accordion p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
}

.rating-display {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 2px 0 4px;
  font-size: 13px;
}

.rating-display .stars {
  color: #f59e0b;
  letter-spacing: 2px;
}

.rating-display .rating-score {
  font-weight: 700;
  color: var(--ink);
}

.rating-display .review-count {
  color: var(--muted);
  font-size: 13px;
}

.product-reviews-section {
  margin-top: 46px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.reviews-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.reviews-head h2 {
  margin: 0;
}

.reviews-count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #f8f8f8;
  color: #5f6671;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.reviews-container {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 320px);
  gap: 12px;
  margin-top: 16px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x proximity;
}

.reviews-container > * {
  scroll-snap-align: start;
}

.reviews-empty {
  min-width: min(420px, 100%);
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  font-size: 13px;
  background: #fff;
}

.review-item {
  display: grid;
  gap: 10px;
  min-height: 140px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, #fff 0%, #fcfcfc 100%);
  box-shadow: 0 6px 16px rgba(17, 24, 39, 0.04);
}

.review-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.review-author {
  display: grid;
  gap: 2px;
}

.review-top strong {
  font-size: 13px;
  line-height: 1.2;
}

.review-top span {
  color: var(--muted);
  font-size: 11px;
}

.review-stars {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #f59e0b;
  font-size: 12px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.review-stars small {
  color: var(--muted);
  letter-spacing: 0;
  font-size: 11px;
}

.review-body {
  display: grid;
  gap: 10px;
}

.review-item.has-media .review-body {
  grid-template-columns: minmax(0, 1fr) 64px;
  align-items: start;
}

.review-comment {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
  display: -webkit-box;
  line-clamp: 4;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.review-item-image-link {
  display: inline-flex;
  width: 64px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.review-item-image {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
}

@media (max-width: 700px) {
  .product-reviews-section {
    margin-top: 38px;
    padding: 22px 0;
  }

  .reviews-container {
    grid-auto-columns: minmax(235px, 82vw);
    gap: 10px;
    margin-top: 14px;
  }

  .review-item {
    min-height: 128px;
    padding: 11px;
  }

  .reviews-count-pill {
    min-height: 28px;
    padding: 0 10px;
    font-size: 11px;
  }
}

.cart-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 36px;
  align-items: start;
}

.cart-list {
  display: grid;
  gap: 14px;
}

.cart-item {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 16px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.cart-item img {
  width: 110px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 6px;
}

.cart-item h3 {
  margin: 0;
  font-size: 15px;
}

.cart-item p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.qty {
  display: inline-grid;
  grid-template-columns: 34px 38px 34px;
  align-items: center;
  min-height: 34px;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.qty button {
  height: 34px;
  border: 0;
  background: transparent;
  font-weight: 700;
  cursor: pointer;
}

.qty span {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
}

.cart-summary {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
}

.checkout-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 28px;
  align-items: start;
}

.checkout-main {
  display: grid;
  gap: 14px;
}

.checkout-form {
  display: grid;
  gap: 14px;
}

.checkout-block {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.checkout-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.checkout-auth-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.checkout-auth-actions .btn {
  min-height: 34px;
  padding: 0 12px;
  white-space: nowrap;
}

.checkout-auth-actions small {
  color: var(--muted);
  font-size: 12px;
}

.checkout-block h2,
.checkout-summary h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.checkout-grid {
  display: grid;
  gap: 10px;
}

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

.checkout-grid.one {
  grid-template-columns: minmax(0, 1fr);
}

.checkout-field {
  display: grid;
  gap: 6px;
}

.checkout-field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.checkout-field input,
.checkout-field textarea,
.checkout-field select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
}

.checkout-field textarea {
  min-height: 90px;
  resize: vertical;
}

.checkout-field input:focus,
.checkout-field textarea:focus,
.checkout-field select:focus {
  border-color: var(--ink);
  outline: none;
}

.checkout-address-picker {
  margin-bottom: 2px;
}

.checkout-option {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}

.checkout-option.active {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px rgba(16, 16, 16, 0.22);
}

.checkout-option input {
  margin: 0;
}

.checkout-option strong {
  display: block;
  font-size: 13px;
}

.checkout-option p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.checkout-option > span {
  font-size: 13px;
  font-weight: 700;
}

.checkout-shipping-options,
.checkout-payment-options {
  display: grid;
  gap: 8px;
}

.checkout-card-note {
  margin-top: 10px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 12px;
}

.checkout-card-demo-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.checkout-card-note[hidden] {
  display: none !important;
}

.checkout-card-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1080;
  background: rgba(15, 23, 42, 0.56);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.checkout-card-modal-backdrop:not([hidden]) {
  opacity: 1;
}

.checkout-card-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 1081;
  width: min(620px, calc(100vw - 24px));
  max-height: calc(100vh - 28px);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 30px 70px rgba(2, 6, 23, 0.35);
  opacity: 0;
  transform: translate(-50%, -46%) scale(0.96);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.checkout-card-modal:not([hidden]) {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.checkout-card-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 10px;
}

.checkout-card-modal-head h3 {
  margin: 0;
  font-size: 21px;
}

.checkout-card-modal-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.checkout-card-preview-wrap {
  padding: 2px 18px 0;
  perspective: 1100px;
}

.checkout-card-preview {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 220px;
  margin: 0 auto;
  transform-style: preserve-3d;
  transition: transform 0.56s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.checkout-card-preview.is-flipped {
  transform: rotateY(180deg);
}

.checkout-card-face {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: space-between;
  gap: 14px;
  padding: 18px;
  border-radius: 12px;
  backface-visibility: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 80% 0%, rgba(255, 255, 255, 0.34), transparent 36%),
    linear-gradient(136deg, #111827 0%, #1f2937 43%, #3b0a16 100%);
}

.checkout-card-face.is-back {
  transform: rotateY(180deg);
}

.checkout-card-chip {
  width: 46px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(145deg, #f8fafc, #cbd5e1);
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.checkout-card-number {
  margin-top: 26px;
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.checkout-card-meta {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.checkout-card-meta small,
.checkout-card-cvc-box small {
  display: block;
  margin-bottom: 4px;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.76);
  text-transform: uppercase;
}

.checkout-card-meta strong,
.checkout-card-cvc-box strong {
  font-size: 14px;
  letter-spacing: 0.04em;
}

.checkout-card-stripe {
  margin-top: 18px;
  height: 38px;
  border-radius: 4px;
  background: rgba(2, 6, 23, 0.82);
}

.checkout-card-cvc-box {
  justify-self: end;
  width: 150px;
  margin-top: 34px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  text-align: right;
}

.checkout-card-form {
  display: grid;
  gap: 10px;
  padding: 14px 18px 0;
}

.checkout-card-modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 18px 18px;
}

body.checkout-card-modal-open {
  overflow: hidden;
}

.checkout-card-modal[hidden],
.checkout-card-modal-backdrop[hidden] {
  display: none !important;
}

.checkout-check {
  display: flex;
  align-items: start;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.checkout-check input {
  margin-top: 2px;
}

.checkout-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.checkout-summary {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.checkout-summary-lines {
  display: grid;
  gap: 10px;
}

.checkout-line-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.checkout-line-item:last-child {
  border-bottom: 0;
}

.checkout-line-item img {
  width: 72px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 5px;
}

.checkout-line-item h3 {
  margin: 0;
  font-size: 13px;
}

.checkout-line-item p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.checkout-line-item small {
  color: var(--muted);
  font-size: 11px;
}

.checkout-line-item strong {
  font-size: 13px;
}

.checkout-coupon {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.checkout-coupon input {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 13px;
}

.checkout-coupon .btn {
  min-height: 40px;
  padding-right: 14px;
  padding-left: 14px;
}

.checkout-coupon-applied {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #86efac;
  background: #f0fdf4;
  border-radius: 6px;
  padding: 8px 10px;
}

.checkout-coupon-applied span {
  font-size: 12px;
  color: #166534;
  font-weight: 600;
}

.checkout-coupon-clear {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 999px;
  background: rgba(22, 101, 52, 0.14);
  color: #166534;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.checkout-coupon-clear:hover {
  background: rgba(22, 101, 52, 0.24);
}

.checkout-coupon-applied[hidden],
.checkout-coupon-message[hidden],
.checkout-campaign-row[hidden],
.checkout-discount-row[hidden] {
  display: none !important;
}

.checkout-coupon-message {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.checkout-coupon-message.is-success {
  color: #166534;
}

.checkout-coupon-message.is-error {
  color: #b91c1c;
}

.checkout-totals {
  display: grid;
  gap: 8px;
}

.checkout-discount-row {
  color: #166534;
}

.checkout-campaign-row {
  color: #166534;
}

.checkout-safe-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.checkout-empty {
  display: grid;
  gap: 10px;
  justify-items: start;
  max-width: 560px;
}

.checkout-empty h1 {
  margin: 0;
}

.checkout-empty p {
  margin: 0;
  color: var(--muted);
}

.checkout-success {
  display: grid;
  justify-items: center;
  gap: 14px;
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 42px 26px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  text-align: center;
}

.checkout-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 999px;
  background: #ecfdf3;
  color: #15803d;
}

.checkout-success-icon svg {
  width: 32px;
  height: 32px;
  stroke-width: 2.4;
}

.checkout-success h1 {
  margin: 0;
  font-size: clamp(26px, 4vw, 42px);
}

.checkout-success-text {
  margin: 0;
  max-width: 520px;
  color: var(--muted);
}

.checkout-success-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  gap: 10px;
}

.checkout-success-meta > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 10px;
  background: #f8fafc;
  display: grid;
  gap: 4px;
}

.checkout-success-meta span {
  color: var(--muted);
  font-size: 12px;
}

.checkout-success-meta strong {
  font-size: 15px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}

.summary-row.total {
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 20px;
  font-weight: 700;
}

.empty-state {
  display: grid;
  gap: 14px;
  justify-items: start;
  padding: 48px 0;
  color: var(--muted);
}

.account-section {
  padding-top: 30px;
}

.account-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.account-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  display: grid;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.account-sidebar-head {
  display: grid;
  gap: 4px;
}

.account-sidebar-head h1 {
  margin: 0;
  font-size: 26px;
}

.account-sidebar-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.account-nav {
  display: grid;
  gap: 8px;
}

.account-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  transition: all 0.2s ease;
}

.account-nav-link:hover {
  border-color: var(--ink);
}

.account-nav-link.active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.account-nav-logout-form {
  margin: 0;
}

.account-nav-logout {
  width: 100%;
  color: var(--accent);
  cursor: pointer;
}

.account-nav-logout:hover {
  border-color: var(--accent);
}

.account-content {
  display: grid;
  gap: 14px;
}

.account-alert {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
}

.account-alert.success {
  border-color: rgba(37, 99, 67, 0.3);
  background: rgba(37, 99, 67, 0.08);
  color: #21553a;
}

.account-alert.error {
  border-color: rgba(179, 31, 42, 0.3);
  background: rgba(179, 31, 42, 0.08);
  color: #8f1e28;
}

.account-panel {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.account-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.account-panel-head h2 {
  margin: 0;
  font-size: 24px;
}

.account-panel-head span {
  color: var(--muted);
  font-size: 13px;
}

.account-panel-head .btn {
  min-height: 40px;
  margin-left: auto;
}

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

.account-stat {
  display: grid;
  gap: 5px;
  min-height: 94px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
}

.account-stat span {
  color: var(--muted);
  font-size: 12px;
}

.account-stat strong {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.account-form {
  display: grid;
  gap: 12px;
}

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

.account-field {
  display: grid;
  gap: 6px;
}

.account-field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.account-field input,
.account-field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
}

.account-field input:focus,
.account-field textarea:focus {
  border-color: var(--ink);
  outline: none;
}

.account-actions {
  display: flex;
  justify-content: flex-start;
}

.account-address-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.account-address-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.account-address-top {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
}

.account-address-top strong {
  font-size: 14px;
}

.account-address-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.account-address-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.account-address-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 2px;
}

.account-address-actions .btn {
  min-height: 36px;
  padding: 0 12px;
}

.account-address-actions form {
  margin: 0;
}

.account-danger {
  color: var(--accent);
  border-color: rgba(179, 31, 42, 0.28);
}

.account-danger:hover {
  border-color: var(--accent);
  background: rgba(179, 31, 42, 0.08);
}

.account-empty {
  display: grid;
  gap: 12px;
  justify-items: start;
  padding: 20px;
  border: 1px dashed var(--line);
  border-radius: 6px;
  color: var(--muted);
}

.account-orders-panel {
  gap: 16px;
}

.account-orders-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.account-orders-head > div {
  display: grid;
  gap: 4px;
}

.account-orders-head .btn {
  margin-left: auto;
}

.account-orders-list {
  display: grid;
  gap: 14px;
}

.account-orders-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 14px;
  display: grid;
  gap: 12px;
}

.account-orders-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.account-orders-no {
  display: grid;
  gap: 3px;
}

.account-orders-no strong {
  font-size: 14px;
  color: var(--text);
}

.account-orders-no p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.account-order-status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fafc;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.account-orders-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.account-orders-stat {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  padding: 10px;
  display: grid;
  gap: 3px;
}

.account-orders-stat span {
  font-size: 11px;
  color: var(--text-muted);
}

.account-orders-stat strong {
  font-size: 12px;
  color: var(--text);
  line-height: 1.4;
}

.account-orders-preview {
  display: grid;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.account-orders-preview-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  padding: 8px;
}

.account-orders-preview-media {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--line);
}

.account-orders-preview-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.placeholder-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.placeholder-image svg {
  width: 22px;
  height: 22px;
}

.account-orders-preview-main {
  min-width: 0;
}

.account-orders-preview-main h4 {
  margin: 0 0 3px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-orders-preview-main p {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-orders-preview-meta {
  display: grid;
  gap: 2px;
  justify-items: end;
}

.account-orders-preview-meta span {
  font-size: 11px;
  color: var(--text-muted);
}

.account-orders-preview-meta strong {
  font-size: 13px;
  color: var(--text);
}

.account-orders-preview-more {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}

.account-orders-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.order-detail-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1040;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.order-detail-modal-backdrop:not([hidden]) {
  opacity: 1;
  visibility: visible;
}

.order-detail-modal.account-orders-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  z-index: 1050;
  width: min(1080px, calc(100vw - 26px));
  max-width: 1080px;
  max-height: 86vh;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.24s ease, opacity 0.24s ease, visibility 0.24s ease;
  overflow: hidden;
}

.order-detail-modal.account-orders-modal:not([hidden]) {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

body.order-detail-modal-open {
  overflow: hidden;
}

body.account-review-modal-open {
  overflow: hidden;
}

.account-orders-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.account-orders-modal-header h3 {
  margin: 0;
  font-size: 16px;
  color: var(--text);
}

.account-orders-modal-header p {
  margin: 3px 0 0;
  font-size: 12px;
  color: var(--text-muted);
}

.account-orders-modal-meta {
  margin-top: 6px !important;
}

.order-detail-modal-content {
  padding: 16px 18px 18px;
  overflow-y: auto;
  max-height: calc(86vh - 78px);
  display: grid;
  gap: 14px;
  background: var(--bg);
}

.account-review-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  z-index: 1050;
  width: min(560px, calc(100vw - 26px));
  max-height: 86vh;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.24s ease, opacity 0.24s ease, visibility 0.24s ease;
  overflow: hidden;
}

.account-review-modal:not([hidden]) {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.account-review-form {
  display: grid;
  gap: 12px;
}

.account-review-stars {
  display: flex;
  align-items: center;
  gap: 6px;
}

.account-review-star {
  border: none;
  background: transparent;
  color: #d1d5db;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.account-review-star.is-active {
  color: #f59e0b;
}

.account-review-star-label {
  font-size: 12px;
  color: var(--text-muted);
}

.account-review-hint {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}

.account-order-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.account-order-detail-card {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  padding: 11px;
  display: grid;
  gap: 6px;
}

.account-order-detail-card h4 {
  margin: 0;
  font-size: 13px;
  color: var(--text);
}

.account-order-detail-card p {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
}

.account-order-detail-card strong {
  color: var(--text);
}

.account-order-detail-items-wrap {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  padding: 11px;
  display: grid;
  gap: 10px;
}

.account-order-detail-items-wrap h4 {
  margin: 0;
  font-size: 13px;
  color: var(--text);
}

.account-order-detail-items {
  display: grid;
  gap: 8px;
}

.account-order-detail-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  padding: 8px;
}

.account-order-detail-media {
  width: 52px;
  height: 52px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--line);
}

.account-order-detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-order-detail-main {
  min-width: 0;
}

.account-order-detail-main h5 {
  margin: 0 0 3px;
  font-size: 13px;
  color: var(--text);
}

.account-order-detail-main p {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}

.account-order-detail-price {
  display: grid;
  gap: 2px;
  justify-items: end;
}

.account-order-detail-price span {
  font-size: 11px;
  color: var(--text-muted);
}

.account-order-detail-price strong {
  font-size: 13px;
  color: var(--text);
}

@media (max-width: 900px) {
  .account-orders-summary,
  .account-order-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .account-orders-head {
    flex-direction: column;
    align-items: stretch;
  }

  .account-orders-head .btn {
    width: 100%;
  }

  .account-orders-preview-item,
  .account-order-detail-item {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .account-orders-preview-meta,
  .account-order-detail-price {
    grid-column: 2;
    justify-items: start;
  }

  .order-detail-modal.account-orders-modal {
    width: calc(100vw - 16px);
    max-height: 90vh;
  }

  .order-detail-modal-content {
    max-height: calc(90vh - 74px);
    padding: 14px;
  }
}

.account-address-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1020;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.account-address-modal-backdrop.show {
  opacity: 1;
  visibility: visible;
}

.account-address-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 1021;
  width: min(760px, calc(100vw - 28px));
  max-height: calc(100vh - 38px);
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  opacity: 0;
  visibility: hidden;
  overflow-y: auto;
  transform: translate(-50%, -48%) scale(0.98);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.account-address-modal.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.account-address-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.account-address-modal-head h3 {
  margin: 0;
  font-size: 22px;
}

.account-address-modal-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.site-footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}

.site-footer::before {
  position: absolute;
  top: -180px;
  right: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(179, 31, 42, 0.28), transparent 66%);
  content: "";
  pointer-events: none;
}

.footer-service {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(1480px, calc(100% - 64px));
  margin: 0 auto;
  padding-top: 34px;
}

.footer-service div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
  align-items: start;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.045);
}

.footer-service span {
  grid-row: span 2;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.footer-service strong {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.footer-service p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

.footer-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(0, 1.05fr);
  gap: 56px;
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: 54px 32px 38px;
}

.footer-brand {
  flex: 0 0 300px;
}

.footer-brand-content {
  margin-bottom: 24px;
}

.footer-kicker {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.footer-brand-content strong {
  display: block;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}

.footer-brand-content p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.footer-link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  align-self: start;
}

.footer-col a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--accent);
  transform: translateX(4px);
}

.footer-col h3 {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.newsletter {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  max-width: 520px;
  margin-top: 8px;
}

.newsletter label {
  grid-column: 1 / -1;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.newsletter input {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  outline: 0;
}

.newsletter input:focus {
  border-color: rgba(255, 255, 255, 0.58);
}

.newsletter .btn {
  border-color: #fff;
  background: #fff;
  color: var(--ink);
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
  min-height: 44px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer-social a:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

.footer-social a svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.footer-bottom {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 18px;
  width: min(1480px, calc(100% - 64px));
  margin: 0 auto;
  padding: 24px 32px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-bottom-links a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
  color: var(--accent);
}

.payment-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.payment-methods svg {
  height: 20px;
  width: auto;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.payment-methods svg:hover {
  opacity: 1;
}

.mini-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  align-items: center;
}

.mini-card img {
  width: 72px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 5px;
}

.mini-card h3 {
  margin: 0;
  font-size: 12px;
}

.mini-card p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 110;
  max-width: min(360px, calc(100vw - 36px));
  padding: 13px 16px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .desktop-nav {
    display: none;
  }

  .header-bulk-link {
    display: none;
  }

  .mobile-toggle {
    display: inline-flex;
  }

  .header-inner {
    grid-template-columns: auto 1fr auto;
    padding: 0 18px;
  }

  .brand {
    justify-self: center;
  }

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

  .product-carousel .product-card {
    flex-basis: calc((100% - 28px) / 3);
    width: calc((100% - 28px) / 3);
  }

  .story-band,
  .story-band.reverse,
  .drop-hero,
  .product-layout,
  .cart-page,
  .checkout-page {
    grid-template-columns: 1fr;
  }

  .product-info,
  .cart-summary,
  .checkout-summary,
  .account-sidebar {
    position: static;
  }

  .account-layout {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .footer-service {
    grid-template-columns: 1fr;
  }

  .footer-link-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .bulk-order-layout {
    grid-template-columns: 1fr;
  }

  .bulk-video-card {
    position: static;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 86px;
  }

  .announcement {
    min-height: 30px;
    font-size: 10px;
  }

  .brand {
    font-size: 20px;
  }

  .brand span {
    font-size: 8px;
  }

  .brand-logo {
    width: 126px;
    max-height: 34px;
  }

  .header-actions .account-link {
    display: none;
  }

  .search-drawer {
    padding: 18px;
  }

  .search-input {
    font-size: 20px;
  }

  .search-results,
  .product-grid,
  .category-tiles,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-service,
  .footer-bottom {
    width: calc(100% - 32px);
  }

  .footer-link-grid {
    grid-template-columns: 1fr 1fr;
  }

  .product-carousel .product-card {
    flex-basis: calc((100% - 14px) / 2);
    width: calc((100% - 14px) / 2);
  }

  .hero-slider {
    width: 100%;
    margin: 0;
    aspect-ratio: auto;
    max-height: none;
  }

  .hero {
    min-height: 0;
    height: clamp(360px, 68vh, 560px);
    height: clamp(360px, 68svh, 560px);
  }

  .hero-slide {
    background-position: center 22%;
  }

  .hero-content {
    width: min(560px, calc(100% - 24px));
    gap: 10px;
    padding: 0 8px 72px;
  }

  .hero h1 {
    font-size: clamp(32px, 10.5vw, 52px);
    line-height: 0.95;
  }

  .hero p {
    max-width: 92%;
    font-size: 14px;
    line-height: 1.45;
  }

  .slider-arrow {
    display: none;
  }

  .slider-dots {
    bottom: 20px;
    gap: 7px;
  }

  .slider-dot {
    width: 28px;
  }

  .section {
    padding: 44px 16px;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .collection-toolbar {
    align-items: center;
    flex-direction: row;
  }

  .category-tile {
    min-height: 480px;
  }

  .campaign-copy {
    width: min(520px, calc(100% - 28px));
    margin: 0 14px 18px;
  }

  .campaign-banner {
    min-height: clamp(200px, 44vw, 300px);
  }

  .story-image,
  .lookbook-tile.large,
  .lookbook-tile.medium,
  .lookbook-tile.small,
  .lookbook-tile {
    grid-column: 1 / -1;
    min-height: 440px;
  }

  .home-collection-band {
    gap: 14px;
  }

  .home-collection-media {
    width: 100%;
    max-width: 677px;
    min-height: 0;
  }

  .home-collection-panel {
    padding: 16px;
    gap: 10px;
  }

  .home-collection-panel h2 {
    font-size: clamp(24px, 8vw, 32px);
  }

  .home-collection-description {
    font-size: 14px;
    line-height: 1.45;
  }

  .home-collection-meta span {
    min-height: 28px;
    padding: 0 10px;
    font-size: 10px;
  }

  .drop-hero-copy {
    padding: 34px 18px;
  }

  .drop-hero {
    min-height: 0;
  }

  .drop-hero-media {
    min-height: 240px;
  }

  .drop-hero-compact .drop-hero-copy {
    padding: 22px 16px;
  }

  .drop-hero-compact .drop-hero-copy h1 {
    font-size: clamp(22px, 7.4vw, 32px);
  }

  .drop-hero-compact .drop-hero-media {
    max-height: 200px;
  }

  .drop-hero-compact .drop-hero-text {
    font-size: 14px;
    line-height: 1.5;
  }

  .drop-hero-compact .drop-hero-countdown {
    gap: 6px;
  }

  .bulk-order-hero {
    padding: 34px 16px 38px;
  }

  .bulk-order-hero h1 {
    font-size: clamp(28px, 8.8vw, 42px);
  }

  .bulk-products-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .bulk-products-grid {
    grid-template-columns: 1fr;
  }

  .bulk-product-card {
    grid-template-columns: 108px 1fr;
    min-height: 126px;
  }

  .bulk-video-card {
    padding: 16px;
  }

  .cart-item {
    grid-template-columns: 88px 1fr;
  }

  .cart-item img {
    width: 88px;
  }

  .cart-price {
    grid-column: 2;
  }

  .newsletter {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .checkout-grid.two {
    grid-template-columns: 1fr;
  }

  .checkout-success {
    padding: 26px 16px;
  }

  .checkout-success-meta {
    grid-template-columns: 1fr;
  }

  .checkout-card-modal {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
  }

  .checkout-card-modal-head h3 {
    font-size: 18px;
  }

  .checkout-card-preview {
    height: 200px;
  }

  .checkout-card-number {
    margin-top: 18px;
    font-size: 20px;
  }

  .checkout-card-modal-actions {
    flex-wrap: wrap;
  }

  .checkout-card-modal-actions .btn {
    flex: 1 1 calc(50% - 5px);
  }

  .checkout-auth-actions {
    width: 100%;
    justify-content: space-between;
  }

  .checkout-auth-actions small {
    text-align: right;
  }

  .account-stats,
  .account-address-list,
  .account-grid.two {
    grid-template-columns: 1fr;
  }

  .account-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-panel-head .btn {
    width: 100%;
    margin-left: 0;
  }

  .account-address-modal {
    width: calc(100vw - 22px);
    max-height: calc(100vh - 22px);
    padding: 16px;
  }

  .checkout-action-row {
    flex-wrap: wrap;
  }

  .checkout-action-row .btn {
    width: 100%;
  }

  .mockup-side-toggle {
    justify-content: flex-start;
  }

  .mockup-side-btn {
    flex: 1 1 auto;
    min-width: 120px;
  }

  .design-toolbar-row-actions .btn {
    flex: 1 1 calc(50% - 6px);
  }

  .design-scale-control,
  .design-rotate-control {
    width: 100%;
    justify-content: space-between;
  }

  .design-stepper {
    flex: 1 1 auto;
  }

  .design-stepper input[type="range"] {
    width: 100%;
  }

  .design-rotate-control input[type="range"] {
    flex: 1 1 auto;
    width: 100%;
  }

}

@media (max-width: 480px) {
  .hero {
    height: clamp(320px, 62vh, 480px);
    height: clamp(320px, 62svh, 480px);
  }

  .hero-slide {
    background-position: center 18%;
  }

  .hero-content {
    padding-bottom: 62px;
  }

  .hero h1 {
    font-size: clamp(24px, 10vw, 36px);
  }

  .hero p {
    font-size: 12px;
    line-height: 1.35;
  }

  .slider-dots {
    bottom: 14px;
  }

  .slider-dot {
    width: 22px;
  }
}

@media (max-width: 520px) {
  .header-inner {
    gap: 10px;
  }

  .icon-btn {
    width: 34px;
    height: 34px;
  }

  .search-results,
  .product-grid,
  .category-tiles,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    padding-right: 16px;
    padding-left: 16px;
  }

  .footer-link-grid {
    grid-template-columns: 1fr;
  }

  .product-carousel .product-card {
    flex-basis: 100%;
    width: 100%;
  }

  .product-carousel-prev {
    left: 10px;
  }

  .product-carousel-next {
    right: 10px;
  }

  .category-tile {
    min-height: 390px;
  }

  .account-sidebar,
  .account-panel {
    padding: 16px;
  }

  .account-address-modal-head h3 {
    font-size: 20px;
  }

  .checkout-line-item {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .checkout-line-item strong {
    grid-column: 2;
    justify-self: start;
  }

  .checkout-coupon {
    grid-template-columns: 1fr;
  }

  .size-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .bulk-product-card {
    grid-template-columns: 96px 1fr;
  }

  .bulk-product-link {
    padding: 0 10px;
    font-size: 10px;
  }

  .design-toolbar-row-actions .btn {
    flex-basis: 100%;
  }

  .design-scale-control,
  .design-rotate-control {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .design-scale-control strong,
  .design-rotate-control strong {
    min-width: 0;
    text-align: left;
  }
}

/* Login Modal */
.login-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

body.login-open .login-modal-backdrop {
  opacity: 1;
  visibility: visible;
}

.login-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  background: var(--paper);
  border-radius: 16px;
  padding: 32px;
  width: 100%;
  max-width: 480px;
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  box-shadow: var(--shadow);
}

body.login-open .login-modal {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.login-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.login-modal-brand {
  flex: 1;
}

.login-modal-brand .brand {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}

.login-modal-header h2 {
  margin: 8px 0 0;
  font-size: 24px;
  font-weight: 600;
}

.login-modal-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--line);
}

.login-tab {
  flex: 1;
  padding: 12px;
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s ease;
  position: relative;
}

.login-tab.active {
  color: var(--ink);
}

.login-tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
}

.login-modal-content {
  margin-bottom: 24px;
}

.auth-alert {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
}

.auth-alert-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.auth-alert-success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}

.form-group input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.2s ease;
}

.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--muted);
  pointer-events: none;
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group input:focus + .input-icon {
  color: var(--accent);
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: var(--muted);
  transition: color 0.2s ease;
}

.password-toggle:hover {
  color: var(--ink);
}

.password-toggle svg {
  width: 20px;
  height: 20px;
}

.password-toggle .hidden {
  display: none;
}

.form-actions {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 16px;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  cursor: pointer;
}

.checkbox input {
  width: auto;
  padding: 0;
}

.checkbox a {
  color: var(--accent);
  text-decoration: underline;
}

.hidden {
  display: none;
}

@media (max-width: 520px) {
  .login-modal {
    padding: 24px;
    max-width: calc(100% - 32px);
  }

  .login-modal-header h2 {
    font-size: 20px;
  }
}

/* Terms Modal */
.terms-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

body.terms-open .terms-modal-backdrop {
  opacity: 1;
  visibility: visible;
}

.terms-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  background: var(--paper);
  border-radius: 16px;
  padding: 32px;
  width: 100%;
  max-width: 600px;
  max-height: 80vh;
  z-index: 1101;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  box-shadow: var(--shadow);
  overflow-y: auto;
}

body.terms-open .terms-modal {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.terms-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.terms-modal-header h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
}

.terms-modal-content {
  margin-bottom: 24px;
}

.terms-text {
  line-height: 1.6;
}

.terms-text p {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--ink);
}

.terms-text h3 {
  margin: 24px 0 12px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.terms-text h3:first-child {
  margin-top: 0;
}

.terms-text p {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--muted);
}

.terms-text ul {
  margin: 0 0 12px;
  padding-left: 20px;
}

.terms-text li {
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--muted);
}

.terms-modal-footer {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

@media (max-width: 520px) {
  .terms-modal {
    padding: 24px;
    max-width: calc(100% - 32px);
    max-height: 90vh;
  }

  .terms-modal-header h2 {
    font-size: 20px;
  }

  .footer-bottom {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .footer-bottom-links {
    justify-content: center;
  }

  .payment-methods {
    justify-content: center;
  }
}
