/* =============================================
   RAYON — Cart Page
   hello-elementor-child/assets/css/cart.css
   ============================================= */

@font-face {
    font-family: 'Khuja Uppercase';
    src: url('../fonts/Khuja-Uppercase.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ── Progress stepper ── */
.rayon-checkout-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 32px 0 40px;
  max-width: 830px;
  margin: 0 auto;
  width: 100%;
}

.rayon-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.rayon-step__circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #B7B7B7;
  color: #b0b0b0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.rayon-step--active .rayon-step__circle {
  background: #111111;
  color: #ffffff;
}

/* Inactive icon — darker so white outline is visible */
.rayon-step:not(.rayon-step--active):not(.rayon-step--completed) .rayon-step__circle {
  color: #666666;
}

/* White outline on icon for inactive steps */
.rayon-step:not(.rayon-step--active):not(.rayon-step--completed) .rayon-step__circle svg * {
  stroke: #ffffff;
  stroke-width: 1.5px;
  paint-order: stroke fill;
}

.rayon-step__label {
  font-family: 'Josefin Sans', sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 15px;
  line-height: 15px;
  color: #b0b0b0;
  text-align: center;
}

.rayon-step--active .rayon-step__label {
  color: #000000;
}

.rayon-step__line {
  flex: 1;
  height: 15px;
  background: #e0e0e0;
  margin-bottom: 25px;
  margin-left: -26px;
  margin-right: -26px;
  border-radius: 8px;
  border: 1.5px solid #808080;
}

.rayon-step__line--dark {
  background: #111111;
  border-radius: 8px;
  border: none;
}

.rayon-step--completed .rayon-step__circle {
  background: #111111;
  color: #ffffff;
}

.rayon-step--completed .rayon-step__label {
  color: #000000;
}

/* ── Cart page heading ── */
.rayon-cart-heading {
  font-family: 'Khuja Uppercase', 'Josefin Sans', sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 32px;
  line-height: 110%;
  letter-spacing: 0.01em;
  color: #000000;
  text-transform: uppercase;
  margin-bottom: 20px;
  border-bottom: none;
  padding-bottom: 0;
}

/* ── Override theme max-width for cart page ── */
body.woocommerce-cart .site-main {
  max-width: 1280px !important;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

/* ── Outer 2-column wrapper ── */
.rayon-cart-wrap {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  width: 100%;
  padding-bottom: 100px;
}

/* ── Cart items column ── */
.rayon-cart-items {
  flex: 1 1 65%;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  background: #ffffff;
  padding: 8px 0;
}

.rayon-cart-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
}

.rayon-cart-divider {
  height: 1px;
  background: #e5e5e5;
  margin: 0 24px;
}

/* ── Thumbnail ── */
.rayon-cart-item__thumb {
  flex-shrink: 0;
  width: 113px!important;
  height: 134px!important;
  border-radius: 8.66px;
  overflow: hidden;
  background: #f5f5f5;
}

.rayon-cart-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* ── Details block ── */
.rayon-cart-item__details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* ── Product name ── */
.rayon-cart-item__name,
.rayon-cart-item__name a {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 20px!important;
  font-weight: 400;
  color: #000000;
  text-decoration: none;
  line-height: 1.4;
}

.rayon-cart-item__name a:hover {
  text-decoration: underline;
}

/* ── Meta (attributes + vendor) ── */
.rayon-cart-item__meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-top: 2px;
}

/* ── Variation attributes (Taille / Couleur) ── */
.rayon-cart-item__attr {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.6);
  display: block;
  line-height: 1.6;
}

.rayon-cart-item__attr strong {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #000000;
}

/* ── Vendor @handle ── */
.rayon-cart-item__vendor {
  margin-top: 2px;
}

.rayon-cart-item__vendor,
.rayon-cart-item__vendor a {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.6);
  text-decoration: none;
}

.rayon-cart-item__vendor a:hover {
  text-decoration: underline;
}

/* ── Price ── */
.rayon-cart-item__price {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #000000;
  margin-top: 10px;
}

/* Override WooCommerce price spans inside our price div */
.rayon-cart-item__price .woocommerce-Price-amount,
.rayon-cart-item__price .woocommerce-Price-currencySymbol,
.rayon-cart-item__price bdi {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #000000;
}

/* ── Trash icon — black, pointer only, no animation ── */
.rayon-cart-item__remove {
  flex-shrink: 0;
  margin-left: auto;
  align-self: center;
}

.rayon-remove-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000000;
  text-decoration: none;
  cursor: pointer;
  padding: 4px;
  transition: none;
}

