/* =========================
   Cart Page
========================= */

.al3-cart-page {
  background: #050607;
}

.al3-cart-page .al3-cart-hero__banner,
.al3-cart-page .al3-cart-box {
  width: calc(100% + 30px);
  margin-left: -15px;
  margin-right: -15px;
}

/* =========================
   Hero
========================= */

.al3-cart-hero__banner {
  position: relative;
  height: 360px;
  border-radius: 22px;
  overflow: hidden;

  background-color: #111315;
  background-image: url("../images/cart.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  display: flex;
  align-items: center;
  justify-content: center;
}

.al3-cart-hero__banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .35);
}

.al3-cart-hero__title {
  position: relative;
  z-index: 1;
  margin: 0;

  color: #fff;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
}

/* =========================
   Cart Section
========================= */

.al3-cart-section {
  padding-top: 90px;
}

.al3-cart-box {
  position: relative;
  width: 100%;
  min-height: 360px;
  padding: 62px 95px;
  border-radius: 22px;
  background: #0C0E0F;
  overflow: hidden;
}

.al3-cart-box.is-updating {
  opacity: .7;
  pointer-events: none;
  transition: opacity .2s ease;
}

.al3-cart-form {
  margin: 0;
}

.al3-cart-table {
  width: 100%;
}

/* =========================
   Cart Table Head
========================= */

.al3-cart-head {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 190px 140px 44px;
  align-items: center;

  min-height: 50px;
  background: #F4F4F4;
  color: #050607;
}

