:root {
  --main-color: #3abd3c;
  --main-color-hover: #34ab36;

  --primary: #404040;
  --secondary: #58585a;
  --border-color: #dbe2e9;
  --color-text: #58585a;

  --secondary-gradient: linear-gradient(90deg,
      var(--primary),
      var(--color-text));
}





body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  color: #444;
  background-color: #fff;
  font-weight: 400;
}

textarea {
  font-family: "Manrope", sans-serif;
}

.wrapper {
  width: 1320px;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

.header-top {
  background-color: #fff;
  border-bottom: 1px solid var(--border-color);
  padding: 20px 0;
}

.header-top-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.header-actions {
  justify-content: space-between;
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
}

.opened-page {
  /* color: var(--main-color) !important; */
}

.contact-btn {
  font-family: "Manrope" !important;
  padding: 16px 20px;
  color: var(--main-color);
  border-radius: 16px;
  font-weight: 600;
  transition: 0.2s ease;
  cursor: pointer;
  border: 2px solid var(--main-color);
}

.contact-btn:hover {
  background-color: var(--main-color-hover);
  color: white;
}

.download-price {
  padding: 8px 15px;
  color: var(--main-color);
  transition: all ease 0.2s;
  display: flex;
  align-content: center;
  gap: 10px;
  font-size: 16px;
  margin: 0;
  padding: 0;
}

.download-price:hover {
  text-decoration: underline;
}

.product-link {
  transition: 0.2s ease all;
  margin-left: 4px;
}

.product-link:hover {
  color: var(--main-color-hover);
}

.contacts {
  display: flex;
  gap: 20px;
}

.contacts a {
  text-align: center;
  transition:
    background 0.3s,
    opacity 0.3s;
  font-size: 16px;
}

.phone-link {
  font-family: "Manrope" !important;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text);
  font-weight: 600;
  font-size: 16px;
}

.phone-link:hover {
  opacity: 0.85;
}

.auth-container {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
}

.btn-register {
  padding: 23px 23px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.1s ease;
  color: var(--color-text);
  border-right: 1px solid var(--border-color);
  font-size: 18px;
  font-weight: 500;
  background-color: transparent;
}

.btn-register:hover {
  background: linear-gradient(90deg, var(--primary), var(--color-text));
  color: white;
  cursor: pointer;
}

.btn-login {
  padding: 23px 23px;
  color: var(--color-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.1s ease;
  background-color: transparent;
}

.btn-login:hover {
  background: linear-gradient(90deg, var(--primary), var(--color-text));
  color: white;
  cursor: pointer;
}

.btn-register i,
.btn-login i {
  font-size: 18px;
  width: 20px;
}

.main-header {
  background-color: white;
  padding: 10px 0px;
  position: relative;
  border-bottom: 1px solid var(--border-color);
}

.header-fixed .header-top {
  width: 100%;
}

.main-header-container {
  display: flex;
  padding: 10px 0px;
  align-items: center;
  justify-content: space-between;
}

main {
  min-height: 500px;
}

.main-header-container img {
  transform: 0.5s ease;
}

.main-header-container img:hover {
  opacity: 0.9;
}

/* навигация */

.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  font-family: "Manrope" !important;
}

.main-nav a {
  color: #53555c;
  font-size: 17px;
  text-decoration: none;
  font-weight: 500;
  transition: 0.1s;
}

.main-nav a:hover {
  color: var(--main-color);
}

.main-menu {
  background-color: white;
  display: flex;
  align-items: center;
}

