/* ============================================================
   FONTS
   ============================================================ */

@font-face {
  font-family: "Source Sans Pro";
  src:
    url("../fonts/SourceSansPro-Bold.woff2") format("woff2"),
    url("../fonts/SourceSansPro-Bold.woff") format("woff");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans Pro";
  src:
    url("../fonts/SourceSansPro-Light.woff2") format("woff2"),
    url("../fonts/SourceSansPro-Light.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans Pro";
  src:
    url("../fonts/SourceSansPro-LightItalic.woff2") format("woff2"),
    url("../fonts/SourceSansPro-LightItalic.woff") format("woff");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans Pro";
  src:
    url("../fonts/SourceSansPro-Black.woff2") format("woff2"),
    url("../fonts/SourceSansPro-Black.woff") format("woff");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans Pro";
  src:
    url("../fonts/SourceSansPro-Regular.woff2") format("woff2"),
    url("../fonts/SourceSansPro-Regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans Pro";
  src:
    url("../fonts/SourceSansPro-SemiBold.woff2") format("woff2"),
    url("../fonts/SourceSansPro-SemiBold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans Pro";
  src:
    url("../fonts/SourceSansPro-Italic.woff2") format("woff2"),
    url("../fonts/SourceSansPro-Italic.woff") format("woff");
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}

/* ============================================================
   RESET & BASE
   ============================================================ */

*::selection {
  color: #fff;
  background-color: #0971ce;
}

* {
  box-sizing: border-box;
}

p {
  margin: 0 0 1em 0;
  padding: 0;
  line-height: 1.2em;
}

body {
  font-family: "Source Sans Pro", sans-serif;
  font-size: 18px;
  color: #231f20;
  margin: 0;
  padding: 0;
  width: 100%;
  background: #fff;
  line-height: 27px;
}

ul,
ol,
dl {
  padding: 0;
  margin: 0 0 1em 30px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  padding: 0;
  font-weight: normal;
}

strong {
  font-weight: 600;
}

h1 {
  margin: 10px 0;
  font-family: "Source Sans Pro", sans-serif;
  font-size: 48px;
  line-height: 48px;
  margin-bottom: 30px;
  margin-left: 1vw;
  font-weight: 300;
}

h2 {
  font-size: 22px;
  font-weight: 300;
}

img {
  border: 0;
  max-width: 100%;
  height: auto;
}

a:link,
a:visited {
  color: #666;
  text-decoration: none;
}

a:hover,
a:active,
a:focus {
  text-decoration: underline;
}

/* ============================================================
   LAYOUT
   ============================================================ */

#wrapper {
  padding: 15px;
}

#page {
  width: 100%;
  font-size: 0;
}

#expandable_menu {
  width: 270px;
  display: inline-block;
  vertical-align: top;
}

#left {
  width: 100%;
}

#left_inner {
  padding: 20px 20px 20px 0;
}

#center {
  width: calc(100% - 270px);
  display: inline-block;
  font-size: 18px;
}

/* ============================================================
   MOBILE TOP BAR (бургер + телефон + мини-корзина)
   Скрыт на десктопе, фиксирован на мобильном
   ============================================================ */

#mobile_topbar {
  display: none;
}

#menu_toggler {
  display: none;
}

#menu_phone {
  display: none;
}

#mobile-cart-fragment {
  display: none;
}

/* ============================================================
   LEFT MENU / SIDEBAR
   ============================================================ */

#left_inner h2 {
  background: #666;
  padding: 4px 4px 4px 8px;
  color: #fff;
  margin: 0 0 15px 0;
  border-radius: 8px;
  font-size: 22px;
  font-weight: 300;
}

#left ul.menu,
#left .sidebar-nav ul.menu {
  margin: 0 0 0 10px;
  padding: 0;
  list-style: none;
}

#left ul.menu li,
#left .sidebar-nav ul.menu li {
  margin: 5px 0;
  padding: 0;
  list-style: none;
  list-style-image: none;
}

#left li a {
  font-size: 18px;
  font-weight: normal;
}

#left ul.menu ul.menu,
#left .sidebar-nav ul.sub-menu {
  margin: 15px 0 15px 20px;
}

/* Sidebar nav blocks */
.sidebar-nav {
  margin-bottom: 20px;
}

.sidebar-nav > ul > li {
  margin-bottom: 15px;
}

.sidebar-nav > ul > li > a {
  font-weight: bold;
}

