/* AQSHAM — базовые стили, reset, шрифты, типографика */

/* Gotham Pro — клиентские файлы в assets/fonts/gotham-pro/ (woff + ttf) */
@font-face {
  font-family: 'Gotham Pro';
  src: local('Gotham Pro'),
    url('../fonts/gotham-pro/GothamProRegular.woff') format('woff'),
    url('../fonts/gotham-pro/GothamProRegular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gotham Pro';
  src: local('Gotham Pro Medium'),
    url('../fonts/gotham-pro/GothamProMedium.woff') format('woff'),
    url('../fonts/gotham-pro/GothamProMedium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gotham Pro';
  src: local('Gotham Pro Bold'),
    url('../fonts/gotham-pro/GothamProBold.woff') format('woff'),
    url('../fonts/gotham-pro/GothamProBold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
/* Black-начертания в наборе нет — 900 отдаём Bold, чтобы браузер
   не рисовал faux-bold поверх системного шрифта */
@font-face {
  font-family: 'Gotham Pro';
  src: local('Gotham Pro Bold'),
    url('../fonts/gotham-pro/GothamProBold.woff') format('woff'),
    url('../fonts/gotham-pro/GothamProBold.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-main);
  font-weight: var(--fw-regular);
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: var(--ls-base);
  color: var(--text-dark-900);
  background: var(--bg-white);
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6, p, ul, ol, figure {
  margin: 0;
  padding: 0;
}

ul, ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font: inherit;
  letter-spacing: inherit;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  color: inherit;
}

input, select, textarea {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
}

/* Типографика desktop (Figma UI kit) */
.h1 { font-weight: var(--fw-bold); font-size: 48px; line-height: 1.1; }
.h2 { font-weight: var(--fw-bold); font-size: 40px; line-height: 1.1; }
.h3 { font-weight: var(--fw-bold); font-size: 35px; line-height: 1; }
.h4 { font-weight: var(--fw-bold); font-size: 32px; line-height: 1; }
.h5 { font-weight: var(--fw-bold); font-size: 28px; line-height: 1; }
.h6 { font-weight: var(--fw-bold); font-size: 24px; line-height: 1.2; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ── Кнопки: состояние Disabled (Figma UI kit 1:18558, State=Disabled:
      заливка #e5e7eb, текст #9ca3af; !important — чтобы состояние
      побеждало hover/страничные стили, подключаемые после base.css) ── */
button:disabled,
button.is-disabled,
a.is-disabled,
.auth-card__submit:disabled,
.account-pill:disabled,
.account-pill.is-disabled {
  background: var(--border-light) !important; /* #e5e7eb */
  border-color: transparent !important;
  color: #9ca3af !important;
  cursor: not-allowed !important;
}

a.is-disabled {
  pointer-events: none;
}

/* Контурные варианты: без заливки, серая рамка (Figma 1:18600) */
.account-pill--outline:disabled,
.account-pill--outline.is-disabled,
[class*="--outline"]:disabled,
[class*="--outline"].is-disabled {
  background: transparent !important;
  border-color: var(--border-light) !important;
  color: #9ca3af !important;
}

/* Google Language Translator: движок работает в фоне, интерфейс — наш
   дропдаун в шапке. Прячем виджет плагина и артефакты Google. */
#google_language_translator,
#glt-translate-trigger,
#goog-gt-tt,
iframe.skiptranslate,
.goog-te-banner-frame {
  display: none !important;
}

body {
  top: 0 !important;
}

.goog-text-highlight {
  background: none !important;
  box-shadow: none !important;
}

/* Атрибут hidden должен побеждать любые display:flex/grid у компонентов */
[hidden] {
  display: none !important;
}

/* Серверная ошибка формы (заявка дилера и т. п.) */
.form-error {
  margin: 0;
  padding: 12px 16px;
  border: 1px solid #f0b4b4;
  border-radius: 8px;
  background: #fdecec;
  color: #b32d2e;
  font-size: 14px;
  line-height: 1.4;
}

/* Honeypot-поле форм: скрыто от людей, видно ботам */
.aq-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ── Уведомления WooCommerce в стиле сайта (корзина, чекаут, ЛК) ── */
.woocommerce-notices-wrapper:empty {
  display: none;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  padding: 14px 18px;
  border: 1px solid var(--border-light, #e5e7eb);
  border-left-width: 4px;
  border-radius: 8px;
  background: var(--bg-white, #ffffff);
  font-size: 15px;
  line-height: 1.4;
  color: var(--text-dark-900, #0f172a);
  list-style: none;
}

.woocommerce-message {
  border-left-color: #1a7f37;
  background: #f0f9f2;
}

.woocommerce-info {
  border-left-color: #b26a00;
  background: #fff8e1;
}

.woocommerce-error {
  flex-direction: column;
  align-items: flex-start;
  border-left-color: #b32d2e;
  background: #fdecec;
  color: #b32d2e;
}

.woocommerce-error li {
  list-style: none;
}

.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  margin-left: auto;
  padding: 0 18px;
  border-radius: 6px;
  background: var(--brand-yellow, #ffe400);
  font-size: 14px;
  font-weight: var(--fw-medium, 500);
  color: var(--text-dark-900, #0f172a);
}
