/*
Theme Name: Красная Ось STABLE
Theme URI: https://tp-grup.ru/
Author: Visual Language
Description: Стабильная WooCommerce тема для магазина грузовых автозапчастей: компактная шапка, фильтры каталога, аккуратные карточки, похожие товары и админ-раздел редактирования.
Version: 9.4.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: red-axis-stable
*/

:root{
  --ra-red:#b1121b;
  --ra-black:#060606;
  --ra-text:#111;
  --ra-muted:#666;
  --ra-line:#e7e7e7;
  --ra-gray:#f6f6f6;
  --ra-green:#11823b;
  --ra-font:"Inter","Montserrat",Arial,sans-serif;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0!important;
  background:#fff!important;
  color:var(--ra-text)!important;
  font-family:var(--ra-font)!important;
  overflow-x:hidden!important;
}
a{text-decoration:none;color:inherit}
img{max-width:100%;height:auto}
button,input,select,textarea{font-family:inherit}
button{cursor:pointer;border:0}

.ra-container{
  width:min(1280px, calc(100% - 48px));
  margin:0 auto;
}

.ra-header{
  position:sticky;
  top:32px;
  z-index:999;
  background:#fff;
  border-bottom:1px solid var(--ra-line);
}
body:not(.admin-bar) .ra-header{top:0}

.ra-header-row{
  height:72px;
  display:grid;
  grid-template-columns:170px 1fr 132px;
  gap:22px;
  align-items:center;
}
.ra-logo{
  display:flex;
  align-items:center;
}
.ra-logo img{
  width:160px!important;
  max-width:160px!important;
  height:auto!important;
  max-height:52px!important;
  object-fit:contain!important;
}
.ra-search{
  height:44px;
  display:flex;
  border:1px solid var(--ra-line);
  background:#fff;
}
.ra-search input{
  flex:1;
  min-width:0;
  border:0;
  outline:0;
  padding:0 16px;
  font-size:14px;
}
.ra-search button{
  width:88px;
  background:var(--ra-black);
  color:#fff;
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
}
.ra-cart-link{
  height:44px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--ra-line);
  font-size:13px;
  font-weight:900;
  background:#fff;
}

.ra-nav{
  border-top:1px solid var(--ra-line);
  height:44px;
  overflow:hidden;
}
.ra-nav-row{
  height:44px;
  display:flex;
  align-items:center;
  gap:28px;
}
.ra-nav-row a{
  font-size:13px;
  font-weight:900;
  white-space:nowrap;
}
.ra-nav-row a:hover{color:var(--ra-red)}

.ra-mobile-btn{display:none}
.ra-mobile-menu{display:none}

.ra-hero{
  position:relative;
  min-height:500px;
  background:#050505;
  color:#fff;
  overflow:hidden;
}
.ra-hero:before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg,rgba(0,0,0,.94),rgba(0,0,0,.72),rgba(0,0,0,.22)),
    var(--ra-hero-bg) center right/cover no-repeat;
}
.ra-hero-inner{
  position:relative;
  z-index:2;
  padding:62px 0;
  max-width:740px;
}
.ra-kicker{
  display:block;
  margin-bottom:16px;
  color:var(--ra-red);
  font-size:12px;
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.ra-hero h1{
  margin:0 0 20px;
  font-size:clamp(38px,5vw,64px);
  line-height:.94;
  letter-spacing:-.055em;
}
.ra-hero p{
  max-width:560px;
  margin:0 0 24px;
  color:#d7d7d7;
  font-size:17px;
  line-height:1.55;
}
.ra-hero-search{
  height:56px;
  max-width:640px;
  display:flex;
  margin-bottom:18px;
  background:#fff;
}
.ra-hero-search input{
  flex:1;
  min-width:0;
  border:0;
  outline:0;
  padding:0 18px;
  font-size:15px;
}
.ra-hero-search button{
  width:112px;
  background:var(--ra-red);
  color:#fff;
  font-weight:900;
  text-transform:uppercase;
}
.ra-actions{display:flex;gap:12px;flex-wrap:wrap}
.ra-btn{
  min-height:48px;
  padding:0 20px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
}
.ra-btn-red{background:var(--ra-red);color:#fff}
.ra-btn-dark{background:#0a0a0a;color:#fff;border:1px solid rgba(255,255,255,.2)}

.ra-section{padding:48px 0}
.ra-section-gray{background:var(--ra-gray)}
.ra-section-head{margin-bottom:24px}
.ra-section-head span{
  display:block;
  margin-bottom:8px;
  color:var(--ra-red);
  font-size:12px;
  font-weight:900;
  letter-spacing:.1em;
  text-transform:uppercase;
}
.ra-section-head h1,
.ra-section-head h2{
  max-width:820px;
  margin:0;
  font-size:clamp(28px,3vw,42px);
  line-height:.98;
  letter-spacing:-.045em;
}

.ra-cats{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:12px;
}
.ra-cat{
  min-height:116px;
  padding:16px;
  background:#fff;
  border:1px solid var(--ra-line);
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}
.ra-cat:hover{border-color:var(--ra-red)}
.ra-cat-icon{
  width:34px;
  height:34px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--ra-red);
  color:var(--ra-red);
  font-weight:900;
}
.ra-cat b{font-size:15px;line-height:1.25}
.ra-cat small{font-size:12px;color:var(--ra-muted);font-weight:700}

.ra-benefits{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  border:1px solid var(--ra-line);
  background:#fff;
}
.ra-benefit{padding:20px;border-right:1px solid var(--ra-line)}
.ra-benefit:last-child{border-right:0}
.ra-benefit b{display:block;margin-bottom:7px;font-size:17px}
.ra-benefit p{margin:0;color:var(--ra-muted);font-size:14px;line-height:1.45}

.ra-shop-layout{
  display:grid;
  grid-template-columns:260px 1fr;
  gap:28px;
}
.ra-filter-panel{
  align-self:start;
  background:#fff;
  border:1px solid var(--ra-line);
  position:sticky;
  top:150px;
}
.ra-filter-title{
  padding:16px 18px;
  background:var(--ra-black);
  color:#fff;
  font-size:17px;
  font-weight:900;
}
.ra-filter-block{
  padding:18px;
  border-bottom:1px solid var(--ra-line);
}
.ra-filter-block h3{
  margin:0 0 12px;
  font-size:13px;
  text-transform:uppercase;
}
.ra-filter-block ul{
  list-style:none;
  margin:0;
  padding:0;
}
.ra-filter-block li{margin:8px 0;color:#444;font-size:14px}
.ra-filter-block a:hover{color:var(--ra-red)}
.ra-filter-search{
  display:grid;
  grid-template-columns:1fr auto;
  gap:8px;
}
.ra-filter-search input{
  min-width:0;
  height:38px;
  border:1px solid var(--ra-line);
  padding:0 10px;
}
.ra-filter-search button{
  height:38px;
  padding:0 12px;
  background:var(--ra-black);
  color:#fff;
}

.ra-shop-main{min-width:0}
.ra-shop-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
  padding-bottom:14px;
  border-bottom:1px solid var(--ra-line);
}
.ra-shop-toolbar .woocommerce-result-count{margin:0;color:var(--ra-muted);font-size:14px}
.ra-shop-toolbar .woocommerce-ordering{margin:0}
.ra-shop-toolbar select{height:40px;border:1px solid var(--ra-line);background:#fff;padding:0 12px}

.woocommerce ul.products{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:16px!important;
  margin:0!important;
  padding:0!important;
  list-style:none!important;
}
.woocommerce ul.products li.product{
  width:auto!important;
  margin:0!important;
  padding:0!important;
  float:none!important;
  background:#fff!important;
  border:1px solid var(--ra-line)!important;
  overflow:hidden!important;
}
.woocommerce ul.products li.product:hover{box-shadow:0 14px 36px rgba(0,0,0,.07)}
.woocommerce ul.products li.product a img{
  width:100%!important;
  height:170px!important;
  max-height:170px!important;
  object-fit:contain!important;
  padding:18px!important;
  margin:0!important;
  background:#fff!important;
  border-bottom:1px solid var(--ra-line)!important;
}
.woocommerce-loop-product__title{
  min-height:42px!important;
  margin:0 16px 10px!important;
  padding:0!important;
  color:#111!important;
  font-size:15px!important;
  line-height:1.35!important;
  font-weight:900!important;
}
.ra-loop-sku{
  margin:16px 16px 8px;
  color:var(--ra-red);
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
}
.ra-loop-stock{
  margin:0 16px 10px;
  color:var(--ra-green);
  font-size:13px;
  font-weight:900;
}
.woocommerce ul.products li.product .price{
  display:block!important;
  margin:0 16px 14px!important;
  color:#111!important;
  font-size:20px!important;
  font-weight:900!important;
}
.woocommerce ul.products li.product .button{
  width:calc(100% - 32px)!important;
  min-height:42px!important;
  margin:0 16px 16px!important;
  padding:12px!important;
  border-radius:0!important;
  background:var(--ra-red)!important;
  color:#fff!important;
  text-align:center!important;
  font-size:12px!important;
  font-weight:900!important;
  text-transform:uppercase!important;
}

.ra-single{
  display:grid;
  grid-template-columns:minmax(420px,.95fr) minmax(360px,1fr);
  gap:38px;
  align-items:start;
}
.ra-gallery{
  background:#fff;
  border:1px solid var(--ra-line);
  padding:24px;
}
.ra-gallery img{
  width:100%;
  height:460px;
  object-fit:contain;
}
.ra-summary h1{
  margin:0 0 18px;
  font-size:clamp(30px,3.4vw,48px);
  line-height:1;
  letter-spacing:-.045em;
}
.ra-single-price{
  margin-bottom:16px;
  font-size:32px;
  font-weight:900;
}
.ra-excerpt{
  margin-bottom:18px;
  color:#444;
  font-size:15px;
  line-height:1.55;
}
.ra-cart-form .cart{
  display:grid!important;
  grid-template-columns:76px 1fr;
  gap:10px;
  margin:0 0 18px!important;
}
.ra-cart-form .qty{
  height:48px;
  border:1px solid var(--ra-line);
}
.ra-cart-form .single_add_to_cart_button{
  height:48px;
  border-radius:0!important;
  background:var(--ra-red)!important;
  color:#fff!important;
  font-weight:900!important;
  text-transform:uppercase!important;
}
.ra-meta-box{
  margin-top:18px;
  padding:18px;
  background:#fff;
  border:1px solid var(--ra-line);
  color:#444;
}
.ra-description{
  max-width:920px;
  margin-top:44px;
  font-size:16px;
  line-height:1.65;
}
.ra-description h2{font-size:30px;letter-spacing:-.035em}
.ra-related{margin-top:48px}

.ra-brands{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:12px;
}
.ra-brand{
  min-height:74px;
  background:#fff;
  border:1px solid var(--ra-line);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:18px;
  font-weight:900;
}
.ra-help{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px;
}
.ra-help-dark{
  padding:28px;
  background:var(--ra-black);
  color:#fff;
}
.ra-help-dark h2{
  margin:0 0 16px;
  font-size:34px;
  line-height:1;
  letter-spacing:-.04em;
}
.ra-help-dark p{color:#ccc;line-height:1.55}
.ra-form{
  padding:24px;
  background:#fff;
  border:1px solid var(--ra-line);
  display:grid;
  gap:12px;
}
.ra-form input,.ra-form textarea{
  width:100%;
  border:1px solid var(--ra-line);
  outline:0;
  padding:14px;
}
.ra-form button{
  height:48px;
  background:var(--ra-red);
  color:#fff;
  font-weight:900;
  text-transform:uppercase;
}

.ra-footer{
  padding:34px 0;
  background:#050505;
  color:#fff;
}
.ra-footer-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:32px;
}
.ra-footer img{width:160px;margin-bottom:16px}
.ra-footer p{max-width:560px;color:#aaa;line-height:1.55}
.ra-footer-links{
  display:grid;
  gap:10px;
  justify-content:end;
  text-align:right;
  font-weight:850;
}
.ra-sticky{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:1000;
  display:grid;
  gap:10px;
}
.ra-sticky a{
  width:44px;
  height:44px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#050505;
  color:#fff;
  font-weight:900;
}
.ra-sticky a:first-child{background:var(--ra-red)}

.woocommerce-pagination{margin:30px 0 0;text-align:center}
.woocommerce-pagination ul{border:0!important}
.woocommerce-pagination li{margin:0 3px!important;border:1px solid var(--ra-line)!important}
.woocommerce-pagination a,.woocommerce-pagination span{
  min-width:38px;min-height:38px;
  display:flex!important;
  align-items:center;
  justify-content:center;
}

/* kill theme/plugin leftovers */
.widget-area,
.sidebar,
#secondary,
.woocommerce-product-gallery__trigger{
  display:none!important;
}
.woocommerce div.product div.images,
.woocommerce div.product div.summary{
  float:none!important;
  width:auto!important;
}

@media(max-width:1180px){
  .ra-container{width:calc(100% - 40px)}
  .ra-shop-layout{grid-template-columns:1fr}
  .ra-filter-panel{position:static}
  .woocommerce ul.products{grid-template-columns:repeat(3,1fr)!important}
  .ra-cats{grid-template-columns:repeat(3,1fr)}
  .ra-benefits{grid-template-columns:repeat(2,1fr)}
  .ra-single,.ra-help{grid-template-columns:1fr}
}
@media(max-width:720px){
  .ra-header{top:46px}
  body:not(.admin-bar) .ra-header{top:0}
  .ra-container{width:calc(100% - 32px)}
  .ra-header-row{height:66px;grid-template-columns:150px 1fr auto}
  .ra-logo img{width:140px!important}
  .ra-header-row>.ra-search{display:none}
  .ra-cart-link{display:none}
  .ra-mobile-btn{
    display:flex;
    width:44px;height:44px;
    align-items:center;justify-content:center;
    flex-direction:column;gap:5px;
    background:var(--ra-black);
  }
  .ra-mobile-btn span{width:22px;height:2px;background:#fff}
  .ra-nav{display:none}
  .ra-mobile-menu.open{display:block}
  .ra-mobile-menu{
    border-top:1px solid var(--ra-line);
    padding:16px 0;
  }
  .ra-mobile-menu a{
    display:block;
    padding:13px 0;
    border-bottom:1px solid var(--ra-line);
    font-weight:900;
  }
  .ra-section{padding:38px 0}
  .ra-hero{min-height:auto}
  .ra-hero-inner{padding:46px 0}
  .ra-hero h1{font-size:38px}
  .ra-hero p{font-size:15px}
  .ra-hero-search{display:grid;height:auto}
  .ra-hero-search input{height:54px}
  .ra-hero-search button{height:50px;width:100%}
  .woocommerce ul.products,.ra-cats,.ra-benefits,.ra-brands,.ra-footer-grid{grid-template-columns:1fr!important}
  .ra-shop-toolbar{display:block}
  .ra-shop-toolbar .woocommerce-ordering{margin-top:12px}
  .ra-gallery img{height:330px}
  .ra-summary h1{font-size:32px}
  .ra-footer-links{justify-content:start;text-align:left}
}


/* ===== v3.1: ровная сетка, квадратные карточки, без пустых мест ===== */

.ra-shop-layout{
  grid-template-columns:240px minmax(0,1fr)!important;
  gap:24px!important;
}

.ra-filter-panel{
  top:126px!important;
}

.ra-filter-block{
  padding:16px!important;
}

.ra-filter-block ul,
.ra-filter-block .product-categories{
  list-style:none!important;
  margin:0!important;
  padding:0!important;
}

.ra-filter-block li,
.ra-filter-block .cat-item{
  list-style:none!important;
  margin:0!important;
  padding:8px 0!important;
  border-bottom:1px solid #f0f0f0;
  font-size:13px!important;
}

.ra-filter-block li:before,
.ra-filter-block li::marker{
  display:none!important;
  content:""!important;
}

.ra-shop-main{
  min-width:0!important;
}

.woocommerce ul.products{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:16px!important;
  align-items:stretch!important;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after{
  display:none!important;
  content:none!important;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
.woocommerce ul.products li.product.first,
.woocommerce ul.products li.product.last{
  float:none!important;
  clear:none!important;
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
  display:flex!important;
  flex-direction:column!important;
  height:100%!important;
}

.woocommerce ul.products li.product a.woocommerce-LoopProduct-link{
  display:block!important;
}

.woocommerce ul.products li.product a img{
  width:100%!important;
  height:auto!important;
  aspect-ratio:1/1!important;
  max-height:none!important;
  object-fit:contain!important;
  padding:20px!important;
  margin:0!important;
  border-bottom:1px solid var(--ra-line)!important;
  background:#fff!important;
}

.woocommerce-loop-product__title{
  min-height:54px!important;
  margin:0 16px 10px!important;
  font-size:15px!important;
  line-height:1.25!important;
  display:-webkit-box!important;
  -webkit-line-clamp:3!important;
  -webkit-box-orient:vertical!important;
  overflow:hidden!important;
}

.ra-loop-sku{
  margin:14px 16px 8px!important;
}

.ra-loop-stock{
  margin:0 16px 10px!important;
}

.woocommerce ul.products li.product .price{
  margin:0 16px 14px!important;
  font-size:20px!important;
}

.woocommerce ul.products li.product .button{
  margin-top:auto!important;
  width:calc(100% - 32px)!important;
}

.ra-shop-toolbar{
  margin-bottom:18px!important;
}

.ra-section{
  padding:42px 0!important;
}

.ra-section-head{
  margin-bottom:22px!important;
}

.ra-section-head h1,
.ra-section-head h2{
  font-size:clamp(28px,2.8vw,40px)!important;
}

.ra-header-row{
  height:68px!important;
}

.ra-nav{
  height:42px!important;
}

.ra-nav-row{
  height:42px!important;
}

.ra-gallery img{
  height:auto!important;
  max-height:430px!important;
  object-fit:contain!important;
}

.ra-single{
  grid-template-columns:minmax(360px,.9fr) minmax(360px,1fr)!important;
  gap:34px!important;
}

.ra-summary h1{
  font-size:clamp(30px,3vw,44px)!important;
  line-height:1.02!important;
}

.ra-related .woocommerce ul.products{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
}

@media(max-width:1180px){
  .ra-shop-layout{
    grid-template-columns:220px minmax(0,1fr)!important;
  }
  .woocommerce ul.products{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  .ra-related .woocommerce ul.products{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}

@media(max-width:820px){
  .ra-shop-layout{
    grid-template-columns:1fr!important;
  }
  .ra-filter-panel{
    position:static!important;
  }
}

@media(max-width:720px){
  .woocommerce ul.products,
  .ra-related .woocommerce ul.products{
    grid-template-columns:1fr!important;
  }
}


/* ===== v3.2: editable logo/images/brands + fixed mobile menu ===== */

.ra-logo img{
  width:auto!important;
  max-width:160px!important;
  max-height:52px!important;
  object-fit:contain!important;
}

.ra-mobile-btn{
  margin-left:auto!important;
}

.ra-brand{
  flex-direction:column;
  gap:8px;
  padding:12px;
  text-align:center;
}

.ra-brand img{
  max-width:120px;
  max-height:42px;
  object-fit:contain;
}

.ra-brand span{
  font-size:15px;
  font-weight:900;
}

@media(max-width:720px){
  .ra-header-row{
    grid-template-columns:minmax(0,1fr) 44px!important;
    gap:12px!important;
  }

  .ra-logo{
    min-width:0!important;
  }

  .ra-logo img{
    max-width:145px!important;
    max-height:48px!important;
  }

  .ra-mobile-btn{
    display:flex!important;
    position:relative!important;
    right:0!important;
    top:0!important;
    justify-self:end!important;
    margin-left:auto!important;
    z-index:1002!important;
  }

  .ra-mobile-menu{
    position:absolute!important;
    top:66px!important;
    left:0!important;
    right:0!important;
    background:#fff!important;
    z-index:1001!important;
    box-shadow:0 18px 40px rgba(0,0,0,.12)!important;
  }
}


/* ===== v3.3: editable product columns ===== */
.woocommerce ul.products{
  grid-template-columns:repeat(var(--ra-products-cols, 4), minmax(0,1fr))!important;
}

.ra-related .woocommerce ul.products{
  grid-template-columns:repeat(var(--ra-related-cols, 4), minmax(0,1fr))!important;
}

@media(max-width:1180px){
  .woocommerce ul.products,
  .ra-related .woocommerce ul.products{
    grid-template-columns:repeat(min(var(--ra-products-cols, 4), 3), minmax(0,1fr))!important;
  }
}

@media(max-width:820px){
  .woocommerce ul.products,
  .ra-related .woocommerce ul.products{
    grid-template-columns:repeat(2, minmax(0,1fr))!important;
  }
}

@media(max-width:560px){
  .woocommerce ul.products,
  .ra-related .woocommerce ul.products{
    grid-template-columns:1fr!important;
  }
}


/* ===== v3.4: all categories button ===== */
.ra-all-cats-wrap{
  margin-top:22px;
  display:flex;
  justify-content:center;
}

.ra-all-cats-btn{
  min-height:46px;
  padding:0 26px;
  border:1px solid var(--ra-black);
  background:#fff;
  color:#111;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
  transition:.2s;
}

.ra-all-cats-btn:hover{
  background:var(--ra-black);
  color:#fff;
}


/* ===== v3.5: all products button ===== */
.ra-all-products-wrap{
  margin-top:26px;
  display:flex;
  justify-content:center;
}

.ra-all-products-btn{
  min-height:46px;
  padding:0 28px;
  border:1px solid var(--ra-black);
  background:#fff;
  color:#111;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
  transition:.2s;
}

.ra-all-products-btn:hover{
  background:var(--ra-black);
  color:#fff;
}


/* ===== v3.6: category image icons + editable sticky social icons ===== */
:root{
  --ra-icon-color:#b1121b;
}

.ra-cat-icon{
  border-color:var(--ra-icon-color)!important;
  color:var(--ra-icon-color)!important;
  overflow:hidden;
}

.ra-cat-icon img{
  width:22px;
  height:22px;
  object-fit:contain;
  display:block;
}

.ra-sticky a{
  overflow:hidden;
}

.ra-sticky a img{
  max-width:24px;
  max-height:24px;
  object-fit:contain;
  display:block;
}

.ra-sticky-label{
  display:inline-flex;
  align-items:center;
  justify-content:center;
}


/* ===== v3.7: benefit icons editable ===== */
.ra-benefit{
  display:grid;
  grid-template-columns:42px 1fr;
  gap:14px;
  align-items:start;
}

.ra-benefit-icon{
  width:38px;
  height:38px;
  border:1px solid var(--ra-icon-color);
  color:var(--ra-icon-color);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  flex-shrink:0;
}

.ra-benefit-icon img{
  max-width:24px;
  max-height:24px;
  object-fit:contain;
  display:block;
}

@media(max-width:720px){
  .ra-benefit{
    grid-template-columns:38px 1fr;
  }
}


/* ===== v3.8: compact single product card ===== */
.ra-single{
  grid-template-columns:minmax(330px, 460px) minmax(360px, 1fr)!important;
  gap:30px!important;
  max-width:1120px!important;
  margin:0 auto!important;
}

.ra-gallery{
  padding:18px!important;
  background:#fff!important;
}

.ra-gallery img{
  width:100%!important;
  height:360px!important;
  max-height:360px!important;
  object-fit:contain!important;
}

.ra-summary h1{
  font-size:clamp(28px, 2.7vw, 40px)!important;
  line-height:1.04!important;
  margin-bottom:14px!important;
}

.ra-single-price{
  font-size:30px!important;
  margin-bottom:14px!important;
}

.ra-excerpt{
  font-size:14px!important;
  line-height:1.5!important;
  margin-bottom:16px!important;
}

.ra-cart-form .cart{
  grid-template-columns:64px 1fr!important;
  gap:10px!important;
  margin-bottom:14px!important;
}

.ra-cart-form .qty,
.ra-cart-form .single_add_to_cart_button{
  height:44px!important;
}

.ra-meta-box{
  padding:15px!important;
  margin-top:14px!important;
  font-size:14px!important;
}

.ra-description{
  max-width:920px!important;
  margin:34px auto 0!important;
  font-size:15px!important;
}

.ra-description h2{
  font-size:26px!important;
}

.ra-related{
  max-width:1120px!important;
  margin:42px auto 0!important;
}

@media(max-width:900px){
  .ra-single{
    grid-template-columns:1fr!important;
    max-width:680px!important;
  }

  .ra-gallery img{
    height:320px!important;
    max-height:320px!important;
  }
}

@media(max-width:560px){
  .ra-gallery img{
    height:260px!important;
    max-height:260px!important;
  }
}


/* ===== v3.9: WooCommerce cart / checkout / thank you in Red Axis style ===== */

.woocommerce-cart .ra-description,
.woocommerce-checkout .ra-description,
.woocommerce-order-received .ra-description{
  max-width:1120px!important;
  margin:0!important;
}

.woocommerce-notices-wrapper,
.woocommerce-message,
.woocommerce-info,
.woocommerce-error{
  max-width:1120px!important;
  margin:0 0 24px!important;
}

.woocommerce-message,
.woocommerce-info{
  border-top-color:var(--ra-red)!important;
  background:#fff!important;
  border:1px solid var(--ra-line)!important;
  padding:18px 22px!important;
  color:#222!important;
}

.woocommerce-message::before,
.woocommerce-info::before{
  color:var(--ra-red)!important;
}

.woocommerce table.shop_table{
  border:1px solid var(--ra-line)!important;
  border-radius:0!important;
  border-collapse:collapse!important;
  background:#fff!important;
  overflow:hidden!important;
}

.woocommerce table.shop_table th{
  background:#fafafa!important;
  color:#111!important;
  font-weight:900!important;
  font-size:14px!important;
  padding:16px!important;
  border-bottom:1px solid var(--ra-line)!important;
}

.woocommerce table.shop_table td{
  padding:16px!important;
  border-top:1px solid var(--ra-line)!important;
  font-size:15px!important;
}

.woocommerce-cart-form{
  max-width:1120px!important;
}

.woocommerce-cart-form .product-thumbnail img{
  width:64px!important;
  height:64px!important;
  object-fit:contain!important;
  background:#fff!important;
}

.woocommerce-cart-form .product-name a{
  font-weight:850!important;
  color:#111!important;
}

.woocommerce .quantity .qty{
  width:72px!important;
  height:40px!important;
  border:1px solid var(--ra-line)!important;
  text-align:center!important;
}

.woocommerce-cart .cart-collaterals{
  max-width:1120px!important;
  margin-top:30px!important;
}

.woocommerce-cart .cart-collaterals .cart_totals{
  width:420px!important;
  float:right!important;
  background:#fff!important;
  border:1px solid var(--ra-line)!important;
  padding:22px!important;
}

.woocommerce-cart .cart_totals h2{
  margin:0 0 18px!important;
  font-size:28px!important;
  letter-spacing:-.035em!important;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce .wc-proceed-to-checkout a.checkout-button,
.woocommerce button.button.alt,
.woocommerce a.button.alt,
.woocommerce #payment #place_order{
  background:var(--ra-red)!important;
  color:#fff!important;
  border-radius:0!important;
  border:0!important;
  font-weight:900!important;
  text-transform:uppercase!important;
  letter-spacing:0!important;
  box-shadow:none!important;
}

.woocommerce .wc-proceed-to-checkout a.checkout-button{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:52px!important;
  font-size:14px!important;
}

.woocommerce .coupon{
  display:flex!important;
  gap:8px!important;
  align-items:center!important;
}

.woocommerce .coupon input.input-text{
  width:160px!important;
  height:42px!important;
  border:1px solid var(--ra-line)!important;
  padding:0 12px!important;
}

.woocommerce-cart table.cart td.actions{
  padding:18px!important;
}

.woocommerce-checkout form.checkout{
  max-width:1120px!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 420px!important;
  gap:30px!important;
  align-items:start!important;
}

.woocommerce-checkout #customer_details{
  grid-column:1!important;
}

.woocommerce-checkout #order_review_heading,
.woocommerce-checkout #order_review{
  grid-column:2!important;
}

.woocommerce-checkout #order_review_heading{
  margin:0 0 16px!important;
  font-size:28px!important;
  letter-spacing:-.035em!important;
}

.woocommerce-checkout #order_review{
  background:#fff!important;
  border:1px solid var(--ra-line)!important;
  padding:20px!important;
}

.woocommerce-checkout #order_review table.shop_table{
  border:0!important;
}

.woocommerce-checkout .col2-set{
  width:100%!important;
  float:none!important;
}

.woocommerce-checkout .col2-set .col-1,
.woocommerce-checkout .col2-set .col-2{
  width:100%!important;
  float:none!important;
  background:#fff!important;
  border:1px solid var(--ra-line)!important;
  padding:22px!important;
  margin-bottom:20px!important;
}

.woocommerce-checkout .col2-set h3,
.woocommerce-billing-fields h3,
.woocommerce-shipping-fields h3,
.woocommerce-additional-fields h3{
  margin:0 0 18px!important;
  font-size:24px!important;
  letter-spacing:-.03em!important;
}

.woocommerce form .form-row{
  padding:0!important;
  margin:0 0 14px!important;
}

.woocommerce form .form-row label{
  font-weight:800!important;
  font-size:13px!important;
  margin-bottom:6px!important;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.select2-container .select2-selection--single{
  min-height:44px!important;
  border:1px solid var(--ra-line)!important;
  border-radius:0!important;
  padding:10px 12px!important;
  background:#fff!important;
  color:#111!important;
}

.select2-container .select2-selection--single .select2-selection__rendered{
  line-height:22px!important;
  padding-left:0!important;
}

.woocommerce-checkout #payment{
  background:#f6f6f6!important;
  border-radius:0!important;
  border:1px solid var(--ra-line)!important;
}

.woocommerce-checkout #payment ul.payment_methods{
  border-bottom:1px solid var(--ra-line)!important;
  padding:18px!important;
}

.woocommerce-checkout #payment div.payment_box{
  background:#fff!important;
  border-radius:0!important;
  color:#333!important;
}

.woocommerce-checkout #payment div.form-row{
  padding:18px!important;
}

.woocommerce-order{
  max-width:1120px!important;
}

.woocommerce-order .woocommerce-thankyou-order-received{
  background:#050505!important;
  color:#fff!important;
  padding:28px!important;
  margin:0 0 24px!important;
  font-size:24px!important;
  font-weight:900!important;
  letter-spacing:-.03em!important;
}

.woocommerce-order-overview{
  display:grid!important;
  grid-template-columns:repeat(5,1fr)!important;
  gap:0!important;
  padding:0!important;
  margin:0 0 28px!important;
  border:1px solid var(--ra-line)!important;
  background:#fff!important;
}

.woocommerce-order-overview li{
  list-style:none!important;
  margin:0!important;
  padding:18px!important;
  border-right:1px solid var(--ra-line)!important;
  font-size:12px!important;
  text-transform:uppercase!important;
  color:#666!important;
}

.woocommerce-order-overview li strong{
  display:block!important;
  margin-top:6px!important;
  font-size:15px!important;
  color:#111!important;
  text-transform:none!important;
}

.woocommerce-order-details,
.woocommerce-customer-details{
  max-width:1120px!important;
}

.woocommerce-order-details h2,
.woocommerce-customer-details h2{
  font-size:28px!important;
  letter-spacing:-.035em!important;
}

.woocommerce-customer-details address{
  border:1px solid var(--ra-line)!important;
  border-radius:0!important;
  padding:20px!important;
  background:#fff!important;
}

@media(max-width:980px){
  .woocommerce-checkout form.checkout{
    grid-template-columns:1fr!important;
  }

  .woocommerce-checkout #order_review_heading,
  .woocommerce-checkout #order_review{
    grid-column:1!important;
  }

  .woocommerce-cart .cart-collaterals .cart_totals{
    width:100%!important;
    float:none!important;
  }

  .woocommerce-order-overview{
    grid-template-columns:repeat(2,1fr)!important;
  }
}

