/* Page /panier — port structure Shopify cart-page / order-summary
 * Source → public/theme/css/lgk-cart-page.css
 */

.lgk-cart-container {
  --container-max-width: min(94vw, 96rem);
  max-width: var(--container-max-width);
  margin-inline: auto;
  padding: clamp(1.75rem, 4vw, 3rem) var(--container-gutter, 1.25rem) clamp(3rem, 8vw, 5rem);
}

.lgk-cart-container .section-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.lgk-cart-container .section-header .h2 {
  margin: 0 0 0.85rem;
  color: #fff;
  font-family: var(--font-display), sans-serif;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  line-height: 1.05;
}

.cart-page {
  display: grid;
  align-items: start;
  row-gap: 2.5rem;
}

@media (min-width: 1000px) {
  .cart-page {
    row-gap: 3.5rem;
  }
}

.order-summary {
  width: 100%;
  border-collapse: collapse;
  color: #e8edf5;
}

.order-summary__header {
  display: none;
}

@media (min-width: 700px) {
  .order-summary__header {
    display: table-header-group;
  }

  .order-summary__header th {
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(232, 237, 245, 0.55);
  }
}

.order-summary__body tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.order-summary__body td {
  padding: 1rem 0;
  vertical-align: middle;
}

.order-summary .line-item {
  --line-item-media-width: 5rem;
  display: flex;
  align-items: flex-start;
  column-gap: 1rem;
}

@media (min-width: 700px) {
  .order-summary .line-item {
    --line-item-media-width: 7.5rem;
    align-items: center;
  }
}

.order-summary .line-item__media {
  width: var(--line-item-media-width);
  height: var(--line-item-media-width);
  flex-shrink: 0;
  border-radius: 12px;
  object-fit: cover;
  background: #151a24;
}

.order-summary .line-item-info {
  min-width: 0;
  display: grid;
  gap: 0.3rem;
}

.order-summary .line-item-info a {
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.35;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.order-summary .line-item-info a:hover {
  color: #22d3ee;
}

.order-summary .text-subdued {
  margin: 0;
  color: rgba(232, 237, 245, 0.6);
  font-size: 0.85rem;
}

.order-summary .lgk-cart-page__badge {
  display: inline-flex;
  width: fit-content;
  margin-top: 0.15rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(232, 237, 245, 0.7);
}

.order-summary .quantity-selector {
  --quantity-selector-height: 2.4rem;
  --quantity-selector-input-width: 2.25rem;
  display: inline-grid;
  grid-template-columns: var(--quantity-selector-height) auto var(--quantity-selector-height);
  grid-auto-rows: var(--quantity-selector-height);
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  color: #e8edf5;
  overflow: hidden;
}

.order-summary .quantity-selector__button {
  display: grid;
  place-content: center;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 1rem;
}

.order-summary .quantity-selector__button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.order-summary .quantity-selector__input {
  appearance: textfield;
  -webkit-appearance: textfield;
  width: var(--quantity-selector-input-width);
  border: 0;
  background: none;
  color: inherit;
  text-align: center;
  font-weight: 600;
}

.order-summary .quantity-selector__input::-webkit-outer-spin-button,
.order-summary .quantity-selector__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.order-summary .v-stack {
  display: grid;
  gap: 0.45rem;
  justify-items: center;
}

.order-summary .link.text-xs {
  color: #22d3ee;
  font-size: 0.75rem;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
}

.order-summary .link.text-xs:hover {
  text-decoration: underline;
}

.order-summary .text-end {
  text-align: end;
  font-weight: 700;
  white-space: nowrap;
}

.order-summary .text-center {
  text-align: center;
}

.order-summary__qty-mobile {
  margin-top: 0.55rem;
}

@media (min-width: 700px) {
  .order-summary__qty-mobile {
    display: none;
  }

  .order-summary__qty-desktop {
    display: table-cell;
  }
}

@media (max-width: 699px) {
  .order-summary__qty-desktop {
    display: none;
  }

  .order-summary__line-total {
    display: block;
    margin-top: 0.35rem;
    font-weight: 700;
  }
}

.cart-footer {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cart-recap {
  display: grid;
  gap: 0.65rem;
  padding: 1.15rem 1.2rem 1.25rem;
  border-radius: 16px;
  border: 1px solid rgba(37, 99, 235, 0.28);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(37, 99, 235, 0.16), transparent 55%),
    #0a0c10;
}

.cart-recap__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  color: rgba(232, 237, 245, 0.72);
  font-size: 0.9rem;
}

.cart-recap__row--total {
  padding-top: 0.45rem;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
}

.cart-recap__note {
  margin: 0;
  font-size: 0.8125rem;
  color: rgba(232, 237, 245, 0.55);
  line-height: 1.4;
}

.cart-recap .button,
.cart-recap .button--primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  margin-block-start: 0.5rem;
  padding: 0.75rem 1.25rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #22d3ee);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.24);
}

.cart-recap .button.is-disabled,
.cart-recap .button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.55);
  box-shadow: none;
}

.cart-recap .button--outline {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: #e8edf5;
  box-shadow: none;
}

.cart-page-shipping {
  max-width: 28rem;
  margin-inline: auto;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(37, 99, 235, 0.28);
  background: rgba(37, 99, 235, 0.12);
  text-align: start;
}

.cart-page-shipping .lgk-cart-shipping-tip__bar {
  height: 6px;
  margin-bottom: 0.55rem;
}

.cart-page-shipping .lgk-cart-shipping-tip__text {
  font-size: 0.8125rem;
}

.cart-page .empty-state {
  display: grid;
  gap: 0.65rem;
  justify-items: center;
  text-align: center;
  padding: 3rem 1rem;
  max-width: 28rem;
  margin-inline: auto;
}

.cart-page .empty-state .h4 {
  margin: 0;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
}

.cart-page .empty-state p {
  margin: 0;
  color: rgba(232, 237, 245, 0.62);
}

.cart-page .empty-state .button {
  display: inline-flex;
  margin-top: 0.5rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #22d3ee);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

@media (min-width: 700px) {
  .cart-footer {
    flex-direction: row;
    gap: 3rem;
  }

  .cart-recap {
    width: min(24rem, 100%);
    margin-inline-start: auto;
    text-align: end;
    justify-items: stretch;
  }

  .cart-recap .button {
    width: 100%;
  }
}

.lgk-payment-title.lgk-cart-page {
  margin: 0.35rem 0 0.25rem;
  font-size: 0.75rem;
  color: rgba(232, 237, 245, 0.65);
  text-align: center;
}

.lgk-payment-banner.lgk-cart-page {
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  border: 1px solid rgba(37, 99, 235, 0.22);
  background: rgba(37, 99, 235, 0.08);
}

.lgk-payment-banner.lgk-cart-page .lgk-payment-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.lgk-payment-banner.lgk-cart-page .lgk-paylogo {
  height: 22px;
  width: auto;
  max-width: 56px;
  object-fit: contain;
  border-radius: 3px;
}

.cart-recap .lgk-terms-wrapper {
  text-align: start;
  margin-top: 0.5rem;
}

.cart-recap .button.is-terms-locked {
  opacity: 0.55;
}
