/* Catalog listing & product detail pages */

html {
  scroll-behavior: smooth;
}

.catalog-section {
  scroll-margin-top: 16rem;
}

.dept-page-bleed {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* Department toolbar: category nav + search */
.dept-toolbar {
  position: sticky;
  top: 0;
  z-index: 95;
  background: #fff;
  border-bottom: 0.1rem solid var(--color-border);
}

.dept-toolbar__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 28rem);
  align-items: center;
  gap: 2.4rem;
  min-height: 5.6rem;
}

.dept-search .search-form__field {
  width: 100%;
}

/* Department sub-navigation + mega menu */
.dept-nav {
  position: relative;
  min-width: 0;
}

.dept-nav__bar {
  position: relative;
}

.dept-nav__scroll {
  overflow-x: auto;
  scrollbar-width: none;
}

.dept-nav__scroll::-webkit-scrollbar {
  display: none;
}

.dept-nav__list {
  display: flex;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  min-width: max-content;
}

.dept-nav__item {
  position: static;
}

.dept-nav__trigger {
  display: block;
  padding: 1.8rem 1.2rem;
  border: 0;
  background: none;
  color: var(--color-text);
  font: inherit;
  font-size: 1.4rem;
  white-space: nowrap;
  cursor: pointer;
}

.dept-nav__trigger--sale {
  color: #c41429;
  font-weight: 700;
}

.dept-nav__trigger:hover,
.dept-nav__item.is-open .dept-nav__trigger {
  font-weight: 700;
}

.dept-nav__mega {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 100;
  display: none;
  visibility: hidden;
  overflow: hidden;
  background: #fff;
  border-bottom: 0.1rem solid var(--color-border);
  box-shadow: 0 1.2rem 3.2rem rgba(0, 0, 0, 0.08);
}

.dept-nav__mega[hidden] {
  display: none !important;
  visibility: hidden !important;
}

.dept-nav__item.is-open .dept-nav__mega:not([hidden]) {
  display: block;
  visibility: visible;
  overflow: visible;
}

@media (hover: hover) and (pointer: fine) {
  .dept-nav__item:hover .dept-nav__mega:not([hidden]) {
    display: block;
    visibility: visible;
    overflow: visible;
  }
}

.dept-nav__link {
  display: block;
  font-size: 1.5rem;
  line-height: 1.4;
}

.dept-nav__mega-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(22rem, 28rem);
  gap: 3.2rem;
  padding: 3.2rem 0 4.8rem;
}

.dept-nav__columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(18rem, 1fr));
  gap: 2.4rem 4.8rem;
}

.dept-nav__column {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.dept-nav__column--editorial .dept-nav__link:nth-child(-n + 6) {
  font-weight: 500;
}

.dept-nav__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem 2.4rem;
  align-content: start;
}

.dept-nav__link:hover {
  text-decoration: underline;
}

.dept-nav__featured {
  position: relative;
  display: block;
  overflow: hidden;
  color: #fff;
}

.dept-nav__featured img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 400ms ease;
}

.dept-nav__featured:hover img {
  transform: scale(1.03);
}

.dept-nav__featured-label,
.dept-nav__featured-cta {
  position: absolute;
  left: 1.6rem;
  right: 1.6rem;
}

.dept-nav__featured-label {
  bottom: 4.8rem;
  font-size: 2rem;
  font-weight: 400;
}

.dept-nav__featured-cta {
  bottom: 1.6rem;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: underline;
}

.dept-spotlight-wrap {
  margin-top: 2.4rem;
}

/* Split editorial hero (Farfetch-style) — same width as product grid */
.dept-spotlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: min(48vh, 52rem);
  border: 0.1rem solid var(--color-border);
  background: #fff;
  overflow: hidden;
}

.dept-spotlight__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
  padding: 4.8rem 6.4rem;
}

