.workspace-shop-page {
  background: linear-gradient(180deg, #ffffff 0%, #e7e4f1 100%);
}

.shop-cart {
  padding-block: clamp(1.5rem, 2.8vw, 2.4rem);
}

.shop-cart__header h1 {
  margin: 0 0 0.8rem;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.02em;
}

.shop-cart__layout {
  display: grid;
  grid-template-columns: 1.9fr 320px;
  gap: 1.35rem;
  align-items: start;
}

.shop-cart__items,
.shop-cart__summary {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 18px;
  padding: 1.05rem;
}

.shop-cart__items {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.shop-cart__table-head,
.shop-cart__row {
  display: grid;
  min-width: 720px;
  grid-template-columns: minmax(280px, 1fr) 116px 98px 132px 54px;
  align-items: center;
  gap: 0.95rem;
}

.shop-cart__table-head {
  padding: 0.45rem 0.65rem 0.95rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.14);
  font-size: 0.95rem;
  font-weight: 700;
  color: #1f2937;
}

.shop-cart__row {
  padding: 1rem 0.65rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  transition: background-color 0.14s ease;
}

.shop-cart__row:hover {
  background: rgba(236, 242, 251, 0.35);
}

.shop-cart__cell--item {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.shop-cart__item-copy {
  display: grid;
  gap: 0.28rem;
}

.shop-cart__thumb {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: #252a2d;
  background: linear-gradient(145deg, rgba(231, 228, 241, 0.95), rgba(218, 208, 236, 0.85));
}

.shop-cart__name {
  font-size: 1.05rem;
  font-weight: 650;
  line-height: 1.2;
  color: #111827;
}

.shop-cart__item-note {
  font-size: 0.85rem;
  color: #475569;
  line-height: 1.35;
  max-width: 38ch;
}

.shop-cart__qty {
  width: 86px;
  height: 40px;
  border: 1px solid rgba(15, 23, 42, 0.2);
  border-radius: 8px;
  text-align: center;
}

.shop-cart__cell--subtotal {
  font-size: 1.02rem;
  font-weight: 720;
  color: #111827;
}

.shop-cart__icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.2);
  background: #fff;
  color: #243041;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.shop-cart__icon-btn svg {
  width: 18px;
  height: 18px;
}


.shop-cart__icon-btn {
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, color 0.16s ease;
}

.shop-cart__icon-btn:hover,
.shop-cart__icon-btn:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(200, 0, 0, 0.5);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.16);
  color: #c80000;
}

.shop-cart__icon-btn--primary:hover,
.shop-cart__icon-btn--primary:focus-visible {
  color: #fff;
  border-color: transparent;
}

.shop-cart__icon-btn--primary {
  color: #fff;
  border-color: transparent;
  background: #c80000;
}

.shop-cart__icon-btn:disabled,
.shop-cart__icon-btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
  box-shadow: none;
}

.shop-cart__icon-btn:disabled:hover,
.shop-cart__icon-btn:disabled:focus-visible,
.shop-cart__icon-btn[aria-disabled="true"]:hover,
.shop-cart__icon-btn[aria-disabled="true"]:focus-visible {
  transform: none;
  border-color: rgba(15, 23, 42, 0.2);
  box-shadow: none;
  color: inherit;
}

.shop-cart__summary h2 {
  margin: 0 0 0.8rem;
}

.shop-cart__summary-row {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
}

.shop-cart__summary-row--total {
  font-size: 1.22rem;
  font-weight: 700;
}

.shop-cart__checkout-hint {
  margin: 0.55rem 0 0;
  font-size: 0.82rem;
  color: rgba(15, 23, 42, 0.68);
}

.shop-cart__checkout-hint a {
  margin-left: 0.4rem;
  font-weight: 650;
  color: #c80000;
  text-decoration: none;
}

.shop-cart__checkout-hint a:hover,
.shop-cart__checkout-hint a:focus-visible {
  text-decoration: underline;
}

.shop-cart__checkout-actions {
  display: flex;
  gap: 0.6rem;
  padding-top: 0.85rem;
}

.shop-cart__empty {
  margin: 0;
  padding: 1rem 0.5rem;
}

@media (max-width: 980px) {
  .shop-cart__layout {
    grid-template-columns: 1fr;
  }

  .shop-cart__table-head,
  .shop-cart__row {
    grid-template-columns: 1.4fr 0.7fr 0.7fr 0.8fr 44px;
  }
}


.shop-cart__tax-controls {
  display: grid;
  gap: 0.5rem;
  margin: 0.5rem 0 0.2rem;
  padding-bottom: 0.35rem;
}

.shop-cart__tax-controls label {
  display: grid;
  gap: 0.25rem;
  font-size: 0.9rem;
  color: #334155;
}

.shop-cart__tax-controls input[type="text"],
.shop-cart__tax-controls select {
  height: 34px;
  border: 1px solid rgba(15, 23, 42, 0.2);
  border-radius: 8px;
  padding: 0 0.55rem;
  background: #fff;
}

.shop-cart__tax-note {
  margin: 0;
  font-size: 0.84rem;
  color: #475569;
  line-height: 1.5;
}


.shop-cart__quote-status {
  margin: 0.65rem 0 0;
  font-size: 0.84rem;
  color: #0f766e;
  min-height: 1.2rem;
}


.shop-cart {
  position: relative;
}

.workspace-shop-page .shop-cart-fab {
  position: absolute;
  top: 0.95rem;
  right: 0;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid #252a2d;
  background: #252a2d;
  color: #ffffff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 24px rgba(37, 42, 45, 0.3);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.workspace-shop-page .shop-cart-fab:hover,
.workspace-shop-page .shop-cart-fab:focus-visible {
  transform: translateY(-1px);
  border-color: #c80000;
  box-shadow: 0 16px 28px rgba(37, 42, 45, 0.38);
}

.workspace-shop-page .shop-cart-fab__icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
}

.workspace-shop-page .shop-cart-fab__icon svg {
  width: 100%;
  height: 100%;
}

.workspace-shop-page .shop-cart-fab strong {
  position: absolute;
  top: -4px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  padding: 0 4px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #252a2d;
  background: #f48509;
  border: 1px solid #ffffff;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}


@media (max-width: 640px) {
  .shop-cart {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .shop-cart__items,
  .shop-cart__summary {
    padding: 0.75rem;
    border-radius: 14px;
  }

  .shop-cart__table-head,
  .shop-cart__row {
    min-width: 680px;
  }

  .workspace-shop-page .shop-cart-fab {
    position: fixed;
    right: max(14px, env(safe-area-inset-right));
    bottom: max(18px, env(safe-area-inset-bottom));
    top: auto;
    z-index: 1200;
  }
}