.al3-cart-head__cell {
  padding: 0 16px;

  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.al3-cart-head__cell--quantity,
.al3-cart-head__cell--price {
  text-align: center;
}

/* =========================
   Cart Rows
========================= */

.al3-cart-body {
  width: 100%;
}

.al3-cart-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 190px 140px 44px;
  align-items: center;

  min-height: 66px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.al3-cart-row__image {
  padding: 0 16px;
}

.al3-cart-row__image a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.al3-cart-row__image img {
  display: block;
  width: 48px;
  height: 42px;
  object-fit: contain;
}

.al3-cart-row__product {
  min-width: 0;
  padding: 0 16px;

  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.al3-cart-row__product a {
  color: #fff;
  text-decoration: none;
}

.al3-cart-row__product a:hover {
  color: #DF141B;
}

.al3-cart-row__quantity {
  padding: 0 16px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.al3-cart-row__price {
  padding: 0 16px;

  color: #DF141B;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

.al3-cart-row__price .woocommerce-Price-amount {
  color: #DF141B;
  font-weight: 700;
}

.al3-cart-row__remove {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================
   Quantity Switcher
========================= */

.al3-cart-qty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.al3-cart-qty__btn {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;

  background: transparent;
  color: #fff;

  cursor: pointer;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-size: 34px;
  font-weight: 400;
  line-height: 1;

  transition: color .2s ease, opacity .2s ease;
}

.al3-cart-qty__btn:hover {
  color: #DF141B;
}

.al3-cart-qty__input {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 8px;

  background: #1A1C1E;
  color: #fff;

  text-align: center;
  font-size: 14px;
  font-weight: 700;
  outline: none;
}

.al3-cart-qty__input:focus {
  box-shadow: 0 0 0 2px rgba(223, 20, 27, .35);
}

.al3-cart-qty__input::-webkit-outer-spin-button,
.al3-cart-qty__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.al3-cart-qty__input[type="number"] {
  -moz-appearance: textfield;
}

/* =========================
   Remove Button
========================= */

.al3-cart-remove,
.woocommerce .al3-cart-remove.remove,
.woocommerce a.al3-cart-remove.remove {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 0;

  background: transparent !important;
  color: inherit !important;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  text-decoration: none;

  transition: opacity .2s ease, transform .15s ease;
}

.al3-cart-remove:hover,
.woocommerce .al3-cart-remove.remove:hover,
.woocommerce a.al3-cart-remove.remove:hover {
  background: transparent !important;
  color: inherit !important;
  opacity: .75;
  transform: translateY(-1px);
}

.al3-cart-remove img,
.woocommerce .al3-cart-remove.remove img,
.woocommerce a.al3-cart-remove.remove img {
  display: block;
  width: 18px;
  height: 20px;
  object-fit: contain;
}

/* =========================
   Hidden Woo Update Actions
========================= */

.al3-cart-actions {
  display: none !important;
}

/* =========================
   Summary / Total
========================= */

.al3-cart-summary {
  width: 100%;
  margin-top: 0;

  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 190px 140px 44px;
}

.al3-cart-summary__row {
  grid-column: 3 / 6;

  width: 100%;
  min-height: 50px;
  padding: 0;

  background: #1A1A1A;
  color: #fff;

  display: grid;
  grid-template-columns: 190px 140px 44px;
  align-items: center;

  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
}

.al3-cart-summary__row > span {
  grid-column: 1 / 2;
  padding-left: 34px;
  padding-right: 16px;

  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.al3-cart-summary__row > strong {
  grid-column: 2 / 3;
  padding: 0 16px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.al3-cart-summary__row::after {
  content: "";
  grid-column: 3 / 4;
  display: block;
  width: 44px;
  height: 100%;
}

.al3-cart-summary__row strong,
.al3-cart-summary__row .woocommerce-Price-amount {
  color: #DF141B;
  font-weight: 700;
}

/* =========================
   Checkout Button
========================= */

.al3-cart-checkout {
  margin-top: 28px;
  display: flex;
  justify-content: flex-start;
}

.al3-cart-checkout__btn {
  width: 240px;
  height: 52px;
  border-radius: 8px;

  background: #DF141B;
  color: #fff;

  text-decoration: none;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;

  transition: opacity .2s ease, transform .15s ease;
}

.al3-cart-checkout__btn:hover {
  opacity: .92;
  transform: translateY(-1px);
}

/* =========================
   Empty Cart
========================= */

.al3-cart-box--empty {
  display: flex;
  align-items: center;
  justify-content: center;
}

.al3-cart-empty {
  max-width: 520px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.al3-cart-empty__icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 24px;
  border-radius: 18px;

  background: #111315;

  display: flex;
  align-items: center;
  justify-content: center;
}

.al3-cart-empty__icon img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.al3-cart-empty__title {
  margin: 0;

  color: #fff;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
}

.al3-cart-empty__text {
  max-width: 420px;
  margin: 14px auto 0;

  color: rgba(255, 255, 255, .65);
  font-size: 16px;
  line-height: 1.6;
}

.al3-cart-empty__btn {
  margin-top: 28px;
  width: 190px;
  height: 50px;
  border-radius: 8px;

  background: #DF141B;
  color: #fff;

  text-decoration: none;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;

  transition: opacity .2s ease, transform .15s ease;
}

.al3-cart-empty__btn:hover {
  opacity: .92;
  transform: translateY(-1px);
}

/* =========================
   Woo Notices
========================= */

.woocommerce-notices-wrapper {
  max-width: 1110px;
  margin: 0 auto;
  padding: 0 20px;
}

.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
  border: 0;
  border-radius: 10px;
  background: #0C0E0F;
  color: #fff;
}

.woocommerce-message::before,
.woocommerce-error::before,
.woocommerce-info::before {
  color: #DF141B;
}

.woocommerce-message a,
.woocommerce-error a,
.woocommerce-info a {
  color: #fff;
}

/* =========================
   Responsive
========================= */

@media (max-width: 1200px) {
  .al3-cart-head,
  .al3-cart-row,
  .al3-cart-summary {
    grid-template-columns: 80px minmax(0, 1fr) 160px 130px 44px;
  }

  .al3-cart-summary__row {
    grid-template-columns: 160px 130px 44px;
  }

  .al3-cart-summary__row > span {
    padding-left: 28px;
  }
}

@media (max-width: 992px) {
  .al3-cart-hero__banner {
    height: 300px;
    border-radius: 18px;
  }

  .al3-cart-section {
    padding-top: 56px;
  }

  .al3-cart-box {
    padding: 34px 0;
    border-radius: 22px;
  }

  .al3-cart-head {
    display: none;
  }

  .al3-cart-row {
    position: relative;

    display: grid;
    grid-template-columns: 86px minmax(0, 1fr) 34px;
    grid-template-areas:
      "image product remove"
      "image quantity remove"
      "image price remove";

    gap: 10px 16px;
    min-height: auto;
    padding: 22px 18px;
    align-items: center;
  }

  .al3-cart-row__image {
    grid-area: image;
    padding: 0;
  }

  .al3-cart-row__image img {
    width: 72px;
    height: 58px;
  }

  .al3-cart-row__product {
    grid-area: product;
    padding: 0;

    font-size: 17px;
    line-height: 1.25;
  }

  .al3-cart-row__quantity {
    grid-area: quantity;
    padding: 0;
    justify-content: flex-start;
  }

  .al3-cart-row__price {
    grid-area: price;
    padding: 0;

    text-align: left;
    font-size: 16px;
  }

  .al3-cart-row__remove {
    grid-area: remove;
    align-self: start;
    justify-self: end;
  }

  .al3-cart-summary {
    display: block;
    margin-top: 0;
  }

  .al3-cart-summary__row {
    width: 100%;
    min-height: 58px;
    padding: 0 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
  }

  .al3-cart-summary__row > span,
  .al3-cart-summary__row > strong {
    padding: 0;
    display: inline-flex;
  }

  .al3-cart-summary__row::after {
    display: none;
  }

  .al3-cart-checkout {
    margin-top: 28px;
  }

  .al3-cart-checkout__btn {
    width: 100%;
    max-width: 320px;
  }
}

@media (max-width: 768px) {
  .al3-cart-hero__banner {
    height: 260px;
    border-radius: 16px;
  }

  .al3-cart-hero__title {
    font-size: 28px;
    line-height: 32px;
  }

  .al3-cart-section {
    padding-top: 40px;
  }

  .al3-cart-box {
    padding: 26px 0;
  }

  .al3-cart-row {
    grid-template-columns: 72px minmax(0, 1fr) 30px;
    gap: 8px 14px;
    padding: 20px 18px;
  }

  .al3-cart-row__image img {
    width: 60px;
    height: 50px;
  }

  .al3-cart-row__product {
    font-size: 15px;
  }

  .al3-cart-qty {
    gap: 12px;
  }

  .al3-cart-qty__btn {
    width: 20px;
    height: 20px;
    font-size: 30px;
  }

  .al3-cart-qty__input {
    width: 40px;
    height: 40px;
  }

  .al3-cart-remove,
  .woocommerce .al3-cart-remove.remove,
  .woocommerce a.al3-cart-remove.remove {
    width: 22px;
    height: 22px;
  }

  .al3-cart-remove img,
  .woocommerce .al3-cart-remove.remove img,
  .woocommerce a.al3-cart-remove.remove img {
    width: 16px;
    height: 18px;
  }

  .al3-cart-summary__row {
    min-height: 54px;
    padding: 0 18px;
    font-size: 15px;
  }

  .al3-cart-checkout__btn {
    max-width: none;
    height: 50px;
  }

  .al3-cart-empty__title {
    font-size: 26px;
  }
}

@media (max-width: 480px) {
  .al3-cart-hero__banner {
    height: 220px;
  }

  .al3-cart-section {
    padding-top: 30px;
  }

  .al3-cart-box {
    padding: 22px 0;
  }

  .al3-cart-row {
    grid-template-columns: 58px minmax(0, 1fr) 28px;
    gap: 8px 12px;
    padding: 18px 14px;
  }

  .al3-cart-row__image img {
    width: 50px;
    height: 42px;
  }

  .al3-cart-row__product {
    font-size: 14px;
    line-height: 1.25;
  }

  .al3-cart-row__price {
    font-size: 14px;
  }

  .al3-cart-qty {
    gap: 10px;
  }

  .al3-cart-qty__btn {
    font-size: 28px;
  }

  .al3-cart-qty__input {
    width: 38px;
    height: 38px;
    font-size: 13px;
  }

  .al3-cart-summary__row {
    padding: 0 14px;
    font-size: 14px;
  }

  .al3-cart-checkout {
    margin-top: 24px;
  }

  .al3-cart-checkout__btn {
    height: 50px;
    font-size: 13px;
  }

  .al3-cart-empty__icon {
    width: 66px;
    height: 66px;
  }

  .al3-cart-empty__title {
    font-size: 24px;
  }

  .al3-cart-empty__text {
    font-size: 15px;
  }
}