:root {
  color-scheme: light;
  font-family: "Inter", "Avenir Next", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  --bg: #f5f7fb;
  --bg-elevated: #ffffff;
  --ink: #172033;
  --muted: #5d677a;
  --border: #dfe6f0;
  --accent: #2563eb;
  --accent-2: #0f766e;
  --accent-3: #7c3aed;
  --shadow-soft: 0 12px 30px rgba(23, 32, 51, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 360px at 40% -10%, rgba(37, 99, 235, 0.2), transparent 50%),
    radial-gradient(920px 320px at 100% 0%, rgba(15, 118, 110, 0.16), transparent 55%),
    var(--bg);
  color: var(--ink);
}

.bg-orb {
  display: none;
}

.container {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero {
  text-align: center;
  padding-top: 2.5rem;
  padding-bottom: 2rem;
  position: relative;
}

.hero h1 {
  color: var(--accent);
}


.cart-icon-link {
  position: absolute;
  right: 1.5rem;
  top: 0.8rem;
  width: 50px;
  height: 50px;
  border-radius: 999px;
  border: 2px solid #dbe6f5;
  background: #fff;
  display: grid;
  place-items: center;
  text-decoration: none;
  color: #1d4ed8;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.1);
}

.cart-icon {
  font-size: 1.35rem;
  line-height: 1;
}

.cart-count-badge {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  font-size: 0.72rem;
  display: grid;
  place-items: center;
  padding: 0 0.25rem;
  font-weight: 700;
}

.panel-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.24rem 0.72rem;
  font-size: 0.73rem;
  font-weight: 600;
  color: #115e59;
  background: #ecfdf5;
  border: 1px solid #b7e4d8;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  margin: 0;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  margin: 1rem auto 1.1rem;
  max-width: 730px;
  color: var(--muted);
  font-size: 1.08rem;
}


.cta-button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  padding: 0.67rem 1.12rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  transition: transform 0.15s ease, opacity 0.2s ease;
}

.cta-button:hover,
button:hover {
  transform: translateY(-1px);
}

button:disabled {
  opacity: 0.72;
  cursor: not-allowed;
}

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(330px, 1fr);
  gap: 1.4rem;
  align-items: start;
  padding-bottom: 2.5rem;
}

.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 1rem;
  align-items: start;
  padding-bottom: 2.5rem;
}

.checkout-hero {
  text-align: left;
  padding-top: 2rem;
  padding-bottom: 1.1rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 0.75rem;
  color: #1d4ed8;
  font-weight: 600;
  text-decoration: none;
}

.content-section,
.stacked-panels {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.section-header h2 {
  margin-bottom: 0.35rem;
  color: #1d4ed8;
}

.section-header p {
  color: var(--muted);
  margin-top: 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.card,
.panel {
  background: linear-gradient(180deg, #fff, #f8fbff);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem;
}

.card {
  box-shadow: var(--shadow-soft);
}

.panel {
  box-shadow: 0 8px 22px rgba(23, 22, 20, 0.05);
  border-top: 4px solid var(--accent);
}

.card-media {
  border-radius: 12px;
  height: 128px;
  padding: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.85rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.card-media::before {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  right: -26px;
  bottom: -34px;
  background: rgba(255, 255, 255, 0.15);
}

.card-media .product-unit,
.card-media .product-tag {
  position: relative;
  z-index: 1;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.product-unit {
  opacity: 0.82;
}

.product-tag {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 0.2rem 0.45rem;
}

.card-title {
  margin: 0;
  font-size: 1.65rem;
  line-height: 1;
  letter-spacing: -0.02em;
}

.card p {
  color: var(--muted);
  margin: 0.5rem 0 0.7rem;
  min-height: 2.7rem;
}

.card-form-row {
  display: flex;
  gap: 0.58rem;
  align-items: end;
}

.card-form-row .qty-field {
  flex: 1;
}

.card button {
  white-space: nowrap;
  padding: 0.62rem 0.9rem;
  background: var(--accent);
}

.card button:hover {
  opacity: 0.95;
}

.card h3,
h2,
h3 {
  margin-top: 0;
}

.panel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

label,
input {
  display: block;
  width: 100%;
}

input {
  margin: 0.28rem 0 0.74rem;
  padding: 0.64rem 0.76rem;
  border: 1px solid #ccd7e6;
  border-radius: 10px;
  background: #fff;
  font: inherit;
}

input:focus {
  outline: 2px solid rgba(37, 99, 235, 0.2);
  border-color: var(--accent);
}

footer small {
  color: #64748b;
}

.small-note {
  color: var(--muted);
  font-size: 0.9rem;
}

.total {
  font-weight: 700;
  margin-bottom: 0;
}

#cart ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

#cart li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  background: #eff6ff;
  padding: 0.55rem 0.6rem;
  border-radius: 10px;
  color: #1e3a5f;
}

#cart button[data-remove] {
  margin-left: 0;
  padding: 0.25rem 0.62rem;
  font-size: 0.76rem;
  background: #e0ecff;
  color: #1d4ed8;
  border: 1px solid #bfd3f5;
}

#submit-request {
  background: linear-gradient(135deg, #2563eb, #4338ca);
}

.stacked-panels {
  position: sticky;
  top: 1rem;
}

footer {
  text-align: center;
  padding-bottom: 2rem;
  color: var(--muted);
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New",
    monospace;
}


.product-preview {
  min-height: 168px;
  align-items: stretch;
}

.mount-illustration {
  position: absolute;
  inset: 2.5rem 1rem 0.8rem;
  display: grid;
  place-items: center;
  z-index: 1;
}

.mount-device {
  width: 74px;
  height: 86px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 24%, rgba(17, 24, 39, 0.14) 0 2px, transparent 3px) 0 0 / 12px 12px,
    linear-gradient(180deg, #f7f2e8, #e8dfd2);
  border: 2px solid rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.25);
}

.mount-top,
.mount-bottom {
  position: absolute;
  width: 94px;
  height: 20px;
  border-radius: 7px;
  background: linear-gradient(180deg, #2d3748, #111827);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 8px 14px rgba(0, 0, 0, 0.24);
}

.mount-top {
  top: 6px;
}

.mount-top::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 2px;
  width: 14px;
  height: 14px;
  border-radius: 999px 999px 999px 0;
  background: var(--product-accent, #f97316);
  transform: rotate(25deg);
}

.mount-bottom {
  bottom: 0;
  width: 82px;
}

.product-detail {
  min-height: auto;
  margin-top: -0.25rem;
  color: #334155;
  font-size: 0.88rem;
  font-weight: 700;
}

@media (max-width: 1080px) {
  .card-title {
    font-size: 1.45rem;
  }

  .stacked-panels {
    position: static;
  }
}

@media (max-width: 950px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .checkout-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 2rem;
  }

  .cart-icon-link {
    right: 1rem;
    top: 0.3rem;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 1rem;
  }

  .card-form-row {
    flex-direction: column;
    align-items: stretch;
  }

  .card button {
    width: 100%;
  }
}

.request-summary {
  margin: 1rem 0 0;
  white-space: pre-wrap;
  color: #172033;
  background: #eff6ff;
  border: 1px solid #bfd3f5;
  border-radius: 12px;
  padding: 0.85rem;
  min-height: 6rem;
}
