/* ============================================================
   MARKETING FEATURES — адаптовано під світлу тему Nike Just Do It
   Блоки: залишок товару (попит), FOMO-повідомлення, відгуки
   ============================================================ */

:root {
  --mk-red: #f13a2e;
  --mk-green: #0f9d58;
  --mk-gold: #ffb400;
}

/* ============================================================
   1. БЛОК ВИСОКОГО ПОПИТУ / ЗАЛИШОК ТОВАРУ
   (розміщується на темному фоні — hero та footer)
   ============================================================ */
.demand_block {
  margin: 0 0 18px;
  padding: 14px 15px;
  border: 1px solid rgba(241, 58, 46, 0.55);
  border-radius: 16px;
  background: linear-gradient(90deg, rgba(241, 58, 46, 0.18), rgba(241, 58, 46, 0.04));
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.demand_row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.demand_fire {
  flex-shrink: 0;
  font-size: 23px;
  line-height: 1;
  animation: mk_fire_pulse 1.5s infinite ease-in-out;
  filter: drop-shadow(0 0 7px rgba(241, 58, 46, 0.85));
}

@keyframes mk_fire_pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.16); }
}

.demand_text {
  flex: 1;
  min-width: 0;
}

.demand_title {
  margin: 0 0 3px;
  color: var(--mk-red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.demand_desc {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  line-height: 1.4;
}

.demand_num {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--volt, #dfff00);
  color: var(--ink, #0b0b0b);
  font-weight: 800;
  white-space: nowrap;
}

.demand_track {
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
}

.demand_fill {
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(90deg, #f13a2e, #ffb400);
  box-shadow: 0 0 12px rgba(241, 58, 46, 0.5);
  transition: width 1.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ============================================================
   2. FOMO — СПЛИВАЮЧЕ ПОВІДОМЛЕННЯ ПРО ПОКУПКУ
   ============================================================ */
.fomo_toast {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
  width: auto;
  min-width: 270px;
  max-width: 92%;
  padding: 8px 16px 8px 8px;
  border: 1px solid var(--line, #dcded7);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(11, 11, 11, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-180%);
  transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
}

.fomo_toast.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.fomo_icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink, #0b0b0b);
  font-size: 19px;
}

.fomo_info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.fomo_name {
  overflow: hidden;
  color: var(--ink, #0b0b0b);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.fomo_desc {
  color: var(--muted, #777873);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}

.fomo_time {
  flex-shrink: 0;
  color: var(--mk-red);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

/* ============================================================
   3. СЕКЦІЯ ВІДГУКІВ ПОКУПЦІВ
   ============================================================ */
.reviews_section {
  background: var(--paper, #f4f4f0);
}

/* — Панель довіри Google Shopping — */
.trust_card {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid var(--line, #dcded7);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow, 0 20px 50px rgba(11, 11, 11, 0.12));
}

.trust_top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line, #dcded7);
}

.trust_brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.trust_logo {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
}

.trust_brand_info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.trust_name {
  color: var(--ink, #0b0b0b);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.trust_status {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--muted, #777873);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.trust_status b {
  color: var(--mk-green);
}

.trust_rating {
  text-align: right;
}

.trust_score {
  color: var(--ink, #0b0b0b);
  font-family: "Oswald", Impact, sans-serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
}

.trust_max {
  display: block;
  margin-top: 2px;
  color: var(--muted, #777873);
  font-size: 11px;
}

.trust_bottom {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.trust_bar_bg {
  width: 100%;
  height: 6px;
  overflow: hidden;
  border-radius: 10px;
  background: #e6e7e1;
}

.trust_bar_fill {
  width: 94%;
  height: 100%;
  border-radius: 10px;
  background: var(--mk-green);
}

.trust_stats {
  display: flex;
  justify-content: space-between;
  color: var(--muted, #777873);
  font-size: 11px;
  font-weight: 600;
}

.trust_stats b {
  color: var(--mk-green);
  font-weight: 700;
}

/* — Кнопка «написати відгук» — */
.write_review_btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  margin-bottom: 16px;
  padding: 15px;
  border: 1px solid var(--ink, #0b0b0b);
  border-radius: 14px;
  background: #fff;
  color: var(--ink, #0b0b0b);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.1s;
}

.write_review_btn:hover {
  background: var(--ink, #0b0b0b);
  color: #fff;
}

.write_review_btn:active {
  transform: scale(0.98);
}

/* — Форма відгуку — */
.review_form_wrap {
  max-height: 0;
  overflow: hidden;
  border-radius: 16px;
  transition: max-height 0.45s ease;
}

.review_form_wrap.open {
  max-height: 700px;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--line, #dcded7);
  background: #fff;
  box-shadow: var(--shadow, 0 20px 50px rgba(11, 11, 11, 0.12));
}

.review_form_title {
  margin: 0 0 13px;
  color: var(--ink, #0b0b0b);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-align: center;
  text-transform: uppercase;
}

.star_pick {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-bottom: 15px;
}

.star_pick_item {
  color: #d3d4ce;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  transition: color 0.15s, transform 0.15s;
}

.star_pick_item.on {
  color: var(--mk-gold);
  transform: scale(1.1);
}

.review_input {
  display: block;
  width: 100%;
  margin-bottom: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line, #dcded7);
  border-radius: 12px;
  background: #f8f8f5;
  color: var(--ink, #0b0b0b);
  font-size: 14px;
  font-family: inherit;
  resize: none;
  transition: border-color 0.2s, background 0.2s;
}

.review_input::placeholder {
  color: #a7a8a2;
}

.review_input:focus {
  outline: none;
  border-color: var(--ink, #0b0b0b);
  background: #fff;
}

.review_submit {
  width: 100%;
  padding: 14px;
  border: 0;
  border-radius: 12px;
  background: var(--volt, #dfff00);
  color: var(--ink, #0b0b0b);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.review_submit:active {
  background: var(--volt-dark, #bdd900);
  transform: scale(0.98);
}

/* — Стрічка відгуків — */
.reviews_feed {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.review_card {
  padding: 15px;
  border: 1px solid var(--line, #dcded7);
  border-radius: 16px;
  background: #fff;
  animation: mk_slide_in 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes mk_slide_in {
  from { opacity: 0; transform: translateY(-18px); }
  to { opacity: 1; transform: translateY(0); }
}

.review_card.is_new {
  animation: mk_slide_in 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275),
             mk_flash 2.4s ease-out 0.2s forwards;
}

@keyframes mk_flash {
  0% { border-color: var(--mk-green); box-shadow: 0 0 22px rgba(15, 157, 88, 0.3); }
  100% { border-color: var(--line, #dcded7); box-shadow: none; }
}

.review_head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.review_avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.review_meta {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.review_name {
  margin-bottom: 2px;
  color: var(--ink, #0b0b0b);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.review_stars {
  color: var(--mk-gold);
  font-size: 13px;
  letter-spacing: 1px;
  line-height: 1;
}

.review_stars i {
  color: #d3d4ce;
  font-style: normal;
}

.review_badge {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-left: auto;
  flex-shrink: 0;
  padding: 4px 8px;
  border: 1px solid rgba(15, 157, 88, 0.28);
  border-radius: 7px;
  background: rgba(15, 157, 88, 0.09);
  color: var(--mk-green);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.review_badge.is_user {
  border-color: rgba(241, 58, 46, 0.3);
  background: rgba(241, 58, 46, 0.08);
  color: #c23a1a;
}

.review_text {
  margin: 0;
  color: #45463f;
  font-size: 13px;
  line-height: 1.55;
}

.review_foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid var(--line, #dcded7);
}

.review_date {
  color: #9a9b95;
  font-size: 10px;
  font-weight: 600;
}

.review_actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.review_react {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 0;
  border: 0;
  background: transparent;
  color: #9a9b95;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: color 0.2s, transform 0.15s;
}

.review_react:hover { color: #45463f; }
.review_react:active { transform: scale(0.9); }
.review_react.on_like { color: var(--mk-green); }
.review_react.on_dislike { color: var(--mk-red); }