/* Блок портфолио */
#projects h2 {
  background: #fff;
  border: 1px solid #666;
  border-radius: 8px;
  line-height: 1em;
  font-weight: normal;
  padding: 6px 6px 6px 8px;
  font-weight: 300;
}

/* Блок "На заказ" */
#custom {
  margin: 30px 0;
  padding-left: 30px;
  width: 81%;
  font-size: 20px;
  font-weight: 300;
}

#custom h3 a {
  color: #e11e79;
  font-weight: 300;
}

/* Блок отзыва */
.region-left-bottom {
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.5);
  font-size: 18px;
  margin-top: 30px;
  font-weight: 300;
}

.region-left-bottom h2 {
  background: none !important;
  padding: 0 !important;
  color: #000 !important;
  font-size: 30px !important;
}

.region-left-bottom em {
  font-family: "Source Sans Pro";
  font-weight: 300;
  font-style: italic;
}

.region-left-bottom strong {
  font-family: "Source Sans Pro";
  font-weight: 600;
}

/* ============================================================
   SITE LOGO
   ============================================================ */

#site_logo {
  display: inline-block;
  text-align: center;
  font-family: "Source Sans Pro", sans-serif;
  font-size: 1.2em;
  width: 100%;
  margin-top: 20px;
  margin-bottom: 20px;
}

#logo_text {
  font-size: 20px;
  font-weight: 300;
}

#site_logo img {
  max-width: 80%;
  height: auto;
}

/* WordPress custom-logo support */
.custom-logo-link {
  display: inline-block;
}

.custom-logo {
  max-width: 80%;
  height: auto;
}

/* ============================================================
   HEADER
   ============================================================ */

#header {
  width: 100%;
  color: #000;
  font-family: "Source Sans Pro", sans-serif;
  margin-bottom: 40px;
}

#header a {
  color: #000;
  text-decoration: none;
  font-size: 20pt;
  font-family: "Source Sans Pro", sans-serif;
  font-weight: 300;
}

#header a:hover {
  text-decoration: underline;
}

#header-img {
  width: 100%;
  height: 200px;
  background-repeat: no-repeat;
  background-position: left center;
  background-size: cover;
  overflow: hidden;
  border-radius: 8px;
}

/* Flex-контейнер для меню + телефона */
#header-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 32px;
  gap: 10px;
}

#header-menu {
  flex: 1;
  min-width: 0;
}

#header-menu .content,
#header-menu .menu {
  display: inline-block;
  text-align: left;
  width: 100%;
}

#header-menu ul.menu {
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  text-align: left;
}

#header-menu li,
#header-menu .menu-item {
  margin-left: 1vw;
  list-style: none;
  padding: 0;
}

#header-phone {
  text-align: right;
  font-size: 20pt;
  font-family: "Source Sans Pro", sans-serif;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ============================================================
   PRODUCT GRID (карточки товаров)
   ============================================================ */

.view-content {
  font-size: 0;
}

.product_box {
  width: 30%;
  display: inline-block;
  vertical-align: top;
  margin: 1%;
  margin-bottom: 40px;
  font-size: 18px;
}

.product_box_photo {
  display: inline-block;
  vertical-align: middle;
  width: 100%;
}

.product_box_photo img {
  max-width: 100%;
  height: auto;
  width: auto;
  display: inline-block;
  vertical-align: middle;
  border-radius: 6px;
}

.product_box_photo a {
  display: inline-block;
  width: 100%;
  text-align: center;
}

/* Hover эффект — смена изображения */
.hover_image img:last-child {
  display: none;
}

.hover_image:hover img:first-child {
  display: none;
}

.hover_image:hover img:last-child {
  display: inline-block;
}

.hover_image img {
  transition: opacity 0.25s ease-in-out;
}

/* Название товара */
.product_box h2 {
  margin-top: 22px;
}

.product_box h2 a {
  width: 80%;
  margin-left: 10%;
  display: block;
  text-align: center;
  color: #666;
  font-size: 22px;
}

/* Цена */
.product_box .price_block {
  display: inline-block;
  width: 80%;
  text-align: center;
  margin: 0 0 0 10%;
}

table.commerce-price-savings-formatter-prices {
  border-collapse: separate;
}

td.commerce-price-savings-formatter-list {
  color: #aaa;
}

.commerce-price-savings-formatter-list .price-amount {
  text-decoration: line-through;
}

.commerce-price-savings-formatter-prices-down
  td.commerce-price-savings-formatter-price
  .price-amount,