@media(max-width:640px){
  .woocommerce table.shop_table_responsive tr,
  .woocommerce-page table.shop_table_responsive tr{
    display:block!important;
    margin-bottom:12px!important;
    border:1px solid var(--ra-line)!important;
  }

  .woocommerce table.shop_table_responsive tr td,
  .woocommerce-page table.shop_table_responsive tr td{
    display:block!important;
    text-align:right!important;
    border:0!important;
    border-bottom:1px solid var(--ra-line)!important;
  }

  .woocommerce table.shop_table_responsive tr td::before,
  .woocommerce-page table.shop_table_responsive tr td::before{
    float:left!important;
    font-weight:900!important;
  }

  .woocommerce .coupon{
    display:grid!important;
    grid-template-columns:1fr!important;
  }

  .woocommerce .coupon input.input-text,
  .woocommerce .coupon button{
    width:100%!important;
  }

  .woocommerce-order-overview{
    grid-template-columns:1fr!important;
  }
}


/* ===== v4.0: one click order ===== */
.ra-one-click-btn{
  width:calc(100% - 32px)!important;
  min-height:42px!important;
  margin:0 16px 16px!important;
  padding:12px!important;
  background:#050505!important;
  color:#fff!important;
  border-radius:0!important;
  border:0!important;
  text-align:center!important;
  font-size:12px!important;
  font-weight:900!important;
  text-transform:uppercase!important;
  cursor:pointer!important;
}

.ra-summary .ra-one-click-btn{
  width:100%!important;
  margin:0 0 18px!important;
  min-height:48px!important;
  font-size:13px!important;
}

.ra-one-click-modal{
  position:fixed;
  inset:0;
  z-index:99999;
  background:rgba(0,0,0,.62);
  display:none;
  align-items:center;
  justify-content:center;
  padding:20px;
}

.ra-one-click-modal.open{
  display:flex;
}

.ra-one-click-box{
  width:min(520px, 100%);
  background:#fff;
  border:1px solid var(--ra-line);
  padding:28px;
  position:relative;
  box-shadow:0 30px 90px rgba(0,0,0,.24);
}

.ra-one-click-close{
  position:absolute;
  top:12px;
  right:12px;
  width:34px;
  height:34px;
  background:#050505;
  color:#fff;
  font-size:20px;
  line-height:1;
}

.ra-one-click-box h3{
  margin:0 42px 10px 0;
  font-size:28px;
  line-height:1;
  letter-spacing:-.035em;
}

.ra-one-click-product{
  margin:0 0 18px;
  color:#666;
  font-size:14px;
  line-height:1.45;
}

.ra-one-click-form{
  display:grid;
  gap:12px;
}

.ra-one-click-form input,
.ra-one-click-form textarea{
  width:100%;
  border:1px solid var(--ra-line);
  min-height:44px;
  padding:12px;
  outline:0;
  font-size:14px;
}

.ra-one-click-form textarea{
  min-height:88px;
  resize:vertical;
}

.ra-one-click-form button{
  height:48px;
  background:var(--ra-red);
  color:#fff;
  font-weight:900;
  text-transform:uppercase;
}

.ra-one-click-status{
  margin-top:12px;
  font-weight:800;
  font-size:14px;
}

.ra-one-click-status.ok{color:var(--ra-green)}
.ra-one-click-status.err{color:var(--ra-red)}


/* ===== v4.1: clean cart and Russian WooCommerce labels ===== */

/* убрать купон в корзине */
.woocommerce-cart .coupon{
  display:none!important;
}

/* убрать стандартную ссылку изменения адреса и иконки доставки */
.woocommerce-cart .shipping-calculator-button,
.woocommerce-cart .woocommerce-shipping-calculator,
.woocommerce-cart .shipping td p,
.woocommerce-cart .shipping td br,
.woocommerce-cart .shipping td small,
.woocommerce-cart .shipping td .woocommerce-shipping-destination{
  display:none!important;
}

/* убрать маленькие странные svg/иконки рядом с доставкой */
.woocommerce-cart .cart_totals svg,
.woocommerce-cart .cart_totals img,
.woocommerce-cart .cart_totals .truck,
.woocommerce-cart .cart_totals .pickup-location-field{
  display:none!important;
}

/* кнопки строго красные */
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.woocommerce-cart .button,
.woocommerce-checkout .button,
.woocommerce-checkout #place_order{
  background:var(--ra-red)!important;
  color:#fff!important;
  border-radius:0!important;
}

.woocommerce-cart .woocommerce-cart-form button[name="update_cart"]:disabled{
  opacity:.45!important;
}

/* убрать фиолетовые цвета WooCommerce/плагинов */
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
#add_payment_method .wc-proceed-to-checkout a.checkout-button,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.woocommerce-checkout #payment #place_order{
  background:var(--ra-red)!important;
  color:#fff!important;
}

/* checkout — убрать голубую стандартную линию купона */
.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info{
  border-top-color:var(--ra-red)!important;
}


/* ===== v4.2: benefit icons bigger, without square border ===== */
.ra-benefit{
  grid-template-columns:48px 1fr!important;
  gap:16px!important;
  align-items:center!important;
}

.ra-benefit-icon{
  width:44px!important;
  height:44px!important;
  border:0!important;
  color:var(--ra-icon-color)!important;
  background:transparent!important;
  font-size:30px!important;
}

.ra-benefit-icon img{
  max-width:38px!important;
  max-height:38px!important;
  width:38px!important;
  height:38px!important;
  object-fit:contain!important;
}

.ra-benefit b{
  font-size:17px!important;
}

.ra-benefit p{
  font-size:14px!important;
}

@media(max-width:720px){
  .ra-benefit{
    grid-template-columns:44px 1fr!important;
  }
}


/* ===== v4.3: product image visual zoom inside single card ===== */
.ra-gallery{
  height:360px!important;
  padding:10px!important;
  overflow:hidden!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}

.ra-gallery img{
  width:100%!important;
  height:100%!important;
  max-height:none!important;
  object-fit:contain!important;
  transform:scale(1.22)!important;
  transform-origin:center center!important;
}

/* каталог тоже чуть крупнее, но без обрезания карточек */
.woocommerce ul.products li.product a img{
  padding:10px!important;
  transform:scale(1.08)!important;
  transform-origin:center center!important;
}

@media(max-width:900px){
  .ra-gallery{
    height:330px!important;
  }
}

@media(max-width:560px){
  .ra-gallery{
    height:280px!important;
  }

  .ra-gallery img{
    transform:scale(1.14)!important;
  }
}


/* ===== v4.4: product grid image does not overlap title ===== */
.woocommerce ul.products li.product{
  display:grid!important;
  grid-template-rows:auto 1fr auto auto auto!important;
}

.woocommerce ul.products li.product a.woocommerce-LoopProduct-link{
  display:block!important;
  overflow:hidden!important;
}

.woocommerce ul.products li.product a img{
  transform:none!important;
  padding:12px!important;
  height:auto!important;
  aspect-ratio:1/1!important;
  object-fit:contain!important;
  display:block!important;
  position:relative!important;
  z-index:1!important;
}

/* увеличиваем фото без наезда на текст через меньший padding, а не scale */
.woocommerce ul.products li.product a img{
  padding:6px!important;
}

.woocommerce-loop-product__title{
  position:relative!important;
  z-index:2!important;
  background:#fff!important;
  margin-top:0!important;
  padding-top:0!important;
  min-height:58px!important;
  display:-webkit-box!important;
  -webkit-line-clamp:3!important;
  -webkit-box-orient:vertical!important;
  overflow:hidden!important;
}

.ra-loop-sku,
.ra-loop-stock,
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .ra-one-click-btn{
  position:relative!important;
  z-index:2!important;
  background:#fff!important;
}

/* карточка чуть ниже, чтобы текст дышал */
.woocommerce ul.products li.product{
  min-height:420px!important;
}

@media(max-width:1180px){
  .woocommerce ul.products li.product{
    min-height:400px!important;
  }
}


/* ===== v4.5: premium product cards, visible buttons, beautiful price ===== */

.woocommerce ul.products{
  align-items:stretch!important;
}

.woocommerce ul.products li.product{
  min-height:0!important;
  display:flex!important;
  flex-direction:column!important;
  background:#fff!important;
  border:1px solid #e8e8e8!important;
  box-shadow:none!important;
  transition:.18s ease!important;
}

.woocommerce ul.products li.product:hover{
  transform:translateY(-2px)!important;
  box-shadow:0 14px 34px rgba(0,0,0,.07)!important;
}

.woocommerce ul.products li.product a.woocommerce-LoopProduct-link{
  display:block!important;
  overflow:visible!important;
  color:#111!important;
}

.woocommerce ul.products li.product a img{
  width:100%!important;
  height:auto!important;
  aspect-ratio:1/1!important;
  object-fit:contain!important;
  padding:18px!important;
  margin:0!important;
  transform:none!important;
  background:#fff!important;
  border-bottom:1px solid #ededed!important;
}

.woocommerce-loop-product__title{
  margin:16px 16px 6px!important;
  min-height:46px!important;
  color:#111!important;
  font-size:15px!important;
  line-height:1.25!important;
  font-weight:900!important;
  letter-spacing:-.01em!important;
  background:#fff!important;
  display:-webkit-box!important;
  -webkit-line-clamp:3!important;
  -webkit-box-orient:vertical!important;
  overflow:hidden!important;
}

.ra-loop-sku{
  margin:0 16px 10px!important;
  color:#777!important;
  font-size:13px!important;
  font-weight:700!important;
  text-transform:none!important;
  background:#fff!important;
}

.ra-loop-stock{
  margin:0 16px 12px!important;
  color:#16843b!important;
  font-size:13px!important;
  font-weight:850!important;
  background:#fff!important;
}

.woocommerce ul.products li.product .price{
  display:block!important;
  margin:0 16px 12px!important;
  color:#050505!important;
  font-size:26px!important;
  line-height:1!important;
  font-weight:950!important;
  letter-spacing:-.03em!important;
  background:#fff!important;
}

.woocommerce ul.products li.product .price .amount,
.woocommerce ul.products li.product .price bdi{
  color:#050505!important;
  font-size:26px!important;
  font-weight:950!important;
}

.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product a.button,
.woocommerce ul.products li.product .add_to_cart_button{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:calc(100% - 32px)!important;
  min-height:46px!important;
  margin:0 16px 10px!important;
  padding:12px!important;
  background:var(--ra-red)!important;
  color:#fff!important;
  border:0!important;
  border-radius:0!important;
  font-size:12px!important;
  line-height:1!important;
  font-weight:950!important;
  text-transform:uppercase!important;
  opacity:1!important;
  visibility:visible!important;
  position:relative!important;
  z-index:3!important;
}

.woocommerce ul.products li.product .button:before,
.woocommerce ul.products li.product a.button:before{
  content:"🛒";
  margin-right:8px;
  font-size:15px;
  line-height:1;
}

.woocommerce ul.products li.product .ra-one-click-btn{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:calc(100% - 32px)!important;
  min-height:42px!important;
  margin:0 16px 16px!important;
  padding:11px!important;
  background:#fff!important;
  color:#050505!important;
  border:1px solid #111!important;
  border-radius:0!important;
  font-size:12px!important;
  line-height:1!important;
  font-weight:950!important;
  text-transform:uppercase!important;
  opacity:1!important;
  visibility:visible!important;
  position:relative!important;
  z-index:3!important;
  cursor:pointer!important;
}

.woocommerce ul.products li.product .ra-one-click-btn:before{
  content:"⚡";
  margin-right:8px;
  color:var(--ra-red);
  font-size:15px;
  line-height:1;
}

.woocommerce ul.products li.product .button + .ra-one-click-btn{
  margin-top:0!important;
}

/* push buttons to bottom only when card has enough space */
.woocommerce ul.products li.product .price{
  margin-top:auto!important;
}

/* single product buttons */
.ra-summary .ra-one-click-btn{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  min-height:48px!important;
  margin:0 0 18px!important;
  background:#050505!important;
  color:#fff!important;
  border:0!important;
  font-size:13px!important;
  font-weight:950!important;
  text-transform:uppercase!important;
}

.ra-summary .ra-one-click-btn:before{
  content:"⚡";
  margin-right:8px;
  color:var(--ra-red);
}

/* if WooCommerce ajax adds added_to_cart link */
.woocommerce ul.products li.product .added_to_cart{
  display:block!important;
  width:calc(100% - 32px)!important;
  margin:0 16px 10px!important;
  text-align:center!important;
  font-size:12px!important;
  font-weight:900!important;
  color:var(--ra-red)!important;
}

/* cleaner placeholder cards */
.woocommerce ul.products li.product img[src*="placeholder"]{
  opacity:.55!important;
  padding:34px!important;
}


/* ===== v4.6: remove cart icon from product buttons ===== */
.woocommerce ul.products li.product .button:before,
.woocommerce ul.products li.product a.button:before,
.woocommerce ul.products li.product .add_to_cart_button:before{
  content:none!important;
  display:none!important;
  margin:0!important;
}

.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product a.button,
.woocommerce ul.products li.product .add_to_cart_button{
  gap:0!important;
}

.single_add_to_cart_button:before,
.ra-cart-form .single_add_to_cart_button:before{
  content:none!important;
  display:none!important;
}


/* ===== v4.7: equal square product photos everywhere ===== */

/* Общий квадратный контейнер изображения в карточках */
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link{
  display:flex!important;
  flex-direction:column!important;
  height:auto!important;
}

/* Первый img в карточке всегда квадратный и одинаковый */
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link > img,
.woocommerce ul.products li.product > a > img,
.woocommerce ul.products li.product img.attachment-woocommerce_thumbnail,
.woocommerce ul.products li.product img.wp-post-image{
  width:100%!important;
  height:auto!important;
  aspect-ratio:1 / 1!important;
  object-fit:contain!important;
  object-position:center center!important;
  display:block!important;
  margin:0!important;
  padding:18px!important;
  background:#fff!important;
  border-bottom:1px solid #ededed!important;
  box-sizing:border-box!important;
  transform:none!important;
}

/* чтобы WooCommerce/плагины не задавали разные размеры */
.woocommerce ul.products li.product img{
  max-width:100%!important;
  min-height:0!important;
}

/* одинаковая структура карточки */
.woocommerce ul.products li.product{
  display:flex!important;
  flex-direction:column!important;
  height:100%!important;
}

/* название, цена и кнопки всегда ниже фото */
.woocommerce-loop-product__title,
.ra-loop-sku,
.ra-loop-stock,
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .ra-one-click-btn{
  flex-shrink:0!important;
}

/* в каталоге и на главной — одинаковая визуальная высота фотозоны */
@supports not (aspect-ratio: 1 / 1){
  .woocommerce ul.products li.product a.woocommerce-LoopProduct-link > img,
  .woocommerce ul.products li.product > a > img,
  .woocommerce ul.products li.product img.attachment-woocommerce_thumbnail,
  .woocommerce ul.products li.product img.wp-post-image{
    height:260px!important;
  }
}

