/*
 * Etap 4 CSS Child Theme: cart page styles
 * Moved from style.css without selector/style changes.
 */

.l24-cart-shell,
.l24-cart-empty {
  width: 100%;
  font-family: "Inter", Arial, sans-serif;
  color: #121212;
}

.l24-cart-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 32px;
  align-items: start;
}

.l24-cart-items,
.l24-cart-summary__box,
.l24-cart-upsell,
.l24-cart-empty {
  border: 1px solid #eeeeee;
  border-radius: 16px;
  background: #ffffff;
}

.l24-cart-items {
  min-width: 0;
  padding: 24px;
}

.l24-cart-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.l24-cart-heading p {
  margin: 0 0 5px;
  color: #fb6307;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.l24-cart-heading h2 {
  margin: 0;
  color: #121212;
  font-family: "Inter", Arial, sans-serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
}

.l24-cart-heading > span {
  color: #777777;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.l24-cart-list {
  display: grid;
  gap: 14px;
}

.l24-cart-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 18px;
  padding: 14px;
  border: 1px solid #eeeeee;
  border-radius: 14px;
  background: #ffffff;
}

.l24-cart-item__media {
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  background: #f5f5f5;
}

.l24-cart-item__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.l24-cart-item__content {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 16px;
}

.l24-cart-item__top,
.l24-cart-item__bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.l24-cart-item__top {
  align-items: flex-start;
}

.l24-cart-item__bottom {
  align-items: flex-end;
  margin-top: auto;
}

.l24-cart-item h3 {
  margin: 0 0 7px;
  padding-bottom: 0 !important;
  color: #121212;
  font-family: "Inter", Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.l24-cart-item h3 a {
  color: inherit !important;
  text-decoration: none !important;
}

.l24-cart-item__badge {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 6px 9px;
  border-radius: 999px;
  background: #fff2ea;
  color: #fb6307;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.l24-cart-item__variation {
  display: block;
  margin-top: 6px;
  color: #666666;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.l24-cart-item__remove {
  color: #777777 !important;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none !important;
}

.l24-cart-item__remove:hover {
  color: #121212 !important;
}

.l24-cart-qty {
  display: grid;
  gap: 6px;
  margin: 0;
  color: #777777;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.l24-cart-qty .quantity input.qty {
  width: 74px;
  height: 40px;
  padding: 8px 10px;
  border: 1px solid #dedede;
  border-radius: 10px;
  background: #ffffff;
  color: #121212;
  font-family: "Inter", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  box-shadow: none;
}

.l24-cart-item__price {
  color: #121212;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-align: right;
}

.l24-cart-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
  margin-top: 18px;
}

.l24-cart-coupon {
  display: grid;
  gap: 7px;
  margin: 0;
  color: #777777;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.l24-cart-coupon__row {
  display: flex;
  gap: 8px;
}

.l24-cart-coupon input {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #dedede;
  border-radius: 10px;
  color: #121212;
  font-family: "Inter", Arial, sans-serif;
  font-size: 14px;
  box-shadow: none;
}

.l24-cart-coupon button,
.l24-cart-update,
.l24-cart-checkout,
.l24-cart-empty__button,
.l24-cart-upsell__button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 11px 16px !important;
  border: 1px solid #121212 !important;
  border-radius: 10px !important;
  background: #121212 !important;
  color: #ffffff !important;
  font-family: "Inter", Arial, sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
  text-align: center;
  text-decoration: none !important;
  cursor: pointer;
  box-shadow: none !important;
}

.l24-cart-update {
  background: #ffffff !important;
  color: #121212 !important;
}

.l24-cart-summary {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 16px;
  min-width: 0;
}

.l24-cart-summary__box,
.l24-cart-upsell {
  padding: 22px;
}

.l24-cart-items > .l24-cart-upsell {
  margin-top: 18px;
}

