/* Cart / checkout / orders */

.shop-page {
  padding: 28px 0 56px;
  background:
    radial-gradient(ellipse 70% 40% at 0% 0%, rgba(230, 126, 34, 0.08), transparent 55%),
    linear-gradient(180deg, var(--color-bg-soft, #f7f7f5) 0%, #fff 45%);
  min-height: 55vh;
}

.shop-page h1 {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--color-text, #1a1a1a);
}

.shop-lead {
  color: var(--color-text-muted, #666);
  margin: 0 0 12px;
}

.shop-hint {
  margin: 0 0 20px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff6e8;
  color: #8a5a00;
  font-size: 0.92rem;
}

.shop-empty {
  text-align: center;
  padding: 48px 16px;
  border: 1px dashed var(--border, #ddd);
  border-radius: 14px;
  background: #fff;
}

.shop-empty a {
  color: var(--main, #e67e22);
  font-weight: 700;
}

.shop-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.7fr);
  gap: 24px;
  align-items: start;
}

.shop-lines {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.shop-line {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 14px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--border, #e8e8e8);
  border-radius: 12px;
}

.shop-line__img {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  background: #f4f4f4;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shop-line__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.shop-line__name {
  font-weight: 700;
  margin: 0 0 4px;
  font-size: 0.98rem;
}

.shop-line__meta {
  font-size: 0.82rem;
  color: #777;
  margin: 0 0 8px;
}

.shop-line__qty {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.shop-line__qty input {
  width: 64px;
  padding: 6px 8px;
  border: 1px solid var(--border, #ddd);
  border-radius: 8px;
  text-align: center;
  direction: ltr;
}

.shop-line__qty button,
.shop-btn {
  border: 0;
  border-radius: 10px;
  padding: 8px 14px;
  font-weight: 700;
  cursor: pointer;
  background: var(--main, #e67e22);
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.shop-btn--ghost {
  background: transparent;
  color: #666;
  border: 1px solid var(--border, #ddd);
}

.shop-btn--block {
  width: 100%;
  padding: 12px 16px;
}

.shop-line__price {
  text-align: left;
  font-weight: 800;
  white-space: nowrap;
  color: var(--main, #e67e22);
}

.shop-summary {
  position: sticky;
  top: calc(var(--header-height, 74px) + 12px);
  background: #fff;
  border: 1px solid var(--border, #e8e8e8);
  border-radius: 14px;
  padding: 18px;
}

.shop-summary h2 {
  font-size: 1.05rem;
  margin: 0 0 14px;
}

.shop-summary__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.shop-summary__total {
  font-weight: 800;
  font-size: 1.15rem;
  border-top: 1px solid var(--border, #eee);
  padding-top: 12px;
  margin-top: 8px;
}

.shop-form {
  display: grid;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--border, #e8e8e8);
  border-radius: 14px;
  padding: 18px;
}

.shop-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.shop-form input,
.shop-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border, #ddd);
  border-radius: 10px;
  font: inherit;
}

.shop-form textarea {
  min-height: 90px;
  resize: vertical;
}

.shop-orders {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shop-order-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--border, #e8e8e8);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
}

.shop-order-row:hover {
  border-color: var(--main, #e67e22);
}

.shop-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: #f1f1f1;
}

.shop-badge--paid { background: #e8f7ee; color: #1b7a3d; }
.shop-badge--pending { background: #fff6e8; color: #b86b00; }
.shop-badge--failed { background: #fdecec; color: #b42318; }

.shop-order-detail {
  background: #fff;
  border: 1px solid var(--border, #e8e8e8);
  border-radius: 14px;
  padding: 18px;
}

.shop-order-detail table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}

.shop-order-detail th,
.shop-order-detail td {
  padding: 10px 8px;
  border-bottom: 1px solid #eee;
  text-align: right;
  font-size: 0.92rem;
}

.pd-qty-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.pd-qty-row label {
  font-weight: 600;
  font-size: 0.9rem;
}

.pd-qty-row input {
  width: 72px;
  padding: 8px 10px;
  border: 1px solid var(--border, #ddd);
  border-radius: 10px;
  text-align: center;
  direction: ltr;
}

.pd-actions .btn-cart {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 18px;
  font-weight: 700;
  font-size: 1rem;
  border: 0;
  border-radius: 12px;
  background: var(--main, #e67e22);
  color: #fff;
  cursor: pointer;
}

.pd-actions .btn-cart:hover {
  background: var(--main-2, #cf6d17);
}

.pd-actions .btn-call {
  grid-column: auto;
}

@media (max-width: 900px) {
  .shop-layout {
    grid-template-columns: 1fr;
  }
  .shop-summary {
    position: static;
  }
  .shop-line {
    grid-template-columns: 64px minmax(0, 1fr);
  }
  .shop-line__price {
    grid-column: 2;
    text-align: right;
  }
}
