@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Poppins:wght@300;400;500;600;700;800&display=swap");

:root {
  --cart-red: #c00000;
  --cart-red-light: #ef3030;
  --cart-red-dark: #88000b;
  --cart-black: #0b0b0e;
  --cart-text: #202025;
  --cart-muted: #7c7b82;
  --cart-light: #f5f3ef;
  --cart-border: #e5dfd8;
  --cart-shadow: 0 20px 55px rgba(25, 20, 22, 0.09);
  --cart-shadow-hover: 0 30px 70px rgba(25, 20, 22, 0.15);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  padding-top: 90px;
  color: var(--cart-text);
  background:
    radial-gradient(circle at 8% 8%, rgba(192, 0, 0, 0.05), transparent 25%),
    radial-gradient(circle at 95% 25%, rgba(192, 0, 0, 0.04), transparent 24%),
    var(--cart-light);
  font-family: "Poppins", sans-serif;
}

.cart-page {
  width: min(1450px, calc(100% - 40px));
  margin: 0 auto;
  padding: 38px 0 90px;
}

.cart-hero {
  position: relative;
  min-height: 235px;
  margin-bottom: 24px;
  padding: 38px;
  overflow: hidden;
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 20%, rgba(192, 0, 0, 0.48), transparent 30%),
    linear-gradient(135deg, #08080a, #1d1d22);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.22);
}
.cart-hero::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--cart-red),
    var(--cart-red-light),
    #8f8779
  );
}
.cart-hero > div {
  position: relative;
  z-index: 2;
}
.cart-hero > div:first-child > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ff626d;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 2.4px;
}
.cart-hero h1 {
  margin: 6px 0 4px;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(4rem, 7vw, 6.5rem);
  font-weight: 400;
  line-height: 0.85;
  text-transform: uppercase;
}
.cart-hero p {
  max-width: 620px;
  margin: 0;
  color: #bdbdc3;
  font-size: 0.78rem;
  line-height: 1.7;
}
.cart-hero-summary {
  display: grid;
  grid-template-columns: repeat(2, 115px);
  gap: 12px;
}
.cart-hero-summary article {
  min-height: 105px;
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 19px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
}
.cart-hero-summary small {
  color: #c6c6cc;
  font-size: 0.59rem;
  font-weight: 700;
  text-transform: uppercase;
}
.cart-hero-summary strong {
  font-family: "Bebas Neue", sans-serif;
  font-size: 2.7rem;
  font-weight: 400;
  line-height: 1;
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: start;
}
.cart-section-heading,
.saved-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 15px;
}
.cart-section-heading span,
.saved-heading span {
  color: var(--cart-red);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 2px;
}
.cart-section-heading h2,
.saved-heading h2 {
  margin: 4px 0 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: 3.3rem;
  font-weight: 400;
  line-height: 0.9;
  text-transform: uppercase;
}
.cart-section-heading > a {
  min-height: 44px;
  padding: 0 15px;
  border: 1px solid var(--cart-border);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #333;
  background: #fff;
  text-decoration: none;
  font-size: 0.66rem;
  font-weight: 800;
  box-shadow: 0 10px 25px rgba(20, 15, 17, 0.06);
}

.cart-product-list {
  display: grid;
  gap: 14px;
}
.cart-product-card {
  display: grid;
  grid-template-columns: 210px 1fr;
  overflow: hidden;
  border: 1px solid var(--cart-border);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--cart-shadow);
  transition: 0.25s ease;
}
.cart-product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--cart-shadow-hover);
}
.cart-product-image {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  background: #ede7e2;
}
.cart-product-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: 0.5s ease;
}
.cart-product-card:hover .cart-product-image img {
  transform: scale(1.04);
}
.cart-product-image > span {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--cart-red);
  font-size: 0.56rem;
  font-weight: 800;
}

.cart-product-info {
  min-width: 0;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}
.cart-product-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.cart-category,
.saved-category {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--cart-red);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.cart-product-info h3 {
  margin: 7px 0 0;
  font-size: 1.08rem;
}
.cart-product-info h3 a,
.saved-info h3 a {
  color: var(--cart-text);
  text-decoration: none;
}
.cart-size {
  width: max-content;
  margin-top: 11px;
  padding: 7px 9px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #666;
  background: #f5f2ee;
  font-size: 0.59rem;
}
.cart-unit-price {
  text-align: right;
}
.cart-unit-price span,
.cart-subtotal span {
  display: block;
  color: #999;
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
}
.cart-unit-price strong {
  display: block;
  margin-top: 4px;
  color: var(--cart-red);
  font-size: 1.05rem;
}

