:root {
    --bg: #f6f1ea;
    --card: #fff;
    --ink: #1c1916;
    --muted: #6b6258;
    --caption: #9a8f84;
    --line: #e4d9cc;
    --chip: #cfc8bd;
    --accent: #8a1f1f;
    --accent-ink: #fff;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    max-width: 100%;
}

body.thaicigs-storefront {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "PT Sans", "Trebuchet MS", sans-serif;
    line-height: 1.45;
    max-width: 100%;
}

body.thaicigs-storefront a {
    color: var(--ink);
    text-decoration: none;
}

body.thaicigs-storefront a:hover {
    color: var(--accent);
}

img,
video {
    max-width: 100%;
    height: auto;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    background: var(--card);
    border-bottom: 1px solid var(--line);
}

.site-header__row {
    display: flex;
    align-items: center;
    gap: 28px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 56px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    text-decoration: none;
    white-space: nowrap;
    flex: 0 0 auto;
}

.site-logo:hover {
    color: var(--ink);
}

.site-logo img {
    width: auto;
    height: 44px;
    max-width: none;
    display: block;
}

.site-header__search {
    flex: 1 1 auto;
    min-width: 0;
}

.site-search {
    display: flex;
    width: 100%;
    height: 52px;
    border: 2px solid var(--chip);
    border-radius: 8px;
    overflow: hidden;
    background: var(--card);
}

.site-search input[type="search"] {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    padding: 0 16px;
    font: inherit;
    font-size: 16px;
    background: transparent;
    color: var(--ink);
    appearance: none;
    border-radius: 0;
}

.site-search input[type="search"]::placeholder {
    color: var(--caption);
}

.site-search button {
    width: 64px;
    flex: 0 0 64px;
    border: 0;
    background: var(--accent);
    color: var(--accent-ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.site-search button:hover {
    color: var(--accent-ink);
}

.site-cart {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink);
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    flex: 0 0 auto;
}

.site-cart:hover {
    color: var(--ink);
}

.site-cart svg {
    flex: 0 0 auto;
    display: block;
}

.home-main,
.site-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 56px 40px;
    width: 100%;
}

body.thaicigs-storefront .home-main > h1,
body.thaicigs-storefront .woo-main > h1 {
    margin: 0 0 18px;
    font-size: 34px;
    line-height: 1.25;
    font-weight: 700;
    color: var(--ink);
}

.catalog-chips {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    margin: 0 0 18px;
    padding: 0;
    max-width: 100%;
}

.catalog-chip {
    flex: 0 0 auto;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid var(--chip);
    color: var(--ink);
    background: transparent;
    white-space: nowrap;
    font-weight: 400;
}

.catalog-chip.is-active,
.catalog-chip.is-active:hover {
    background: var(--ink);
    color: var(--accent-ink);
    font-weight: 700;
    border-color: var(--ink);
}

.catalog-brands {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    margin: 0 0 18px;
    padding: 0;
    max-width: 100%;
}

.catalog-brand {
    flex: 0 0 auto;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--chip);
    color: var(--ink);
    background: transparent;
    white-space: nowrap;
    font-size: 14px;
}

.catalog-brand.is-active,
.catalog-brand.is-active:hover {
    background: var(--accent);
    color: var(--accent-ink);
    border-color: var(--accent);
    font-weight: 700;
}

body.thaicigs-storefront ul.products.product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    float: none;
}

body.thaicigs-storefront ul.products.product-grid::before,
body.thaicigs-storefront ul.products.product-grid::after {
    display: none;
    content: none;
}

