body.woocommerce-cart [data-cart-page] .container.pb-10 {
  max-width: 1520px;
}

body.woocommerce-cart .cart-empty-state {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(340px, 48vh, 460px);
  margin: clamp(20px, 3vw, 34px) auto 8px;
  padding: clamp(20px, 4vw, 40px);
  overflow: hidden;
  border-radius: 28px;
  background:
    radial-gradient(circle at 18% 26%, rgba(147, 197, 253, 0.28), transparent 0 30%),
    radial-gradient(circle at 82% 78%, rgba(96, 165, 250, 0.24), transparent 0 26%),
    linear-gradient(180deg, rgba(248, 251, 255, 0.72) 0%, rgba(239, 246, 255, 0.88) 48%, rgba(248, 250, 252, 0.8) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

body.woocommerce-cart .cart-empty-state__panel {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  width: min(100%, 760px);
  padding: clamp(28px, 5vw, 52px);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.74) 0%, rgba(255, 255, 255, 0.66) 100%);
  box-shadow:
    0 16px 40px rgba(148, 163, 184, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(12px);
  text-align: center;
  animation: cart-empty-panel-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

body.woocommerce-cart .cart-empty-state__icon-wrap {
  display: grid;
  place-items: center;
  width: 98px;
  height: 98px;
  margin-bottom: 18px;
  border-radius: 999px;
  color: #1e3a8a;
  background: linear-gradient(145deg, #ffffff 0%, #dbeafe 100%);
  box-shadow:
    0 16px 34px rgba(37, 99, 235, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  animation: cart-empty-icon-float 3.6s ease-in-out infinite;
}

body.woocommerce-cart .cart-empty-state__icon {
  width: 52px;
  height: 52px;
}

body.woocommerce-cart .cart-empty-state__eyebrow {
  margin: 0 0 10px;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

body.woocommerce-cart .cart-empty-state__title {
  margin: 0 0 14px;
  color: #1e293b;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.04;
}

body.woocommerce-cart .cart-empty-state__desc {
  max-width: 560px;
  margin: 0 auto;
  color: #475569;
  font-size: 17px;
  line-height: 1.75;
}

body.woocommerce-cart .cart-empty-state__actions {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 28px;
}

body.woocommerce-cart .cart-empty-state__shop-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 220px;
  min-height: 56px;
  padding: 0 30px;
  overflow: hidden;
  border-radius: 999px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 48%, #0f172a 100%);
  box-shadow:
    0 18px 34px rgba(37, 99, 235, 0.28),
    0 0 0 0 rgba(37, 99, 235, 0.18);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    filter 0.22s ease;
  animation: cart-empty-button-pulse 2.8s ease-in-out infinite;
}

body.woocommerce-cart .cart-empty-state__shop-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-135%);
  background: linear-gradient(110deg, transparent 18%, rgba(255, 255, 255, 0.2) 46%, rgba(255, 255, 255, 0.72) 50%, rgba(255, 255, 255, 0.2) 54%, transparent 82%);
  transition: transform 0.7s ease;
}

body.woocommerce-cart .cart-empty-state__shop-btn:hover,
body.woocommerce-cart .cart-empty-state__shop-btn:focus-visible {
  color: #ffffff;
  filter: saturate(1.06);
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 24px 44px rgba(37, 99, 235, 0.34),
    0 0 0 10px rgba(37, 99, 235, 0.08);
}

body.woocommerce-cart .cart-empty-state__shop-btn:hover::before,
body.woocommerce-cart .cart-empty-state__shop-btn:focus-visible::before {
  transform: translateX(135%);
}

body.woocommerce-cart .cart-empty-state__shop-btn-label,
body.woocommerce-cart .cart-empty-state__shop-btn-arrow {
  position: relative;
  z-index: 1;
}

body.woocommerce-cart .cart-empty-state__shop-btn-arrow {
  font-size: 18px;
  transition: transform 0.22s ease;
}

body.woocommerce-cart .cart-empty-state__shop-btn:hover .cart-empty-state__shop-btn-arrow,
body.woocommerce-cart .cart-empty-state__shop-btn:focus-visible .cart-empty-state__shop-btn-arrow {
  transform: translateX(4px);
}

body.woocommerce-cart .cart-empty-state__orb {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(2px);
  opacity: 0.7;
}

body.woocommerce-cart .cart-empty-state__orb--left {
  top: -34px;
  left: -38px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.34) 0%, rgba(96, 165, 250, 0.02) 72%);
  animation: cart-empty-orb-drift-left 8s ease-in-out infinite;
}

body.woocommerce-cart .cart-empty-state__orb--right {
  right: -60px;
  bottom: -70px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.24) 0%, rgba(37, 99, 235, 0.02) 74%);
  animation: cart-empty-orb-drift-right 9s ease-in-out infinite;
}