.main-menu-right {
  display: flex;
  align-content: center !important;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.dropdowns-container {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.main-menu-container {
  display: grid;
  grid-template-columns: 22% 76%;
  gap: 20px;
  justify-content: space-between;
}

.header-main-btns {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 410px;
}

/* SEARCH */

.header-search {
  position: relative;
  display: flex;
  align-items: center;
  width: 74%;
}

.header-search input {
  width: 100%;
  padding: 18px 28px 16px 18px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  font-family: "Manrope";
  font-size: 14px;
  transition: all 0.25s ease;
}

/* Chrome, Edge, Safari */
.header-search input::-webkit-search-decoration,
.header-search input::-webkit-search-cancel-button,
.header-search input::-webkit-search-results-button,
.header-search input::-webkit-search-results-decoration {
  display: none;
}

/* Firefox */
.header-search input[type="search"] {
  -moz-appearance: textfield;
}

/* IE 10+ */
.header-search input::-ms-clear {
  display: none;
  width: 0;
  height: 0;
}

.header-search input:focus {
  outline: none;
  border-color: var(--border-color);
  background: #fff;
}

.header-search button {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  color: var(--main-color);
  transition: transform 0.2s ease;
}

.header-search button:hover {
  transform: scale(1.15);
}

.no-results {
  text-align: left;
  color: #555;
  font-size: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.no-results i {
  font-size: 48px;
  color: var(--main-blue);
}

.dropdown {
  position: relative;
}

.dropbtn {
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  height: 60px;
  transform: 0.2s ease;
}

.dropbtn:hover {
  opacity: 0.8;
}

.dropdown:hover .dropbtn {
  opacity: 0.8;
}

.dropbtn img {
  width: 12px;
  height: 12px;
  transition: transform 0.2s ease;
}

.dropdown:hover .dropbtn img {
  transform: rotate(180deg);
}

.dropdown {
  position: relative;
}

.dropdown-content {
  position: absolute;
  top: 100%;
  left: -16px;
  background-color: #fff;
  min-width: 200px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 100;

  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
}

.dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-content a {
  display: block;
  padding: 14px 14px;
  text-decoration: none;
  color: #444;
  box-sizing: border-box;
}

.dropdown-content a:hover {
  background-color: #f2f2f2;
}

.cart {
  font-family: "Manrope" !important;
  padding: 16px 20px;
  color: white;
  border: 1px solid white;
  border-radius: 16px;
  font-weight: 600;
  transition: 0.2s ease;
  cursor: pointer;
  background-color: var(--main-color);
}

.cart:hover {
  background-color: var(--main-color-hover);
}

.cart a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  color: white;
  text-decoration: none;
  position: relative;
  z-index: 2;
}

.cart i {
  transition: transform 0.3s ease;
}

.cart a i {
  font-size: 20px;
}

.cart-container {
  display: flex;
  align-items: center;
  position: relative;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

#cart-container.fixed {
  position: fixed;
  bottom: 10px;
  right: 10px;
  z-index: 1000;
  opacity: 1;
  transform: translateY(0);
}

.cart-container a {
  transition: 0.2s ease;
  color: white;
}

.cart-container a:hover {
  opacity: 0.9;
}

.cart i {
  font-size: 20px;
  margin-left: 10px;
}

.mobile-logo {
  display: none;
}

.mobile-cart {
  display: none;
}

.catalog {
  margin: 20px 0px;
}

.catalog-layout {
  /* display: grid;
  grid-template-columns: 22% 76%;
  gap: 20px;
  justify-content: space-between; */
}

.catalog-sidebar {
  position: sticky;
  top: 120px;
  height: fit-content;
  min-height: 400px;
  border-radius: 10px;
  box-sizing: border-box;

  overflow: visible;
  z-index: 90;
}

.main-catalog-sidebar {
  background-color: #f5f5f5;
  background-image: linear-gradient(90deg, #4a4a4b 0%, #58585a 100%);
  border-radius: 10px;
}

.sidebar-menu {
  position: relative;
  overflow: visible;
  height: 100%;
}

.sidebar-menu li {
  position: relative;
  height: auto;
}

.subcategory-menu {
  position: absolute;
  background-color: white;
  border: 1px solid var(--border-color);
  z-index: 1000;
  min-width: 320px;
  padding: 20px 30px;
  border-radius: 0 10px 10px 0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  left: 100%;
  top: 0;
  bottom: 0;
  height: auto;
  border-radius: 0 5px 5px 5px;
  gap: 20px;
  justify-content: flex-start;
  align-items: flex-start;
  flex-direction: column;
  overflow-y: auto;

  /* Плавное появление */
  opacity: 0;
  visibility: hidden;
  transform: translateX(-10px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    visibility 0.3s ease;
}

.sub-cat-name {
  font-size: 20px;
  font-weight: 500;
  margin: 10px 0px;
  color: #afafaf;
}

.catalog-sidebar:hover .subcategory-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.sub-item a {
  color: var(--color-text);
  border-bottom: 0px !important;
  transition: 0.2s ease;
}

.sub-item a:hover {
  color: var(--main-color) !important;
}

.category-link {
  position: relative;
  z-index: 1001;
}

.sidebar-title {
  margin: 0px;
  font-size: 18px;
  font-weight: 900;
  padding: 22px 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
}

.sidebar-menu li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 30px;
  box-sizing: border-box;
  font-size: 18px;
  font-weight: 400;
  transition: 0.2s ease;
  justify-content: space-between;
}

.sidebar-menu li a {
  color: white;
  border-bottom: 1px solid rgb(105, 106, 121);
}

.sidebar-menu li:last-child a {
  border-bottom: none;
}

.navigation-link {
  color: #a0a0a0;
  font-size: 12px;
  text-transform: capitalize !important;
  font-family: "Manrope" !important;

  transition: 0.2s ease;
}

.breadcrumbs {
  transition: 0.2s ease;
}

.breadcrumbs a:hover {
  opacity: 0.7;
}

.catalog-title-right {
  position: relative;
  display: none;
  cursor: pointer;
}

.sort-button {
  display: none !important;
}

.catalog-title {}

.catalog-title-right span {
  display: flex;
  align-items: center;
  height: 50px;
  padding: 0px 10px;
  box-sizing: border-box;
}

.catalog-title-right span img {
  background-color: white;
  padding: 12px 8px;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.catalog-title-right span img:hover {
  opacity: 0.6;
}

.catalog-title {
  height: 50px;
}

.catalog-title-left,
.catalog-title-right {
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  font-weight: 900;
  color: var(--color-text);
  font-size: 32px;
}

.catalog-title-left {}

.sort-options {
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  border: 1px solid #ddd;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 100;
  white-space: nowrap;
  min-width: 200px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.selected-cat {
  background-color: #464647;
  color: white;
}

.selected-cat img {
  filter: brightness(0) invert(-1);
}

.catalog-title-right:hover .sort-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sidebar-services-btn a {
  height: fit-content;
  border-radius: 0px 0px 10px 10px;
  box-sizing: border-box;
  background-color: #f5f5f5;
  background-image: var(--main-color);
  overflow: visible;
  z-index: 90;

  justify-content: flex-start !important;

  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  background-size: 200% 100%;
  background-position: 100% 0;
  border-bottom: none !important;
}

.sidebar-services-btn a h3 {
  color: white;
  margin: 0;
  transition: transform 0.3s ease;
  font-size: 18px;
}

.sidebar-services-btn a:hover {
  background-image: var(--main-color);
  background-position: 0 0;
  border-radius: 0px 0px 10px 10px;
}

.sort-options a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  text-decoration: none;
  color: #333;
  transition: background 0.2s ease;
  font-size: 14px;
  white-space: nowrap;
}

.banner {
  height: fit-content;
  width: 100%;
  border-radius: 10px;
  box-sizing: border-box;
  background-color: #f5f5f5;
  z-index: 90;
  margin-top: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}

.banner-header {
  background-image: var(--main-color);
  border-radius: 10px 10px 0px 0px;
  min-height: 300px !important;
  width: 100%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  position: relative;
}

.banner-header i {
  font-size: 140px;
  color: white;
}

.banner-info {
  color: white;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background-image: linear-gradient(90deg, #4a4a4b 0%, #58585a 100%);
  padding: 30px;
}

.banner-info h3 {
  margin: 0;
}

.banner-info p {
  margin-bottom: 0;
}

.sort-options a:hover {
  background: var(--main-color-hover);
  color: #fff;
}

.sort-options a img {
  width: 16px;
  height: 16px;
  transition: filter 0.2s;
}

.sort-options a:hover img {
  filter: brightness(0) invert(1);
}

.catalog-content {
  height: fit-content;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.subcat-items {
  padding-bottom: 20px;
}

/* ////////////////  СЕТКА КАТЕГОРИЙ //////////////// */

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  width: 100%;
  align-items: stretch;
}

@media (max-width: 640px) {
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    /* можно уменьшить отступы на мобиле */
  }
}

.catalog-item>div {
  border-right: 1px solid #ddd;
  padding: 10px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.catalog-item>div:last-child {
  border-right: none;
}

.item-img img {
  max-width: 50px;
  height: auto;
}

.item-name {
  text-align: left !important;
  justify-content: flex-start !important;
  font-size: 16px;
  font-weight: 100;
}

.item-price {
  font-size: 16px;
}

.item-buy {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  position: relative;
}

.btn-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 22px;
  min-width: 120px;
  font-size: 14px;
  text-transform: uppercase;
  border: 1px solid #ccc;
  background: #fff;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-buy img.btn-icon {
  width: 18px;
  height: 18px;
  transition: all 0.2s ease;
}

.btn-buy:hover {
  border-color: #c00;
  color: #c00;
}

.btn-buy:hover img.btn-icon {
  content: url("/img/cart-icon-red.svg");
}

.no-products {
  width: 100%;
  height: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 20px;
  opacity: 0.8;
  padding: 20px;
  height: 500px;
}

.no-products img {
  max-width: 200px;
}

.no-products p {
  font-size: 18px;
  color: #333;
}

.catalog-grid {}

.product-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.product-img img {
  width: 300px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

.back-to-catalog {
  display: flex;
  align-items: center;
  gap: 10px;
  transition: 0.2s ease;
  color: #ffffff;
  background-color: var(--color-text);
  padding: 10px;
  border-radius: 50%;
  font-size: 16px;
}

.back-to-catalog:hover {
  opacity: 0.8;
}

.product-name h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 600;
  padding: 20px;
}

.product-buy {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.quantity-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  overflow: hidden;
  max-width: fit-content;
  border-radius: 6px;
}

.qty-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 36px;
  background: white;
  color: var(--color-text);
  border: none;
  cursor: pointer;
  font-size: 18px;
  transition: background 0.2s;
}

.qty-btn:hover {
  background: var(--main-color);
  color: #fff;
}

.qty-input {
  width: 50px;
  text-align: center;
  border: none;
  padding: 0 !important;
  outline: none;
  font-size: 16px;
}

.btn-buy-product {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 22px;
  min-width: 100px;
  height: 38px !important;
  font-size: 14px;
  text-transform: uppercase;
  border: 1px solid #ccc;
  background: #fff;
  color: #333;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  box-sizing: border-box;
}

.btn-buy-product:hover {
  color: var(--main-color);
  border-color: var(--main-color);
}

.btn-buy-product img.btn-icon {
  transition: all 0.2s ease;
}

.btn-buy-product:hover img.btn-icon {
  content: url("/img/cart-icon-red.svg");
}

.link {
  display: block;
  font-size: 14px;
  color: rgb(180, 180, 180);
  margin-top: 10px;
}

.link:hover {
  color: var(--main-color);
  text-decoration: underline;
}

.category-link {
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: 0.3s ease;
  justify-content: space-between;
  padding: 5px 0;
}

.category-link:hover {
  background-image: linear-gradient(90deg, #313131 0%, #3c3838 100%);
}

.accordion-icon {
  width: 12px;
  height: 12px;
  opacity: 0.5;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  /* адаптивные колонки */
  gap: 24px;
  width: 100%;
  align-items: stretch;
  /* чтобы карточки выравнивались по высоте */
}

.category-card i {
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  /* вот это ключ */
}

.category-card {
  background: white;
  border-radius: 10px;
  text-decoration: none;
  color: var(--color-text);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  min-height: 350px;
  border: 1px solid var(--border-color);
  width: 100%;
  box-sizing: border-box;
}

.category-card i {
  font-size: 90px;
  color: var(--color-text);
  margin-top: 60px;
}

.category-img {
  flex: 1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.category-title {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 10px;
  margin-bottom: 10px;
}

.product-count {
  font-size: 14px;
  color: #7f8c8d;
  background: linear-gradient(to right, #f8f9fa, #f1f3f5);
  padding: 8px 20px;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.2s ease;
  border: 1px solid #e9ecef;
}

.category-card:hover {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
  border-color: var(--main-color);
}

.category-card:hover .category-img i {
  color: var(--main-color);
}

.category-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  color: var(--color-text);
  right: 0;
  bottom: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.category-card:hover::after {
  opacity: 1;
}

@media (max-width: 768px) {
  .categories-grid {
    flex-direction: column;
    gap: 15px;
    padding: 5px;
  }

  .category-card {
    height: 200px;
    padding: 0px;
    border-radius: 10px;
  }

  .title {
    text-align: center;
  }

  .category-icon {
    width: 60px;
    height: 60px;
    font-size: 24px;
    border-radius: 15px;
    margin-bottom: 15px;
  }

  .category-title {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .product-count {
    font-size: 13px;
    padding: 6px 16px;
  }
}

@media (max-width: 480px) {
  .categories-grid {
    grid-template-columns: 1fr !important;
  }

  .category-card {
    height: 300px;
    padding: 0;
  }

  .category-icon {
    width: 50px;
    height: 50px;
    font-size: 20px;
    margin-bottom: 12px;
  }

  .category-title {
    font-size: 15px;
  }
}

@media (max-width: 360px) {
  .category-card {
    max-width: 280px;
    margin: 0 auto;
  }
}

.main-slider {
  margin-bottom: 20px !important;
  display: block !important;
  width: 100%;
  background-position-x: right;
  background-size: contain;
  background-repeat: no-repeat;

  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  border: 1px solid var(--border-color);
  box-sizing: border-box;
}

.main-slider,
.main-slider .wrapper {
  height: 300px;
}

.main-slider .wrapper {
  display: flex;
  align-items: center;
}

.main-slider .wrapper .slide-content h2 {
  font-size: 56px;
  max-width: 600px;
  color: #e15659;
}

.drevo h1 {
  margin: 0;
  font-size: 38px;
}

.drevo,
.catalog-content {
  min-height: 450px;
}

.subcat-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
  justify-items: center;
  margin-top: 10px;
}

.subcat-item {
  width: 100%;
  max-width: 240px;
  aspect-ratio: 1 / 1;
  background: #fff;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

@media (max-width: 480px) {
  .subcat-items {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .subcat-item {
    max-width: 180px;
  }
}

.subcat-item:hover {
  background-color: var(--main-color);
  color: white;
}

.subcat-item a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.subcat-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  padding: 10px;
}

.subcat-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--main-blue-text-color);
  line-height: 1.4;
  word-wrap: break-word;
  text-transform: uppercase;
}

.search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #ccc;
  max-height: 300px;
  overflow-y: auto;
  z-index: 10;
}

.search-item {
  padding: 8px 12px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
}

.search-item:hover {
  background: #f0f0f0;
}

.welcome-screen {
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.welcome-screen img {
  margin-bottom: 10px;
}

.welcome-screen h2 {
  margin-bottom: 0;
}

.mobile-catalog {
  display: none;
}

.mobile-main-menu {
  display: none;
}

.mobile-main-menu .user-name {
  border-radius: 6px;
}

.mobile-main-menu .logout {
  border-radius: 6px;
}

@media (max-width: 1500px) {
  .catalog-sidebar {
    display: none;
  }

  .main-header {
    display: none;
  }

  .category-slider {
    display: flex !important;
  }

  .main-img-wrapper {
    width: 300px;
  }

  .product-card {
    margin-top: 10px;
  }

  .catalog-layout {
    display: block;
  }

  .main-header {
    margin-top: 0px;
  }

  .mobile-main-menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 20px;
  }

  .mobile-main-menu a img {
    display: block;
  }
}

@media (max-width: 1200px) {
  .header-main-btns {
    display: none;
  }

  .header-search {
    width: 100% !important;
  }
}

@media (max-width: 1130px) {
  .product-card {
    flex-direction: column;
  }

  .product-img {
    width: 100%;
  }

  .main-img-wrapper {
    width: 100% !important;
  }
}

@media (max-width: 1040px) {
  .user-icon {
    width: 28px;
    height: 28px;
  }

  .catalog-icon {
    height: 28px;
    width: 28px;
  }

  .mobile-catalog {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--main-color);
    overflow: hidden;
    max-height: 0;
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
  }

  .mobile-catalog.open {
    max-height: 90vh;
    opacity: 1;
  }

  .mobile-catalog-categories {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
  }

  .mobile-category-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .mobile-category-link {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 14px 20px;
    color: white;
    font-size: 16px;
    text-decoration: none;
    cursor: pointer;
  }

  .mobile-category-link:hover {
    background-color: var(--main-color-hover);
  }

  .mobile-subcategory-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .mobile-category-item.open>.mobile-subcategory-menu {
    max-height: 500px;
  }

  .mobile-subcategory-link {
    display: block;
    padding: 12px 30px;
    color: white;
    text-decoration: none;
    background-color: var(--main-color-hover);
    cursor: pointer;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }

  .mobile-subcategory-link:hover {
    background-color: var(--main-color-hover);
  }

  .mobile-category-link img {
    filter: brightness(0) invert(1);
  }

  .catalog-layout {
    display: block;
  }

  .categories-grid a {
    max-width: 100%;
  }

  .cart-forms-wrapper {
    flex-direction: column;
  }

  .welcome-screen {
    display: none;
  }
}

.footer {
  font-size: 14px;
  color: #ffffff;
  background-color: var(--color-text);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
  padding-top: 50px;
  padding-bottom: 20px;
}

.footer-logo img {
  width: 160px;
}

.footer-links {
  display: flex;
  gap: 60px;
  width: 100%;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-column h4 {
  margin-bottom: 15px;
  margin-top: 0;
  font-weight: bold;
}

.footer-column a {
  display: block;
  margin-bottom: 8px;
  text-decoration: none;
  color: #ebebeb;
}

.footer-column a.download {
  color: #e53935;
}

.footer-bottom {
  text-align: center;
  padding: 15px 0;
  background: #252525;
  color: white;
  font-size: 13px;
}

@media (max-width: 768px) {
  .category-card i {
    font-size: 60px;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    gap: 40px;
    width: 100%;
    margin-top: 20px;
  }

  .catalog-title-left {}

  .footer-column .location {
    padding: 0;
  }

  .location-note {
    font-size: 12px;
  }

  .mobile-main-menu .location-address {
    font-size: 14px !important;
  }
}

.mobile-main-menu .location-address {
  font-size: 18px;
}

.custom-form {
  max-width: 400px;
  margin: 0 auto;
  padding: 20px;
  background: #fff;
}

.custom-form h2 {
  text-align: center;
  margin-bottom: 15px;
  font-size: 22px;
}

.custom-form input {
  width: 100%;
  padding: 10px;
  margin-bottom: 12px;
  border: 1px solid var(--border-color);
  font-size: 14px;
  box-sizing: border-box;
}

.custom-form input:focus {
  border-color: var(--main-color);
  outline: none;
}

.custom-form button {
  width: 100%;
  padding: 12px;
  background: var(--main-color);
  color: #fff;
  border: none;
  font-size: 15px;
  cursor: pointer;
}

.custom-form button:hover {
  opacity: 0.8;
}

.left-form {
  max-width: 300px;
  margin: 0;
  padding: 0px;
  background: #fff;
}

.left-form h2 {
  text-align: left;
  margin-bottom: 15px;
  font-size: 22px;
  font-weight: 800;
}

.left-form input {
  font-family: "Manrope" !important;
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
  font-size: 16px;
  box-sizing: border-box;
}

.left-form input:focus {
  border-color: var(--color-text);
  outline: none;
}

.left-form button {
  width: 100%;
  padding: 12px;
  background: var(--main-color);
  color: #fff;
  border: none;
  font-size: 16px;
  border-radius: 10px;
  cursor: pointer;
  font-family: "Manrope" !important;
  transition: 0.2s ease;
}

.left-form button:hover {
  background-color: var(--main-color-hover);
}

.left-form h2 {
  margin-top: 0px;
}

.left-form .form-error,
.left-form .form-success {
  padding: 12px 15px;
  margin-bottom: 15px;
  margin-top: 15px;
  border-radius: 10px;
  font-size: 14px;
  border: 1px solid var(--border-color);
}

.left-form .form-error {
  background-color: #ffe6e6;
  color: #cc0000;
  border: 1px solid #cc0000;
}

.left-form .form-success {
  background-color: #e6ffe6;
  color: #006600;
  border: 1px solid #006600;
}

h2 {
  margin-top: 0 !important;
}

.restore-account-form {
  display: flex;
  gap: 10px;
  align-items: center;
}

.restore-account-form input {
  outline: none;
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

.restore-account-form button {
  padding: 12px 14px;
  background-color: var(--main-color);
  color: white;
  border: none;
  border-radius: 6px;

  transition: 0.2s ease;
  cursor: pointer;
}

.restore-account-form button:hover {
  opacity: 0.8;
}

.btn-logout,
.user-name a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  height: 60px;
}

.user-name {
  border-right: 1px solid var(--border-color);
}

.user-name,
.logout {
  padding: 0px 20px;
  box-sizing: border-box;
  cursor: pointer;
  transition: 0.2s ease;
}

.user-name:hover,
.logout:hover {
  background-image: linear-gradient(90deg,
      var(--main-color) 0%,
      var(--main-color-hover) 100%);
  color: white;
}

.phone-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.phone-link img {
  margin-right: 6px;
}

/* сам текст номера */
.phone-mask {
  position: relative;
  white-space: nowrap;
  display: inline-block;
}

/* градиент скрывающий справа */
.phone-mask::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 40%;
  /* сколько закрывать */
  pointer-events: none;
  background: linear-gradient(to left, white 70%, transparent 100%);
  transition:
    width 0.5s ease,
    opacity 0.5s ease;
}

.phone-link.revealed .phone-mask::after {
  width: 0%;
  opacity: 0;
}

.pushed-cart-button {
  border: 1px solid var(--main-color) !important;
  color: var(--main-color);
  padding: 8px 28px;
}

.pushed-cart-button:hover {
  content: "" !important;
}

.product-row {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  border: 1px solid var(--border-color);
}

.product-image {
  width: 100%;
  position: relative;
  padding: 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  text-align: center;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.product-price-desc {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 20px;
}

.product-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px;
}

.product-main-info {
  width: 100%;
  padding: 0px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-sizing: border-box;
  justify-content: space-between;
}

.product-image-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.product-image-fallback i {
  font-size: 6rem;
  color: #cbd5e0;
  margin-bottom: 10px;
}

.product-image {
  display: block;
  box-sizing: border-box;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-name-row {
  width: 100%;
  border-bottom: 1px solid #f3f3f3;
}

.product-name {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  padding: 20px;
  transition: 0.2s ease;
}

.product-name-row .product-name:hover {
  opacity: 0.7;
}

.product-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  margin-top: 20px;
}

.product-col {
  background-color: rgba(90, 191, 112, 0.4);
  padding: 8px;
  border-radius: 6px;
}

.product-price {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.product-quantity-control {
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--border-color);
  border-radius: 6px !important;
  overflow: hidden;
  height: 62px;
}

.product-info-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-sizing: border-box;
}

.qty-input {
  width: 40px;
  text-align: center;
  outline: none;
  border: none !important;
  background-color: white;
}

.qty-btn-decrease,
.qty-btn-increase {
  padding: 23px 12px;
  font-size: 16px;
  cursor: pointer;
  outline: none;
  background-color: white;
  border: none;
  transition: 0.2s ease;
}

.qty-btn-decrease:hover {
  background-color: var(--main-color);
  color: white;
}

.qty-btn-increase:hover {
  background-color: var(--main-color);
  color: white;
}

.btn-add-to-cart {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 500;
  padding: 14px 52px;
  background: var(--main-color);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 6px;
  font-size: 22px;
  color: white;
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
  transform-style: preserve-3d;
  perspective: 500px;
  height: fit-content;
}

.btn-add-to-cart:hover {
  background: var(--main-color-hover);
}

.btn-add-to-cart.green {
  background: var(--main-color);
  color: #ffffff;
}

.btn-add-to-cart.green:hover {
  background: var(--main-color-hover);
}

.btn-add-to-cart.green i {
  color: white !important;
}

.btn-add-to-cart::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.4),
      transparent);
  transition: left 0.7s ease;
}

