.tshirt-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 22% 0%, rgba(216, 180, 109, 0.12), transparent 34rem),
    radial-gradient(circle at 78% 18%, rgba(184, 61, 49, 0.1), transparent 30rem),
    linear-gradient(180deg, #070b12 0%, #0d1117 52%, #06080d 100%);
  color: #f8fafc;
}

.tshirt-shell {
  width: min(1480px, calc(100% - 2rem));
  margin: 0 auto;
}

.tshirt-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(17rem, 0.32fr);
  gap: 2.5rem;
  align-items: center;
  padding: 4.5rem 0 2.4rem;
}

.tshirt-back,
.tshirt-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #b8a27c;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.tshirt-back:hover {
  color: #fff7ed;
}

.tshirt-kicker {
  margin-top: 2.4rem;
  color: #d8b46d;
}

.tshirt-hero h1 {
  max-width: 60rem;
  margin: 1rem 0 1.2rem;
  font-family: "Playfair Display", serif;
  font-size: clamp(3rem, 6.4vw, 6.8rem);
  font-weight: 700;
  line-height: 0.92;
}

.tshirt-hero p {
  max-width: 49rem;
  color: #d1d5db;
  font-size: 1rem;
  line-height: 1.8;
}

.tshirt-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.tshirt-hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(216, 180, 109, 0.25);
  border-radius: 999px;
  background: rgba(255, 247, 237, 0.05);
  color: #f5e7cc;
  padding: 0.55rem 0.8rem;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tshirt-hero-note {
  display: grid;
  gap: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 1.1rem;
  color: #eadbbf;
  font-size: 0.85rem;
  line-height: 1.5;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.24);
}

.tshirt-hero-note img {
  width: min(9rem, 74%);
  height: auto;
  opacity: 0.94;
}

.tshirt-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 25rem);
  gap: 1rem;
  align-items: start;
  padding: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 1.1rem;
  background: rgba(5, 8, 13, 0.78);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(18px);
}

.tshirt-stage-panel,
.tshirt-control-card {
  border: 1px solid rgba(31, 25, 18, 0.12);
  border-radius: 0.8rem;
  background: #12161d;
}

.tshirt-stage-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tshirt-stage-toolbar strong,
.tshirt-control-card h2 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  color: #f8fafc;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.tshirt-stage-toolbar span {
  display: block;
  margin-top: 0.25rem;
  color: #9ca3af;
  font-size: 0.78rem;
}

.tshirt-stage-actions,
.tshirt-grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.tshirt-canvas-wrap {
  padding: 1.15rem;
  overflow: auto;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    #0b0f15;
  background-size: 32px 32px;
}

#tshirt-canvas {
  width: 100%;
  max-height: 78vh;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.55rem;
  background: #fff;
  cursor: grab;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
}

.tshirt-stage-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #8b949e;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tshirt-controls {
  display: grid;
  gap: 0.85rem;
  position: sticky;
  top: 1rem;
}

.tshirt-control-card {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.14);
}

.tshirt-control-card label {
  display: grid;
  gap: 0.4rem;
  color: #d1d5db;
  font-size: 0.82rem;
}

.tshirt-control-card label span {
  color: #b9a780;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tshirt-control-card input,
.tshirt-control-card textarea,
.tshirt-control-card select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.45rem;
  background: #080b10;
  color: #f8fafc;
  padding: 0.72rem 0.8rem;
  outline: none;
}

.tshirt-control-card input:focus,
.tshirt-control-card textarea:focus,
.tshirt-control-card select:focus {
  border-color: rgba(216, 180, 109, 0.75);
  box-shadow: 0 0 0 3px rgba(216, 180, 109, 0.12);
}

.tshirt-control-card input[type="range"] {
  padding-inline: 0;
  accent-color: #d8b46d;
}

.tshirt-control-card input[type="color"] {
  min-height: 2.75rem;
  padding: 0.25rem;
}

.tshirt-control-card button,
.tshirt-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.45rem;
  background: #171c24;
  color: #e2e8f0;
  padding: 0.78rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tshirt-control-card button:hover {
  border-color: rgba(216, 180, 109, 0.72);
  background: #202631;
  color: #fff;
}

.tshirt-control-card button:disabled,
.tshirt-primary:disabled {
  cursor: wait;
  opacity: 0.58;
}

.tshirt-primary {
  width: 100%;
  border-color: #d8b46d;
  background: #d8b46d;
  color: #17110a;
}

.tshirt-primary:hover {
  background: #efd28f;
  color: #17110a;
}

.tshirt-primary.is-success {
  border-color: #34d399;
  background: #10b981;
  color: #052e1c;
}

.tshirt-spec-card dl {
  display: grid;
  gap: 0.55rem;
  margin: 0;
}

.tshirt-spec-card div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.55rem;
}

.tshirt-spec-card div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.tshirt-spec-card dt {
  color: #8b949e;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tshirt-spec-card dd {
  margin: 0;
  color: #f4e6c6;
  font-size: 0.78rem;
}

.tshirt-logo-preset {
  width: 100%;
  min-height: 8rem;
  flex-direction: column;
  background:
    linear-gradient(135deg, rgba(7, 11, 18, 0.98), rgba(22, 25, 31, 0.94)),
    linear-gradient(90deg, rgba(216, 180, 109, 0.18), transparent);
}