@media(max-width:1180px){
  .woocommerce ul.products li.product a.woocommerce-LoopProduct-link > img,
  .woocommerce ul.products li.product > a > img,
  .woocommerce ul.products li.product img.attachment-woocommerce_thumbnail,
  .woocommerce ul.products li.product img.wp-post-image{
    padding:16px!important;
  }
}

@media(max-width:560px){
  .woocommerce ul.products li.product a.woocommerce-LoopProduct-link > img,
  .woocommerce ul.products li.product > a > img,
  .woocommerce ul.products li.product img.attachment-woocommerce_thumbnail,
  .woocommerce ul.products li.product img.wp-post-image{
    padding:14px!important;
  }
}


/* ===== v4.8: category icons big/no border, one-click no icon, premium layout ===== */

/* Категории на главной: иконки крупные, без квадратов */
.ra-cats{
  gap:22px!important;
}

.ra-cat{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:flex-start!important;
  text-align:center!important;
  min-height:150px!important;
  padding:20px 14px!important;
  border:0!important;
  background:#fff!important;
}

.ra-cat:hover{
  border:0!important;
  box-shadow:none!important;
  transform:translateY(-2px)!important;
}

.ra-cat-icon{
  width:72px!important;
  height:72px!important;
  margin:0 0 12px!important;
  border:0!important;
  background:transparent!important;
  color:var(--ra-icon-color)!important;
  font-size:56px!important;
  line-height:1!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}

.ra-cat-icon img{
  width:72px!important;
  height:72px!important;
  max-width:72px!important;
  max-height:72px!important;
  object-fit:contain!important;
  display:block!important;
}

.ra-cat b{
  display:block!important;
  margin:0 0 5px!important;
  font-size:15px!important;
  line-height:1.18!important;
  font-weight:950!important;
  color:#111!important;
}

.ra-cat small{
  display:block!important;
  color:#555!important;
  font-size:12px!important;
  line-height:1.25!important;
}

/* Преимущества — крупные иконки без рамок */
.ra-benefit-icon{
  border:0!important;
  background:transparent!important;
  width:64px!important;
  height:64px!important;
  font-size:52px!important;
}

.ra-benefit-icon img{
  width:60px!important;
  height:60px!important;
  max-width:60px!important;
  max-height:60px!important;
  object-fit:contain!important;
}

/* Убрать иконку молнии с Купить в 1 клик */
.ra-one-click-btn:before,
.woocommerce ul.products li.product .ra-one-click-btn:before,
.ra-summary .ra-one-click-btn:before{
  content:none!important;
  display:none!important;
  margin:0!important;
}

.ra-one-click-btn{
  gap:0!important;
}

/* Кнопки товаров: чистый строгий вид */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product a.button,
.woocommerce ul.products li.product .add_to_cart_button{
  min-height:44px!important;
}

.woocommerce ul.products li.product .ra-one-click-btn{
  min-height:40px!important;
  background:#fff!important;
  border:1px solid #111!important;
  color:#111!important;
}

/* Немного компактнее отступы между секциями */
.ra-section{
  padding-top:44px!important;
  padding-bottom:44px!important;
}

@media(max-width:720px){
  .ra-cat{
    min-height:130px!important;
  }

  .ra-cat-icon,
  .ra-cat-icon img{
    width:58px!important;
    height:58px!important;
    max-width:58px!important;
    max-height:58px!important;
    font-size:46px!important;
  }

  .ra-benefit-icon,
  .ra-benefit-icon img{
    width:48px!important;
    height:48px!important;
    max-width:48px!important;
    max-height:48px!important;
    font-size:42px!important;
  }
}


/* ===== v4.9: contacts page + clean empty pages ===== */

.ra-contact-hero{
  background:#f4f4f4;
  padding:56px 0;
}

.ra-contact-grid{
  display:grid;
  grid-template-columns:minmax(0, .95fr) minmax(360px, .7fr);
  gap:28px;
  align-items:stretch;
}

.ra-contact-card{
  background:#fff;
  border:1px solid var(--ra-line);
  padding:28px;
}

.ra-contact-card.dark{
  background:#050505;
  color:#fff;
  border-color:#050505;
}

.ra-contact-card h2{
  margin:0 0 18px;
  font-size:clamp(28px,3vw,46px);
  line-height:.98;
  letter-spacing:-.045em;
}

.ra-contact-card p{
  margin:0 0 18px;
  color:#666;
  line-height:1.55;
}

.ra-contact-card.dark p{
  color:#cfcfcf;
}

.ra-contact-list{
  display:grid;
  gap:12px;
  margin-top:20px;
}

.ra-contact-item{
  display:grid;
  grid-template-columns:42px 1fr;
  gap:14px;
  align-items:start;
  padding:14px 0;
  border-bottom:1px solid rgba(255,255,255,.12);
}

.ra-contact-item:last-child{
  border-bottom:0;
}

.ra-contact-ico{
  width:42px;
  height:42px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--ra-red);
  font-size:30px;
  font-weight:900;
}

.ra-contact-item b{
  display:block;
  margin-bottom:4px;
  font-size:14px;
  text-transform:uppercase;
}

.ra-contact-item a,
.ra-contact-item span{
  color:inherit;
  font-size:18px;
  font-weight:900;
  text-decoration:none;
}

.ra-contact-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:24px;
}

.ra-contact-actions .ra-btn{
  min-width:180px;
}

.ra-contact-form{
  display:grid;
  gap:12px;
}

.ra-contact-form input,
.ra-contact-form textarea{
  width:100%;
  min-height:48px;
  border:1px solid var(--ra-line);
  background:#fff;
  padding:13px 14px;
  font-size:14px;
  outline:0;
}

.ra-contact-form textarea{
  min-height:126px;
  resize:vertical;
}

.ra-contact-form button{
  min-height:52px;
  background:var(--ra-red);
  color:#fff;
  font-weight:950;
  text-transform:uppercase;
}

.ra-contact-map{
  margin-top:28px;
  min-height:260px;
  background:
    linear-gradient(135deg,rgba(177,18,27,.92),rgba(0,0,0,.86)),
    var(--ra-hero-image, none);
  background-size:cover;
  background-position:center;
  color:#fff;
  border:1px solid #111;
  padding:28px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
}

.ra-contact-map b{
  font-size:28px;
  line-height:1;
  letter-spacing:-.035em;
}

.ra-contact-map span{
  margin-top:8px;
  color:#e5e5e5;
}

.ra-empty-page{
  max-width:920px;
  padding:64px 0;
}

.ra-empty-page h1{
  font-size:clamp(34px,4vw,58px);
  line-height:.98;
  letter-spacing:-.05em;
}

.ra-empty-page p{
  max-width:560px;
  color:#666;
  line-height:1.6;
}

.ra-empty-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:22px;
}

@media(max-width:860px){
  .ra-contact-grid{
    grid-template-columns:1fr;
  }

  .ra-contact-card{
    padding:22px;
  }
}


/* ===== v5.0: sticky messenger toggles ===== */
.ra-sticky.is-hidden{
  display:none!important;
}


/* ===== v5.1: AJAX search + mobile catalog filter ===== */

/* AJAX search */
.ra-search-wrap{
  position:relative;
  flex:1;
  min-width:280px;
}

.ra-search-wrap form,
.ra-header-search,
.woocommerce-product-search{
  display:flex;
  width:100%;
}

.ra-search-wrap input[type="search"],
.ra-search-wrap input[type="text"],
.ra-header-search input[type="search"],
.woocommerce-product-search input[type="search"]{
  width:100%;
}

.ra-search-results{
  position:absolute;
  left:0;
  right:0;
  top:calc(100% + 8px);
  z-index:9999;
  background:#fff;
  border:1px solid #e4e4e4;
  box-shadow:0 24px 70px rgba(0,0,0,.14);
  display:none;
  max-height:430px;
  overflow:auto;
}

.ra-search-results.is-open{
  display:block;
}

.ra-search-result{
  display:grid;
  grid-template-columns:58px 1fr auto;
  gap:12px;
  align-items:center;
  padding:12px;
  border-bottom:1px solid #eee;
  color:#111;
  text-decoration:none;
}

.ra-search-result:last-child{
  border-bottom:0;
}

.ra-search-result:hover{
  background:#f7f7f7;
}

.ra-search-result img{
  width:58px;
  height:58px;
  object-fit:contain;
  background:#fff;
}

.ra-search-result-title{
  font-size:13px;
  font-weight:900;
  line-height:1.25;
}

.ra-search-result-sku{
  margin-top:3px;
  color:var(--ra-red);
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
}

.ra-search-result-price{
  white-space:nowrap;
  font-size:14px;
  font-weight:950;
}

.ra-search-empty,
.ra-search-loading{
  padding:16px;
  font-size:13px;
  color:#666;
}

/* Desktop filter polish */
.ra-shop-sidebar,
.woocommerce .widget-area,
.woocommerce-page .widget-area{
  background:#fff;
  border:1px solid #e7e7e7;
}

/* Mobile filter */
.ra-mobile-filter-open{
  display:none;
  width:100%;
  min-height:48px;
  margin:0 0 18px;
  background:#050505;
  color:#fff;
  align-items:center;
  justify-content:center;
  font-size:12px;
  font-weight:950;
  text-transform:uppercase;
}

.ra-filter-overlay{
  position:fixed;
  inset:0;
  z-index:99998;
  background:rgba(0,0,0,.55);
  display:none;
}

.ra-filter-overlay.is-open{
  display:block;
}

.ra-filter-panel{
  position:fixed;
  top:0;
  left:0;
  bottom:0;
  z-index:99999;
  width:min(380px, 88vw);
  background:#fff;
  transform:translateX(-105%);
  transition:.25s ease;
  overflow:auto;
  box-shadow:18px 0 60px rgba(0,0,0,.22);
  padding:20px;
}

.ra-filter-panel.is-open{
  transform:translateX(0);
}

.ra-filter-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  margin-bottom:18px;
  padding-bottom:14px;
  border-bottom:1px solid #e7e7e7;
}

.ra-filter-head b{
  font-size:22px;
  letter-spacing:-.035em;
}

.ra-filter-close{
  width:40px;
  height:40px;
  background:#050505;
  color:#fff;
  font-size:24px;
  line-height:1;
}

.ra-filter-panel .widget,
.ra-filter-panel .woocommerce-widget-layered-nav,
.ra-filter-panel .widget_product_categories{
  margin-bottom:22px;
}

.ra-filter-panel input[type="search"],
.ra-filter-panel input[type="text"],
.ra-filter-panel select{
  width:100%;
  min-height:42px;
  border:1px solid #ddd;
  padding:10px;
}

/* Woo shop layout normalization */
.woocommerce-shop .site-main,
.tax-product_cat .site-main,
.post-type-archive-product .site-main{
  position:relative;
}

@media(max-width:900px){
  .ra-mobile-filter-open{
    display:flex;
  }

  .woocommerce .ra-shop-layout,
  .ra-shop-layout{
    display:block!important;
  }

  .ra-shop-sidebar,
  .woocommerce .widget-area,
  .woocommerce-page .widget-area{
    display:none!important;
  }

  .ra-search-results{
    position:fixed;
    left:14px;
    right:14px;
    top:118px;
    max-height:60vh;
  }

  .ra-search-result{
    grid-template-columns:52px 1fr;
  }

  .ra-search-result-price{
    grid-column:2;
  }
}

@media(max-width:560px){
  .ra-search-wrap{
    min-width:100%;
  }

  .ra-search-result{
    padding:10px;
  }
}


/* ===== v5.2: strict 1:1 square images for ALL product places ===== */

/* SINGLE PRODUCT: main gallery is always a real square 1:1 */
.single-product .ra-gallery,
.ra-single .ra-gallery{
  width:100%!important;
  aspect-ratio:1 / 1!important;
  height:auto!important;
  max-height:none!important;
  min-height:0!important;
  padding:18px!important;
  background:#fff!important;
  border:1px solid #e7e7e7!important;
  overflow:hidden!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  box-sizing:border-box!important;
}

/* SINGLE PRODUCT: image centered inside square */
.single-product .ra-gallery img,
.ra-single .ra-gallery img,
.single-product .woocommerce-product-gallery__image img,
.single-product .wp-post-image{
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  object-position:center center!important;
  display:block!important;
  margin:0 auto!important;
  padding:0!important;
  transform:none!important;
  background:#fff!important;
  box-sizing:border-box!important;
}

/* Disable previous zoom rules on single product */
.single-product .ra-gallery img{
  transform:none!important;
}

/* PRODUCT LOOP: all catalog/home cards images are square 1:1 */
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link{
  display:flex!important;
  flex-direction:column!important;
}

.woocommerce ul.products li.product a.woocommerce-LoopProduct-link > img,
.woocommerce ul.products li.product > a > img,
.woocommerce ul.products li.product img.attachment-woocommerce_thumbnail,
.woocommerce ul.products li.product img.wp-post-image{
  width:100%!important;
  aspect-ratio:1 / 1!important;
  height:auto!important;
  max-height:none!important;
  min-height:0!important;
  object-fit:contain!important;
  object-position:center center!important;
  padding:18px!important;
  margin:0!important;
  background:#fff!important;
  border-bottom:1px solid #ededed!important;
  transform:none!important;
  box-sizing:border-box!important;
}

/* Make product card text start only after image square */
.woocommerce-loop-product__title{
  clear:both!important;
}

/* fallback for old browsers */
@supports not (aspect-ratio: 1 / 1){
  .single-product .ra-gallery,
  .ra-single .ra-gallery{
    height:430px!important;
  }
  .woocommerce ul.products li.product a.woocommerce-LoopProduct-link > img,
  .woocommerce ul.products li.product > a > img,
  .woocommerce ul.products li.product img.attachment-woocommerce_thumbnail,
  .woocommerce ul.products li.product img.wp-post-image{
    height:260px!important;
  }
}

@media(max-width:900px){
  .single-product .ra-gallery,
  .ra-single .ra-gallery{
    max-width:520px!important;
    margin:0 auto!important;
  }
}

@media(max-width:560px){
  .single-product .ra-gallery,
  .ra-single .ra-gallery{
    padding:14px!important;
  }

  .woocommerce ul.products li.product a.woocommerce-LoopProduct-link > img,
  .woocommerce ul.products li.product > a > img,
  .woocommerce ul.products li.product img.attachment-woocommerce_thumbnail,
  .woocommerce ul.products li.product img.wp-post-image{
    padding:14px!important;
  }
}


/* ===== v5.3: FIX broken WooCommerce catalog grid ===== */