.btn-add-to-cart:hover::before {
  left: 100%;
}

.btn-add-to-cart:hover::after {
  opacity: 1;
}

@keyframes borderRotate {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.btn-add-to-cart .btn-icon {
  transition: all 0.3s ease;
  filter: brightness(0) saturate(100%);
}

.btn-add-to-cart:hover .btn-icon {
  transform: rotate(-15deg) scale(1.2);
  animation: cartBounce 0.6s ease;
}

@keyframes cartBounce {

  0%,
  100% {
    transform: rotate(-15deg) scale(1.2);
  }

  50% {
    transform: rotate(15deg) scale(1.3);
  }
}

.btn-add-to-cart span {
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.btn-add-to-cart:hover span {
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-add-to-cart:active {
  transform: translateY(1px) scale(0.98);
  transition: all 0.1s ease;
}

.btn-add-to-cart.added {
  background-image: linear-gradient(90deg, #4caf50 0%, #45a049 100%);
  animation: successPulse 0.6s ease;
}

.btn-add-to-cart.added:hover {
  background-image: linear-gradient(90deg, #5dbf61 0%, #52b256 100%);
  box-shadow: 0 8px 20px rgba(76, 175, 80, 0.4);
}

@keyframes successPulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}

.btn-add-to-cart:focus {
  outline: none;
}

@media (max-width: 768px) {
  .btn-add-to-cart {
    font-size: 18px;
    padding: 8px 40px;
  }

  .contact-page {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .btn-add-to-cart {
    font-size: 16px;
    padding: 8px 30px;
    gap: 8px;
  }

  .btn-add-to-cart:hover {
    transform: translateY(-2px);
  }
}

/* Карточка менеджера */
.manager-card {
  display: flex;
  align-items: center;
  padding: 20px;
  border-radius: 6px;
  color: #ffffff;
  background: linear-gradient(90deg, #4a4a4b 0%, #58585a 100%);
}

.manager-avatar {
  width: 140px;
  height: 140px;
  margin-right: 20px;
  border-radius: 50%;
  background-image: url(/fail/img/2021-08-23.jpeg);
  background-size: cover;
  background-position: center;
}

.manager-info p {
  margin: 0 0 8px;
}

.manager-info a {
  color: #ffffff;
  text-decoration: underline;
}

/* Контактная страница */
.contact-page {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  align-items: stretch !important;
}

.contact-info {
  width: 100%;
  padding: 20px;
  height: 360px;
  border: 1px solid #cccccc;
  border-radius: 6px;
  box-sizing: border-box;
}

.contact-info p {
  margin: 0 0 10px;
}

.contact-map {
  width: 100%;
  border-radius: 6px;
  border: none;
}

.cart-icon {
  width: 16px;
  height: 16px;
}

.btn-add-to-cart:hover {}

.title {
  font-size: 32px;
  font-weight: 800;
}

.subcategory-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  text-align: center;
  width: 100%;
  height: 300px;
  border: 1px solid var(--border-color);
  transition: 0.2s ease;
}

.subcategory-card:hover {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
  border-color: var(--color-text, var(--color-text));
}

.subcategory-img {
  flex: 1;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  display: flex;
}

.subcategory-img i {
  font-size: 80px;
  margin-top: 60px;
  color: var(--color-text);
}

.subcategory-title {
  flex: 0.5;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
}

.subcategory-title h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
}

.form-error {
  margin: 10px 0px;
  color: var(--main-color);
  border-radius: 10px;
}

.order-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border-color) !important;
}

.zag {
  font-family: "Manrope" !important;
  margin-top: 30px;
}

.fa-caret-right {
  margin-right: 10px;
  color: #cccccc !important;
}

.order-table thead {
  background-color: #f3f3f3;
  height: 50px;
  box-sizing: border-box;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
}

.order-table th,
.order-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e5e5e5;
}

.order-table tr:hover {
  background: #f5f5f5;
  cursor: pointer;
}

.order-table tbody tr:nth-child(even) {
  background: #fafafa;
}

.order-table td.active {
  color: #28a745;
}

.order-table td.inactive {
  color: var(--main-color);
  opacity: 0.8;
}

iframe {
  border: 1px solid #cccccc;
}

@media (max-width: 1500px) {
  .header-top-container {
    justify-content: flex-end;
  }
}

@media (max-width: 768px) {
  .order-table thead {
    display: none;
  }

  .order-table,
  .order-table tbody,
  .order-table tr,
  .order-table td {
    display: block;
    width: 100%;
  }

  .order-table tr {
    margin-bottom: 15px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 10px;
  }

  .order-table td {
    text-align: right;
    padding-left: 50%;
    position: relative;
    border: none;
    border-bottom: 1px solid #eee;
  }

  .order-table td:before {
    content: attr(data-label);
    position: absolute;
    left: 10px;
    top: 10px;
    font-weight: bold;
    text-align: left;
  }

  .main-header {
    margin-top: 0px;
  }

  main {
    margin-top: 10px;
  }

  .product-img img {
    width: 100%;
  }

  .product-row {
    flex-direction: column;
  }

  .product-image img {
    border: none;
  }

  .product-row {
    align-items: flex-start;
  }

  .product-content {
    width: 100%;
  }

  .restore-mail {
    max-width: 300px;
  }

  .footer {
    border-top: 1px solid var(--border-color);
  }

  .subcategories-cards {
    justify-content: center;
    flex-direction: column;
  }

  .subcategory-card {
    width: 100%;
    height: 260px;
  }

  .lead,
  .meta {
    width: 300px;
    text-align: center;
  }
}

.tabs-nav {
  margin: 0px;
  font-size: 18px;
  font-weight: 400;
  padding: 0px;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  box-sizing: border-box;
}

.tab-btn {
  padding: 8px 16px;
  background: #f9f9f9;
  cursor: pointer;
  box-sizing: border-box;
  font-family: "Manrope" !important;
  font-weight: 600;
  height: 50px;
  border: none;
  border-radius: 10px;
  outline: none;
}

.tab-btn.active {
  background: var(--main-color);
  color: white;
}

.tab-pane {
  margin-top: 20px;
  background: #fff;
}

.tabs {}

.order-info {
  margin-bottom: 20px;
  font-family: var(--font-body);
}

.order-info .container {
  overflow-x: auto;
}

.order-info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-top: 10px;
}