.tshirt-logo-preset img {
  width: min(11rem, 88%);
  height: auto;
  max-height: 5.2rem;
  object-fit: contain;
}

.tshirt-logo-preset span {
  color: #cbd5e1;
  font-size: 0.68rem;
}

.tshirt-file {
  border: 1px dashed rgba(216, 180, 109, 0.34);
  border-radius: 0.55rem;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.03);
}

.tshirt-file input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tshirt-file span {
  justify-content: center;
  color: #f8fafc !important;
  font-size: 0.78rem !important;
}

.tshirt-file small {
  color: #8b949e;
}

.tshirt-portfolio-card > p {
  margin: 0;
  color: #9ca3af;
  font-size: 0.78rem;
  line-height: 1.6;
}

.tshirt-portfolio-grid {
  display: grid;
  gap: 0.55rem;
  max-height: 24rem;
  overflow: auto;
  padding-right: 0.15rem;
}

.tshirt-portfolio-item {
  position: relative;
  display: grid !important;
  grid-template-columns: 4.2rem minmax(0, 1fr);
  gap: 0.75rem !important;
  justify-content: start !important;
  min-height: 4.9rem;
  padding: 0.45rem !important;
  text-align: left;
}

.tshirt-portfolio-item.is-selected {
  border-color: rgba(216, 180, 109, 0.8);
  background: rgba(216, 180, 109, 0.12);
  box-shadow: inset 0 0 0 1px rgba(216, 180, 109, 0.18);
}

.tshirt-portfolio-item.is-selected::after {
  content: "\2713";
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  display: grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  color: #17110a;
  background: #d8b46d;
  font-size: 0.78rem;
  font-weight: 900;
}

.tshirt-portfolio-item img {
  width: 4.2rem;
  height: 4.2rem;
  border-radius: 0.35rem;
  object-fit: cover;
}

.tshirt-portfolio-item span {
  display: grid;
  min-width: 0;
  gap: 0.2rem;
}

.tshirt-portfolio-item strong,
.tshirt-portfolio-item small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tshirt-portfolio-item strong {
  color: #f8fafc;
  font-size: 0.78rem;
  line-height: 1.3;
  text-transform: none;
  letter-spacing: 0;
}

.tshirt-portfolio-item small {
  color: #d8b46d;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tshirt-form-status {
  min-height: 1.2rem;
  color: #dbeafe;
  font-size: 0.78rem;
  line-height: 1.5;
}

.tshirt-fit-note {
  margin: 0;
  border: 1px solid rgba(216, 180, 109, 0.22);
  border-radius: 0.55rem;
  background: rgba(216, 180, 109, 0.08);
  color: #eadbbf;
  padding: 0.75rem 0.85rem;
  font-size: 0.78rem;
  line-height: 1.55;
}

.tshirt-price-estimate {
  display: grid;
  gap: 0.25rem;
  border: 1px solid rgba(52, 211, 153, 0.2);
  border-radius: 0.55rem;
  background: rgba(6, 78, 59, 0.18);
  padding: 0.85rem;
}

.tshirt-price-estimate span {
  color: #a7f3d0;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tshirt-price-estimate strong {
  color: #f8fafc;
  font-size: 1.35rem;
  font-family: "Playfair Display", serif;
}

.tshirt-price-estimate em {
  min-height: 1rem;
  color: #a7f3d0;
  font-size: 0.78rem;
  font-style: normal;
}

.tshirt-price-estimate small {
  color: #9ca3af;
  line-height: 1.5;
}

.tshirt-benefits {
  display: grid;
  gap: 0.65rem;
  border: 1px solid rgba(216, 180, 109, 0.16);
  border-radius: 0.65rem;
  background: rgba(216, 180, 109, 0.07);
  padding: 0.8rem;
}

.tshirt-benefits div,
.tshirt-benefits label {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0;
  color: #d8d4cc;
  font-size: 0.78rem;
  line-height: 1.45;
}

.tshirt-benefits i {
  color: #d8b46d;
  font-size: 1rem;
}

.tshirt-benefits input {
  width: 1rem;
  min-width: 1rem;
  height: 1rem;
  margin-top: 0.1rem;
  accent-color: #d8b46d;
}

.tshirt-form-status.is-error {
  color: #fecaca;
}

.tshirt-aftercare {
  padding: 1.2rem 0 5rem;
  color: #eadbbf;
}

.tshirt-aftercare div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.tshirt-aftercare span {
  border-top: 1px solid rgba(234, 219, 191, 0.22);
  padding-top: 0.9rem;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (max-width: 1050px) {
  .tshirt-hero,
  .tshirt-workspace {
    grid-template-columns: 1fr;
  }

  .tshirt-controls {
    position: static;
  }

  .tshirt-workspace {
    padding: 0.8rem;
  }
}

@media (max-width: 640px) {
  .tshirt-stage-toolbar,
  .tshirt-stage-actions,
  .tshirt-grid-two,
  .tshirt-aftercare div {
    grid-template-columns: 1fr;
  }

  .tshirt-hero {
    padding-top: 3rem;
  }

  .tshirt-stage-footer {
    display: grid;
  }
}