/* главная причина поломки — WooCommerce/старые стили давали карточкам слишком маленькую ширину */
.woocommerce ul.products,
.woocommerce-page ul.products{
  display:grid!important;
  grid-template-columns:repeat(4, minmax(0, 1fr))!important;
  gap:22px!important;
  width:100%!important;
  max-width:100%!important;
  margin:0!important;
  padding:0!important;
  clear:both!important;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::before,
.woocommerce-page ul.products::after{
  content:none!important;
  display:none!important;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product{
  float:none!important;
  width:auto!important;
  max-width:none!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  clear:none!important;
  display:flex!important;
  flex-direction:column!important;
  box-sizing:border-box!important;
}

/* нормальная зона каталога */
.ra-shop-products{
  width:100%!important;
  min-width:0!important;
}

.ra-shop-layout{
  display:grid!important;
  grid-template-columns:260px minmax(0, 1fr)!important;
  gap:28px!important;
  align-items:start!important;
}

.ra-shop-sidebar{
  width:260px!important;
  min-width:260px!important;
}

/* фото остаётся квадратным, но НЕ ломает ширину карточки */
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link,
.woocommerce-page ul.products li.product a.woocommerce-LoopProduct-link{
  display:block!important;
  width:100%!important;
  min-width:0!important;
  overflow:hidden!important;
}

.woocommerce ul.products li.product a.woocommerce-LoopProduct-link > img,
.woocommerce ul.products li.product > a > img,
.woocommerce ul.products li.product img.attachment-woocommerce_thumbnail,
.woocommerce ul.products li.product img.wp-post-image,
.woocommerce-page ul.products li.product a.woocommerce-LoopProduct-link > img,
.woocommerce-page ul.products li.product > a > img,
.woocommerce-page ul.products li.product img.attachment-woocommerce_thumbnail,
.woocommerce-page ul.products li.product img.wp-post-image{
  width:100%!important;
  height:auto!important;
  aspect-ratio:1/1!important;
  object-fit:contain!important;
  object-position:center center!important;
  display:block!important;
  box-sizing:border-box!important;
  margin:0!important;
  padding:18px!important;
  transform:none!important;
}

/* текст и кнопки нормальной ширины */
.woocommerce-loop-product__title,
.ra-loop-sku,
.ra-loop-stock,
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .ra-one-click-btn{
  width:auto!important;
  max-width:none!important;
  white-space:normal!important;
  word-break:normal!important;
  overflow-wrap:break-word!important;
}

/* сортировка и счётчик не должны сжимать сетку */
.woocommerce-result-count{
  float:none!important;
  display:inline-block!important;
  margin:0 20px 24px 0!important;
}

.woocommerce-ordering{
  float:none!important;
  display:inline-block!important;
  margin:0 0 24px!important;
}

/* если на странице нет сайдбара — 4 карточки на всю ширину */
body:not(.has-shop-sidebar) .ra-shop-layout{
  grid-template-columns:1fr!important;
}

/* адаптив */
@media(max-width:1180px){
  .woocommerce ul.products,
  .woocommerce-page ul.products{
    grid-template-columns:repeat(3, minmax(0, 1fr))!important;
  }
}

@media(max-width:900px){
  .ra-shop-layout{
    display:block!important;
  }

  .ra-shop-sidebar{
    display:none!important;
  }

  .woocommerce ul.products,
  .woocommerce-page ul.products{
    grid-template-columns:repeat(2, minmax(0, 1fr))!important;
    gap:16px!important;
  }
}

@media(max-width:560px){
  .woocommerce ul.products,
  .woocommerce-page ul.products{
    grid-template-columns:1fr!important;
  }
}


/* ===== v5.4: mobile catalog 2 columns ===== */
@media(max-width:900px){
  .woocommerce ul.products,
  .woocommerce-page ul.products{
    grid-template-columns:repeat(2, minmax(0, 1fr))!important;
    gap:12px!important;
  }

  .woocommerce-loop-product__title{
    font-size:13px!important;
    min-height:44px!important;
    margin:12px 10px 6px!important;
  }

  .ra-loop-sku,
  .ra-loop-stock{
    margin-left:10px!important;
    margin-right:10px!important;
    font-size:11px!important;
  }

  .woocommerce ul.products li.product .price{
    margin-left:10px!important;
    margin-right:10px!important;
    font-size:22px!important;
  }

  .woocommerce ul.products li.product .price .amount,
  .woocommerce ul.products li.product .price bdi{
    font-size:22px!important;
  }

  .woocommerce ul.products li.product .button,
  .woocommerce ul.products li.product a.button,
  .woocommerce ul.products li.product .add_to_cart_button,
  .woocommerce ul.products li.product .ra-one-click-btn{
    width:calc(100% - 20px)!important;
    margin-left:10px!important;
    margin-right:10px!important;
    font-size:11px!important;
  }

  .woocommerce ul.products li.product a.woocommerce-LoopProduct-link > img,
  .woocommerce ul.products li.product > a > img,
  .woocommerce ul.products li.product img.attachment-woocommerce_thumbnail,
  .woocommerce ul.products li.product img.wp-post-image{
    padding:10px!important;
  }
}

/* даже на маленьких телефонах оставляем 2 товара в ряд */
@media(max-width:560px){
  .woocommerce ul.products,
  .woocommerce-page ul.products{
    grid-template-columns:repeat(2, minmax(0, 1fr))!important;
    gap:10px!important;
  }

  .woocommerce ul.products li.product .button,
  .woocommerce ul.products li.product a.button,
  .woocommerce ul.products li.product .add_to_cart_button{
    min-height:40px!important;
  }

  .woocommerce ul.products li.product .ra-one-click-btn{
    min-height:38px!important;
  }
}


/* ===== v5.5: catalog category row ===== */
.ra-catalog-cats{
  width:100%;
  margin:0 0 26px;
  padding:0 0 18px;
  border-bottom:1px solid #e8e8e8;
}

.ra-catalog-cats-title{
  margin:0 0 12px;
  color:var(--ra-red);
  font-size:12px;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.08em;
}

.ra-catalog-cats-list{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.ra-catalog-cats-list a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:9px 13px;
  border:1px solid #dcdcdc;
  background:#fff;
  color:#111;
  text-decoration:none;
  font-size:12px;
  font-weight:900;
  line-height:1.1;
  transition:.18s ease;
}

.ra-catalog-cats-list a:hover,
.ra-catalog-cats-list a.is-current{
  border-color:var(--ra-red);
  background:var(--ra-red);
  color:#fff;
}

.ra-catalog-cats-list a span{
  color:#777;
  margin-left:6px;
  font-weight:800;
}

.ra-catalog-cats-list a:hover span,
.ra-catalog-cats-list a.is-current span{
  color:#fff;
}

@media(max-width:720px){
  .ra-catalog-cats{
    overflow:hidden;
    margin-bottom:18px;
  }

  .ra-catalog-cats-list{
    flex-wrap:nowrap;
    overflow-x:auto;
    padding-bottom:8px;
    scrollbar-width:thin;
  }

  .ra-catalog-cats-list a{
    flex:0 0 auto;
    white-space:nowrap;
  }
}


/* ===== v5.6: stronger header AJAX search binding ===== */
.ra-ajax-search-holder{
  position:relative!important;
}

.ra-ajax-search-holder .ra-search-results{
  position:absolute!important;
  left:0!important;
  right:0!important;
  top:calc(100% + 8px)!important;
  z-index:999999!important;
}

.ra-search-results{
  min-width:320px!important;
}

.ra-search-result strong,
.ra-search-result-price{
  color:#050505!important;
}

@media(max-width:720px){
  .ra-ajax-search-holder .ra-search-results{
    position:fixed!important;
    left:12px!important;
    right:12px!important;
    top:110px!important;
  }
}


/* ===== v5.7: editable search/help block background image and overlay ===== */
.ra-find-left{
  position:relative!important;
  overflow:hidden!important;
  isolation:isolate!important;
  background-color:#050505!important;
  background-image:
    linear-gradient(
      rgba(var(--ra-find-overlay-rgb, 0,0,0), var(--ra-find-overlay-opacity, .72)),
      rgba(var(--ra-find-overlay-rgb, 0,0,0), var(--ra-find-overlay-opacity, .72))
    ),
    var(--ra-find-bg-image, none)!important;
  background-size:cover!important;
  background-position:center center!important;
  background-repeat:no-repeat!important;
}

.ra-find-left > *{
  position:relative!important;
  z-index:2!important;
}

.ra-find-left:after{
  content:""!important;
  position:absolute!important;
  inset:0!important;
  z-index:1!important;
  pointer-events:none!important;
  background:
    radial-gradient(circle at 75% 30%, rgba(177,18,27,.22), transparent 36%),
    linear-gradient(135deg, rgba(177,18,27,.14), transparent 52%)!important;
}


/* ===== v5.8: mobile catalog remove empty space and filter button ===== */
@media(max-width:900px){

  /* На мобильной фильтр не нужен — категории уже есть плашками */
  .ra-mobile-filter-open,
  .ra-filter-panel,
  .ra-filter-overlay,
  .ra-shop-sidebar,
  .woocommerce .widget-area,
  .woocommerce-page .widget-area{
    display:none!important;
  }

  /* Убираем огромную пустоту сверху каталога */
  .post-type-archive-product .ra-section,
  .tax-product_cat .ra-section,
  .woocommerce-shop .ra-section,
  body.post-type-archive-product main.ra-section,
  body.tax-product_cat main.ra-section,
  body.woocommerce-shop main.ra-section{
    padding-top:18px!important;
    padding-bottom:34px!important;
  }

  .post-type-archive-product .ra-container,
  .tax-product_cat .ra-container,
  .woocommerce-shop .ra-container,
  .post-type-archive-product .ra-wrap,
  .tax-product_cat .ra-wrap,
  .woocommerce-shop .ra-wrap{
    padding-top:0!important;
  }

  /* Заголовок каталога компактнее */
  .post-type-archive-product .ra-section-head,
  .tax-product_cat .ra-section-head,
  .woocommerce-shop .ra-section-head{
    margin:0 0 14px!important;
    padding:0!important;
  }

  .post-type-archive-product .ra-section-head h1,
  .tax-product_cat .ra-section-head h1,
  .woocommerce-shop .ra-section-head h1{
    font-size:24px!important;
    line-height:1!important;
    margin:0!important;
  }

  .post-type-archive-product .ra-section-head span,
  .tax-product_cat .ra-section-head span,
  .woocommerce-shop .ra-section-head span{
    font-size:10px!important;
    margin-bottom:6px!important;
  }

  /* Счётчик и сортировка в одну компактную зону */
  .woocommerce-result-count{
    display:block!important;
    margin:0 0 8px!important;
    font-size:11px!important;
    color:#777!important;
  }

  .woocommerce-ordering{
    display:block!important;
    width:100%!important;
    margin:0 0 16px!important;
  }

  .woocommerce-ordering select{
    width:100%!important;
    max-width:100%!important;
    min-height:42px!important;
    font-size:12px!important;
  }

  /* Категории без большой высоты */
  .ra-catalog-cats{
    margin:0 0 14px!important;
    padding:0 0 12px!important;
  }

  .ra-catalog-cats-title{
    margin:0 0 8px!important;
    font-size:10px!important;
  }

  .ra-catalog-cats-list{
    gap:6px!important;
  }

  .ra-catalog-cats-list a{
    min-height:34px!important;
    padding:8px 10px!important;
    font-size:11px!important;
  }

  /* Сетка товаров сразу после категорий */
  .ra-shop-layout{
    display:block!important;
    margin-top:0!important;
    padding-top:0!important;
  }

  .ra-shop-products{
    margin-top:0!important;
    padding-top:0!important;
  }

  .woocommerce ul.products,
  .woocommerce-page ul.products{
    margin-top:0!important;
    padding-top:0!important;
  }

  /* Если тема/плагин оставил пустой блок — схлопываем */
  .ra-shop-layout:empty,
  .ra-shop-products:empty{
    display:none!important;
  }
}

@media(max-width:560px){
  body.post-type-archive-product main.ra-section,
  body.tax-product_cat main.ra-section,
  body.woocommerce-shop main.ra-section{
    padding-top:12px!important;
  }
}


/* ===== v5.9: editable find block background ===== */
.ra-find-left{
  position:relative!important;
  overflow:hidden!important;
  isolation:isolate!important;
  background-color:#050505!important;
  background-image:
    linear-gradient(
      rgba(var(--ra-find-overlay-rgb, 0,0,0), var(--ra-find-overlay-opacity, .72)),
      rgba(var(--ra-find-overlay-rgb, 0,0,0), var(--ra-find-overlay-opacity, .72))
    ),
    var(--ra-find-bg-image, none)!important;
  background-size:cover!important;
  background-position:center center!important;
  background-repeat:no-repeat!important;
}

.ra-find-left > *{
  position:relative!important;
  z-index:2!important;
}

.ra-find-left:after{
  content:""!important;
  position:absolute!important;
  inset:0!important;
  z-index:1!important;
  pointer-events:none!important;
  background:
    radial-gradient(circle at 78% 28%, rgba(177,18,27,.22), transparent 34%),
    linear-gradient(135deg, rgba(177,18,27,.12), transparent 58%)!important;
}


/* ===== v6.0: richer mobile catalog/cards + mobile search in catalog ===== */

.ra-mobile-shop-search{
  display:none;
}

/* price styling */
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .price .amount,
.woocommerce ul.products li.product .price bdi{
  color:#050505!important;
  font-weight:950!important;
  letter-spacing:-.03em!important;
}

.woocommerce ul.products li.product .price .woocommerce-Price-currencySymbol{
  font-size:.72em!important;
  margin-left:2px!important;
  font-weight:950!important;
  vertical-align:baseline!important;
}

/* desktop category cards stay clean */
.ra-cat-card,
.ra-category-card,
.ra-home-category,
.ra-categories-grid a{
  transition:.18s ease!important;
}

@media(max-width:900px){

  /* mobile header: keep only logo + burger, catalog gets own search */
  .ra-header-search,
  .ra-search-wrap,
  header .ra-search-wrap{
    display:none!important;
  }

  .ra-mobile-shop-search{
    display:block!important;
    margin:0 0 18px!important;
    position:relative!important;
  }

  .ra-mobile-shop-search form{
    display:flex!important;
    width:100%!important;
    border:1px solid #e0e0e0!important;
    background:#fff!important;
  }

  .ra-mobile-shop-search input{
    width:100%!important;
    min-width:0!important;
    height:46px!important;
    border:0!important;
    padding:0 12px!important;
    font-size:13px!important;
    outline:none!important;
  }

  .ra-mobile-shop-search button{
    width:86px!important;
    min-width:86px!important;
    height:46px!important;
    border:0!important;
    background:#050505!important;
    color:#fff!important;
    font-size:11px!important;
    font-weight:950!important;
    text-transform:uppercase!important;
  }

  .ra-mobile-shop-search .ra-search-results{
    top:calc(100% + 6px)!important;
    left:0!important;
    right:0!important;
    position:absolute!important;
    z-index:999999!important;
  }

  /* main category section: turn airy icons into premium cards */
  .ra-categories,
  .ra-catalog-section{
    padding-top:34px!important;
    padding-bottom:34px!important;
  }

  .ra-categories-grid,
  .ra-category-grid,
  .ra-cats-grid{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:12px!important;
  }

  .ra-cat-card,
  .ra-category-card,
  .ra-home-category,
  .ra-categories-grid a,
  .ra-category-grid a,
  .ra-cats-grid a{
    min-height:112px!important;
    padding:20px 18px!important;
    border:1px solid #e5e5e5!important;
    background:#fff!important;
    display:grid!important;
    grid-template-columns:58px minmax(0,1fr)!important;
    align-items:center!important;
    gap:16px!important;
    text-align:left!important;
    box-shadow:0 10px 28px rgba(0,0,0,.035)!important;
    text-decoration:none!important;
  }

  .ra-cat-card:hover,
  .ra-category-card:hover,
  .ra-home-category:hover,
  .ra-categories-grid a:hover{
    border-color:var(--ra-red)!important;
  }

  .ra-cat-card img,
  .ra-category-card img,
  .ra-home-category img,
  .ra-categories-grid a img,
  .ra-category-grid a img,
  .ra-cats-grid a img,
  .ra-cat-icon img,
  .ra-category-icon img{
    width:52px!important;
    height:52px!important;
    max-width:52px!important;
    max-height:52px!important;
    object-fit:contain!important;
    display:block!important;
    margin:0!important;
  }

  .ra-cat-card svg,
  .ra-category-card svg,
  .ra-home-category svg,
  .ra-categories-grid a svg,
  .ra-category-grid a svg,
  .ra-cats-grid a svg{
    width:52px!important;
    height:52px!important;
    display:block!important;
    margin:0!important;
  }

  .ra-cat-card h3,
  .ra-category-card h3,
  .ra-home-category h3,
  .ra-categories-grid a h3,
  .ra-category-grid a h3,
  .ra-cats-grid a h3{
    font-size:18px!important;
    line-height:1.05!important;
    margin:0 0 6px!important;
    text-align:left!important;
  }

  .ra-cat-card p,
  .ra-category-card p,
  .ra-home-category p,
  .ra-categories-grid a p,
  .ra-category-grid a p,
  .ra-cats-grid a p{
    font-size:13px!important;
    line-height:1.25!important;
    color:#666!important;
    margin:0!important;
    text-align:left!important;
  }

  /* benefits: in framed premium cards */
  .ra-benefits,
  .ra-benefits-grid{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:12px!important;
    border:0!important;
  }

  .ra-benefit,
  .ra-benefits .ra-benefit,
  .ra-benefits-grid .ra-benefit{
    display:grid!important;
    grid-template-columns:54px minmax(0,1fr)!important;
    gap:14px!important;
    align-items:center!important;
    padding:18px!important;
    border:1px solid #e5e5e5!important;
    background:#fff!important;
    box-shadow:0 10px 28px rgba(0,0,0,.035)!important;
    text-align:left!important;
  }

  .ra-benefit-icon,
  .ra-benefit .ra-icon{
    width:44px!important;
    height:44px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    color:var(--ra-red)!important;
  }

  .ra-benefit-icon img,
  .ra-benefit .ra-icon img,
  .ra-benefit-icon svg,
  .ra-benefit .ra-icon svg{
    width:42px!important;
    height:42px!important;
    max-width:42px!important;
    max-height:42px!important;
    object-fit:contain!important;
  }

  .ra-benefit h3,
  .ra-benefit strong,
  .ra-benefit-title{
    font-size:18px!important;
    line-height:1.05!important;
    margin:0 0 5px!important;
    color:#111!important;
  }

  .ra-benefit p,
  .ra-benefit-text{
    font-size:13px!important;
    line-height:1.28!important;
    color:#666!important;
    margin:0!important;
  }

  /* shop heading spacing */
  body.post-type-archive-product main.ra-section,
  body.tax-product_cat main.ra-section,
  body.woocommerce-shop main.ra-section{
    padding-top:18px!important;
  }

  .post-type-archive-product .ra-section-head h1,
  .tax-product_cat .ra-section-head h1,
  .woocommerce-shop .ra-section-head h1{
    font-size:32px!important;
    line-height:.98!important;
    letter-spacing:-.04em!important;
  }

  /* product cards mobile: more elegant price and compact height */
  .woocommerce ul.products li.product,
  .woocommerce-page ul.products li.product{
    border:1px solid #e6e6e6!important;
    background:#fff!important;
    box-shadow:0 10px 28px rgba(0,0,0,.025)!important;
  }

  .woocommerce-loop-product__title{
    font-size:14px!important;
    line-height:1.12!important;
    min-height:48px!important;
    margin:12px 12px 6px!important;
    letter-spacing:-.02em!important;
  }

  .woocommerce ul.products li.product .price{
    font-size:25px!important;
    line-height:1!important;
    margin:8px 12px 12px!important;
  }

  .woocommerce ul.products li.product .price .amount,
  .woocommerce ul.products li.product .price bdi{
    font-size:25px!important;
  }

  .woocommerce ul.products li.product .button,
  .woocommerce ul.products li.product a.button,
  .woocommerce ul.products li.product .add_to_cart_button{
    width:calc(100% - 24px)!important;
    margin:0 12px 12px!important;
    min-height:42px!important;
    font-size:11px!important;
    letter-spacing:.02em!important;
  }
}

/* very narrow: keep two columns but reduce cards */
@media(max-width:390px){
  .woocommerce-loop-product__title{
    font-size:13px!important;
    min-height:50px!important;
  }

  .woocommerce ul.products li.product .price,
  .woocommerce ul.products li.product .price .amount,
  .woocommerce ul.products li.product .price bdi{
    font-size:23px!important;
  }

  .ra-cat-card,
  .ra-category-card,
  .ra-home-category,
  .ra-categories-grid a,
  .ra-category-grid a,
  .ra-cats-grid a{
    grid-template-columns:48px minmax(0,1fr)!important;
    gap:14px!important;
    padding:17px 15px!important;
  }

  .ra-cat-card img,
  .ra-category-card img,
  .ra-home-category img,
  .ra-categories-grid a img,
  .ra-category-grid a img,
  .ra-cats-grid a img,
  .ra-cat-card svg,
  .ra-category-card svg,
  .ra-home-category svg,
  .ra-categories-grid a svg{
    width:46px!important;
    height:46px!important;
  }
}


/* ===== v6.1: fix mobile homepage category section cards ===== */
@media(max-width:900px){

  /* Главный раздел категорий на главной */
  #categories,
  .ra-section#categories,
  section[id="categories"]{
    padding-top:30px!important;
    padding-bottom:30px!important;
  }

  #categories .ra-section-head,
  .ra-section#categories .ra-section-head,
  section[id="categories"] .ra-section-head{
    margin:0 0 18px!important;
  }

  #categories .ra-section-head h2,
  .ra-section#categories .ra-section-head h2,
  section[id="categories"] .ra-section-head h2{
    font-size:32px!important;
    line-height:.98!important;
    letter-spacing:-.04em!important;
    margin:0!important;
  }

  /* Ловим все варианты сетки категорий, которые могли быть в теме */
  #categories .ra-grid,
  #categories .ra-categories-grid,
  #categories .ra-category-grid,
  #categories .ra-cats-grid,
  #categories .ra-home-cats,
  #categories .ra-category-list,
  .ra-categories-grid,
  .ra-category-grid,
  .ra-cats-grid,
  .ra-home-cats{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:12px!important;
    margin:0!important;
  }

  /* Ловим сами карточки/ссылки категорий */
  #categories .ra-card,
  #categories .ra-cat-card,
  #categories .ra-category-card,
  #categories .ra-home-category,
  #categories .ra-category-item,
  #categories a,
  .ra-categories-grid > *,
  .ra-category-grid > *,
  .ra-cats-grid > *,
  .ra-home-cats > *{
    min-height:108px!important;
    height:auto!important;
    padding:18px!important;
    border:1px solid #e4e4e4!important;
    background:#fff!important;
    display:grid!important;
    grid-template-columns:58px minmax(0,1fr)!important;
    align-items:center!important;
    gap:16px!important;
    text-align:left!important;
    box-shadow:0 10px 28px rgba(0,0,0,.035)!important;
    text-decoration:none!important;
    margin:0!important;
  }

  #categories .ra-card:hover,
  #categories .ra-cat-card:hover,
  #categories .ra-category-card:hover,
  #categories .ra-home-category:hover,
  #categories .ra-category-item:hover,
  #categories a:hover{
    border-color:var(--ra-red)!important;
  }

  /* Иконки */
  #categories img,
  #categories svg,
  #categories .ra-icon,
  #categories .ra-cat-icon,
  #categories .ra-category-icon,
  .ra-categories-grid img,
  .ra-categories-grid svg,
  .ra-category-grid img,
  .ra-category-grid svg,
  .ra-cats-grid img,
  .ra-cats-grid svg{
    width:52px!important;
    height:52px!important;
    max-width:52px!important;
    max-height:52px!important;
    object-fit:contain!important;
    margin:0!important;
    display:block!important;
  }

  /* Если иконка лежит в отдельном контейнере */
  #categories .ra-icon,
  #categories .ra-cat-icon,
  #categories .ra-category-icon{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    color:var(--ra-red)!important;
  }

  /* Текст внутри карточки */
  #categories h3,
  #categories .ra-title,
  #categories strong,
  .ra-categories-grid h3,
  .ra-category-grid h3,
  .ra-cats-grid h3{
    font-size:18px!important;
    line-height:1.05!important;
    margin:0 0 6px!important;
    text-align:left!important;
    color:#111!important;
    letter-spacing:-.02em!important;
  }

  #categories p,
  #categories .ra-text,
  #categories small,
  .ra-categories-grid p,
  .ra-category-grid p,
  .ra-cats-grid p{
    font-size:13px!important;
    line-height:1.25!important;
    color:#666!important;
    margin:0!important;
    text-align:left!important;
  }

  /* Убираем огромные вертикальные промежутки от старой мобильной версии */
  #categories .ra-card + .ra-card,
  #categories .ra-cat-card + .ra-cat-card,
  #categories .ra-category-card + .ra-category-card,
  #categories .ra-home-category + .ra-home-category,
  #categories .ra-category-item + .ra-category-item{
    margin-top:0!important;
  }

  /* Кнопка все категории компактнее */
  #categories .ra-section-actions,
  #categories .ra-actions{
    margin-top:16px!important;
    text-align:center!important;
  }

  #categories .ra-btn,
  #categories .button{
    min-height:44px!important;
    padding:0 22px!important;
    font-size:12px!important;
  }
}

@media(max-width:390px){
  #categories .ra-card,
  #categories .ra-cat-card,
  #categories .ra-category-card,
  #categories .ra-home-category,
  #categories .ra-category-item,
  #categories a,
  .ra-categories-grid > *,
  .ra-category-grid > *,
  .ra-cats-grid > *,
  .ra-home-cats > *{
    grid-template-columns:50px minmax(0,1fr)!important;
    gap:14px!important;
    padding:16px!important;
    min-height:98px!important;
  }

  #categories img,
  #categories svg,
  #categories .ra-icon,
  #categories .ra-cat-icon,
  #categories .ra-category-icon{
    width:46px!important;
    height:46px!important;
    max-width:46px!important;
    max-height:46px!important;
  }
}


/* ===== v6.2: category archive width = shop catalog width ===== */

/* Все архивы WooCommerce держим в одном нормальном контейнере */
body.post-type-archive-product main.ra-section,
body.tax-product_cat main.ra-section,
body.woocommerce-shop main.ra-section,
body.tax-product_cat .ra-section,
body.post-type-archive-product .ra-section,
body.woocommerce-shop .ra-section{
  max-width:1280px!important;
  margin-left:auto!important;
  margin-right:auto!important;
  padding-left:24px!important;
  padding-right:24px!important;
  box-sizing:border-box!important;
}

/* Внутренние контейнеры не должны растягиваться на весь экран */
body.tax-product_cat .ra-container,
body.post-type-archive-product .ra-container,
body.woocommerce-shop .ra-container,
body.tax-product_cat .ra-wrap,
body.post-type-archive-product .ra-wrap,
body.woocommerce-shop .ra-wrap,
body.tax-product_cat .ra-shop-products,
body.post-type-archive-product .ra-shop-products,
body.woocommerce-shop .ra-shop-products{
  max-width:100%!important;
  width:100%!important;
  margin-left:auto!important;
  margin-right:auto!important;
  box-sizing:border-box!important;
}

/* Заголовок и категории внутри общей ширины */
body.tax-product_cat .ra-section-head,
body.post-type-archive-product .ra-section-head,
body.woocommerce-shop .ra-section-head,
body.tax-product_cat .ra-catalog-cats,
body.post-type-archive-product .ra-catalog-cats,
body.woocommerce-shop .ra-catalog-cats{
  max-width:100%!important;
  margin-left:0!important;
  margin-right:0!important;
}

/* Верхняя строка: счетчик слева, сортировка справа — без разъезда */
body.tax-product_cat .woocommerce-result-count,
body.post-type-archive-product .woocommerce-result-count,
body.woocommerce-shop .woocommerce-result-count{
  float:none!important;
  display:inline-block!important;
  width:auto!important;
  margin:0 24px 24px 0!important;
}

body.tax-product_cat .woocommerce-ordering,
body.post-type-archive-product .woocommerce-ordering,
body.woocommerce-shop .woocommerce-ordering{
  float:right!important;
  width:auto!important;
  margin:0 0 24px!important;
}

/* Товары на ПК строго как каталог: 4 в ряд */
body.tax-product_cat .woocommerce ul.products,
body.post-type-archive-product .woocommerce ul.products,
body.woocommerce-shop .woocommerce ul.products,
body.tax-product_cat ul.products,
body.post-type-archive-product ul.products,
body.woocommerce-shop ul.products{
  display:grid!important;
  grid-template-columns:repeat(4, minmax(0, 1fr))!important;
  gap:22px!important;
  width:100%!important;
  max-width:100%!important;
  margin:0!important;
  padding:0!important;
  clear:both!important;
}

body.tax-product_cat .woocommerce ul.products li.product,
body.post-type-archive-product .woocommerce ul.products li.product,
body.woocommerce-shop .woocommerce ul.products li.product,
body.tax-product_cat ul.products li.product,
body.post-type-archive-product ul.products li.product,
body.woocommerce-shop ul.products li.product{
  width:auto!important;
  max-width:none!important;
  min-width:0!important;
  margin:0!important;
  float:none!important;
  box-sizing:border-box!important;
}

/* Фото товаров одинаковые квадратные и не огромные */
body.tax-product_cat ul.products li.product a img,
body.post-type-archive-product ul.products li.product a img,
body.woocommerce-shop ul.products li.product a img{
  width:100%!important;
  aspect-ratio:1/1!important;
  height:auto!important;
  object-fit:contain!important;
  object-position:center!important;
  background:#fff!important;
  padding:18px!important;
  box-sizing:border-box!important;
}

/* Категории-чипы не на всю ширину экрана */
body.tax-product_cat .ra-catalog-cats-list,
body.post-type-archive-product .ra-catalog-cats-list,
body.woocommerce-shop .ra-catalog-cats-list{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:8px!important;
  max-width:980px!important;
}

/* Планшеты */
@media(max-width:1100px){
  body.tax-product_cat .woocommerce ul.products,
  body.post-type-archive-product .woocommerce ul.products,
  body.woocommerce-shop .woocommerce ul.products,
  body.tax-product_cat ul.products,
  body.post-type-archive-product ul.products,
  body.woocommerce-shop ul.products{
    grid-template-columns:repeat(3, minmax(0, 1fr))!important;
  }
}

/* Мобильная версия: 2 в ряд, но без пустоты */
@media(max-width:700px){
  body.post-type-archive-product main.ra-section,
  body.tax-product_cat main.ra-section,
  body.woocommerce-shop main.ra-section,
  body.tax-product_cat .ra-section,
  body.post-type-archive-product .ra-section,
  body.woocommerce-shop .ra-section{
    max-width:100%!important;
    padding-left:14px!important;
    padding-right:14px!important;
    padding-top:18px!important;
  }

  body.tax-product_cat .woocommerce ul.products,
  body.post-type-archive-product .woocommerce ul.products,
  body.woocommerce-shop .woocommerce ul.products,
  body.tax-product_cat ul.products,
  body.post-type-archive-product ul.products,
  body.woocommerce-shop ul.products{
    grid-template-columns:repeat(2, minmax(0, 1fr))!important;
    gap:12px!important;
  }

  body.tax-product_cat .woocommerce-ordering,
  body.post-type-archive-product .woocommerce-ordering,
  body.woocommerce-shop .woocommerce-ordering{
    float:none!important;
    width:100%!important;
    margin:0 0 16px!important;
  }

  body.tax-product_cat .woocommerce-result-count,
  body.post-type-archive-product .woocommerce-result-count,
  body.woocommerce-shop .woocommerce-result-count{
    display:block!important;
    margin:0 0 12px!important;
  }

  body.tax-product_cat .ra-catalog-cats-list,
  body.post-type-archive-product .ra-catalog-cats-list,
  body.woocommerce-shop .ra-catalog-cats-list{
    flex-wrap:nowrap!important;
    overflow-x:auto!important;
    max-width:100%!important;
    padding-bottom:8px!important;
  }

  body.tax-product_cat ul.products li.product a img,
  body.post-type-archive-product ul.products li.product a img,
  body.woocommerce-shop ul.products li.product a img{
    padding:10px!important;
  }
}

