.cart-page {
  background: var(--hk-base-50, #f6f2ee);
  padding: 18px 0 28px;
}

.cart-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 14px;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.cart-card {
  background: #fff;
  border: 1px solid var(--hk-base-200, #e4d8cc);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(43, 43, 43, 0.05);
}

.cart-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--hk-text-primary, #2b2b2b);
  margin: 0;
}

.cart-header {
  padding: 14px 14px 10px;
}

.cart-item {
  border-bottom: 1px solid var(--hk-base-100, #efe7df);
  padding: 14px 14px 12px;
}

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

.cart-item-grid {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
}

.cart-thumb {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid #edf1f7;
}

.cart-thumb-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  font-size: 1.15rem;
  color: #98a2b3;
  border: 1px dashed #e4e7ec;
}

.cart-item-unavailable .cart-name {
  color: #667085;
  text-decoration: none;
  cursor: default;
}

.cart-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--hk-text-primary, #2b2b2b);
  margin-bottom: 4px;
  display: inline-block;
}

.cart-meta {
  color: var(--hk-text-secondary, #5c5c5c);
  font-size: 0.86rem;
  line-height: 1.4;
  margin-bottom: 10px;
}

.cart-item-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cart-qty {
  min-width: 92px;
  max-width: 92px;
  height: 38px;
  border-radius: 10px;
}

.cart-price {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--hk-text-primary, #2b2b2b);
  margin: 0;
}

.cart-remove {
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 500;
}

.cart-footer {
  border-top: 1px solid var(--hk-base-100, #efe7df);
  padding: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cart-summary-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.cart-pane {
  padding: 14px;
}

.cart-space {
  margin-bottom: 12px;
}

.cart-space-sm {
  margin-top: 10px;
}

.cart-divider {
  margin: 14px 0;
  border: 0;
  border-top: 1px solid #eef2f7;
}

.cart-field {
  margin-bottom: 10px;
  min-width: 0;
}

.cart-label {
  display: block;
  font-size: 0.86rem;
  color: var(--hk-text-secondary, #5c5c5c);
  margin-bottom: 6px;
}

.cart-label-optional {
  font-weight: 400;
  color: #98a2b3;
}

.cart-textarea {
  width: 100%;
  min-height: 72px;
  border: 1px solid var(--hk-base-200, #e4d8cc);
  border-radius: 10px;
  background: #fff;
  padding: 10px 12px;
  color: var(--hk-text-primary, #2b2b2b);
  font-size: 0.92rem;
  line-height: 1.4;
  resize: vertical;
  margin-bottom: 12px;
  font-family: inherit;
}

.cart-textarea:focus {
  border-color: var(--hk-primary, #6b7a52);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(107, 122, 82, 0.18);
}

.cart-inline {
  display: flex;
  gap: 8px;
}

.cart-input,
.cart-select {
  width: 100%;
  height: 40px;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid var(--hk-base-200, #e4d8cc);
  border-radius: 10px;
  background: #fff;
  padding: 8px 10px;
  color: #101828;
  font-size: 0.92rem;
}

.cart-address-select {
  height: 46px;
  font-size: 0.95rem;
  font-weight: 600;
  padding-right: 42px;
  border: 1px solid #cfd8e6;
  background-color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-appearance: none;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #667085 50%), linear-gradient(135deg, #667085 50%, transparent 50%);
  background-position: calc(100% - 16px) calc(50% - 2px), calc(100% - 10px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.cart-address-dropdown-btn {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  text-align: left;
  display: flex;
  align-items: center;
  color: #101828;
  box-sizing: border-box;
  position: relative;
  padding-right: 40px;
  background-image: none;
  overflow: hidden;
}

.cart-address-dropdown-btn::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #667085;
  border-bottom: 2px solid #667085;
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.cart-address-dropdown-text {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 576px) {
  .cart-pane {
    padding: 12px;
  }

  .cart-address-dropdown-btn {
    font-size: 0.86rem;
    padding-left: 10px;
    padding-right: 32px;
    height: 42px;
    width: 100%;
    max-width: 100%;
  }

  .cart-address-dropdown-btn::after {
    right: 12px;
    width: 7px;
    height: 7px;
  }

  .np-suggest-item {
    font-size: 0.86rem;
    line-height: 1.3;
    white-space: normal;
    word-break: break-word;
  }

  .cart-delivery-services {
    gap: 6px;
  }

  .cart-delivery-service {
    min-height: 34px;
    padding: 4px 8px;
  }

  .delivery-logo {
    width: 58px;
    height: 16px;
  }
}

.cart-input:focus,
.cart-select:focus {
  border-color: #6c8ef2;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(108, 142, 242, 0.15);
}

.cart-btn {
  border: 0;
  border-radius: 10px;
  height: 40px;
  padding: 0 14px;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  cursor: pointer;
}

.cart-btn-primary {
  background: #3b68f6;
  color: #fff;
}

.cart-btn-primary:hover {
  background: #2d56d8;
  color: #fff;
}

.cart-btn-secondary {
  background: #eef2f7;
  color: #1f2937;
}

.cart-btn-secondary:hover {
  background: #e3e8f1;
  color: #111827;
}

.cart-btn-outline {
  background: #fff;
  border: 1px solid #d0d8e4;
  color: #344054;
}

.cart-btn-outline:hover {
  background: #f8fafc;
  color: #1f2937;
}

.cart-btn-danger {
  background: #fff;
  border: 1px solid #f0c7ca;
  color: #c5303a;
}

.cart-btn-danger:hover {
  background: #fff4f4;
  color: #a61d2a;
}

.cart-btn-success {
  background: #0f9a6d;
  color: #fff;
}

.cart-btn-success:hover {
  background: #0b835c;
  color: #fff;
}

.cart-btn-block {
  width: 100%;
}

.cart-confirm-block {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #eef2f7;
}

.cart-confirm-btn {
  min-height: 44px;
  font-weight: 700;
}

.cart-confirm-hint {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.45;
  color: #667085;
}

.cart-delivery-services {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
}

.cart-delivery-service {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 10px;
  border: 1px solid #e4e7ec;
  border-radius: 999px;
  background: #f8fafc;
  cursor: pointer;
  min-height: 38px;
}

.cart-delivery-service.is-active {
  border-color: #6c8ef2;
  box-shadow: 0 0 0 3px rgba(108, 142, 242, 0.16);
  background: #eef4ff;
}

.delivery-logo {
  width: 72px;
  height: 20px;
  object-fit: contain;
  border-radius: 4px;
  background: #fff;
  padding: 1px 3px;
}

.cart-inline-address {
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  padding: 10px 10px 4px;
  background: #fcfdff;
}

.np-suggest-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.np-suggest-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 240px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #dbe3ee;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.14);
  z-index: 30;
  display: none;
}

.np-suggest-item {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 9px 10px;
  font-size: 0.92rem;
  color: #1f2937;
  border-bottom: 1px solid #eef2f7;
  cursor: pointer;
}

.np-suggest-item:hover {
  background: #f4f7fb;
}

.cart-copy-btn {
  margin-top: 6px;
  height: 34px;
  font-size: 0.82rem;
  padding: 0 10px;
}

.cart-copy-btn.is-copied {
  background: #e7f8ef;
  border-color: #9be5bf;
  color: #117a4e;
}

.cart-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #ecfdf3;
  color: #027a48;
  border: 1px solid #a6f4c5;
  padding: 5px 10px;
  font-size: 0.8rem;
  font-weight: 700;
}

.cart-subtitle {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 700;
}

.cart-note {
  margin: 0 0 10px;
  font-size: 0.82rem;
  color: #667085;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  color: #344054;
}

.summary-row strong {
  color: var(--hk-text-primary, #2b2b2b);
}

.pay-block {
  border-top: 1px solid #eef2f7;
  margin-top: 12px;
  padding-top: 12px;
}

@media (min-width: 992px) {
  .cart-page {
    padding: 28px 0 40px;
  }

  .cart-layout {
    grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
    gap: 16px;
  }

  .cart-pane {
    padding: 16px;
  }

  .cart-header {
    padding: 16px 16px 10px;
  }

  .cart-item {
    padding: 16px;
  }

  .cart-item-grid {
    grid-template-columns: 96px 1fr;
    gap: 14px;
  }

  .cart-thumb {
    width: 96px;
    height: 96px;
  }
}

/* Holubka warm palette harmonization */
.cart-page {
  background: var(--hk-base-50, #f6f2ee);
}

.cart-card {
  border-color: var(--hk-base-200, #e4d8cc);
  box-shadow: 0 8px 24px rgba(43, 43, 43, 0.05);
}

.cart-title,
.cart-name,
.cart-price,
.summary-row strong {
  color: var(--hk-text-primary, #2b2b2b);
}

.cart-meta,
.cart-label,
.cart-note {
  color: var(--hk-text-secondary, #5c5c5c);
}

.cart-item,
.cart-footer,
.cart-divider,
.pay-block {
  border-color: var(--hk-base-100, #efe7df);
}

.cart-input,
.cart-select,
.cart-textarea,
.cart-address-select {
  border-color: var(--hk-base-200, #e4d8cc);
}

.cart-input:focus,
.cart-select:focus,
.cart-address-select:focus,
.cart-textarea:focus {
  border-color: var(--hk-primary, #6b7a52);
  box-shadow: 0 0 0 3px rgba(107, 122, 82, 0.18);
}

.cart-badge {
  background: #e8f5e9;
  color: var(--hk-success, #4caf50);
  border-color: #cfead2;
}

.cart-btn-primary {
  background: var(--hk-primary, #6b7a52);
}

.cart-btn-primary:hover {
  background: var(--hk-primary-hover, #55633f);
}

.cart-btn-secondary {
  background: var(--hk-base-100, #efe7df);
  color: var(--hk-text-primary, #2b2b2b);
}

.cart-btn-secondary:hover {
  background: #e8ddd2;
  color: var(--hk-text-primary, #2b2b2b);
}

.cart-btn-outline {
  border-color: var(--hk-base-200, #e4d8cc);
  color: var(--hk-text-secondary, #5c5c5c);
}

.cart-btn-outline:hover {
  background: var(--hk-base-50, #f6f2ee);
  color: var(--hk-text-primary, #2b2b2b);
}

.cart-btn-success {
  background: var(--hk-accent, #d4a373);
}

.cart-btn-success:hover {
  background: var(--hk-accent-hover, #c38e5d);
}