.dept-spotlight__title {
  margin: 0;
  font-size: clamp(3.2rem, 4.5vw, 5.6rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.dept-spotlight__text {
  margin: 0;
  max-width: 42rem;
  color: var(--color-muted);
  font-size: 1.6rem;
  line-height: 1.6;
}

.dept-spotlight__cta {
  align-self: flex-start;
  padding: 1.2rem 2.4rem;
  border: 0.1rem solid var(--color-text);
  color: var(--color-text);
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background var(--transition), color var(--transition);
}

.dept-spotlight__cta:hover {
  background: var(--color-text);
  color: #fff;
}

.dept-spotlight__media {
  display: block;
  overflow: hidden;
  background: var(--color-card-bg);
}

.dept-spotlight__media img {
  width: 100%;
  height: 100%;
  min-height: min(48vh, 52rem);
  object-fit: cover;
}

/* Legacy carousel (unused) */
.dept-carousel {
  position: relative;
  margin-bottom: 2.4rem;
  background: #111;
}

.dept-carousel__track {
  position: relative;
  min-height: min(72vh, 72rem);
}

.dept-carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 700ms ease;
  pointer-events: none;
}

.dept-carousel__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.dept-carousel__link {
  display: block;
  height: 100%;
  color: #fff;
}

.dept-carousel__img {
  width: 100%;
  height: min(72vh, 72rem);
  object-fit: cover;
}

.dept-carousel__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 15%, rgba(0, 0, 0, 0.62) 100%);
}

.dept-carousel__content {
  padding: 4.8rem 0 6.4rem;
}

.dept-carousel__eyebrow {
  margin: 0 0 1.2rem;
  font-size: 1.6rem;
}

.dept-carousel__title {
  margin: 0 0 2.4rem;
  max-width: 72rem;
  font-size: clamp(3rem, 5vw, 6.4rem);
  font-weight: 400;
  line-height: 1.02;
}

.dept-carousel__cta {
  display: inline-block;
  padding: 1.2rem 2.4rem;
  border: 0.1rem solid #fff;
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dept-carousel__dots {
  position: absolute;
  right: 2.4rem;
  bottom: 2.4rem;
  display: flex;
  gap: 0.8rem;
}

.dept-carousel__dot {
  width: 0.8rem;
  height: 0.8rem;
  padding: 0;
  border: 0.1rem solid #fff;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.dept-carousel__dot.is-active {
  background: #fff;
}

/* Editorial banners */
.dept-editorial {
  margin-bottom: 4.8rem;
}

.dept-editorial__grid {
  display: grid;
  gap: 1.6rem;
}

.dept-editorial__item {
  position: relative;
  display: block;
  overflow: hidden;
  color: #fff;
}

.dept-editorial__media {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--color-card-bg);
}

.dept-editorial__item--wide .dept-editorial__media {
  aspect-ratio: 21 / 9;
}

.dept-editorial__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.dept-editorial__item:hover .dept-editorial__media img {
  transform: scale(1.03);
}

.dept-editorial__label,
.dept-editorial__cta {
  position: absolute;
  left: 2rem;
  right: 2rem;
}

.dept-editorial__label {
  bottom: 5.6rem;
  font-size: clamp(2rem, 2.5vw, 3.2rem);
  font-weight: 400;
  line-height: 1.1;
}

.dept-editorial__cta {
  bottom: 2rem;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: underline;
}

.dept-editorial__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.55) 100%);
  pointer-events: none;
}

.dept-products {
  padding-top: 1.6rem;
}

.dept-hero {
  position: relative;
  margin-bottom: 2.4rem;
}

.dept-hero__link {
  display: block;
  position: relative;
  color: #fff;
}

.dept-hero__img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.dept-hero__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 20%, rgba(0, 0, 0, 0.55) 100%);
}

.dept-hero__content {
  width: 100%;
  padding: 3.6rem 0 4.8rem;
}

.dept-hero__eyebrow {
  margin: 0 0 1.2rem;
  font-size: 1.5rem;
}