.rayon-remove-btn:hover {
  color: #000000;
  cursor: pointer;
}

a.remove.rayon-remove-btn {
    color: #000 !important;
}

a.remove.rayon-remove-btn:hover {
    color: #555 !important;
    background: #fff;
}

.rayon-remove-btn svg {
  display: block;
}

/* ── Right summary column ── */
.rayon-cart-summary {
  flex: 0 0 300px;
  position: sticky;
  top: 100px;
  margin-left: auto;
}

.rayon-summary-box {
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  background: #ffffff;
  padding: 28px 24px;
}

.rayon-summary-title {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #111111;
  margin-bottom: 24px;
  border-bottom: none;
  padding-bottom: 0;
}

.rayon-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 20px;
  color: #555555;
  margin-bottom: 14px;
}

.rayon-summary-row span {
  white-space: nowrap;
}

.rayon-summary-row span:last-child {
  font-weight: 700;
  color: #111111;
}

/* Override WooCommerce price output in summary */
.rayon-summary-row .woocommerce-Price-amount,
.rayon-summary-row bdi {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #111111;
}

/* "Calculated at checkout" — smaller text, bold (cart page only) */
.rayon-shipping-value,
.rayon-summary-row span:last-child:not(:has(.woocommerce-Price-amount)) {
  font-size: 12px !important;
  font-weight: 700 !important;
  text-align: right;
}

.rayon-summary-divider {
  height: 1px;
  background: #e5e5e5;
  margin: 16px 0;
}

.rayon-summary-row--total {
  font-size: 20px;
  font-weight: 400;
}

.rayon-summary-row--total span:first-child {
  font-weight: 400;
}

.rayon-summary-row--total span:last-child,
.rayon-summary-row--total .woocommerce-Price-amount,
.rayon-summary-row--total bdi {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #111111 !important;
}

/* ── Checkout button ── */
.rayon-checkout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: #111111;
  color: #ffffff!important;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  padding: 14px 20px;
  border-radius: 3px;
  margin-top: 24px;
  transition: background 0.15s;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.rayon-checkout-btn:hover {
  background: #2d2d2d;
  color: #ffffff;
}

/* ── Suppress default WooCommerce cart output ── */
.woocommerce-cart-form {
  margin: 0;
}

.woocommerce-cart .cart-collaterals,
.woocommerce-cart .wc-proceed-to-checkout,
.woocommerce-cart .cart-collaterals .cross-sells {
  display: none !important;
}

/* Hide the native cart table if it bleeds through */
.woocommerce-cart table.shop_table {
  display: none !important;
}

/* ── Empty cart state ── */
.woocommerce-cart .cart-empty,
.woocommerce-cart .return-to-shop {
  font-family: 'Josefin Sans', sans-serif;
  text-align: center;
  padding: 48px 0;
  color: rgba(0, 0, 0, 0.5);
}

/* ── Mobile ── */
@media (max-width: 768px) {
  /* ── Stepper — smaller on mobile ── */
  .rayon-checkout-steps {
    padding: 16px 0 20px;
  }

  .rayon-step__circle {
    width: 36px;
    height: 36px;
  }

  .rayon-step__circle svg {
    width: 18px;
    height: 18px;
  }

  .rayon-step__label {
    font-size: 11px;
    line-height: 1.2;
  }

  .rayon-step__line {
    min-width: 24px;
    height: 10px;
    margin-bottom: 18px;
    margin-left: -18px;
    margin-right: -18px;
  }

  /* ── Cart heading — smaller on mobile ── */
  .rayon-cart-heading {
    font-size: 22px;
    margin-bottom: 14px;
  }

  /* ── Stepper line — length on mobile ── */
  .rayon-step__line {
    flex: 0 1 90px;
    max-width: 90px;
  }

  /* ── Remove excess space after checkout button ── */
  .rayon-cart-wrap {
    flex-direction: column;
    padding-bottom: 24px;
  }

  .rayon-cart-items,
  .rayon-cart-summary {
    flex: 1 1 100%;
    width: 100%;
  }

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

  .rayon-cart-item {
    padding: 16px;
  }

  .rayon-cart-item__thumb {
    width: 80px;
    height: 88px;
  }

  .rayon-cart-item__name,
  .rayon-cart-item__name a {
    font-size: 16px;
  }

  .rayon-cart-item__price,
  .rayon-cart-item__price .woocommerce-Price-amount,
  .rayon-cart-item__price .woocommerce-Price-currencySymbol,
  .rayon-cart-item__price bdi {
    font-size: 20px !important;
  }
}