/* Cart page + toast — aligns with site brand tokens */

.cart-banner {
  padding: 48px 0;
  text-align: center;
  background:
    radial-gradient(circle at top right, rgba(232, 140, 42, 0.14), transparent 45%),
    linear-gradient(135deg, var(--primary-light) 0%, #fff 55%, var(--bg-light) 100%);
  border-bottom: 1px solid var(--border-color);
}

.cart-banner h1 {
  margin: 0 0 8px;
  color: var(--dark);
  font-size: clamp(32px, 4vw, 42px);
  font-weight: 700;
}

.cart-banner p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.cart-banner a {
  color: var(--dark-soft);
  text-decoration: none;
}

.cart-banner a:hover {
  color: var(--primary);
}

.cart-banner span {
  margin: 0 6px;
}

.cart-card,
.summary-card {
  background: linear-gradient(180deg, #fff 0%, var(--bg-light) 160%);
  border: 1px solid var(--border-color);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
  padding: 28px;
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.cart-header h3,
.summary-title {
  margin: 0;
  color: var(--dark);
  font-size: 22px;
  font-weight: 700;
}

.cart-header span {
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--primary-light);
}

.cart-item {
  display: block;
  padding: 18px;
  margin-bottom: 14px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.cart-item:hover {
  border-color: rgba(232, 140, 42, 0.35);
  box-shadow: var(--shadow);
}

.cart-item-main {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) 130px 100px 42px;
  align-items: center;
  gap: 16px;
}

.cart-product {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.cart-product img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 14px;
  flex-shrink: 0;
  background: var(--bg-light);
}

.cart-info h5 {
  margin: 0 0 4px;
  color: var(--dark);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

.cart-info h5 a {
  color: inherit;
  text-decoration: none;
}

.cart-info h5 a:hover {
  color: var(--primary);
}

.cart-info p {
  margin: 0 0 6px;
  color: var(--text-muted);
  font-size: 13px;
}

.cart-attrs {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cart-attrs li {
  margin: 0;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--bg-light);
  color: var(--text-muted);
  font-size: 12px;
}

.cart-attrs li span {
  font-weight: 600;
  color: var(--dark);
}

.cart-unit-price {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 600;
}

.cart-custom {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, #fffaf4 0%, #fff 100%);
  border: 1px solid rgba(232, 140, 42, 0.22);
}

.cart-custom-box {
  margin-top: 14px;
  margin-bottom: 0;
}

.cart-custom-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

.cart-custom-save-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border: none;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 8px 18px rgba(232, 140, 42, 0.22);
  transition: var(--transition);
}

.cart-custom-save-btn:hover {
  background: var(--primary-dark);
  color: #fff;
}

.cart-custom-current-art {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.cart-custom-remove-art {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
}

.cart-custom-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cart-custom-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 10px;
  padding: 8px 0;
  border-top: 1px dashed rgba(0, 0, 0, 0.08);
}

.cart-custom-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.cart-custom-label {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
}

.cart-custom-value {
  color: var(--dark);
  font-size: 13px;
  line-height: 1.45;
  word-break: break-word;
  white-space: pre-wrap;
}

.cart-art-preview {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.cart-art-preview img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: #fff;
}

.cart-art-preview em {
  font-style: normal;
  font-size: 12px;
  color: var(--primary-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cart-art-file {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.cart-art-file:hover,
.cart-art-preview:hover em {
  color: var(--primary);
}

.cart-total {
  text-align: right;
  color: var(--dark);
  font-weight: 700;
  font-size: 16px;
}

.remove-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--bg-light);
  color: var(--text-muted);
  transition: var(--transition);
}

.remove-btn:hover {
  background: #fde8e4;
  color: var(--red-sale);
}

.cart-empty {
  text-align: center;
  padding: 48px 20px;
}

.cart-empty-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 28px;
}

.cart-empty h4 {
  margin: 0 0 8px;
  color: var(--dark);
}

.cart-empty p {
  margin: 0 0 20px;
  color: var(--text-muted);
}

.bw-btn-like {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(232, 140, 42, 0.28);
  transition: var(--transition);
}

.bw-btn-like:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
}

.summary-card {
  position: sticky;
  top: 100px;
}

.summary-card.is-disabled {
  opacity: 0.72;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--text-muted);
  font-size: 14px;
}

.summary-row strong {
  color: var(--dark);
}