.cart-product-bottom {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) minmax(120px, 0.7fr) auto;
  gap: 15px;
  align-items: end;
  padding-top: 18px;
  border-top: 1px solid #eee9e4;
}
.cart-quantity > span {
  display: block;
  margin-bottom: 7px;
  color: #777;
  font-size: 0.57rem;
  font-weight: 800;
  text-transform: uppercase;
}
.cart-quantity > div {
  width: max-content;
  display: grid;
  grid-template-columns: 40px 54px 40px;
  gap: 6px;
}
.cart-quantity a,
.cart-quantity strong {
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
}
.cart-quantity a {
  color: #fff;
  background: var(--cart-black);
  text-decoration: none;
  font-size: 0.68rem;
}
.cart-quantity a.disabled {
  color: #aaa;
  background: #e8e4df;
  cursor: not-allowed;
}
.cart-quantity strong {
  border: 1px solid #ddd7d0;
  background: #fbfaf8;
  font-size: 0.72rem;
}
.cart-quantity small {
  display: block;
  margin-top: 6px;
  color: #999;
  font-size: 0.52rem;
}
.cart-subtotal strong {
  display: block;
  margin-top: 4px;
  font-size: 1.2rem;
}
.cart-actions {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) 42px;
  gap: 8px;
}
.cart-actions a {
  min-height: 42px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-decoration: none;
  font-size: 0.61rem;
  font-weight: 800;
}
.cart-actions .save {
  color: #333;
  background: #f1ede8;
}
.cart-actions .delete {
  color: #b91c1c;
  background: #fef2f2;
}

.cart-summary {
  position: sticky;
  top: 110px;
  padding: 27px;
  border-radius: 25px;
  color: #fff;
  background:
    radial-gradient(
      circle at top right,
      rgba(192, 0, 0, 0.38),
      transparent 34%
    ),
    linear-gradient(145deg, #0b0b0e, #202025);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.23);
}
.cart-summary > span {
  color: #ff5c67;
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 2px;
}
.cart-summary h2 {
  margin: 4px 0 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: 3.2rem;
  font-weight: 400;
  line-height: 0.95;
}
.cart-summary-lines {
  display: grid;
  gap: 13px;
  margin-top: 24px;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.cart-summary-lines > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.67rem;
}
.cart-summary-lines span {
  color: #aaaab1;
}
.cart-total {
  margin-top: 20px;
  text-align: center;
}
.cart-total > span {
  display: block;
  color: #aaaab1;
  font-size: 0.59rem;
  font-weight: 800;
  letter-spacing: 2px;
}
.cart-total strong {
  display: inline-block;
  margin-top: 6px;
  font-family: "Bebas Neue", sans-serif;
  font-size: 4rem;
  font-weight: 400;
  line-height: 1;
}
.cart-total small {
  color: #aaaab1;
  font-size: 0.57rem;
}
.cart-checkout {
  width: 100%;
  min-height: 57px;
  margin-top: 20px;
  padding: 0 17px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--cart-red), var(--cart-red-light));
  box-shadow: 0 17px 38px rgba(192, 0, 0, 0.3);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 800;
}
.cart-checkout i:last-child {
  margin-left: auto;
}
.cart-benefits {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}
.cart-benefits > div {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #b8b8be;
  font-size: 0.58rem;
}
.cart-benefits i {
  width: 31px;
  height: 31px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: #ff5c67;
  background: rgba(255, 255, 255, 0.07);
}

.cart-empty {
  min-height: 480px;
  padding: 45px;
  border: 1px solid var(--cart-border);
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
  text-align: center;
  box-shadow: var(--cart-shadow);
}
.cart-empty > div {
  width: 90px;
  height: 90px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--cart-red), var(--cart-red-dark));
  box-shadow: 0 20px 40px rgba(192, 0, 0, 0.28);
  font-size: 2rem;
}
.cart-empty > span {
  margin-top: 22px;
  color: var(--cart-red);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 2px;
}
.cart-empty h2 {
  margin: 7px 0 4px;
  font-family: "Bebas Neue", sans-serif;
  font-size: 3.5rem;
  font-weight: 400;
  line-height: 0.95;
}
.cart-empty p {
  max-width: 520px;
  color: var(--cart-muted);
  font-size: 0.72rem;
  line-height: 1.7;
}
.cart-empty a {
  min-height: 50px;
  margin-top: 18px;
  padding: 0 19px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  background: var(--cart-black);
  text-decoration: none;
  font-size: 0.69rem;
  font-weight: 800;
}