/* Очень узкие экраны */
@media(max-width:380px){
  body.tax-product_cat .woocommerce ul.products,
  body.post-type-archive-product .woocommerce ul.products,
  body.woocommerce-shop .woocommerce ul.products,
  body.tax-product_cat ul.products,
  body.post-type-archive-product ul.products,
  body.woocommerce-shop ul.products{
    gap:10px!important;
  }
}


/* ===== v6.3: header width like homepage + better mobile category cards ===== */

/* Шапка/меню не растягиваются на страницах магазина и категорий */
body.woocommerce-shop .ra-header,
body.post-type-archive-product .ra-header,
body.tax-product_cat .ra-header,
body.single-product .ra-header,
body.woocommerce-cart .ra-header,
body.woocommerce-checkout .ra-header,
body.woocommerce-account .ra-header,
body.woocommerce-shop .ra-nav,
body.post-type-archive-product .ra-nav,
body.tax-product_cat .ra-nav,
body.single-product .ra-nav,
body.woocommerce-cart .ra-nav,
body.woocommerce-checkout .ra-nav,
body.woocommerce-account .ra-nav{
  width:100%!important;
}

body.woocommerce-shop .ra-header .ra-container,
body.post-type-archive-product .ra-header .ra-container,
body.tax-product_cat .ra-header .ra-container,
body.single-product .ra-header .ra-container,
body.woocommerce-cart .ra-header .ra-container,
body.woocommerce-checkout .ra-header .ra-container,
body.woocommerce-account .ra-header .ra-container,
body.woocommerce-shop .ra-nav .ra-container,
body.post-type-archive-product .ra-nav .ra-container,
body.tax-product_cat .ra-nav .ra-container,
body.single-product .ra-nav .ra-container,
body.woocommerce-cart .ra-nav .ra-container,
body.woocommerce-checkout .ra-nav .ra-container,
body.woocommerce-account .ra-nav .ra-container,
body.woocommerce-shop .ra-header-inner,
body.post-type-archive-product .ra-header-inner,
body.tax-product_cat .ra-header-inner,
body.single-product .ra-header-inner,
body.woocommerce-cart .ra-header-inner,
body.woocommerce-checkout .ra-header-inner,
body.woocommerce-account .ra-header-inner,
body.woocommerce-shop .ra-nav-inner,
body.post-type-archive-product .ra-nav-inner,
body.tax-product_cat .ra-nav-inner,
body.single-product .ra-nav-inner,
body.woocommerce-cart .ra-nav-inner,
body.woocommerce-checkout .ra-nav-inner,
body.woocommerce-account .ra-nav-inner{
  max-width:1280px!important;
  width:100%!important;
  margin-left:auto!important;
  margin-right:auto!important;
  padding-left:24px!important;
  padding-right:24px!important;
  box-sizing:border-box!important;
}

/* Если меню было flex-start от края, центрируем контейнер, но сами пункты оставляем слева */
body.woocommerce-shop .ra-menu,
body.post-type-archive-product .ra-menu,
body.tax-product_cat .ra-menu,
body.single-product .ra-menu,
body.woocommerce-cart .ra-menu,
body.woocommerce-checkout .ra-menu,
body.woocommerce-account .ra-menu,
body.woocommerce-shop .ra-nav-menu,
body.post-type-archive-product .ra-nav-menu,
body.tax-product_cat .ra-nav-menu,
body.single-product .ra-nav-menu,
body.woocommerce-cart .ra-nav-menu,
body.woocommerce-checkout .ra-nav-menu,
body.woocommerce-account .ra-nav-menu{
  max-width:1280px!important;
  margin-left:auto!important;
  margin-right:auto!important;
}

/* Десктоп: логотип, поиск и корзина держатся ровно */
@media(min-width:901px){
  body.woocommerce-shop .ra-header-inner,
  body.post-type-archive-product .ra-header-inner,
  body.tax-product_cat .ra-header-inner,
  body.single-product .ra-header-inner{
    display:grid!important;
    grid-template-columns:180px minmax(420px,1fr) auto!important;
    align-items:center!important;
    gap:24px!important;
  }

  body.woocommerce-shop .ra-logo img,
  body.post-type-archive-product .ra-logo img,
  body.tax-product_cat .ra-logo img,
  body.single-product .ra-logo img{
    max-width:170px!important;
    height:auto!important;
  }

  body.woocommerce-shop .ra-header-search,
  body.post-type-archive-product .ra-header-search,
  body.tax-product_cat .ra-header-search,
  body.single-product .ra-header-search{
    max-width:760px!important;
    width:100%!important;
  }
}

/* Мобильная шапка: как на главной, без лишней ширины */
@media(max-width:900px){
  body.woocommerce-shop .ra-header .ra-container,
  body.post-type-archive-product .ra-header .ra-container,
  body.tax-product_cat .ra-header .ra-container,
  body.single-product .ra-header .ra-container,
  body.woocommerce-cart .ra-header .ra-container,
  body.woocommerce-checkout .ra-header .ra-container,
  body.woocommerce-account .ra-header .ra-container,
  body.woocommerce-shop .ra-header-inner,
  body.post-type-archive-product .ra-header-inner,
  body.tax-product_cat .ra-header-inner,
  body.single-product .ra-header-inner,
  body.woocommerce-cart .ra-header-inner,
  body.woocommerce-checkout .ra-header-inner,
  body.woocommerce-account .ra-header-inner{
    max-width:100%!important;
    padding-left:18px!important;
    padding-right:18px!important;
  }

  body.woocommerce-shop .ra-header-inner,
  body.post-type-archive-product .ra-header-inner,
  body.tax-product_cat .ra-header-inner,
  body.single-product .ra-header-inner{
    display:flex!important;
    justify-content:space-between!important;
    align-items:center!important;
    min-height:78px!important;
  }

  body.woocommerce-shop .ra-logo img,
  body.post-type-archive-product .ra-logo img,
  body.tax-product_cat .ra-logo img,
  body.single-product .ra-logo img{
    max-width:150px!important;
    height:auto!important;
  }

  body.woocommerce-shop .ra-burger,
  body.post-type-archive-product .ra-burger,
  body.tax-product_cat .ra-burger,
  body.single-product .ra-burger,
  body.woocommerce-shop .ra-menu-toggle,
  body.post-type-archive-product .ra-menu-toggle,
  body.tax-product_cat .ra-menu-toggle,
  body.single-product .ra-menu-toggle{
    margin-left:auto!important;
    position:relative!important;
    right:auto!important;
    top:auto!important;
  }

  /* Мобильные карточки категорий: центр блока, иконка крупнее, текст слева */
  #categories .ra-card,
  #categories .ra-cat-card,
  #categories .ra-category-card,
  #categories .ra-home-category,
  #categories .ra-category-item,
  #categories a,
  .ra-categories-grid > *,
  .ra-category-grid > *,
  .ra-cats-grid > *,
  .ra-home-cats > *{
    width:100%!important;
    max-width:360px!important;
    margin-left:auto!important;
    margin-right:auto!important;
    min-height:118px!important;
    padding:20px 18px!important;
    grid-template-columns:72px minmax(0,1fr)!important;
    gap:18px!important;
    align-items:center!important;
    justify-content:center!important;
  }

  #categories img,
  #categories svg,
  #categories .ra-icon,
  #categories .ra-cat-icon,
  #categories .ra-category-icon,
  .ra-categories-grid img,
  .ra-categories-grid svg,
  .ra-category-grid img,
  .ra-category-grid svg,
  .ra-cats-grid img,
  .ra-cats-grid svg{
    width:66px!important;
    height:66px!important;
    max-width:66px!important;
    max-height:66px!important;
  }

  #categories .ra-icon,
  #categories .ra-cat-icon,
  #categories .ra-category-icon{
    width:72px!important;
    height:72px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
  }

  #categories h3,
  #categories .ra-title,
  #categories strong,
  .ra-categories-grid h3,
  .ra-category-grid h3,
  .ra-cats-grid h3{
    text-align:left!important;
    font-size:18px!important;
    line-height:1.08!important;
    margin:0 0 7px!important;
  }

  #categories p,
  #categories .ra-text,
  #categories small,
  .ra-categories-grid p,
  .ra-category-grid p,
  .ra-cats-grid p{
    text-align:left!important;
    font-size:13px!important;
    line-height:1.25!important;
  }
}

@media(max-width:390px){
  #categories .ra-card,
  #categories .ra-cat-card,
  #categories .ra-category-card,
  #categories .ra-home-category,
  #categories .ra-category-item,
  #categories a,
  .ra-categories-grid > *,
  .ra-category-grid > *,
  .ra-cats-grid > *,
  .ra-home-cats > *{
    max-width:330px!important;
    grid-template-columns:62px minmax(0,1fr)!important;
    gap:15px!important;
    padding:18px 16px!important;
  }

  #categories img,
  #categories svg,
  #categories .ra-icon,
  #categories .ra-cat-icon,
  #categories .ra-category-icon{
    width:58px!important;
    height:58px!important;
    max-width:58px!important;
    max-height:58px!important;
  }
}


/* ===== v6.4: mobile categories - centered premium layout ===== */
@media(max-width:900px){

  #categories,
  .ra-section#categories,
  section[id="categories"]{
    padding:34px 18px 38px!important;
  }

  #categories .ra-section-head,
  .ra-section#categories .ra-section-head,
  section[id="categories"] .ra-section-head{
    max-width:340px!important;
    margin:0 auto 24px!important;
    text-align:center!important;
  }

  #categories .ra-section-head span,
  .ra-section#categories .ra-section-head span,
  section[id="categories"] .ra-section-head span{
    display:block!important;
    text-align:center!important;
    margin:0 0 10px!important;
    color:var(--ra-red)!important;
    font-size:12px!important;
    font-weight:950!important;
    letter-spacing:.14em!important;
    text-transform:uppercase!important;
  }

  #categories .ra-section-head h2,
  .ra-section#categories .ra-section-head h2,
  section[id="categories"] .ra-section-head h2{
    text-align:center!important;
    font-size:34px!important;
    line-height:1!important;
    letter-spacing:-.045em!important;
    margin:0 auto 12px!important;
  }

  #categories .ra-section-head p,
  .ra-section#categories .ra-section-head p,
  section[id="categories"] .ra-section-head p{
    display:block!important;
    text-align:center!important;
    max-width:310px!important;
    margin:0 auto!important;
    font-size:14px!important;
    line-height:1.45!important;
    color:#666!important;
  }

  #categories .ra-grid,
  #categories .ra-categories-grid,
  #categories .ra-category-grid,
  #categories .ra-cats-grid,
  #categories .ra-home-cats,
  #categories .ra-category-list,
  .ra-categories-grid,
  .ra-category-grid,
  .ra-cats-grid,
  .ra-home-cats{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:14px!important;
    max-width:340px!important;
    margin:0 auto!important;
  }

  #categories .ra-card,
  #categories .ra-cat-card,
  #categories .ra-category-card,
  #categories .ra-home-category,
  #categories .ra-category-item,
  #categories a,
  .ra-categories-grid > *,
  .ra-category-grid > *,
  .ra-cats-grid > *,
  .ra-home-cats > *{
    width:100%!important;
    max-width:340px!important;
    min-height:178px!important;
    padding:24px 18px 22px!important;
    border:1px solid #e5e5e5!important;
    background:#fff!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:0!important;
    text-align:center!important;
    box-shadow:0 12px 30px rgba(0,0,0,.035)!important;
    margin:0 auto!important;
    box-sizing:border-box!important;
  }

  #categories img,
  #categories svg,
  #categories .ra-icon,
  #categories .ra-cat-icon,
  #categories .ra-category-icon,
  .ra-categories-grid img,
  .ra-categories-grid svg,
  .ra-category-grid img,
  .ra-category-grid svg,
  .ra-cats-grid img,
  .ra-cats-grid svg{
    width:76px!important;
    height:76px!important;
    max-width:76px!important;
    max-height:76px!important;
    object-fit:contain!important;
    display:block!important;
    margin:0 auto 14px!important;
    color:var(--ra-red)!important;
  }

  #categories .ra-icon,
  #categories .ra-cat-icon,
  #categories .ra-category-icon{
    width:80px!important;
    height:80px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    margin:0 auto 14px!important;
  }

  #categories h3,
  #categories .ra-title,
  #categories strong,
  .ra-categories-grid h3,
  .ra-category-grid h3,
  .ra-cats-grid h3{
    width:100%!important;
    text-align:center!important;
    font-size:19px!important;
    line-height:1.08!important;
    margin:0 0 8px!important;
    color:#111!important;
    letter-spacing:-.025em!important;
  }

  #categories p,
  #categories .ra-text,
  #categories small,
  .ra-categories-grid p,
  .ra-category-grid p,
  .ra-cats-grid p{
    width:100%!important;
    max-width:240px!important;
    text-align:center!important;
    font-size:14px!important;
    line-height:1.28!important;
    color:#666!important;
    margin:0 auto!important;
    font-weight:650!important;
  }

  #categories .ra-section-actions,
  #categories .ra-actions{
    max-width:340px!important;
    margin:18px auto 0!important;
    text-align:center!important;
  }
}

@media(max-width:390px){
  #categories .ra-section-head,
  #categories .ra-grid,
  #categories .ra-categories-grid,
  #categories .ra-category-grid,
  #categories .ra-cats-grid,
  #categories .ra-home-cats,
  #categories .ra-category-list,
  #categories .ra-card,
  #categories .ra-cat-card,
  #categories .ra-category-card,
  #categories .ra-home-category,
  #categories .ra-category-item,
  #categories a{
    max-width:315px!important;
  }

  #categories .ra-card,
  #categories .ra-cat-card,
  #categories .ra-category-card,
  #categories .ra-home-category,
  #categories .ra-category-item,
  #categories a{
    min-height:170px!important;
    padding:22px 16px 20px!important;
  }

  #categories img,
  #categories svg,
  #categories .ra-icon,
  #categories .ra-cat-icon,
  #categories .ra-category-icon{
    width:68px!important;
    height:68px!important;
    max-width:68px!important;
    max-height:68px!important;
  }

  #categories .ra-section-head h2{
    font-size:31px!important;
  }
}


/* ===== v6.5: benefits moved above categories ===== */
.ra-advantages,
.ra-benefits-section,
#advantages,
#benefits{
  margin-top:0!important;
}

.ra-advantages + #categories,
.ra-benefits-section + #categories,
#advantages + #categories,
#benefits + #categories{
  margin-top:0!important;
}

@media(min-width:901px){
  .ra-advantages,
  .ra-benefits-section,
  #advantages,
  #benefits{
    padding-top:46px!important;
    padding-bottom:46px!important;
  }

  #categories{
    padding-top:54px!important;
  }
}

@media(max-width:900px){
  .ra-advantages,
  .ra-benefits-section,
  #advantages,
  #benefits{
    padding-top:28px!important;
    padding-bottom:28px!important;
  }

  #categories{
    padding-top:34px!important;
  }
}


/* ===== v6.6: actual homepage order fixed in front-page.php ===== */
body.home #categories{
  scroll-margin-top:120px;
}


