/* =====================================================
   DUSH-BASE.css
   База: шрифты, переменные, типографика, общие элементы,
   общий WooCommerce (не странично-специфичный)
===================================================== */

/* Fonts (лучше держать ОДИН раз в base, а не дублировать в других файлах) */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=Inter:wght@300;400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600&family=Montserrat:wght@300;400;500;600&display=swap');

/* =========================
   Root tokens
========================= */
:root{
  /* Fonts */
  --font-brand: "Cormorant Garamond", serif;
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Cinzel", serif;
  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Core palette */
  --cream: #F3EEE6;
  --ink: #2A1B14;
  --accent: #8b6f5c;

  /* Layout */
  --header-h: 92px;

  /* Header tokens (общие; поведение через body.has-scrolled и .home — в отдельном файле header.css) */
  --header-cream: rgba(250,246,241,.92);
  --header-dark: rgba(25,18,14,.88);
  --header-light: rgba(255,255,255,.92);

  /* управляется JS на главной, но пусть токен живёт в базе */
  --hero-header-fade: 1;
}

/* =========================
   Base typography / body
========================= */
html{ scroll-behavior: smooth; }

body{
  font-family: var(--font-ui);
  color: var(--ink);
}

/* Нормальная читабельность текста по умолчанию */
p{ line-height: 1.75; }

/* Ссылки — базово без синевы (Astra любит красить) */
a{
  color: inherit;
  text-decoration: none;
}
a:hover{ text-decoration: underline; }

/* =========================
   Alignfull fix (Astra/Gutenberg)
========================= */
.alignfull{
  width: 100vw !important;
  max-width: 100vw !important;
  position: relative;
  left: 50%;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
}

/* =========================
   Buttons base
========================= */
.dushisto-btn{
  font-family: var(--font-ui) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 30px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: transform .25s ease, background .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.dushisto-btn--primary{
  background: rgba(243,238,230,.96);
  color: var(--ink);
  border: 1px solid rgba(243,238,230,.25);
  box-shadow: 0 10px 26px rgba(0,0,0,.18);
}
.dushisto-btn--primary:hover{
  background: #e7ded4;
  transform: translateY(-1px);
}

.dushisto-btn--secondary{
  background: rgba(243,238,230,.04);
  color: var(--cream);
  border: 1px solid rgba(243,238,230,.55);
}
.dushisto-btn--secondary:hover{
  background: rgba(243,238,230,.12);
  transform: translateY(-1px);
}

/* =========================
   HERO spacing helpers (общие)
   Важно: это не стили hero, а только защита от “залезания” под шапку.
========================= */
.dushisto-hero{ padding-top: var(--header-h); }
body.admin-bar .dushisto-hero{ padding-top: calc(var(--header-h) + 32px); }

/* =========================
   WooCommerce — общий “минимал премиум”
   (без привязки к категориям/страницам)
========================= */

/* карточка в листинге */
.woocommerce ul.products li.product{
  border: none;
  text-align: center;
  padding: 20px;
  transition: transform .3s ease;
}
.woocommerce ul.products li.product:hover{ transform: translateY(-6px); }

/* названия товаров */
.woocommerce ul.products li.product h2,
.woocommerce div.product .product_title{
  font-family: var(--font-brand) !important;
  font-weight: 500 !important;
  letter-spacing: .02em;
  font-size: 20px;
}

/* цена */
.woocommerce ul.products li.product .price{
  color: var(--accent);
  font-size: 16px;
}

/* кнопки в карточках (общая форма) */
.woocommerce ul.products li.product .button{
  border-radius: 30px;
  padding: 10px 24px;
  font-family: var(--font-ui);
}

/* =========================
   Small utilities
========================= */
.dush-text-brand{ font-family: var(--font-brand) !important; }
.dush-text-ui{ font-family: var(--font-ui) !important; }
.dush-text-display{ font-family: var(--font-display) !important; }
.dush-text-body{ font-family: var(--font-body) !important; }

/* ==========================================
   DUSHISTO — Global Typography System
========================================== */

:root{
  --font-brand: "Cormorant Garamond", serif;
  --font-ui: "Inter", sans-serif;
}

/* БАЗА */
html, body{
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.7;
  color: #2a211a;
  -webkit-font-smoothing: antialiased;
}

/* Убираем влияние Astra */
body, button, input, textarea, select{
  font-family: var(--font-ui) !important;
}

/* ==========================================
   ЗАГОЛОВКИ (везде одинаковые)
========================================== */

h1, h2, h3, h4, h5, h6{
  font-family: var(--font-brand) !important;
  font-weight: 500;
  letter-spacing: .02em;
  color: #2a211a;
  line-height: 1.2;
}

h1{ font-size: 40px; }
h2{ font-size: 30px; }
h3{ font-size: 22px; }
h4{ font-size: 18px; }

/* WooCommerce product title */
.single-product .product_title{
  font-family: var(--font-brand) !important;
  font-size: 34px;
}

/* Категории */
.tax-product_cat h1{
  font-family: var(--font-brand) !important;
}

/* ==========================================
   Кнопки
========================================== */

button,
.button,
.woocommerce button.button,
.woocommerce a.button{
  font-family: var(--font-ui) !important;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: 13px;
}

/* ==========================================
   Навигация
========================================== */

.main-navigation a{
  font-family: var(--font-ui) !important;
  font-weight: 500;
  letter-spacing: .04em;
}

/* ==========================================
   Цена
========================================== */

.price,
.woocommerce-Price-amount{
  font-family: var(--font-ui) !important;
  font-weight: 700;
}


