/* © 2026 Allabutiker.se – Alla rättigheter förbehållna. */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f5f5;
  color: #1a1a1a;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
}

/* ── Header ── */
header {
  background: #fff;
  padding: 20px 16px 16px;
  border-bottom: 1px solid #e8e8e8;
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header h1 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

header p {
  font-size: 13px;
  color: #888;
  margin-top: 2px;
}

#lang-toggle,
.lang-toggle-btn {
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  color: #555;
  background: #f0f0f0;
  border: none;
  border-radius: 8px;
  padding: 5px 11px;
  cursor: pointer;
}

#lang-toggle:hover,
.lang-toggle-btn:hover {
  background: #e4e4e4;
  color: #111;
}

/* ── Detail nav (back + lang toggle) ── */
.detail-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 0;
}

/* ── Section headings ── */
.section-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #888;
  padding: 20px 16px 10px;
}

/* ── Offer card ── */
.card {
  background: #fff;
  margin: 0 12px 12px;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.card:active {
  transform: scale(0.98);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.card-cafe {
  font-size: 13px;
  color: #888;
  margin-bottom: 4px;
}

.card-deal {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.2;
}

.card-pricing {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}

.card-price {
  font-size: 28px;
  font-weight: 800;
  color: #1a1a1a;
}

.card-price span {
  font-size: 16px;
  font-weight: 500;
}

.card-original {
  font-size: 15px;
  color: #bbb;
  text-decoration: line-through;
}

.card-meta {
  display: flex;
  gap: 14px;
  font-size: 13px;
  color: #666;
  margin-bottom: 16px;
}

.card-meta span::before {
  margin-right: 4px;
}

.card-countdown {
  font-size: 13px;
  font-weight: 600;
  color: #c0392b;
  margin-top: 6px;
  margin-bottom: 4px;
  letter-spacing: 0.01em;
}

.card-btn {
  display: block;
  width: 100%;
  background: #1a1a1a;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 13px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
}

/* ── Offer detail page ── */
.detail-back {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  color: #555;
  padding: 0;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}

.detail-back:hover { color: #000; }

.detail-body {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  margin: 12px 12px 24px;
  padding: 24px 16px;
}

.detail-cafe {
  font-size: 13px;
  color: #888;
  margin-bottom: 4px;
}

.detail-deal {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 6px;
  line-height: 1.2;
}

.detail-desc {
  font-size: 15px;
  color: #555;
  line-height: 1.5;
  margin-bottom: 20px;
}

.detail-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 20px;
}

.detail-price {
  font-size: 36px;
  font-weight: 800;
}

.detail-price span { font-size: 18px; font-weight: 500; }

.detail-original {
  font-size: 16px;
  color: #bbb;
  text-decoration: line-through;
}

.detail-countdown {
  font-size: 18px;
  font-weight: 700;
  color: #c0392b;
  text-align: center;
  margin: -12px 0 20px;
}

.detail-info {
  background: #f5f5f5;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detail-info-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.detail-info-row .label { color: #888; }
.detail-info-row .value { font-weight: 600; }

.detail-rules {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 24px;
}

.detail-rule {
  font-size: 13px;
  color: #666;
  display: flex;
  align-items: center;
  gap: 6px;
}

.detail-rule::before {
  content: "•";
  color: #bbb;
}

/* ── Code box ── */
.code-box {
  border: 2px dashed #ccc;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  margin-bottom: 20px;
}

.code-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #aaa;
  margin-bottom: 8px;
}

.code-value {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: 6px;
}

.code-hint {
  font-size: 14px;
  color: #888;
  margin-top: 10px;
}

/* ── Hidden utility ── */
.hidden { display: none !important; }

/* ── Footer ── */
.site-footer {
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 0.75rem;
  color: #bbb;
}
