/* =============================================
   CROWN GEM — CART PAGE
   Step tracker · Bag items · Order summary ·
   Trust strip · You May Also Like grid
   Depends on: global.css (variables, .container)
   ============================================= */

/* ============================================================
   STEP PROGRESS TRACKER  (re-uses same pattern as checkout.css
   but class-prefixed with "cart-" to avoid conflicts)
   ============================================================ */
.cart-steps {
  background: var(--white);
  padding: 50px 0 0;
}

.cart-steps_bar {
  max-width: 520px;
  margin: 0 auto;
  border: 1px solid var(--border);
  padding: 26px 50px;
  display: flex;
  align-items: center;
}

.cart-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.cart-step_dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #C9C9C9;
  background: var(--white);
  display: block;
  flex-shrink: 0;
}

.cart-step--active .cart-step_dot {
  border-color: var(--text-dark);
  background: radial-gradient(circle, var(--text-dark) 0%, var(--text-dark) 40%, var(--white) 44%);
}

.cart-step_label {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--text-light);
  white-space: nowrap;
}

.cart-step--active .cart-step_label {
  color: var(--text-dark);
}

.cart-step_line {
  flex: 1;
  height: 1px;
  background: var(--border);
  margin: 0 -1px;
  transform: translateY(-10px);
}

/* ============================================================
   MAIN CART SECTION
   ============================================================ */
.cart-section {
  background: var(--white);
  padding: 40px 0 80px;
}

.cart-signin-line {
  font-family: var(--sans);
  font-size: 14.5px;
  color: var(--text-dark);
  margin-bottom: 36px;
}

.cart-link {
  color: var(--gold);
  text-decoration: underline;
}

/* Two-column layout */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 60px;
  align-items: start;
}

.cart-heading {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 36px;
}

/* ============================================================
   CART ITEMS
   ============================================================ */
.cart-items {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cart-item {
  display: flex;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item:first-child {
  border-top: 1px solid var(--border);
}

.cart-item_image {
  flex: 0 0 148px;
  width: 148px;
  height: 148px;
  overflow: hidden;
  background: var(--dark);
  display: block;
}

.cart-item_image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.cart-item_image:hover img {
  transform: scale(1.06);
}

.cart-item_details {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-top: 2px;
}

/* Category label + remove button row */
.cart-item_top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 8px;
}

.cart-item_category {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--gold);
}

.cart-item_remove {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #C0392B;
  background: var(--white);
  flex-shrink: 0;
  transition: background var(--transition);
}

.cart-item_remove:hover {
  background: #FBEAEA;
}

.cart-item_title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.cart-item_price {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 16px;
}

/* Qty row */
.cart-item_qty-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cart-item_qty-label {
  font-family: var(--sans);
  font-size: 14.5px;
  color: var(--text-dark);
}

.qty-stepper {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
}

.qty-stepper_btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--text-dark);
  background: var(--white);
  border: none;
  transition: background var(--transition);
}

.qty-stepper_btn:hover {
  background: var(--off-white);
}

.qty-stepper_input {
  width: 42px;
  height: 32px;
  text-align: center;
  font-family: var(--sans);
  font-size: 14.5px;
  color: var(--text-dark);
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  background: var(--white);
}

.qty-stepper_input::-webkit-inner-spin-button,
.qty-stepper_input::-webkit-outer-spin-button {
  -webkit-appearance: none;
}

/* Coupon + action buttons */
.cart-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.cart-coupon-input {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text-dark);
  border: 1px solid var(--border);
  padding: 12px 16px;
  width: 170px;
  background: var(--white);
  transition: border-color var(--transition);
}

.cart-coupon-input::placeholder {
  color: #A8A8A8;
}

.cart-coupon-input:focus {
  outline: none;
  border-color: var(--gold);
}

.cart-btn-outline {
  display: inline-flex;
  align-items: center;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-dark);
  border: 1px solid var(--border);
  background: var(--white);
  padding: 12px 20px;
  transition: border-color var(--transition), color var(--transition);
}

