/* ============================================================
   CART PAGE
============================================================ */

.cart-page {
  background: #f5f0e8;
  color: #201c18;
}

/* ============================================================
   HERO
============================================================ */

.cart-hero {
  background:
    linear-gradient(90deg, rgba(7, 7, 7, 0.96), rgba(7, 7, 7, 0.72)),
    url("/assets/images/marble.png") center / cover;

  padding: 175px 30px 95px;

  color: #f7f1e8;
}

.cart-hero-inner {
  width: min(1280px, calc(100% - 80px));

  margin: 0 auto;

  text-align: center;
}

.cart-hero h1 {
  margin: 12px 0 18px;

  font-family: var(--serif);

  font-size: clamp(48px, 7vw, 86px);

  font-weight: 400;

  line-height: 0.95;

  letter-spacing: -2px;
}

.cart-hero p:not(.eyebrow) {
  max-width: 620px;

  margin: 0 auto;

  color: rgba(247, 241, 232, 0.72);

  font-size: 13px;

  line-height: 1.8;
}

/* ============================================================
   CART SECTION
============================================================ */

.cart-section {
  padding: 90px 30px 110px;
}

.cart-container {
  width: min(1280px, calc(100% - 80px));

  margin: 0 auto;
}

/* ============================================================
   CART LAYOUT
============================================================ */

.cart-layout {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    390px;

  gap: 80px;

  align-items: start;
}

/* ============================================================
   CART HEADER
============================================================ */

.cart-header {
  display: flex;

  align-items: flex-end;

  justify-content: space-between;

  border-bottom: 1px solid rgba(55, 45, 35, 0.16);

  padding-bottom: 22px;

  margin-bottom: 5px;
}

.cart-header h2 {
  margin: 5px 0 0;

  font-family: var(--serif);

  font-size: 36px;

  font-weight: 400;
}

.cart-item-count {
  font-size: 10px;

  letter-spacing: 1.4px;

  text-transform: uppercase;

  color: #887b70;
}

/* ============================================================
   CART ITEM
============================================================ */

.cart-item {
  display: grid;

  grid-template-columns: 180px minmax(0, 1fr);

  gap: 28px;

  padding: 30px 0;

  border-bottom: 1px solid rgba(55, 45, 35, 0.13);
}

.cart-item-image {
  display: block;

  aspect-ratio: 1 / 1;

  overflow: hidden;

  background: #e8e0d5;
}

.cart-item-image img {
  width: 100%;

  height: 100%;

  object-fit: cover;

  display: block;

  transition: transform 0.5s ease;
}

.cart-item-image:hover img {
  transform: scale(1.04);
}

/* ============================================================
   ITEM CONTENT
============================================================ */

.cart-item-content {
  min-width: 0;

  display: flex;

  flex-direction: column;

  justify-content: space-between;
}

.cart-item-top {
  display: flex;

  justify-content: space-between;

  gap: 20px;
}

.cart-item-category {
  margin: 0 0 8px;

  font-size: 8px;

  letter-spacing: 1.8px;

  text-transform: uppercase;

  color: #9a8062;
}

.cart-item h3 {
  margin: 0;

  font-family: var(--serif);

  font-size: 25px;

  font-weight: 400;

  line-height: 1.15;
}

.cart-item h3 a {
  transition: opacity 0.2s ease;
}

.cart-item h3 a:hover {
  opacity: 0.65;
}