.dept-hero__title {
  margin: 0 0 2rem;
  max-width: 72rem;
  font-size: clamp(2.8rem, 4vw, 5.2rem);
  font-weight: 400;
  line-height: 1.05;
}

.dept-hero__cta {
  display: inline-block;
  padding: 1.2rem 2.4rem;
  border: 0.1rem solid #fff;
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dept-promos {
  margin-bottom: 4.8rem;
}

.dept-promos__grid {
  display: grid;
  gap: 1.6rem;
}

.dept-promo {
  display: block;
  color: var(--color-text);
}

.dept-promo__media {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--color-card-bg);
}

.dept-promo__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.dept-promo:hover .dept-promo__media img {
  transform: scale(1.03);
}

.dept-promo__label {
  display: block;
  margin-top: 1.2rem;
  font-size: clamp(1.8rem, 2vw, 2.4rem);
  font-weight: 400;
}

.dept-categories {
  margin-bottom: 4.8rem;
}

.dept-categories__title {
  margin: 0 0 2.4rem;
  font-size: clamp(2rem, 2.2vw, 2.8rem);
  font-weight: 400;
}

.dept-categories__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
}

.dept-category {
  display: block;
  color: var(--color-text);
}

.dept-category__media {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--color-card-bg);
}

.dept-category__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.dept-category:hover .dept-category__media img {
  transform: scale(1.03);
}

.dept-category__label {
  display: block;
  margin-top: 1.2rem;
  font-size: 1.5rem;
}

.catalog-hero {
  padding: 2.4rem 0 1.2rem;
  text-align: center;
}

.catalog-hero h1 {
  margin: 0 0 1.2rem;
  font-size: clamp(2.4rem, 3vw, 3.8rem);
  font-weight: 400;
  line-height: 1.1;
}

.catalog-hero p {
  margin: 0;
  color: var(--color-muted);
  font-size: 1.5rem;
}

.catalog-section {
  margin-top: 4.8rem;
}

.catalog-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  margin-bottom: 2.4rem;
}

.catalog-section__title {
  margin: 0;
  font-size: clamp(2rem, 2.2vw, 2.8rem);
  font-weight: 400;
}

.catalog-section__link {
  font-size: 1.3rem;
  text-decoration: underline;
  white-space: nowrap;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.4rem 1.6rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.product-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--color-card-bg);
}

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

.product-card:hover .product-card__media img {
  transform: scale(1.03);
}

.product-card__badge {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  padding: 0.4rem 0.8rem;
  background: var(--color-text);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
}

.product-card__brand {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
}

.product-card__name {
  margin: 0.4rem 0 0;
  color: var(--color-muted);
  font-size: 1.3rem;
  line-height: 1.4;
}

.product-card__prices {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.8rem;
  margin-top: 0.4rem;
}

.product-card__sale {
  font-size: 1.5rem;
  font-weight: 700;
}

.product-card__original {
  color: var(--color-muted);
  font-size: 1.3rem;
  text-decoration: line-through;
}

.product-card__discount {
  color: #c41429;
  font-size: 1.3rem;
  font-weight: 700;
}

.promo-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.4rem;
  border: 0.1rem solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-card-bg);
  transition: background var(--transition), border-color var(--transition);
}

.promo-block:hover {
  background: #fff;
  border-color: #ccc;
}

.promo-block__title {
  margin: 0;
  font-size: 2rem;
  font-weight: 400;
}

.promo-block__cta {
  font-size: 1.3rem;
  text-decoration: underline;
  white-space: nowrap;
}

/* Product detail */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 2.4rem 0;
  color: var(--color-muted);
  font-size: 1.3rem;
}

.breadcrumb a:hover {
  color: var(--color-text);
  text-decoration: underline;
}

.breadcrumb span[aria-current] {
  color: var(--color-text);
}

.pdp {
  display: grid;
  gap: 3.6rem;
  padding-bottom: 6rem;
}