.order-info-table th,
.order-info-table td {
  padding: 8px 10px;
  border: 1px solid #ccc;
}

.order-info-table th {
  background: #f5f5f5;
  font-weight: bold;
}

.order-info-table tbody tr:nth-child(even) {
  background: #fafafa;
}

.order-info p {
  margin: 0;
  padding: 5px;
  border-radius: 4px;
  font-weight: bold;
}

.but_back {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text);
  margin-bottom: 10px;
  transition: 0.2s ease;
}

.but_back:hover {
  text-decoration: underline;
}

.not-found-page {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  min-height: 500px;
  margin-bottom: 60px;
}

.not-found-page #page-title {
  font-size: 90px;
  opacity: 0.8;
  margin: 0px;
}

.not-found-page .actions a {
  display: block;
  border: 1px solid var(--border-color);
  padding: 12px 16px;
  border-radius: 8px;
  transition: 0.2s ease;
}

.not-found-page .actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0px;
}

.not-found-page .meta {
  margin-top: 20px;
  font-size: 12px;
  text-align: center;
  opacity: 0.6;
}

.actions a:first-child {
  background-color: var(--main-color);
  color: white;
  border: none;
}

.not-found-page .actions a:hover {
  background-color: var(--main-color);
  color: white;
}

.actions a:first-child:hover {
  opacity: 0.8;
}

