﻿:root {
  --stroke-0: #717182;
  --color-stroke: #cfcece;
  --color-inputs: rgba(208, 232, 255, 0.3);
  --bg-page: #f8f9fa;
  --bg-app: #f8f9fa;
  --card-bg: #ffffff;
  --text-main: #0a0a0a;
  --text-muted: #717182;
  --text-dark-muted: #2c3e50;
  --accent: #fac24e;
  --wa: #28dd64;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Uncut Sans", "Inter", "Segoe UI", sans-serif;
  background: var(--bg-page);
  color: var(--text-main);
}

button {
  font-family: inherit;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.app {
  width: 100%;
  min-height: 100vh;
  background: var(--bg-app);
}

.mobile-header {
  height: 78px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 8px;
}

.brand-logo {
  width: 163px;
  height: 45px;
  object-fit: cover;
}

.content-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(12px, 3vw, 40px) 32px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 24px;
}

.main-column,
.summary-column {
  width: min(100%, 360px);
  margin: 0 auto;
}

.spacer-top {
  height: 20px;
}

.spacer-bottom {
  height: 78px;
}

.card {
  width: 100%;
  background: var(--card-bg);
  border: 1.1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  padding: 21px;
}

.shipping-card,
.config-card {
  margin-bottom: 24px;
}

h2 {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  color: var(--text-main);
}

.pill-row {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.pill {
  height: 28px;
  min-width: 117px;
  padding: 4px 24px;
  border: 1px solid var(--color-stroke);
  border-radius: 8px;
  font-size: 12px;
  line-height: 18px;
  font-weight: 500;
  color: #010101;
  background: #fff;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.pill.is-active {
  border-color: transparent;
  background: var(--accent);
}

.shipping-options .pill {
  flex: 1 1 0;
  min-width: 0;
  padding-left: 0;
  padding-right: 0;
}

.helper {
  margin: 16px 0 0;
  font-size: 11px;
  line-height: 16px;
  color: var(--text-dark-muted);
}

.field-group {
  margin-top: 16px;
}

.field-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  line-height: 21px;
  font-weight: 500;
  color: #373741;
}

.field-label img {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.muted {
  color: var(--text-muted);
  font-weight: 400;
}

.type-row {
  gap: 16px;
  margin-top: 8px;
}

.type-row .type-pill {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  padding: 4px 10px;
}

.number-input {
  margin-top: 8px;
  height: 36px;
  border-radius: 10px;
  border: 1.1px solid rgba(0, 0, 0, 0.1);
  background: #f8f9fa;
  display: flex;
  align-items: center;
  padding: 0 13px;
  font-size: 14px;
  line-height: 21px;
}

.quantity-grid {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.qty-btn {
  height: 28px;
  border: 1px solid var(--color-stroke);
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
  line-height: 18px;
  font-weight: 500;
  color: var(--text-main);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.qty-btn.is-active {
  border-color: transparent;
  background: var(--accent);
}

.dropdown {
  margin-top: 8px;
  width: 100%;
  height: 36px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  background: var(--color-inputs);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0 14px;
  position: relative;
}

.dropdown img {
  width: 16px;
  height: 16px;
  pointer-events: none;
}

.dropdown-select {
  width: 100%;
  height: 100%;
  border: 0;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  color: #4b5563;
  font-size: 14px;
  line-height: 21px;
  padding: 0 28px 0 8px;
  cursor: pointer;
}

.dropdown-select:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.size-group {
  margin-top: 18px;
}

.slider-wrap {
  margin-top: 14px;
  width: 100%;
}

.size-slider {
  --slider-percent: 50%;
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  max-width: 100%;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    var(--accent) 0,
    var(--accent) var(--slider-percent),
    #e8eaef var(--slider-percent),
    #e8eaef 100%
  );
  outline: none;
}

.size-slider::-webkit-slider-runnable-track {
  height: 8px;
  background: transparent;
  border-radius: 999px;
}

.size-slider::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -4px;
  border-radius: 50%;
  border: 1px solid #1f2328;
  background: var(--accent);
}

.size-slider::-moz-range-track {
  height: 8px;
  background: transparent;
  border-radius: 999px;
}

.size-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid #1f2328;
  background: var(--accent);
}

.divider {
  margin-top: 16px;
  border-top: 1.1px solid rgba(0, 0, 0, 0.15);
}

.price-block {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.price-label {
  margin: 0;
  font-size: 14px;
  line-height: 21px;
}

.price-line {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.price-value {
  font-size: 36px;
  line-height: 54px;
  font-weight: 700;
}

.price-currency {
  font-size: 18px;
  line-height: 27px;
  font-weight: 600;
}

.estimate {
  margin: 10px 0 0;
  font-size: 11px;
  line-height: 27px;
  color: var(--text-dark-muted);
}

.estimate.is-error {
  color: #d14343;
}

.cta-add,
.cta-whatsapp {
  width: 100%;
  height: 50px;
  margin-top: 16px;
  border-radius: 100px;
  font-size: 15px;
  line-height: 22.5px;
  font-weight: 600;
  color: var(--text-main);
}

.cta-add {
  background: var(--accent);
}

.cta-add:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.summary-card {
  margin-top: 0;
  padding: 24px;
}

.bear-box {
  width: 150px;
  height: 150px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
}

.bear-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.empty-label {
  margin: 20px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 21px;
}

.order-items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.order-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
}

.order-item-main {
  min-width: 0;
}

.order-item-title {
  margin: 0;
  font-size: 13px;
  line-height: 18px;
  color: #374151;
  word-break: break-word;
}

.order-item-meta {
  margin: 2px 0 0;
  font-size: 12px;
  line-height: 16px;
  color: #6b7280;
  word-break: break-word;
}

.order-item-side {
  text-align: right;
  white-space: nowrap;
}

.order-item-qty {
  display: block;
  font-size: 12px;
  line-height: 16px;
  color: #4b5563;
}

.order-item-price {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  line-height: 18px;
  font-weight: 600;
  color: #111827;
}

.rows {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  line-height: 21px;
}

.row-name {
  color: var(--text-muted);
}

.row-value {
  color: var(--text-main);
}

.total-row {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.total-row span {
  font-size: 18px;
  line-height: 27px;
  font-weight: 600;
}

.total-row strong {
  font-size: 36px;
  line-height: 54px;
  font-weight: 700;
}

.cta-whatsapp {
  margin-top: 16px;
  background: var(--wa);
}

@media (min-width: 1024px) {
  .mobile-header {
    height: 96px;
  }

  .brand-logo {
    width: 240px;
    height: auto;
  }

  .content-wrap {
    padding-bottom: 40px;
  }

  .content-grid {
    grid-template-columns: minmax(420px, 560px) minmax(340px, 430px);
    column-gap: 28px;
    justify-content: center;
    align-items: start;
  }

  .main-column,
  .summary-column {
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .summary-column {
    padding-top: 20px;
  }

  .spacer-bottom {
    height: 20px;
  }
}

@media (max-width: 420px) {
  .content-wrap {
    padding-left: 12px;
    padding-right: 12px;
  }

  .card,
  .summary-card {
    padding: 16px;
  }

  .main-column,
  .summary-column {
    width: min(100%, 344.653px);
  }
}