.commerce-price-savings-formatter-prices-unchanged
  td.commerce-price-savings-formatter-price
  .price-amount {
  color: #e11e79;
}

.commerce-price-savings-formatter-price .price-amount {
  font-size: 1.2em;
}

.commerce-price-savings-formatter-prices tr td {
  padding: 0 6px;
  vertical-align: middle;
  font-size: 0.86em;
  line-height: 1.1em;
  text-align: center;
}

.commerce-price-savings-formatter-prices tr.odd,
.commerce-price-savings-formatter-prices tr.even {
  background: none;
  border: 0;
}

/* Миниатюры товара (sp_list) */
.product_box .sp_list {
  list-style: none;
  margin: 0;
  position: relative;
  top: 22px;
  margin-top: -62px;
  overflow: hidden;
  height: 62px;
}

.product_box .sp_list li {
  display: inline-block;
  margin-right: 5px;
}

.product_box .sp_list img {
  width: 60px;
  height: auto;
  border: 1px solid #eeeeee;
  border-radius: 20px;
}

/* WooCommerce price override — чтобы использовать наши стили */
.product_box .price_block .woocommerce-Price-amount {
  font-size: inherit;
}

.product_box .price_block del {
  color: #aaa;
}

.product_box .price_block ins {
  text-decoration: none;
  color: #e11e79;
}

/* ============================================================
   PAGINATION
   ============================================================ */

.item-list .pager,
.item-list .page-numbers {
  text-align: left;
  margin: 40px 0 20px 4%;
  font-size: 22px;
  list-style: none;
  padding: 0;
}

.item-list .pager li,
.item-list .page-numbers li {
  margin: 0;
  padding: 5px 10px;
  display: inline;
  list-style: none;
}

.item-list .pager li a,
.item-list .page-numbers li a {
  color: #000;
}

.item-list .pager-current,
.item-list .page-numbers li .current {
  font-weight: bold;
  background: #00b500;
  border-radius: 20px;
  color: #fff;
  padding: 5px 12px;
}

/* ============================================================
   WELCOME BLOCK (post-content)
   ============================================================ */

.region-post-content {
  margin: 40px 0 20px 1vw;
  font-size: 18px;
}

.region-post-content h2 {
  font-size: 22px;
  margin-bottom: 15px;
}

.region-post-content .content p {
  line-height: 1.5em;
}

.region-post-content a {
  color: #666;
  text-decoration: underline;
}

.region-content {
  /*margin-left: 1vw;*/
  margin-left: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */

#footer {
  border-top: 1px solid #666;
  box-shadow: 0px 10px 80px -20px rgba(50, 50, 50, 1);
  margin: 20px 0 0 0;
  padding: 30px 0;
  font-size: 22pt;
  font-family: "Source Sans Pro", sans-serif;
}

#footer_inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 80px;
  gap: 10px;
  padding: 0 80px;
}

#footer_logo {
  flex-shrink: 0;
}

#footer_logo img {
  width: auto;
  height: 80px;
}

#footer_logo a {
  display: inline-block;
  vertical-align: middle;
}

#footer_phone {
  text-align: left;
  font-size: 20pt;
  font-family: "Source Sans Pro", sans-serif;
  white-space: nowrap;
  flex-shrink: 0;
}

#footer_menu {
  flex: 1;
  text-align: right;
  font-size: 16pt;
}

#footer_menu ul {
  margin: 0;
  padding: 0;
}

#footer_menu li,
#footer_menu .menu-item {
  display: inline-block;
  list-style: none;
  margin-left: 10px;
}

#footer_menu li a {
  color: #000;
  font-weight: 300;
}

/* ============================================================
   PAGE CONTENT
   ============================================================ */

.page_content {
  /*padding: 0 2%;*/
  padding: 0;
}

.inner_block {
  padding: 0 3%;
}

/* ============================================================
   PALETTE GRID (палитра цветов на страницах)
   ============================================================ */

.palette-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.palette-item {
  text-align: center;
}

.palette-image {
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9f9f9;
}

.palette-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.palette-caption {
  margin-top: 8px;
  font-size: 16px;
  color: #231f20;
  line-height: 1.3em;
}

/* ============================================================
   WOOCOMMERCE OVERRIDES
   ============================================================ */

/* Скрываем WooCommerce breadcrumb на главной */
.home .woocommerce-breadcrumb {
  display: none;
}

/* Корзина WooCommerce стили */
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-error {
  border-radius: 8px;
  font-family: "Source Sans Pro", sans-serif;
}