/* ===== v6.7: editable background and overlay for help block ===== */
.ra-help-dark{
  position:relative!important;
  overflow:hidden!important;
  background:var(--ra-find-overlay, #050505)!important;
  isolation:isolate!important;
}

.ra-help-dark::before{
  content:""!important;
  position:absolute!important;
  inset:0!important;
  background-image:var(--ra-find-bg)!important;
  background-size:cover!important;
  background-position:center!important;
  background-repeat:no-repeat!important;
  opacity:1!important;
  z-index:-2!important;
}

.ra-help-dark::after{
  content:""!important;
  position:absolute!important;
  inset:0!important;
  background:var(--ra-find-overlay, #050505)!important;
  opacity:var(--ra-find-opacity, .72)!important;
  z-index:-1!important;
}

.ra-help-dark > *{
  position:relative!important;
  z-index:1!important;
}


/* ===== v6.8: footer contacts title and alignment ===== */
.ra-footer{
  overflow:hidden!important;
}

.ra-footer .ra-container,
.ra-footer-inner{
  max-width:1280px!important;
  margin-left:auto!important;
  margin-right:auto!important;
}

.ra-footer-brand,
.ra-footer-left{
  padding-left:22px!important;
}

.ra-footer-brand::before,
.ra-footer-left::before{
  content:"Контакты";
  display:block;
  margin:0 0 18px;
  color:#fff;
  font-size:18px;
  line-height:1.1;
  font-weight:950;
  letter-spacing:-.02em;
}

.ra-footer-brand img,
.ra-footer-left img,
.ra-footer-logo{
  margin-bottom:18px!important;
}

.ra-footer-brand p,
.ra-footer-left p{
  max-width:420px!important;
}

@media(max-width:900px){
  .ra-footer-brand,
  .ra-footer-left{
    padding-left:0!important;
  }

  .ra-footer-brand::before,
  .ra-footer-left::before{
    text-align:left!important;
    font-size:17px!important;
    margin-bottom:16px!important;
  }
}


/* ===== v6.9: premium polish: search, cards, placeholders, footer, product page ===== */

/* Общая плавность */
.ra-header,
.ra-nav,
.ra-product-card,
.woocommerce ul.products li.product,
.ra-search-results,
.ra-sticky-social a,
.ra-btn,
.button,
button{
  transition:all .22s ease!important;
}

/* Компактная липкая шапка при скролле */
body.ra-scrolled .ra-header{
  box-shadow:0 8px 30px rgba(0,0,0,.08)!important;
}

body.ra-scrolled .ra-logo img{
  transform:scale(.92)!important;
}

/* Живой поиск */
.ra-search-wrap,
.ra-header-search,
.ra-search{
  position:relative!important;
  z-index:80!important;
}

.ra-search-results{
  position:absolute!important;
  top:calc(100% + 8px)!important;
  left:0!important;
  right:0!important;
  background:#fff!important;
  border:1px solid #e7e7e7!important;
  box-shadow:0 22px 55px rgba(0,0,0,.16)!important;
  z-index:9999!important;
  max-height:460px!important;
  overflow:auto!important;
  display:none;
}

.ra-search-results.is-open{
  display:block!important;
}

.ra-search-result-item{
  display:grid!important;
  grid-template-columns:58px minmax(0,1fr) auto!important;
  gap:14px!important;
  align-items:center!important;
  padding:14px 16px!important;
  border-bottom:1px solid #eee!important;
  color:#111!important;
  text-decoration:none!important;
}

.ra-search-result-item:last-child{
  border-bottom:0!important;
}

.ra-search-result-item:hover{
  background:#fafafa!important;
}

.ra-search-result-item img{
  width:58px!important;
  height:58px!important;
  object-fit:contain!important;
  background:#fff!important;
}

.ra-search-result-title{
  font-size:14px!important;
  line-height:1.18!important;
  font-weight:950!important;
  color:#111!important;
}

.ra-search-result-meta{
  margin-top:4px!important;
  font-size:11px!important;
  line-height:1.1!important;
  font-weight:900!important;
  color:var(--ra-red)!important;
  text-transform:uppercase!important;
}

.ra-search-result-price{
  font-size:15px!important;
  font-weight:950!important;
  white-space:nowrap!important;
  color:#111!important;
}

.ra-search-result-more{
  display:block!important;
  padding:15px 16px!important;
  background:#080808!important;
  color:#fff!important;
  text-align:center!important;
  font-size:12px!important;
  font-weight:950!important;
  text-transform:uppercase!important;
  letter-spacing:.04em!important;
  text-decoration:none!important;
}

.ra-search-result-more:hover{
  background:var(--ra-red)!important;
}

.ra-search-highlight,
.ra-hl{
  color:var(--ra-red)!important;
}

/* Карточки товаров ровнее и дороже */
.woocommerce ul.products li.product,
ul.products li.product,
.ra-product-card{
  position:relative!important;
  background:#fff!important;
  border:1px solid #e7e7e7!important;
  overflow:hidden!important;
  min-height:435px!important;
  display:flex!important;
  flex-direction:column!important;
}

.woocommerce ul.products li.product:hover,
ul.products li.product:hover,
.ra-product-card:hover{
  border-color:#d7d7d7!important;
  box-shadow:0 18px 45px rgba(0,0,0,.08)!important;
  transform:translateY(-2px)!important;
}

.woocommerce ul.products li.product a.woocommerce-LoopProduct-link,
ul.products li.product a.woocommerce-LoopProduct-link{
  display:flex!important;
  flex-direction:column!important;
  flex:1 1 auto!important;
  color:#111!important;
  text-decoration:none!important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
ul.products li.product .woocommerce-loop-product__title{
  min-height:44px!important;
  display:block!important;
  font-size:15px!important;
  line-height:1.16!important;
  font-weight:950!important;
  letter-spacing:-.02em!important;
  padding-left:16px!important;
  padding-right:16px!important;
  margin:0 0 14px!important;
}

.woocommerce ul.products li.product .price,
ul.products li.product .price{
  display:block!important;
  padding:0 16px!important;
  margin-top:auto!important;
  margin-bottom:14px!important;
  color:#111!important;
  font-size:25px!important;
  line-height:1!important;
  font-weight:950!important;
  letter-spacing:-.04em!important;
}

.woocommerce ul.products li.product .price::after,
ul.products li.product .price::after{
  content:"";
  display:block;
  width:42px;
  height:3px;
  margin-top:8px;
  background:var(--ra-red);
}

.woocommerce ul.products li.product .button,
ul.products li.product .button,
.woocommerce a.button.add_to_cart_button{
  width:calc(100% - 32px)!important;
  margin:0 16px 16px!important;
  min-height:45px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  background:var(--ra-red)!important;
  color:#fff!important;
  border:0!important;
  border-radius:0!important;
  font-size:12px!important;
  font-weight:950!important;
  text-transform:uppercase!important;
  letter-spacing:.03em!important;
  text-decoration:none!important;
}

.woocommerce ul.products li.product .button:hover,
ul.products li.product .button:hover,
.woocommerce a.button.add_to_cart_button:hover{
  background:#090909!important;
  color:#fff!important;
}

/* Убрать любые старые иконки с кнопок */
.woocommerce ul.products li.product .button::before,
ul.products li.product .button::before,
.woocommerce a.button.add_to_cart_button::before{
  content:none!important;
  display:none!important;
}

/* Квадратные фото в карточках */
.woocommerce ul.products li.product img,
ul.products li.product img{
  width:100%!important;
  aspect-ratio:1/1!important;
  height:auto!important;
  object-fit:contain!important;
  object-position:center!important;
  padding:22px!important;
  background:#fff!important;
  box-sizing:border-box!important;
}

/* Плейсхолдер без фото в стиле бренда */
.woocommerce ul.products li.product img[src*="placeholder"],
.woocommerce ul.products li.product img.woocommerce-placeholder,
ul.products li.product img[src*="placeholder"],
ul.products li.product img.woocommerce-placeholder{
  background:
    radial-gradient(circle at 50% 44%, rgba(193,15,28,.08), transparent 34%),
    linear-gradient(135deg,#fff 0%,#f7f7f7 100%)!important;
  opacity:.88!important;
  padding:42px!important;
  filter:grayscale(1)!important;
}

/* Страница товара — аккуратнее фото и инфо */
.single-product .product{
  max-width:1280px!important;
  margin-left:auto!important;
  margin-right:auto!important;
  padding-left:24px!important;
  padding-right:24px!important;
  box-sizing:border-box!important;
}

.single-product div.product div.images,
.single-product div.product div.summary{
  margin-top:24px!important;
}

.single-product div.product div.images .woocommerce-product-gallery__wrapper{
  background:#fff!important;
  border:1px solid #e7e7e7!important;
}

.single-product div.product div.images img{
  width:100%!important;
  aspect-ratio:1/1!important;
  object-fit:contain!important;
  background:#fff!important;
  padding:26px!important;
  box-sizing:border-box!important;
}

.single-product .product_title{
  font-size:42px!important;
  line-height:.98!important;
  letter-spacing:-.055em!important;
  margin-bottom:18px!important;
}

.single-product .summary .price{
  font-size:34px!important;
  line-height:1!important;
  font-weight:950!important;
  letter-spacing:-.04em!important;
  color:#111!important;
  margin-bottom:18px!important;
}

.single-product .summary .cart .button,
.single-product .single_add_to_cart_button{
  background:var(--ra-red)!important;
  color:#fff!important;
  border:0!important;
  border-radius:0!important;
  min-height:52px!important;
  font-weight:950!important;
  text-transform:uppercase!important;
  letter-spacing:.04em!important;
}

.ra-one-click,
.single-product .ra-one-click{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  min-height:52px!important;
  margin-top:10px!important;
  background:#070707!important;
  color:#fff!important;
  border:0!important;
  border-radius:0!important;
  font-size:12px!important;
  font-weight:950!important;
  text-transform:uppercase!important;
  letter-spacing:.04em!important;
  text-decoration:none!important;
  cursor:pointer!important;
}

.ra-one-click:hover{
  background:var(--ra-red)!important;
  color:#fff!important;
}

.ra-one-click::before{
  content:none!important;
  display:none!important;
}

/* Похожие товары */
.related.products,
.upsells.products{
  max-width:1280px!important;
  margin:50px auto 0!important;
  padding-left:24px!important;
  padding-right:24px!important;
}

.related.products h2,
.upsells.products h2{
  font-size:34px!important;
  line-height:1!important;
  letter-spacing:-.04em!important;
  margin-bottom:24px!important;
}

/* Футер и липкие контакты */
.ra-sticky-social{
  z-index:9990!important;
}

.ra-sticky-social a{
  box-shadow:0 12px 28px rgba(0,0,0,.16)!important;
}

.ra-sticky-social a:hover{
  transform:translateX(-4px)!important;
  background:var(--ra-red)!important;
}

/* Корзина и оформление заказа — в стиле темы */
.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce,
.woocommerce-order-received .woocommerce{
  max-width:1080px!important;
  margin:0 auto!important;
  padding:30px 24px 60px!important;
}

.woocommerce-cart table.shop_table,
.woocommerce-checkout table.shop_table,
.woocommerce-order table.shop_table{
  border:1px solid #e1e1e1!important;
  border-radius:0!important;
  overflow:hidden!important;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.woocommerce-checkout #place_order,
.woocommerce button.button,
.woocommerce input.button{
  background:var(--ra-red)!important;
  color:#fff!important;
  border-radius:0!important;
  border:0!important;
  font-weight:950!important;
  text-transform:uppercase!important;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover,
.woocommerce-checkout #place_order:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover{
  background:#080808!important;
  color:#fff!important;
}

/* Мобилка */
@media(max-width:700px){
  .ra-search-results{
    position:fixed!important;
    top:84px!important;
    left:14px!important;
    right:14px!important;
    max-height:70vh!important;
  }

  .ra-search-result-item{
    grid-template-columns:48px minmax(0,1fr)!important;
  }

  .ra-search-result-price{
    grid-column:2!important;
    font-size:14px!important;
  }

  .woocommerce ul.products li.product,
  ul.products li.product,
  .ra-product-card{
    min-height:330px!important;
  }

  .woocommerce ul.products li.product img,
  ul.products li.product img{
    padding:10px!important;
  }

  .woocommerce ul.products li.product .woocommerce-loop-product__title,
  ul.products li.product .woocommerce-loop-product__title{
    font-size:13px!important;
    min-height:48px!important;
    padding-left:10px!important;
    padding-right:10px!important;
  }

  .woocommerce ul.products li.product .price,
  ul.products li.product .price{
    font-size:22px!important;
    padding-left:10px!important;
    padding-right:10px!important;
  }

  .woocommerce ul.products li.product .button,
  ul.products li.product .button,
  .woocommerce a.button.add_to_cart_button{
    width:calc(100% - 20px)!important;
    margin-left:10px!important;
    margin-right:10px!important;
    min-height:42px!important;
    font-size:11px!important;
  }

  .single-product .product{
    padding-left:16px!important;
    padding-right:16px!important;
  }

  .single-product .product_title{
    font-size:30px!important;
    line-height:1.02!important;
  }

  .single-product div.product div.images img{
    padding:14px!important;
  }
}


/* ===== v7.0: remove duplicate small one-click button ===== */
/* Скрываем старую маленькую кнопку "Купить в 1 клик", оставляем только .ra-one-click */
.single-product .summary .buy-one-click:not(.ra-one-click),
.single-product .summary .one-click:not(.ra-one-click),
.single-product .summary .quick-buy:not(.ra-one-click),
.single-product .summary .button.buy-one-click:not(.ra-one-click),
.single-product .summary a.buy-one-click:not(.ra-one-click),
.single-product .summary button.buy-one-click:not(.ra-one-click),
.single-product .summary a.one-click:not(.ra-one-click),
.single-product .summary button.one-click:not(.ra-one-click),
.single-product .summary [class*="one-click"]:not(.ra-one-click),
.single-product .summary [class*="quick-buy"]:not(.ra-one-click){
  display:none!important;
}

/* Защита: наша кнопка должна быть одна, широкая и без иконок */
.single-product .summary .ra-one-click{
  display:flex!important;
  width:100%!important;
  max-width:none!important;
  min-height:52px!important;
  margin:10px 0 0!important;
  padding:0 24px!important;
  background:#070707!important;
  color:#fff!important;
  border:0!important;
  border-radius:0!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  font-size:12px!important;
  line-height:1!important;
  font-weight:950!important;
  text-transform:uppercase!important;
  letter-spacing:.04em!important;
}

.single-product .summary .ra-one-click::before,
.single-product .summary .ra-one-click::after{
  content:none!important;
  display:none!important;
}


/* ===== v7.1: branded product placeholders everywhere ===== */
img.red-axis-placeholder,
img.woocommerce-placeholder.red-axis-placeholder,
.woocommerce ul.products li.product img.red-axis-placeholder,
ul.products li.product img.red-axis-placeholder{
  object-fit:contain!important;
  object-position:center!important;
  background:#f7f7f7!important;
  filter:none!important;
  opacity:1!important;
}

.woocommerce ul.products li.product img.red-axis-placeholder,
ul.products li.product img.red-axis-placeholder{
  padding:0!important;
}

.single-product div.product div.images img.red-axis-placeholder{
  padding:0!important;
  background:#f7f7f7!important;
}

.ra-search-result-item img[src*="placeholder"],
.ra-search-result-item img.red-axis-placeholder,
.aws-search-result img[src*="placeholder"],
.dgwt-wcas-suggestion img[src*="placeholder"]{
  background:#f7f7f7!important;
  padding:0!important;
  border:1px solid #eee!important;
  object-fit:contain!important;
}

/* защита от стандартной серой Woo иконки */
.woocommerce img[src*="woocommerce-placeholder"],
img[src*="placeholder.png"]{
  content:url("assets/img/product-placeholder.svg")!important;
}


/* ===== v7.2: hard remove old small one-click duplicate ===== */
/* Старый плагин/код выводит маленькую кнопку сразу после корзины. Скрываем её, оставляя только большую .ra-one-click */
.single-product .summary form.cart + a:not(.ra-one-click),
.single-product .summary form.cart + button:not(.ra-one-click),
.single-product .summary form.cart + div:not(.ra-one-click),
.single-product .summary form.cart + p:not(.ra-one-click),
.single-product .summary form.cart + span:not(.ra-one-click){
  display:none!important;
}

/* Если старая кнопка оказалась не сразу после формы, скрываем все компактные элементы с текстом one-click через класс/атрибут */
.single-product .summary [class*="click"]:not(.ra-one-click):not(.single_add_to_cart_button),
.single-product .summary [id*="click"]:not(.ra-one-click),
.single-product .summary [class*="quick"]:not(.ra-one-click),
.single-product .summary [id*="quick"]:not(.ra-one-click),
.single-product .summary [class*="kupit"]:not(.ra-one-click),
.single-product .summary [id*="kupit"]:not(.ra-one-click){
  display:none!important;
}

/* Наша кнопка всегда видна */
.single-product .summary .ra-one-click{
  display:flex!important;
  visibility:visible!important;
  opacity:1!important;
}


/* ===== v7.3: footer typography and right contact alignment ===== */
.ra-footer{
  font-family:var(--ra-font), Arial, sans-serif!important;
}

.ra-footer .ra-container,
.ra-footer-inner{
  max-width:1280px!important;
  margin-left:auto!important;
  margin-right:auto!important;
  display:grid!important;
  grid-template-columns:minmax(360px, 1fr) minmax(360px, 520px)!important;
  gap:90px!important;
  align-items:start!important;
}

.ra-footer-brand,
.ra-footer-left{
  padding-left:34px!important;
}

.ra-footer-brand p,
.ra-footer-left p{
  font-family:var(--ra-font), Arial, sans-serif!important;
  font-size:16px!important;
  line-height:1.45!important;
  font-weight:650!important;
  letter-spacing:-.015em!important;
  color:#d8d8d8!important;
  max-width:470px!important;
}

.ra-footer-contact,
.ra-footer-right,
.ra-footer-info{
  justify-self:end!important;
  text-align:right!important;
  padding-right:28px!important;
  min-width:380px!important;
}

.ra-footer-contact *,
.ra-footer-right *,
.ra-footer-info *{
  font-family:var(--ra-font), Arial, sans-serif!important;
}

.ra-footer-contact p,
.ra-footer-right p,
.ra-footer-info p,
.ra-footer-contact a,
.ra-footer-right a,
.ra-footer-info a{
  font-size:17px!important;
  line-height:1.35!important;
  font-weight:950!important;
  letter-spacing:-.02em!important;
  color:#fff!important;
  text-align:right!important;
}

.ra-footer-contact .phone,
.ra-footer-right .phone,
.ra-footer-info .phone,
.ra-footer-contact a[href^="tel"],
.ra-footer-right a[href^="tel"],
.ra-footer-info a[href^="tel"]{
  display:block!important;
  margin-bottom:26px!important;
  font-size:18px!important;
  font-weight:950!important;
}

.ra-footer-contact address,
.ra-footer-right address,
.ra-footer-info address{
  font-style:normal!important;
  font-size:17px!important;
  line-height:1.35!important;
  font-weight:950!important;
  color:#fff!important;
  text-align:right!important;
  margin-bottom:26px!important;
}

.ra-footer-contact strong,
.ra-footer-right strong,
.ra-footer-info strong{
  font-weight:950!important;
}

/* Если в футере нет отдельных классов, выравниваем последний блок сетки */
.ra-footer .ra-container > *:last-child,
.ra-footer-inner > *:last-child{
  justify-self:end!important;
  text-align:right!important;
  padding-right:28px!important;
}

.ra-footer .ra-container > *:last-child *,
.ra-footer-inner > *:last-child *{
  text-align:right!important;
  font-family:var(--ra-font), Arial, sans-serif!important;
  font-weight:950!important;
  letter-spacing:-.02em!important;
}

@media(max-width:900px){
  .ra-footer .ra-container,
  .ra-footer-inner{
    display:block!important;
    max-width:100%!important;
  }

  .ra-footer-brand,
  .ra-footer-left{
    padding-left:0!important;
  }

  .ra-footer-contact,
  .ra-footer-right,
  .ra-footer-info,
  .ra-footer .ra-container > *:last-child,
  .ra-footer-inner > *:last-child{
    justify-self:auto!important;
    min-width:0!important;
    padding-right:0!important;
    text-align:left!important;
    margin-top:28px!important;
  }

  .ra-footer-contact *,
  .ra-footer-right *,
  .ra-footer-info *,
  .ra-footer .ra-container > *:last-child *,
  .ra-footer-inner > *:last-child *{
    text-align:left!important;
  }
}


/* ===== v7.4: footer correction — left as before, contacts to right edge ===== */
.ra-footer{
  background:#030303!important;
  font-family:var(--ra-font), Arial, sans-serif!important;
}

.ra-footer .ra-container,
.ra-footer-inner{
  max-width:1280px!important;
  margin:0 auto!important;
  display:grid!important;
  grid-template-columns:420px 1fr!important;
  gap:80px!important;
  align-items:start!important;
}

/* Левый блок — как раньше: логотип + текст слева, без центрирования */
.ra-footer-brand,
.ra-footer-left,
.ra-footer .ra-container > *:first-child,
.ra-footer-inner > *:first-child{
  justify-self:start!important;
  text-align:left!important;
  padding-left:0!important;
  margin-left:0!important;
  max-width:430px!important;
}

.ra-footer-brand *,
.ra-footer-left *,
.ra-footer .ra-container > *:first-child *,
.ra-footer-inner > *:first-child *{
  text-align:left!important;
}

.ra-footer-brand img,
.ra-footer-left img,
.ra-footer .ra-container > *:first-child img,
.ra-footer-inner > *:first-child img{
  display:block!important;
  margin:0 0 26px 0!important;
  max-width:165px!important;
  height:auto!important;
}

/* Фраза слева — нормальная, не жирная белая, как было красивее */
.ra-footer-brand p,
.ra-footer-left p,
.ra-footer .ra-container > *:first-child p,
.ra-footer-inner > *:first-child p{
  font-family:var(--ra-font), Arial, sans-serif!important;
  font-size:16px!important;
  line-height:1.45!important;
  font-weight:500!important;
  letter-spacing:-.01em!important;
  color:#bfc1c5!important;
  max-width:430px!important;
  margin:0!important;
}

/* Правый блок — белый текст строго правее и к правому краю */
.ra-footer-contact,
.ra-footer-right,
.ra-footer-info,
.ra-footer .ra-container > *:last-child,
.ra-footer-inner > *:last-child{
  justify-self:end!important;
  align-self:start!important;
  text-align:right!important;
  padding-right:0!important;
  margin-right:0!important;
  min-width:430px!important;
  max-width:520px!important;
}

.ra-footer-contact *,
.ra-footer-right *,
.ra-footer-info *,
.ra-footer .ra-container > *:last-child *,
.ra-footer-inner > *:last-child *{
  text-align:right!important;
  font-family:var(--ra-font), Arial, sans-serif!important;
}

.ra-footer-contact p,
.ra-footer-right p,
.ra-footer-info p,
.ra-footer-contact a,
.ra-footer-right a,
.ra-footer-info a,
.ra-footer .ra-container > *:last-child p,
.ra-footer-inner > *:last-child p,
.ra-footer .ra-container > *:last-child a,
.ra-footer-inner > *:last-child a{
  color:#fff!important;
  font-size:17px!important;
  line-height:1.35!important;
  font-weight:950!important;
  letter-spacing:-.02em!important;
  margin:0 0 26px 0!important;
}

.ra-footer-contact a[href^="tel"],
.ra-footer-right a[href^="tel"],
.ra-footer-info a[href^="tel"],
.ra-footer .ra-container > *:last-child a[href^="tel"],
.ra-footer-inner > *:last-child a[href^="tel"]{
  display:block!important;
  font-size:18px!important;
  font-weight:950!important;
  margin-bottom:28px!important;
}

.ra-footer-contact address,
.ra-footer-right address,
.ra-footer-info address,
.ra-footer .ra-container > *:last-child address,
.ra-footer-inner > *:last-child address{
  display:block!important;
  font-style:normal!important;
  color:#fff!important;
  font-size:17px!important;
  line-height:1.35!important;
  font-weight:950!important;
  letter-spacing:-.02em!important;
  text-align:right!important;
  margin:0 0 28px 0!important;
}

/* Если футерный контактный блок внутри обычного div без классов */
.ra-footer .ra-container > *:last-child br,
.ra-footer-inner > *:last-child br{
  display:block!important;
}

/* Убираем последствия прошлой версии, где левый блок мог центрироваться */
.ra-footer .ra-container > *:first-child strong,
.ra-footer-inner > *:first-child strong{
  font-weight:500!important;
}

/* Мобильная версия — блоки друг под другом, слева */
@media(max-width:900px){
  .ra-footer .ra-container,
  .ra-footer-inner{
    display:block!important;
    max-width:100%!important;
  }

  .ra-footer-brand,
  .ra-footer-left,
  .ra-footer-contact,
  .ra-footer-right,
  .ra-footer-info,
  .ra-footer .ra-container > *:first-child,
  .ra-footer-inner > *:first-child,
  .ra-footer .ra-container > *:last-child,
  .ra-footer-inner > *:last-child{
    text-align:left!important;
    justify-self:auto!important;
    min-width:0!important;
    max-width:none!important;
    padding-right:0!important;
    margin-right:0!important;
  }

  .ra-footer-brand *,
  .ra-footer-left *,
  .ra-footer-contact *,
  .ra-footer-right *,
  .ra-footer-info *,
  .ra-footer .ra-container > *:first-child *,
  .ra-footer-inner > *:first-child *,
  .ra-footer .ra-container > *:last-child *,
  .ra-footer-inner > *:last-child *{
    text-align:left!important;
  }

  .ra-footer-contact,
  .ra-footer-right,
  .ra-footer-info,
  .ra-footer .ra-container > *:last-child,
  .ra-footer-inner > *:last-child{
    margin-top:32px!important;
  }
}


/* ===== v7.5: clean 404 page layout ===== */
.error404 main.ra-section,
body.error404 main.ra-section,
body.error404 .ra-section{
  padding:72px 0 64px!important;
  background:#fff!important;
}

.error404 .ra-container,
body.error404 main .ra-container,
body.error404 .ra-section > .ra-container{
  max-width:1280px!important;
  width:calc(100% - 48px)!important;
  margin-left:auto!important;
  margin-right:auto!important;
  padding-left:0!important;
  padding-right:0!important;
}

body.error404 .ra-section-head,
.error404 .ra-section-head{
  max-width:720px!important;
  margin:0!important;
  text-align:left!important;
}

body.error404 .ra-section-head .ra-eyebrow,
.error404 .ra-section-head .ra-eyebrow{
  display:block!important;
  margin:0 0 18px!important;
  color:#b5121b!important;
  font-size:12px!important;
  font-weight:950!important;
  letter-spacing:.14em!important;
  text-transform:uppercase!important;
}

body.error404 h1,
.error404 h1{
  max-width:780px!important;
  margin:0 0 22px!important;
  font-size:clamp(42px, 5vw, 72px)!important;
  line-height:.95!important;
  letter-spacing:-.055em!important;
  font-weight:950!important;
  color:#0b0b0b!important;
  text-align:left!important;
}

body.error404 .ra-section-head p,
.error404 .ra-section-head p,
body.error404 main p,
.error404 main p{
  max-width:580px!important;
  margin:0 0 26px!important;
  font-size:17px!important;
  line-height:1.55!important;
  font-weight:500!important;
  color:#5d5d5d!important;
  text-align:left!important;
}

body.error404 .ra-actions,
.error404 .ra-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:12px!important;
  flex-wrap:wrap!important;
  margin-top:28px!important;
}

body.error404 .ra-actions a,
.error404 .ra-actions a,
body.error404 main .button,
.error404 main .button{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:52px!important;
  padding:0 24px!important;
  border-radius:0!important;
  font-size:12px!important;
  line-height:1!important;
  font-weight:950!important;
  text-transform:uppercase!important;
  letter-spacing:.04em!important;
  text-decoration:none!important;
}

body.error404 .ra-actions a:first-child,
.error404 .ra-actions a:first-child{
  background:#b5121b!important;
  color:#fff!important;
  border:1px solid #b5121b!important;
}

body.error404 .ra-actions a:last-child,
.error404 .ra-actions a:last-child{
  background:#060606!important;
  color:#fff!important;
  border:1px solid #060606!important;
}

/* 404 футер не должен прилипать визуально к кривому левому краю */
body.error404 .ra-footer{
  margin-top:0!important;
}

/* Если 404 шаблон без .ra-container — всё равно ставим контент в нормальный отступ */
body.error404 main > *:not(.ra-container){
  max-width:1280px!important;
  width:calc(100% - 48px)!important;
  margin-left:auto!important;
  margin-right:auto!important;
}

@media(max-width:720px){
  body.error404 main.ra-section,
  body.error404 .ra-section{
    padding:42px 0 48px!important;
  }

  body.error404 .ra-container,
  body.error404 main .ra-container,
  body.error404 .ra-section > .ra-container,
  body.error404 main > *:not(.ra-container){
    width:calc(100% - 36px)!important;
  }

  body.error404 h1,
  .error404 h1{
    font-size:40px!important;
    line-height:1!important;
  }

  body.error404 .ra-actions,
  .error404 .ra-actions{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:10px!important;
  }

  body.error404 .ra-actions a,
  .error404 .ra-actions a{
    width:100%!important;
    padding:0 12px!important;
  }
}


/* ===== v7.6: editable WP nav menus ===== */
.ra-nav .menu,
.ra-nav ul,
.ra-header-nav .menu,
.ra-header-nav ul{
  list-style:none!important;
  margin:0!important;
  padding:0!important;
  display:flex!important;
  align-items:center!important;
  gap:28px!important;
  flex-wrap:wrap!important;
}

.ra-nav .menu li,
.ra-nav ul li,
.ra-header-nav .menu li,
.ra-header-nav ul li{
  margin:0!important;
  padding:0!important;
}

.ra-nav .menu a,
.ra-nav ul a,
.ra-header-nav .menu a,
.ra-header-nav ul a{
  display:inline-flex!important;
  align-items:center!important;
  min-height:38px!important;
  color:#050505!important;
  text-decoration:none!important;
  font-size:14px!important;
  line-height:1!important;
  font-weight:950!important;
  letter-spacing:-.02em!important;
}

.ra-nav .menu a:hover,
.ra-header-nav .menu a:hover{
  color:#b5121b!important;
}

.ra-mobile-panel .menu,
.ra-mobile-menu .menu,
#ra-mobile-menu .menu{
  list-style:none!important;
  margin:0!important;
  padding:0!important;
  display:grid!important;
  gap:0!important;
}

.ra-mobile-panel .menu a,
.ra-mobile-menu .menu a,
#ra-mobile-menu .menu a{
  display:flex!important;
  width:100%!important;
  padding:16px 0!important;
  border-bottom:1px solid #eee!important;
  color:#080808!important;
  text-decoration:none!important;
  font-size:18px!important;
  line-height:1.15!important;
  font-weight:950!important;
}

@media(max-width:720px){
  .ra-nav .menu,
  .ra-nav ul,
  .ra-header-nav .menu,
  .ra-header-nav ul{
    display:none!important;
  }
}


/* ===== v7.7: footer thin typography correction ===== */
/* Возвращаем красивый тонкий стиль футера и применяем его к правому блоку */
.ra-footer{
  background:#030303!important;
  font-family:var(--ra-font), Arial, sans-serif!important;
}

.ra-footer .ra-container,
.ra-footer-inner{
  max-width:1280px!important;
  width:calc(100% - 48px)!important;
  margin:0 auto!important;
  display:grid!important;
  grid-template-columns:minmax(360px, 520px) minmax(360px, 520px)!important;
  justify-content:space-between!important;
  gap:120px!important;
  align-items:start!important;
}

/* Левый блок — как на красивом варианте */
.ra-footer-brand,
.ra-footer-left,
.ra-footer .ra-container > *:first-child,
.ra-footer-inner > *:first-child{
  justify-self:start!important;
  text-align:left!important;
  padding:0!important;
  margin:0!important;
  max-width:520px!important;
}

.ra-footer-brand *,
.ra-footer-left *,
.ra-footer .ra-container > *:first-child *,
.ra-footer-inner > *:first-child *{
  text-align:left!important;
}

.ra-footer-brand img,
.ra-footer-left img,
.ra-footer .ra-container > *:first-child img,
.ra-footer-inner > *:first-child img{
  display:block!important;
  max-width:165px!important;
  height:auto!important;
  margin:0 0 24px 0!important;
}

.ra-footer-brand p,
.ra-footer-left p,
.ra-footer .ra-container > *:first-child p,
.ra-footer-inner > *:first-child p{
  font-family:var(--ra-font), Arial, sans-serif!important;
  font-size:16px!important;
  line-height:1.48!important;
  font-weight:400!important;
  letter-spacing:-.01em!important;
  color:#c2c5ca!important;
  max-width:460px!important;
  margin:0!important;
}

/* Правый блок — правее, но тем же тонким стилем */
.ra-footer-contact,
.ra-footer-right,
.ra-footer-info,
.ra-footer .ra-container > *:last-child,
.ra-footer-inner > *:last-child{
  justify-self:end!important;
  text-align:left!important;
  padding:0!important;
  margin:0!important;
  max-width:460px!important;
  min-width:360px!important;
}

.ra-footer-contact *,
.ra-footer-right *,
.ra-footer-info *,
.ra-footer .ra-container > *:last-child *,
.ra-footer-inner > *:last-child *{
  font-family:var(--ra-font), Arial, sans-serif!important;
  text-align:left!important;
  font-weight:400!important;
  letter-spacing:-.01em!important;
  color:#c2c5ca!important;
}

.ra-footer-contact p,
.ra-footer-right p,
.ra-footer-info p,
.ra-footer-contact a,
.ra-footer-right a,
.ra-footer-info a,
.ra-footer .ra-container > *:last-child p,
.ra-footer-inner > *:last-child p,
.ra-footer .ra-container > *:last-child a,
.ra-footer-inner > *:last-child a,
.ra-footer-contact address,
.ra-footer-right address,
.ra-footer-info address,
.ra-footer .ra-container > *:last-child address,
.ra-footer-inner > *:last-child address{
  display:block!important;
  font-size:16px!important;
  line-height:1.48!important;
  font-weight:400!important;
  color:#c2c5ca!important;
  font-style:normal!important;
  margin:0 0 14px 0!important;
  text-decoration:none!important;
}

/* Телефон можно чуть заметнее, но без жирного грубого вида */
.ra-footer-contact a[href^="tel"],
.ra-footer-right a[href^="tel"],
.ra-footer-info a[href^="tel"],
.ra-footer .ra-container > *:last-child a[href^="tel"],
.ra-footer-inner > *:last-child a[href^="tel"]{
  font-size:16px!important;
  font-weight:500!important;
  color:#ffffff!important;
  margin-bottom:18px!important;
}

/* Убираем жирность, которая была навязана прошлой версией */
.ra-footer strong,
.ra-footer b{
  font-weight:500!important;
  color:#ffffff!important;
}

@media(max-width:900px){
  .ra-footer .ra-container,
  .ra-footer-inner{
    display:block!important;
    width:calc(100% - 36px)!important;
    max-width:100%!important;
  }

  .ra-footer-contact,
  .ra-footer-right,
  .ra-footer-info,
  .ra-footer .ra-container > *:last-child,
  .ra-footer-inner > *:last-child{
    margin-top:30px!important;
    min-width:0!important;
    max-width:none!important;
    justify-self:auto!important;
  }

  .ra-footer-brand p,
  .ra-footer-left p,
  .ra-footer .ra-container > *:first-child p,
  .ra-footer-inner > *:first-child p,
  .ra-footer-contact p,
  .ra-footer-right p,
  .ra-footer-info p,
  .ra-footer-contact a,
  .ra-footer-right a,
  .ra-footer-info a{
    font-size:15px!important;
    line-height:1.5!important;
  }
}


/* ===== v7.8: fixed header menu container after editable WP menu ===== */
/* Возвращаем меню в общий центральный контейнер, чтобы не улетало влево */
.ra-header{
  background:#fff!important;
}

.ra-header .ra-container,
.ra-header-inner,
.ra-header-top,
.ra-header-main,
.ra-header-row{
  max-width:1280px!important;
  width:calc(100% - 48px)!important;
  margin-left:auto!important;
  margin-right:auto!important;
}

/* Верхняя строка: логотип + поиск + корзина */
.ra-header-main,
.ra-header-top,
.ra-header-row{
  display:flex!important;
  align-items:center!important;
  gap:28px!important;
}

/* Меню отдельной строкой, но строго по той же сетке что и шапка */
.ra-nav,
.ra-header-nav{
  max-width:1280px!important;
  width:calc(100% - 48px)!important;
  margin-left:auto!important;
  margin-right:auto!important;
  padding:0!important;
  min-height:44px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  background:#fff!important;
  border:0!important;
}

/* Если nav оказался внутри header без контейнера — всё равно центрируем */
header .ra-nav,
header .ra-header-nav{
  box-sizing:border-box!important;
}

/* Сам список меню */
.ra-nav .menu,
.ra-header-nav .menu,
.ra-nav ul.menu,
.ra-header-nav ul.menu,
.ra-nav > ul,
.ra-header-nav > ul{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:26px!important;
  flex-wrap:wrap!important;
  width:auto!important;
  max-width:100%!important;
  margin:0!important;
  padding:0!important;
  list-style:none!important;
}

.ra-nav .menu li,
.ra-header-nav .menu li,
.ra-nav > ul > li,
.ra-header-nav > ul > li{
  margin:0!important;
  padding:0!important;
  list-style:none!important;
}

.ra-nav .menu a,
.ra-header-nav .menu a,
.ra-nav > ul > li > a,
.ra-header-nav > ul > li > a{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:44px!important;
  padding:0!important;
  color:#050505!important;
  font-family:var(--ra-font), Arial, sans-serif!important;
  font-size:14px!important;
  line-height:1!important;
  font-weight:950!important;
  letter-spacing:-.02em!important;
  text-decoration:none!important;
  white-space:nowrap!important;
}

/* Убираем последствия, если WordPress customizer добавил лишние отступы */
.ra-header nav,
.ra-header .menu,
.ra-header .menu-main-menu-container,
.ra-header .menu-glavnoe-menyu-container,
.ra-header .menu-katalog-menyu-container{
  box-sizing:border-box!important;
}

/* Десктоп: меню не должно начинаться от самого края экрана */
@media(min-width:721px){
  .ra-header > .ra-nav,
  .ra-header > .ra-header-nav,
  body > .ra-nav,
  body > .ra-header-nav{
    max-width:1280px!important;
    width:calc(100% - 48px)!important;
    margin-left:auto!important;
    margin-right:auto!important;
  }
}

/* Мобильная версия: меню в шапке скрыто, остаётся бургер */
@media(max-width:720px){
  .ra-nav,
  .ra-header-nav{
    display:none!important;
  }

  .ra-header .ra-container,
  .ra-header-inner,
  .ra-header-top,
  .ra-header-main,
  .ra-header-row{
    width:calc(100% - 32px)!important;
    max-width:100%!important;
  }
}


/* ===== v7.9: footer exactly like reference screenshot ===== */
.ra-footer{
  background:#030303!important;
  padding:42px 0 54px!important;
  font-family:var(--ra-font), Arial, sans-serif!important;
}

.ra-footer .ra-container,
.ra-footer-inner{
  width:calc(100% - 48px)!important;
  max-width:1280px!important;
  margin:0 auto!important;
  display:grid!important;
  grid-template-columns:300px 1fr!important;
  gap:80px!important;
  align-items:start!important;
}

/* левый блок */
.ra-footer-brand,
.ra-footer-left,
.ra-footer .ra-container > *:first-child,
.ra-footer-inner > *:first-child{
  justify-self:start!important;
  width:300px!important;
  max-width:300px!important;
  text-align:left!important;
  margin:0!important;
  padding:0!important;
}

.ra-footer-brand img,
.ra-footer-left img,
.ra-footer .ra-container > *:first-child img,
.ra-footer-inner > *:first-child img{
  display:block!important;
  width:auto!important;
  max-width:150px!important;
  height:auto!important;
  margin:0 0 24px 0!important;
}

.ra-footer-brand p,
.ra-footer-left p,
.ra-footer .ra-container > *:first-child p,
.ra-footer-inner > *:first-child p{
  width:245px!important;
  max-width:245px!important;
  margin:0!important;
  color:#aeb2b8!important;
  font-size:15px!important;
  line-height:1.42!important;
  font-weight:400!important;
  letter-spacing:-.01em!important;
  text-align:left!important;
}

/* правый блок */
.ra-footer-contact,
.ra-footer-right,
.ra-footer-info,
.ra-footer .ra-container > *:last-child,
.ra-footer-inner > *:last-child{
  justify-self:end!important;
  width:330px!important;
  max-width:330px!important;
  text-align:left!important;
  margin:0!important;
  padding:0!important;
}

.ra-footer-contact *,
.ra-footer-right *,
.ra-footer-info *,
.ra-footer .ra-container > *:last-child *,
.ra-footer-inner > *:last-child *{
  color:#aeb2b8!important;
  font-family:var(--ra-font), Arial, sans-serif!important;
  font-size:15px!important;
  line-height:1.42!important;
  font-weight:400!important;
  letter-spacing:-.01em!important;
  text-align:left!important;
  text-decoration:none!important;
  font-style:normal!important;
}

.ra-footer-contact p,
.ra-footer-right p,
.ra-footer-info p,
.ra-footer-contact a,
.ra-footer-right a,
.ra-footer-info a,
.ra-footer-contact address,
.ra-footer-right address,
.ra-footer-info address,
.ra-footer .ra-container > *:last-child p,
.ra-footer-inner > *:last-child p,
.ra-footer .ra-container > *:last-child a,
.ra-footer-inner > *:last-child a,
.ra-footer .ra-container > *:last-child address,
.ra-footer-inner > *:last-child address{
  display:block!important;
  margin:0 0 34px 0!important;
  color:#aeb2b8!important;
  font-size:15px!important;
  line-height:1.42!important;
  font-weight:400!important;
  text-align:left!important;
}

.ra-footer strong,
.ra-footer b{
  color:#aeb2b8!important;
  font-weight:400!important;
}

/* отменяем старые версии, где всё становилось жирным/белым */
.ra-footer a[href^="tel"],
.ra-footer .phone{
  color:#aeb2b8!important;
  font-size:15px!important;
  line-height:1.42!important;
  font-weight:400!important;
  margin-bottom:34px!important;
}

/* мобильная версия */
@media(max-width:900px){
  .ra-footer{
    padding:34px 0 42px!important;
  }

  .ra-footer .ra-container,
  .ra-footer-inner{
    display:block!important;
    width:calc(100% - 36px)!important;
    max-width:100%!important;
  }

  .ra-footer-brand,
  .ra-footer-left,
  .ra-footer-contact,
  .ra-footer-right,
  .ra-footer-info,
  .ra-footer .ra-container > *:first-child,
  .ra-footer-inner > *:first-child,
  .ra-footer .ra-container > *:last-child,
  .ra-footer-inner > *:last-child{
    width:auto!important;
    max-width:none!important;
    justify-self:auto!important;
  }

  .ra-footer-contact,
  .ra-footer-right,
  .ra-footer-info,
  .ra-footer .ra-container > *:last-child,
  .ra-footer-inner > *:last-child{
    margin-top:30px!important;
  }
}


/* ===== v8.0: header search/cart layout correction ===== */
/* Шапка как в удачном варианте: длинный поиск, корзина рядом справа */
.ra-header .ra-container,
.ra-header-inner,
.ra-header-main,
.ra-header-top,
.ra-header-row{
  max-width:1280px!important;
  width:calc(100% - 48px)!important;
  margin-left:auto!important;
  margin-right:auto!important;
  box-sizing:border-box!important;
}

.ra-header-main,
.ra-header-top,
.ra-header-row{
  display:grid!important;
  grid-template-columns:170px minmax(520px, 1fr) 128px!important;
  gap:24px!important;
  align-items:center!important;
}

/* Логотип */
.ra-logo,
.ra-header-logo,
.ra-site-logo,
.ra-header .custom-logo-link{
  justify-self:start!important;
  display:flex!important;
  align-items:center!important;
  max-width:170px!important;
}

.ra-header img.custom-logo,
.ra-header-logo img,
.ra-site-logo img,
.ra-logo img{
  max-width:155px!important;
  height:auto!important;
}

/* Поиск */
.ra-header-search,
.ra-search,
.ra-product-search,
.ra-header form.woocommerce-product-search,
.ra-header .aws-container,
.ra-header .dgwt-wcas-search-wrapp{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  justify-self:stretch!important;
  margin:0!important;
}

.ra-header-search form,
.ra-search form,
.ra-product-search form,
.ra-header form.search-form,
.ra-header form.woocommerce-product-search{
  display:flex!important;
  width:100%!important;
  max-width:none!important;
  margin:0!important;
}

.ra-header input[type="search"],
.ra-header .search-field,
.ra-header .aws-search-field,
.ra-header .dgwt-wcas-search-input{
  width:100%!important;
  min-width:0!important;
  height:48px!important;
  flex:1 1 auto!important;
}

.ra-header button[type="submit"],
.ra-header .search-submit,
.ra-header .aws-search-btn,
.ra-header .dgwt-wcas-search-submit{
  height:48px!important;
  min-width:92px!important;
  flex:0 0 92px!important;
}

/* Корзина рядом справа от поиска, без улёта вправо */
.ra-header-cart,
.ra-cart-link,
.ra-mini-cart,
.ra-header .cart-contents,
.ra-header a[href*="cart"]{
  justify-self:start!important;
  align-self:center!important;
  width:auto!important;
  min-width:126px!important;
  max-width:150px!important;
  height:48px!important;
  margin:0!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  white-space:nowrap!important;
}

/* Меню остаётся в том же контейнере */
.ra-nav,
.ra-header-nav{
  max-width:1280px!important;
  width:calc(100% - 48px)!important;
  margin-left:auto!important;
  margin-right:auto!important;
}

/* На широких экранах не давать поиску становиться коротким */
@media(min-width:1100px){
  .ra-header-main,
  .ra-header-top,
  .ra-header-row{
    grid-template-columns:170px minmax(680px, 1fr) 132px!important;
  }
}

/* Планшет */
@media(max-width:980px){
  .ra-header-main,
  .ra-header-top,
  .ra-header-row{
    grid-template-columns:145px minmax(260px, 1fr) 118px!important;
    gap:14px!important;
  }
}

/* Мобильная версия: не трогаем бургер */
@media(max-width:720px){
  .ra-header-main,
  .ra-header-top,
  .ra-header-row{
    display:flex!important;
    justify-content:space-between!important;
    gap:12px!important;
  }

  .ra-header-search,
  .ra-search,
  .ra-product-search,
  .ra-header form.woocommerce-product-search,
  .ra-header-cart,
  .ra-cart-link,
  .ra-mini-cart,
  .ra-header .cart-contents{
    display:none!important;
  }
}


/* =========================================================
   v8.1 FINAL: stable header + editable menu + footer layout
   ========================================================= */

/* ---------- HEADER BASE ---------- */
.ra-header{
  background:#fff!important;
  border-bottom:1px solid #eee!important;
  position:relative!important;
  z-index:50!important;
}

.ra-header *{
  box-sizing:border-box!important;
}

.ra-header .ra-container,
.ra-header-inner,
.ra-header-main,
.ra-header-top,
.ra-header-row{
  max-width:1280px!important;
  width:calc(100% - 48px)!important;
  margin-left:auto!important;
  margin-right:auto!important;
}

/* First header row: logo / search / cart */
.ra-header-main,
.ra-header-top,
.ra-header-row{
  display:grid!important;
  grid-template-columns:170px minmax(620px, 1fr) 132px!important;
  gap:24px!important;
  align-items:center!important;
  min-height:78px!important;
}

/* Logo */
.ra-logo,
.ra-header-logo,
.ra-site-logo,
.ra-header .custom-logo-link{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  width:170px!important;
  max-width:170px!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
}

.ra-logo img,
.ra-header-logo img,
.ra-site-logo img,
.ra-header img.custom-logo,
.ra-header .custom-logo-link img{
  display:block!important;
  width:auto!important;
  max-width:155px!important;
  height:auto!important;
  margin:0!important;
}

/* Search must be wide */
.ra-header-search,
.ra-search,
.ra-product-search,
.ra-header form.woocommerce-product-search,
.ra-header .aws-container,
.ra-header .dgwt-wcas-search-wrapp{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  justify-self:stretch!important;
}

.ra-header-search form,
.ra-search form,
.ra-product-search form,
.ra-header form.woocommerce-product-search,
.ra-header form.search-form{
  display:flex!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
}

.ra-header input[type="search"],
.ra-header .search-field,
.ra-header .aws-search-field,
.ra-header .dgwt-wcas-search-input{
  width:100%!important;
  height:48px!important;
  min-width:0!important;
  flex:1 1 auto!important;
  border-radius:0!important;
}

.ra-header button[type="submit"],
.ra-header .search-submit,
.ra-header .aws-search-btn,
.ra-header .dgwt-wcas-search-submit{
  height:48px!important;
  min-width:92px!important;
  flex:0 0 92px!important;
  border-radius:0!important;
}

/* Cart next to search, not far right */
.ra-header-cart,
.ra-cart-link,
.ra-mini-cart,
.ra-header .cart-contents,
.ra-header a[href*="/cart"],
.ra-header a[href*="cart"]{
  justify-self:start!important;
  align-self:center!important;
  width:132px!important;
  min-width:132px!important;
  max-width:132px!important;
  height:48px!important;
  margin:0!important;
  padding:0 14px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  white-space:nowrap!important;
}

/* ---------- NAV MENU ROW ---------- */
/* menu wrapper locked to same 1280 container */
.ra-nav,
.ra-header-nav,
header nav.ra-nav,
header nav.ra-header-nav{
  max-width:1280px!important;
  width:calc(100% - 48px)!important;
  margin:0 auto!important;
  padding:0!important;
  min-height:42px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  background:#fff!important;
  border:0!important;
}

/* WP menu containers */
.ra-nav .menu-glavnoe-menyu-container,
.ra-nav .menu-main-menu-container,
.ra-nav .menu-katalog-menyu-container,
.ra-header-nav .menu-glavnoe-menyu-container,
.ra-header-nav .menu-main-menu-container,
.ra-header-nav .menu-katalog-menyu-container{
  width:auto!important;
  margin:0!important;
  padding:0!important;
}

/* Menu list */
.ra-nav ul,
.ra-nav .menu,
.ra-header-nav ul,
.ra-header-nav .menu{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:26px!important;
  flex-wrap:wrap!important;
  list-style:none!important;
  margin:0!important;
  padding:0!important;
}

.ra-nav li,
.ra-header-nav li{
  list-style:none!important;
  margin:0!important;
  padding:0!important;
}

.ra-nav a,
.ra-header-nav a{
  display:inline-flex!important;
  align-items:center!important;
  min-height:42px!important;
  padding:0!important;
  color:#050505!important;
  font-family:var(--ra-font), Arial, sans-serif!important;
  font-size:14px!important;
  line-height:1!important;
  font-weight:950!important;
  letter-spacing:-.02em!important;
  text-decoration:none!important;
  white-space:nowrap!important;
}

.ra-nav a:hover,
.ra-header-nav a:hover,
.ra-nav .current-menu-item > a,
.ra-header-nav .current-menu-item > a{
  color:#b5121b!important;
}

/* ---------- FOOTER: clean two-column layout ---------- */
.ra-footer{
  background:#030303!important;
  padding:42px 0 54px!important;
  margin:0!important;
  font-family:var(--ra-font), Arial, sans-serif!important;
}

.ra-footer *{
  box-sizing:border-box!important;
}

.ra-footer .ra-container,
.ra-footer-inner{
  max-width:1280px!important;
  width:calc(100% - 48px)!important;
  margin:0 auto!important;
  display:grid!important;
  grid-template-columns:300px 420px!important;
  justify-content:space-between!important;
  gap:80px!important;
  align-items:start!important;
}

/* Left footer */
.ra-footer-brand,
.ra-footer-left,
.ra-footer .ra-container > *:first-child,
.ra-footer-inner > *:first-child{
  width:300px!important;
  max-width:300px!important;
  min-width:0!important;
  text-align:left!important;
  justify-self:start!important;
  margin:0!important;
  padding:0!important;
}

.ra-footer-brand img,
.ra-footer-left img,
.ra-footer .ra-container > *:first-child img,
.ra-footer-inner > *:first-child img{
  display:block!important;
  width:auto!important;
  max-width:150px!important;
  height:auto!important;
  margin:0 0 24px 0!important;
}

.ra-footer-brand p,
.ra-footer-left p,
.ra-footer .ra-container > *:first-child p,
.ra-footer-inner > *:first-child p{
  width:260px!important;
  max-width:260px!important;
  margin:0!important;
  color:#aeb2b8!important;
  font-family:var(--ra-font), Arial, sans-serif!important;
  font-size:15px!important;
  line-height:1.42!important;
  font-weight:400!important;
  letter-spacing:-.01em!important;
  text-align:left!important;
}

/* Right footer contacts */
.ra-footer-contact,
.ra-footer-right,
.ra-footer-info,
.ra-footer .ra-container > *:last-child,
.ra-footer-inner > *:last-child{
  width:420px!important;
  max-width:420px!important;
  min-width:0!important;
  text-align:left!important;
  justify-self:end!important;
  margin:0!important;
  padding:0!important;
}

.ra-footer-contact *,
.ra-footer-right *,
.ra-footer-info *,
.ra-footer .ra-container > *:last-child *,
.ra-footer-inner > *:last-child *{
  color:#aeb2b8!important;
  font-family:var(--ra-font), Arial, sans-serif!important;
  font-size:15px!important;
  line-height:1.42!important;
  font-weight:400!important;
  letter-spacing:-.01em!important;
  text-align:left!important;
  text-decoration:none!important;
  font-style:normal!important;
}

.ra-footer-contact p,
.ra-footer-right p,
.ra-footer-info p,
.ra-footer-contact a,
.ra-footer-right a,
.ra-footer-info a,
.ra-footer-contact address,
.ra-footer-right address,
.ra-footer-info address,
.ra-footer .ra-container > *:last-child p,
.ra-footer-inner > *:last-child p,
.ra-footer .ra-container > *:last-child a,
.ra-footer-inner > *:last-child a,
.ra-footer .ra-container > *:last-child address,
.ra-footer-inner > *:last-child address{
  display:block!important;
  max-width:320px!important;
  margin:0 0 28px 0!important;
  color:#aeb2b8!important;
  font-size:15px!important;
  line-height:1.42!important;
  font-weight:400!important;
}

.ra-footer a[href^="tel"]{
  color:#f4f4f4!important;
  font-weight:500!important;
}

/* ---------- MOBILE ---------- */
@media(max-width:900px){
  .ra-header .ra-container,
  .ra-header-inner,
  .ra-header-main,
  .ra-header-top,
  .ra-header-row{
    width:calc(100% - 32px)!important;
    max-width:100%!important;
  }

  .ra-header-main,
  .ra-header-top,
  .ra-header-row{
    display:flex!important;
    min-height:82px!important;
    justify-content:space-between!important;
    gap:12px!important;
  }

  .ra-header-search,
  .ra-search,
  .ra-product-search,
  .ra-header form.woocommerce-product-search,
  .ra-header-cart,
  .ra-cart-link,
  .ra-mini-cart,
  .ra-header .cart-contents{
    display:none!important;
  }

  .ra-nav,
  .ra-header-nav{
    display:none!important;
  }

  .ra-footer{
    padding:34px 0 42px!important;
  }

  .ra-footer .ra-container,
  .ra-footer-inner{
    display:block!important;
    width:calc(100% - 36px)!important;
    max-width:100%!important;
  }

  .ra-footer-brand,
  .ra-footer-left,
  .ra-footer-contact,
  .ra-footer-right,
  .ra-footer-info,
  .ra-footer .ra-container > *:first-child,
  .ra-footer-inner > *:first-child,
  .ra-footer .ra-container > *:last-child,
  .ra-footer-inner > *:last-child{
    width:auto!important;
    max-width:none!important;
    justify-self:auto!important;
  }

  .ra-footer-contact,
  .ra-footer-right,
  .ra-footer-info,
  .ra-footer .ra-container > *:last-child,
  .ra-footer-inner > *:last-child{
    margin-top:30px!important;
  }

  .ra-footer-brand p,
  .ra-footer-left p,
  .ra-footer .ra-container > *:first-child p,
  .ra-footer-inner > *:first-child p,
  .ra-footer-contact p,
  .ra-footer-right p,
  .ra-footer-info p,
  .ra-footer-contact a,
  .ra-footer-right a,
  .ra-footer-info a{
    width:auto!important;
    max-width:320px!important;
    font-size:15px!important;
  }
}


/* =========================================================
   v8.2: footer contacts strictly to the RIGHT
   ========================================================= */

.ra-footer{
  background:#030303!important;
  padding:42px 0 54px!important;
}

.ra-footer .ra-container,
.ra-footer-inner{
  max-width:1280px!important;
  width:calc(100% - 48px)!important;
  margin-left:auto!important;
  margin-right:auto!important;
  display:grid!important;
  grid-template-columns:320px 360px!important;
  justify-content:space-between!important;
  align-items:start!important;
  column-gap:420px!important;
}

/* LEFT: logo + description */
.ra-footer-brand,
.ra-footer-left,
.ra-footer .ra-container > *:first-child,
.ra-footer-inner > *:first-child{
  grid-column:1!important;
  justify-self:start!important;
  align-self:start!important;
  width:320px!important;
  max-width:320px!important;
  margin:0!important;
  padding:0!important;
  text-align:left!important;
}

.ra-footer-brand img,
.ra-footer-left img,
.ra-footer .ra-container > *:first-child img,
.ra-footer-inner > *:first-child img{
  max-width:150px!important;
  width:auto!important;
  height:auto!important;
  display:block!important;
  margin:0 0 24px 0!important;
}

.ra-footer-brand p,
.ra-footer-left p,
.ra-footer .ra-container > *:first-child p,
.ra-footer-inner > *:first-child p{
  width:280px!important;
  max-width:280px!important;
  margin:0!important;
  color:#aeb2b8!important;
  font-size:15px!important;
  line-height:1.42!important;
  font-weight:400!important;
  text-align:left!important;
}

/* RIGHT: contacts must be on the far right */
.ra-footer-contact,
.ra-footer-right,
.ra-footer-info,
.ra-footer .ra-container > *:last-child,
.ra-footer-inner > *:last-child{
  grid-column:2!important;
  justify-self:end!important;
  align-self:start!important;
  width:360px!important;
  max-width:360px!important;
  margin:0!important;
  padding:0!important;
  text-align:left!important;
  transform:none!important;
}

.ra-footer-contact *,
.ra-footer-right *,
.ra-footer-info *,
.ra-footer .ra-container > *:last-child *,
.ra-footer-inner > *:last-child *{
  color:#aeb2b8!important;
  font-size:15px!important;
  line-height:1.42!important;
  font-weight:400!important;
  text-align:left!important;
  text-decoration:none!important;
  font-style:normal!important;
}

.ra-footer-contact p,
.ra-footer-right p,
.ra-footer-info p,
.ra-footer-contact a,
.ra-footer-right a,
.ra-footer-info a,
.ra-footer-contact address,
.ra-footer-right address,
.ra-footer-info address,
.ra-footer .ra-container > *:last-child p,
.ra-footer-inner > *:last-child p,
.ra-footer .ra-container > *:last-child a,
.ra-footer-inner > *:last-child a,
.ra-footer .ra-container > *:last-child address,
.ra-footer-inner > *:last-child address{
  display:block!important;
  width:320px!important;
  max-width:320px!important;
  margin:0 0 28px 0!important;
  color:#aeb2b8!important;
  font-size:15px!important;
  line-height:1.42!important;
  font-weight:400!important;
  text-align:left!important;
}

.ra-footer a[href^="tel"]{
  color:#f4f4f4!important;
  font-weight:500!important;
}

/* Extra hard override if footer was built as flex in template */
.ra-footer .ra-container{
  flex-direction:unset!important;
}

/* Mobile: stack normally */
@media(max-width:900px){
  .ra-footer .ra-container,
  .ra-footer-inner{
    display:block!important;
    width:calc(100% - 36px)!important;
    max-width:100%!important;
  }

  .ra-footer-brand,
  .ra-footer-left,
  .ra-footer-contact,
  .ra-footer-right,
  .ra-footer-info,
  .ra-footer .ra-container > *:first-child,
  .ra-footer-inner > *:first-child,
  .ra-footer .ra-container > *:last-child,
  .ra-footer-inner > *:last-child{
    width:auto!important;
    max-width:none!important;
    justify-self:auto!important;
    grid-column:auto!important;
  }

  .ra-footer-contact,
  .ra-footer-right,
  .ra-footer-info,
  .ra-footer .ra-container > *:last-child,
  .ra-footer-inner > *:last-child{
    margin-top:30px!important;
  }
}


/* =========================================================
   v8.3: service pages + menu helper styles
   ========================================================= */
.ra-page-hero{
  padding:70px 0 72px!important;
  background:#fff!important;
}

.ra-page-hero .ra-container,
.ra-page-content .ra-container{
  max-width:1280px!important;
  width:calc(100% - 48px)!important;
  margin:0 auto!important;
}

.ra-page-kicker{
  display:block!important;
  margin:0 0 18px!important;
  color:#b5121b!important;
  font-size:12px!important;
  font-weight:950!important;
  letter-spacing:.14em!important;
  text-transform:uppercase!important;
}

.ra-page-hero h1{
  max-width:820px!important;
  margin:0 0 22px!important;
  font-size:clamp(42px, 5vw, 72px)!important;
  line-height:.95!important;
  letter-spacing:-.055em!important;
  font-weight:950!important;
  color:#080808!important;
}

.ra-page-lead{
  max-width:720px!important;
  color:#555!important;
  font-size:18px!important;
  line-height:1.55!important;
  font-weight:400!important;
}

.ra-page-grid{
  display:grid!important;
  grid-template-columns:repeat(3,1fr)!important;
  gap:18px!important;
  margin-top:42px!important;
}

.ra-page-card{
  border:1px solid #e7e7e7!important;
  background:#fff!important;
  padding:28px!important;
}

.ra-page-card h3{
  margin:0 0 12px!important;
  font-size:22px!important;
  line-height:1.1!important;
  font-weight:950!important;
  letter-spacing:-.035em!important;
}

.ra-page-card p,
.ra-page-card li{
  color:#5c5c5c!important;
  font-size:15px!important;
  line-height:1.55!important;
  font-weight:400!important;
}

.ra-page-card ul{
  margin:0!important;
  padding-left:18px!important;
}

.ra-vin-block{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:24px!important;
  align-items:stretch!important;
  margin-top:42px!important;
}

.ra-vin-dark{
  background:#050505!important;
  color:#fff!important;
  padding:34px!important;
  position:relative!important;
  overflow:hidden!important;
}

.ra-vin-dark h2{
  color:#fff!important;
  margin:0 0 16px!important;
  font-size:34px!important;
  line-height:1!important;
  letter-spacing:-.045em!important;
}

.ra-vin-dark p{
  color:#d4d4d4!important;
  max-width:520px!important;
}

.ra-vin-form{
  border:1px solid #e7e7e7!important;
  background:#fff!important;
  padding:34px!important;
}

.ra-vin-form input,
.ra-vin-form textarea{
  width:100%!important;
  min-height:52px!important;
  border:1px solid #e6e6e6!important;
  border-radius:0!important;
  padding:0 16px!important;
  margin:0 0 12px!important;
  font-family:inherit!important;
}

.ra-vin-form textarea{
  min-height:110px!important;
  padding-top:14px!important;
}

.ra-vin-form button{
  width:100%!important;
  min-height:54px!important;
  border:0!important;
  background:#b5121b!important;
  color:#fff!important;
  font-weight:950!important;
  text-transform:uppercase!important;
}

.ra-admin-note{
  max-width:980px;
  padding:16px 18px;
  background:#fff;
  border-left:4px solid #b5121b;
  margin:18px 0;
}

@media(max-width:900px){
  .ra-page-grid,
  .ra-vin-block{
    grid-template-columns:1fr!important;
  }
  .ra-page-hero .ra-container,
  .ra-page-content .ra-container{
    width:calc(100% - 36px)!important;
  }
}


/* =========================================================
   v8.4: FOOTER EXACTLY BY PHOTOSHOP MOCKUP
   Left = logo + description. Right = contacts. Big empty center.
   ========================================================= */

.ra-footer{
  background:#030303!important;
  padding:44px 0 56px!important;
  margin:0!important;
  font-family:var(--ra-font), Arial, sans-serif!important;
}

.ra-footer *{
  box-sizing:border-box!important;
}

/* Главная сетка футера: левая колонка у левого края, правая у правого края */
.ra-footer .ra-container,
.ra-footer-inner{
  width:calc(100% - 48px)!important;
  max-width:1280px!important;
  margin:0 auto!important;
  display:grid!important;
  grid-template-columns:320px 320px!important;
  justify-content:space-between!important;
  align-items:start!important;
  gap:0!important;
}

/* ЛЕВЫЙ БЛОК: логотип + описание */
.ra-footer-brand,
.ra-footer-left,
.ra-footer .ra-container > *:first-child,
.ra-footer-inner > *:first-child{
  grid-column:1!important;
  justify-self:start!important;
  align-self:start!important;
  width:320px!important;
  max-width:320px!important;
  margin:0!important;
  padding:0!important;
  text-align:left!important;
}

.ra-footer-brand img,
.ra-footer-left img,
.ra-footer .ra-container > *:first-child img,
.ra-footer-inner > *:first-child img{
  display:block!important;
  width:auto!important;
  max-width:155px!important;
  height:auto!important;
  margin:0 0 24px 0!important;
}

.ra-footer-brand p,
.ra-footer-left p,
.ra-footer .ra-container > *:first-child p,
.ra-footer-inner > *:first-child p{
  display:block!important;
  width:300px!important;
  max-width:300px!important;
  margin:0!important;
  padding:0!important;
  color:#aeb2b8!important;
  font-family:var(--ra-font), Arial, sans-serif!important;
  font-size:15px!important;
  line-height:1.42!important;
  font-weight:400!important;
  letter-spacing:-.01em!important;
  text-align:left!important;
}

/* ПРАВЫЙ БЛОК: контакты строго справа */
.ra-footer-contact,
.ra-footer-right,
.ra-footer-info,
.ra-footer .ra-container > *:last-child,
.ra-footer-inner > *:last-child{
  grid-column:2!important;
  justify-self:end!important;
  align-self:start!important;
  width:320px!important;
  max-width:320px!important;
  margin:0!important;
  padding:0!important;
  text-align:left!important;
}

/* Контактный текст — такой же тонкий стиль, как на макете */
.ra-footer-contact *,
.ra-footer-right *,
.ra-footer-info *,
.ra-footer .ra-container > *:last-child *,
.ra-footer-inner > *:last-child *{
  color:#aeb2b8!important;
  font-family:var(--ra-font), Arial, sans-serif!important;
  font-size:15px!important;
  line-height:1.42!important;
  font-weight:400!important;
  letter-spacing:-.01em!important;
  text-align:left!important;
  text-decoration:none!important;
  font-style:normal!important;
}

.ra-footer-contact p,
.ra-footer-right p,
.ra-footer-info p,
.ra-footer-contact a,
.ra-footer-right a,
.ra-footer-info a,
.ra-footer-contact address,
.ra-footer-right address,
.ra-footer-info address,
.ra-footer .ra-container > *:last-child p,
.ra-footer-inner > *:last-child p,
.ra-footer .ra-container > *:last-child a,
.ra-footer-inner > *:last-child a,
.ra-footer .ra-container > *:last-child address,
.ra-footer-inner > *:last-child address{
  display:block!important;
  width:320px!important;
  max-width:320px!important;
  margin:0 0 28px 0!important;
  padding:0!important;
  color:#aeb2b8!important;
  font-size:15px!important;
  line-height:1.42!important;
  font-weight:400!important;
  text-align:left!important;
}

.ra-footer a[href^="tel"]{
  color:#f2f2f2!important;
  font-weight:500!important;
}

/* Запрещаем старым стилям ставить контакты рядом с логотипом */
.ra-footer .ra-container > *:last-child{
  margin-left:auto!important;
}

/* На мобильной версии блоки идут друг под другом */
@media(max-width:900px){
  .ra-footer{
    padding:34px 0 42px!important;
  }

  .ra-footer .ra-container,
  .ra-footer-inner{
    display:block!important;
    width:calc(100% - 36px)!important;
    max-width:100%!important;
  }

  .ra-footer-brand,
  .ra-footer-left,
  .ra-footer-contact,
  .ra-footer-right,
  .ra-footer-info,
  .ra-footer .ra-container > *:first-child,
  .ra-footer-inner > *:first-child,
  .ra-footer .ra-container > *:last-child,
  .ra-footer-inner > *:last-child{
    width:auto!important;
    max-width:none!important;
    grid-column:auto!important;
    justify-self:auto!important;
    margin-left:0!important;
  }

  .ra-footer-contact,
  .ra-footer-right,
  .ra-footer-info,
  .ra-footer .ra-container > *:last-child,
  .ra-footer-inner > *:last-child{
    margin-top:30px!important;
  }

  .ra-footer-brand p,
  .ra-footer-left p,
  .ra-footer .ra-container > *:first-child p,
  .ra-footer-inner > *:first-child p,
  .ra-footer-contact p,
  .ra-footer-right p,
  .ra-footer-info p,
  .ra-footer-contact a,
  .ra-footer-right a,
  .ra-footer-info a{
    width:auto!important;
    max-width:320px!important;
  }
}


/* =========================================================
   v8.6: FOOTER FINAL BY DRAWING
   logo+description = FAR LEFT, contacts = RIGHT
   ========================================================= */

.ra-footer {
    background: #030303 !important;
    padding: 44px 0 56px !important;
    margin: 0 !important;
}

.ra-footer .ra-container,
.ra-footer-inner {
    max-width: 1280px !important;
    width: calc(100% - 48px) !important;
    margin: 0 auto !important;
    padding: 0 !important;

    display: grid !important;
    grid-template-columns: 340px 340px !important;
    justify-content: space-between !important;
    align-items: start !important;
    gap: 0 !important;
}

/* ЛЕВЫЙ БЛОК: логотип + описание — строго слева */
.ra-footer-brand,
.ra-footer-left,
.ra-footer .ra-container > *:first-child,
.ra-footer-inner > *:first-child {
    grid-column: 1 !important;
    justify-self: start !important;
    align-self: start !important;
    width: 340px !important;
    max-width: 340px !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
    transform: none !important;
}

.ra-footer-brand img,
.ra-footer-left img,
.ra-footer .ra-container > *:first-child img,
.ra-footer-inner > *:first-child img {
    display: block !important;
    width: auto !important;
    max-width: 155px !important;
    height: auto !important;
    margin: 0 0 24px 0 !important;
}

.ra-footer-brand p,
.ra-footer-left p,
.ra-footer .ra-container > *:first-child p,
.ra-footer-inner > *:first-child p {
    display: block !important;
    width: 320px !important;
    max-width: 320px !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #aeb2b8 !important;
    font-family: var(--ra-font), Arial, sans-serif !important;
    font-size: 15px !important;
    line-height: 1.42 !important;
    font-weight: 400 !important;
    letter-spacing: -0.01em !important;
    text-align: left !important;
}

/* ПРАВЫЙ БЛОК: контакты — справа, ровной колонкой */
.ra-footer-contact,
.ra-footer-right,
.ra-footer-info,
.ra-footer .ra-container > *:last-child,
.ra-footer-inner > *:last-child {
    grid-column: 2 !important;
    justify-self: end !important;
    align-self: start !important;
    width: 340px !important;
    max-width: 340px !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
    transform: none !important;
}

.ra-footer-contact p,
.ra-footer-right p,
.ra-footer-info p,
.ra-footer-contact a,
.ra-footer-right a,
.ra-footer-info a,
.ra-footer-contact address,
.ra-footer-right address,
.ra-footer-info address,
.ra-footer .ra-container > *:last-child p,
.ra-footer-inner > *:last-child p,
.ra-footer .ra-container > *:last-child a,
.ra-footer-inner > *:last-child a,
.ra-footer .ra-container > *:last-child address,
.ra-footer-inner > *:last-child address {
    display: block !important;
    width: 320px !important;
    max-width: 320px !important;
    margin: 0 0 28px 0 !important;
    padding: 0 !important;
    color: #aeb2b8 !important;
    font-family: var(--ra-font), Arial, sans-serif !important;
    font-size: 15px !important;
    line-height: 1.42 !important;
    font-weight: 400 !important;
    letter-spacing: -0.01em !important;
    text-align: left !important;
    text-decoration: none !important;
    font-style: normal !important;
}

.ra-footer a[href^="tel"],
.ra-footer-contact a[href^="tel"],
.ra-footer-right a[href^="tel"],
.ra-footer-info a[href^="tel"] {
    color: #f4f4f4 !important;
    font-weight: 500 !important;
}

/* На мобильной версии аккуратно друг под другом */
@media (max-width: 900px) {
    .ra-footer .ra-container,
    .ra-footer-inner {
        display: block !important;
        width: calc(100% - 36px) !important;
        max-width: 100% !important;
    }

    .ra-footer-brand,
    .ra-footer-left,
    .ra-footer-contact,
    .ra-footer-right,
    .ra-footer-info,
    .ra-footer .ra-container > *:first-child,
    .ra-footer-inner > *:first-child,
    .ra-footer .ra-container > *:last-child,
    .ra-footer-inner > *:last-child {
        width: auto !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        text-align: left !important;
    }

    .ra-footer-contact,
    .ra-footer-right,
    .ra-footer-info,
    .ra-footer .ra-container > *:last-child,
    .ra-footer-inner > *:last-child {
        margin-top: 30px !important;
    }
}


/* =========================================================
   v9.0: fixed editable header menu + anchors
   ========================================================= */

html{
  scroll-behavior:smooth!important;
}

.ra-header-nav a,
.ra-nav a{
  cursor:pointer!important;
}

.ra-footer{
  scroll-margin-top:120px!important;
}

/* Header menu from theme options */
.ra-main-menu-custom{
  max-width:1280px!important;
  width:calc(100% - 48px)!important;
  margin:0 auto!important;
  padding:0!important;
  display:flex!important;
  align-items:center!important;
  gap:26px!important;
  min-height:42px!important;
  list-style:none!important;
}

.ra-main-menu-custom li{
  margin:0!important;
  padding:0!important;
  list-style:none!important;
}

.ra-main-menu-custom a{
  display:inline-flex!important;
  align-items:center!important;
  min-height:42px!important;
  color:#050505!important;
  text-decoration:none!important;
  font-family:var(--ra-font), Arial, sans-serif!important;
  font-size:14px!important;
  line-height:1!important;
  font-weight:950!important;
  letter-spacing:-.02em!important;
  white-space:nowrap!important;
}

.ra-main-menu-custom a:hover{
  color:#b5121b!important;
}

/* Admin helper table */
.ra-admin-menu-table input[type="text"]{
  width:100%!important;
  max-width:100%!important;
}

@media(max-width:900px){
  .ra-main-menu-custom{
    display:none!important;
  }
}


/* =========================================================
   v9.1: editable service pages admin fields
   ========================================================= */

.ra-admin-service-table{
  max-width: 1100px;
  background:#fff;
  border:1px solid #ccd0d4;
  margin:18px 0 34px;
  border-collapse:collapse;
}

.ra-admin-service-table th{
  width:220px;
  text-align:left;
  vertical-align:top;
  padding:14px;
  background:#f6f7f7;
  border-bottom:1px solid #e2e4e7;
}

.ra-admin-service-table td{
  padding:14px;
  border-bottom:1px solid #e2e4e7;
}

.ra-admin-service-table input[type="text"],
.ra-admin-service-table textarea{
  width:100%;
  max-width:780px;
}

.ra-admin-service-table textarea{
  min-height:82px;
}


/* =========================================================
   v9.2: editable images/icons for service pages
   ========================================================= */

.ra-vin-dark{
  position:relative!important;
  overflow:hidden!important;
  background-color:#050505!important;
}

.ra-vin-dark::before{
  content:""!important;
  position:absolute!important;
  inset:0!important;
  background-image:var(--ra-dark-image, none)!important;
  background-size:cover!important;
  background-position:center!important;
  opacity:var(--ra-dark-image-opacity, .35)!important;
  z-index:0!important;
  pointer-events:none!important;
}

.ra-vin-dark::after{
  content:""!important;
  position:absolute!important;
  inset:0!important;
  background:var(--ra-dark-overlay, rgba(0,0,0,.55))!important;
  z-index:1!important;
  pointer-events:none!important;
}

.ra-vin-dark > *{
  position:relative!important;
  z-index:2!important;
}

.ra-page-card-icon{
  width:42px!important;
  height:42px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  margin:0 0 18px!important;
}

.ra-page-card-icon img{
  width:42px!important;
  height:42px!important;
  object-fit:contain!important;
  display:block!important;
}

.ra-page-card-icon svg{
  width:42px!important;
  height:42px!important;
  display:block!important;
}

.ra-admin-service-table .ra-url-row{
  display:flex;
  gap:8px;
  align-items:center;
}

.ra-admin-service-table .ra-url-row input{
  flex:1;
}

.ra-admin-service-table .ra-preview-img{
  display:block;
  max-width:120px;
  max-height:70px;
  object-fit:contain;
  margin-top:8px;
  background:#fff;
  border:1px solid #ddd;
  padding:4px;
}

.ra-admin-small-note{
  color:#666;
  font-size:12px;
  margin-top:6px;
}




