@charset "UTF-8";

:root {
  --bg-color: #fff;
  --bg-color-alt: #fafafa;
  --text-color: #333;

  --link-color: #192c56;
  --link-color-hover: #07478f;

  --input-color: #000;
  --input-bg-color: #fff;
  --input-border-color: #ddd;
  --input-border-color-focus: #999;
  --input-border-radius: 4px;

  --button-color: #fff;
  --button-bg-color: #07478f;
  --button-bg-color-hover: #165ba8;
  --button-alt-color: #333;
  --button-alt-bg-color: #f5f5f5;
  --button-alt-bg-color-hover: #ddd;
  --button-border-radius: 8px;
}

* {
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
}

*::before,
*::after {
  box-sizing: border-box;
}

body {
  min-width: 375px;
  background: var(--bg-color);
  font-size: 16px;
  line-height: 1.5;
  font-family: Roboto, Arial, sans-serif;
  color: var(--text-color);
}

/******************************/

.bbcode-slider-wrapper {
  position: relative;
  margin: 20px 0px 10px 0px;
  display: flex;
  align-items: center;
}

.bbcode-slider {
  width: 100%;
  display: flex;
  gap: 20px;
  align-items: center;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

.bbcode-slider::-webkit-scrollbar {
  display: none;
}

.bbcode-slider > * {
  scroll-snap-align: start;
  flex-shrink: 0;
  width: calc(33.333% - 13.333px);
}

.bbcode-slider img {
  display: block;
}

/******************************/

.bbcode-slider-controls {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.bbcode-slider-button {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--button-bg-color) center center / 30px auto no-repeat;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 1;
}

.bbcode-slider-button-left {
  background-image: url(../img/icon-arrow-left.svg);
}

.bbcode-slider-button-right {
  background-image: url(../img/icon-arrow-right.svg);
}

.bbcode-slider-button-disabled {
  opacity: 0.5;
  cursor: default;
}

.bbcode-slider-pages {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.bbcode-slider-pages a {
  width: 15px;
  height: 15px;
  margin: 5px 10px;
  border-radius: 50%;
  border: 2px solid #dedede;
  cursor: pointer;
}

.bbcode-slider-pages a:hover,
.bbcode-slider-pages .bbcode-slider-pages-active {
  background: var(--button-bg-color);
  border: 2px solid var(--button-bg-color);
}

/******************************/

@media (max-width: 1024px) {
}

@media (max-width: 768px) {
  .bbcode-slider > * {
    width: calc(50% - 10px);
  }
}

@media (max-width: 640px) {
  .bbcode-slider > * {
    width: 100%;
  }
}

/******************************/

.tabs-toggle {
  padding: 0px;
  margin: 0px;
  display: flex;
  align-items: flex-end;
  border-bottom: 1px solid #ccc;
}

.tabs-toggle li {
  display: block;
  position: relative;
  top: 1px;
  margin-left: 10px;
  border: 1px solid #ccc;
  border-radius: 4px 4px 0 0;
  background: #f1f1f1;
  line-height: 30px;
}

.tabs-toggle li a {
  display: block;
  padding: 0px 10px;
  color: #333;
  text-transform: uppercase;
  text-decoration: none;
}

.tabs-toggle li.tabs-toggle-active,
.tabs-toggle li:hover {
  border-bottom: 1px solid #fff;
  background: #fff;
}

.tabs-content {
  display: none;
  margin-top: 20px;
}

.tabs-content-toggle {
  display: none;
  align-items: center;
  height: 40px;
  padding: 0px 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #f1f1f1 url(../img/tabs-open.svg) right 10px center / 20px auto no-repeat;
  color: #333;
  text-decoration: none;
}

.tabs-content-toggle-active {
  background-image: url(../img/tabs-close.svg);
}

.tabs-content-toggle:hover {
  color: #333;
}

@media (max-width: 1024px) {
  .tabs-toggle {
    display: none;
  }
  .tabs-content {
    display: block;
    overflow: hidden;
    height: 40px;
    margin: 0px 0px 10px 0px;
  }
  .tabs-content-toggle {
    display: flex;
  }
}

/******************************/

.bbcode-align-left {
  float: left;
  margin-right: 40px;
}

.bbcode-align-center {
  display: block;
  margin: 0px auto;
  text-align: center;
}

.bbcode-align-right {
  float: right;
  margin-left: 40px;
}

/******************************/

.bbcode-table {
  border-collapse: collapse;
}

.bbcode-table th {
  font-weight: normal;
  border: 1px solid #325a49;
  background: #325a49;
  color: #fff;
  padding: 5px 15px;
}

.bbcode-table td {
  padding: 5px 15px;
  border: 1px solid #325a49;
}

/******************************/

.bbcode-ol,
.bbcode-ul {
  padding-left: 40px;
}

/******************************/

.wrapper {
  margin: 0 auto;
  min-height: 100vh;
  display: flex;  
}

.content-wrapper {
  margin-left: 325px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.content {
  padding: 10px 40px 40px 40px;
}

/******************************/

h1 {
  font-size: 170%;
  font-weight: normal;
  margin-bottom: 20px;
  line-height: 1.2;
}

h2 {
  font-size: 140%;
  font-weight: normal;
  margin-bottom: 10px;
  line-height: 1.2;
}

h3 {
  font-size: 125%;
  margin-bottom: 5px;
  font-weight: normal;
}

img {
  display: inline-block;
  max-width: 100%;
}

hr {
  border: none;
  border-bottom: 1px solid var(--input-border-color);
  margin: 20px 0;
}

sup {
  vertical-align: super;
  line-height: 0;
}

sub {
  vertical-align: sub;
  line-height: 0;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

a {
  color: var(--link-color);
}

a:hover {
  color: var(--link-color-hover);
}

@media (max-width: 1366px) {
  .content-wrapper {
    margin-left: 50px;
  }
}

@media (max-width: 1024px) {
  .content-wrapper {
    margin: 0;
  }
  .content {
    padding: 20px 20px 40px 20px;
  }
}

@media (max-width: 768px) {
  .content {
    padding: 20px 10px 40px 10px;
  }
}
/******************************/

.edit {
  display: block;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  opacity: 0.7;
  background: #ccc url(../img/icon-edit.svg) center center no-repeat;
  background-size: 20px auto;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}
.edit:hover {
  opacity: 1;
}

@media print {
  .edit {
    display: none;
  }
}

/******************************/

.footer {
  margin-top: auto;
  background: #07478f;
  padding: 40px;
  color: #fff;
}

.footer a {
  color: #fff;
  text-decoration: none;
}

.footer a:hover {
  color: #ddd;
}

.footer-nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.footer-menu {
  text-transform: uppercase;
}

.footer-menu > ul {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.footer-menu li {
  display: block;
}

.footer-menu a {
  display: block;
  text-decoration: none;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-transform: uppercase;
}

.footer-links a {
  font-size: 14px;
}

.footer-callback {
  font-weight: bold;
  text-transform: uppercase;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f5f5f5 center center / 60% auto no-repeat;
}

.footer-social a.footer-social-ig {
  background-image: url(../img/social-ig.svg);
}
.footer-social a.footer-social-vk {
  background-image: url(../img/social-vk.svg);
}
.footer-social a.footer-social-ok {
  background-image: url(../img/social-ok.svg);
}
.footer-social a.footer-social-yt {
  background-image: url(../img/social-yt.svg);
}
.footer-social a.footer-social-tg {
  background-image: url(../img/social-tg.svg);
}
.footer-social a.footer-social-wa {
  background-image: url(../img/social-wa.svg);
}

.footer-contacts {
  display: flex;
  flex-direction: column;
}

.footer-phone {
  font-size: 30px;
  font-weight: bold;
  line-height: 1;
}

.footer-address {
  margin-top: 10px;
  font-size: 12px;
}

.footer-copyright {
  margin-top: 20px;
  align-self: end;
}

.footer-dev {
  margin-top: 20px;
  align-self: end;
  font-size: 80%;
}

/*****************/

.footer-buttons {  
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  display: flex;
  display: none;  
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 10px 20px;
  background: #fff;
  z-index: 3;
  box-shadow: 0 0 10px #00000020;
}

@media (max-width: 1024px) {
  .footer {
    padding: 40px 20px;
  }
  .footer-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .footer-menu > ul {
    align-items: end;
    text-align: right;
  }
  .footer-social {
    grid-area: 2 / 1 / 2 / 3;
    justify-content: center;
  }
  .footer-callback-wrapper {
    grid-area: 3 / 1 / 3 / 3;
    text-align: center;
  }
  .footer-contacts {
    grid-area: 4 / 1 / 4 / 3;    
    text-align: center;
  }
  .footer-copyright {
    align-self: center;
  }
  .footer-dev {
    align-self: center;
  }
  .footer-buttons {  
    display: flex;
  }
}

@media (max-width: 768px) {
   .footer {
    padding: 40px 10px;
  }
  .footer-buttons {  
    padding: 10px;
  }  
}

/******************************/

.form {
}

.form > label,
.form > div {
  display: block;
  margin-top: 20px;
}

.form > label.col2,
.form > div.col2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 20px;
}

.form > label.col3,
.form > div.col3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-gap: 20px;
}

.content input[type="text"],
.content input[type="email"],
.content input[type="tel"],
.content input[type="password"],
.content input[type="search"],
.content textarea,
.content select {
  display: block;
  width: 100%;
  padding: 5px;
  border: 1px solid var(--input-border-color);
  border-radius: var(--input-border-radius);
  background-color: var(--input-bg-color);
  color: var(--input-color);
  font: inherit;
}

.content input:focus,
.content textarea:focus,
.content select:focus {
  outline: 0;
  border: 1px solid var(--input-border-color-focus);
}

a.button,
button, 
.content input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 20px;
  background-color: var(--button-bg-color);  
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--button-bg-color);
  border-radius: var(--button-border-radius);
  font: inherit;
  text-decoration: none;
  color: var(--button-color);
  white-space: nowrap;
  transition: background 0.2s ease;
  cursor: pointer;
}

a.button:hover,
button, 
.content input[type="submit"]:hover {
  color: var(--button-color);
  background-color: var(--button-bg-color-hover);
  border: 1px solid var(--button-bg-color-hover);
}

a.button-alt {
  color: var(--button-alt-color);
  background-color: var(--button-alt-bg-color);
  border: 1px solid var(--button-alt-bg-color);
}

a.button-alt:hover {
  color: var(--button-alt-color);
  background-color: var(--button-alt-bg-color-hover);
  border: 1px solid var(--button-alt-bg-color-hover);
}

.checkbox {
  display: flex;
  align-items: center;
  grid-gap: 10px;
}

@media (max-width: 1024px) {
  .form > label.col3,
  .form > div.col3 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .form > label.col2,
  .form > div.col2 {
    grid-template-columns: 1fr;
  }

  .form > label.col3,
  .form > div.col3 {
    grid-template-columns: 1fr;
  }
}

/************************************/

.required {
  color: #c00;
}

.message-error {
  margin: 20px 0px;
  padding: 5px 10px;
  color: #fff;
  background: #f44336;
}

.message-success {
  margin: 20px 0px;
  padding: 5px 10px;
  color: #fff;
  background: #43a047;
}

.message-error a,
.message-success a {
  color: #fff;
}

/******************************/

.modal-wrapper {
  /* body */
  min-height: auto;
}

.modal-wrapper .content {
  width: 100%;
  background: var(--bg-color);
  padding: 20px;
}

.modal-wrapper h1 {
  text-align: center;
}

/************************************/

.modal-wrapper .form > label,
.modal-wrapper .form > div {
  display: block;
  margin-top: 20px;
}

.modal-wrapper .form input,
.modal-wrapper .form select,
.modal-wrapper .form textarea {
  width: 100%;
  max-width: 100%;
}

.modal-wrapper .form input[type="checkbox"],
.modal-wrapper .form input[type="radio"] {
  width: auto;
  max-width: none;
}

/******************************/

.header-search {
  margin-top: 40px;
  display: flex;
  height: 40px;
  background: #fff;
  color: #666;
}

.header-search input[type="search"] {
  width: 100%;
  padding: 5px 10px;
  border: 1px solid transparent;
  background: transparent;
  font: inherit;
  color: #666;
  outline: none;
}

.header-search input[type="search"]::placeholder {
  color: #666;
}

.header-search input[type="submit"] {
  flex-shrink: 0;
  width: 40px;
  font-size: 0;
  line-height: 0;
  border: 1px solid transparent;
  padding: 5px;
  background: url(../img/header-search.svg) center center / 24px auto no-repeat;
  cursor: pointer;
}

/******************************/

.navigation-control {
  padding-bottom: 40px;
  position: fixed;
  width: 50px;
  height: 100%;
  display: none;
  flex-direction: column;
  justify-content: end;
  align-items: center;
  left: 0;
  top: 0;
  background: #fff url(../img/header-menu-show.svg) center top 10px / 30px auto no-repeat;
  z-index: 5;
  box-shadow: 0 0 10px #00000020;
  color: var(--text-color);
  font-size: 18px;
}

.navigation-control:hover {
  color: var(--text-color);
}

.navigation-control span {
  transform: rotate(-90deg);
}

.navigation-control-hide {
  background-image: url(../img/header-menu-hide.svg);
}

.navigation-wrapper {
  position: fixed;
  z-index: 4;
  width: 325px;
  background: #f5f5f5;
  height: 100vh;
  overflow-y: scroll;
  scrollbar-width: thin;
  scrollbar-color: #8C8C8C #C4C4C4;
}

.navigation-wrapper::-webkit-scrollbar {
  width: 8px;
}
.navigation-wrapper::-webkit-scrollbar-track {
  background: #C4C4C4;
  border: none;
}
.navigation-wrapper::-webkit-scrollbar-thumb {
  background-color: #8C8C8C;
  border: none;
}

.navigation {
  position: relative;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/*********************/

.navigation-close {
  width: 40px;
  height: 40px;
  position: fixed;
  margin-left: 250px;
  top: 15px;
  background: url(../img/header-menu-hide.svg) center center / 30px auto no-repeat;
  display: none;
}

.logo-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 80px;
}

.logo {
  width: 250px;
  height: 50px;
  background: url(../img/logo-pb-all.png) center center / contain no-repeat;
}

.logo-toggle {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  background: #fff url(../img/logo-arrow.svg) center center / 15px auto no-repeat;
  border-radius: 50%;
}

.logo-toggle:hover {
  background-image: url(../img/logo-arrow-hover.svg);
}

.logo-toggle.toggled {
  transform: rotate(180deg);
  background-image: url(../img/logo-arrow-hover.svg);
}

.logo-popup {
  position: absolute;
  margin-left: -20px;
  margin-top: 70px;
  display: flex;
  display: none;
  padding: 25px 15px;
  background: #fff;
  box-shadow: 0 0 10px #00000020;
}

.logo-lab {
  width: 250px;
  height: 50px;
  background: url(../img/logo-lab-all.png) center center / contain no-repeat;
}

/********************/

.navigation-sale {  
  align-self: start;
  padding: 5px 10px;
  background: #d13139;
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
}

.navigation-sale:hover {
  color: #fff;
}

.navigation-link {
  margin-top: 5px;
  color: #404040;
  font-weight: 500;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 14px;
}

.navigation-link:hover {
  color: #07478f;
}

/*********************/

.menu-categories {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}

.menu-categories > li {
  margin-top: 5px;
  display: block;
}

.menu-categories > li > a {
  display: block;
  color: #404040;
  font-weight: 500;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.2;
}

.menu-categories > li > a:hover {
  color: #07478f;
}

.menu-categories ul {
  margin-left: 20px;
}

.menu-categories ul li {
  display: block;
}

.menu-categories ul li a {
  display: block;
  margin-top: 3px;
  padding: 5px 15px;
  text-decoration: none;
  line-height: 1.2;
  color: #404040;
  border-radius: 8px;
}

.menu-categories ul li a:hover,
.menu-categories ul li a.active {
  background: #fff;
  color: #07478f;
}

.menu-categories > li > ul > li > a {
  font-weight: 500;
}

@media (max-width: 1366px) {
  .navigation-control {
    display: flex;
  }
  .navigation-wrapper {
    margin-left: -400px;
    box-shadow: 0 0 10px #00000020;
  }
  .logo-wrapper {
    display: none;
  }  
}

@media (max-width: 1024px) {
  .navigation-control {
    display: none;
  }
  .navigation {
    padding: 20px 20px 80px 20px;
  }
  .navigation-close {
    display: block;
  }
}
/******************************/

.perks {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
}

.perks > div {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.perks span {
  display: flex;
  align-items: center;
  gap: 20px;
}

.perks img {
  max-width: 100px;
  max-height: 100px;
}
/******************************/

.login-form {
  display: flex;
  flex-wrap: wrap;
  grid-gap: 40px;
}

/******************************/

.brands {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-gap: 20px 20px;
}

.brands li {
  display: block;
  border: 1px solid #eee;
  transition: all 0.2s ease;
}

.brands li:hover {
  box-shadow: 0 0 10px rgba(50, 50, 50, 0.3);
}

.brands a {
  height: 100%;
  padding: 10px 20px 10px 20px;
  display: flex;
  align-items: center;
  grid-gap: 20px;
  text-decoration: none;
  color: var(--text-color);
}

.brands img {  
  max-width: 100px;
  max-height: 50px;
}

.brands span {
}

@media (max-width: 1024px) {
  .brands {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .brands {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .brands {
    grid-template-columns: 1fr;
  }
}

/******************************/

.cart-wrapper {
  display: flex;
  justify-content: space-between;
  grid-gap: 80px;
}

/***********************/

.cart-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cart-list > div {
  width: 100%;
  padding: 20px;
  display: grid;
  gap: 10px 20px;
  grid-template-columns: 100px 2fr 1fr 1fr;
  grid-template-areas:
    "image title quantity price"
    "image controls price-unit .";
  background: var(--bg-color-alt);
  border: 1px solid #b0b0b0;
}

.cart-list > div.cart-outofstock {
  background: #eee;
  grid-template-areas:
    "image title outofstock outofstock"
    "image controls . .";
}

.cart-image {
  grid-area: image;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 100px;
  max-height: 100px;
}

.cart-image img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  mix-blend-mode: multiply;
}

.cart-title {
  grid-area: title;
}

.cart-good {
  display: block;
  font-size: 120%;
}

.cart-variant {
  grid-area: variant;
  font-size: 100%;
}

/********************/

.cart-quantity {
  grid-area: quantity;
  justify-self: center;
  align-self: start;
}

.cart-quantity-wrapper {
  max-width: 150px;
  height: 40px;
  display: inline-flex;
  border: 1px solid var(--input-border-color);
  border-radius: 20px;
  overflow: hidden;
}

.cart-quantity a {
  flex-shrink: 0;
  width: 40px;
  background: var(--bg-color) center center / 24px auto no-repeat;
}

.cart-quantity a.cart-quantity-dec {
  background-image: url(../img/icon-minus.svg);
}

.cart-quantity a.cart-quantity-inc {
  background-image: url(../img/icon-plus.svg);
}

.cart-quantity a:hover {
  background-color: #f1f1f1;
}

.cart-quantity input[type="text"] {
  width: 100%;
  min-width: 40px;
  border: 1px solid transparent;
  border-left: 1px solid var(--input-border-color);
  border-right: 1px solid var(--input-border-color);
  border-radius: 0;
  text-align: center;
}

.cart-quantity input[type="text"]:focus {
  border: 1px solid var(--input-border-color-focus);
}

/********************/

.cart-price {
  grid-area: price;
  justify-self: end;
  text-align: right;
}

.cart-price span {
  font-size: 120%;
  font-weight: bold;
}

.cart-price-old {
  color: #ccc;
  text-decoration: line-through;
  text-decoration-color: #c00;
}

.cart-outofstock-message {
  grid-area: outofstock;
}

/********************/

.cart-controls {
  grid-area: controls;
  display: flex;
  align-items: center;
  grid-gap: 10px;
}

.cart-controls > * {
  display: inline-block;
  width: 24px;
  height: 24px;
  background: center center / 24px auto no-repeat;
  opacity: 0.75;
}

.cart-controls > *:hover {
  opacity: 1;
}

.cart-controls .cart-wishlist {
  background-image: url(../img/icon-wishlist.svg);
}

.cart-controls .cart-delete {
  background-image: url(../img/icon-delete.svg);
}

/***********************/

.cart-summary {
  flex-shrink: 0;
  align-self: flex-start;
  position: sticky;
  top: 0;
  padding: 40px;
  display: flex;
  flex-direction: column;
  grid-gap: 20px;
  background: var(--bg-color-alt);
  border: 1px solid #b0b0b0;
}

/********************/

.cart-goods,
.cart-discount,
.cart-total {
  display: flex;
  grid-gap: 20px;
  justify-content: space-between;
  align-items: center;
}

.cart-goods span,
.cart-discount span,
.cart-total span {
  font-size: 18px;
  font-weight: bold;
}

/********************/

.cart-coupon-wrapper {
  display: flex;
  flex-direction: column;
  grid-gap: 5px;
}

.cart-coupon {
  display: flex;
  justify-content: space-between;
  align-items: center;
  grid-gap: 20px;
}

.cart-coupon > div:first-child {
  display: flex;
  align-items: center;
  grid-gap: 10px;
}

.cart-coupon-delete {
  display: inline-block;
  width: 20px;
  height: 20px;
  background: url(../img/icon-delete.svg) center center / 20px auto no-repeat;
}

.cart-coupon-discount {
}

.cart-coupon-discount span {
  font-size: 18px;
  font-weight: bold;
}

.cart-coupon-info {
  font-size: 80%;
}

.cart-coupon-form {
  display: flex;
  flex-direction: column;
  grid-gap: 5px;
}

.cart-coupon-form > div {
  display: flex;
  align-items: center;
  grid-gap: 10px;
}

.cart-coupon-form input[type="text"] {
  font-size: 80%;
}

.cart-coupon-form input[type="submit"] {
  padding: 5px 10px;
  font-size: 80%;
}

/********************/

.cart-order {
  text-align: center;
}

.cart-order .button {
  width: 100%;
}

/********************/

.cart-variant-wrapper {
  display: grid;
  grid-gap: 20px;
}

.cart-variant-controls {
  display: flex;
  grid-gap: 20px;
}

/********************/

@media (max-width: 1024px) {
  .cart-wrapper {
    flex-direction: column;
    grid-gap: 40px;
  }
  .cart-summary {
    align-self: stretch;
    padding: 20px;
  }
}

@media (max-width: 640px) {
  .cart-list > div {
    grid-gap: 20px 20px;
    grid-template-columns: 120px 1fr 1fr;
    grid-template-areas:
      "image title title"
      "image controls controls "
      "image quantity price";
  }
  .cart-list > div.cart-outofstock {
    grid-template-areas:
      "image title title"
      "image controls controls"
      "image outofstock outofstock";
  }
  .cart-quantity {
    justify-self: start;
  }
  .cart-price {
    align-self: center;
  }
}

@media (max-width: 480px) {
  .cart-list > div {
    grid-gap: 20px 20px;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "image image"
      "title title"
      "controls controls"
      "quantity price";
  }
  .cart-list > div.cart-outofstock {
    grid-template-areas:
      "image image"
      "title title"
      "controls controls"
      "outofstock outofstock";
  }
  .cart-image {
    justify-self: center;
  }
}
/******************************/

.categories {
  display: flex;
  flex-wrap: wrap;
  grid-gap: 40px 20px;
  margin-bottom: 40px;
}

.categories li {
  width: 250px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  overflow: hidden;
}

.categories-image {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
}

.categories-image img {
  display: block;
  max-width: 100%;
  margin: 0 auto;
  mix-blend-mode: multiply;
  aspect-ratio: 1;
}

.categories-title {
  margin-top: auto;
  display: block;
  color: var(--text-color);
  text-decoration: none;
  text-align: center;
  line-height: 1.3;
  text-transform: uppercase;
}

/*********************/

.subcategories {
  display: flex;
  flex-wrap: wrap;
  grid-gap: 40px 20px;
  margin-bottom: 40px;
}

.subcategories li {
  width: 250px;
  display: flex;
  flex-direction: column;
  grid-gap: 10px;
  padding: 10px;
  overflow: hidden;
}

.subcategories-image {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
}

.subcategories-image img {
  display: block;
  max-width: 100%;
  margin: 0 auto;
  mix-blend-mode: multiply;
}

.subcategories-title {
  display: block;
  color: var(--text-color);
  text-decoration: none;
  text-align: center;
  line-height: 1.3;
  text-transform: uppercase;
  text-overflow: ellipsis;
}

/*********************/

@media (max-width: 1024px) {
  .categories,
  .subcategories {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;    
  }
  .categories li,
  .subcategories li {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .categories,
  .subcategories {
    grid-template-columns: 1fr 1fr;
    grid-gap: 40px 10px;
  }
}

@media (max-width: 480px) {
}

/******************************/

.filter {  
  display: flex;
  flex-direction: column;
  grid-gap: 20px;
  background: var(--bg-color-alt);
  padding: 20px;
}

.button.filter-toggle {
  align-self: flex-start;
  display: none;
  padding: 5px 40px 5px 50px;
  background-image: url(../img/icon-filter.svg), url(../img/icon-arrow-down.svg);
  background-repeat: no-repeat, no-repeat;
  background-position: left 15px center, right 10px center;
  background-size: 20px auto, 24px auto;
  cursor: pointer;
}

.filter-opened .button.filter-toggle {
  background-image: url(../img/icon-filter.svg), url(../img/icon-arrow-up.svg);
}

.filter form {
  display: flex;
  flex-direction: column;
  grid-gap: 20px;
}

.filter-section {
  position: relative;
}

.filter-section-title {
  margin-bottom: 10px;
  font-size: 120%;
}

/************************/

.filter-chosen-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  grid-gap: 10px;
}

.filter-chosen-title a {
  text-decoration: none;
  color: #999;
  font-size: 80%;  
}

.filter-chosen-title a:hover {
  color: #666;
}

.filter-chosen-list {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  grid-gap: 10px;
  font-size: 80%;
}

.filter-chosen-list a {
  padding: 5px 25px 5px 10px;
  border: 1px solid #eee;
  border-radius: var(--input-border-radius);
  background: var(--bg-color) url(../img/icon-close.svg) right 5px center / 16px auto no-repeat;
  color: #333;
  text-decoration: none;
  line-height: 1.2;
  cursor: pointer;
}

.filter-chosen-list a:hover {
  background-color: var(--bg-color-light);
  color: #000;
}

/************************/

.filter-price-range {
  margin: 20px 10px 20px 10px;
}

.filter-price-input {
  display: flex;
  justify-content: space-between;
  align-items: center;
  grid-gap: 20px;
}

.filter-price-input label {
  display: flex;
  align-items: center;
  grid-gap: 5px;
}

.filter-checkboxes {
  display: flex;
  flex-direction: column;
  grid-gap: 10px;
}

.filter-checkboxes label {  
  display: flex;
  align-items: center;
  grid-gap: 10px;
  cursor: pointer;
}

.filter-checkboxes-images img {
  max-width: 24px;
  max-height: 24px;
}

/*********************/

.filter-controls {
  display: flex;
  justify-content: space-between;
}

.filter-controls .filter-reset,
.filter-controls input[type="submit"] {
  padding: 5px 10px;
  font-size: 80%;
}

/*********************/

@media (max-width: 1024px) {
  .button.filter-toggle {
    display: inline-block;
  }
  .filter form {
    display: none;
  }
  .filter-opened form {
    display: flex;
  }
  .filter-checkboxes {
    grid-gap: 10px 20px;
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
  .filter-checkboxes label {
    width: auto;
  }
}

@media (max-width: 768px) {
  .filter-checkboxes {
    grid-gap: 10px 20px;
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .filter-checkboxes {
    grid-gap: 10px 20px;
    grid-template-columns: 1fr 1fr;
  }
}

/******************************/

.category-wrapper {
  display: flex;
  grid-gap: 40px;
  align-items: flex-start;
}

.category-content {
  width: 100%;
}

.category-loading {
  opacity: 0.5;
}

/**********************/

.category-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0px 0px 40px 0;
}

.category-controls-sort {
  display: flex;
  flex-wrap: wrap;
  grid-gap: 5px;
  align-items: center;
}

.category-controls-view {
  display: flex;
  align-items: center;
  grid-gap: 10px;
}

.category-controls-view-button {
  display: block;
  width: 24px;
  height: 24px;
  background: center center / contain no-repeat;
  opacity: 0.5;
}

.category-controls-view a:hover {
  opacity: 0.75;
}

.category-controls-view-active {
  opacity: 1;
}

.category-controls-view-grid {
  background-image: url(../img/icon-view-grid.svg);
}

.category-controls-view-list {
  background-image: url(../img/icon-view-list.svg);
}

/******************************/

.goods {
  display: flex;
  flex-wrap: wrap;
  grid-gap: 40px 20px;
}

.goods li {
  width: 275px;
  position: relative;
  padding: 20px;
  overflow: hidden;
}

.goods li:hover {
  box-shadow: 0px 0px 10px #00000030;
}

.goods-grid li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: space-between;
}

/*******************************/

.goods-controls {
  position: absolute;
  display: flex;
  justify-content: center;
  grid-gap: 10px;
  right: 20px;
  top: 15px;
  z-index: 2;
}

.goods-list .goods-controls {
  flex-direction: row;
}

.good-controls {
  display: flex;
  align-items: center;
  gap: 20px;
}

.good-controls a,
.goods-controls a {
  background: #f5f5f5 center center / 16px auto no-repeat;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  overflow: hidden;
  transition: opacity 0.2s ease;
  cursor: pointer;
}

.good-controls a {
  width: 40px;
  height: 40px;
  background-size: 24px auto;
}

a.goods-wishlist {
  background-image: url(../img/icon-wishlist.svg);
}

a.goods-wishlist-remove {
  background-color: #07478f;
  background-image: url(../img/icon-wishlist-remove.svg);
}

a.goods-compare {
  background-image: url(../img/icon-compare.svg);
}

a.goods-compare-remove {
  background-color: #07478f;
  background-image: url(../img/icon-compare-remove.svg);
}

/******************************/

.goods-image {
  width: 275px;
  height: 275px;
  margin-left: -20px;
  margin-top: -20px;
  padding: 0px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  aspect-ratio: 1;
  border-bottom: 1px solid transparent;
}

.goods-image img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  margin: 0px auto;
  z-index: 0;
  mix-blend-mode: multiply;
}

.goods-image-controls {
  width: 100%;
  position: absolute;
  bottom: -1px;
  display: flex;
  display: none;
  grid-gap: 1px;
}

.goods-list .goods-image {
  bottom: 1px;
}

.goods-image-controls a {
  width: 100%;
  height: 1px;
  background: #eee;
}

.goods-image-controls a.active {
  background: #bbb;
}

.goods-image:hover .goods-image-controls {
  display: flex;
}

/******************************/

.goods-tags {
  left: 20px;
  top: 20px;
  position: absolute;
  z-index: 1;
  grid-area: tags;
  align-self: start;
  display: flex;
  flex-wrap: wrap;
  grid-gap: 5px;
}

.goods-tags > span {
  font-size: 10px;
  display: inline-block;
  padding: 2px 5px;
  text-transform: uppercase;
  border-radius: 4px;
}

.goods-tags-new {
  background: #07478f;
  color: #fff;
}

.goods-tags-sale {
  background: #d13139;
  color: #fff;
}

.goods-tags-discount {
  background: #3ecbe7;
  color: #fff;
}

/******************************/

.goods-title {
  grid-area: title;
  display: block;
  font-size: 120%;
  color: #000;
  line-height: 1.3;
  text-decoration: none;
}

.goods-price {
  grid-area: price;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  color: #000;
}

.goods-price-call {
  font-size: 100%;
  display: block;
}

.goods-price-actual {
  white-space: nowrap;
  font-size: 18px;
  font-weight: bold;
  line-height: 1;
}

.goods-price-old {
  text-decoration: line-through;
  white-space: nowrap;
  font-size: 14px;
  color: #ccc;
  line-height: 1;
}

/******************************/

.goods-brand {
  grid-area: brand;
  display: flex;
  align-items: center;
  grid-gap: 10px;
}

.goods-brand-logo {
  display: flex;
  align-items: center;
}

.goods-brand-logo img {
  max-width: 20px;
  max-height: 20px;
}

.goods-brand-name {
  font-size: 80%;
}

/******************************/

.goods-specs {
  display: table;
  width: 100%;
  grid-area: specs;
  align-self: start;
  font-size: 80%;
  line-height: 1.2;
}

.goods-specs div {
  display: table-row;
}

.goods-specs span {
  display: table-cell;
  padding: 5px 0;
  border-bottom: 1px dotted #999;
}

.goods-specs div:last-child span {
  border: none;
}

.goods-specs div span:last-child {
  text-align: right;
}

/******************************/

.goods-variants {
}

.goods-variants-title {
  font-size: 16px;
}

.goods-variants-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.goods-variants-list a {
  padding: 5px 10px;
  border: 1px solid #b0b0b0;
  border-radius: 8px;  
  color: #333;
  font-size: 75%;
  cursor: pointer;
}

.goods-variants-list a.active,
.goods-variants-list a:hover {
  border: 1px solid #07478f;
  background: #07478f;
  color: #fff;
}

/******************************/

.goods-buttons {
  grid-area: buttons;
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.goods-buttons-to-cart {
  width: 40px;
  height: 40px;
  background-position: center center;
  background-size: 24px auto;
  background-repeat: no-repeat;
  background-image: url(../img/icon-cart.svg);
  border-radius: 50% !important;
}

.goods-buttons-to-cart-done {
  background-image: url(../img/icon-cart-done.svg);
}

/******************************/

@media (max-width: 1024px) {
  .category-wrapper {
    flex-direction: column;
  }
  .category-aside {
    width: 100%;
  }
  .goods {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;

  }
  .goods li {
    width: 100%;
    padding: 0;
  }
  .goods li:hover {
    box-shadow: none;
  }
  .goods-image {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    padding: 0;
    margin: 0;
  }
  .goods-image img {
    max-height: 100%;
  }
}

@media (max-width: 768px) {
  .goods {
    grid-gap: 40px 40px;
  }
  .goods-grid {
    grid-template-columns: 1fr 1fr;
  }
  .category-content .goods-grid {
    grid-template-columns: 1fr 1fr;
  }
  .goods-specs {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }
  .goods-specs div {
    display: block;
    border: 1px dotted #999;
  }
  .goods-specs div:last-child {
    border: none;
  }
  .goods-specs span {
    display: inline-block;
    padding: 0;
    border: none;
  }
  .goods-specs div span:first-child:after {
    content: ":";
  }  
  .goods-specs div span:last-child {
    text-align: left;
  }
}

@media (max-width: 480px) {

}

/******************************/

.compare-header {
  display: flex;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.compare-controls {
  display: flex;
  flex-direction: column;
  justify-content: end;
  grid-gap: 20px;
  padding: 0px 40px 0 0 !important;
}

.compare-controls a {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5px 20px;
  font-size: 14px;
  color: #fff;
  background: #07478f;
  text-decoration: none;
  text-align: center;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.compare-controls a:hover {
  background: #07478f;
}

.compare-header-good {
  position: relative;
  width: 100%;
  min-width: 33.33%;
  max-width: 33.33%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0 40px;
}

.compare-delete {
  position: absolute;
  right: 20px;
  display: block;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: url(../img/icon-delete.svg) center center no-repeat;
  background-size: 20px 20px;
}

.compare-image {
  display: block;
  min-height: 100px;
}

.compare-image img {
  margin: 0 auto;
  display: block;
  max-width: 100px;
  max-height: 100px;
}

.compare-title {  
  text-align: center;
  line-height: 1.2;
}

.compare-info {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
}

.compare-price {
  margin-top: auto;
  text-align: center;
  white-space: nowrap;
  font-size: 18px;
}

.compare-to-cart {
  background-position: center center;
  background-size: 24px auto;
  background-repeat: no-repeat;
  text-indent: 30px;
}

.compare-show-all {
  cursor: pointer;
}

.compare-show-different {
  cursor: pointer;
}

.compare-specs {
  display: flex;
  border-bottom: 1px solid #eee;
}

.compare-specs-hidden {
  display: none;
}

.compare-specs:hover {
  background: #f5f5f5;
}

.compare-specs-name {
  width: 20%;
  padding: 5px 10px;
  flex-shrink: 0;
  flex-grow: 0;
}

.compare-spec {
  padding: 5px 10px;
  width: 100%;
  min-width: 33.33%;
  max-width: 33.33%;
  text-align: center;
}

.compare-left {
  width: 40px;
  flex-shrink: 0;
  align-self: center;
}

.compare-right {
  width: 40px;
  flex-shrink: 0;
  align-self: center;
}

.compare-scroll {
  width: 100%;
  display: flex;
  overflow: hidden;
}

.compare-scroll-button {
  display: inline-block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #07478f center center / auto 24px no-repeat;
  cursor: pointer;
  transition: 0.2s opacity ease;
}

.compare-scroll-button-left {
  background-image: url(../img/icon-arrow-left.svg);
}

.compare-scroll-button-right {
  background-image: url(../img/icon-arrow-right.svg);
}

.compare-scroll-button:hover {
  background-color: #07478f;
}

.compare-scroll-button-disabled {
  opacity: 0;
  cursor: default;
}

@media (max-width: 1024px) {
  .compare-spec {
    min-width: 50%;
    max-width: 50%;
  }
  .compare-header-good {
    min-width: 50%;
    max-width: 50%;
  }
}

@media (max-width: 768px) {
  .compare-controls a {
    display: none;
  }
  .compare-specs-name {
    width: 40%;
  }
  .compare-spec {
    min-width: 100%;
    max-width: 100%;
  }
  .compare-header-good {
    min-width: 100%;
    max-width: 100%;
  }
}

/******************************/

.good-wrapper {
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  grid-gap: 80px;
}

/******************************/

.good {  
  display: flex;
  gap: 80px;
}

.good-photos {
  width: 50%;
  display: flex;
  grid-gap: 20px;
}

.good-info {
  width: 50%;
  display: flex;
  flex-direction: column;
  grid-gap: 20px;
}

@media (max-width: 1024px) {
  .good {  
    gap: 40px;
  }
  .good-photos {
    width: 40%;
  }
  .good-info {
    width: 60%;
  }
}

@media (max-width: 768px) {
  .good {
    flex-direction: column;
  }
  .good-photos {
    width: 100%;
  }
  .good-info {
    width: 100%;
  }  
}

/******************************/

.good-photos {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.good-photos-all {
  flex-shrink: 0;
  max-height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  overflow-y: scroll;
  scrollbar-width: none;
}

.good-photos-all a {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  border: 1px solid #ddd;
}

.good-photos-all img {
  display: block;
  max-width: 100%;
  max-height: 100%;
}

@media (max-width: 768px) {
  .good-photos-all {
    display: flex;
    margin-left: -10px;
    margin-right: -10px;
    padding: 0 10px;
  }
  .good-photos-all a {
    width: 150px;
    height: 150px;
  }
}

@media (max-width: 480px) {
}

/******************************/

.good-photos-main {
  width: 100%;
}

.good-photos-main a {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.good-photos-main img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  margin: 0px auto;
}

/******************************/

.good-controls-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.good-brand {
  display: flex;
  align-items: center;
  grid-gap: 10px;
  text-decoration: none;
  color: var(--text-color);
}

.good-brand:hover {
  color: var(--text-color);
}

.good-brand-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.good-brand-logo img {
  max-width: 60px;
  max-height: 60px;
}

.good-brand-name {
}

/******************************/

.good-title {
  display: flex;
  align-items: center;
}

.good-title h1 {
  margin: 0;
}

/******************************/

.good-variants {
  display: flex;
  grid-gap: 10px;
  flex-wrap: wrap;
  justify-content: start;
}

.good-variants label {
  cursor: pointer;
}

.good-variants input {
  display: none;
}

.good-variant {
  display: flex;
  grid-gap: 10px;
  padding: 10px 15px;
  height: 100%;
  border: 1px solid #b0b0b0;
  border-radius: 8px;
}

.good-variant-image {
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.good-variant-image img {
  display: block;
  max-width: 100%;
  max-height: 100%;
}

.good-variant-title {
  display: flex;
  align-items: center;
  font-size: 100%;
}

.good-variants input:checked + .good-variant {
  border: 1px solid #07478f;
  background: #07478f;
  color: #fff;
}

/******************************/

.good-price {
  display: flex;
  flex-direction: column;
}

.good-price-actual {
  color: #000;
  font-size: 20px;
  font-weight: bold;
}

.good-price-old {
  text-decoration: line-through;
  color: #ccc;
}

/******************************/

.good-panel {
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 40px;
  background: #f5f5f5;
  border: 1px solid #b0b0b0;
}

.good-quantity {
  height: 40px;
  display: flex;
  justify-content: center;
  border: 1px solid var(--input-border-color);
  border-radius: 20px;
  overflow: hidden;
}

.good-quantity a {
  flex-shrink: 0;
  min-width: 40px;
  background: var(--input-bg-color) center center / 24px auto no-repeat;
}

.good-quantity a:hover {
  background-color: #f1f1f1;
}

.good-quantity a.good-quantity-dec {
  background-image: url(../img/icon-minus.svg);
}

.good-quantity a.good-quantity-inc {
  background-image: url(../img/icon-plus.svg);
}

.good-quantity input[type="text"] {
  min-width: 40px;
  padding: 0 5px;
  border: 1px solid transparent;
  border-left: 1px solid var(--input-border-color);
  border-right: 1px solid var(--input-border-color);
  border-radius: 0;
  text-align: center;
}

.good-quantity input[type="text"]:focus {
  border: 1px solid var(--input-border-color-focus);
}

.good-to-cart {
  background-position: left 20px center;
  background-size: 24px auto;
  background-repeat: no-repeat;
  background-image: url(../img/icon-cart.svg);
  text-indent: 30px;
}

.good-to-cart-done {
  background-image: url(../img/icon-cart-done.svg);
}

.good-delivery {
  margin-top: 40px;  
}

.good-delivery h3 {
  color: #07478f;
}

/******************************/

.good-text {
  display: flex;
  gap: 80px;
}

.good-text h2 {
  color: #07478f;
}

.good-text > div {
  width: 100%;
}

.good-equipment {
  margin-top: 40px;
}

.good-specs-list {
  width: 100%;
  columns: 1;
  column-gap: 80px;
}

.good-specs-list dl {
  width: 100%;
  display: inline-flex;
  padding: 10px 0px;
  border-bottom: 1px solid #eee;
}

.good-specs-list dt {
  width: 60%;
  color: #777;
}

.good-specs-list dd {
  width: 40%;
  text-align: right;
}

@media (max-width: 1024px) {
  .good-text {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .good-text {
    flex-direction: column;
  }
  .good-specs-list {
    columns: 1;
  }
}

/******************************/

.good-related {
}

.good-related .goods-grid {
  grid-template-columns: repeat(4, 1fr);
}

.good-related .goods-grid li {
  grid-template-areas:
    "image"
    "title"
    "price";
}

.good-related .goods-title {
  font-size: 100%;
}

/******************************/

.good-viewed-title {
  margin-bottom: 20px;
}

.good-viewed ul {
  display: grid;
  grid-gap: 40px;
  grid-template-columns: repeat(8, 1fr);
}

.good-viewed li {
  display: flex;
  justify-content: center;
  align-items: center;
}

.good-viewed a {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  transition: all 0.2s ease;
  margin: 0;
}

.good-viewed a:hover {
  box-shadow: 0 0 10px rgba(50, 50, 50, 0.3);
}

.good-viewed .goods-image {
  width: 100%;
  height: auto;
}

.good-viewed .goods-image img {
  display: block;
  flex-shrink: 0;
  max-width: 100%;
  max-height: 100%;
}

@media (max-width: 1024px) {
  .good-viewed ul {
    grid-template-columns: repeat(6, 1fr);
  }  
  .good-panel {
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .good-viewed ul {
    grid-template-columns: repeat(4, 1fr);
  }
  .good-variant-title {
    font-size: 90%;
  }
  .good-panel {
    padding: 20px 10px;
  }
  .good-quantity {
    height: 30px;
  }
  .good-quantity a {
    min-width: 30px;
  }
  .good-quantity input[type="text"] {
    min-width: 30px;
  }
  .good-to-cart.button {
    background-position: left 10px center;
    text-indent: 20px;
    padding-right: 10px;
  }
}

@media (max-width: 480px) {
  .good-viewed ul {
    grid-template-columns: repeat(3, 1fr);
  }
}

/******************************/

.index-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.index-wrapper > div {
  display: flex;
  width: 50%;
}

.index-wrapper > div:nth-child(odd) {
  justify-content: end;
}
.index-wrapper > div:nth-child(even) {
  justify-content: start;
}

.index-left-header {
  width: 100%;
  height: 678px;
  padding-right: 150px;
  padding-top: 80px;
  display: flex;
  flex-direction: column;
  align-items: end;
  background: url(../img/index-left.jpg) right center / auto 100% no-repeat;
}

.index-left-logo {
  width: 300px;
  height: 300px;
  background: url(../img/logo-pb.svg) center center / contain no-repeat;
}

.index-left-button {
  margin-top: 70px;
  width: 300px;
  padding: 20px;
  border: 1px solid #fff;
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
  text-align: center;
  text-transform: uppercase;
  font-size: 20px;
}

.index-left-button:hover {
  color: #fff;
}

/***************************/

.index-right-header {
  width: 100%;
  height: 678px;
  padding-left: 250px;
  padding-top: 120px;
  display: flex;
  flex-direction: column;
  align-items: start;
  background: url(../img/index-right.jpg) left center / auto 100% no-repeat;
}

.index-right-logo {
  width: 500px;
  height: 200px;
  background: url(../img/logo-pbl.png) center center / contain no-repeat;
}

.index-right-button-wrapper {
  margin-top: 87px;
  width: 600px;
  padding: 45px 100px 60px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url(../img/index-right-button-bg.png) center center / 100% auto no-repeat;
}

.index-right-button {
  width: 300px;
  padding: 20px;
  border: 1px solid #fff;
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
  text-align: center;
  text-transform: uppercase;
  font-size: 20px;
}

.index-right-button:hover {
  color: #fff;
}

.index-left-button:hover {
  color: #fff;
}

/*****************************/

.index-left-categories-wrapper {
  align-items: center;
}

.index-left-categories {
  justify-self: end;
  max-width: 960px;
  padding: 50px 40px;
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 10px;
}

.index-left-categories a {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 12%;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 12px;  
}

.index-left-categories span {
  overflow: hidden;
  padding: 20px;
  margin: 5px;
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: 5px 5px 10px #00000050;
  background: #07478f;
}

.index-left-categories b {
  font-weight: normal;
  text-align: center;
  line-height: 1.3;
}

/******************************/

.index-right-services {
  max-width: 960px;
  padding: 40px 80px;
  display: flex;
  justify-content: space-between;
  align-items: start;
  background: #f5f5f5;
}

.index-right-services a {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 20%;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 12px;
}

.index-right-services span {
  overflow: hidden;
  padding: 20px;
  background: #f7f7f9;
  border-radius: 50%;
  box-shadow: 5px 5px 10px #00000050;
}

.index-right-services b {
  font-weight: normal;
  text-align: center;
  line-height: 1.3;
}

/***************************/

.index-left-text {
  max-width: 960px;
  padding: 40px 80px;
  background: #07478f;
  color: #fff;
}

.index-left-text a {
  color: #fff;
}

.index-left-text a:hover {
  color: #fff;
}

/*****************************/

.index-right-text {
  max-width: 960px;
  padding: 40px 80px;
}

.index-right-text h2 {
  color: #07478f;
  font-size: 170%;
}

/*****************************/

@media (max-width: 1600px) {
  .index-left-header {
    padding-right: 100px;
    padding-top: 80px;
    display: flex;
    flex-direction: column;
    align-items: end;
  }
  .index-left-categories {
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
  }
  .index-left-categories a {
    width: 120px;
  }
  .index-right-header {
    width: 100%;
    height: 678px;
    padding-left: 100px;
    padding-top: 120px;
    display: flex;
    flex-direction: column;
    align-items: start;
  }
  .index-right-services {
    padding: 50px 40px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
  }
  .index-right-services a {
    width: 120px;
  }
}

@media (max-width: 1366px) {
  .index-left-header {
    padding: 0px 80px;
    height: 550px;
    justify-content: center;
    align-items: center;
  }
  .index-right-header {
    padding: 0px 80px;
    height: 550px;
    justify-content: center;
    align-items: center;
  }
}

@media (max-width: 1280px) {
  .index-right-logo {
    width: 450px;
  }
  .index-right-button-wrapper {
    margin-top: 50px;
    width: 450px;
  }
  .index-right-button {
    width: 250px;
    padding: 10px 20px;
  }
}

@media (max-width: 1024px) {
  .index-left-header {
    padding: 0px 80px;
    height: 450px;
  }
  .index-left-button {
    margin-top: 20px;
  }
  .index-right-header {
    padding: 0px 80px;
    height: 450px;
  }
  .index-right-logo {
    width: 350px;
  }
  .index-right-button-wrapper {
    margin-top: 40px;
    width: 350px;
  }
  .index-right-button {
    width: 200px;
    font-size: 16px;
    padding: 5px 10px;
  }
}

@media (max-width: 768px) {
  .index-wrapper > div {
    width: 100%;
  }
  .index-left-header-wrapper {
    order: 1;
  }
  .index-right-header-wrapper {
    order: 4;
  }
  .index-left-categories-wrapper {
    order: 2;
  }
  .index-right-services-wrapper {
    order: 5;
  }
  .index-left-text-wrapper {
    order: 3;
  }
  .index-right-text-wrapper {
    order: 6;
  }

  .index-left-header {
    height: 550px;
  }
  .index-left-text {
    padding: 40px 20px;
  }

  .index-right-header {
    height: 550px;
    padding: 0 20px;
  }
  .index-right-logo {
    width: 90%;
    height: auto;
    aspect-ratio: 2365 / 510;
  }
  .index-right-button-wrapper {
    margin-top: 80px;
    width: 100%;
  }
  .index-right-button {
    width: 80%;
    font-size: 18px;
    padding: 10px 20px;
  }
  .index-right-text {
    padding: 40px 20px;
  }
}

@media (max-width: 480px) {
  .index-right-button {
    width: 80%;
    font-size: 16px;
    padding: 5px 10px;
  }
}
/******************************/

.news-annotation {
  margin-bottom: 40px;
}

/****************************/

.news-item {
  display: flex;
  grid-gap: 40px;
  margin-bottom: 60px;
}

.news-item-image {
  width: 200px;
  flex-shrink: 0;
}

.news-item-image img {
  display: block;
}

.news-item-body {
  width: 100%;
}

.news-item-title {
  margin-bottom: 20px;
}

.news-item-date {
  font-size: 80%;
  color: #000;
  height: 20px;
  line-height: 20px;
  background: url(../img/icon-date.svg) left center no-repeat;
  background-size: auto 20px;
  padding: 0 0 0 25px;
  margin-bottom: 10px;
  opacity: 0.75;
}

/****************************/

.news-date {
  font-size: 80%;
  color: #000;
  height: 20px;
  line-height: 20px;
  background: url(../img/icon-date.svg) left center no-repeat;
  background-size: auto 20px;
  padding: 0 0 0 25px;
  margin-bottom: 10px;
  opacity: 0.75;
}

.news-text {
  margin-bottom: 40px;
}

.news-image img {
  display: block;
}

/****************************/

@media (max-width: 768px) {
  .news-item {
    flex-direction: column;
    grid-gap: 20px;
  }
  .news-item-image {
    width: 100%;
    order: 1;
  }
  .news-item-body {
    order: 2;
  }
}

/******************************/

.order-wrapper {
  display: flex;
  justify-content: space-between;
  grid-gap: 20px 80px;
}

/*************************/

.order-summary {
  flex-shrink: 0;
  padding: 40px;
  width: 300px;
  position: sticky;
  top: 0;
  align-self: flex-start;
  border: 1px solid #eee;
  background: var(--bg-color-alt);
}

.order-summary-row {
  display: flex;
  justify-content: space-between;
  grid-gap: 40px;
  margin-bottom: 10px;
}

.order-summary-row-total {
  font-size: 120%;
  margin: 20px 0px 0px 0px;
}

/*************************/

.order-delivery-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 20px;
}

.order-delivery-wrapper input {
  display: none;
}

.order-delivery-wrapper input + div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  grid-gap: 10px;
  width: 100%;
  height: 100%;
  padding: 10px;
  border: 2px solid #ccc;
  line-height: 1.3;
}

.order-delivery-wrapper input:checked + div {
  border: 2px solid #07478f;
}

.order-delivery-wrapper input + div div {
  font-size: 12px;
}

.order-delivery-wrapper img {
  display: none;
}

/*************************/

.order-payment-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 20px;
}

.order-payment-wrapper input {
  display: none;
}

.order-payment-wrapper input + div {
  display: flex;
  flex-direction: column;
  align-items: center;
  grid-gap: 10px;
  width: 100%;
  height: 100%;
  padding: 10px;
  border: 2px solid #ccc;
  line-height: 1.3;
}

.order-payment-wrapper input:checked + div {
  border: 2px solid #07478f;
}

.order-payment-wrapper input + div div {
  font-size: 12px;
}

.order-payment-wrapper img {
  display: none;
}

@media (max-width: 1024px) {
  .order-wrapper {
    flex-direction: column;
  }
  .order-summary {
    width: 100%;
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .order-delivery-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
  .order-payment-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
  .order-summary {
    padding: 10px;
  }
}

/******************************/

.search-form {
  display: flex;
  grid-gap: 20px;
}

/******************************/

.sitemap li {
  margin-left: 40px;
}

/******************************/

.user-wrapper {
  display: flex;
  grid-gap: 80px;
}

/****************************/

.user-menu {
  display: flex;
  flex-direction: column;
  grid-gap: 10px;
}

.user-menu li {
  display: block;
}

.user-menu li a {
  display: flex;
  align-items: center;
  padding: 5px 20px;
  border: 1px solid #325a49;
  border-radius: 4px;
  text-decoration: none;
}

.user-menu li.user-menu-active a {
  color: #fff;
  background: #325a49;
}

.user-menu li:hover a {
  color: #fff;
  background: #40745e;
  border: 1px solid #40745e;
}

/****************************/

.user-orders-table {
  width: 100%;
}

.user-orders-table tr:nth-child(even) {
  background: #fafafa;
}

.user-orders-table th {
  padding: 5px 20px;
  line-height: 1.3;
}

.user-orders-table td {
  padding: 5px 20px;
  text-align: center;
}

.user-orders-table td:nth-child(3) {
  text-align: right;
}

/****************************/

.user-order-info  {
  display: table;
  margin-bottom: 30px;
}

.user-order-info > div {
  display: flex;
  display: table-row;
  margin-bottom: 5px;
}

.user-order-info > div:nth-child(odd) {
  background: #fafafa;
}

.user-order-info > div > div {
  display: table-cell;
  padding: 3px 15px;
}

.user-order-cart {
  width: 100%;
}

.user-order-cart th {
  padding: 5px 20px;
}

.user-order-cart td {
  padding: 5px 20px;
}

.user-order-cart tr:nth-child(even) {
  background: #fafafa;
}

.user-order-cart-image {
  max-width: 50px;
  max-height: 50px;
}

/****************************/

@media (max-width: 1024px) {
  .user-wrapper {
    flex-direction: column;
    grid-gap: 20px;
  }
}

@media (max-width: 768px) {
  .user-orders-table tr {
    display: flex;
    flex-wrap: wrap;
  }
  .user-orders-table th {
    display: none;
  }
  .user-orders-table td {
    width: 100%;
    text-align: left;
  }
  .user-orders-table td:nth-child(3) {
    text-align: left;
  }
  .user-orders-table td::before {
    content: attr(data-th) ": ";
    font-weight: bold;
  }
  .user-order-cart th {
    padding: 5px 10px;
  }
  .user-order-cart td {
    padding: 5px 10px;
  }
}

/******************************/

.paginator {
  margin: 40px 0px;
  display: flex;
  grid-gap: 10px;
  justify-content: center;
}

.paginator > * {
  text-decoration: none;
  padding: 5px 10px;
  color: var(--text-color);
  border-radius: var(--button-border-radius);
}

.paginator a:hover {
  color: #fff;
  background-color: #325a49;
}

.paginator b {
  font-weight: normal;
  color: #fff;
  background-color: #40745e;
}

/******************************/

.breadcrumbs {
  margin-bottom: 30px;
  font-size: 80%;  
  line-height: 1.2;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.breadcrumbs li {
  display: inline-block;
}

.breadcrumbs li a {
  display: block;
  padding: 3px 20px 3px 10px;
  background: var(--bg-color-alt) url(../img/breadcrumbs-delimiter.svg) right 0px center / 20px auto no-repeat;
  color: #666;
  text-decoration: none;
}

.breadcrumbs li a:hover {
  color: #333;
}

.breadcrumbs li span {
  display: block;
  padding: 3px 0px;
  color: #bbb;
}

/******************************/

.legal-dialog {  
  width: 100%;
  position: fixed;
  z-index: 5;
  bottom: 0px;
  display: flex;
  grid-gap: 40px;
  justify-content: center;
  align-items: center;
  padding: 10px 20px;
  background: rgba(0, 0, 0, 0.8);
  font-size: 12px;
}

.legal-text {
  color: #fff;
}

.legal-text a {
  color: #fff;
}

.legal-button {
  display: inline-block;
  padding: 5px 20px;
  background-color: var(--button-bg-color);  
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--button-bg-color);
  border-radius: var(--button-border-radius);
  font: inherit;
  text-decoration: none;
  color: var(--button-color);
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}

.legal-button:hover {
  color: var(--button-color);
  background-color: var(--button-bg-color-hover);
  border: 1px solid var(--button-bg-color-hover);
}

/******************************/

@media print {

  .header,
  .footer,
  .sidebar,
  .breadcrumbs {
    display: none;
  }

}

/******************************/

.top {
  z-index: 4;
  display: inline-block;
  position: fixed;
  visibility: hidden;
  bottom: 40px;
  right: 40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  background: #07478f url(../img/icon-top.svg) center center / 30px auto no-repeat;
  transition: all ease 0.3s;
  box-shadow: 0px 3px 6px rgba(50, 50, 50, 0.3);
}

.top:hover {
  opacity: 1;
}

.top-visible {
  visibility: visible;
  opacity: 0.75;
}

@media (max-width: 1024px) {
  .top {
    right: 20px;
    bottom: 80px;
  }
}
/******************************/

/**************************/

.content-menu {
  padding: 10px 40px;
  background: #ebebeb;
}

.content-menu ul {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  text-transform: uppercase;
}

.content-menu li {
   display: block;
}

.content-menu a {
   display: block;
   color: #07478f;
   text-decoration: none;
}

/*********************/

.header {
  position: sticky;
  top: 0;
  z-index: 3;
  padding: 10px 40px;
  display: flex;
  justify-content: end;
  align-items: center;
  gap: 20px;
  background: #fff;
}

.header-scrolled {
  border-bottom: 1px solid #ccc;
}

/*******************************/

.header-navigation-control {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: none;
  background: url(../img/header-menu-show.svg) center center / 40px auto no-repeat;
}

.navigation-control-hide {
  background-image: url(../img/header-menu-hide.svg);
}

/*******************************/

.header-logo {
  margin-right: auto;
  display: none;
  width: 200px;
  height: 50px;
  background: url(../img/logo-pb-all.png) center center / contain no-repeat;
}

/*******************************/

.header-messengers {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-messengers a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f5f5f5 center center / 50% auto no-repeat;
  box-shadow: 3px 3px 3px #00000020;
}

.header-messengers a.header-messengers-tg {
  background-image: url(../img/social-tg.svg);
}
.header-messengers a.header-messengers-wa {
  background-image: url(../img/social-wa.svg);
}

/********************************/

.header-contacts {
  margin-left: 40px;
  display: flex;
  flex-direction: column;
  gap: 0px;
}

.header-phone a {
  font-size: 30px;
  text-decoration: none;
  color: #07478f;
}

.header-address {
  color: #666;
  font-size: 12px;
}

/*********************************/

.header-callback {
  font-weight: bold;
  text-decoration: none;
  text-transform: uppercase;
  margin: 0 40px;
}

/*********************************/

.header-user {
  display: flex;
  min-width: 40px;
  min-height: 40px;
  background: #f5f5f5 url(../img/header-user.svg) center center / 60% auto no-repeat;
  border-radius: 50%;
  box-shadow: 3px 3px 3px #00000020;
}

/******************************/

.header-compare {
  min-width: 40px;
  min-height: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #f5f5f5 url(../img/header-compare.svg) center center / 60% auto no-repeat;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  box-shadow: 3px 3px 3px #00000020;
}

.header-compare-count {
  margin-left: 25px;
  margin-top: -5px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f5f5f5;
  color: #07478f;
  font-size: 10px;
  box-shadow: 3px 3px 3px #00000020;
}

.header-compare-empty .header-compare-count {
  opacity: 0;
}

/******************************/

.header-wishlist {
  min-width: 40px;
  min-height: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #07478f url(../img/header-wishlist.svg) center center / 60% auto no-repeat;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  box-shadow: 3px 3px 3px #00000020;
}

.header-wishlist:hover {
  color: #fff;
}

.header-wishlist-count {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: 25px;
  margin-top: -5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #07478f;
  color: #fff;
  font-size: 10px;
  box-shadow: 3px 3px 3px #00000020;
}

.header-wishlist-empty .header-wishlist-count {
  opacity: 0;
}

/******************************/

.header-cart {
  min-width: 40px;
  min-height: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #d13139 url(../img/header-cart.svg) center center / 60% auto no-repeat;
  color: #fff;
  text-decoration: none;
  border-radius: 50%;
  box-shadow: 3px 3px 3px #00000020;
}

.header-cart:hover {
  color: #fff;
}

.header-cart-count {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: 25px;
  margin-top: -5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #d13139;
  color: #fff;
  font-size: 10px;
  box-shadow: 3px 3px 3px #00000020;
}

.header-cart-empty .header-cart-count {
  opacity: 0;
}

/*********************************/

@media (max-width: 1366px) {
  .header-logo {
    display: block;
  }
}

@media (max-width: 1280px) {
  .header-logo {
    width: 150px;
  }
  .header-contacts {
    margin-left: 20px;
  }
  .header-phone a {
    font-size: 20px;
  }
  .header-address {
    display: none;
  }
  .header-callback {
    margin: 0px;
  }
}

@media (max-width: 1024px) {
  .content-menu {
    display: none;
  }
  .header {
    padding: 10px 20px;
    box-shadow: 0px 0px 10px #00000020;
  }
  .header-navigation-control {
    display: block;
  }
  .header .header-cart {
    display: none;
  }
  .header .header-wishlist {
    display: none;
  }
  .header .header-compare {
    display: none;
  }
  .header .header-user {
    display: none;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 10px 10px;
    gap: 10px;
  }
  .header-contacts {
    margin-left: 0px;
  }
  .header-messengers a {
    width: 30px;
    height: 30px;
  }
  .header-phone a {
    font-size: 16px;
    letter-spacing: -1px;
    white-space: nowrap;
  }
  .header-callback {
    display: none;
  }
}

/******************************/

