/*
Theme Name: Гидроруль
Description: Тема интернет-магазина gidrorul.ru (WooCommerce) в оформлении старого сайта (шаблон Origami).
Version: 2.0
Requires PHP: 8.1
Text Domain: gidrorul
*/

/* ---------- tokens of the old Origami template ---------- */
:root {
  --main: #085da9;
  --main-hover: #064278;
  --text: #000;
  --text2: #555;
  --grey: #8d8d8d;
  --line: #ededed;
  --bg2: #f4f4f4;
  --green: #4caf50;
  --red: #e53935;
  --side: 280px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 14px/1.45 Ubuntu, Arial, sans-serif; color: var(--text); background: #fff; }
img { max-width: 100%; height: auto; }
a { color: var(--main); text-decoration: none; }
a:hover { color: var(--main-hover); }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; margin: 0 0 .7em; }
h2 { font-size: 20px; margin-top: 1.4em; }
h3 { font-size: 17px; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; }
.screen-reader-text { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.o-container { max-width: 1600px; margin: 0 auto; padding: 0 15px; }

.o-btn, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit,
.woocommerce a.button.alt, .woocommerce button.button.alt {
  display: inline-block; background: var(--main); color: #fff; border: 0; border-radius: 0; padding: 10px 20px;
  font-size: 13px; font-weight: 500; line-height: 1.2; cursor: pointer; text-align: center; transition: background .2s;
}
.o-btn:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover,
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover { background: var(--main-hover); color: #fff; }
.o-btn--block { display: block; width: 100%; }
.woocommerce a.button.disabled, .woocommerce button.button:disabled, .woocommerce button.button.alt.disabled { background: #9db8d2; }

/* ---------- header ---------- */
.o-header { background: #fff; position: relative; z-index: 50; }
.o-header__main { display: flex; align-items: center; justify-content: space-between; gap: 30px; height: 100px; }
.o-header__logo img { display: block; width: 184px; height: auto; }
.o-search { flex: 0 1 370px; display: flex; position: relative; }
.o-search input { width: 100%; height: 40px; border: 1px solid var(--line); background: #fff; padding: 0 44px 0 15px; outline: 0; font-size: 13px; }
.o-search input:focus { border-color: var(--main); }
.o-search button { position: absolute; right: 0; top: 0; width: 40px; height: 40px; border: 0; background: none; color: var(--grey); cursor: pointer; }
.o-search button:hover { color: var(--main); }
.o-contact { position: relative; padding: 10px 0; }
.o-contact__phone { display: block; color: var(--text); font-size: 16px; font-weight: 500; }
.o-contact__mail { display: flex; align-items: center; gap: 5px; font-size: 13px; }
.o-contact__drop {
  position: absolute; top: 100%; left: -20px; width: 290px; background: #fff; padding: 20px; box-shadow: 0 5px 20px rgba(0,0,0,.15);
  display: none; font-size: 13px; color: var(--text2);
}
.o-contact__drop > a:not(.o-btn) { display: block; color: var(--text); font-size: 15px; margin-bottom: 5px; }
.o-contact__drop p { margin: 12px 0; }
.o-contact__drop p b { color: var(--text); font-weight: 500; }
.o-contact:hover .o-contact__drop, .o-contact:focus-within .o-contact__drop { display: block; }
.o-personal { font-size: 13px; line-height: 1.35; min-width: 110px; }
.o-personal a { display: block; color: var(--text); font-weight: 500; }
.o-personal a:hover { color: var(--main); }
.o-personal p { margin: 2px 0 0; color: var(--grey); font-size: 11px; }
.o-basket__link { position: relative; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: #b5b5b5; }
.o-basket__link:hover { color: var(--main); }
.o-basket .header__count {
  position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; border-radius: 9px; background: #b5b5b5; color: #fff;
  font-size: 11px; line-height: 18px; text-align: center; padding: 0 4px;
}
.o-burger { display: none; width: 40px; height: 40px; border: 0; background: none; padding: 9px 8px; cursor: pointer; }
.o-burger span { display: block; height: 2px; background: var(--main); margin: 4px 0; }

/* ---------- main menu ---------- */
.o-nav { background: var(--main); }
.o-nav > .o-container { padding: 0; }
.o-nav__list { display: flex; list-style: none; margin: 0; padding: 0; }
.o-nav__item { position: relative; flex: 1 1 auto; border-left: 1px solid rgba(255,255,255,.15); }
.o-nav__item:first-child { border-left: 0; }
.o-nav__item--catalog { flex-grow: 2; }
.o-nav__item > a { display: flex; align-items: center; justify-content: center; height: 60px; padding: 0 15px; color: #fff; font-weight: 700; font-size: 14px; text-align: center; transition: background .2s; }
.o-nav__item > a:hover, .o-nav__item.is-active > a { background: var(--main-hover); color: #fff; }
.o-nav__drop {
  position: absolute; left: 0; top: 100%; width: min(900px, 90vw); background: #fff; box-shadow: 0 8px 20px rgba(0,0,0,.15);
  padding: 15px; display: none;
}
.o-nav__item--catalog:hover .o-nav__drop, .o-nav__item--catalog:focus-within .o-nav__drop { display: block; }
.o-nav__drop ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px 20px; }
.o-nav__drop a { display: flex; align-items: center; gap: 12px; padding: 6px 8px; color: var(--text); font-size: 13px; }
.o-nav__drop a:hover { color: var(--main); background: var(--bg2); }
.o-nav__drop img { width: 42px; height: 42px; object-fit: contain; flex: none; }

/* ---------- page frame ---------- */
.o-main { padding: 15px 0 50px; }
.o-frame { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.o-frame--catalog, .o-frame--services, .o-frame--subscribe { grid-template-columns: var(--side) minmax(0, 1fr); }
.o-frame--news { grid-template-columns: minmax(0, 1fr) var(--side); }
.o-content { min-width: 0; }
.o-title, .woocommerce-products-header__title, .product_title { font-size: 24px; font-weight: 700; margin: 0 0 15px; }
.breadcrumbs, .woocommerce .woocommerce-breadcrumb {
  font-size: 11px; color: var(--grey); margin: 0 0 15px; padding: 0;
}
.breadcrumbs a, .woocommerce .woocommerce-breadcrumb a { color: var(--text); margin-right: 2px; }
.breadcrumbs a:hover, .woocommerce .woocommerce-breadcrumb a:hover { color: var(--main); }

/* ---------- left column: catalog menu with icons ---------- */
.o-left { min-width: 0; }
.o-side-menu { border: 1px solid var(--line); background: #fff; margin-bottom: 20px; }
.o-side-menu ul { list-style: none; margin: 0; padding: 0; }
.o-side-menu__item { position: relative; border-top: 1px solid var(--line); }
.o-side-menu__item:first-child { border-top: 0; }
.o-side-menu__item > a {
  display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 5px 15px 5px 12px; color: var(--text); font-size: 12px; line-height: 1.3;
  border-left: 3px solid transparent;
}
.o-side-menu__item > a img { width: 42px; height: 42px; object-fit: contain; flex: none; }
.o-side-menu__item:hover > a, .o-side-menu__item.is-active > a { color: var(--main); border-left-color: var(--main); }
.o-side-menu__item.has-kids > a::after { content: ''; margin-left: auto; width: 6px; height: 6px; border: solid #b5b5b5; border-width: 1px 1px 0 0; transform: rotate(45deg); flex: none; }
.o-side-menu__fly {
  display: none; position: absolute; left: 100%; top: -1px; width: 320px; max-height: 70vh; overflow: auto; background: #fff;
  border: 1px solid var(--line); box-shadow: 4px 4px 15px rgba(0,0,0,.1); padding: 10px 0; z-index: 20;
}
.o-side-menu__item:hover > .o-side-menu__fly { display: block; }
.o-side-menu__fly a { display: block; padding: 6px 20px; color: var(--text); font-size: 12px; }
.o-side-menu__fly a:hover { color: var(--main); background: var(--bg2); }
.o-side-block { border: 1px solid var(--line); padding: 20px 15px; margin-bottom: 20px; }
.o-side-block__title { display: block; font-size: 14px; font-weight: 700; text-transform: uppercase; color: var(--text); margin-bottom: 15px; }
a.o-side-block__title:hover { color: var(--main); }
.o-side-links { list-style: none; margin: 0; padding: 0; }
.o-side-links li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.o-side-links li.is-active a { color: var(--main-hover); font-weight: 500; }
.o-side-news { list-style: none; margin: 0; padding: 0; }
.o-side-news li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.o-side-news li:last-child { border-bottom: 0; }
.o-side-news a { display: block; color: var(--text); font-weight: 500; font-size: 13px; }
.o-side-news a:hover { color: var(--main); }
.o-side-news time { display: block; color: var(--grey); font-size: 11px; margin-top: 4px; }

/* subscribe forms */
.o-subscribe__row { display: flex; }
.o-subscribe__row input { flex: 1; min-width: 0; height: 40px; border: 1px solid var(--line); padding: 0 12px; font-size: 13px; background: #fff; color: var(--text); }
.o-subscribe__row button { width: 40px; height: 40px; border: 0; background: var(--main); color: #fff; cursor: pointer; flex: none; }
.o-subscribe__row button:hover { background: var(--main-hover); }
.o-subscribe__label { font-size: 13px; font-weight: 500; margin: 15px 0 8px; }
.o-subscribe label { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 6px; cursor: pointer; }
.o-subscribe__ok { color: var(--green); font-size: 13px; margin: 10px 0 0; }

/* ---------- catalog root ---------- */
.o-catalog { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; align-items: start; }
.o-catalog__item { display: flex; border: 1px solid var(--line); min-height: 150px; align-self: stretch; transition: box-shadow .2s; }
.o-catalog__item:hover { box-shadow: 0 0 15px rgba(0,0,0,.1); }
.o-catalog__img { flex: 0 0 135px; display: flex; align-items: center; justify-content: center; padding: 15px; background: var(--bg2); }
.o-catalog__img img { width: 100px; height: 100px; object-fit: contain; mix-blend-mode: multiply; }
.o-catalog__body { padding: 25px 25px 20px 30px; min-width: 0; background: #fafafa; flex: 1; }
.o-catalog__name { display: block; color: var(--text); font-weight: 700; font-size: 21px; line-height: 1.3; margin-bottom: 18px; }
.o-catalog__name:hover { color: var(--main); }
.o-catalog__kids { list-style: none; margin: 0; padding: 0; font-size: 12px; line-height: 1.6; }
.o-catalog__kids li { margin: 0; }
.o-catalog__kids a { color: var(--grey); }
.o-catalog__kids small { font-size: 12px; }
.o-catalog__kids a:hover { color: var(--main); }
.o-catalog__kids small, .o-subcats small { color: var(--grey); font-size: 11px; }

/* ---------- section page ---------- */
.o-section-banner { display: block; width: 100%; margin-bottom: 10px; }
.term-description { margin: 10px 0; }
.o-subcats { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin: 15px 0; }
.o-subcats__item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); color: var(--text); font-size: 12px; line-height: 1.3; }
.o-subcats__item:hover { border-color: var(--main); color: var(--main); }
.o-subcats__img { flex: 0 0 42px; height: 42px; display: flex; align-items: center; justify-content: center; }
.o-subcats__img img { max-width: 42px; max-height: 42px; object-fit: contain; }
.o-sortbar { display: flex; flex-wrap: wrap; gap: 10px 30px; align-items: center; font-size: 11px; color: var(--text); padding: 10px 0; margin-bottom: 10px; }
.o-sortbar a { color: var(--grey); margin-left: 8px; }
.o-sortbar a:hover, .o-sortbar a.is-active { color: var(--main); }
.woocommerce .woocommerce-notices-wrapper:empty { display: none; }

/* product grid: cells separated by thin lines, as in Origami */
.woocommerce ul.products, .woocommerce-page ul.products {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 20px; padding: 0; list-style: none;
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.o-card {
  float: none !important; width: auto !important; clear: none !important; margin: 0 !important; padding: 20px 15px 25px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; text-align: center; transition: box-shadow .2s; background: #fff;
}
.woocommerce ul.products li.o-card:hover { box-shadow: 0 0 20px rgba(0,0,0,.12); position: relative; z-index: 1; }
.o-card__img { display: flex; align-items: center; justify-content: center; width: 100%; height: 190px; margin-bottom: 15px; }
.woocommerce ul.products li.o-card .o-card__img img { width: auto; max-width: 100%; max-height: 190px; margin: 0; object-fit: contain; }
.o-card__name { color: var(--text); font-weight: 700; font-size: 13px; line-height: 1.35; margin-bottom: 12px; min-height: 36px; }
.o-card__name:hover { color: var(--main); }
.o-card__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 15px; font-size: 11px; color: var(--grey); margin-bottom: 10px; }
.o-card__stock.is-in { color: var(--text); }
.o-card__stock.is-in::first-letter { color: var(--green); font-weight: 700; }
.o-card__stock.is-order { color: var(--grey); }
.o-card__price { font-size: 18px; font-weight: 700; color: var(--text); margin: auto 0 15px; }
.woocommerce ul.products li.o-card .o-card__price .price { color: var(--text); font-size: 18px; margin: 0; }
.o-card__price del { color: var(--grey); font-size: 13px; font-weight: 400; }
.gr-request-price { font-size: 14px; font-weight: 500; color: var(--text2); }
.woocommerce ul.products li.o-card .button { margin: 0; padding: 10px 22px; }
.woocommerce ul.products li.o-card .added_to_cart { display: block; font-size: 12px; margin-top: 6px; }
.woocommerce nav.woocommerce-pagination ul { border: 0; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; margin: 0 2px; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span { min-width: 36px; padding: 10px; border: 1px solid var(--line); color: var(--text); }
.woocommerce nav.woocommerce-pagination ul li span.current, .woocommerce nav.woocommerce-pagination ul li a:hover { background: var(--main); border-color: var(--main); color: #fff; }

/* ---------- product page ---------- */
.woocommerce div.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px 40px; }
.woocommerce div.product > * { grid-column: 1 / -1; }
.woocommerce div.product div.images, .woocommerce div.product div.summary { float: none; width: auto; margin: 0; }
.woocommerce div.product div.images { grid-column: 1; border: 1px solid var(--line); padding: 20px; }
.woocommerce div.product div.images img { max-height: 480px; object-fit: contain; }
.woocommerce div.product div.summary { grid-column: 2; }
.woocommerce div.product .product_title { font-size: 24px; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--text); font-size: 30px; font-weight: 700; margin: 10px 0 15px; }
.o-avail { display: flex; align-items: center; gap: 10px; font-size: 13px; margin-bottom: 15px; }
.o-badge { display: inline-block; padding: 5px 10px; font-size: 12px; font-weight: 500; color: #fff; }
.o-badge--in { background: var(--green); }
.o-badge--order { background: var(--red); }
.woocommerce div.product form.cart { display: flex; gap: 10px; align-items: center; margin: 15px 0 20px; }
.woocommerce div.product form.cart div.quantity { float: none; margin: 0; }
.woocommerce .quantity .qty { width: 70px; height: 42px; border: 1px solid var(--line); }
.woocommerce div.product form.cart .button { float: none; padding: 14px 35px; font-size: 14px; }
.product_meta { font-size: 13px; color: var(--grey); }
.product_meta > span { display: block; margin-bottom: 4px; }
.product_meta a, .product_meta span span { color: var(--text); }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; margin: 0; border-bottom: 1px solid var(--line); }
.woocommerce div.product .woocommerce-tabs ul.tabs::before { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { background: none; border: 0; border-radius: 0; margin: 0 25px 0 0; padding: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { padding: 12px 0; font-weight: 700; color: var(--grey); border-bottom: 2px solid transparent; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--text); border-bottom-color: var(--main); }
.woocommerce div.product .woocommerce-tabs .panel { padding: 20px 0; }
.woocommerce div.product .woocommerce-tabs .panel > h2:first-child { display: none; }
.woocommerce table.shop_attributes th, .woocommerce table.shop_attributes td { border-top: 1px solid var(--line); padding: 8px 12px; font-style: normal; }
.related.products > h2, .upsells.products > h2 { font-size: 20px; }

/* cart / checkout / account */
.woocommerce table.shop_table { border: 1px solid var(--line); border-radius: 0; }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { border-color: var(--line); }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select {
  border: 1px solid #d9d9d9; padding: 9px 12px; border-radius: 0;
}
.woocommerce-message, .woocommerce-info, .woocommerce-error { border-top-color: var(--main); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--main); }

/* блок оплаты в оформлении заказа: цвета сайта вместо лилового WooCommerce */
.woocommerce-checkout #payment { background: var(--bg2); border-radius: 0; }
.woocommerce-checkout #payment div.payment_box { background: #fff; border: 1px solid var(--line); border-radius: 0; color: var(--text2); }
.woocommerce-checkout #payment div.payment_box::before { display: none; }
.woocommerce-checkout #payment ul.payment_methods { border-bottom-color: var(--line); }

/* ---------- personal account ---------- */
/* вход и регистрация — две колонки в рамках, как боковые блоки сайта */
.woocommerce-account .u-columns.col2-set { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; width: auto; float: none; }
.woocommerce-account .u-columns.col2-set::before, .woocommerce-account .u-columns.col2-set::after { display: none; }
.woocommerce-account .u-columns .u-column1, .woocommerce-account .u-columns .u-column2 { width: auto; float: none; max-width: none; }
.woocommerce-account .u-columns h2 { font-size: 14px; font-weight: 700; text-transform: uppercase; margin: 0 0 15px; }
.woocommerce form.login, .woocommerce form.register, .woocommerce form.lost_reset_password {
  border: 1px solid var(--line); border-radius: 0; padding: 25px 20px; margin: 0;
}
.woocommerce form.lost_reset_password { max-width: 520px; }
.woocommerce form .form-row label { font-size: 13px; color: var(--text2); margin-bottom: 4px; }
.woocommerce form .form-row .required { color: var(--red); }
.woocommerce form.login .form-row:has(.woocommerce-form-login__submit) { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: 15px; }
.woocommerce form.login .woocommerce-form-login__rememberme { order: 2; margin: 0; font-size: 13px; color: var(--text2); }
.woocommerce form.login .woocommerce-form-login__submit { order: 1; float: none; margin: 0; }
.woocommerce form.login .lost_password { margin: 15px 0 0; font-size: 13px; }
.woocommerce form.register .woocommerce-privacy-policy-text, .woocommerce form.register > p:not(.form-row) { font-size: 12px; color: var(--grey); }
.o-acc-intro { color: var(--text2); margin: -5px 0 20px; max-width: 760px; }
/* «показать пароль»: иконка-глаз вместо шрифта WooCommerce */
.woocommerce form .password-input { display: block; position: relative; }
.woocommerce form .show-password-input {
  position: absolute; right: 1px; top: 1px; bottom: 1px; width: 40px; padding: 0; border: 0; border-radius: 0; background: #fff center / 18px no-repeat
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238d8d8d' stroke-width='1.8'%3E%3Cpath d='M1 12s4-7 11-7 11 7 11 7-4 7-11 7S1 12 1 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
  cursor: pointer;
}
.woocommerce form .show-password-input::before, .woocommerce form .show-password-input::after { display: none; }
.woocommerce form .show-password-input.display-password { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23085da9' stroke-width='1.8'%3E%3Cpath d='M1 12s4-7 11-7 11 7 11 7-4 7-11 7S1 12 1 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M3 3l18 18'/%3E%3C/svg%3E"); }

/* кабинет: меню слева (как боковое меню каталога), содержимое справа */
.woocommerce-account.logged-in .o-article .woocommerce { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 30px; align-items: start; }
.woocommerce-account.logged-in .o-article .woocommerce > :not(.woocommerce-MyAccount-navigation):not(.woocommerce-MyAccount-content) { grid-column: 1 / -1; }
/* clearfix-псевдоэлементы WooCommerce в сетке заняли бы ячейки */
.woocommerce-account.logged-in .o-article .woocommerce::before, .woocommerce-account.logged-in .o-article .woocommerce::after { display: none; }
.woocommerce-MyAccount-navigation { float: none; width: auto; }
.woocommerce-MyAccount-navigation ul, .o-acc__orders { list-style: none; margin: 0; padding: 0 !important; }
.woocommerce-MyAccount-navigation ul { border: 1px solid var(--line); }
.woocommerce-MyAccount-navigation li + li { border-top: 1px solid var(--line); }
.woocommerce-MyAccount-navigation a {
  display: block; padding: 14px 15px 14px 12px; color: var(--text); font-size: 13px; font-weight: 500; border-left: 3px solid transparent;
}
.woocommerce-MyAccount-navigation a:hover, .woocommerce-MyAccount-navigation li.is-active a { color: var(--main); border-left-color: var(--main); background: var(--bg2); }
.woocommerce-MyAccount-navigation-link--customer-logout a { color: var(--grey); font-weight: 400; }
.woocommerce-MyAccount-content { float: none; width: auto; min-width: 0; }
.woocommerce-MyAccount-content > h2, .woocommerce-MyAccount-content h2.woocommerce-column__title,
.woocommerce-MyAccount-content .woocommerce-order-details__title, .woocommerce-MyAccount-content .woocommerce-customer-details h2 { font-size: 18px; margin: 25px 0 12px; }
.woocommerce-MyAccount-content form { max-width: 760px; }
.woocommerce-EditAccountForm label[for="account_last_name"] .required { display: none; } /* фамилия необязательна (gidrorul-shop.php) */
.woocommerce-MyAccount-content form h3 { font-size: 18px; margin: 0 0 15px; }
.woocommerce-MyAccount-content fieldset { border: 1px solid var(--line); margin: 25px 0 15px; padding: 15px 20px 5px; }
.woocommerce-MyAccount-content legend { font-weight: 700; padding: 0 6px; }
.woocommerce-MyAccount-content .woocommerce-info, .woocommerce-MyAccount-content .woocommerce-message { margin-top: 0; }
.woocommerce-account .woocommerce-info, .woocommerce-account .woocommerce-message, .woocommerce-account .woocommerce-error { background: var(--bg2); font-size: 13px; }
.woocommerce-account .woocommerce-info .button, .woocommerce-account .woocommerce-message .button { padding: 8px 16px; font-size: 12px; }
/* значок уведомления: шрифт иконок WooCommerce тема не подключает — рисуем значок в круге (корзина, заказ, кабинет) */
.woocommerce-info::before, .woocommerce-message::before, .woocommerce-error::before {
  content: "i"; font: 700 11px/16px Ubuntu, sans-serif; width: 16px; height: 16px; text-align: center; border-radius: 50%; background: var(--main); color: #fff;
}
.woocommerce-message::before { content: "✓"; background: var(--green, #2e7d32); }
.woocommerce-error::before { content: "!"; background: var(--red); }
.woocommerce-account .woocommerce-info, .woocommerce-account .woocommerce-message { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.woocommerce-account .woocommerce-info .button, .woocommerce-account .woocommerce-message .button { order: 2; float: none; }

/* таблицы заказов */
.woocommerce-account table.shop_table { font-size: 13px; }
.woocommerce-account table.shop_table thead th { background: var(--bg2); font-weight: 500; color: var(--text2); padding: 10px 12px; }
.woocommerce-account table.shop_table td, .woocommerce-account table.shop_table tbody th, .woocommerce-account table.shop_table tfoot th { padding: 12px; vertical-align: middle; border-top: 1px solid var(--line); }
.woocommerce-account .woocommerce-customer-details address { border: 1px solid var(--line); border-radius: 0; padding: 15px 20px; }
.woocommerce-account table.my_account_orders { width: 100%; }
.woocommerce-account .woocommerce-orders-table__cell-order-total { white-space: nowrap; }
.woocommerce-account table.my_account_orders .button { padding: 7px 14px; font-size: 12px; margin: 0 4px 0 0; }
.woocommerce-account .woocommerce-orders-table__cell-order-number a { font-weight: 700; }
.o-acc__status { display: inline-block; font-style: normal; font-size: 11px; padding: 3px 8px; background: var(--bg2); color: var(--text2); white-space: nowrap; }
.o-acc__status--processing, .o-acc__status--on-hold { background: #e6eff8; color: var(--main); }
.o-acc__status--completed { background: #e8f5e9; color: #2e7d32; }
.o-acc__status--cancelled, .o-acc__status--failed, .o-acc__status--refunded { background: #fdecea; color: var(--red); }
.woocommerce-account mark.order-status, .woocommerce-account mark.order-number, .woocommerce-account mark.order-date { background: none; font-weight: 700; color: var(--text); }

/* главная кабинета */
.o-acc__hello { margin: 0 0 20px; color: var(--text2); }
.o-acc__hello strong { color: var(--text); }
.o-acc__tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.o-acc__tile { border: 1px solid var(--line); padding: 20px; display: flex; flex-direction: column; }
.o-acc__tile p { margin: 0 0 10px; }
.o-acc__tile .o-acc__tile-title { font-size: 14px; font-weight: 700; text-transform: uppercase; margin: 0 0 15px; }
.o-acc__orders { list-style: none; margin: 0 0 10px; padding: 0; }
.o-acc__orders li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.o-acc__orders li a { font-weight: 700; }
.o-acc__orders li span { grid-column: 1; color: var(--grey); font-size: 12px; }
.o-acc__orders li .o-acc__status { grid-column: 2; grid-row: 1 / 3; align-self: center; }
.o-acc__dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0 0 10px; font-size: 13px; }
.o-acc__dl dt { color: var(--grey); }
.o-acc__dl dd { margin: 0; overflow-wrap: anywhere; }
.o-acc__more { margin-top: auto; padding-top: 5px; font-size: 13px; font-weight: 500; }
.o-acc__phone { font-size: 16px; font-weight: 500; color: var(--text); }
.o-acc__note { color: var(--grey); font-size: 12px; }
@media (max-width: 991px) {
  .woocommerce-account.logged-in .o-article .woocommerce { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  /* меню кабинета на узком экране — строка кнопок */
  .woocommerce-MyAccount-navigation ul { display: flex; flex-wrap: wrap; border: 0; gap: 6px; }
  .woocommerce-MyAccount-navigation li + li { border-top: 0; }
  .woocommerce-MyAccount-navigation a { border: 1px solid var(--line); padding: 9px 12px; }
  .woocommerce-MyAccount-navigation li.is-active a { border-color: var(--main); }
}
@media (max-width: 767px) {
  .woocommerce-account .u-columns.col2-set { grid-template-columns: minmax(0, 1fr); }
  .woocommerce form.login, .woocommerce form.register { padding: 20px 15px; }
  /* таблица заказов: WooCommerce сам превращает строки в карточки (shop_table_responsive) */
  .woocommerce-account table.shop_table_responsive thead { display: none; }
  .woocommerce-account table.shop_table_responsive tr { display: block; border-top: 1px solid var(--line); }
  .woocommerce-account table.shop_table_responsive tr td, .woocommerce-account table.shop_table_responsive tr th { display: block; text-align: right; border: 0; padding: 6px 12px; }
  .woocommerce-account table.shop_table_responsive tr td::before, .woocommerce-account table.shop_table_responsive tr th::before { content: attr(data-title); float: left; margin-right: 10px; font-weight: 500; color: var(--text2); text-align: left; }
}

/* ---------- content of imported pages ---------- */
.entry-content { overflow-wrap: break-word; }
.entry-content img[src*="loader_lazy"], .services-detail-description__show-more, .service-detail-item__image-wrapper,
.catalog_content__category_item__block_img { display: none !important; }
.entry-content ul { padding-left: 20px; }
.entry-content table { border-collapse: collapse; max-width: 100%; }
.entry-content table.table { width: 100%; font-size: 13px; margin: 20px 0; }
.entry-content table.table td, .entry-content table.table th { padding: 10px 6px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.entry-content table.table td:first-child { width: 30%; }
.entry-content .row { display: flex; flex-wrap: wrap; margin: 0 -10px; }
.entry-content .row > [class*="col-"] { padding: 0 10px; flex: 1 1 0; min-width: 0; }
.entry-content .col-xs-4 { flex: 0 0 100% !important; max-width: 100% !important; text-align: left !important; }
ul.bxe-list { list-style: none; padding: 0; }
ul.bxe-list li { position: relative; padding-left: 26px; margin-bottom: 8px; }
ul.bxe-list li .fa-check { position: absolute; left: 0; top: 3px; width: 16px; height: 16px; }
ul.bxe-list li .fa-check::before { content: '✓'; color: var(--main); font-style: normal; font-weight: 700; }

/* contacts */
.contact__techno_block__detail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; border: 1px solid var(--line); padding: 20px 30px; margin: 0 0 20px; }
.contact__techno_block__detail_item { display: flex; align-items: center; gap: 15px; font-size: 12px; }
.contact__techno_block__detail_item__img { flex: 0 0 56px; height: 56px; border: 2px solid #333; border-radius: 50%; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.contact__techno_block__detail_item__img img { max-width: 28px; max-height: 28px; }
.contact__techno_block__detail_item__content_name { color: var(--grey); font-size: 11px; }
.contact__techno_block__detail_item__content_text { color: var(--text); }
#map, #map-rostov, #map-kletsk { width: 100%; height: 380px; background: var(--bg2); margin: 15px 0; }
.shops { margin: 30px 0 10px; }
.shops__section_name { font-size: 18px; font-weight: 700; margin-bottom: 15px; }
.show__header, .show__body { display: grid; grid-template-columns: 5fr 2fr 2fr 3fr; gap: 15px; align-items: start; }
.show__header { border-bottom: 1px dashed #ccc; padding-bottom: 6px; margin-bottom: 15px; }
.show__header > *, .show__body > * { max-width: none !important; width: auto !important; flex: none !important; padding: 0 !important; }
.shops__column_title { color: var(--grey); font-size: 11px; text-align: center; }
.show__body { border-bottom: 1px dashed #ccc; padding-bottom: 15px; font-size: 12px; }
.shops__img { float: left; width: 130px; margin-right: 15px; }
.shops__img img { width: 130px; height: 90px; object-fit: cover; }
.shops__info_name { font-weight: 700; font-size: 13px; }
.shops__info_shedule { color: var(--grey); font-size: 11px; margin-top: 8px; }
.shops__info_payment { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.shops__info_payment_row { background: var(--bg2); border-radius: 15px; padding: 5px 14px; font-size: 11px; }
.shops__info_payment_row i, .shops__info_metro svg, .shops__info_phone svg { display: none; }
.shops__info_metro_row { color: var(--main); text-align: center; }
.shops__info_phone_row { text-align: center; }
.contacts a { color: var(--text); font-size: 12px; }
.contacts img { width: 14px; vertical-align: -2px; margin-right: 4px; }
b.dealers { font-weight: 700; font-size: 13px; }

/* services */
.services-wrapper { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.service-item { position: relative; display: flex; min-height: 300px; background-size: cover; background-repeat: no-repeat; background-position: left center; }
.service-item__content { margin-left: 48%; flex: 1; padding: 35px 30px 30px 40px; background: rgba(255,255,255,.88); }
.service-item__title { display: block; font-size: 22px; font-weight: 700; line-height: 1.3; color: var(--text); margin-bottom: 20px; }
.service-item__title:hover { color: var(--main); }
.service-item__links-wrapper { display: flex; flex-direction: column; gap: 16px; }
.service-item__content br, .service-item__links-wrapper > p:empty { display: none; }
.service-item__links-wrapper p { margin: 0; }
.o-side-menu--services { margin-top: 30px; }
.service-item__link { font-size: 12px; font-weight: 700; color: var(--text); }
.service-item__link:hover { color: var(--main); }
.services-detail-banner { position: relative; min-height: 180px; background-size: cover; background-position: center; display: flex; align-items: center; margin-bottom: 20px; }
.services-detail-banner__text { position: relative; max-width: 60%; padding: 30px; font-size: 14px; background: linear-gradient(90deg, rgba(255,255,255,.92) 70%, rgba(255,255,255,0)); }
.services-detail-description { display: flex; gap: 20px; align-items: flex-start; font-size: 13px; text-align: justify; margin-bottom: 15px; }
.services-detail-description__wrapper { flex: 1; min-width: 0; }
.services-detail-description__popular { flex: 0 0 300px; background: var(--bg2); border-left: 3px solid var(--main); padding: 20px; }
.services-detail-description__popular-title { font-weight: 700; font-size: 14px; }
.catalog_content__category_block { display: flex; flex-direction: column; gap: 14px; margin: 25px 0; }
.catalog_content__category_block_img { display: none; }
.catalog_content__category_img_title { margin: 0; font-weight: 700; font-size: 12px; color: var(--text); }
.catalog_content__category_item:hover .catalog_content__category_img_title { color: var(--main); }
.service-detail-item__prices { display: flex; align-items: baseline; }
.service-detail-item__content-hidden-wrapper { display: none; }
.services-detail-wrapper { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.service-detail-item { border: 1px solid var(--line); padding: 20px 25px; display: flex; flex-direction: column; gap: 12px; }
.service-detail-item:hover { box-shadow: 0 0 15px rgba(0,0,0,.1); }
.service-detail-item__title, .service-detail-item__title a { font-weight: 700; font-size: 13px; color: var(--text); }
.service-detail-item__prices-price { font-size: 16px; font-weight: 700; }
.service-detail-item__prices-price br { display: none; }

/* news */
.news_list .row { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0 !important; }
.news_list .row > [class*="col-"] { padding: 0 !important; max-width: none !important; }
.news_list__item { border: 1px solid var(--line); height: 100%; transition: box-shadow .2s; }
.news_list__item:hover { box-shadow: 0 0 15px rgba(0,0,0,.1); }
.news_list__img { height: 240px; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 10px; }
.news_list__img_link { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.news_list__img img { display: block; max-width: 100%; max-height: 220px; width: auto; height: auto; object-fit: contain; }
.news_list__content { padding: 15px 10px 15px; }
.news_list__content p { margin: 0; }
.news_list__content_comment_name, .news_list__content_comment_name a { display: block; font-weight: 700; font-size: 12px; line-height: 1.5; color: var(--text); margin-bottom: 10px !important; }
.news_list__content_comment_name a:hover { color: var(--main); }
.news_list__content_comment:not(.news_list__content_comment_name) { font-size: 11px; line-height: 1.6; margin-bottom: 10px !important; }
.news_list__content_date { color: var(--grey); font-size: 11px; }

/* ---------- footer ---------- */
.o-footer { background: #000; color: #fff; font-size: 13px; margin-top: 20px; }
.o-footer a { color: #fff; }
.o-footer a:hover { color: #9cc7ef; }
.o-footer__cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-top: 40px; padding-bottom: 40px; }
.o-footer__about p { margin: 0 0 18px; }
.o-footer__ico { position: relative; padding-left: 22px; }
.o-footer__ico::before { content: ''; position: absolute; left: 0; top: 2px; width: 14px; height: 14px; background: currentColor; -webkit-mask: var(--ico) no-repeat center / contain; mask: var(--ico) no-repeat center / contain; }
.o-footer__ico--addr { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5 7 13 7 13s7-8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E"); }
.o-footer__ico--mail { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 5h20v14H2zm2 2v.5l8 5 8-5V7z'/%3E%3C/svg%3E"); }
.o-footer__ico--phone { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15 15 0 0 0 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1A17 17 0 0 1 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1z'/%3E%3C/svg%3E"); }
.o-footer__phones { position: relative; margin-bottom: 20px; }
.o-footer__phones > a::after { content: ''; display: inline-block; width: 5px; height: 5px; border: solid #fff; border-width: 0 1px 1px 0; transform: rotate(45deg); margin: 0 0 3px 8px; }
.o-footer__phones-drop { display: none; padding-top: 6px; }
.o-footer__phones:hover .o-footer__phones-drop, .o-footer__phones:focus-within .o-footer__phones-drop { display: block; }
.o-footer__title { display: block; font-weight: 700; font-size: 14px; margin-bottom: 20px; color: #fff; }
.o-footer__title--small { margin: 25px 0 0; }
.o-footer ul { list-style: none; margin: 0; padding: 0; }
.o-footer li { margin-bottom: 12px; }
.o-footer__subscribe .o-subscribe__row input { background: #fff; border: 0; }
.o-footer__bottom { border-top: 1px solid #333; padding: 18px 0; font-size: 12px; color: #8d8d8d; }
.o-footer__bottom .o-container { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.o-footer__bottom a { color: #8d8d8d; }
.o-footer__docs { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.o-subscribe label.o-subscribe__agree { align-items: flex-start; font-size: 11px; line-height: 1.4; margin-top: 10px; }
.o-subscribe__agree input { flex: none; margin-top: 2px; accent-color: var(--main); }
.o-subscribe__agree a { text-decoration: underline; }

/* ---------- responsive ---------- */
@media (max-width: 1199px) {
  .o-header__main { gap: 18px; }
  .o-personal { display: none; }
  .woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .news_list .row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .o-nav__item > a { padding: 0 8px; font-size: 13px; }
}
@media (max-width: 991px) {
  .o-frame--catalog, .o-frame--services, .o-frame--subscribe, .o-frame--news { grid-template-columns: minmax(0, 1fr); }
  .o-left { order: 2; }
  .o-frame--catalog .o-left, .o-frame--services .o-left { display: none; }
  .o-catalog, .services-wrapper, .services-detail-wrapper { grid-template-columns: minmax(0, 1fr); }
  .contact__techno_block__detail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .o-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .o-contact__mail { display: none; }
  .woocommerce div.product { grid-template-columns: minmax(0, 1fr); }
  .woocommerce div.product div.images, .woocommerce div.product div.summary { grid-column: 1; }
  .services-detail-description { flex-direction: column; }
  .services-detail-description__popular { flex: none; width: 100%; }
}
@media (max-width: 767px) {
  .o-burger { display: block; }
  .o-header__main { height: auto; flex-wrap: wrap; gap: 10px; padding-top: 10px; padding-bottom: 10px; }
  .o-header__logo img { width: 150px; }
  .o-contact { margin-left: auto; padding: 0; }
  .o-contact__phone { font-size: 14px; }
  .o-contact__drop { left: auto; right: 0; }
  .o-search { order: 10; flex: 1 1 100%; }
  .o-nav { display: none; }
  .o-nav.open { display: block; }
  .o-nav__list { flex-direction: column; }
  .o-nav__item { border-left: 0; border-top: 1px solid rgba(255,255,255,.15); }
  .o-nav__item > a { justify-content: flex-start; height: 46px; padding: 0 15px; }
  .o-nav__drop { display: none !important; }
  .woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .woocommerce ul.products li.o-card { padding: 12px 8px 15px; }
  .o-card__img { height: 130px; }
  .woocommerce ul.products li.o-card .o-card__img img { max-height: 130px; }
  .o-card__price, .woocommerce ul.products li.o-card .o-card__price .price { font-size: 15px; }
  .woocommerce ul.products li.o-card .button { padding: 9px 12px; }
  .o-catalog__img { flex-basis: 90px; padding: 15px 5px; }
  .o-catalog__img img { width: 70px; height: 70px; }
  .o-catalog__body { padding: 15px; }
  .news_list .row { grid-template-columns: minmax(0, 1fr); }
  .o-title, .woocommerce-products-header__title, .product_title { font-size: 20px; }
  .show__header { display: none; }
  .show__body { grid-template-columns: minmax(0, 1fr); }
  .service-item { min-height: 0; padding-top: 56%; background-size: 100% auto; background-position: center top; border: 1px solid var(--line); }
  .service-item__content { margin-left: 0; padding: 20px; background: #fff; }
  .service-item__title { font-size: 18px; }
  .services-detail-banner__text { max-width: 100%; }
  .entry-content .col-xs-4 { flex-basis: 100% !important; }
  .o-footer__cols { grid-template-columns: minmax(0, 1fr); gap: 25px; }
}
@media (max-width: 480px) {
  .contact__techno_block__detail { grid-template-columns: minmax(0, 1fr); padding: 15px; }
  .o-basket__link { width: 36px; }
}

/* ---------- feedback form ---------- */
.o-feedback { margin-top: 40px; }
.o-feedback h2 { font-size: 24px; margin-bottom: 15px; }
.o-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 20px; margin-top: 25px; }
.o-form__col { display: flex; flex-direction: column; gap: 15px; }
.o-form input[type=text], .o-form input[type=tel], .o-form input[type=email], .o-form textarea { width: 100%; height: 50px; border: 0; border-bottom: 1px solid var(--line); background: #f3f3f3; padding: 0 15px; font: inherit; font-size: 14px; outline: 0; }
.o-form textarea { height: 100%; min-height: 115px; padding-top: 15px; resize: vertical; }
.o-form button { height: 50px; }
.o-check { flex-direction: row; align-items: flex-start; gap: 10px; font-size: 12px; align-self: center; }
.o-check input { width: 18px; height: 18px; accent-color: var(--main); flex: none; }
.o-form__ok { color: #2e9e45; font-weight: 700; }
.o-hp { position: absolute !important; left: -9999px; }
@media (max-width: 767px) { .o-form { grid-template-columns: minmax(0, 1fr); } }

/* ---------- product extras, help quotes ---------- */
.o-vat-note { font-size: 11px; color: var(--text); margin: -5px 0 15px; }
.o-advantages { clear: both; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 30px 0; padding: 25px 20px; border: 1px solid var(--line); }
.o-advantages__item { display: flex; align-items: center; gap: 15px; font-size: 13px; font-weight: 700; color: var(--text); }
.o-advantages__item svg { flex: none; color: var(--main); }
.o-advantages__item:hover { color: var(--main); }
.entry-content blockquote { margin: 25px 0; padding: 5px 0 5px 10px; border-left: 2px solid var(--main); font-style: normal; }
.entry-content blockquote blockquote { margin: 0; padding: 0; border: 0; }
.entry-content h2 { margin-top: 35px; }
@media (max-width: 991px) { .o-advantages { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .o-advantages { grid-template-columns: minmax(0, 1fr); } }