.l24-cart-summary__box h3 {
  margin: 0 0 18px;
  color: #121212;
  font-family: "Inter", Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.l24-cart-summary__row,
.l24-cart-summary__total {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid #eeeeee;
  color: #666666;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.l24-cart-summary__row strong,
.l24-cart-summary__total strong {
  color: #121212;
  font-weight: 700;
  text-align: right;
}

.l24-cart-summary__note {
  margin: 10px 0;
  padding: 12px;
  border-radius: 10px;
  background: #fafafa;
  color: #666666;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.l24-cart-summary__total {
  margin-top: 4px;
  color: #121212;
  font-size: 16px;
}

.l24-cart-checkout {
  width: 100%;
  margin-top: 14px;
  min-height: 48px;
}

.l24-cart-upsell__eyebrow {
  margin: 0 0 20px;
  padding-bottom: 10px !important;
  color: #fb6307;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.l24-cart-upsell__product {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.l24-cart-upsell__image {
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  background: #f5f5f5;
}

.l24-cart-upsell__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.l24-cart-upsell h4 {
  margin: 0 0 5px;
  color: #121212;
  font-family: "Inter", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.l24-cart-upsell p {
  margin: 0;
  color: #666666;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
}

.l24-cart-upsell__price {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.2;
}

.l24-cart-upsell__price del {
  color: #999999;
}

.l24-cart-upsell__price strong {
  color: #121212;
}

.l24-cart-upsell__button {
  width: 100%;
  margin-top: 16px;
}

.l24-cart-empty {
  max-width: 620px;
  margin: 0 auto;
  padding: 36px;
  text-align: center;
}

.l24-cart-empty h2 {
  margin: 0 0 10px;
  color: #121212;
  font-family: "Inter", Arial, sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}

.l24-cart-empty p {
  margin: 0 0 22px;
  color: #666666;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
}

@media (max-width: 980px) {
  .l24-cart-shell {
    grid-template-columns: 1fr;
  }

  .l24-cart-summary {
    position: static;
  }
}

@media (max-width: 767px) {
  .l24-cart-shell {
    gap: 18px;
  }

  .l24-cart-items,
  .l24-cart-summary__box,
  .l24-cart-upsell,
  .l24-cart-empty {
    border-radius: 12px;
  }

  .l24-cart-items,
  .l24-cart-summary__box,
  .l24-cart-upsell {
    padding: 14px;
  }

  .l24-cart-heading {
    align-items: center;
    flex-direction: row;
    gap: 12px;
    margin-bottom: 14px;
  }

  .l24-cart-heading h2 {
    font-size: 21px;
  }

  .l24-cart-heading > span {
    font-size: 12px;
  }

  .l24-cart-item {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 10px;
    border-radius: 12px;
  }

  .l24-cart-item__media {
    border-radius: 10px;
  }

  .l24-cart-item__content {
    display: grid;
    gap: 12px;
  }

  .l24-cart-item__top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: start;
  }

  .l24-cart-item__bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: end;
  }

  .l24-cart-item h3 {
    margin: 0 0 8px;
    font-size: 14px;
    line-height: 1.28;
  }

  .l24-cart-item__remove {
    justify-self: end;
    width: fit-content;
    font-size: 11px;
  }

  .l24-cart-item__price {
    order: -1;
    align-self: end;
    font-size: 15px;
    text-align: left;
  }

  .l24-cart-qty {
    justify-items: end;
    gap: 5px;
  }

  .l24-cart-qty .quantity input.qty {
    width: 62px;
    height: 36px;
    border-radius: 9px;
  }

  .l24-cart-actions {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 14px;
  }

  .l24-cart-coupon__row {
    flex-direction: column;
  }

  .l24-cart-update,
  .l24-cart-coupon button {
    width: 100%;
  }

  .l24-cart-summary__box h3 {
    font-size: 18px;
  }

  .l24-cart-summary__row,
  .l24-cart-summary__total {
    font-size: 13px;
  }

  .l24-cart-upsell__product {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .l24-cart-empty {
    padding: 28px 18px;
  }
}

@media (max-width: 420px) {
  .l24-cart-item {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .l24-cart-item__top,
  .l24-cart-item__bottom {
    grid-template-columns: 1fr;
  }

  .l24-cart-item__remove,
  .l24-cart-qty {
    justify-self: start;
    justify-items: start;
  }
}
