/* =========================
   CART PAGE
========================= */

.cart-page {
    max-width: 1050px;
    padding-top: 70px;
    padding-bottom: 90px;
  }
  
  .cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 35px;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 24px;
  }
  
  .cart-header h1 {
    font-size: 42px;
    font-weight: 600;
    letter-spacing: -0.03em;
    margin-bottom: 0;
  }
  
  .checkout-btn {
    background: #111;
    color: #fff;
    padding: 14px 28px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 10px 24px rgba(0,0,0,0.16);
  }
  
  .checkout-btn:hover {
    background: #A27B5C;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(0,0,0,0.22);
  }
  
  .cart-items {
    display: flex;
    flex-direction: column;
    gap: 22px;
  }
  
  .cart-card {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 24px;
    align-items: center;
    background: #fff;
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.07);
    border: 1px solid rgba(0,0,0,0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }
  
  .cart-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 55px rgba(0,0,0,0.1);
  }
  
  .cart-image {
    width: 150px;
    height: 150px;
    background: #f5f5f7;
    border-radius: 20px;
    overflow: hidden;
    display: grid;
    place-items: center;
  }
  
  .cart-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .cart-info h3 {
    font-size: 21px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
  }
  
  .cart-price {
    font-size: 16px;
    font-weight: 500;
    color: #666;
    margin-bottom: 18px;
  }
  
  .cart-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
  }
  
  .qty-control {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: #f5f5f7;
    border-radius: 999px;
    padding: 6px;
  }
  
  .qty-control button {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    padding: 0;
    display: grid;
    place-items: center;
    background: #fff;
    color: #111;
    font-size: 18px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }
  
  .qty-control button:hover {
    background: #111;
    color: #fff;
    transform: scale(1.05);
  }
  
  .qty-control span {
    min-width: 20px;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
  }
  
  .remove-btn {
    background: transparent;
    color: #999;
    padding: 8px 0;
    font-size: 14px;
    font-weight: 500;
  }
  
  .remove-btn:hover {
    background: transparent;
    color: #111;
    transform: translateY(-1px);
  }
  
  .cart-total {
    margin-top: 35px;
    padding-top: 28px;
    border-top: 1px solid #e5e5e5;
    text-align: right;
    font-size: 30px;
    font-weight: 600;
    letter-spacing: -0.03em;
  }
  
  /* Empty cart placeholder */
  .cart-empty {
    background: #f5f5f7;
    border-radius: 28px;
    padding: 70px 30px;
    text-align: center;
    color: #666;
  }
  
  .cart-empty h2 {
    color: #111;
    font-size: 28px;
    margin-bottom: 8px;
  }
  
 /* =========================
   CART RESPONSIVE COMPACT
========================= */
@media (max-width: 480px) {
    .cart-page {
      padding-top: 30px;
      padding-bottom: 50px;
    }
  
    .cart-header {
      flex-direction: column;
      align-items: flex-start;
      margin-bottom: 20px;
      padding-bottom: 16px;
      margin-top: 50px;
    }
  
    .cart-header h1 {
      font-size: 28px;
      margin-bottom: 12px;
    }
  
    .checkout-btn {
      width: 100%;
      padding: 10px 0;
      font-size: 14px;
      border-radius: 24px;
    }
  
    .cart-card {
      grid-template-columns: 80px 1fr;
      gap: 12px;
      padding: 12px;
      border-radius: 16px;
    }
  
    .cart-image {
      width: 80px;
      height: 80px;
      border-radius: 12px;
    }
  
    .cart-info h3 {
      font-size: 16px;
      margin-bottom: 4px;
    }
  
    .cart-price {
      font-size: 14px;
      margin-bottom: 8px;
    }
  
    .cart-actions {
      flex-direction: column;
      align-items: flex-start;
      gap: 8px;
    }
  
    .qty-control {
      gap: 8px;
      padding: 4px;
    }
  
    .qty-control button {
      width: 28px;
      height: 28px;
      font-size: 14px;
    }
  
    .qty-control span {
      font-size: 14px;
    }
  
    .remove-btn {
      font-size: 12px;
      padding: 4px 0;
    }
  
    .cart-total {
      font-size: 22px;
      margin-top: 20px;
      padding-top: 16px;
    }
  
    .cart-empty {
      padding: 40px 16px;
    }
  
    .cart-empty h2 {
      font-size: 22px;
    }
  
    .cart-empty p {
      font-size: 14px;
    }
  }

  .cart-empty-icon {
    font-size: 46px;
    margin-bottom: 14px;
  }
  
  .continue-shopping-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 22px;
    padding: 13px 22px;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
  }
  
  .continue-shopping-btn:hover {
    background: #A27B5C;
    color: #fff;
    transform: translateY(-2px);
  }
  
  .continue-shopping-btn.secondary {
    background: #f5f5f7;
    color: #111;
  }
  
  .continue-shopping-btn.secondary:hover {
    background: #111;
    color: #fff;
  }
  
  .checkout-disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
  }
  
  .cart-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
  }
  
  .cart-line-total {
    font-size: 18px;
    color: #111;
    white-space: nowrap;
  }
  
  .cart-image-placeholder {
    font-size: 34px;
  }
  
  .cart-removing {
    opacity: 0;
    transform: translateX(24px) scale(0.98);
    transition: opacity 0.22s ease, transform 0.22s ease;
  }
  
  .cart-summary {
    max-width: 430px;
    margin-left: auto;
    background: #fff;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.07);
    border: 1px solid rgba(0,0,0,0.05);
  }
  
  .cart-summary > div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 10px 0;
    font-size: 16px;
  }
  
  .cart-summary span {
    color: #666;
    font-weight: 500;
  }
  
  .cart-summary strong {
    color: #111;
  }
  
  .cart-summary p {
    margin: 12px 0 18px;
    color: #777;
    font-size: 14px;
    line-height: 1.5;
  }
  
  .cart-summary-actions {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-top: 18px !important;
    border-top: 1px solid #eee;
  }
  
  .summary-checkout-btn {
    box-shadow: none;
  }
  
  @media (max-width: 600px) {
    .cart-title-row {
      flex-direction: column;
      gap: 4px;
    }
  
    .cart-line-total {
      font-size: 15px;
    }
  
    .cart-summary {
      max-width: 100%;
      margin-left: 0;
      padding: 18px;
    }
  
    .cart-summary-actions {
      flex-direction: column;
      align-items: stretch;
    }
  
    .cart-summary-actions .continue-shopping-btn,
    .cart-summary-actions .checkout-btn {
      width: 100%;
    }
  }
  /* =========================
   FAST CART POLISH PATCH
========================= */