/* Кнопки WooCommerce */
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  background-color: #e11e79;
  color: #fff;
  border-radius: 6px;
  font-family: "Source Sans Pro", sans-serif;
  font-weight: 600;
  border: none;
  padding: 10px 20px;
}

.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  background-color: #c91568;
  color: #fff;
}

/* Убираем дефолтную звёздочку WooCommerce */
.woocommerce .star-rating {
  color: #e11e79;
}

/* ============================================================
   RESPONSIVE — Medium screens (1025–1440px)
   ============================================================ */

@media screen and (min-width: 1025px) and (max-width: 1440px) {
  #header a {
    font-size: 14pt;
  }

  #header-phone {
    font-size: 14pt;
  }

  #header-menu li,
  #header-menu .menu-item {
    margin-left: 0.6vw;
  }

  #footer_inner {
    padding: 0 30px;
  }

  #footer_phone {
    font-size: 14pt;
  }

  #footer_menu {
    font-size: 12pt;
  }

  #footer_menu li,
  #footer_menu .menu-item {
    margin-left: 6px;
  }
}

/* ============================================================
   RESPONSIVE — Mobile (<= 1024px)
   ============================================================ */

@media screen and (max-width: 1024px) {
  h1 {
    text-align: center;
  }

  /* Фиксированная мобильная панель — прозрачная, элементы со своими фонами */
  #mobile_topbar {
    display: flex;
    align-items: flex-start;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: none;
    padding: 0;
    gap: 15px;
  }

  #menu_toggler {
    display: inline-block;
    font-size: 30px;
    padding: 10px;
    background: #000;
    color: #fff;
    border-radius: 0 0 10px 0;
    cursor: pointer;
    flex-shrink: 0;
  }

  #menu_phone {
    display: inline-block;
    font-size: 18px;
    padding: 10px;
    background: #000;
    color: #fff;
    border-radius: 0 0 10px 10px;
    text-align: center;
    opacity: 0.8;
    flex-shrink: 0;
  }

  #menu_phone a {
    color: #fff;
    text-decoration: none;
  }

  #mobile-cart-fragment {
    display: inline-block;
    margin-left: auto;
    flex-shrink: 0;
  }

  #mobile-cart-link {
    display: inline-block;
    padding: 8px 14px;
    height: 47px;
    background: #e11e79;
    border-radius: 0 0 0 10px;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 14px;
    white-space: nowrap;
  }

  /* Отступ сверху чтобы контент не прятался */
  #wrapper {
    padding-top: 56px;
  }

  #left {
    display: none;
    z-index: 90;
    position: fixed;
    width: 80%;
    background: #f9f9f9;
    opacity: 0.96;
    top: 50px;
    bottom: 0;
    padding: 10px 0 0 20px;
    box-shadow: 0 1px 15px rgba(50, 50, 50, 0.2);
    left: 0;
    overflow-y: auto;
  }

  .region-content {
    margin-left: 0;
  }

  #center {
    width: 100%;
  }

  .product_box {
    width: 96%;
    display: inline-block;
    vertical-align: top;
    margin: 2%;
    height: auto;
    margin-bottom: 30px;
  }

  .product_box h2 a {
    font-size: 24px;
  }

  #site_logo {
    margin-left: 10%;
    width: 80%;
    margin-top: 10px;
  }

  #header-nav-row {
    flex-direction: column;
    margin-top: 20px;
  }

  #header-phone {
    display: none;
  }

  #header-img {
    display: none;
  }

  #header-menu {
    width: 100%;
  }

  #header-menu ul.menu {
    display: block;
  }

  #header-menu li,
  #header-menu .menu-item {
    display: block;
    text-align: center;
  }

  /* Palette mobile */
  .palette-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  /* Footer mobile */
  #footer_inner {
    flex-direction: column;
    gap: 20px;
    padding: 0 15px;
  }

  #footer_logo {
    text-align: center;
  }

  #footer_phone {
    text-align: center;
  }

  #footer_menu {
    text-align: center;
    margin-bottom: 40px;
  }

  #footer_menu li,
  #footer_menu .menu-item {
    text-align: center;
    margin: 0;
    padding: 0;
    width: 100%;
  }

  #footer_menu ul {
    width: 100%;
    margin: 0;
  }
  .page-id-84 #contact-info,
  .page-id-84 #contact-map {
    width: 100% !important;
    max-width: 600px;
  }
}

/* ============================================================
   WP ADMIN BAR FIX
   ============================================================ */