body.thaicigs-storefront ul.products.product-grid > li.product.product-tile {
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: auto;
    max-width: 100%;
    float: none;
    margin: 0;
    padding: 12px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.product-tile__media {
    display: block;
    aspect-ratio: 1 / 1;
    background: #faf7f2;
    border-radius: 4px;
    overflow: hidden;
}

.product-tile__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.product-tile__name {
    margin: 10px 0 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ink);
    display: -webkit-box;
    /* Три строки: на двух «Concord Change Double (Cola & Lemon)» терял вкус. */
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-tile__brand {
    margin: 6px 0 0;
    font-size: 13px;
    color: var(--muted);
}

.product-tile__prices {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin: 8px 0 0;
}

.product-tile__price {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
}

.product-tile__price .woocommerce-price-suffix {
    margin-left: 4px;
    font-size: 12px;
    font-weight: 400;
    color: var(--caption);
}

.product-tile__cart {
    margin-top: auto;
    padding-top: 10px;
    width: 100%;
}

body.thaicigs-storefront a.product-tile__buy,
body.thaicigs-storefront button.product-tile__buy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: auto;
    padding: 0 12px;
    min-height: 44px;
    height: 44px;
    background: var(--accent);
    color: #fff;
    font: inherit;
    font-weight: 700;
    font-size: 15px;
    border: 0;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
}

body.thaicigs-storefront form.product-tile__cart .product-tile__buy {
    margin-top: 0;
}

body.thaicigs-storefront a.product-tile__buy {
    margin-top: 10px;
}

body.thaicigs-storefront a.product-tile__buy:hover,
body.thaicigs-storefront button.product-tile__buy:hover {
    color: #fff;
    background: var(--accent);
}

@media (min-width: 600px) {
    body.thaicigs-storefront ul.products.product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 900px) {
    body.thaicigs-storefront ul.products.product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .catalog-brands {
        flex-wrap: wrap;
        overflow-x: hidden;
    }
}

