/* VAPRIS_HOME_LAYOUT_20261204 */
main:has(> .hero) {
  display: flex;
  flex-direction: column;
}

main:has(> .hero) > .hero {
  order: 1;
  width: min(calc(100% - 40px), 1360px);
  min-height: 500px;
  margin: 18px auto 0;
  padding: 0;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--paper);
}

main:has(> .hero) > .hero .hero__media {
  order: 1;
  min-width: 0;
  min-height: 0;
  background: var(--mist);
}

main:has(> .hero) > .hero .hero__media img {
  width: 100%;
  height: 100%;
  padding: 0;
  object-fit: contain;
  object-position: center;
}

main:has(> .hero) > .hero .hero__copy {
  order: 2;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: clamp(30px, 3.5vw, 50px) clamp(30px, 4vw, 58px);
  justify-content: center;
  gap: clamp(12px, 1.3vw, 18px);
}

main:has(> .hero) > .hero h1 {
  max-width: 11ch;
  font-size: clamp(2.9rem, 4.7vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
}

main:has(> .hero) > .hero .hero__lead {
  max-width: 48ch;
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.5;
}

main:has(> .hero) > .hero .hero__actions {
  flex-wrap: wrap;
  gap: 10px;
}

main:has(> .hero) > .hero .hero__actions .btn {
  flex: 0 1 auto;
  min-width: 150px;
  padding-inline: 20px;
}

main:has(> .hero) > .hero .hero__features {
  display: none;
}

main:has(> .hero) > .trust-bar {
  order: 2;
  display: block;
  width: min(calc(100% - 40px), 1360px);
  margin: 16px auto 0;
  padding: 0;
  border: 0;
  background: transparent;
}

main:has(> .hero) > .trust-bar .trust-bar__grid {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--paper);
}

main:has(> .hero) > .trust-bar .trust-item {
  min-height: 92px;
  padding: 18px 20px;
  gap: 11px;
  align-items: flex-start;
}

main:has(> .hero) > .trust-bar .trust-item + .trust-item {
  border-left: 1px solid var(--line);
}

main:has(> .hero) > .trust-bar .trust-item svg {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 1px;
}

main:has(> .hero) > .trust-bar .trust-item h3 {
  margin-bottom: 3px;
  font-size: 13px;
  line-height: 1.3;
}

main:has(> .hero) > .trust-bar .trust-item p {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.42;
}

main:has(> .hero) > section[aria-label="Shop by category"] {
  order: 3;
  padding: 34px 0 30px;
}

main:has(> .hero) > #new {
  order: 4;
  padding: 28px 0 52px;
}

main:has(> .hero) > .section--split {
  order: 5;
}

main:has(> .hero) > section[aria-label="As seen in"] {
  order: 6;
}

main:has(> .hero) > section[aria-label="Follow along"] {
  order: 7;
}

main:has(> .hero) > section > .container {
  width: min(calc(100% - 40px), 1360px);
}

main:has(> .hero) .cat-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

main:has(> .hero) .cat-card {
  grid-column: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(118px, 0.74fr);
  min-height: 142px;
  padding: 0;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--mist);
}

main:has(> .hero) .cat-card > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px 18px 16px;
}

main:has(> .hero) .cat-card__title {
  font-size: 17px;
}

main:has(> .hero) .cat-card__desc {
  margin-bottom: 12px;
}

main:has(> .hero) .cat-card > img {
  width: 100%;
  height: 100%;
  min-height: 140px;
  padding: 12px;
  object-fit: contain;
  background: var(--paper);
}

main:has(> .hero) #new .product-grid--home {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 26px 16px;
}

main:has(> .hero) #new .product-card {
  min-width: 0;
  grid-column: span 2;
}

main:has(> .hero) #new .product-card:nth-last-child(4) {
  grid-column: 2 / span 2;
}

main:has(> .hero) #new .product-card:nth-last-child(3) {
  grid-column: 4 / span 2;
}

main:has(> .hero) #new .product-card:nth-last-child(2) {
  grid-column: 6 / span 2;
}

main:has(> .hero) #new .product-card:nth-last-child(1) {
  grid-column: 8 / span 2;
}

main:has(> .hero) #new .product-card__media {
  border: 1px solid var(--line);
  background: var(--paper);
}

main:has(> .hero) #new .product-card__media img {
  padding: 12px;
  object-fit: contain;
}

main:has(> .hero) #new .section-head {
  margin-bottom: 26px;
}

