/* eCommerce illustration: storefront, product cards and basket (.ec). Built on the shared .vz system. */
.ec__shop {
  display: grid;
  gap: 0.9rem;
  background-color: #fff;
  padding: 1rem 1.1rem 1.25rem;
}
.ec__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.ec__logo {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 0.4rem;
}
.ec__logo i {
  display: block;
  border: 2px solid var(--primary);
  border-radius: 50%;
  height: 1rem;
  width: 1rem;
}
.ec__logo .vz__bar {
  width: 3rem;
}
.ec__search {
  display: flex;
  flex: 1;
  align-items: center;
  border: 1px solid var(--vz-line);
  border-radius: 3.75rem;
  background-color: #f7f9fb;
  padding: 0.4rem 0.8rem;
}
.ec__search .vz__bar {
  width: 45%;
  height: 0.35rem;
}
.ec__bag {
  position: relative;
  flex: none;
  color: var(--primary);
}
.ec__bag svg {
  display: block;
}
.ec__bag b {
  position: absolute;
  top: -0.35rem;
  right: -0.5rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background-color: var(--secondary);
  height: 0.95rem;
  width: 0.95rem;
  font-size: 0.625rem;
  line-height: 1em;
  font-weight: 700;
  color: var(--primary);
}
.ec__promo {
  border-radius: 0.6rem;
  background-color: var(--primary);
  padding: 0.45rem 0.75rem;
  text-align: center;
  font-size: 0.75rem;
  line-height: 1.2em;
  font-weight: 600;
  color: #fff;
}
.ec__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}
.ec__product {
  display: grid;
  gap: 0.4rem;
  border: 1px solid var(--vz-line);
  border-radius: 0.9rem;
  background-color: #fff;
  padding: 0.55rem;
  box-shadow: 0 0.5rem 1.25rem rgba(0, 31, 63, 0.06);
}
.ec__product .vz__bar {
  height: 0.38rem;
}
.ec__img {
  position: relative;
  overflow: hidden;
  border-radius: 0.65rem;
  aspect-ratio: 1;
}
.ec__img:before {
  content: "";
  position: absolute;
  inset: 22%;
  background-color: rgba(255, 255, 255, 0.9);
}
.ec__img--1 {
  background: linear-gradient(145deg, #12406e, #001f3f);
}
.ec__img--1:before {
  border-radius: 50%;
  inset: 24%;
}
.ec__img--2 {
  background: linear-gradient(145deg, #bfe5fb, #43b7ff);
}
.ec__img--2:before {
  border-radius: 0.5rem;
  background-color: #001f3f;
  inset: 26% 30%;
}
.ec__img--3 {
  background: linear-gradient(145deg, #eef2f6, #d3dce6);
}
.ec__img--3:before {
  border-radius: 3rem;
  background-color: #43b7ff;
  inset: 40% 22%;
}
.ec__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.15rem;
}
.ec__row b {
  font-family: var(--headerFont);
  font-size: 1rem;
  line-height: 1em;
  font-weight: 700;
  color: var(--headerColor);
}
.ec__add {
  border-radius: 3.75rem;
  background-color: var(--primary);
  padding: 0.2rem 0.6rem;
  font-size: 0.6875rem;
  line-height: 1.2em;
  font-weight: 700;
  color: #fff;
}

/* Floating cards */
.ec__secure {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.85rem;
  width: fit-content;
  font-size: 0.8125rem;
  line-height: 1.2em;
  font-weight: 600;
  color: var(--vz-text-blue);
}
.ec__basket {
  padding: 0.9rem 1rem 1rem;
}
.ec__basket ul {
  display: grid;
  gap: 0.55rem;
  margin: 0.6rem 0;
  padding: 0;
  list-style: none;
}
.ec__basket li {
  display: grid;
  grid-template-columns: 1.7rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
}
.ec__thumb {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 0.45rem;
  height: 1.7rem;
  width: 1.7rem;
}
.ec__basket li b,
.ec__total b {
  font-family: var(--headerFont);
  font-size: 0.9375rem;
  line-height: 1em;
  font-weight: 700;
  color: var(--headerColor);
}
.ec__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--vz-line);
  padding: 0.55rem 0 0.7rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #5b6b7d;
}
.ec__checkout {
  display: block;
  border-radius: 3.75rem;
  background-color: var(--secondary);
  padding: 0.5rem 0.75rem;
  text-align: center;
  font-family: var(--headerFont);
  font-size: 0.875rem;
  line-height: 1.2em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--primary);
}
@media only screen and (min-width: 64rem) {
  .ec .vz__stage {
    padding-bottom: 8.75rem;
  }
  .ec__secure {
    bottom: 6.75rem;
    left: -1.5rem;
  }
  .ec__basket {
    right: -1.5rem;
    bottom: 0;
    width: 14.5rem;
  }
}
@media only screen and (max-width: 30rem) {
  .ec__shop {
    padding: 0.8rem;
  }
  .ec__grid {
    gap: 0.5rem;
  }
  .ec__product {
    padding: 0.4rem;
  }
}

/* Dark mode */
html.dark-mode .ec__shop {
  background-color: #08141e;
}
html.dark-mode .ec__logo i {
  border-color: #fff;
}
html.dark-mode .ec__search {
  border-color: rgba(255, 255, 255, 0.12);
  background-color: rgba(255, 255, 255, 0.05);
}
html.dark-mode .ec__bag {
  color: #fff;
}
html.dark-mode .ec__promo {
  background: linear-gradient(45deg, #cecece 0%, #ffffff 100%);
  color: var(--primary);
}
html.dark-mode .ec__product {
  border-color: rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.04);
  box-shadow: none;
}
html.dark-mode .ec__row b,
html.dark-mode .ec__basket li b,
html.dark-mode .ec__total b {
  color: #fff;
}
html.dark-mode .ec__add {
  background-color: #fff;
  color: var(--primary);
}
html.dark-mode .ec__total {
  color: rgba(255, 255, 255, 0.7);
}