@media (min-width: 1200px) {
    body.thaicigs-storefront ul.products.product-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (min-width: 1440px) {
    body.thaicigs-storefront ul.products.product-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

.home-products__all {
    margin: 1.25rem 0 0;
}

.home-products__all a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.5rem 1.15rem;
    border: 2px solid var(--accent);
    border-radius: 6px;
    color: var(--accent);
    background: transparent;
    font-weight: 700;
}

.home-products__all a:hover {
    background: var(--accent);
    color: var(--accent-ink);
}

.home-delivery {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.home-delivery h2,
.home-catalog__title {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
}

.home-delivery p {
    margin: 0 0 0.4rem;
    color: var(--muted);
}

.site-footer {
    padding: 1rem;
    text-align: center;
    color: var(--muted);
}

.site-footer__menu {
    list-style: none;
    margin: 0 0 0.6rem;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
    justify-content: center;
}

.site-footer__menu a {
    color: var(--muted);
}

.woocommerce-result-count,
.woocommerce-ordering {
    color: var(--muted);
}

.woocommerce-notices-wrapper,
.woo-main .woocommerce-result-count,
.woo-main .woocommerce-ordering {
    margin-bottom: 0.75rem;
}

body.thaicigs-storefront .thaicigs-age-gate .button {
    appearance: none;
    border: 2px solid var(--accent);
    background: var(--accent);
    color: var(--accent-ink);
    border-radius: 6px;
    padding: 0.7rem 1.2rem;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

body.thaicigs-storefront .thaicigs-age-gate .button.alt,
body.thaicigs-storefront .thaicigs-age-gate [data-age-confirm] {
    background-color: #8a1f1f;
    background-image: none;
    color: #fff;
    border-color: #8a1f1f;
}

body.thaicigs-storefront .thaicigs-age-gate .button:not(.alt) {
    background: transparent;
    color: var(--accent);
}

@media (min-width: 768px) {
    .catalog-chips {
        overflow: visible;
    }
}

@media (max-width: 767px) {
    .site-header__row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "logo cart"
            "search search";
        gap: 12px 16px;
        padding: 12px 16px;
    }

    .site-logo {
        grid-area: logo;
    }

    .site-logo img {
        height: 36px;
    }

    .site-cart {
        grid-area: cart;
    }

    .site-header__search {
        grid-area: search;
        width: 100%;
    }

    .home-main,
    .site-main {
        padding: 16px 16px 2.5rem;
    }

    body.thaicigs-storefront .home-main > h1,
    body.thaicigs-storefront .woo-main > h1 {
        font-size: 1.45rem;
        color: var(--ink);
    }

    /*
     * Заголовок обычной страницы рисует Blocksy (40px): «конфиденциальности» на
     * 343px не помещалось и рвалось посреди слова. Тот же размер, что у каталога.
     */
    body.thaicigs-storefront .hero-section .page-title {
        font-size: 1.45rem;
        line-height: 1.3;
        hyphens: auto;
    }

    body.thaicigs-storefront a.product-tile__buy,
    body.thaicigs-storefront button.product-tile__buy {
        height: auto;
        min-height: 44px;
        color: #fff;
    }
}
/*
 * Blocksy объявляет палитру на :root и там же вычисляет из неё цвета кнопок,
 * ссылок и фокуса, поэтому палитру перекрываем тоже на :root, но специфичнее
 * его встроенного стиля, который грузится позже нашего.
 */
:root:root {
    --theme-palette-color-1: #8a1f1f;
    --theme-palette-color-2: #6e1818;
}

/* Общее правило ссылок выше красит в чёрный и ссылки-кнопки WooCommerce. */
body.thaicigs-storefront a.button,
body.thaicigs-storefront a.button:hover {
    color: var(--accent-ink);
}

/* Доставка одна и бесплатная: строка «Варианты доставки будут обновлены…» в корзине лишняя. */
body.thaicigs-storefront .cart_totals .woocommerce-shipping-destination {
    display: none;
}

/* ==== Ревью сайта 26.09.2026: меню шапки, заголовки архива, ошибки чекаута, единицы ==== */

:root {
    --error: #b3261e;
}

/* Меню для покупателя под строкой шапки: на 390px — одна строка, без прокрутки. */
.site-nav {
    border-top: 1px solid var(--line);
}

.site-nav__menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 8px 56px;
    list-style: none;
}

body.thaicigs-storefront .site-nav__menu a {
    display: inline-block;
    padding: 4px 0;
    color: var(--muted);
    font-size: 15px;
}

body.thaicigs-storefront .site-nav__menu a:hover,
body.thaicigs-storefront .site-nav__menu a[aria-current="page"] {
    color: var(--accent);
}

@media (max-width: 767px) {
    .site-nav__menu {
        justify-content: space-between;
        gap: 4px 12px;
        padding: 6px 16px;
    }

    body.thaicigs-storefront .site-nav__menu a {
        font-size: 14px;
    }
}

/*
 * Описание категории и бренда под сеткой: Blocksy даёт h2 35px, крупнее h1
 * архива (34px, на телефоне 1.45rem). Подзаголовок обязан быть мельче.
 */
body.thaicigs-storefront .woo-main .term-description h2 {
    margin: 1.4em 0 0.5em;
    font-size: 24px;
    line-height: 1.3;
}

body.thaicigs-storefront .woo-main .term-description h3 {
    font-size: 19px;
    line-height: 1.3;
}

@media (max-width: 767px) {
    body.thaicigs-storefront .woo-main .term-description h2 {
        font-size: 1.2rem;
    }

    body.thaicigs-storefront .woo-main .term-description h3 {
        font-size: 1.05rem;
    }
}

/*
 * Ошибки полей оформления: классы ставит checkout.js WooCommerce (при уходе с
 * поля и после отправки), текст под полем — он же и checkout-validation.js
 * плагина. Без этих правил класс есть, а рамки и цвета нет.
 */
body.thaicigs-storefront form.checkout .form-row.woocommerce-invalid .input-text,
body.thaicigs-storefront form.checkout .form-row.woocommerce-invalid select,
body.thaicigs-storefront form.checkout .input-text[aria-invalid="true"] {
    border-color: var(--error);
    box-shadow: 0 0 0 1px var(--error);
}

body.thaicigs-storefront form.checkout .form-row.woocommerce-invalid > label,
body.thaicigs-storefront form.checkout .form-row.woocommerce-invalid label.checkbox {
    color: var(--error);
}

body.thaicigs-storefront form.checkout .checkout-inline-error-message {
    margin: 6px 0 0;
    color: var(--error);
    font-size: 14px;
    line-height: 1.35;
}

/* Единица в строке корзины и заказа («за блок», «× 3 блока»). */
body.thaicigs-storefront .thaicigs-unit {
    font-weight: 400;
    white-space: nowrap;
}

body.thaicigs-storefront .cart_item .thaicigs-unit {
    color: var(--muted);
    font-size: 0.9em;
}
/* ==== конец блока ревью 26.09.2026 ==== */