.cart-toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 99999;
  transform: translate(-50%, 18px);
  background: #111;
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 14px 34px rgba(0,0,0,0.22);
  opacity: 0;
  pointer-events: none;
  transition: 0.25s ease;
}

.cart-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.cart-toast.error {
  background: #b42318;
}

.cart-skeleton-card {
  height: 194px;
  border-radius: 24px;
  background: linear-gradient(90deg, #f2f2f2 25%, #fafafa 40%, #f2f2f2 65%);
  background-size: 220% 100%;
  animation: cartSkeleton 1.1s infinite linear;
}

@keyframes cartSkeleton {
  from {
    background-position: 100% 0;
  }

  to {
    background-position: -100% 0;
  }
}

.error-state {
  background: #fff7f7;
}

.checkout-btn,
.qty-control button,
.remove-btn,
.continue-shopping-btn,
.cart-card {
  will-change: transform;
}

.cart-card {
  animation: cartFadeIn 0.28s ease both;
}

@keyframes cartFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cart-empty {
  border: 1px solid rgba(0,0,0,0.06);
}

.cart-empty p {
  max-width: 460px;
  margin: 0 auto;
  line-height: 1.6;
}

@media (max-width: 600px) {
  .cart-toast {
    width: calc(100% - 32px);
    text-align: center;
    bottom: 18px;
  }

  .cart-skeleton-card {
    height: 124px;
    border-radius: 18px;
  }

  .cart-card:hover {
    transform: none;
  }
}