.vrindavan-cart {
  padding-bottom: clamp(2rem, 5vw, 4rem);
  background: #f7f6f1;
}

.cart-hero {
  position: relative;
  display: flex;
  min-height: clamp(20rem, 38vw, 31rem);
  align-items: flex-end;
  overflow: hidden;
  background: #173d33;
  isolation: isolate;
}

.cart-hero::after {
  position: absolute;
  z-index: -1;
  background: linear-gradient(90deg, rgb(12 36 29 / 86%), rgb(12 36 29 / 38%) 72%, rgb(12 36 29 / 8%));
  content: "";
  inset: 0;
}

.cart-hero__image {
  position: absolute;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  inset: 0;
}

.cart-hero__content {
  width: min(100% - 2rem, 77.28rem);
  margin: 0 auto;
  padding-block: clamp(2rem, 6vw, 4.5rem);
  color: #fff;
}

.cart-hero__eyebrow,
.cart-eyebrow {
  margin: 0 0 0.6rem;
  color: #d4b453;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cart-hero h1 {
  max-width: 46rem;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.cart-hero__content > p:not(.cart-hero__eyebrow) {
  max-width: 38rem;
  margin: 0.9rem 0 1.2rem;
  color: rgb(255 255 255 / 90%);
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  line-height: 1.6;
}

.cart-hero__link {
  display: inline-flex;
  min-height: 2.8rem;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 1rem;
  border: 1px solid rgb(255 255 255 / 72%);
  border-radius: 0.65rem;
  color: #173d33;
  background: #f1d57d;
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
  transition: background-color 160ms ease, transform 160ms ease;
}

.cart-hero__link:hover {
  transform: translateY(-2px);
  background: #ffe599;
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(17rem, 22rem);
  align-items: start;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  width: min(100% - 2rem, 77.28rem);
  margin: clamp(2rem, 4vw, 3.5rem) auto 0;
}

.cart-catalog {
  min-width: 0;
}

.cart-section-heading,
.cart-summary__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cart-section-heading {
  margin-bottom: 1.1rem;
}

.cart-section-heading h2,
.cart-summary__heading h2 {
  margin: 0;
  color: #173d33;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.cart-eyebrow {
  margin-bottom: 0.35rem;
  color: #876b22;
  font-size: 0.65rem;
}

.cart-jump-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgb(23 61 51 / 18%);
  border-radius: 999px;
  color: #245c48;
  background: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.cart-jump-link span,
.cart-summary__count {
  display: inline-grid;
  min-width: 1.5rem;
  height: 1.5rem;
  place-items: center;
  padding-inline: 0.25rem;
  border-radius: 999px;
  color: #fff;
  background: #245c48;
  font-size: 0.72rem;
}

.cart-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.cart-product {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgb(23 61 51 / 11%);
  border-radius: 0.9rem;
  background: #fff;
  box-shadow: 0 0.55rem 1.5rem rgb(23 61 51 / 5%);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.cart-product:hover {
  transform: translateY(-3px);
  border-color: rgb(23 61 51 / 24%);
  box-shadow: 0 0.85rem 1.8rem rgb(23 61 51 / 10%);
}

.cart-product__image {
  aspect-ratio: 1.45;
  overflow: hidden;
  background: #eee9dc;
}

.cart-product__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 280ms ease;
}

.cart-product:hover .cart-product__image img {
  transform: scale(1.035);
}

.cart-product__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1rem;
}

.cart-product__category {
  margin: 0 0 0.35rem;
  color: #876b22;
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cart-product__title {
  margin: 0;
  color: #173d33;
  font-size: 1.05rem;
  line-height: 1.3;
}

.cart-product__description {
  min-height: 3.2em;
  margin: 0.5rem 0 1rem;
  color: #59645d;
  font-size: 0.82rem;
  line-height: 1.55;
}

.cart-product__options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin-bottom: 0.6rem;
}

.cart-product__options label {
  display: grid;
  min-width: 0;
  gap: 0.25rem;
  color: #58635d;
  font-size: 0.68rem;
  font-weight: 750;
}

