/*!
Theme Name: antiqueallure
Description: Рабочая тема antiqueallureclub.com — копия shopde, в которой ведётся модернизация. shopde остаётся как запасная.
Text Domain: antique allure club
Version: 1.5.49
Author: entsolve.com
Author URI: https://entsolve.com
Update URI: false
*/

/*
 * Наши стили поверх собранных bundle.css / main.min.css (их исходников нет).
 * Этот файл подключается первым, поэтому где нужно перебить старые правила — !important.
 */

/*
 * iPhone/iPad приближают страницу, когда нажимаешь на поле ввода со шрифтом меньше 16px.
 * Раньше это глушили запретом масштаба для всей страницы — теперь масштаб разрешён
 * (можно увеличить фото пальцами), а мелкие поля подняты до 16px только на сенсорных
 * экранах и узких окнах.
 */
@media (max-width: 1024px), (pointer: coarse) {
	.woocommerce-currency-switcher-form select,
	.woocommerce-currency-switcher-form input,
	.woocommerce-ordering select,
	input[name="s"],
	#chatEmail,
	#chatQuestion {
		font-size: 16px !important;
	}
}

/*
 * Выбор валюты на телефоне. Тема показывала его только в своём бургер-меню, но это меню
 * давно заменил Max Mega Menu, и на экранах до 640px валюту было не переключить.
 * Показываем переключатель в шапке рядом с поиском (размеры и отступы — в блоке ниже).
 */
@media (max-width: 640px) {
	.header .header__right .dropdown {
		display: block;
	}
}

/*
 * Вход и избранное на телефоне. main.min.css на экранах до 640px прячет иконки аккаунта
 * и избранного (.header .header__shop_link, .header .wishlist-link) и показывал их только
 * в открытом бургер-меню темы (.header.open). Того бургера давно нет, а в меню Max Mega Menu
 * этих ссылок нет — с телефона нельзя было ни войти, ни зарегистрироваться, ни открыть избранное.
 * Возвращаем обе иконки в шапку между валютой и корзиной. Чтобы строка не разъезжалась:
 * колонка бургера — по ширине кнопки (было 17% строки), валюта уже, иконки плотнее,
 * между бургером, логотипом и правым блоком не меньше 8px, а логотип (до 96px) сам
 * сжимается, когда места не хватает.
 */
@media (max-width: 640px) {
	.header .header__buttons .header__shop_link--mod_2,
	.header .header__buttons .wishlist-link {
		display: block;
	}
	.header .header__top {
		column-gap: 8px;
	}
	/* Не шире прежних 17% — на случай, если вместо Max Mega Menu выведется обычный список меню. */
	.header .header__mail {
		width: auto;
		max-width: 17%;
	}
	.header .header__logo {
		min-width: 64px;
	}
	.header .header__right {
		flex-shrink: 0;
	}
	.header .header__right .dropdown {
		padding-left: 8px;
		margin-left: 8px;
	}
	/* «USD, $» / «EUR, €» — около 41px текста и 18px стрелки справа. */
	.header .header__right .dropdown form,
	.header .header__right .chosen-container-single .chosen-single {
		width: 64px;
	}
	.header .header__right .chosen-container {
		min-width: 0;
	}
	.header .header__right .chosen-container-single .chosen-single span {
		margin-right: 22px;
	}
	.header .header__buttons {
		gap: 8px;
		margin-left: 10px;
	}
}
/* Экраны 320px: без черты перед валютой, логотип может сжаться сильнее. */
@media (max-width: 340px) {
	.header .header__top {
		column-gap: 6px;
	}
	.header .header__logo {
		min-width: 44px;
	}
	.header .header__right .dropdown {
		padding-left: 0;
		border-left: 0;
	}
	.header .header__buttons {
		gap: 6px;
		margin-left: 8px;
	}
}

/* ===== F2b · пагинация (inc/seo-pagination.php) ===== */
/*
 * «Load more» стал ссылкой <a href="…/page/N+1/"> (её видит Google), JS по-прежнему
 * догружает товары без перехода. Вид — как у прежней кнопки (.show-products button
 * в main.min.css, там же 14px на экранах до 1280px). На страницах 2+ под ней —
 * скромная ссылка на предыдущую страницу.
 */