@keyframes cart-empty-panel-rise {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes cart-empty-icon-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes cart-empty-button-pulse {
  0%,
  100% {
    box-shadow:
      0 18px 34px rgba(37, 99, 235, 0.28),
      0 0 0 0 rgba(37, 99, 235, 0.18);
  }

  50% {
    box-shadow:
      0 22px 38px rgba(37, 99, 235, 0.32),
      0 0 0 8px rgba(37, 99, 235, 0.08);
  }
}

@keyframes cart-empty-orb-drift-left {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(14px, 16px, 0);
  }
}

@keyframes cart-empty-orb-drift-right {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(-12px, -16px, 0);
  }
}

body.woocommerce-cart .page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(360px, 33vw, 520px);
  gap: clamp(24px, 3vw, 48px);
  align-items: start;
}

body.woocommerce-cart .page-main {
  min-width: 0;
  overflow-x: auto !important;
  overflow-y: visible !important;
}

body.woocommerce-cart .cart-summary {
  width: 100%;
  min-width: 0;
  position: sticky;
  top: calc(var(--header-height, 56px) + 20px);
  align-self: start;
}

body.woocommerce-cart .cart-summary .card {
  border-radius: 18px;
}

body.woocommerce-cart .cart-summary .card:hover {
  box-shadow: none;
}

body.woocommerce-cart .cart-summary .card-body {
  padding: 26px 28px;
}

body.woocommerce-cart .rfq-box {
  max-width: 100%;
}

body.woocommerce-cart .cart-table {
  width: 100%;
  min-width: 880px;
  table-layout: auto;
  background: var(--color-bg-primary);
}

body.woocommerce-cart .cart-table th,
body.woocommerce-cart .cart-table td {
  padding: 18px 14px;
}

body.woocommerce-cart .cart-table th {
  font-size: 12px;
  letter-spacing: 0.08em;
}

body.woocommerce-cart .cart-table th:nth-child(1),
body.woocommerce-cart .cart-table td:nth-child(1) {
  width: 96px;
}

body.woocommerce-cart .cart-table th:nth-child(3),
body.woocommerce-cart .cart-table td:nth-child(3) {
  width: 98px;
}

body.woocommerce-cart .cart-table th:nth-child(4),
body.woocommerce-cart .cart-table td:nth-child(4) {
  width: 126px;
}

body.woocommerce-cart .cart-table th:nth-child(5),
body.woocommerce-cart .cart-table td:nth-child(5) {
  width: 126px;
  text-align: center;
}

body.woocommerce-cart .cart-table th:nth-child(6),
body.woocommerce-cart .cart-table td:nth-child(6) {
  width: 132px;
}

body.woocommerce-cart .cart-table th:nth-child(7),
body.woocommerce-cart .cart-table td:nth-child(7) {
  width: 72px;
  text-align: center;
}

body.woocommerce-cart .cart-table td:nth-child(2) a {
  display: grid !important;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 16px !important;
  align-items: center !important;
  min-width: 0;
}

body.woocommerce-cart .cart-table td:nth-child(2) img {
  width: 72px !important;
  height: 72px !important;
  border-radius: 10px !important;
  border: 1px solid var(--color-border-light);
  object-fit: cover !important;
  background: #fff;
}

body.woocommerce-cart .cart-table td:nth-child(2) span {
  display: block;
  min-width: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-text-primary);
  word-break: break-word;
}

body.woocommerce-cart .cart-table .col-sku {
  font-size: 12px;
  line-height: 1.55;
  word-break: break-word;
}

body.woocommerce-cart .cart-table td:nth-child(3) {
  color: var(--color-text-primary);
  font-weight: 500;
}