.cart-product__options select {
  width: 100%;
  min-width: 0;
  min-height: 2.75rem;
  padding: 0.5rem 2.4rem 0.5rem 0.65rem;
  border: 1px solid #dfe6dc;
  border-radius: 0.5rem;
  color: #234437;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%23234437' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 0.75rem;
  font: inherit;
  font-size: 0.74rem;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.cart-product__options select:focus-visible {
  border-color: #318c67;
  outline: 2px solid rgb(49 150 108 / 28%);
  outline-offset: 1px;
}

.cart-product__options select:disabled {
  color: #78827b;
  background-color: #f3f5f2;
  cursor: not-allowed;
}

.cart-product__variant-price {
  min-height: 1.4em;
  margin: 0 0 0.7rem;
  color: #245c48;
  font-size: 0.75rem;
  font-weight: 800;
}

.cart-product__action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: auto;
}

.cart-product__price {
  color: #58635d;
  font-size: 0.7rem;
  font-weight: 700;
}

.cart-add-button,
.cart-checkout-button {
  display: inline-flex;
  min-height: 2.7rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 0.85rem;
  border: 1px solid transparent;
  border-radius: 0.6rem;
  color: #fff;
  background: #245c48;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease;
}

.cart-add-button:hover,
.cart-checkout-button:hover {
  transform: translateY(-1px);
  background: #174735;
}

.cart-add-button:disabled {
  transform: none;
  background: #929e95;
  cursor: not-allowed;
}

.cart-add-button span {
  font-size: 1rem;
  line-height: 1;
}

.cart-more-tshirts {
  display: inline-flex;
  min-height: 2.7rem;
  align-items: center;
  gap: 0.3rem;
  color: #245c48;
  font-size: 0.72rem;
  font-weight: 800;
  text-decoration: none;
  transition: color 160ms ease;
}

.cart-more-tshirts:hover {
  color: #174735;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.cart-more-tshirts svg {
  width: 0.9rem;
  height: 0.9rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.cart-sidebar {
  display: grid;
  min-width: 0;
  gap: 1rem;
}

.cart-summary {
  position: sticky;
  top: 1rem;
  padding: 1.2rem;
  border: 1px solid rgb(23 61 51 / 14%);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 0.85rem 2rem rgb(23 61 51 / 8%);
}

.cart-ad-placeholder {
  display: grid;
  min-height: 8rem;
  align-content: center;
  justify-items: center;
  gap: 0.35rem;
  padding: 1rem;
  border: 1px dashed rgb(23 61 51 / 22%);
  border-radius: 0.8rem;
  color: #68716b;
  background: rgb(255 255 255 / 62%);
  text-align: center;
}

.cart-ad-placeholder__label {
  color: #87918a;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cart-ad-placeholder p {
  margin: 0;
  font-size: 0.76rem;
}

.cart-summary__heading {
  align-items: flex-start;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid #e8ebe4;
}

.cart-summary__heading h2 {
  font-size: 1.7rem;
}

.cart-summary__count {
  min-width: 1.9rem;
  height: 1.9rem;
  background: #f3edda;
  color: #765d1f;
  font-size: 0.8rem;
}

.cart-status {
  min-height: 2.6em;
  margin: 0.8rem 0;
  color: #68716b;
  font-size: 0.76rem;
  line-height: 1.5;
}

.cart-empty {
  display: grid;
  min-height: 9rem;
  place-content: center;
  justify-items: center;
  padding: 1rem;
  border: 1px dashed rgb(23 61 51 / 20%);
  border-radius: 0.7rem;
  color: #68716b;
  text-align: center;
}

.cart-empty[hidden] {
  display: none;
}

.cart-empty > span {
  color: #b08a28;
  font-size: 1.3rem;
}

.cart-empty p {
  margin: 0.35rem 0;
  font-size: 0.82rem;
}

.cart-empty a,
.cart-email-link {
  color: #245c48;
  font-size: 0.76rem;
  font-weight: 800;
  text-underline-offset: 0.18em;
}

.cart-items {
  display: grid;
  gap: 0.65rem;
}

.cart-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.6rem;
  padding-block: 0.65rem;
  border-bottom: 1px solid #edf0e9;
}

.cart-item__name {
  margin: 0;
  color: #234437;
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.35;
}

.cart-item__quantity {
  margin: 0.25rem 0 0;
  color: #68716b;
  font-size: 0.7rem;
}