.saved-section {
  margin-top: 72px;
}
.saved-count {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--cart-red), var(--cart-red-dark));
  font-size: 0.78rem;
  font-weight: 800;
}
.saved-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
}
.saved-card {
  overflow: hidden;
  border: 1px solid var(--cart-border);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--cart-shadow);
  transition: 0.25s ease;
}
.saved-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--cart-shadow-hover);
}
.saved-image {
  position: relative;
  height: 285px;
  overflow: hidden;
  display: block;
  background: #eee8e3;
}
.saved-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: 0.5s ease;
}
.saved-card:hover .saved-image img {
  transform: scale(1.05);
}
.saved-image > span {
  position: absolute;
  top: 13px;
  left: 13px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--cart-red);
  font-size: 0.55rem;
  font-weight: 800;
}
.saved-info {
  padding: 18px;
}
.saved-info h3 {
  min-height: 48px;
  margin: 7px 0 10px;
  font-size: 0.88rem;
}
.saved-price {
  color: var(--cart-red);
  font-size: 1.35rem;
  font-weight: 800;
}
.saved-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 43px;
  gap: 8px;
  margin-top: 15px;
}
.saved-actions a,
.saved-actions span {
  min-height: 43px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-decoration: none;
  font-size: 0.6rem;
  font-weight: 800;
}
.saved-actions .move {
  color: #fff;
  background: var(--cart-black);
}
.saved-actions .move.disabled {
  color: #999;
  background: #eee9e4;
}
.saved-actions .remove {
  color: #b91c1c;
  background: #fef2f2;
}

.cart-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: 0.25s ease;
}
.cart-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.cart-modal-box {
  width: min(430px, 100%);
  padding: 32px;
  border-radius: 25px;
  background: #fff;
  text-align: center;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.45);
}
.cart-modal-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 15px;
  border-radius: 21px;
  display: grid;
  place-items: center;
  color: #b91c1c;
  background: #fee2e2;
  font-size: 1.3rem;
}
.cart-modal-box > span {
  color: var(--cart-red);
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 2px;
}
.cart-modal-box p {
  color: var(--cart-muted);
  font-size: 0.7rem;
  line-height: 1.65;
}
.cart-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 20px;
}
.cart-modal-actions button,
.cart-modal-actions a {
  min-height: 46px;
  border: none;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 0.67rem;
  font-weight: 800;
  cursor: pointer;
}
.cart-modal-actions button {
  color: #333;
  background: #eee9e4;
}
.cart-modal-actions a {
  color: #fff;
  background: var(--cart-red);
}

@media (max-width: 1200px) {
  .cart-layout {
    grid-template-columns: minmax(0, 1fr) 330px;
  }
  .saved-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .cart-product-bottom {
    grid-template-columns: 1fr 1fr;
  }
  .cart-actions {
    grid-column: 1/-1;
  }
}

@media (max-width: 980px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }
  .cart-summary {
    position: static;
  }
  .saved-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body {
    padding-top: 75px;
  }
  .cart-page {
    width: min(100% - 24px, 1450px);
    padding-top: 22px;
  }
  .cart-hero {
    min-height: auto;
    padding: 28px 22px;
    flex-direction: column;
    align-items: flex-start;
  }
  .cart-hero-summary {
    width: 100%;
    grid-template-columns: 1fr 1fr;
  }
  .cart-section-heading,
  .saved-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .cart-product-card {
    grid-template-columns: 155px 1fr;
  }
  .cart-product-top {
    flex-direction: column;
  }
  .cart-unit-price {
    text-align: left;
  }
  .cart-product-bottom {
    grid-template-columns: 1fr;
  }
  .cart-actions {
    grid-column: auto;
  }
}

@media (max-width: 580px) {
  .cart-product-card {
    grid-template-columns: 1fr;
  }
  .cart-product-image {
    height: 300px;
  }
  .cart-product-info {
    padding: 18px;
  }
  .cart-quantity > div {
    width: 100%;
    grid-template-columns: 44px 1fr 44px;
  }
  .cart-actions {
    grid-template-columns: 1fr 47px;
  }
  .saved-grid {
    grid-template-columns: 1fr;
  }
  .saved-image {
    height: 330px;
  }
  .cart-summary {
    padding: 23px 20px;
  }
  .cart-modal-actions {
    grid-template-columns: 1fr;
  }
}
