/* Novira — Checkout header (reusable) + Shipping step */

.ds-checkout-header {
  background: var(--ds-bg);
  border-bottom: 1px solid var(--ds-border);
  position: sticky;
  top: 0;
  z-index: 500;
}

.ds-checkout-header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 64px;
  padding: 12px 0;
}

.ds-checkout-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ds-text-secondary);
  text-decoration: none;
  justify-self: start;
}

.ds-checkout-back:hover {
  color: var(--ds-brand);
}

.ds-checkout-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
}

.ds-checkout-header-spacer {
  justify-self: end;
}

.ds-ship-page {
  background: var(--ds-bg-soft);
  padding: 24px 0 48px;
  min-height: calc(100vh - 64px);
}

.ds-ship-empty {
  text-align: center;
  padding: 48px 24px;
  background: var(--ds-bg);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-lg);
}

.ds-ship-empty a {
  color: var(--ds-brand);
  font-weight: 600;
}

.ds-ship-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
}

@media (min-width: 1024px) {
  .ds-ship-layout {
    grid-template-columns: 1fr 340px;
  }
}

.ds-ship-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.ds-ship-box {
  background: var(--ds-bg);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-lg);
  overflow: hidden;
  margin-bottom: 16px;
}

.ds-ship-address-row {
  display: block;
  width: 100%;
  text-align: right;
  padding: 16px 20px;
  border: none;
  border-bottom: 1px solid var(--ds-border);
  background: var(--ds-bg);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.ds-ship-address-row:last-child {
  border-bottom: none;
}

.ds-ship-address-row:hover {
  background: var(--ds-bg-soft);
}

.ds-ship-address-row.is-active {
  background: rgba(239, 64, 86, 0.04);
  box-shadow: inset 0 0 0 2px var(--ds-brand);
}

.ds-ship-address-row-inner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.ds-ship-address-icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.ds-ship-address-content {
  flex: 1;
  min-width: 0;
}

.ds-ship-address-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ds-text-secondary);
  margin-bottom: 6px;
}

.ds-ship-address-text {
  font-size: 12px;
  color: var(--ds-text-muted);
  line-height: 1.7;
}

.ds-ship-address-change {
  font-size: 12px;
  font-weight: 600;
  color: var(--ds-brand);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  padding: 0;
  margin-top: 4px;
}

.ds-ship-address-change:hover {
  text-decoration: underline;
}

.ds-ship-pickup-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.ds-ship-pickup-badge {
  font-size: 10px;
  color: #1565c0;
  background: #e3f2fd;
  padding: 4px 8px;
  border-radius: 4px;
}

.ds-ship-plus-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 20px;
  background: linear-gradient(135deg, #f3e5f5 0%, #ede7f6 100%);
  border-bottom: 1px solid var(--ds-border);
}

.ds-ship-plus-banner-text {
  font-size: 13px;
  color: #6a1b9a;
  font-weight: 600;
}

.ds-ship-plus-banner-link {
  font-size: 12px;
  font-weight: 700;
  color: #7b1fa2;
  text-decoration: none;
}

.ds-ship-time-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 16px 20px;
  border-bottom: 1px solid var(--ds-border);
}

.ds-ship-time-head-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ds-text-secondary);
}

.ds-ship-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--ds-text-muted);
  background: var(--ds-bg-soft);
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid var(--ds-border);
}

.ds-ship-time-body {
  padding: 16px 20px;
}

.ds-ship-products {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ds-border);
}

.ds-ship-product-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  background: var(--ds-bg-soft);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius);
}

.ds-ship-product-card-thumb {
  width: 88px;
  height: 88px;
  background: var(--ds-bg);
  border: 1px solid var(--ds-border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  flex-shrink: 0;
}

.ds-ship-product-card-body {
  flex: 1;
  min-width: 0;
}

.ds-ship-product-card-title {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ds-text-secondary);
  line-height: 1.5;
  margin-bottom: 10px;
  text-decoration: none;
}

.ds-ship-product-card-title:hover {
  color: var(--ds-brand);
}

.ds-ship-product-card-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}

.ds-ship-product-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ds-text-secondary);
  background: var(--ds-bg);
  border: 1px solid var(--ds-border);
  padding: 4px 10px;
  border-radius: 20px;
  width: fit-content;
}

.ds-ship-product-chip-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #424750;
  border: 1px solid var(--ds-border);
}

.ds-ship-product-meta-line {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 11px;
  color: var(--ds-text-muted);
  line-height: 1.5;
}

.ds-ship-product-meta-label {
  color: var(--ds-text-muted);
  flex-shrink: 0;
}

.ds-ship-product-meta-line .ds-ship-product-meta-label + span,
.ds-ship-product-meta-line span:last-child {
  color: var(--ds-text-secondary);
  font-weight: 500;
}

.ds-ship-product-card-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.ds-ship-product-price-old {
  font-size: 12px;
  color: var(--ds-text-muted);
  text-decoration: line-through;
}

.ds-ship-product-price {
  font-size: 15px;
  font-weight: 800;
  color: var(--ds-text-secondary);
}

.ds-ship-qty-wrap {
  flex-shrink: 0;
  align-self: center;
}

