/*
 Theme Name:   Storefront Child — Охрана-63
 Theme URI:    https://охрана63.рф
 Description:  Child-тема для интернет-магазина охранного оборудования Сократ
 Author:       Охрана-63
 Template:     storefront
 Version:      1.0.0
 Text Domain:  storefront-child
*/

/* ==========================================================================
   Шрифт Roboto + контрастный текст
   ========================================================================== */

body,
button,
input,
select,
textarea,
h1, h2, h3, h4, h5, h6,
.site-title,
.site-description,
.main-navigation ul li a,
.main-navigation a,
.secondary-navigation a,
.site-header,
.woocommerce-breadcrumb,
.woocommerce-breadcrumb a,
.storefront-sorting,
.woocommerce-tabs ul.tabs li a,
.woocommerce-tabs .panel,
.woocommerce div.product .product_title,
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price,
.widget-title,
.page-title,
.entry-title,
.entry-content,
.page-template-default .entry-content,
.woocommerce ul.products li.product-category .woocommerce-loop-category__title,
.woocommerce ul.products li.product-category h2,
.woocommerce .product-category a {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    color: #333 !important;
}

.entry-content p,
.entry-content li,
.woocommerce-tabs .panel p,
.woocommerce-product-details__short-description p {
    color: #333 !important;
    font-size: 14px;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6,
.woocommerce div.product .product_title {
    color: #222 !important;
    font-weight: 500 !important;
}

/* ==========================================================================
   Фиксированная шапка + хлебные крошки
   ========================================================================== */

/* Фиксированная шапка */
.site {
    overflow: visible !important;
}

.site-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 999;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    background: #1976d2 !important;
    color: #fff !important;
}

/* Белый текст в шапке */
.site-header a,
.site-header .site-title a,
.site-header .site-description,
.site-header .main-navigation ul li a,
.site-header .site-header-cart .cart-contents {
    color: #fff !important;
}

.site-header .main-navigation ul li a:hover {
    color: #bbdefb !important;
}

/* Branding: логотип + текст рядом */
.site-header .site-branding {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
}

/* Логотип — увеличиваем */
.site-header .custom-logo-link {
    flex-shrink: 0;
}

.site-header .custom-logo {
    max-height: 70px !important;
    width: auto !important;
    height: auto !important;
}

/* Текст рядом с логотипом — показываем принудительно */
.site-header .site-branding .oh-branding-text {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
}