.pdp__gallery {
  background: var(--color-card-bg);
}

.pdp__main img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.pdp__thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-top: 0.8rem;
}

.pdp__thumb {
  padding: 0;
  border: 0.2rem solid transparent;
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  overflow: hidden;
  transition: border-color var(--transition);
}

.pdp__thumb.is-active,
.pdp__thumb:hover {
  border-color: var(--color-text);
}

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

.pdp__gallery img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.pdp__badge {
  display: inline-block;
  margin-bottom: 1.6rem;
  padding: 0.6rem 1rem;
  background: var(--color-text);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
}

.pdp__brand {
  margin: 0 0 0.8rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.pdp__title {
  margin: 0 0 0.8rem;
  font-size: clamp(2rem, 2.5vw, 2.8rem);
  font-weight: 400;
  line-height: 1.2;
}

.pdp__subtitle {
  margin: 0 0 2rem;
  color: var(--color-muted);
  font-size: 1.6rem;
}

.pdp__meta {
  display: grid;
  gap: 0.8rem;
  margin: 0 0 2.4rem;
  padding: 1.6rem 0;
  border-top: 0.1rem solid var(--color-border);
  border-bottom: 0.1rem solid var(--color-border);
}

.pdp__meta div {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 1.2rem;
  font-size: 1.4rem;
}

.pdp__meta dt {
  margin: 0;
  color: var(--color-muted);
  font-weight: 400;
}

.pdp__meta dd {
  margin: 0;
}

.pdp__prices {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 1.2rem;
  margin-bottom: 2.4rem;
}

.pdp__sale {
  font-size: 2.4rem;
  font-weight: 700;
}

.pdp__original {
  color: var(--color-muted);
  font-size: 1.8rem;
  text-decoration: line-through;
}

.pdp__discount {
  color: #c41429;
  font-size: 1.5rem;
  font-weight: 700;
}

.pdp__sizes-label {
  margin: 0 0 1.2rem;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pdp__sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 2.4rem;
}

.size-btn {
  min-width: 4.8rem;
  min-height: 4.4rem;
  padding: 0.8rem 1.2rem;
  border: 0.1rem solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color var(--transition), background var(--transition);
}

.size-btn:hover {
  border-color: var(--color-text);
}

.size-btn.is-selected {
  border-color: var(--color-text);
  background: var(--color-text);
  color: #fff;
}

.pdp__description {
  margin: 2.4rem 0 0;
  padding-top: 2.4rem;
  border-top: 0.1rem solid var(--color-border);
  color: var(--color-text);
  line-height: 1.7;
}

.pdp__size-note {
  margin: -1.6rem 0 2.4rem;
  color: var(--color-muted);
  font-size: 1.3rem;
  line-height: 1.5;
}

.pdp__details {
  margin-top: 2.4rem;
  padding-top: 2.4rem;
  border-top: 0.1rem solid var(--color-border);
}

.pdp__detail + .pdp__detail {
  margin-top: 2.4rem;
  padding-top: 2.4rem;
  border-top: 0.1rem solid var(--color-border);
}

.pdp__detail h2 {
  margin: 0 0 1.2rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.pdp__detail p,
.pdp__detail li {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.6;
}

.pdp__detail ul {
  margin: 0;
  padding-left: 1.6rem;
}

.pdp__detail li + li {
  margin-top: 0.8rem;
}

.pdp__actions {
  display: grid;
  gap: 1.2rem;
}

.pdp__note {
  margin: 0;
  color: var(--color-muted);
  font-size: 1.3rem;
}

.header__nav-link[aria-current="page"] {
  font-weight: 700;
}

@media (max-width: 59.99em) {
  .dept-toolbar__inner {
    grid-template-columns: 1fr;
    gap: 0;
    padding-bottom: 1.2rem;
  }

  .dept-search {
    padding-bottom: 0.8rem;
  }

  .dept-spotlight {
    grid-template-columns: 1fr;
  }

  .dept-spotlight__copy {
    order: 1;
    padding: 3.2rem 2.4rem;
  }

  .dept-spotlight__media {
    order: 0;
  }

  .dept-spotlight__media img {
    min-height: 32rem;
  }
}

@media (min-width: 60em) {
  .dept-editorial__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dept-editorial__item--wide {
    grid-column: 1 / -1;
  }

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

  .dept-nav__columns {
    grid-template-columns: repeat(3, minmax(16rem, 1fr));
  }

  .dept-nav__mega-inner {
    grid-template-columns: minmax(0, 1fr) minmax(24rem, 30rem);
  }

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

  .pdp {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

@media (min-width: 80em) {
  .pdp__main img {
    aspect-ratio: 4 / 5;
  }
}

/* Shopping bag drawer */
.icon-btn {
  position: relative;
}

.icon-btn__badge {
  position: absolute;
  top: 0.2rem;
  right: 0.2rem;
  min-width: 1.6rem;
  height: 1.6rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: var(--color-text);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.6rem;
  text-align: center;
}

.bag-drawer,
.checkout {
  display: none;
  pointer-events: none;
  visibility: hidden;
}

.bag-drawer.is-open,
.checkout.is-open {
  display: flex;
  pointer-events: auto;
  visibility: visible;
}

.bag-drawer[hidden],
.checkout[hidden] {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

.bag-drawer {
  position: fixed;
  inset: 0;
  z-index: 300;
}

.bag-drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.bag-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  width: min(42rem, 100%);
  height: 100%;
  background: #fff;
  box-shadow: -0.4rem 0 2.4rem rgba(0, 0, 0, 0.12);
  transform: translateX(100%);
  transition: transform 240ms ease;
}

.bag-drawer.is-open .bag-drawer__panel {
  transform: translateX(0);
}

.bag-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  padding: 2.4rem;
  border-bottom: 0.1rem solid var(--color-border);
}

.bag-drawer__head h2 {
  margin: 0;
  font-size: 2rem;
  font-weight: 400;
}

.bag-drawer__empty {
  margin: 0;
  padding: 2.4rem;
  color: var(--color-muted);
}

.bag-drawer__list {
  flex: 1;
  overflow-y: auto;
  padding: 0 2.4rem;
}

.bag-item {
  display: grid;
  grid-template-columns: 8rem 1fr auto;
  gap: 1.6rem;
  padding: 1.6rem 0;
  border-bottom: 0.1rem solid var(--color-border);
}

.bag-item__img {
  width: 8rem;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: var(--color-card-bg);
}

.bag-item__brand {
  margin: 0 0 0.4rem;
  font-size: 1.3rem;
  font-weight: 700;
}

.bag-item__name {
  margin: 0 0 0.8rem;
  font-size: 1.4rem;
}

.bag-item__meta,
.bag-item__price {
  margin: 0;
  color: var(--color-muted);
  font-size: 1.3rem;
}

.bag-item__remove {
  border: 0;
  background: none;
  color: var(--color-muted);
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
}

.bag-drawer__footer {
  padding: 2.4rem;
  border-top: 0.1rem solid var(--color-border);
}

.bag-drawer__note {
  margin: 0 0 1.6rem;
  color: var(--color-muted);
  font-size: 1.3rem;
}

.bag-drawer__cta {
  width: 100%;
}

.bag-drawer__total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.2rem;
  font-size: 1.4rem;
}

.bag-drawer__total-row strong {
  font-size: 1.8rem;
  font-weight: 700;
}

.bag-drawer__link {
  display: block;
  width: 100%;
  margin-top: 1.2rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-text);
  font: inherit;
  font-size: 1.3rem;
  text-decoration: underline;
  cursor: pointer;
}

/* Checkout overlay */
.checkout {
  position: fixed;
  inset: 0;
  z-index: 400;
  align-items: flex-start;
  justify-content: center;
  padding: 2.4rem 1.6rem;
  overflow-y: auto;
}

.checkout__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.checkout__dialog {
  position: relative;
  width: min(56rem, 100%);
  margin: auto;
  background: #fff;
  box-shadow: 0 2.4rem 6.4rem rgba(0, 0, 0, 0.18);
}

.checkout__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  padding: 2.4rem 2.4rem 1.6rem;
  border-bottom: 0.1rem solid var(--color-border);
}