.total-row {
  margin-top: 4px;
  font-size: 18px;
  color: var(--dark);
  font-weight: 700;
}

.total-row strong {
  color: var(--primary);
  font-size: 22px;
}

.shipping-note {
  margin: 8px 0 0;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 500;
}

.coupon-box .form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
}

.coupon-box .form-control {
  border-radius: 12px 0 0 12px;
  border-color: var(--border-color);
  min-height: 46px;
}

.apply-btn {
  border-radius: 0 12px 12px 0 !important;
  background: var(--dark) !important;
  color: #fff !important;
  border: none !important;
  padding: 0 18px;
  font-weight: 600;
}

.apply-btn {
  border:2px solid var(--primary) !important;
  color: var(--primary) !important; 
}
.apply-btn:hover {
  background: var(--primary) !important;
  color: #fff !important; 
}

.coupon-msg {
  display: block;
  margin-top: 8px;
  font-size: 12px;
}

.coupon-msg.is-success {
  color: #1f7a45;
}

.coupon-msg.is-error {
  color: var(--red-sale);
}

.checkout-btn {
  width: 100%;
  min-height: 52px;
  border: none;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 12px 28px rgba(232, 140, 42, 0.28);
  transition: var(--transition);
}

.checkout-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  color: #fff !important;
}

.cart-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  z-index: 3000;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--dark);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

/* Checkout */
.checkout-alert {
  border-radius: 14px;
  margin-bottom: 20px;
}

.checkout-card + .checkout-card {
  margin-top: 0;
}

.checkout-input {
  min-height: 46px;
  border-radius: 12px;
  border-color: var(--border-color);
}

.checkout-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(232, 140, 42, 0.15);
}

.checkout-check .form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

.checkout-payment-options {
  display: grid;
  gap: 12px;
}

.checkout-payment-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: var(--transition);
}

.checkout-payment-option:hover,
.checkout-payment-option:has(input:checked) {
  border-color: rgba(232, 140, 42, 0.45);
  background: var(--primary-light);
}

.checkout-payment-option strong {
  display: block;
  color: var(--dark);
  font-size: 15px;
}

.checkout-payment-option small {
  color: var(--text-muted);
}

.checkout-qr img {
  max-width: 180px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.checkout-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--dark-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.checkout-back-link:hover {
  color: var(--primary);
}

.summary-items {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.summary-item {
  display: block;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
}

.summary-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.summary-item-main {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.summary-item img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--bg-light);
}

.summary-item-info {
  min-width: 0;
}

.summary-item-info strong {
  display: block;
  color: var(--dark);
  font-size: 13px;
  line-height: 1.35;
}

.summary-item-info span {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
}

.summary-unit-price {
  margin-top: 2px;
}

.summary-item-total {
  color: var(--dark);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.summary-custom {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: linear-gradient(180deg, #fffaf4 0%, #fff 100%);
  border: 1px solid rgba(232, 140, 42, 0.22);
}

.summary-custom-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.summary-custom-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 8px;
  padding: 6px 0;
  border-top: 1px dashed rgba(0, 0, 0, 0.08);
}

.summary-custom-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.summary-custom-label {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
}

.summary-custom-value {
  color: var(--dark);
  font-size: 12px;
  line-height: 1.4;
  word-break: break-word;
  white-space: pre-wrap;
}

.summary-art-preview {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
}

.summary-art-preview img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.summary-art-preview em {
  font-style: normal;
  font-size: 12px;
  color: var(--primary-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.summary-art-file {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

@media (min-width: 1024px) {
  .checkout-sync-panel {
    position: sticky;
    top: 20px;
  }
}

@media (max-width: 1023px) {
  .checkout-sync-panel {
    position: static;
  }
}

@media (max-width: 991px) {
  .summary-card {
    position: static;
  }
}

@media (max-width: 767px) {
  .cart-item-main {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "product remove"
      "qty total";
  }

  .cart-product {
    grid-area: product;
  }

  .cart-qty {
    grid-area: qty;
    width: 120px;
  }

  .cart-total {
    grid-area: total;
  }

  .remove-btn {
    grid-area: remove;
  }

  .cart-product img {
    width: 64px;
    height: 64px;
  }

  .cart-custom-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .cart-footer {
    flex-direction: column;
    align-items: stretch !important;
    gap: 12px;
  }
}
