/* ============================================================
   MYSTERY BOX – Global Styles (Mobile-first)
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', 'Open Sans', sans-serif;
  background: #fff;
  color: #1a1a1a;
  min-height: 100vh;
  -webkit-tap-highlight-color: transparent;
}

/* ── TICKER BAR ──────────────────────────────────────────── */
.ticker-wrap {
  background: #c0392b;
  overflow: hidden;
  padding: 7px 0;
  width: 100%;
}
.ticker-track {
  display: flex;
  white-space: nowrap;
  animation: ticker 28s linear infinite;
  gap: 0;
}
.ticker-track span {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 0 28px;
  border-right: 1px solid rgba(255,255,255,0.25);
  flex-shrink: 0;
}
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── BRAND BAR ───────────────────────────────────────────── */
.brand-bar {
  background: #fff;
  text-align: center;
  padding: 10px 16px;
  border-bottom: 1px solid #eee;
}
.brand-name {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 4px;
  color: #1a1a1a;
}

/* ── PAGE LAYOUT ─────────────────────────────────────────── */
.page-container {
  display: flex;
  flex-direction: column;
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px;
  gap: 20px;
}
@media (min-width: 800px) {
  .page-container { flex-direction: row; align-items: flex-start; padding: 24px; gap: 32px; }
}

/* ── PRODUCT IMAGES ──────────────────────────────────────── */
.product-images { width: 100%; }
@media (min-width: 800px) { .product-images { width: 48%; flex-shrink: 0; } }

.main-image {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #f0f0f0;
  aspect-ratio: 1/1;
  position: relative;
}
.main-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