.checkout__head h2 {
  margin: 0;
  font-size: 2.4rem;
  font-weight: 400;
}

.checkout__steps {
  display: flex;
  gap: 0;
  margin: 0;
  padding: 0 2.4rem;
  list-style: none;
  border-bottom: 0.1rem solid var(--color-border);
}

.checkout__step {
  flex: 1;
  padding: 1.6rem 0;
  color: var(--color-muted);
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
  border-bottom: 0.2rem solid transparent;
}

.checkout__step.is-active {
  color: var(--color-text);
  font-weight: 700;
  border-bottom-color: var(--color-text);
}

.checkout__step.is-done {
  color: var(--color-text);
}

.checkout__body {
  padding: 2.4rem;
}

.checkout-panel__lead {
  margin: 0 0 2.4rem;
  color: var(--color-muted);
  line-height: 1.6;
}

.checkout-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
}

.checkout-form__full {
  grid-column: 1 / -1;
}

.checkout-field {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.checkout-field span {
  font-size: 1.3rem;
  font-weight: 700;
}

.checkout-field abbr {
  text-decoration: none;
  color: #c41429;
}

.checkout-field input,
.checkout-field select {
  width: 100%;
  min-height: 4.8rem;
  padding: 1.2rem 1.4rem;
  border: 0.1rem solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
  font: inherit;
  transition: border-color var(--transition);
}

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

.checkout-form__submit {
  width: 100%;
  margin-top: 2.4rem;
}

.checkout-panel--payment .checkout-payment {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.4rem;
}

.checkout-payment__summary {
  width: 100%;
  padding: 1.6rem;
  border: 0.1rem solid var(--color-border);
  background: var(--color-card-bg);
}

.checkout-payment__summary h3 {
  margin: 0 0 1.2rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.checkout-summary__row {
  display: flex;
  justify-content: space-between;
  gap: 1.6rem;
  padding: 0.8rem 0;
  font-size: 1.3rem;
  border-bottom: 0.1rem solid var(--color-border);
}

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

.checkout-payment__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 1.6rem 0 0;
  padding-top: 1.6rem;
  border-top: 0.1rem solid var(--color-border);
  font-size: 1.4rem;
}

.checkout-payment__total strong {
  font-size: 2rem;
  font-weight: 700;
}

.checkout-payment__widget {
  width: 100%;
  max-width: 42rem;
  margin-inline: auto;
}

.checkout-payment__secure {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  width: 100%;
  max-width: 42rem;
  margin: 0 auto 1.6rem;
  padding: 1.4rem 1.6rem;
  border: 0.1rem solid #d4e8d4;
  background: #f6fbf6;
  color: #1f4d1f;
}

.checkout-payment__secure strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 1.3rem;
}

.checkout-payment__secure span {
  display: block;
  font-size: 1.2rem;
  line-height: 1.5;
  opacity: 0.9;
}

.checkout-payment__frame {
  width: 100%;
  min-height: 72rem;
}

.checkout-payment__frame iframe {
  border-radius: var(--radius);
}

.checkout-payment__back {
  border: 0;
  background: none;
  color: var(--color-muted);
  font: inherit;
  font-size: 1.3rem;
  text-decoration: underline;
  cursor: pointer;
}

@media (max-width: 47.99em) {
  .checkout-form__grid {
    grid-template-columns: 1fr;
  }

  .checkout {
    padding: 0;
    align-items: stretch;
  }

  .checkout__dialog {
    min-height: 100vh;
  }
}