.cart-remove {
  width: 32px;

  height: 32px;

  flex: 0 0 32px;

  border: 1px solid rgba(55, 45, 35, 0.18);

  background: transparent;

  color: #51483f;

  font-size: 21px;

  line-height: 1;

  cursor: pointer;

  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.cart-remove:hover {
  background: #211d19;

  color: #f6efe6;

  border-color: #211d19;
}

/* ============================================================
   ATTRIBUTES
============================================================ */

.cart-item-attributes {
  display: flex;

  flex-wrap: wrap;

  gap: 7px 20px;

  margin-top: 18px;
}

.cart-attribute {
  font-size: 10px;

  color: #756a61;
}

.cart-attribute strong {
  margin-right: 5px;

  color: #302923;

  font-weight: 500;
}

/* ============================================================
   ADDONS
============================================================ */

.cart-item-addons {
  margin-top: 12px;
}

.cart-detail-label {
  display: block;

  margin-bottom: 7px;

  font-size: 8px;

  letter-spacing: 1.3px;

  text-transform: uppercase;

  color: #998c81;
}

.cart-addon-list {
  display: flex;

  flex-wrap: wrap;

  gap: 7px;
}

.cart-addon {
  padding: 6px 9px;

  border: 1px solid rgba(55, 45, 35, 0.14);

  font-size: 9px;

  color: #51483f;

  background: rgba(255, 255, 255, 0.25);
}

.cart-addon small {
  margin-left: 4px;

  color: #97734e;
}

/* ============================================================
   ITEM BOTTOM
============================================================ */

.cart-item-bottom {
  display: grid;

  grid-template-columns:
    1fr
    auto
    auto;

  align-items: center;

  gap: 25px;

  margin-top: 28px;
}

.cart-item-unit-price {
  font-size: 11px;

  color: #887b70;
}

.cart-quantity {
  display: flex;

  align-items: center;

  border: 1px solid rgba(55, 45, 35, 0.2);
}

.cart-quantity button {
  width: 32px;

  height: 34px;

  border: 0;

  background: transparent;

  color: #312a24;

  cursor: pointer;

  font-size: 15px;
}

.cart-quantity span {
  min-width: 32px;

  text-align: center;

  font-size: 10px;
}

.cart-item-total {
  min-width: 80px;

  text-align: right;

  font-family: var(--serif);

  font-size: 19px;

  font-weight: 400;
}

/* ============================================================
   CONTINUE
============================================================ */

.cart-continue {
  padding-top: 30px;
}

/* ============================================================
   SUMMARY
============================================================ */

.cart-summary {
  position: sticky;

  top: 30px;
}

.summary-inner {
  background: #1c1916;

  color: #f6efe6;

  padding: 38px;
}

.summary-inner h2 {
  margin: 8px 0 32px;

  font-family: var(--serif);

  font-size: 34px;

  font-weight: 400;
}

.summary-row {
  display: flex;

  justify-content: space-between;

  align-items: center;

  gap: 20px;

  padding: 13px 0;

  font-size: 11px;

  color: rgba(246, 239, 230, 0.72);
}

.summary-row strong {
  color: #f6efe6;

  font-weight: 500;
}

.summary-muted {
  color: rgba(246, 239, 230, 0.45);

  font-size: 9px;

  text-align: right;
}

.summary-divider {
  height: 1px;

  background: rgba(201, 161, 107, 0.22);

  margin: 15px 0 20px;
}

.summary-total {
  display: flex;

  justify-content: space-between;

  align-items: center;

  gap: 20px;

  margin-bottom: 28px;
}

.summary-total span {
  font-size: 10px;

  letter-spacing: 1px;

  text-transform: uppercase;
}

.summary-total strong {
  font-family: var(--serif);

  font-size: 27px;

  font-weight: 400;

  color: #d8b27d;
}

/* ============================================================
   CHECKOUT BUTTON
============================================================ */

.cart-checkout-button {
  width: 100%;

  justify-content: center;

  text-align: center;

  display: block;

  padding: 17px 20px;

  background: #c7a16d;

  color: #171411;

  border: 1px solid #c7a16d;

  font-size: 9px;

  letter-spacing: 1.5px;

  text-transform: uppercase;
}

.cart-checkout-button:hover {
  background: #e0c397;

  border-color: #e0c397;
}

/* ============================================================
   TRUST
============================================================ */

.cart-trust {
  margin-top: 30px;

  padding-top: 25px;

  border-top: 1px solid rgba(246, 239, 230, 0.12);
}

.cart-trust-item {
  display: flex;

  gap: 12px;

  padding: 10px 0;
}

.trust-icon {
  width: 19px;

  height: 19px;

  display: flex;

  align-items: center;

  justify-content: center;

  border: 1px solid rgba(201, 161, 107, 0.5);

  color: #d8b27d;

  font-size: 9px;
}

.cart-trust-item strong {
  display: block;

  font-size: 9px;

  font-weight: 500;
}

.cart-trust-item small {
  display: block;

  margin-top: 3px;

  color: rgba(246, 239, 230, 0.45);

  font-size: 8px;

  line-height: 1.5;
}

/* ============================================================
   EMPTY CART
============================================================ */

.cart-empty {
  max-width: 620px;

  margin: 0 auto;

  text-align: center;

  padding: 70px 20px;
}

.cart-empty-mark {
  width: 75px;

  height: 75px;

  margin: 0 auto 30px;

  border: 1px solid rgba(55, 45, 35, 0.2);

  border-radius: 50%;

  position: relative;
}

.cart-empty-mark span {
  position: absolute;

  left: 50%;

  top: 50%;

  width: 25px;

  height: 25px;

  transform: translate(-50%, -50%) rotate(45deg);

  border: 1px solid #9a8062;
}

.cart-empty h2 {
  margin: 8px 0 15px;

  font-family: var(--serif);

  font-size: 42px;

  font-weight: 400;
}

.cart-empty p:not(.eyebrow) {
  max-width: 480px;

  margin: 0 auto 30px;

  color: #81776e;

  font-size: 12px;

  line-height: 1.8;
}

/* ============================================================
   PROMISE
============================================================ */

.cart-promise {
  background: #171411;

  color: #f6efe6;

  padding: 75px 30px;
}

.cart-promise-inner {
  width: min(1180px, calc(100% - 80px));

  margin: 0 auto;

  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 60px;
}

.cart-promise-inner > div {
  padding-right: 40px;

  border-right: 1px solid rgba(201, 161, 107, 0.16);
}

.cart-promise-inner > div:last-child {
  border-right: 0;
}

.promise-number {
  display: block;

  margin-bottom: 20px;

  color: #c7a16d;

  font-size: 9px;

  letter-spacing: 2px;
}

.cart-promise h3 {
  margin: 0 0 10px;

  font-family: var(--serif);

  font-size: 24px;

  font-weight: 400;
}

.cart-promise p {
  margin: 0;

  color: rgba(246, 239, 230, 0.55);

  font-size: 11px;

  line-height: 1.8;
}

/* ============================================================
   RESPONSIVE
============================================================ */

@media (max-width: 1000px) {
  .cart-layout {
    grid-template-columns: 1fr;

    gap: 60px;
  }

  .cart-summary {
    position: static;
  }
}

@media (max-width: 700px) {
  .cart-hero {
    padding: 145px 20px 70px;
  }

  .cart-hero-inner,
  .cart-container,
  .cart-promise-inner {
    width: 100%;
  }

  .cart-section {
    padding: 60px 20px 80px;
  }

  .cart-item {
    grid-template-columns: 105px minmax(0, 1fr);

    gap: 17px;

    padding: 22px 0;
  }

  .cart-item h3 {
    font-size: 20px;
  }

  .cart-item-bottom {
    grid-template-columns: 1fr auto;

    gap: 12px;
  }

  .cart-item-unit-price {
    display: none;
  }

  .cart-item-total {
    min-width: auto;
  }

  .cart-summary {
    width: 100%;
  }

  .summary-inner {
    padding: 28px 22px;
  }

  .cart-promise {
    padding: 60px 20px;
  }

  .cart-promise-inner {
    grid-template-columns: 1fr;

    gap: 30px;
  }

  .cart-promise-inner > div {
    padding: 0 0 30px;

    border-right: 0;

    border-bottom: 1px solid rgba(201, 161, 107, 0.16);
  }

  .cart-promise-inner > div:last-child {
    border-bottom: 0;

    padding-bottom: 0;
  }
}

@media (max-width: 480px) {
  .cart-item {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .cart-item-bottom {
    margin-top: 20px;
  }

  .cart-quantity button {
    width: 28px;
  }

  .cart-quantity span {
    min-width: 27px;
  }
}