.header-contact-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding-bottom: 10px;
}

.header-info-dropdown-area {
  position: relative;
  display: inline-block;
}

.info-btn.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.header-info-dropdown {
  position: absolute;
  top: 100%;
  left: -100%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--primary), var(--color-text));
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  padding: 15px;
  min-width: 240px;
  z-index: 1000;
  color: white !important;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-10px);
  transition: all 0.3s ease;

  margin-top: 10px;
}

.header-info-dropdown::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: -100%;
  transform: translateX(-50%);
  border-width: 0 8px 10px 8px;
  border-style: solid;
  border-color: transparent transparent white transparent;
}

.header-info-dropdown span {
  display: block;
  color: white !important;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 5px;
}

.header-info-dropdown span:last-child {
  margin-bottom: 0;
}

.header-info-dropdown-area:hover .header-info-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.header-info-dropdown-area:hover .info-btn.contact-btn i {
  transform: rotate(180deg);
}

.info-btn.contact-btn i {
  transition: transform 0.3s ease;
}

.header-info-dropdown p {
  font-size: 12px;
  margin-bottom: 6px;
}

.download-btn {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 20px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
}

.contact-phone .contact-note {
  text-align: right;
}

.drevo-cards-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 30px;
  width: 100%;
}

.drevo-card {
  width: 100%;
  height: 200px;
  padding: 30px;
  border: 1px solid var(--border-color, #e0e0e0);
  background-color: white;
  border-radius: 10px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  flex-direction: column;
  text-align: left;
  gap: 10px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.drevo-card h3 {
  margin: 0;
  text-align: left;
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
  transition: color 0.3s ease;
}

.drevo-card p {
  margin: 0;
  color: #666;
  font-size: 0.95rem;
  line-height: 1.5;
  transition: color 0.3s ease;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.drevo-card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  border-color: transparent;
}

.drevo-card:hover {
  background-image: linear-gradient(135deg, #4a4a4b 0%, #6c6c6f 100%);
  color: white;
}

.drevo-card:hover h3 {
  color: white;
}

.drevo-card:hover p {
  color: rgba(255, 255, 255, 0.9);
}

.drevo-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 40px 40px 0;
  border-color: transparent var(--main-color, --main-color-hover) transparent transparent;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.drevo-card:hover::after {
  opacity: 1;
}

.drevo-card .arrow {
  position: absolute;
  bottom: 20px;
  right: 20px;
  color: var(--main-color, #007bff);
  font-size: 1.2rem;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateX(-10px);
}

.drevo-card:hover .arrow {
  opacity: 1;
  transform: translateX(0);
  color: white;
}

.product-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background-repeat: no-repeat;
  height: 100%;
  background: linear-gradient(45deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4));
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.product-image:hover .product-image-overlay {
  opacity: 1;
}

.product-image:hover .product-image-icon {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.product-image-icon {
  color: white;
  font-size: 52px;
  transform: translateY(20px) scale(0.8);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.main-nav {
  display: flex;
  gap: 40px;
  align-items: center;
  position: relative;
  padding: 20px 0px;
}

.main-nav>a,
.main-menu-dropdown .dropdown-toggle {
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s ease;
  position: relative;
  font-family: "Manrope" !important;
}

.main-nav>a:hover,
.main-menu-dropdown .dropdown-toggle:hover {}

.main-menu-dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
}

.dropdown-icon {
  font-size: 10px;
  transition: transform 0.3s ease;
}

.main-menu-dropdown:hover .dropdown-icon {
  transform: rotate(180deg);
}

.dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 330px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  padding: 8px 0;
  border: 1px solid var(--border-color);
}

.main-menu-dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-content a {
  display: block;
  padding: 10px 20px;
  color: #333;
  text-decoration: none;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.dropdown-content a:hover {
  background: #f8f9fa;
  color: var(--color-text);
  border-left-color: var(--color-text);
  padding-left: 25px;
}

.dropdown-content a.opened-page {
  background: #e3f2fd;
  color: var(--main-color-hover);
  font-weight: 500;
  border-left-color: var(--color-text);
}

.login-section form,
.reg-section form {
  min-width: 300px;
}

.order-info-grid {
  display: grid;
  margin-bottom: 20px;
  margin-top: 20px;
}

.info-row {
  display: flex;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-color);
}

.info-label {
  min-width: 150px;
  font-weight: bold;
  color: #555;
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-value {
  flex: 1;
  color: #333;
  font-style: italic;
}

.status-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 14px;
  width: fit-content;
  font-weight: 500;
}

.status-0 {
  background: #ffeb3b;
  color: #333;
}

.status-1 {
  background: #2196f3;
  color: white;
}

.status-2 {
  background: #4caf50;
  color: white;
}

.status-3 {
  background: #ff9800;
  color: white;
}

.status-4 {
  background: #f44336;
  color: white;
}

.status-5 {
  background: #9c27b0;
  color: white;
}

.goods-list {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

.goods-header {
  display: flex;
  background: var(--main-color);
  color: white;
  font-weight: bold;
  padding: 12px 0;
}

.goods-row {
  display: flex;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.goods-row.even {
  background: #f9f9f9;
}

.goods-row.odd {
  background: #fff;
}

.goods-col {
  padding: 0 8px;
}

.goods-col.num {
  width: 40px;
  text-align: center;
}

.goods-col.name {
  flex: 3;
}

.goods-col a {
  display: flex;
  align-items: center;
  gap: 10px;
}

.goods-col.price {
  width: 100px;
}

.goods-col.qty {
  width: 60px;
  text-align: center;
}

.goods-col.sum {
  width: 120px;
}

.goods-col.date {
  width: 130px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.order-total {
  text-align: right;
  padding: 20px;
}

.order-total h2 {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  font-size: 16px;
  color: var(--color-text);
}

.order-meta {
  display: flex;
  gap: 20px;
  color: var(--color-text);
  opacity: 0.8;
}

.order-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.edit-user-form {
  min-width: 400px;
}

.complects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 1200px) {
  .complects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-link {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .complects-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== CARD ===== */
.complect-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  height: 420px;
  border: 1px solid var(--border-color);
}

/* ===== COVER ===== */
.complect-cover {
  height: 220px;
  background-size: cover;
  background-position: center;
  border-radius: 8px 8px 0px 0px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  overflow: hidden;
}

.complect-cover.no-cover {
  font-size: 6rem;
  color: #cbd5e0;
}

/* ===== BODY ===== */
.complect-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.complect-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
  margin-top: 10px;
}

.complect-price {
  color: #16a34a;
  font-weight: 600;
}

/* ===== ACTIONS ===== */
.complect-actions {
  margin-top: auto;
}

.complect-actions .but {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 52px;
  background-image: var(--main-color);
  border-radius: 6px;
  font-size: 16px;
  color: var(--color-text);
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(255, 208, 0, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.complect-actions .but:hover {
  opacity: 0.8;
}

.product-img .no-photo-icon {
  width: 300px;
  height: 300px;
  background: #f8fafc;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.product-img .no-photo-icon i {
  font-size: 6rem;
  color: #cbd5e0;
}

.btn-add-to-cart i {
  color: white !important;
}

.cena-sale {
  font-size: 20px;
}

.complect-price {
  font-size: 20px;
}

@media (max-width: 1500px) {
  .drevo-dropdown-wrapper {
    display: none !important;
  }

  .login-section,
  .reg-section {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 600px;
  }

  .reg-section {
    width: 100%;
  }

  .link {
    text-align: center;
  }

  .butZakaz {
    height: 50px;
    margin-top: 10px;
  }

  .left-form {
    width: 600px;
  }

  .login-section h2,
  .reg-section h2 {
    text-align: center !important;
  }

  .down-links {
    flex-direction: column;
    gap: 10px;
  }

  .main-menu-container .logo {
    display: none;
  }

  .main-menu-container {
    display: block;
  }

  .back-to-catalog {
    display: flex !important;
  }

  .main-header {
    padding: 18px 0px;
  }

  .main-header {
    border-bottom: 1px solid var(--border-color);
  }

  .mobile-cart {
    display: block !important;
    position: fixed;
    /* фиксируем относительно окна */
    bottom: 20px;
    /* отступ от низа */
    right: 20px;
    /* отступ от правого края */
    z-index: 1000;
    /* поверх всего контента */
    background: #fff;
    padding: 10px 15px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .mobile-cart a {
    display: flex;
    align-items: center;
    text-decoration: none !important;
    gap: 10px;
    color: #000;
    font-weight: 500;
  }

  .mobile-cart img {
    width: 24px;
    height: 24px;
  }

  .cart-count {
    font-size: 14px;
  }
}

@media (max-width: 1400px) {
  .header-search {
    width: 84%;
  }

  .header-main-btns {
    justify-content: flex-end;
  }

  .header-main-btns {
    min-width: fit-content;
  }
}

@media (max-width: 500px) {
  .search-wrapper {
    width: 100%;
    margin-bottom: 10px;
  }

  .auth-container {
    width: 100%;
    justify-content: center;
  }

  .btn-register,
  .btn-login {
    width: 100%;
    text-align: center;
  }
}

.btn-share {
  display: none !important;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  margin-left: 10px;
  background-color: #ebebeb;
  color: #969696;
  border: none;
  cursor: pointer;
  font-size: 14px;
}

.btn-share i {
  font-size: 16px;
}

.btn-share .copy-notice {
  position: absolute;
  top: -25px;
  right: 0;
  background-color: #3333338c;
  color: #fff;
  font-size: 12px;
  padding: 2px 6px;
  opacity: 0;
  transition: opacity 0.4s;
  white-space: nowrap;
  pointer-events: none;
}

/* ===============================
   Миниатюры товара
   =============================== */

.product-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

/* одна миниатюра */
.thumb-wrapper {
  width: 120px;
  height: 120px;
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
  cursor: pointer;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  transition: transform 0.2s ease;
}

/* затемнение при hover */
.thumb-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 1;
}

.thumb-wrapper:hover::after {
  opacity: 1;
}

.thumb-wrapper:hover {
  transform: scale(1.05);
}

/* иконка лупы */
.thumb-hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;

  color: #fff;
  font-size: 30px;

  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  z-index: 2;
}

.thumb-wrapper:hover .thumb-hover {
  opacity: 1;
}

/* ===============================
   Главное изображение товара
   =============================== */

.main-img-wrapper {
  width: 510px;
  height: 339px;
  display: block;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  cursor: pointer;
}

.main-img {
  position: absolute;
  inset: 0;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.2s ease;
  z-index: 1;
  border-radius: 8px;
}

.main-img-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 2;
}

.main-img-wrapper:hover::after {
  opacity: 1;
}

.main-img-wrapper:hover .main-img {
  transform: scale(1.02);
}

.main-img-hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;

  color: #fff;
  font-size: 66px;

  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  z-index: 3;
}

.main-img-wrapper:hover .main-img-hover {
  opacity: 1;
}

.separator {
  width: 100%;
  height: 1px;
  background-color: #e0e0e0;
  margin: 20px 0;
}

.drevo-dropdown-wrapper {
  position: relative;
  display: inline-block;
}

/* кнопка */
.drevo-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: var(--color-text);

  padding: 12px 16px;
  border: 1px solid rgb(231, 231, 231);
  color: #ffffff;
  font-size: 19px;
  text-decoration: none;
  font-weight: 500;
  transition: 0.2s ease;
  border-radius: 10px;
  text-decoration: none;
}

.drevo-dropdown-btn:hover {
  opacity: 0.8;
}

.drevo-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: -210px;
  min-width: 260px;

  background-color: var(--color-text);
  border-radius: 12px !important;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  z-index: 1000;

  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: 0.25s ease;
}

/* РАСКРЫТИЕ */
.drevo-dropdown-wrapper:hover .drevo-dropdown,
.drevo-dropdown-wrapper:focus-within .drevo-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.drevo-dropdown-btn:hover,
.drevo-dropdown-wrapper:hover .drevo-dropdown-btn,
.drevo-dropdown-wrapper:focus-within .drevo-dropdown-btn {
  background-color: #1e1e1e;
}

.drevo-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 12px 18px;
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
}

.drevo-dropdown a i {
  width: 18px;
  text-align: center;
  color: rgb(224, 224, 224);
}

.drevo-dropdown a:hover {
  background-color: #1e1e1e;
}

.product-description ul li {
  list-style-type: disc !important;
  margin-left: 30px;
}

.popular-products {
  padding-bottom: 20px;
}

.order-result {
  text-align: center;
  margin: 100px auto;
  padding: 40px 30px;
  background: #fff;
  max-width: 400px;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  min-height: 400px;
}

.order-result.success i {
  color: var(--main-color);
}

.order-result.error i {
  color: #dc3545;
}

.order-result i {
  font-size: 50px;
  margin-bottom: 20px;
  display: block;
}

.order-result h1 {
  font-size: 24px;
  margin-bottom: 15px;
}

.order-result p {
  font-size: 16px;
  margin-bottom: 25px;
}

.order-result a {
  display: inline-block;
  text-decoration: none;
  color: #fff;
  background-color: var(--main-color);
  padding: 12px 25px;
  border-radius: 8px;
  transition: background-color 0.3s;
}

.order-result a:hover {
  background-color: var(--main-color-hover);
}

@media screen and (max-width: 500px) {
  .order-result {
    padding: 30px 20px;
    margin: 50px 10px;
  }

  .order-result h1 {
    font-size: 20px;
  }

  .order-result p {
    font-size: 14px;
  }

  .order-result i {
    font-size: 40px;
  }
}

.header-burger-menu {
  display: flex;
  align-items: center;
}

.header-burger-menu {
  display: none !important;
}

.mobile-search {
  display: none;
}

@media (max-width: 1400px) {
  .header-burger-menu {
    display: block !important;
  }

  .header-contact-info {
    box-sizing: border-box;
  }

  .navigation-link {
    display: none;
  }
}

@media (max-width: 800px) {
  .contact-hours {
    display: none;
  }

  .contact-item {
    display: none;
  }

  .main-search {
    display: none;
  }

  .mobile-search {
    display: flex;
  }

  .logo img {
    width: 60px !important;
  }
}

@media (max-width: 600px) {
  .contact-link {
    font-size: 13px;
  }
}

.header-burger-menu {
  display: flex;
  align-items: center;
  z-index: 200;
  position: relative;
}

.burger-btn {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  display: flex;
  border: 1px solid var(--color-text);
  border-radius: 8px;
  padding: 10px 14px;
  align-items: center;
  transition: 0.2s ease;
}

.burger-btn:hover {
  background-color: var(--color-text);
  color: white;
}

.burger-btn i {
  transition: transform 0.3s ease;
}

.mobile-dropdown-container {
  display: flex;
  flex-direction: column;
  padding: 0px 10px;
  transition: 0.2s ease;
}

.mobile-dropdown-container a {
  transition: 0.2s ease;
}

.mobile-dropdown-container a:hover {
  background-color: #1e1e1e;
}

/* Мобильное меню */
.mobile-dropdown {
  flex-direction: column;
  gap: 10px;
  background: var(--color-text);
  padding: 10px;
  position: absolute;
  top: 200px;
  left: 0;
  width: 100%;
  box-sizing: border-box;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 100;
  color: white;
  max-height: 0;
  opacity: 0;
  overflow: hidden;

  transition:
    max-height 0.4s ease,
    opacity 0.4s ease;
}

.mobile-dropdown.open {
  max-height: 500px;
  /* достаточно для меню */
  opacity: 1;
}

.mobile-dropdown a {
  text-decoration: none;
  font-weight: 500;
  padding: 12px 10px;
  border-bottom: 1px solid #212121;
}

@media (max-width: 800px) {
  .product-image {
    height: 160px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-dropdown {
    top: 100px !important;
  }

  .product-name a {
    font-size: 14px;
  }

  .product-info {
    padding: 10px;
  }

  .product-name {
    padding: 10px;
  }

  .product-price-desc {
    padding: 10px;
  }

  .product-action-row {
    margin-top: 0;
  }

  .btn-add-to-cart {
    text-align: center;
    justify-content: center;
    align-items: center;
    padding: 12px 22px !important;
  }

  .product-img .no-photo-icon {
    width: 100%;
  }

  .product-quantity-control {
    display: none;
  }

  .product-name-row {
    border-bottom: 0;
  }
}

.category-slider {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  padding: 13px;
  scrollbar-width: thin;
}

.category-slider::-webkit-scrollbar {
  height: 6px;
}

.category-slider::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

.category-slider::-webkit-scrollbar-track {
  background: transparent;
}

.category-item {
  flex: 0 0 auto;
  padding: 10px 15px;
  background: #f5f5f5;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
}

@media (min-width: 768px) {
  .category-slider {
    display: none;
  }

}

.cart-count-rectangle {
  position: absolute;
  top: -20px;
  right: -6px;
  background: var(--main-color);
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  width: 34px;
  height: 34px;
  line-height: 18px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  pointer-events: none;
}

.mobile-cart.at-bottom {
  bottom: 70px;
  /* насколько оттолкнуть */
}

@media (max-width: 968px) {
  .catalog-title-left {
    font-size: 18px;
  }

  .product-descr {
    white-space: normal;
    /* обычный перенос */
    word-break: normal;
    /* не ломаем слова */
    overflow-wrap: normal;
    /* не рвём длинные слова */
  }

  .product-descr {
    min-width: 0;
  }

  .no-results p {
    font-size: 16px;
    width: 100%;
  }

  .product-name {
    min-height: 64px;
    box-sizing: border-box;
  }

  .product-descr {
    font-size: 14px !important;
  }
}