/* =====================================================================
   pages.css — стили статических страниц: /cart, 404, /page/oferta.
   Вынесено из инлайн-стилей шаблонов cart.liquid, page_404.liquid и
   page_oferta.liquid (в Liquid-файлах CSS не держим).
   Подключается в layouts.layout.liquid вместе с остальными стилями.
   Использует CSS-переменные из styles.css (--pink, --cream и т.д.).
   ===================================================================== */

/* ════════════════════════════════════════════════════════════════════
   СТРАНИЦА КОРЗИНЫ (/cart, cart.liquid)
   ════════════════════════════════════════════════════════════════════ */

.cart-page {
  padding: 40px 0 80px;
}

.cart-page__title {
  margin-bottom: 32px;
}

/* Пустая корзина */
.cart-page__empty {
  text-align: center;
  padding: 60px 20px;
}
.cart-page__empty-icon {
  font-size: 4rem;
  margin-bottom: 16px;
}
.cart-page__empty-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.cart-page__empty-desc {
  color: var(--text-muted, #8B6F5C);
  margin-bottom: 24px;
}
.cart-page__empty-btn {
  display: inline-flex;
}

/* Карточки-обёртки */
.cart-page__panel {
  background: var(--white, #fff);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 24px;
}

/* Строка товара */
.cart-page__item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border, rgba(255, 77, 109, 0.12));
  align-items: center;
}
.cart-page__item:last-child {
  border-bottom: none;
}
.cart-page__item-image {
  flex: 0 0 80px;
  width: 80px;
  height: 80px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--cream, #FFF5E6);
}
.cart-page__item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cart-page__item-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}
.cart-page__item-info {
  flex: 1;
  min-width: 0;
}
.cart-page__item-name {
  font-weight: 800;
  font-size: 1rem;
  color: var(--dark, #1C0B00);
  margin-bottom: 4px;
}
.cart-page__item-variant {
  font-weight: 600;
  color: var(--text-muted, #8B6F5C);
  font-size: 0.85rem;
}
.cart-page__item-price {
  color: var(--text-muted, #8B6F5C);
  font-size: 0.85rem;
}
.cart-page__item-total {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--pink, #FF4D6D);
  white-space: nowrap;
}

/* Кнопка удаления позиции */
.cart-page__remove {
  display: inline;
}
.cart-page__remove-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--text-muted, #8B6F5C);
  padding: 8px;
}
.cart-page__remove-btn:hover {
  color: var(--pink, #FF4D6D);
}

/* Строки итога */
.cart-page__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 1.1rem;
}
.cart-page__row--sm {
  margin-bottom: 12px;
  font-size: 0.95rem;
}
.cart-page__row--discount {
  color: var(--pink, #FF4D6D);
}
.cart-page__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 2px dashed var(--border, rgba(255, 77, 109, 0.18));
  font-size: 1.3rem;
  font-weight: 900;
}
.cart-page__total strong {
  color: var(--pink, #FF4D6D);
}

/* Кнопки действий */
.cart-page__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.cart-page__actions .ca-btn {
  flex: 1;
  min-width: 240px;
}
.cart-page__hint {
  text-align: center;
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--text-muted, #8B6F5C);
}

@media (max-width: 640px) {
  .cart-page__item {
    flex-wrap: wrap;
  }
  .cart-page__item-image {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
  }
  .cart-page__item-total {
    font-size: 1rem;
  }
}

/* ════════════════════════════════════════════════════════════════════
   СТРАНИЦА 404 (page_404.liquid)
   ════════════════════════════════════════════════════════════════════ */
.error-404 {
  padding: 80px 0 120px;
  text-align: center;
}
.error-404__emoji {
  font-size: 6rem;
  margin-bottom: 16px;
  animation: donutFloat 3s ease-in-out infinite;
}
.error-404__title {
  font-family: 'Paytone One', sans-serif;
  font-size: 3rem;
  color: var(--pink, #FF4D6D);
  margin-bottom: 16px;
}
.error-404__text {
  font-size: 1.1rem;
  color: var(--text, #2D1800);
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.6;
}
.error-404__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.error-404__hint {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px dashed var(--border, rgba(255, 77, 109, 0.18));
  color: var(--text-muted, #8B6F5C);
  font-size: 0.9rem;
}
.error-404__hint-title {
  margin-bottom: 8px;
}
.error-404__links {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  font-weight: 700;
}
.error-404__links a {
  color: var(--pink, #FF4D6D);
  text-decoration: none;
}

@media (max-width: 480px) {
  .error-404__title { font-size: 2.4rem; }
  .error-404__emoji { font-size: 4rem; }
}

/* ════════════════════════════════════════════════════════════════════
   ПУБЛИЧНАЯ ОФЕРТА (page_oferta.liquid)
   ════════════════════════════════════════════════════════════════════ */
.oferta {
  padding: 48px 0 90px;
  background: var(--cream, #FFF8F0);
}
.oferta__container {
  max-width: 860px;
  margin: 0 auto;
}

.oferta__head {
  text-align: center;
  margin-bottom: 36px;
}
.oferta__badge {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.3rem;
  border-radius: 50%;
  background: var(--white, #fff);
  border: 2px dashed var(--pink-light, #FFB3C1);
  animation: donutFloat 3.5s ease-in-out infinite;
}
.oferta__title {
  font-family: 'Paytone One', sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--dark, #1C0B00);
  margin-bottom: 8px;
}
.oferta__updated {
  font-size: 0.88rem;
  color: var(--text-muted, #7A5C44);
  font-weight: 700;
}

.oferta__body {
  background: var(--white, #fff);
  border: 1.5px solid var(--border, rgba(255, 77, 109, 0.18));
  border-radius: 24px;
  padding: 36px 40px;
  box-shadow: 0 6px 28px rgba(255, 77, 109, 0.14);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text, #2D1800);
}
.oferta__body h2 {
  font-family: 'Paytone One', sans-serif;
  font-size: 1.15rem;
  color: var(--pink, #FF4D6D);
  margin: 28px 0 10px;
}
.oferta__body h2:first-child {
  margin-top: 0;
}
.oferta__body p {
  margin: 0 0 12px;
}
.oferta__body ul {
  margin: 0 0 12px;
  padding-left: 22px;
}
.oferta__body li {
  margin-bottom: 6px;
}
.oferta__body strong {
  color: var(--dark, #1C0B00);
}
.oferta__body a {
  color: var(--pink, #FF4D6D);
  font-weight: 700;
}

.oferta__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

@media (max-width: 640px) {
  .oferta {
    padding: 28px 0 60px;
  }
  .oferta__body {
    padding: 24px 18px;
    border-radius: 18px;
  }
}

/* ── СТРАНИЦЫ «ОФЕРТА» И «ПОЛИТИКА КОНФИДЕНЦИАЛЬНОСТИ» ────────────────
   Контент рендерит системный виджет страницы — приводим типографику
   к дизайну сайта (и светлая, и тёмная тема). */
.widget-type_system_widget_v4_page_content_1 .layout__content {
  max-width: 820px;
  margin: 0 auto;
  padding: 8px 20px 56px;
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  font-size: 0.97rem;
  line-height: 1.7;
  color: var(--text, #2D1800);
}
.widget-type_system_widget_v4_page_content_1 h1,
.widget-type_system_widget_v4_page_content_1 h2,
.widget-type_system_widget_v4_page_content_1 h3 {
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  color: var(--brown, #5C3317);
  font-weight: 900;
  line-height: 1.3;
  margin: 1.6em 0 0.6em;
}
.widget-type_system_widget_v4_page_content_1 h1 {
  font-size: 1.9rem;
  margin-top: 0.4em;
  text-align: center;
}
.widget-type_system_widget_v4_page_content_1 h2 { font-size: 1.25rem; }
.widget-type_system_widget_v4_page_content_1 h3 { font-size: 1.05rem; }
.widget-type_system_widget_v4_page_content_1 p {
  margin: 0.7em 0;
}
.widget-type_system_widget_v4_page_content_1 ul,
.widget-type_system_widget_v4_page_content_1 ol {
  margin: 0.7em 0;
  padding-left: 1.4em;
  list-style: disc;
}
.widget-type_system_widget_v4_page_content_1 ol { list-style: decimal; }
.widget-type_system_widget_v4_page_content_1 li { margin: 0.35em 0; }
.widget-type_system_widget_v4_page_content_1 a {
  color: var(--pink, #FF4D6D);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.widget-type_system_widget_v4_page_content_1 a:hover { color: var(--pink-dark, #D63651); }
.widget-type_system_widget_v4_page_content_1 table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
  font-size: 0.9rem;
}
.widget-type_system_widget_v4_page_content_1 table td,
.widget-type_system_widget_v4_page_content_1 table th {
  border: 1px solid rgba(92, 51, 23, 0.15);
  padding: 8px 10px;
  text-align: left;
}
body.dark .widget-type_system_widget_v4_page_content_1 .layout__content { color: #e8ddd4; }
body.dark .widget-type_system_widget_v4_page_content_1 h1,
body.dark .widget-type_system_widget_v4_page_content_1 h2,
body.dark .widget-type_system_widget_v4_page_content_1 h3 { color: #f5ece6; }
body.dark .widget-type_system_widget_v4_page_content_1 table td,
body.dark .widget-type_system_widget_v4_page_content_1 table th {
  border-color: rgba(255, 255, 255, 0.12);
}

@media (max-width: 640px) {
  .widget-type_system_widget_v4_page_content_1 .layout__content { padding: 4px 14px 40px; }
  .widget-type_system_widget_v4_page_content_1 h1 { font-size: 1.5rem; }
}

/* ── ЮРИДИЧЕСКИЕ СТРАНИЦЫ (оферта, политика) — page.liquid → .pc-doc ── */
.pc-doc {
  max-width: 820px;
  margin: 0 auto;
  padding: calc(var(--header-h, 68px) + 28px) 20px 64px;
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  font-size: 0.97rem;
  line-height: 1.7;
  color: var(--text, #2D1800);
}
.pc-doc h1 {
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--brown, #5C3317);
  line-height: 1.3;
  margin: 0.3em 0 0.8em;
  text-align: center;
}
.pc-doc h2 {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--brown, #5C3317);
  margin: 1.6em 0 0.6em;
}
.pc-doc p { margin: 0.7em 0; }
.pc-doc ul, .pc-doc ol {
  margin: 0.7em 0;
  padding-left: 1.4em;
  list-style: disc;
}
.pc-doc ol { list-style: decimal; }
.pc-doc li { margin: 0.35em 0; }
.pc-doc a {
  color: var(--pink, #FF4D6D);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.pc-doc a:hover { color: var(--pink-dark, #D63651); }
/* жёлтые поля «заполнить своими данными» */
.pc-doc mark {
  background: #fff3bf;
  color: #6b4d00;
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 700;
}
body.dark .pc-doc { color: #e8ddd4; }
body.dark .pc-doc h1, body.dark .pc-doc h2 { color: #f5ece6; }
body.dark .pc-doc mark {
  background: rgba(255, 229, 143, 0.25);
  color: #ffe58f;
}
@media (max-width: 640px) {
  .pc-doc { padding: calc(var(--header-h, 68px) + 16px) 14px 48px; }
  .pc-doc h1 { font-size: 1.5rem; }
}