@media screen and (max-width: 1024px) {
  .admin-bar #mobile_topbar {
    top: 32px;
  }

  .admin-bar #left {
    top: 82px;
  }

  .admin-bar #wrapper {
    padding-top: 88px;
  }
}

@media screen and (max-width: 782px) {
  .admin-bar #mobile_topbar {
    top: 46px;
  }

  .admin-bar #left {
    top: 96px;
  }

  .admin-bar #wrapper {
    padding-top: 102px;
  }
}

@media (max-width: 360px) {
  #mobile-cart-link {
    display: none;
  }
}

/* search style */

.dgwt-wcas-search-wrapp {
  margin: 15px 0;
}

.dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp {
  padding: 0;
  border-radius: 0;
}

#left_inner .dgwt-wcas-search-wrapp {
  margin-bottom: 20px;
  margin-right: 20px;
}

/* Поле ввода */
.dgwt-wcas-search-wrapp
  .dgwt-wcas-sf-wrapp
  input[type="search"].dgwt-wcas-search-input,
.dgwt-wcas-search-wrapp .dgwt-wcas-sf-wrapp input.dgwt-wcas-search-input {
  font-family: "Source Sans Pro", sans-serif !important;
  font-size: 16px !important;
  font-weight: 300 !important;
  color: #231f20 !important;
  background: #f5f5f5 !important;
  border: 1px solid #ddd !important;
  border-radius: 8px !important;
  padding: 10px 14px 10px 38px !important;
  height: auto !important;
  box-shadow: none !important;
}

.dgwt-wcas-search-wrapp .dgwt-wcas-sf-wrapp input.dgwt-wcas-search-input:focus {
  border-color: #999 !important;
  background: #fff !important;
  outline: none !important;
  box-shadow: none !important;
}

.dgwt-wcas-search-wrapp
  .dgwt-wcas-sf-wrapp
  input.dgwt-wcas-search-input::placeholder {
  color: #999 !important;
  font-weight: 300 !important;
}

.dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit {
  left: 6px;
  top: 7px;
}

/* Выпадающий список результатов */
.dgwt-wcas-suggestions-wrapp {
  font-family: "Source Sans Pro", sans-serif !important;
  border: 1px solid #ddd !important;
  border-radius: 0 0 8px 8px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

/* Элемент результата */
.dgwt-wcas-suggestion {
  border-bottom: 1px solid #f0f0f0 !important;
  padding: 8px 12px !important;
}

.dgwt-wcas-suggestion:hover,
.dgwt-wcas-suggestion.dgwt-wcas-suggestion-selected {
  background: #f9f9f9 !important;
}

/* Название товара в результатах */
.dgwt-wcas-st {
  font-family: "Source Sans Pro", sans-serif !important;
  font-size: 15px !important;
  color: #231f20 !important;
  font-weight: normal !important;
}

/* Цена в результатах */
.dgwt-wcas-sp {
  color: #e11e79 !important;
  font-weight: 600 !important;
  font-size: 14px !important;
}

/* Старая цена (зачёркнутая) */
.dgwt-wcas-sp del {
  color: #aaa !important;
}

/* Картинка в результатах */
.dgwt-wcas-si img {
  border-radius: 4px !important;
}

/* «Показать все результаты» */
.dgwt-wcas-suggestion.dgwt-wcas-suggestion-more {
  font-family: "Source Sans Pro", sans-serif !important;
  color: #666 !important;
  font-size: 14px !important;
}

.dgwt-wcas-suggestion.dgwt-wcas-suggestion-more:hover {
  color: #e11e79 !important;
}

/* Заголовки групп (если включены) */
.dgwt-wcas-suggestion.dgwt-wcas-suggestion-headline {
  font-family: "Source Sans Pro", sans-serif !important;
  font-weight: 600 !important;
  color: #666 !important;
  font-size: 13px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

@media (max-width: 991px) {
  .dgwt-wcas-om-bar .dgwt-wcas-search-wrapp-mobile {
    padding-top: 20px;
    width: calc(100% - 62px);
  }
  .dgwt-wcas-open-pirx.dgwt-wcas-overlay-mobile-on
    .dgwt-wcas-om-bar
    button.dgwt-wcas-om-return
    svg {
    top: 33px;
  }
  .dgwt-wcas-open-pirx-compact .dgwt-wcas-details-wrapp,
  .dgwt-wcas-open-pirx-compact .dgwt-wcas-suggestions-wrapp {
    margin-top: 32px;
  }
}