.show-products a#showMoreBtn {
	display: flex;
	padding: 14px 32px;
	justify-content: center;
	align-items: center;
	gap: 8px;
	width: max-content;
	margin-top: 16px;
	border: 1px solid var(--Dark-grey, #252424);
	background: var(--White, #fff);
	color: var(--Black, #0d0c08);
	text-align: center;
	text-decoration: none;
	font-family: "Commissioner", sans-serif;
	font-size: 16px;
	font-style: normal;
	font-weight: 400;
	line-height: 150%;
	cursor: pointer;
	transition: 0.3s;
}
.show-products a#showMoreBtn:hover {
	border: 1px solid #fff;
	color: #fff;
	background: #0d0c08;
}
@media (max-width: 1280px) {
	.show-products a#showMoreBtn {
		padding: 8px 32px;
		font-size: 14px;
	}
}
.show-products a.aac-prev-page {
	margin-top: 12px;
	color: var(--Grey-middle, #8e8e93);
	font-family: "Commissioner", sans-serif;
	font-size: 14px;
	line-height: 150%;
	text-decoration: underline;
	text-underline-offset: 3px;
}
/* ===== /F2b · пагинация ===== */

/* ===== F2b · тексты разделов (inc/seo-content.php) ===== */
/*
 * Вводный текст под H1 — мелкий спокойный абзац не шире 720px. Текст под сеткой — читаемая
 * колонка с подзаголовками и таблицей «At a glance» без рамок, в чёрно-серой гамме сайта;
 * на компьютере колонка начинается там же, где сетка (справа от фильтров).
 * style.css грузится раньше main.min.css с общими p/ul/h2 — поэтому селекторы через .shop-page.
 */
.shop-page .shop-page__intro {
	max-width: 720px;
	margin-top: 8px;
}
.shop-page .shop-page__intro p {
	margin: 0 0 8px;
	color: #55555a;
	font-family: "Commissioner", sans-serif;
	font-size: 14px;
	line-height: 1.6;
}
.shop-page .shop-page__intro p:last-child {
	margin-bottom: 0;
}
.shop-page .shop-page__intro a,
.shop-page .shop-page__seo-text a {
	display: inline;
	color: inherit;
	font: inherit;
	text-transform: none;
	white-space: normal;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.shop-page .shop-page__intro strong,
.shop-page .shop-page__seo-text strong {
	font-weight: 600;
}
/* Сетка под вводным текстом — ближе, чем под одной строкой H1 (там 64px). */
.shop-page .shop-page__intro + .shop-page__bottom {
	margin-top: 40px;
}

.shop-page .shop-page__seo-text {
	max-width: 720px;
	margin: 80px 0 96px calc(279px + 32px);
	color: var(--Black, #0d0c08);
	font-family: "Commissioner", sans-serif;
	font-size: 15px;
	line-height: 1.65;
}
.shop-page .shop-page__seo-text h2 {
	margin: 40px 0 12px;
	color: var(--Black, #0d0c08);
	font-family: "Roboto Serif", serif;
	font-size: 22px;
	font-weight: 500;
	line-height: 1.25;
	text-align: left;
	text-transform: none;
}
.shop-page .shop-page__seo-text h3 {
	margin: 24px 0 8px;
	color: var(--Black, #0d0c08);
	font-family: "Commissioner", sans-serif;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
}
.shop-page .shop-page__seo-text > :first-child > h2:first-child,
.shop-page .shop-page__seo-text > h2:first-child {
	margin-top: 0;
}
.shop-page .shop-page__seo-text p {
	margin: 0 0 12px;
	color: inherit;
	font: inherit;
}
.shop-page .shop-page__seo-text ul,
.shop-page .shop-page__seo-text ol {
	display: block;
	margin: 0 0 12px;
	padding-left: 20px;
}
.shop-page .shop-page__seo-text ul {
	list-style: disc;
}
.shop-page .shop-page__seo-text ol {
	list-style: decimal;
}
.shop-page .shop-page__seo-text li {
	display: list-item;
	margin: 0 0 4px;
	list-style: inherit;
}
.shop-page .shop-page__seo-text .shop-page__glance {
	width: 100%;
	max-width: 520px;
	border: 0;
	border-collapse: collapse;
	font-size: 14px;
}
.shop-page .shop-page__seo-text .shop-page__glance th,
.shop-page .shop-page__seo-text .shop-page__glance td {
	padding: 6px 0;
	border: 0;
	background: none;
	text-align: left;
	vertical-align: top;
	font-size: 14px;
}
.shop-page .shop-page__seo-text .shop-page__glance th {
	width: 42%;
	padding-right: 16px;
	color: #6c6c70;
	font-weight: 400;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	font-size: 12px;
	line-height: 22px;
}
/* Знак валюты с той же стороны, что в сетке (там это делает .price bdi в main.min.css). */
.shop-page .shop-page__seo-text .shop-page__glance bdi {
	display: inline-flex;
	flex-direction: row-reverse;
}
/* Длинный H1 переносится сам, подпись «Sort by:» — нет. */
.shop-page .shop-page__sort_block p {
	white-space: nowrap;
}
@media (max-width: 1280px) {
	.shop-page .shop-page__seo-text {
		margin-left: calc(264px + 32px);
	}
}
@media (max-width: 768px) {
	.shop-page .shop-page__intro + .shop-page__bottom {
		margin-top: 32px;
	}
	.shop-page .shop-page__seo-text {
		max-width: none;
		margin: 56px 0 64px;
	}
}
@media (max-width: 640px) {
	.shop-page .shop-page__intro {
		margin-top: 4px;
	}
	.shop-page .shop-page__intro p {
		font-size: 13px;
		line-height: 1.55;
	}
	.shop-page .shop-page__intro + .shop-page__bottom {
		margin-top: 24px;
	}
	.shop-page .shop-page__seo-text {
		margin: 40px 0 48px;
		font-size: 14px;
	}
	.shop-page .shop-page__seo-text h2 {
		margin-top: 32px;
		font-size: 19px;
	}
}
/* ===== /F2b · тексты разделов ===== */

/* ===== F3 · таблица «Details» на карточке (inc/product-facts.php) ===== */
/*
 * Компактная таблица фактов под кнопкой «Add to cart»: подпись мелкими серыми заглавными слева
 * (как в таблице «At a glance» под сеткой), значение справа, тонкие разделители. На телефоне
 * остаётся двухколоночной, длинные значения переносятся. Название товара теперь <h1> — вид прежний:
 * отступы h1 обнуляет main.min.css, размер задаёт .product-section__title, здесь — страховка.
 * style.css грузится раньше main.min.css с общими h1/h2/table — поэтому селекторы через .product-section.
 */
.product-section .product-section__content h1.product-section__title {
	margin: 0;
	padding: 0;
	font-weight: 400;
}
.product-section .product-facts {
	width: 100%;
	max-width: 560px;
}
.product-section .product-facts .product-facts__title {
	margin: 0 0 8px;
	padding: 0;
	color: var(--Black, #0d0c08);
	font-family: "Commissioner", sans-serif;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.5;
	text-align: left;
	text-transform: none;
}
.product-section .product-facts .product-facts__table {
	width: 100%;
	border: 0;
	border-collapse: collapse;
	font-family: "Commissioner", sans-serif;
}
.product-section .product-facts .product-facts__table th,
.product-section .product-facts .product-facts__table td {
	padding: 7px 0;
	border: 0;
	border-bottom: 1px solid #ececec;
	background: none;
	text-align: left;
	vertical-align: top;
}
.product-section .product-facts .product-facts__table th {
	width: 36%;
	padding-right: 16px;
	color: #6c6c70;
	font-size: 12px;
	font-weight: 400;
	line-height: 21px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}
.product-section .product-facts .product-facts__table td {
	color: var(--Black, #0d0c08);
	font-size: 14px;
	line-height: 1.5;
	overflow-wrap: anywhere;
}
.product-section .product-facts .product-facts__table td a {
	display: inline;
	color: inherit;
	font: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.product-section .product-facts .product-facts__table td a:hover {
	text-decoration: none;
}
/* ===== /F3 · таблица «Details» ===== */

/* ===== F3 · правовые ссылки в подвале (footer.php) ===== */
/* Разделитель «/» у каждой ссылки, кроме последней (в main.min.css он есть только у первой). */
.footer .footer__bottom .footer__links {
	flex-wrap: wrap;
	row-gap: 6px;
}
.footer .footer__bottom .footer__links a {
	padding-right: 12px;
	margin-right: 8px;
}
.footer .footer__bottom .footer__links a::before {
	content: "/";
	right: 0;
	position: absolute;
}
.footer .footer__bottom .footer__links a:last-child {
	padding-right: 0;
	margin-right: 0;
}
.footer .footer__bottom .footer__links a:last-child::before {
	content: none;
}
/* На телефоне тема прятала строку целиком — правовые ссылки должны быть видны везде. */
@media (max-width: 568px) {
	/* Снизу — место под плавающие «Have a question?» и значок reCAPTCHA: они закрывали последнюю строку
	   ссылок (Contact, Cookie settings). */
	.footer .footer__bottom {
		flex-direction: column;
		gap: 16px;
		padding-bottom: 88px;
	}
	.footer .footer__bottom .footer__links {
		display: flex;
		justify-content: center;
	}
	/* Ссылки — цели для пальца не меньше 24px по высоте (WCAG 2.5.8): «Cookie settings» — главный путь
	   отозвать согласие с телефона, а строки ссылок стояли в 6px друг от друга при высоте ссылки 14px. */
	.footer .footer__bottom .footer__links a {
		display: inline-block;
		min-height: 24px;
		line-height: 24px;
	}
}
/* ===== /F3 · правовые ссылки в подвале ===== */