.img-placeholder.main-ph {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f8f8f8 0%, #e8e8e8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1/1;
  border-radius: 14px;
}
.ph-content { text-align: center; }
.ph-box-icon { font-size: 80px; line-height: 1; }
.ph-label { font-size: 22px; font-weight: 800; margin-top: 12px; color: #333; }
.ph-sub { font-size: 13px; color: #888; margin-top: 4px; }

.thumb-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 10px;
}
.thumb {
  border-radius: 8px;
  overflow: hidden;
  background: #f0f0f0;
  aspect-ratio: 1/1;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s;
}
.thumb:hover { border-color: #c0392b; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-placeholder.thumb-ph, .pkg-img-ph {
  width: 100%; height: 100%;
  background: #f0f0f0;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  border-radius: 8px;
}

/* ── PRODUCT INFO ────────────────────────────────────────── */
.product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ── REVIEW CAROUSEL ─────────────────────────────────────── */
.review-carousel {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 14px 16px 10px;
  position: relative;
  min-height: 110px;
  overflow: hidden;
}
.review-slide {
  display: none;
  flex-direction: row;
  gap: 12px;
  align-items: flex-start;
  animation: fadeIn 0.5s ease;
}
.review-slide.active { display: flex; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.review-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #c0392b;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 800;
  flex-shrink: 0;
}
.review-name { font-size: 13px; font-weight: 700; color: #1a1a1a; }
.review-stars { color: #f39c12; font-size: 13px; margin: 1px 0; }
.review-text { font-size: 12px; color: #555; line-height: 1.5; }
.review-time { font-size: 11px; color: #aaa; margin-top: 4px; }

.review-dots {
  display: flex; gap: 5px; justify-content: center;
  margin-top: 10px;
}
.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #ddd;
  cursor: pointer;
  transition: background 0.2s;
}
.dot.active { background: #c0392b; }

/* ── BADGE ───────────────────────────────────────────────── */
.badge-akcija {
  display: inline-block;
  background: #e74c3c;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ── PRICE ───────────────────────────────────────────────── */
.price-block { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.price-current { font-size: 26px; font-weight: 900; color: #1a1a1a; }
.price-old { font-size: 15px; color: #aaa; text-decoration: line-through; }
@media (min-width: 400px) { .price-current { font-size: 30px; } }

/* ── SOCIAL PROOF ────────────────────────────────────────── */
.social-proof {
  background: #fff5f5;
  border: 1px solid #fdd;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  color: #c0392b;
}

/* ── COUNTDOWN ───────────────────────────────────────────── */
.countdown-bar {
  background: #1a1a1a;
  border-radius: 8px;
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.countdown-bar span:first-child { color: #aaa; font-size: 12px; font-weight: 600; }
.countdown-timer {
  color: #e74c3c;
  font-size: 24px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: 2px;
}

/* ── ORDERS ──────────────────────────────────────────────── */
.orders-proof {
  background: #f0fff4;
  border: 1px solid #c3e6cb;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  color: #155724;
}

/* ── CTA BUTTON ──────────────────────────────────────────── */
.cta-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #27ae60 0%, #1e8449 100%);
  color: #fff;
  text-decoration: none;
  border-radius: 12px;
  padding: 16px 20px;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 18px rgba(39,174,96,0.35);
  transition: transform 0.15s, box-shadow 0.15s;
  text-align: center;
  border: none;
  cursor: pointer;
  width: 100%;
}
.cta-btn:active { transform: scale(0.97); box-shadow: 0 2px 10px rgba(39,174,96,0.25); }
.cta-sub { font-size: 12px; font-weight: 600; opacity: 0.85; margin-top: 2px; letter-spacing: 1px; }
.cta-wide { font-size: 20px; padding: 20px; }

/* ── TRUST BADGES ────────────────────────────────────────── */
.trust-badges {
  display: flex;
  justify-content: space-around;
  gap: 8px;
  background: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 14px 8px;
}
.trust-item { text-align: center; }
.trust-icon { font-size: 24px; margin-bottom: 4px; }
.trust-label { font-size: 10px; font-weight: 700; color: #555; text-align: center; line-height: 1.3; }

/* ── GUARANTEE ───────────────────────────────────────────── */
.guarantee-bar {
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: #6d4c00;
}

/* ── SECTIONS ────────────────────────────────────────────── */
.section-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 16px;
  border-top: 6px solid #f4f4f4;
}
.section-title {
  font-size: 20px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 16px;
  color: #1a1a1a;
}
.description-block {
  font-size: 15px;
  line-height: 1.75;
  color: #333;
  background: #f9f9f9;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
}
.description-block ul { list-style: none; margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.description-block li { font-size: 14px; }

.desc-images { display: flex; flex-direction: column; gap: 12px; }
.desc-images img { width: 100%; border-radius: 12px; display: block; }

/* ── ALL REVIEWS ─────────────────────────────────────────── */
.all-reviews { display: flex; flex-direction: column; gap: 14px; }
.review-card {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid #eee;
}
.rc-header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.rc-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #c0392b;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 800;
  flex-shrink: 0;
}
.rc-name { font-size: 14px; font-weight: 700; }
.rc-stars { color: #f39c12; font-size: 14px; }
.rc-text { font-size: 13px; color: #444; line-height: 1.55; }
.rc-time { font-size: 11px; color: #aaa; margin-top: 6px; }

/* ── BOTTOM CTA ──────────────────────────────────────────── */
.bottom-cta {
  padding: 16px;
  max-width: 600px;
  margin: 0 auto;
}

/* ── FOOTER ──────────────────────────────────────────────── */
.site-footer {
  background: #1a1a1a;
  color: #888;
  text-align: center;
  padding: 20px 16px;
  font-size: 12px;
  margin-top: 20px;
}
.footer-links { margin-top: 8px; }
.footer-links a { color: #aaa; text-decoration: none; }
.footer-links a:hover { color: #fff; }

/* ============================================================
   CHECKOUT PAGE
   ============================================================ */
.checkout-page { background: #f5f5f5; }

.co-header {
  background: linear-gradient(135deg, #1e8449 0%, #27ae60 100%);
  color: #fff;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.2px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.co-close {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 18px;
  line-height: 1;
  padding: 4px 8px;
}
.co-close:hover { color: #fff; }

.cod-banner {
  background: #f39c12;
  color: #fff;
  text-align: center;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.co-countdown-wrap {
  background: #fff;
  border: 2px solid #e74c3c;
  margin: 14px 14px 0;
  border-radius: 10px;
  padding: 12px 16px;
  text-align: center;
}
.co-countdown-label { font-size: 12px; font-weight: 700; color: #555; margin-bottom: 4px; }
.co-countdown-timer {
  font-size: 36px;
  font-weight: 900;
  color: #e74c3c;
  letter-spacing: 3px;
  font-variant-numeric: tabular-nums;
}

.checkout-form { padding: 14px; display: flex; flex-direction: column; gap: 14px; }

/* ── FORM FIELDS ─────────────────────────────────────────── */
.form-fields { display: flex; flex-direction: column; gap: 10px; }
.form-field {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1.5px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.form-field:focus-within { border-color: #27ae60; }
.field-icon {
  padding: 0 12px;
  font-size: 18px;
  background: #f8f8f8;
  border-right: 1px solid #eee;
  height: 52px;
  display: flex; align-items: center;
  flex-shrink: 0;
}
.form-field input {
  flex: 1;
  border: none;
  outline: none;
  padding: 14px 14px;
  font-size: 15px;
  font-family: inherit;
  color: #1a1a1a;
  background: transparent;
}
.form-field input::placeholder { color: #aaa; }

/* ── PACKAGE SELECTION ───────────────────────────────────── */
.package-title {
  font-size: 16px;
  font-weight: 800;
  color: #1a1a1a;
  text-align: center;
}

.packages { display: flex; flex-direction: column; gap: 10px; }

.package-option {
  display: block;
  background: #fff;
  border: 2px solid #ddd;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  overflow: hidden;
}
.package-option input[type="radio"] { display: none; }
.package-option.selected,
.package-option:has(input:checked) {
  border-color: #27ae60;
  box-shadow: 0 2px 14px rgba(39,174,96,0.18);
}
.pkg-featured {
  position: relative;
}

.pkg-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
}
.pkg-img-wrap {
  width: 56px; height: 56px;
  border-radius: 8px;
  overflow: hidden;
  background: #f0f0f0;
  flex-shrink: 0;
}
.pkg-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pkg-img-ph {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  background: #f0f0f0;
  border-radius: 8px;
}
.pkg-details { flex: 1; min-width: 0; }
.pkg-name { font-size: 13px; font-weight: 800; color: #1a1a1a; line-height: 1.3; }
.pkg-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  margin-top: 4px;
  color: #fff;
}
.badge-red { background: #e74c3c; }
.badge-green { background: #1e8449; }

.pkg-price-right { text-align: right; flex-shrink: 0; }
.pkg-old-price { display: block; font-size: 11px; color: #aaa; text-decoration: line-through; }
.pkg-new-price { display: block; font-size: 14px; font-weight: 800; color: #1a1a1a; }

/* ── TOTAL ───────────────────────────────────────────────── */
.co-total-bar {
  background: #fff8e1;
  border: 1.5px solid #f39c12;
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
}
.co-total-price {
  font-size: 22px;
  font-weight: 900;
  color: #1e8449;
}

/* ── DELIVERY ────────────────────────────────────────────── */
.delivery-section { display: flex; flex-direction: column; gap: 8px; }
.delivery-title { font-size: 14px; font-weight: 800; color: #27ae60; }
.delivery-option {
  display: block;
  background: #fff;
  border: 1.5px solid #ddd;
  border-radius: 10px;
  cursor: pointer;
  padding: 12px 14px;
  transition: border-color 0.2s;
}
.delivery-option:has(input:checked) { border-color: #27ae60; }
.delivery-option input { display: none; }
.del-inner { display: flex; align-items: center; gap: 10px; }
.del-dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid #27ae60;
  flex-shrink: 0;
  position: relative;
}
.delivery-option:has(input:checked) .del-dot::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 8px; height: 8px;
  background: #27ae60;
  border-radius: 50%;
}
.del-info { flex: 1; }
.del-name { font-size: 13px; font-weight: 800; }
.del-sub { font-size: 11px; color: #888; }
.del-price { font-size: 13px; font-weight: 700; }

/* ── SUBMIT BUTTON ───────────────────────────────────────── */
.submit-btn {
  background: linear-gradient(180deg, #27ae60 0%, #1e8449 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 18px;
  font-size: 16px;
  font-weight: 900;
  font-family: inherit;
  cursor: pointer;
  width: 100%;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 18px rgba(39,174,96,0.35);
  transition: transform 0.15s;
  text-align: center;
}
.submit-btn:active { transform: scale(0.97); }

.co-footer-trust {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 16px 28px;
  font-size: 12px;
  color: #888;
  font-weight: 600;
}

/* ============================================================
   SUCCESS PAGE
   ============================================================ */
.success-page { background: #f5f5f5; display: flex; align-items: flex-start; justify-content: center; min-height: 100vh; }
.success-wrap {
  max-width: 480px;
  width: 100%;
  margin: 40px 16px;
  background: #fff;
  border-radius: 16px;
  padding: 36px 24px;
  text-align: center;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}
.success-icon { font-size: 64px; margin-bottom: 16px; }
.success-title { font-size: 24px; font-weight: 900; color: #1a1a1a; margin-bottom: 8px; }
.success-sub { font-size: 16px; color: #555; margin-bottom: 24px; }
.success-box {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 18px;
  text-align: left;
  margin-bottom: 20px;
}
.success-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}
.success-row:last-child { border-bottom: none; }
.success-note {
  background: #f0fff4;
  border: 1px solid #c3e6cb;
  border-radius: 10px;
  padding: 14px;
  font-size: 14px;
  color: #155724;
  line-height: 1.6;
  margin-bottom: 24px;
}
.back-home-btn {
  display: inline-block;
  background: #1a1a1a;
  color: #fff;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
}