.cart-btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.cart-btn-gold {
  display: inline-flex;
  align-items: center;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--white);
  background: var(--gold);
  border: none;
  padding: 12px 20px;
  transition: background var(--transition);
}

.cart-btn-gold:hover {
  background: var(--gold-dark);
}

.cart-empty {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--text-light);
  margin-bottom: 24px;
}

/* ============================================================
   RIGHT COLUMN — ORDER SUMMARY + DELIVERY NOTE
   ============================================================ */
.order-summary {
  border: 1px solid var(--border);
  padding: 34px 36px 36px;
  background: var(--white);
  margin-bottom: 16px;
}

.order-summary_title {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 24px;
}

.order-summary_row {
  display: flex;
  justify-content: space-between;
  font-family: var(--sans);
  font-size: 15.5px;
  color: var(--text-dark);
  margin-bottom: 14px;
}

.order-summary_divider {
  height: 1px;
  background: var(--border);
  margin: 16px 0 18px;
}

.order-summary_row--total {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 26px;
}

.order-summary_checkout-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--gold);
  color: var(--white);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 16px 20px;
  transition: background var(--transition);
}

.order-summary_checkout-btn:hover {
  background: var(--gold-dark);
}

.delivery-note {
  border: 1px solid var(--border);
  padding: 24px 28px;
  background: var(--white);
}

.delivery-note_title {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.delivery-note_text {
  font-family: var(--sans);
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-mid);
}

/* ============================================================
   TRUST BADGES STRIP
   ============================================================ */
.trust-strip {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 52px 0;
  margin-bottom: 70px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.trust-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.trust-item--center {
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  padding: 0 40px;
}

.trust-item_title {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.4;
}

.trust-item_text {
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--text-light);
  line-height: 1.6;
}

.trust-item_payment-logos {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0;
}

.trust-pay-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  padding: 0 9px;
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.3px;
}

.trust-pay-badge--mc       { background: #EB001B; }
.trust-pay-badge--visa     { background: #1A1F71; }
.trust-pay-badge--applepay { background: var(--dark-2); font-size: 11px; padding: 0 12px; }

.trust-item_actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.trust-btn {
  display: inline-flex;
  align-items: center;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-dark);
  border: 1px solid var(--border);
  padding: 9px 16px;
  background: var(--white);
  transition: border-color var(--transition), color var(--transition);
}

.trust-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ============================================================
   YOU MAY ALSO LIKE
   ============================================================ */
.suggested-section {
  background: var(--white);
  padding: 0 0 100px;
}

.suggested-heading {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 34px;
}

.suggested-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.suggested-card {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.suggested-card_image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--dark);
  margin-bottom: 14px;
}

.suggested-card_image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.suggested-card:hover .suggested-card_image img {
  transform: scale(1.06);
}

.suggested-card_wishlist {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  backdrop-filter: blur(4px);
  transition: background var(--transition);
  z-index: 1;
}

.suggested-card_wishlist:hover {
  background: rgba(0, 0, 0, 0.6);
}

.suggested-card_info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.suggested-card_meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.suggested-card_category {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--gold);
}

.suggested-card_price {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
}

.suggested-card_title {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.4;
}

.suggested-card_detail {
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--text-light);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .cart-layout {
    grid-template-columns: 1fr 320px;
    gap: 40px;
  }
  .suggested-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }
  .cart-col--right {
    max-width: 500px;
  }
  .trust-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .trust-item--center {
    border: none;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 32px 0;
  }
  .cart-steps_bar {
    padding: 22px 20px;
  }
}

@media (max-width: 600px) {
  .cart-heading {
    font-size: 34px;
  }
  .cart-item_image {
    flex: 0 0 110px;
    width: 110px;
    height: 110px;
  }
  .suggested-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .cart-actions {
    flex-direction: column;
    align-items: flex-start;
  }
  .cart-coupon-input {
    width: 100%;
  }
}