/* Cart product selection */
.cart-select-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 4px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--mist);
  font-size: 13px;
}

.cart-select-bar[hidden] {
  display: none;
}

.cart-select-bar label,
.cart-item__check {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
}

.cart-select-bar input,
.cart-item__check input {
  width: 19px;
  height: 19px;
  margin: 0;
  accent-color: var(--ink);
  cursor: pointer;
}

.cart-select-bar [data-cart-selected-count] {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.cart-item {
  grid-template-columns: 26px 96px minmax(0, 1fr) auto;
}

.cart-item__check {
  align-self: center;
  min-width: 44px;
  min-height: 44px;
  margin-left: -10px;
  justify-content: center;
}

.cart-item__media img {
  object-fit: contain;
  background: var(--paper);
}

.cart-selection-summary {
  margin: -2px 0 8px;
  font-size: 12px;
  color: var(--muted);
}

.cart-summary .btn[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: auto;
  cursor: not-allowed;
}

@media (max-width: 1180px) {
  main:has(> .hero) #new .product-grid--home {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  main:has(> .hero) #new .product-card,
  main:has(> .hero) #new .product-card:nth-last-child(4),
  main:has(> .hero) #new .product-card:nth-last-child(3),
  main:has(> .hero) #new .product-card:nth-last-child(2),
  main:has(> .hero) #new .product-card:nth-last-child(1) {
    grid-column: auto;
  }
}

@media (max-width: 900px) {
  main:has(> .hero) > .hero {
    width: calc(100% - 24px);
    min-height: 0;
    margin-top: 12px;
    grid-template-columns: minmax(0, 1fr);
    border-radius: 14px;
  }

  main:has(> .hero) > .hero .hero__media {
    order: 1;
    aspect-ratio: 4 / 3;
    max-height: 310px;
  }

  main:has(> .hero) > .hero .hero__copy {
    order: 2;
    padding: 25px 22px 27px;
  }

  main:has(> .hero) > .hero h1 {
    max-width: 14ch;
    font-size: clamp(2.35rem, 10vw, 3rem);
  }

  main:has(> .hero) > .hero .hero__actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  main:has(> .hero) > .hero .hero__actions .btn {
    width: 100%;
    min-height: 46px;
  }

  main:has(> .hero) > .trust-bar,
  main:has(> .hero) > section > .container {
    width: calc(100% - 24px);
  }

  main:has(> .hero) > .trust-bar {
    margin-top: 12px;
  }

  main:has(> .hero) > .trust-bar .trust-bar__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  main:has(> .hero) > .trust-bar .trust-item {
    min-height: 106px;
    padding: 16px 14px;
  }

  main:has(> .hero) > .trust-bar .trust-item:nth-child(odd) {
    border-left: 0;
  }

  main:has(> .hero) > .trust-bar .trust-item:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  main:has(> .hero) > section[aria-label="Shop by category"] {
    padding: 28px 0 22px;
  }

  main:has(> .hero) > #new {
    padding: 22px 0 40px;
  }

  main:has(> .hero) .cat-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  main:has(> .hero) .cat-card,
  main:has(> .hero) .cat-card:nth-child(4),
  main:has(> .hero) .cat-card:nth-child(5) {
    grid-column: auto;
    height: 148px;
    min-height: 148px;
    grid-template-columns: minmax(0, 1fr) 128px;
  }

  main:has(> .hero) .cat-card > img {
    height: 100%;
    min-height: 0;
  }

  main:has(> .hero) #new .product-grid--home {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 12px;
  }

  main:has(> .hero) #new .product-card,
  main:has(> .hero) #new .product-card:nth-last-child(4),
  main:has(> .hero) #new .product-card:nth-last-child(3),
  main:has(> .hero) #new .product-card:nth-last-child(2),
  main:has(> .hero) #new .product-card:nth-last-child(1) {
    grid-column: auto;
  }

  main:has(> .hero) #new .product-card__media img {
    padding: 8px;
  }

  .cart-item {
    grid-template-columns: 26px 76px minmax(0, 1fr);
  }

  .cart-item__side {
    grid-column: 2 / -1;
  }
}

@media (max-width: 420px) {
  main:has(> .hero) > .hero h1 {
    font-size: 2.2rem;
  }

  main:has(> .hero) > .trust-bar .trust-item {
    min-height: 114px;
    padding: 14px 12px;
  }

  main:has(> .hero) > .trust-bar .trust-item p {
    font-size: 11px;
  }

  .cart-select-bar {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
}
