/* Storefront styling for Cayanide website templates, license tiers and service add-ons. */

.wt-page {
  --wt-ink: #0f172a;
  --wt-muted: #64748b;
  --wt-line: #e2e8f0;
  --wt-accent: #d4a017;
  --wt-surface: #ffffff;
  --wt-surface-alt: #f8fafc;
  background: var(--wt-surface-alt);
}

.wt-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.wt-hero {
  padding: 72px 0 40px;
  text-align: center;
}

.wt-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--wt-ink);
  margin: 0 0 14px;
}

.wt-hero p {
  max-width: 640px;
  margin: 0 auto;
  color: var(--wt-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.wt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  padding: 24px 0 80px;
}

.wt-card {
  background: var(--wt-surface);
  border: 1px solid var(--wt-line);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.wt-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.wt-card-media {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f8fafc;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.wt-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wt-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.wt-card-body h2 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--wt-ink);
}

.wt-card-headline {
  color: var(--wt-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
  flex: 1;
}

.wt-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.wt-chip {
  font-size: 0.72rem;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--wt-surface-alt);
  border: 1px solid var(--wt-line);
  color: var(--wt-muted);
}

.wt-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--wt-line);
}

.wt-price {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--wt-ink);
}

.wt-price small {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--wt-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.wt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: var(--wt-ink);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.wt-btn:hover { opacity: 0.88; }
.wt-btn[disabled] { opacity: 0.5; cursor: not-allowed; }

.wt-btn-ghost {
  background: transparent;
  color: var(--wt-ink);
  border-color: var(--wt-line);
}

.wt-btn-block { width: 100%; }

/* ---------- Detail page ---------- */

.wt-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr);
  gap: 40px;
  padding: 48px 0 80px;
  align-items: start;
}

.wt-detail h1 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  letter-spacing: -0.02em;
  color: var(--wt-ink);
}

.wt-detail-headline {
  color: var(--wt-muted);
  font-size: 1.05rem;
  margin: 0 0 24px;
}

.wt-preview {
  border: 1px solid var(--wt-line);
  border-radius: 16px;
  overflow: hidden;
  background: #0f172a;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
}

.wt-preview img { width: 100%; height: 100%; object-fit: cover; }

.wt-section { margin-top: 34px; }

.wt-section h3 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--wt-muted);
  margin: 0 0 14px;
}

.wt-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}

.wt-list li {
  position: relative;
  padding-left: 24px;
  color: var(--wt-ink);
  font-size: 0.95rem;
  line-height: 1.5;
}

.wt-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--wt-accent);
  font-weight: 700;
}

/* ---------- Buy panel ---------- */

.wt-panel {
  position: sticky;
  top: 96px;
  background: var(--wt-surface);
  border: 1px solid var(--wt-line);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.wt-panel-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid var(--wt-line);
}

.wt-panel-total .wt-price { font-size: 1.65rem; }

.wt-field-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--wt-muted);
  margin: 0 0 10px;
  display: block;
}

.wt-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid var(--wt-line);
  border-radius: 11px;
  cursor: pointer;
  margin-bottom: 8px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.wt-option:hover { border-color: #cbd5e1; }

.wt-option input { margin-top: 3px; accent-color: var(--wt-ink); }

.wt-option.is-selected {
  border-color: var(--wt-ink);
  background: var(--wt-surface-alt);
}

.wt-option-body { flex: 1; min-width: 0; }

.wt-option-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-weight: 600;
  color: var(--wt-ink);
  font-size: 0.96rem;
}

.wt-option-note {
  display: block;
  color: var(--wt-muted);
  font-size: 0.83rem;
  line-height: 1.45;
  margin-top: 3px;
}

.wt-note {
  font-size: 0.8rem;
  color: var(--wt-muted);
  line-height: 1.5;
  margin: 0;
}

.wt-feedback {
  font-size: 0.88rem;
  border-radius: 9px;
  padding: 10px 12px;
  display: none;
}

.wt-feedback.is-error { display: block; background: #fef2f2; color: #b91c1c; }
.wt-feedback.is-success { display: block; background: #f0fdf4; color: #15803d; }

.wt-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--wt-muted);
}

@media (max-width: 900px) {
  .wt-detail { grid-template-columns: 1fr; gap: 28px; }
  .wt-panel { position: static; }
  .wt-hero { padding: 48px 0 28px; }
}