.ds-ship-qty-control {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--ds-bg);
  border: 1px solid var(--ds-border);
  border-radius: 6px;
  padding: 2px 4px;
}

.ds-ship-qty-control button {
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  color: var(--ds-text-muted);
  font-size: 14px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ds-ship-qty-control button:hover {
  color: var(--ds-brand);
}

.ds-ship-qty-control span {
  font-size: 12px;
  font-weight: 700;
  min-width: 18px;
  text-align: center;
  color: var(--ds-text-secondary);
}

.ds-ship-cost-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.ds-ship-cost-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ds-text-muted);
}

.ds-ship-cost-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--ds-text-secondary);
}

.ds-ship-time-status {
  font-size: 12px;
  color: var(--ds-brand);
  font-weight: 600;
  margin-bottom: 16px;
}

.ds-ship-time-status.is-done {
  color: var(--ds-green);
}

.ds-ship-days {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  margin-bottom: 16px;
}

.ds-ship-days::-webkit-scrollbar {
  height: 4px;
}

.ds-ship-day {
  flex-shrink: 0;
  scroll-snap-align: start;
  min-width: 100px;
  padding: 12px 10px;
  border: 2px solid var(--ds-border);
  border-radius: 8px;
  background: var(--ds-bg);
  cursor: pointer;
  text-align: center;
  font-family: inherit;
  transition: border-color 0.2s, background 0.2s;
}

.ds-ship-day:hover {
  border-color: #c0c0c2;
}

.ds-ship-day.is-selected {
  border-color: var(--ds-text-secondary);
  border-width: 3px;
  background: var(--ds-bg-soft);
}

.ds-ship-day-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--ds-text-secondary);
  display: block;
  margin-bottom: 4px;
}

.ds-ship-day-date {
  font-size: 11px;
  color: var(--ds-text-muted);
  display: block;
  margin-bottom: 6px;
}

.ds-ship-day-price {
  font-size: 11px;
  font-weight: 600;
  color: var(--ds-text-secondary);
}

.ds-ship-slots {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ds-ship-slot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--ds-border);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.ds-ship-slot:hover {
  border-color: #c0c0c2;
}

.ds-ship-slot.is-selected {
  border-color: var(--ds-brand);
  background: rgba(239, 64, 86, 0.04);
}

.ds-ship-slot input {
  accent-color: var(--ds-brand);
}

.ds-ship-slot-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ds-text-secondary);
  flex: 1;
}

.ds-ship-slot-plus {
  font-size: 10px;
  font-weight: 700;
  color: #7b1fa2;
  background: #f3e5f5;
  padding: 4px 8px;
  border-radius: 4px;
}

.ds-ship-time-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--ds-border);
}

.ds-ship-time-footer a {
  font-size: 12px;
  font-weight: 600;
  color: var(--ds-brand);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ds-ship-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 1024px) {
  .ds-ship-sidebar {
    position: sticky;
    top: 88px;
  }
}

.ds-ship-sidebar-card {
  background: var(--ds-bg);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-lg);
  padding: 20px;
}

.ds-ship-sidebar-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  color: var(--ds-text-muted);
  margin-bottom: 14px;
}

.ds-ship-sidebar-row strong {
  font-size: 14px;
  color: var(--ds-text-secondary);
  white-space: nowrap;
}

.ds-ship-sidebar-ship {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ds-border);
}

.ds-ship-sidebar-ship-icon {
  color: var(--ds-brand);
  flex-shrink: 0;
}

.ds-ship-sidebar-ship-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ds-text-secondary);
}

.ds-ship-sidebar-ship-status {
  font-size: 12px;
  color: var(--ds-text-muted);
  margin-top: 4px;
  line-height: 1.5;
}

.ds-ship-sidebar-btn {
  width: 100%;
  padding: 12px;
  background: var(--ds-bg);
  color: var(--ds-brand);
  border: 2px solid var(--ds-brand);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.ds-ship-sidebar-btn:hover {
  background: rgba(239, 64, 86, 0.06);
}

.ds-ship-sidebar-btn.is-ready {
  background: var(--ds-brand);
  color: #fff;
}

.ds-ship-sidebar-btn.is-ready:hover {
  background: var(--ds-brand-dark);
}

.ds-ship-trust-bar {
  background: linear-gradient(180deg, var(--ds-bg-soft) 0%, var(--ds-bg) 100%);
  border-top: 1px solid var(--ds-border);
  padding: 24px 0;
  margin-bottom: 0;
}

.ds-ship-trust {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 768px) {
  .ds-ship-trust {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
}

.ds-ship-trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 20px 14px;
  background: var(--ds-bg);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-lg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s, transform 0.2s;
}

.ds-ship-trust-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.ds-ship-trust-icon {
  font-size: 28px;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ds-bg-soft);
  border-radius: 50%;
  border: 1px solid var(--ds-border);
}

.ds-ship-trust-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ds-text-secondary);
}

.ds-ship-trust-sub {
  font-size: 11px;
  color: var(--ds-text-muted);
  line-height: 1.5;
}

.ds-ship-trust-bar + .ds-footer.ds-footer--checkout {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.ds-ship-page {
  padding-bottom: 0;
}