.cart-item__controls {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.cart-item__controls button {
  display: grid;
  width: 1.8rem;
  height: 1.8rem;
  place-items: center;
  padding: 0;
  border: 1px solid #dfe6dc;
  border-radius: 50%;
  color: #245c48;
  background: #f8faf6;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
}

.cart-item__controls button:hover {
  border-color: #245c48;
  background: #edf4e9;
}

.cart-item__remove {
  width: auto !important;
  padding-inline: 0.55rem !important;
  border-radius: 999px !important;
  font-size: 0.65rem !important;
}

.cart-summary__total {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 0.9rem;
  padding-block: 0.8rem;
  border-top: 1px solid #e8ebe4;
  color: #59645d;
  font-size: 0.76rem;
}

.cart-summary__total strong {
  color: #173d33;
  font-size: 0.86rem;
}

.cart-summary__total small {
  color: #68716b;
  font-size: 0.68rem;
  line-height: 1.5;
}

.cart-checkout-button {
  width: 100%;
  min-height: 3rem;
  background: #23755a;
}

.cart-checkout-button:hover {
  background: #175a43;
}

.cart-checkout-button[hidden],
.cart-email-link[hidden] {
  display: none;
}

.cart-email-link {
  display: block;
  margin-top: 0.8rem;
  text-align: center;
}

.cart-clear-button {
  display: block;
  margin: 0.75rem auto 0;
  padding: 0.3rem 0.5rem;
  border: 0;
  color: #68716b;
  background: transparent;
  font: inherit;
  font-size: 0.72rem;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
}

.cart-clear-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.cart-summary__note {
  margin: 0.85rem 0 0;
  color: #68716b;
  font-size: 0.7rem;
  line-height: 1.55;
}

.cart-disclaimer {
  width: min(100% - 2rem, 77.28rem);
  margin: 1.25rem auto 0;
  color: #68716b;
  font-size: 0.72rem;
  line-height: 1.55;
}

.cart-hero__link:focus-visible,
.cart-jump-link:focus-visible,
.cart-add-button:focus-visible,
.cart-checkout-button:focus-visible,
.cart-email-link:focus-visible,
.cart-clear-button:focus-visible,
.cart-item__controls button:focus-visible,
.cart-more-tshirts:focus-visible {
  outline: 3px solid #b08a28;
  outline-offset: 3px;
}

@media (max-width: 1000px) {
  .cart-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .cart-summary {
    position: static;
  }

  .cart-sidebar {
    order: -1;
  }

  .cart-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .cart-hero {
    min-height: 21rem;
  }

  .cart-hero::after {
    background: linear-gradient(0deg, rgb(12 36 29 / 88%), rgb(12 36 29 / 22%));
  }

  .cart-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .cart-hero__content,
  .cart-layout,
  .cart-disclaimer {
    width: min(100% - 1.25rem, 77.28rem);
  }

  .cart-section-heading {
    align-items: flex-end;
  }

  .cart-product-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cart-product {
    display: grid;
    grid-template-columns: minmax(6.5rem, 0.8fr) minmax(0, 1.2fr);
  }

  .cart-product[data-cart-product="krishna-tshirt"] {
    display: flex;
  }

  .cart-product__image {
    min-height: 100%;
    aspect-ratio: auto;
  }

  .cart-product[data-cart-product="krishna-tshirt"] .cart-product__image {
    min-height: 0;
    aspect-ratio: 1.45;
  }

  .cart-product__body {
    padding: 0.8rem;
  }

  .cart-product[data-cart-product="krishna-tshirt"] .cart-product__body {
    padding: 0.9rem;
  }

  .cart-product__description {
    min-height: 0;
    font-size: 0.76rem;
  }

  .cart-product__options {
    grid-template-columns: minmax(0, 1fr);
  }

  .cart-product__action {
    align-items: flex-start;
    flex-direction: column;
  }

  .cart-product__action--tshirt {
    align-items: center;
    flex-direction: row;
  }

  .cart-more-tshirts {
    align-self: center;
  }

  .cart-product__price {
    font-size: 0.64rem;
  }

  .cart-add-button {
    min-height: 2.4rem;
    padding: 0.5rem 0.7rem;
    font-size: 0.72rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cart-hero__link,
  .cart-product,
  .cart-product__image img,
  .cart-add-button,
  .cart-more-tshirts,
  .cart-checkout-button {
    transition: none;
  }
}