.site-header .oh-branding-text .oh-site-title {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #fff !important;
    margin: 0 !important;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.site-header .oh-branding-text .oh-site-tagline {
    font-size: 12px !important;
    color: rgba(255,255,255,0.85) !important;
    margin: 2px 0 0 !important;
    font-style: italic;
}

/* Скрываем стандартный title/description (Storefront скрывает их при логотипе) */
.site-header .beta.site-title,
.site-header .site-description {
    position: static !important;
    clip: auto !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
}

/* Компактная шапка — flex-раскладка: лого | поиск | аккаунт | корзина */
.site-header .col-full {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
    display: flex !important;
    align-items: center !important;
    gap: 16px;
    flex-wrap: nowrap !important;
}

.site-header .site-search,
.woocommerce-active .site-header .site-search {
    flex: 1 1 0% !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    float: none !important;
    order: 2;
    margin: 0 !important;
    padding: 0 !important;
}

.woocommerce-active .site-header .site-branding {
    width: auto !important;
    float: none !important;
    margin-right: 0 !important;
}

.site-header .site-search .widget,
.site-header .site-search form.woocommerce-product-search {
    width: 100% !important;
    max-width: none !important;
    float: none !important;
}

.site-header .site-search input.search-field {
    width: 100% !important;
    box-sizing: border-box !important;
}

.oh-account-link {
    order: 3;
    display: flex !important;
    align-items: center;
    gap: 6px;
    background: #fff !important;
    color: #1976d2 !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    padding: 9px 20px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

.oh-account-link span {
    color: #1976d2 !important;
}

.oh-account-link:hover {
    background: #e3f2fd !important;
    color: #1565c0 !important;
}

.oh-account-link:hover span {
    color: #1565c0 !important;
}

.site-header .site-header-cart {
    order: 4;
}

.site-header .site-branding {
    order: 1;
    flex-shrink: 0 !important;
    float: none !important;
}

.site-header .site-header-cart {
    order: 4;
    flex-shrink: 0 !important;
    float: none !important;
}

.site-header .site-branding,
.site-header .site-logo-anchor,
.site-header .site-logo-link {
    margin: 0 !important;
}

.site-header .site-title {
    font-size: 20px !important;
    margin: 0 !important;
}

.site-header .main-navigation {
    margin: 0 !important;
    padding: 0 !important;
}

.site-header .main-navigation ul li a {
    padding: 8px 12px !important;
    font-size: 14px;
}

.site-header .site-header-cart .cart-contents {
    padding: 8px 0 !important;
}

/* Компактные хлебные крошки */
.storefront-breadcrumb {
    padding: 6px 0 !important;
    margin-bottom: 8px !important;
}

.storefront-breadcrumb .col-full {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.woocommerce-breadcrumb {
    font-size: 13px !important;
    margin: 0 !important;
    padding: 4px 0 !important;
}

/* ==========================================================================
   Переключатель Плитка / Список
   ========================================================================== */

.view-switcher {
    display: none; /* JS покажет после перемещения */
    gap: 4px;
}

.view-btn {
    background: #e0e0e0;
    border: none;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    border-radius: 3px;
    color: #666;
    transition: all 0.2s;
}

.view-btn:hover {
    background: #ccc;
}

.view-btn.active {
    background: #333;
    color: #fff;
}

/* ==========================================================================
   Каталог — Списочный вид
   ========================================================================== */

ul.products.list-view {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
}

.woocommerce ul.products.list-view li.product {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 8px 12px !important;
    display: flex !important;
    flex-wrap: wrap;
    align-items: center !important;
    gap: 0;
    border-bottom: 1px solid #eee;
    text-align: left !important;
}

/* Ссылка с картинкой + названием */
.woocommerce ul.products.list-view li.product a.woocommerce-LoopProduct-link {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    text-decoration: none;
    flex: 1 1 0 !important;
    min-width: 0;
    margin-right: 20px;
    justify-content: flex-start !important;
}

/* Превьюшка — жёсткий фиксированный бокс */
.woocommerce ul.products.list-view li.product a img.attachment-woocommerce_thumbnail,
.woocommerce ul.products.list-view li.product a img {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    object-fit: contain !important;
    flex: 0 0 48px !important;
    background: #f8f8f8;
    border-radius: 3px;
    padding: 2px;
    box-sizing: border-box !important;
    margin: 0 !important;
}

/* Название товара */
.woocommerce ul.products.list-view li.product .woocommerce-loop-product__title,
.woocommerce ul.products.list-view li.product h2 {
    font-size: 13px !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left !important;
}

/* Цена — отдельная колонка перед количеством */
.woocommerce ul.products.list-view li.product .price {
    font-size: 13px;
    font-weight: 700;
    margin: 0 !important;
    margin-right: 12px !important;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 100px;
    text-align: right;
    color: #333;
}

/* Поле количества */
.woocommerce ul.products.list-view li.product .quantity-list {
    display: inline-flex;
    align-items: center;
    margin-right: 8px;
    flex-shrink: 0;
}

.woocommerce ul.products.list-view li.product .quantity-list input {
    width: 48px;
    height: 30px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 13px;
    padding: 0 4px;
}

/* Кнопка "В корзину" — компактная */
.woocommerce ul.products.list-view li.product .button,
.woocommerce ul.products.list-view li.product .added_to_cart {
    font-size: 12px !important;
    padding: 6px 14px !important;
    flex-shrink: 0;
    white-space: nowrap;
    width: auto !important;
    display: inline-block !important;
}

/* Краткое описание — на новой строке */
.woocommerce ul.products.list-view li.product .list-view-excerpt {
    width: 100%;
    font-size: 12px;
    color: #777;
    margin-top: 4px;
    padding-left: 58px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

/* Скрываем рейтинг и бейдж в списке */
.woocommerce ul.products.list-view li.product .star-rating,
.woocommerce ul.products.list-view li.product .badge-purchased {
    display: none;
}

/* Категории в списочном виде */
ul.products.list-view li.product-category {
    padding: 6px 12px !important;
}

ul.products.list-view li.product-category a img {
    width: 40px !important;
    height: 40px !important;
}

ul.products.list-view li.product-category h2,
ul.products.list-view li.product-category .woocommerce-loop-category__title {
    font-size: 14px !important;
}

/* ==========================================================================
   Каталог — кнопка "В корзине" (после добавления)
   ========================================================================== */

/* Скрываем ссылку "Просмотр корзины" */
.woocommerce ul.products li.product .added_to_cart {
    display: none !important;
}

/* Кнопка после добавления — зелёная с текстом "В корзине" */
.woocommerce ul.products li.product .button.added {
    background: #2e7d32 !important;
    border-color: #2e7d32 !important;
    color: #fff !important;
}

/* ==========================================================================
   Каталог — бейдж "Уже покупали"
   ========================================================================== */

.badge-purchased {
    display: inline-block;
    background: #2e7d32;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 3px;
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 5;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Серый фон каталога */
.post-type-archive-product .site-content,
.tax-product_cat .site-content,
.tax-product_tag .site-content {
    background: #f0f0f0;
}

/* Сетка плиток — CSS Grid для одинаковой высоты в ряду */
.woocommerce ul.products:not(.list-view) {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px !important;
}

/* Убираем clearfix-псевдоэлементы WooCommerce — они занимают ячейки в Grid */
.woocommerce ul.products:not(.list-view)::before,
.woocommerce ul.products:not(.list-view)::after {
    display: none !important;
}

.woocommerce ul.products:not(.list-view).columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.woocommerce ul.products:not(.list-view).columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* Белые карточки в плитках */
.woocommerce ul.products:not(.list-view) li.product,
.woocommerce ul.products:not(.list-view) li.product-category {
    position: relative;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    padding: 16px !important;
    margin: 0 !important;
    width: 100% !important;
    float: none !important;
    clear: none !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Кнопка/полоска прижата к низу */
.woocommerce ul.products:not(.list-view) li.product .add_to_cart_button,
.woocommerce ul.products:not(.list-view) li.product .oh-cart-qty-bar {
    margin-top: auto !important;
}

/* Цена — не сжимается */
.woocommerce ul.products:not(.list-view) li.product .price {
    margin-bottom: 12px;
}

.woocommerce ul.products.list-view li.product {
    position: relative;
}

/* ==========================================================================
   Каталог — миниатюры товаров и категорий
   ========================================================================== */

/* Ограничиваем картинки категорий */
.woocommerce ul.products li.product-category a img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background: #f8f8f8;
    border-radius: 4px;
}

/* Ограничиваем картинки товаров в каталоге */
.woocommerce ul.products li.product a img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    background: #fff;
}

/* ==========================================================================
   Карточка товара — уменьшенная картинка (как у Тинко)
   ========================================================================== */

.single-product div.product div.images {
    max-width: 380px !important;
    width: 40% !important;
}

.single-product div.product div.images img {
    max-height: 350px;
    object-fit: contain;
}

.single-product div.product div.summary {
    width: 55% !important;
}

/* ==========================================================================
   Карточка товара — два вида цен
   ========================================================================== */

.oh-prices {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: flex-start;
    margin: 15px 0 20px;
}

.oh-price-row {
    display: flex;
    flex-direction: column;
}

.oh-price-row .oh-price-value {
    font-size: 24px;
    font-weight: 700;
    color: #222;
    line-height: 1.2;
}

.oh-price-row .oh-price-label {
    font-size: 13px;
    color: #888;
    margin-top: 2px;
}

.oh-price-row.oh-your .oh-price-value {
    color: #1a73e8;
}

.oh-price-row.oh-login .oh-price-value {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.oh-price-row.oh-login .oh-price-label a {
    color: #1a73e8;
    text-decoration: none;
}

.oh-price-row.oh-login .oh-price-label a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Карточка товара — кнопки +/- для количества
   ========================================================================== */

.single-product form.cart {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0 !important;
    margin-bottom: 15px !important;
}

.single-product form.cart .quantity {
    display: inline-flex !important;
    align-items: center !important;
    border: 1px solid #ccc;
    border-radius: 6px;
    overflow: hidden;
    margin: 0 !important;
}

.single-product form.cart .quantity .qty-btn {
    width: 40px;
    height: 48px;
    border: none;
    background: #ddd;
    font-size: 20px;
    cursor: pointer;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    line-height: 1;
    padding: 0;
}

.single-product form.cart .quantity .qty-minus {
    border-radius: 6px 0 0 6px;
}

.single-product form.cart .quantity .qty-plus {
    border-radius: 0 6px 6px 0;
}

.single-product form.cart .quantity .qty-btn:hover {
    background: #ccc;
}

.single-product form.cart .quantity input[type="number"] {
    width: 60px;
    height: 48px;
    text-align: center;
    border: none;
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
    background: #f5f5f5;
    font-size: 16px;
    font-weight: 600;
    -moz-appearance: textfield;
    margin: 0 !important;
    padding: 0 !important;
}

.single-product form.cart .quantity input::-webkit-inner-spin-button,
.single-product form.cart .quantity input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ==========================================================================
   Карточка товара — кнопка "В корзину" (как у Тинко)
   ========================================================================== */

.single-product form.cart .single_add_to_cart_button {
    background: #1976d2 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    margin-left: 12px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    padding: 0 32px !important;
    height: 50px !important;
    line-height: 50px !important;
    cursor: pointer;
    transition: background 0.2s;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    white-space: nowrap;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

.single-product form.cart .single_add_to_cart_button:hover {
    background: #1565c0 !important;
}

/* Иконка корзины */
.single-product form.cart .single_add_to_cart_button::before {
    content: "\1F6D2";
    font-size: 18px;
}

/* ==========================================================================
   Каталог (плитки) — кнопка «В корзину»
   ========================================================================== */

/* Скрыть описание и поля количества в плитках каталога */
ul.products:not(.list-view) li.product .list-view-excerpt {
    display: none !important;
}

ul.products:not(.list-view) li.product .quantity,
ul.products:not(.list-view) li.product .quantity-list {
    display: none !important;
}

/* Кнопка в плитках каталога — голубая, скруглённая */
ul.products:not(.list-view) li.product .button.add_to_cart_button,
ul.products:not(.list-view) li.product .button.product_type_simple {
    background: #1976d2 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    padding: 10px 20px !important;
    font-size: 14px !important;
    transition: background 0.2s;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

ul.products:not(.list-view) li.product .button.add_to_cart_button:hover,
ul.products:not(.list-view) li.product .button.product_type_simple:hover {
    background: #1565c0 !important;
}

ul.products:not(.list-view) li.product .button.add_to_cart_button:focus,
ul.products:not(.list-view) li.product .button.add_to_cart_button:active,
ul.products:not(.list-view) li.product .button.product_type_simple:focus,
ul.products:not(.list-view) li.product .button.product_type_simple:active {
    outline: none !important;
    box-shadow: none !important;
}

/* Скрыть стандартную ссылку «Просмотр корзины» в плитках */
ul.products:not(.list-view) li.product .added_to_cart {
    display: none !important;
}

/* Зелёная полоска [−][кол-во][+] заместо кнопки */
ul.products:not(.list-view) li.product .oh-cart-qty-bar {
    display: flex;
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
    height: 40px;
    box-sizing: border-box;
}

ul.products:not(.list-view) li.product .oh-cart-qty-bar button {
    background: #2e7d32;
    color: #fff;
    border: none;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    width: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

ul.products:not(.list-view) li.product .oh-cart-qty-bar button:hover {
    background: #1b5e20;
}

ul.products:not(.list-view) li.product .oh-cart-qty-bar input {
    flex: 1;
    background: #388e3c;
    color: #fff;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    -moz-appearance: textfield;
    margin: 0;
    padding: 0;
    min-width: 0;
}

ul.products:not(.list-view) li.product .oh-cart-qty-bar input::-webkit-inner-spin-button,
ul.products:not(.list-view) li.product .oh-cart-qty-bar input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ==========================================================================
   Карточка товара — блок доставки
   ========================================================================== */

.oh-delivery {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 0;
    border-top: 1px solid #eee;
    margin-top: 10px;
    font-size: 14px;
    color: #555;
    flex-wrap: wrap;
}

.oh-delivery-icon {
    font-size: 16px;
}

.oh-delivery-label {
    font-weight: 600;
    color: #333;
}

.oh-delivery a {
    color: #1a73e8;
    text-decoration: none;
}

.oh-delivery a:hover {
    text-decoration: underline;
}

.oh-delivery .oh-sep {
    color: #999;
}

/* ==========================================================================
   Карточка товара — горизонтальные табы
   ========================================================================== */

.woocommerce-tabs .tabs.wc-tabs {
    display: flex !important;
    flex-direction: row !important;
    gap: 0 !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 20px 0 !important;
    border-bottom: 2px solid #ddd;
    float: none !important;
    width: 100% !important;
    position: static !important;
}

.woocommerce-tabs .tabs.wc-tabs::before,
.woocommerce-tabs .tabs.wc-tabs::after {
    display: none !important;
}

.woocommerce-tabs .tabs.wc-tabs li {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    float: none !important;
    width: auto !important;
    position: static !important;
}

.woocommerce-tabs .tabs.wc-tabs li a {
    display: block;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
    white-space: nowrap;
}

.woocommerce-tabs .tabs.wc-tabs li a:hover {
    color: #333;
}

.woocommerce-tabs .tabs.wc-tabs li.oh-active a {
    color: #1a73e8;
    border-bottom-color: #1a73e8;
}

.woocommerce-tabs .wc-tab {
    display: none !important;
    float: none !important;
    width: 100% !important;
    clear: both !important;
}

.woocommerce-tabs .wc-tab.oh-active {
    display: block !important;
    max-height: none !important;
    overflow: visible !important;
    height: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.woocommerce-tabs .wc-tabs-wrapper {
    display: block !important;
}

/* Убираем стрелку аккордеона Storefront */
.woocommerce-tabs .tabs.wc-tabs li::after,
.woocommerce-tabs .tabs.wc-tabs li::before,
.woocommerce-tabs .wc-tab::after,
.woocommerce-tabs .wc-tab::before {
    display: none !important;
    content: none !important;
}

/* Скрываем дублирующий заголовок внутри панели описания */
.woocommerce-Tabs-panel--description > h2:first-child {
    display: none;
}

/* ==========================================================================
   Карточка товара — кастомные табы
   ========================================================================== */

.woocommerce-Tabs-panel--kit ul,
.woocommerce-Tabs-panel--docs ul {
    list-style: none;
    padding: 0;
}

.woocommerce-Tabs-panel--kit li {
    padding: 6px 0;
    border-bottom: 1px solid #eee;
}

.woocommerce-Tabs-panel--docs li {
    padding: 8px 0;
}

.woocommerce-Tabs-panel--docs li a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1a73e8;
    text-decoration: none;
    font-weight: 500;
}

.woocommerce-Tabs-panel--docs li a:hover {
    text-decoration: underline;
}

.woocommerce-Tabs-panel--docs li a::before {
    content: "\1F4C4";
    font-size: 18px;
}

/* ==========================================================================
   Страница "Мои товары" в личном кабинете
   ========================================================================== */

.my-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.my-products-grid .product-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: box-shadow 0.2s;
}

.my-products-grid .product-card:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.my-products-grid .product-card img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.my-products-grid .product-card .product-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.my-products-grid .product-card .product-price {
    font-size: 16px;
    font-weight: 700;
    color: #d32f2f;
    margin-bottom: 10px;
}

.btn-reorder {
    display: inline-block;
    background: #1976d2;
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 13px;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-reorder:hover {
    background: #1565c0;
    color: #fff;
}

/* ==========================================================================
   Фильтр "Уже покупали" в каталоге
   ========================================================================== */

.filter-purchased {
    margin-bottom: 20px;
}

.filter-purchased a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.filter-purchased a:hover,
.filter-purchased a.active {
    background: #2e7d32;
    color: #fff;
    border-color: #2e7d32;
}


/* ==========================================================================
   ГЛАВНАЯ СТРАНИЦА — Заголовок
   ========================================================================== */

/* Скрываем крупные заголовки страниц — достаточно хлебных крошек */
.entry-header .entry-title,
.page-header,
.woocommerce-products-header__title,
.page-template-default .entry-header,
.home .entry-header {
    display: none !important;
}

.oh-main-heading {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #222 !important;
    margin-bottom: 8px !important;
}

.oh-main-sub {
    font-size: 15px;
    color: #666 !important;
    margin-bottom: 30px !important;
    max-width: 800px;
    line-height: 1.6;
}


/* ==========================================================================
   СЛАЙДЕР ТОВАРОВ
   ========================================================================== */

.oh-slider-title {
    font-size: 26px !important;
    margin-bottom: 20px !important;
}

.oh-slider-wrap {
    position: relative;
    margin-bottom: 40px;
}

.oh-slider-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 4px 0 16px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.oh-slider-track::-webkit-scrollbar {
    display: none;
}

.oh-slider-card {
    flex: 0 0 calc(25% - 15px);
    min-width: 220px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    padding: 16px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s;
}

.oh-slider-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.oh-slider-img {
    text-align: center;
    margin-bottom: 10px;
}

.oh-slider-img img {
    max-height: 180px;
    width: auto !important;
    margin: 0 auto;
    display: block;
}

.oh-slider-name {
    font-size: 14px;
    font-weight: 500;
    color: #222 !important;
    text-decoration: none;
    line-height: 1.4;
    margin-bottom: 8px;
    display: block;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.oh-slider-name:hover {
    color: #1976d2 !important;
    text-decoration: none;
}

.oh-slider-price {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    margin-bottom: 12px;
    margin-top: auto;
}

.oh-slider-btn {
    display: block !important;
    text-align: center;
    background: #1976d2 !important;
    color: #fff !important;
    padding: 10px 16px !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    border: none !important;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
    box-sizing: border-box;
}

.oh-slider-btn:hover {
    background: #1565c0 !important;
    color: #fff !important;
}

.oh-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255,255,255,0.95);
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    transition: background 0.2s, box-shadow 0.2s;
    color: #333;
    padding: 0;
    line-height: 1;
}

.oh-slider-arrow:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.oh-slider-prev {
    left: -16px;
}

.oh-slider-next {
    right: -16px;
}


/* ==========================================================================
   ГЛАВНАЯ — Категории (сетка)
   ========================================================================== */

.oh-cats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.oh-cat-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    padding: 24px 20px;
    text-align: center;
    text-decoration: none;
    transition: box-shadow 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.oh-cat-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
    text-decoration: none;
}

.oh-cat-card img {
    max-height: 100px;
    width: auto;
    margin-bottom: 12px;
}

.oh-cat-card .oh-cat-name {
    font-size: 16px;
    font-weight: 600;
    color: #222;
}

.oh-cat-card .oh-cat-count {
    font-size: 13px;
    color: #888;
    margin-top: 4px;
}


/* ==========================================================================
   ГЛАВНАЯ — Преимущества
   ========================================================================== */

.oh-advantages {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.oh-advantage {
    text-align: center;
    padding: 20px 16px;
}

.oh-advantage-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.oh-advantage h3 {
    font-size: 16px !important;
    margin-bottom: 8px !important;
}

.oh-advantage p {
    font-size: 13px;
    color: #666 !important;
    line-height: 1.5;
}


/* ==========================================================================
   ГЛАВНАЯ — CTA-блок
   ========================================================================== */

.oh-cta {
    background: #f5f5f5;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    margin-bottom: 40px;
}

.oh-cta h2 {
    font-size: 24px !important;
    margin-bottom: 12px !important;
}

.oh-cta p {
    font-size: 16px;
    color: #555 !important;
    margin-bottom: 8px !important;
}

.oh-cta .oh-cta-phone {
    font-size: 28px;
    font-weight: 700;
    color: #1976d2;
}

.oh-cta .oh-cta-phone a {
    color: #1976d2;
    text-decoration: none;
}


/* ==========================================================================
   МОБИЛЬНАЯ ВЕРСИЯ (до 768px)
   ========================================================================== */

@media (max-width: 768px) {

    /* --- Шапка: вертикальная компоновка --- */
    .site-header .col-full {
        flex-wrap: wrap !important;
        gap: 8px !important;
        padding: 8px 12px !important;
    }

    .site-header .site-branding {
        order: 1;
        flex: 0 0 auto !important;
    }

    .site-header .site-branding img.custom-logo {
        max-height: 40px !important;
        width: auto !important;
    }

    .oh-account-link {
        order: 2;
        padding: 6px 12px !important;
        font-size: 13px !important;
        margin-left: auto !important;
    }

    .site-header .site-header-cart {
        order: 3;
    }

    .site-header .site-search,
    .woocommerce-active .site-header .site-search {
        order: 4;
        flex: 1 1 100% !important;
        width: 100% !important;
    }

    /* Брендинг — компактнее */
    .oh-branding-text {
        display: none !important;
    }

    /* --- Навигация --- */
    .storefront-primary-navigation {
        padding: 0 !important;
    }

    .main-navigation ul li a {
        padding: 10px 14px !important;
        font-size: 15px !important;
    }

    /* --- Каталог: 2 колонки --- */
    .woocommerce ul.products:not(.list-view) {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .woocommerce ul.products:not(.list-view) li.product,
    .woocommerce ul.products:not(.list-view) li.product-category {
        padding: 10px !important;
    }

    .woocommerce ul.products:not(.list-view) li.product .woocommerce-loop-product__title,
    .woocommerce ul.products:not(.list-view) li.product h2 {
        font-size: 13px !important;
    }

    .woocommerce ul.products:not(.list-view) li.product .price {
        font-size: 14px !important;
    }

    ul.products:not(.list-view) li.product .button.add_to_cart_button,
    ul.products:not(.list-view) li.product .button.product_type_simple {
        padding: 8px 10px !important;
        font-size: 13px !important;
    }

    /* Кнопки +/- в плитках мобиль */
    ul.products:not(.list-view) li.product .oh-cart-qty-bar {
        height: 36px;
    }
    ul.products:not(.list-view) li.product .oh-cart-qty-bar button {
        width: 34px;
        font-size: 16px;
    }

    /* --- Список (list-view) на мобиле --- */
    .woocommerce ul.products.list-view li.product {
        padding: 10px !important;
    }

    .woocommerce ul.products.list-view li.product a img {
        width: 50px !important;
        height: 50px !important;
        min-width: 50px !important;
    }

    /* --- Карточка товара (single product) --- */
    .single-product div.product {
        padding: 0 10px !important;
    }

    .single-product div.product .product_title {
        font-size: 20px !important;
    }

    .single-product div.product div.images,
    .single-product div.product div.summary {
        float: none !important;
        width: 100% !important;
    }

    .single-product form.cart {
        flex-wrap: wrap;
    }

    .single-product form.cart .quantity {
        width: 100% !important;
        margin-bottom: 10px !important;
    }

    .single-product form.cart .single_add_to_cart_button {
        width: 100% !important;
        margin-left: 0 !important;
    }

    /* Табы — вертикальные на мобиле */
    .woocommerce-tabs .wc-tabs {
        flex-direction: column !important;
    }

    .woocommerce-tabs .wc-tabs li {
        width: 100% !important;
    }

    .woocommerce-tabs .wc-tabs li a {
        padding: 10px 14px !important;
        font-size: 14px !important;
    }

    /* Блок цен */
    .oh-prices {
        flex-direction: column !important;
    }

    /* Блок доставки */
    .oh-delivery {
        font-size: 13px !important;
    }

    /* --- Главная страница --- */
    .oh-main-heading {
        font-size: 22px !important;
    }

    .oh-main-sub {
        font-size: 14px !important;
    }

    /* Слайдер */
    .oh-slider-title {
        font-size: 20px !important;
    }

    .oh-slider-card {
        flex: 0 0 calc(50% - 10px);
        min-width: 150px;
        padding: 10px;
    }

    .oh-slider-img img {
        max-height: 120px;
    }

    .oh-slider-name {
        font-size: 13px;
    }

    .oh-slider-price {
        font-size: 14px;
    }

    .oh-slider-btn {
        padding: 8px 10px !important;
        font-size: 13px !important;
    }

    .oh-slider-arrow {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    .oh-slider-prev { left: -6px; }
    .oh-slider-next { right: -6px; }

    /* Категории */
    .oh-cats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .oh-cat-card {
        padding: 16px 12px;
    }

    .oh-cat-card img {
        max-height: 70px;
    }

    .oh-cat-card .oh-cat-name {
        font-size: 14px;
    }

    /* Преимущества */
    .oh-advantages {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .oh-advantage {
        padding: 16px;
        display: flex;
        align-items: center;
        text-align: left;
        gap: 14px;
    }

    .oh-advantage-icon {
        font-size: 28px;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .oh-advantage h3 {
        margin-bottom: 4px !important;
    }

    /* CTA блок */
    .oh-cta {
        padding: 24px 16px;
    }

    .oh-cta h2 {
        font-size: 20px !important;
    }

    .oh-cta .oh-cta-phone {
        font-size: 22px;
    }

    /* --- Страницы контактов, реквизитов --- */
    .entry-content table {
        font-size: 14px;
    }

    .entry-content table td {
        display: block;
        padding: 4px 0 !important;
    }

    .entry-content table tr td:first-child {
        padding-top: 12px !important;
    }

    .entry-content iframe {
        height: 250px !important;
    }

    /* --- Хлебные крошки --- */
    .storefront-breadcrumb {
        font-size: 12px !important;
        padding: 6px 10px !important;
    }

    .view-switcher {
        position: static !important;
        transform: none !important;
        margin-top: 6px;
    }

    /* --- Сортировка и счётчик в каталоге — компактнее --- */
    .woocommerce .woocommerce-result-count,
    .woocommerce .woocommerce-ordering {
        font-size: 12px !important;
    }

    /* --- Похожие товары --- */
    .woocommerce .related.products ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    /* --- Footer --- */
    .site-footer {
        padding: 20px 10px !important;
    }

    .site-footer .footer-widgets {
        padding: 0 !important;
    }

    /* --- Общие отступы --- */
    .site-content .col-full {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .entry-content {
        padding: 0 !important;
    }

    /* Серый фон каталога — без боковых отступов */
    .post-type-archive-product .site-content,
    .tax-product_cat .site-content {
        padding: 10px !important;
    }

    /* --- Услуги на мобиле --- */
    .oh-service-heading {
        font-size: 22px !important;
    }

    .oh-service-intro {
        font-size: 14px !important;
    }

    .oh-service-block {
        padding: 16px;
    }

    .oh-service-cta .oh-cta-phone {
        font-size: 22px;
    }
}

/* ==========================================================================
   МОБИЛЬНАЯ — мелкие экраны (до 480px)
   ========================================================================== */

@media (max-width: 480px) {

    /* Слайдер — 1 карточка */
    .oh-slider-card {
        flex: 0 0 calc(100% - 40px);
    }

    /* Каталог можно оставить 2 колонки, но ещё компактнее */
    .woocommerce ul.products:not(.list-view) {
        gap: 8px !important;
    }

    .woocommerce ul.products:not(.list-view) li.product {
        padding: 8px !important;
    }

    .woocommerce ul.products:not(.list-view) li.product .woocommerce-loop-product__title {
        font-size: 12px !important;
    }

    /* Категории — 1 колонка */
    .oh-cats-grid {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================================
   СТРАНИЦЫ УСЛУГ (Проектирование, Монтаж, Техобслуживание)
   ========================================================================== */

.oh-service-heading {
    font-size: 28px !important;
    color: #1976d2 !important;
    margin-bottom: 12px !important;
}

.oh-service-intro {
    font-size: 16px;
    color: #444 !important;
    line-height: 1.7;
    max-width: 850px;
    margin-bottom: 32px !important;
}

.oh-service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 28px;
}

.oh-service-block {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
}

.oh-service-block h3 {
    font-size: 18px !important;
    color: #222 !important;
    margin-bottom: 14px !important;
    font-weight: 600 !important;
}

.oh-service-block ul,
.oh-service-block ol {
    padding-left: 20px;
    margin: 0;
}

.oh-service-block li {
    margin-bottom: 6px;
    line-height: 1.5;
    font-size: 14px;
}

.oh-service-block a {
    color: #1976d2;
}

.oh-service-cta {
    background: linear-gradient(135deg, #1565c0 0%, #1976d2 50%, #42a5f5 100%);
    color: #fff;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    margin-top: 32px;
}

.oh-service-cta h3 {
    color: #fff !important;
    font-size: 24px !important;
    margin-bottom: 12px !important;
}

.oh-service-cta p {
    color: rgba(255,255,255,0.9) !important;
    font-size: 16px;
    margin-bottom: 8px !important;
}

.oh-service-cta .oh-cta-phone {
    font-size: 28px;
    font-weight: 700;
}

.oh-service-cta .oh-cta-phone a {
    color: #fff;
    text-decoration: none;
}

.oh-service-cta a {
    color: #fff;
}

/* Тарифы ТО */
.oh-tariffs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 16px;
}

.oh-tariff {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.oh-tariff h4 {
    font-size: 16px !important;
    color: #1976d2 !important;
    margin-bottom: 8px !important;
    font-weight: 600 !important;
}

.oh-tariff p {
    font-size: 13px;
    color: #555 !important;
    line-height: 1.5;
    margin: 0 !important;
}

@media (max-width: 768px) {
    .oh-service-grid {
        grid-template-columns: 1fr;
    }
    .oh-tariffs {
        grid-template-columns: 1fr;
    }
    .oh-service-cta {
        padding: 28px 20px;
    }
}

/* ==========================================================================
   UX: ТЕЛЕФОН В ШАПКЕ
   ========================================================================== */

.oh-header-phone {
    order: 1;
    white-space: nowrap;
    flex-shrink: 0;
}

.oh-header-phone a {
    color: #1976d2;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.oh-header-phone a:hover {
    color: #0d47a1;
}

/* ==========================================================================
   UX: ПОИСК С АВТОДОПОЛНЕНИЕМ
   ========================================================================== */

.oh-search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 9999;
    max-height: 400px;
    overflow-y: auto;
}

.oh-search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    text-decoration: none !important;
    color: #333 !important;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s;
}

.oh-search-item:hover {
    background: #f5f9ff;
}

.oh-search-item img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 4px;
    flex-shrink: 0;
}

.oh-search-info {
    flex: 1;
    min-width: 0;
}

.oh-search-title {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.oh-search-sku {
    font-size: 11px;
    color: #999;
    margin-top: 2px;
}

.oh-search-price {
    font-size: 14px;
    font-weight: 700;
    color: #1976d2;
    margin-top: 2px;
}

.oh-search-empty {
    padding: 16px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

/* ==========================================================================
   UX: ФИЛЬТР ПО ЦЕНЕ
   ========================================================================== */

.oh-price-filter {
    margin-bottom: 16px;
    padding: 12px 16px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.oh-price-filter-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.oh-pf-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.oh-price-filter input[type="number"] {
    width: 100px;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.oh-pf-sep {
    color: #999;
}

.oh-price-filter button {
    background: #1976d2;
    color: #fff;
    border: none;
    padding: 7px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    font-weight: 500;
}

.oh-price-filter button:hover {
    background: #1565c0;
}

/* ==========================================================================
   UX: КУПИТЬ В 1 КЛИК
   ========================================================================== */

.oh-oneclick-btn {
    display: inline-block;
    vertical-align: middle;
    margin-left: 10px;
    padding: 0.618em 1em;
    background: transparent;
    border: 2px solid #1976d2;
    color: #1976d2;
    border-radius: 6px;
    font-size: 100%;
    font-weight: 600;
    line-height: 1.618;
    cursor: pointer;
    transition: all 0.2s;
    box-sizing: border-box;
}

.oh-oneclick-btn:hover {
    background: #1976d2;
    color: #fff;
}

.oh-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.oh-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}

.oh-modal-content {
    position: relative;
    background: #fff;
    padding: 32px;
    border-radius: 12px;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 16px 48px rgba(0,0,0,0.2);
}

.oh-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    line-height: 1;
}

.oh-modal-content h3 {
    font-size: 20px !important;
    margin-bottom: 8px !important;
    color: #222 !important;
}

.oh-oneclick-product {
    color: #666;
    font-size: 14px;
    margin-bottom: 16px !important;
}

#oh-oneclick-form input[type="tel"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 12px;
    box-sizing: border-box;
}

#oh-oneclick-form input[type="tel"]:focus {
    border-color: #1976d2;
    outline: none;
}

#oh-oneclick-form button {
    width: 100%;
    padding: 12px;
    background: #1976d2;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

#oh-oneclick-form button:hover {
    background: #1565c0;
}

.oh-oneclick-note {
    font-size: 12px;
    color: #999;
    text-align: center;
    margin-top: 8px !important;
}

.oh-oneclick-success {
    text-align: center;
    color: #2e7d32;
    font-size: 16px;
    font-weight: 600;
    padding: 20px 0;
}

/* ==========================================================================
   UX: БЕЙДЖИ НАЛИЧИЯ
   ========================================================================== */

.oh-stock-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 4px;
}

.oh-stock-badge.oh-in-stock {
    background: #e8f5e9;
    color: #2e7d32;
}

.oh-stock-badge.oh-on-order {
    background: #fff3e0;
    color: #e65100;
}

.oh-stock-single {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 12px;
}

.oh-stock-single.oh-in-stock {
    color: #2e7d32;
}

.oh-stock-single.oh-on-order {
    color: #e65100;
}

.oh-stock-single span {
    font-size: 10px;
    margin-right: 4px;
}

/* ==========================================================================
   МОБИЛЬНЫЕ СТИЛИ UX ЭЛЕМЕНТОВ
   ========================================================================== */

@media (max-width: 768px) {
    .oh-header-phone {
        order: 0;
        width: 100%;
        text-align: center;
        margin-bottom: 4px;
    }

    .oh-header-phone a {
        font-size: 16px;
    }

    .oh-price-filter-form {
        flex-wrap: wrap;
    }

    .oh-price-filter input[type="number"] {
        width: 80px;
    }

    .oh-oneclick-btn {
        font-size: 13px;
        padding: 8px 16px;
    }

    .oh-modal-content {
        padding: 24px;
    }

    .oh-search-dropdown {
        max-height: 300px;
    }
}

/* ==========================================================================
   Компактная таблица характеристик товара
   ========================================================================== */

.woocommerce-product-attributes th,
.woocommerce-product-attributes td,
table.shop_attributes th,
table.shop_attributes td {
    padding: 6px 12px;
}


/* =========================================================================
   ФОРМА РЕГИСТРАЦИИ: физлицо / юрлицо
   ========================================================================= */

.oh-customer-type-row {
    margin-bottom: 20px !important;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.oh-radio-group {
    display: flex;
    gap: 20px;
    margin-top: 8px;
}

.oh-radio-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-weight: 400;
    font-size: 14px;
}

.oh-radio-group input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #2c6ecb;
}

#oh-company-fields input[readonly] {
    background: #f5f5f5;
    color: #555;
}

/* DaData status hints */
.oh-inn-hint {
    display: block;
    font-size: 12px;
    margin-top: 4px;
    min-height: 16px;
}

.oh-inn-loading {
    color: #666;
}

.oh-inn-success {
    color: #28a745;
    font-weight: 500;
}

.oh-inn-error {
    color: #dc3545;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .oh-radio-group {
        flex-direction: column;
        gap: 10px;
    }
}