body.woocommerce-cart .cart-table td:nth-child(4),
body.woocommerce-cart .cart-table td:nth-child(6) {
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

body.woocommerce-cart .cart-table .qty-selector {
  margin: 0 auto;
}

body.woocommerce-cart .cart-table .col-actions .btn {
  min-width: 40px;
  justify-content: center;
}

body.woocommerce-cart .page-main > .mt-4.flex {
  margin-top: 20px;
}

@media (max-width: 1180px) {
  body.woocommerce-cart .page-layout {
    grid-template-columns: minmax(0, 1fr) clamp(340px, 31vw, 440px);
    gap: 28px;
  }

  body.woocommerce-cart .cart-table th,
  body.woocommerce-cart .cart-table td {
    padding: 16px 12px;
  }

  body.woocommerce-cart .cart-table th:nth-child(1),
  body.woocommerce-cart .cart-table td:nth-child(1) {
    width: 88px;
  }

  body.woocommerce-cart .cart-table th:nth-child(3),
  body.woocommerce-cart .cart-table td:nth-child(3) {
    width: 88px;
  }

  body.woocommerce-cart .cart-table th:nth-child(4),
  body.woocommerce-cart .cart-table td:nth-child(4),
  body.woocommerce-cart .cart-table th:nth-child(5),
  body.woocommerce-cart .cart-table td:nth-child(5),
  body.woocommerce-cart .cart-table th:nth-child(6),
  body.woocommerce-cart .cart-table td:nth-child(6) {
    width: 118px;
  }

  body.woocommerce-cart .cart-table {
    min-width: 840px;
  }
}

@media (max-width: 980px) {
  body.woocommerce-cart .page-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  body.woocommerce-cart .cart-summary {
    position: static;
  }
}

@media (max-width: 768px) {
  body.woocommerce-cart [data-cart-page] .container.pb-10 {
    padding-left: 12px;
    padding-right: 12px;
    padding-bottom: 32px;
  }

  body.woocommerce-cart .cart-empty-state {
    min-height: auto;
    margin-top: 18px;
    padding: 16px;
    border-radius: 22px;
  }

  body.woocommerce-cart .cart-empty-state__panel {
    padding: 26px 20px 24px;
    border-radius: 20px;
  }

  body.woocommerce-cart .cart-empty-state__icon-wrap {
    width: 88px;
    height: 88px;
    margin-bottom: 16px;
  }

  body.woocommerce-cart .cart-empty-state__title {
    font-size: 30px;
  }

  body.woocommerce-cart .cart-empty-state__desc {
    font-size: 15px;
    line-height: 1.7;
  }

  body.woocommerce-cart .cart-empty-state__shop-btn {
    width: 100%;
    min-width: 0;
    min-height: 54px;
  }

  body.woocommerce-cart .page-layout {
    gap: 18px;
  }

  body.woocommerce-cart .page-main {
    overflow: visible !important;
  }

  /* Mobile cart switches from a wide data table to item cards. */
  body.woocommerce-cart .cart-table {
    display: block;
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    background: transparent;
  }

  body.woocommerce-cart .cart-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  body.woocommerce-cart .cart-table tbody {
    display: grid;
    gap: 14px;
  }

  body.woocommerce-cart .cart-table tr {
    display: grid;
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: 16px;
    background: var(--color-bg-primary, #ffffff);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  }

  body.woocommerce-cart .cart-table th,
  body.woocommerce-cart .cart-table td {
    padding: 10px 0;
  }

  body.woocommerce-cart .cart-table td {
    display: grid;
    grid-template-columns: minmax(92px, 34%) minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    width: 100% !important;
    min-width: 0;
    border: 0;
    border-bottom: 1px solid var(--color-border-light, #edf2f7);
    text-align: left !important;
  }

  body.woocommerce-cart .cart-table td::before {
    color: var(--color-text-secondary, #64748b);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.3;
    text-transform: uppercase;
  }

  body.woocommerce-cart .cart-table td:nth-child(1)::before {
    content: "SKU";
  }

  body.woocommerce-cart .cart-table td:nth-child(3)::before {
    content: "Brand";
  }

  body.woocommerce-cart .cart-table td:nth-child(4)::before {
    content: "Unit price";
  }

  body.woocommerce-cart .cart-table td:nth-child(5)::before {
    content: "Qty";
  }

  body.woocommerce-cart .cart-table td:nth-child(6)::before {
    content: "Subtotal";
  }

  body.woocommerce-cart .cart-table td:nth-child(7)::before {
    content: "Remove";
  }

  body.woocommerce-cart .cart-table td:nth-child(2) {
    order: -1;
    display: block;
    padding-top: 0;
  }

  body.woocommerce-cart .cart-table td:nth-child(2)::before {
    content: none;
  }

  body.woocommerce-cart .cart-table td:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  body.woocommerce-cart .cart-table td:nth-child(2) a {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 12px !important;
  }

  body.woocommerce-cart .cart-table td:nth-child(2) img {
    width: 82px !important;
    height: 82px !important;
  }

  body.woocommerce-cart .cart-table td:nth-child(2) span,
  body.woocommerce-cart .cart-table .col-sku {
    word-break: normal;
    overflow-wrap: anywhere;
  }

  body.woocommerce-cart .cart-table td:nth-child(4),
  body.woocommerce-cart .cart-table td:nth-child(6) {
    justify-items: end;
    font-size: 15px;
  }

  body.woocommerce-cart .cart-table .qty-selector {
    justify-self: end;
    margin: 0;
  }

  body.woocommerce-cart .cart-table .col-actions .btn {
    justify-self: end;
    min-width: 44px;
    min-height: 44px;
  }

  body.woocommerce-cart .page-main > .mt-4.flex {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 10px;
  }

  body.woocommerce-cart .page-main > .mt-4.flex .btn {
    width: 100%;
  }

  body.woocommerce-cart .cart-summary .card-body {
    padding: 20px;
  }
}

@media (max-width: 420px) {
  body.woocommerce-cart .cart-table tr {
    padding: 12px;
    border-radius: 14px;
  }

  body.woocommerce-cart .cart-table td {
    grid-template-columns: minmax(84px, 32%) minmax(0, 1fr);
    gap: 8px;
  }

  body.woocommerce-cart .cart-table td:nth-child(2) a {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  body.woocommerce-cart .cart-table td:nth-child(2) img {
    width: 72px !important;
    height: 72px !important;
  }
}
