@charset "UTF-8";
.product-page {
  padding: 1.5rem 0 4rem;
  opacity: 0;
  transform: translateY(20px);
  animation: pageFadeIn 0.8s ease forwards;
}
@keyframes pageFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.product-page .container {
  max-width: 1350px;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 768px) {
  .product-page .container {
    padding: 0 1.5rem;
  }
}
.product-page .breadcrumbs {
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--text-muted, #6b7280);
}
.product-page .breadcrumbs a {
  color: var(--primary, #595a59);
  text-decoration: none;
}
.product-page .breadcrumbs a:hover {
  text-decoration: underline;
}
.product-page .product-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem 3.5rem;
}
@media (max-width: 1024px) {
  .product-page .product-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }
}
.product-page .product-mfg {
  display: flex;
  justify-content: center; /* Центрируем по горизонтали */
  align-items: center; /* Центрируем по вертикали (если нужно) */
  margin-bottom: 1rem;
  font-size: 1.1rem;
  background: #f7f5f2;
  font-weight: 600;
  color: var(--primary, #a15b3b);
  text-align: center;
}
.product-page .product-mfg a {
  display: block;
  line-height: 0;
}
.product-page .product-mfg a img {
  display: block;
  max-width: 100%;
  height: auto;
}
.product-page .product-gallery {
  position: sticky;
  top: 10px;
  align-self: start;
  z-index: 10;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  -webkit-overflow-scrolling: touch;
  padding: 0.5rem;
  background: var(--bg-card, #ffffff);
  transition: box-shadow 0.4s ease;
  /*
  &:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  }*/
}
@media (max-width: 1024px) {
  .product-page .product-gallery {
    position: static;
    top: auto;
    max-height: none;
    overflow-y: visible;
    padding: 0;
    box-shadow: none;
    background: transparent;
  }
}
.product-page .product-gallery .authorized-dealer {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
  font-weight: 500;
  background: #f7f5f2;
  padding-top: 10px;
  padding-bottom: 10px;
}
.product-page .product-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.product-page .product-info .product-title {
  font-size: clamp(1.25rem, 4vw, 1.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1rem;
  color: var(--text-primary);
  word-break: break-word;
}
.product-page .product-info .price-info {
  background: var(--bg-card, #ffffff);
  border-radius: 14px;
}
.product-page .product-info .price-info .line-price {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.product-page .product-info .price-info .line-price .price-current {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
}
.product-page .product-info .price-info .line-price .price-current .minquntity {
  font-size: 1.1rem;
  font-weight: normal;
}
.product-page .product-info .price-info .line-price .badge-sale {
  background: var(--danger, #ef4444);
  color: white;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
}
.product-page .product-info .price-info .price-info-detail {
  font-size: 1.05rem;
  color: var(--text-muted);
}
.product-page .product-info .price-info .price-info-detail .price-gap {
  opacity: 0.75;
}
.product-page .product-info .price-info .special-order-notice,
.product-page .product-info .price-info .package-info {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--warning, #a5311d);
  font-weight: 500;
}
.product-page .product-info .count-in-stock {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.125rem;
  padding-bottom: 1.125rem;
  padding-right: 1.125rem;
  border-radius: 12px;
  font-size: 1.1rem;
}
.product-page .product-info .count-in-stock .items-in-stok {
  font-weight: 700;
  color: var(--success, #10b981);
}
.product-page .product-info .count-in-stock .shipping {
  font-weight: 600;
}
.product-page .product-info .count-in-stock .shipping.free-shipping {
  color: var(--success);
}
.product-page .product-info .product-features {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.product-page .product-info .product-features .option-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 1.1rem;
}
.product-page .product-info .product-features .option-group .option-select {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border: 1px solid var(--border, #d1d5db);
  border-radius: 10px;
  font-size: 1.05rem;
  background: white;
  cursor: pointer;
  transition: all 0.2s ease;
}
.product-page .product-info .product-features .option-group .option-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12);
}
.product-page .product-info .holderprice-and-params {
  position: relative;
}
.product-page .product-info .holderprice-and-params .product-add-to-cart {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem; /* Увеличил отступ, чтобы не было тесно */
  align-items: center;
  margin-top: 1.5rem;
  justify-content: space-between;
  position: sticky;
  bottom: 1rem;
  z-index: 10;
}
.product-page .product-info .holderprice-and-params .product-add-to-cart.is-sticky {
  background: white;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.12);
  margin-left: -1rem;
  margin-right: -1rem;
}
.product-page .product-info .holderprice-and-params .product-add-to-cart .quantity-selector {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 10px; /* Согласуем с радиусом кнопки */
  background: white;
  height: 2.75rem; /* Фиксируем высоту для выравнивания с кнопкой */
}
.product-page .product-info .holderprice-and-params .product-add-to-cart .quantity-selector button {
  width: 2.5rem;
  height: 100%; /* Кнопки внутри занимают всю высоту селектора */
  background: transparent;
  border: none;
  font-size: 1.2rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: background 0.2s;
}
.product-page .product-info .holderprice-and-params .product-add-to-cart .quantity-selector button:hover {
  background: var(--bg-secondary);
}
.product-page .product-info .holderprice-and-params .product-add-to-cart .quantity-selector .quantity-input {
  width: 3.5rem; /* Немного уже, чтобы было компактнее */
  height: 100%;
  text-align: center;
  border: none;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0; /* Убираем лишние паддинги */
  outline: none;
}
.product-page .product-info .holderprice-and-params .product-add-to-cart .price-total {
  /* Уменьшаем размер, чтобы не "кричала" */
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary); /* Или var(--primary), если хочешь выделить */
  margin: 0 auto; /* Магия flex: прижимает цену влево, а кнопку вправо, если есть место */
}
.product-page .product-info .holderprice-and-params .product-add-to-cart .add-to-cart-btn {
  height: 2.75rem; /* СОВПАДАЕТ с селектором количества */
  padding: 0 1.5rem; /* Паддинги только по бокам */
  font-size: 0.95rem;
  font-weight: 600;
  flex: 0 1 auto;
  min-width: 160px;
  background: var(--primary, #f44f0b);
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}
.product-page .product-info .holderprice-and-params .product-add-to-cart .add-to-cart-btn svg {
  width: 1.2rem; /* Иконка тоже стала чуть аккуратнее */
  height: 1.2rem;
}
.product-page .product-info .holderprice-and-params .product-add-to-cart .add-to-cart-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px); /* Чуть меньше прыжок */
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary: #111827;
    --bg-secondary: #1f2937;
    --bg-tertiary: #374151;
    --text-primary: #f3f4f6;
    --text-muted: #9ca3af;
    --border: #4b5563;
    --border-light: #374151;
  }
  .product-gallery,
  .price-info,
  .count-in-stock {
    background: var(--bg-secondary);
    border-color: var(--border);
  }
  .add-to-cart-btn {
    background: var(--primary);
  }
}
.shopCart {
  cursor: pointer;
}

#product-constructor .variant-group {
  margin-bottom: 25px;
}
#product-constructor .variant-group.hidden-attr {
  display: none;
}
#product-constructor .group-label {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
}
#product-constructor .options-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
#product-constructor .options-grid .option-item {
  width: 120px;
  min-height: 140px;
  border: 1px solid #ddd;
  padding: 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #fff;
  transition: border 0.2s;
}
#product-constructor .options-grid .option-item.active {
  border: 2px solid #0056b3;
  background-color: #f8f9ff;
}
#product-constructor .options-grid .option-item.unavailable {
  opacity: 0.4;
  filter: grayscale(1);
  cursor: not-allowed;
}
#product-constructor .options-grid .option-item img {
  max-width: 100%;
  height: 80px;
  object-fit: contain;
  margin-bottom: 8px;
}
#product-constructor .options-grid .option-item span {
  font-size: 12px;
  line-height: 1.3;
  word-wrap: break-word;
}

.parameters {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: 16px;
  color: #333;
}
.parameters .left-param,
.parameters .right-param {
  flex-basis: 48%;
  margin-bottom: 16px;
}
.parameters .left-param > div,
.parameters .right-param > div {
  margin-bottom: 8px;
  line-height: 1.5;
}
.parameters .left-param > div:not(.custom-collections),
.parameters .right-param > div:not(.custom-collections) {
  font-weight: 400;
}
.parameters .left-param a,
.parameters .right-param a {
  color: #007bff;
  text-decoration: none;
  transition: color 0.2s ease;
}
.parameters .left-param a:hover,
.parameters .right-param a:hover {
  color: #0056b3;
  text-decoration: underline;
}
.parameters .left-param a.is-bold,
.parameters .right-param a.is-bold {
  font-weight: bold;
}
.parameters .custom-collections {
  margin-top: 8px;
}
.parameters .custom-collections .collections-label {
  font-weight: bold;
  margin-bottom: 8px;
}
.parameters .custom-collections .collection-link {
  display: block;
  margin-bottom: 8px;
}

@media (max-width: 768px) {
  .parameters {
    flex-direction: column;
  }
  .parameters .left-param,
  .parameters .right-param {
    flex-basis: 100%;
  }
}
.product-ask {
  margin-top: 3px;
  margin-bottom: 3px;
  text-align: center;
}
.product-ask .ask-section.section-item-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  width: 100%;
}
.product-ask .ask-section.section-item-form a {
  text-transform: uppercase;
  background: #fff;
  border: 2px solid #e0e0e0;
  font-size: 0.75rem;
  padding: 0.75rem;
  text-align: center;
  font-weight: 600;
  line-height: 1.4;
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  border-radius: 6px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  min-height: 48px;
}
.product-ask .ask-section.section-item-form a:hover {
  background-color: #495057;
  color: #fff;
}

.description {
  font-family: "Arial", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  max-width: 800px;
  margin: 0 auto;
  padding-top: 20px;
  padding-bottom: 20px;
  padding-right: 20px;
}
.description p {
  margin-bottom: 1.2em;
  text-align: justify;
}
.description strong, .description b {
  font-weight: 700;
}
.description em, .description i {
  font-style: italic;
}
.description a {
  color: #13b672;
  text-decoration: none;
  transition: color 0.3s ease;
}
.description a:hover {
  color: #0056b3;
  text-decoration: underline;
}
.description ul, .description ol {
  margin-bottom: 1.2em;
  padding-left: 1.5em;
}
.description ul li, .description ol li {
  margin-bottom: 0.5em;
}
.description ul {
  list-style-type: disc;
}
.description ol {
  list-style-type: decimal;
}
.description blockquote {
  margin: 1em 0;
  padding: 1em;
  border-left: 4px solid #ccc;
  font-style: italic;
  color: #555;
  background-color: #f9f9f9;
}
.description code {
  background-color: #f4f4f4;
  padding: 2px 4px;
  border-radius: 4px;
  font-family: "Courier New", monospace;
}
.description pre {
  background-color: #f4f4f4;
  padding: 1em;
  border-radius: 8px;
  overflow-x: auto;
  font-family: "Courier New", monospace;
}
.description img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1em 0;
}
.description table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.2em;
}
.description table th, .description table td {
  padding: 0.8em;
  border: 1px solid #ddd;
}
.description table th {
  background-color: #f2f2f2;
  font-weight: bold;
}
@media (max-width: 768px) {
  .description {
    font-size: 15px;
    padding: 10px;
  }
}

.description {
  max-height: 250px;
  overflow: hidden;
  position: relative;
  transition: max-height 0.4s ease;
}

.description.expanded {
  max-height: none;
  overflow: visible;
}

.description .fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgb(255, 255, 255));
  pointer-events: none;
}

.description.expanded .fade {
  display: none;
}

.expand-btn {
  margin-top: 10px;
  cursor: pointer;
  background: none;
  border: 1px solid #ccc;
  padding: 6px 12px;
  border-radius: 4px;
}

.cartTab {
  width: 350px;
  background-color: #fff;
  color: #000;
  position: fixed;
  inset: 0 0 70px auto;
  display: grid;
  grid-template-rows: 70px 1fr 70px;
  z-index: 10002;
  right: -360px;
  border: 2px solid #ebebeb;
  border-radius: 8px 0 0 8px;
  transition: right 0.3s ease;
}
.cartTab .closeButtonCorner {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  background-color: #8c949b;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  z-index: 2;
  transition: background-color 0.3s ease;
  line-height: 1;
  border: none;
}
.cartTab .closeButtonCorner:hover {
  background-color: #424242;
}
.cartTab .cartHeaderSection {
  display: grid;
  grid-template-rows: repeat(2, 1fr);
  align-items: center;
  padding: 0 10px;
  border-bottom: 1px solid #ebebeb;
}
.cartTab .cartHeaderSection h1 {
  margin: 0;
  padding: 0;
  font-weight: 300;
  font-size: 18px;
}
.cartTab .totalItemsInCart {
  color: #000;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 13px;
  padding: 10px 10px 0;
}
.cartTab .totalCartPrice {
  color: #f44f0b;
  font-size: 16px;
  font-weight: 600;
  padding: 0 10px 10px;
}
.cartTab .btn {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding: 5px;
  gap: 5px;
}
.cartTab .btn button {
  background-color: #f44f0b;
  border: 2px solid #ccc;
  font-weight: 600;
  cursor: pointer;
  color: #fff;
  border-radius: 5px;
  padding: 8px;
  transition: background-color 0.3s ease, transform 0.1s ease;
}
.cartTab .btn button:hover {
  background-color: rgb(195.2, 63.2, 8.8);
}
.cartTab .btn button:active {
  transform: scale(0.98);
}
.cartTab .btn button.close, .cartTab .btn button.closeCart {
  background-color: #8c949b;
}
.cartTab .btn button.close:hover, .cartTab .btn button.closeCart:hover {
  background-color: rgb(113.488372093, 122.5674418605, 130.511627907);
}

body.showCart .cartTab {
  right: 0;
  margin: 5px 0;
}

.listCart {
  overflow: auto;
  scrollbar-width: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  background-color: #f9f9f9;
}
.listCart::-webkit-scrollbar {
  width: 0;
  height: 0;
}
.listCart .cartItem {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 10px;
  padding: 10px;
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  align-items: start;
  position: relative;
}
.listCart .cartItem .cart_image {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.listCart .cartItem .cart_image img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
}
.listCart .cartItem .cart_trash_icon {
  font-size: 12px;
  font-weight: bold;
  color: #8c949b;
  cursor: pointer;
  text-align: center;
  padding: 2px 4px;
  border-radius: 3px;
  transition: color 0.3s ease, background-color 0.3s ease;
}
.listCart .cartItem .cart_trash_icon:hover {
  color: #c0392b;
  background-color: #fdecea;
}
.listCart .cartItem .details {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.listCart .cartItem .details .name {
  font-size: 14px;
  font-weight: bold;
  line-height: 1.3;
}
.listCart .cartItem .details .name a {
  color: #393737;
  text-decoration: none;
}
.listCart .cartItem .details .name a:hover {
  color: #f44f0b;
}
.listCart .cartItem .details .options {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.listCart .cartItem .details .options .option {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.listCart .cartItem .details .options .option label {
  font-size: 12px;
  font-weight: 600;
  padding-top: 4px;
}
.listCart .cartItem .details .options .option select {
  padding: 4px 6px;
  font-size: 13px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}
.listCart .cartItem .details .options .option select option {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.listCart .cartItem .price-quantity {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 6px;
  border-top: 1px solid #ebebeb;
  flex-wrap: wrap;
  gap: 6px;
}
.listCart .cartItem .allPriceInCart {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.listCart .cartItem .totalPrice {
  font-size: 15px;
  font-weight: bold;
  color: #f44f0b;
}
.listCart .cartItem .regPrice {
  font-size: 12px;
  color: #888;
  text-decoration: line-through;
}
.listCart .cartItem .uom-item,
.listCart .cartItem .product-shipping {
  font-size: 12px;
  color: #666;
}
.listCart .cartItem .product-shipping {
  font-weight: bold;
}
.listCart .cartItem .quantity-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}
.listCart .cartItem .quantity-controls button {
  appearance: none;
  background-color: #ccc;
  color: #fff;
  border: none;
  padding: 4px 8px;
  font-size: 16px;
  line-height: 1;
  border-radius: 3px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin: 0;
}
.listCart .cartItem .quantity-controls button:hover {
  background-color: #515253;
}
.listCart .cartItem .quantity-controls .quantity {
  font-size: 15px;
  font-weight: 600;
  min-width: 20px;
  text-align: center;
}

.body-total-cart,
.body-total-cart-1 {
  padding: 10px;
  font-size: 14px;
  line-height: 1.8;
}
.body-total-cart .shipping,
.body-total-cart-1 .shipping {
  color: #555;
}
.body-total-cart .coupon,
.body-total-cart-1 .coupon {
  color: #f44f0b;
}
.body-total-cart .tax,
.body-total-cart-1 .tax {
  color: #555;
}
.body-total-cart .total,
.body-total-cart-1 .total {
  color: #f44f0b;
  font-weight: bold;
  font-size: 16px;
}

.promo-code-container {
  display: flex;
  gap: 8px;
  padding: 10px;
  align-items: center;
}
.promo-code-container .promo-input {
  flex: 1;
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}
.promo-code-container .apply-button-promo-input {
  padding: 6px 12px;
  background-color: #f44f0b;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease;
}
.promo-code-container .apply-button-promo-input:hover {
  background-color: rgb(195.2, 63.2, 8.8);
}
.promo-code-container .apply-button-promo-input:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.promo-label {
  font-size: 13px;
  color: #f44f0b;
  padding: 0 10px 5px;
}

.coupon-section {
  padding: 10px;
  font-size: 13px;
}
.coupon-section .coupon-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid #ebebeb;
}
.coupon-section .coupon-info:last-child {
  border-bottom: none;
}
.coupon-section .coupon-info .coupon-info-name {
  font-weight: bold;
  flex: 0 0 auto;
}
.coupon-section .coupon-info .coupon-info-offer {
  flex: 1;
  color: #555;
}
.coupon-section .coupon-info .coupon-apply-btn {
  padding: 4px 10px;
  background-color: #f44f0b;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: background-color 0.3s ease;
}
.coupon-section .coupon-info .coupon-apply-btn:hover {
  background-color: rgb(195.2, 63.2, 8.8);
}
.coupon-section .coupon-info .coupon-apply-btn.coupon-active, .coupon-section .coupon-info .coupon-apply-btn:disabled {
  background-color: #4caf50;
  cursor: default;
}

.tile-calculator {
  --calc-bg: #f8fafc;
  --calc-border: #e2e8f0;
  --calc-accent: #3ba177;
  --calc-accent-hover: #2d8a62;
  --calc-error: #dc2626;
  --calc-radius: 8px;
  --calc-gap: 12px;
  --calc-transition: 0.2s ease;
  box-sizing: border-box;
  margin-block: 20px;
  padding: 20px;
  background: var(--calc-bg);
  border: 1px solid var(--calc-border);
  border-radius: var(--calc-radius);
}
.tile-calculator__title {
  margin: 0 0 16px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a202c;
}
.tile-calculator__inputs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--calc-gap);
  margin-bottom: 16px;
}
.tile-calculator__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tile-calculator__field--overage {
  max-width: 160px;
}
.tile-calculator__label {
  font-size: 0.8rem;
  font-weight: 500;
  color: #4a5568;
  user-select: none;
}
.tile-calculator__input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--calc-border);
  border-radius: 4px;
  font-size: 0.95rem;
  color: #2d3748;
  background: #fff;
  transition: border-color var(--calc-transition), box-shadow var(--calc-transition);
}
.tile-calculator__input:hover {
  border-color: #a0aec0;
}
.tile-calculator__input:focus-visible {
  outline: none;
  border-color: var(--calc-accent);
  box-shadow: 0 0 0 3px rgba(59, 161, 119, 0.2);
}
.tile-calculator__input:user-invalid {
  border-color: var(--calc-error);
}
.tile-calculator__input[type=number] {
  appearance: textfield;
  -moz-appearance: textfield;
  -webkit-appearance: none;
}
.tile-calculator__input[type=number]::-webkit-inner-spin-button, .tile-calculator__input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.tile-calculator__summary {
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--calc-border);
  border-radius: var(--calc-radius);
  margin-bottom: 12px;
}
.tile-calculator__summary:not([hidden]) {
  animation: calc-reveal 0.25s ease;
}
.tile-calculator__summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 4px;
}
.tile-calculator__summary-row:not(:last-child) {
  border-bottom: 1px solid var(--calc-border);
  padding-bottom: 8px;
  margin-bottom: 8px;
}
.tile-calculator__summary-label {
  font-size: 0.875rem;
  color: #4a5568;
}
.tile-calculator__summary-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: #2d3748;
}
.tile-calculator__summary-value--price {
  color: var(--calc-accent);
}
.tile-calculator__errors {
  padding: 10px 12px;
  margin-bottom: 12px;
  background: #fff5f5;
  border: 1px solid #fed7d7;
  border-radius: 4px;
  color: var(--calc-error);
  font-size: 0.85rem;
}
.tile-calculator__errors[hidden] {
  display: none;
}
.tile-calculator__add-btn {
  width: 100%;
  margin-top: 4px;
}
.tile-calculator__add-btn[hidden] {
  display: none;
}
@media (max-width: 480px) {
  .tile-calculator {
    padding: 14px;
  }
  .tile-calculator__field--overage {
    max-width: 100%;
  }
  .tile-calculator__summary-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
}

@keyframes calc-reveal {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.related-section {
  margin-block: 40px;
  border-top: 2px solid #e5e7eb;
  padding-top: 32px;
}
.related-section--sales .related-section__title::before {
  content: "";
}

.related-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.related-section__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
}

.related-section__view-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #3ba177;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}
.related-section__view-all:hover {
  color: rgb(48.0581818182, 131.1418181818, 96.9309090909);
}
.related-section__view-all:hover .related-section__arrow {
  transform: translateX(3px);
}

.related-section__arrow {
  transition: transform 0.2s;
  flex-shrink: 0;
}

.related-splide .splide__pagination {
  display: none;
}
.related-splide .splide__arrow {
  background: #fff;
  border: 1.5px solid #e5e7eb;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: background 0.2s, border-color 0.2s;
  opacity: 1;
}
.related-splide .splide__arrow svg {
  fill: #374151;
  width: 14px;
  height: 14px;
}
.related-splide .splide__arrow:hover:not(:disabled) {
  background: #3ba177;
  border-color: #3ba177;
}
.related-splide .splide__arrow:hover:not(:disabled) svg {
  fill: #fff;
}
.related-splide .splide__arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.related-splide .splide__slide {
  position: relative;
}
.related-splide .product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.related-splide .product-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}
.related-splide .product-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
}
.related-splide .badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.related-splide .badge-sale {
  background: #ef4444;
  color: #fff;
}
.related-splide .product-image {
  display: block;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: #f9fafb;
  text-decoration: none;
}
.related-splide .product-image picture {
  display: block;
  width: 100%;
  height: 100%;
}
.related-splide .product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  transition: transform 0.3s ease;
}
.related-splide .product-image:hover img {
  transform: scale(1.04);
}
.related-splide .product-content {
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}
.related-splide .product-title {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.4;
  color: #1f2937;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.related-splide .product-title a {
  color: inherit;
  text-decoration: none;
}
.related-splide .product-title a:hover {
  color: #3ba177;
}
.related-splide .product-pricing-card {
  margin-top: auto;
}
.related-splide .price-current-card {
  font-size: 1rem;
  font-weight: 700;
  color: #1f2937;
}

@media (max-width: 1024px) {
  .related-section {
    margin-block: 28px;
  }
  .related-splide .product-title {
    font-size: 0.75rem;
  }
}
@media (max-width: 768px) {
  .related-section {
    margin-block: 20px;
  }
  .related-section__title {
    font-size: 1rem;
  }
}
@media (max-width: 480px) {
  .related-splide .product-content {
    padding: 8px;
  }
  .related-splide .price-current-card {
    font-size: 0.9375rem;
  }
}
.splide__track--nav > .splide__list > .splide__slide.is-active {
  border: none !important;
}

.product-slider {
  max-width: 100%;
  overflow: hidden;
}
.product-slider .splide__slide img {
  width: 100%;
  height: auto;
  object-fit: contain;
  aspect-ratio: 1/1;
  display: block;
}
.product-slider .splide__arrow {
  background: rgba(0, 0, 0, 0.5);
  color: white;
  opacity: 0;
  transition: opacity 0.2s;
}
.product-slider:hover .splide__arrow {
  opacity: 0.8;
}

.thumbnails-splide {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  margin-top: 15px;
  padding: 0;
  display: flex;
  justify-content: center;
}
.thumbnails-splide .splide__track {
  width: 100%;
  max-width: 100%;
  overflow: hidden !important;
}
.thumbnails-splide .splide__list {
  display: flex;
  justify-content: flex-start;
  flex-wrap: nowrap;
  width: 100%;
  transition: transform 0.4s ease;
}
.thumbnails-splide .splide__slide {
  flex: 0 0 auto;
  min-width: 0;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s ease;
  opacity: 0.7;
  border-radius: 10px;
}
.thumbnails-splide .splide__slide::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  transition: border-color 0.25s, box-shadow 0.25s;
  pointer-events: none;
  z-index: 1;
}
.thumbnails-splide .splide__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}
.thumbnails-splide .splide__slide.is-active {
  opacity: 1;
}
.thumbnails-splide .splide__slide.is-active::before {
  border-color: #e67e22;
  box-shadow: 0 0 12px rgba(230, 126, 34, 0.4);
}
.thumbnails-splide .splide__slide:hover:not(.is-active) {
  opacity: 0.9;
}
.thumbnails-splide .splide__slide:hover:not(.is-active)::before {
  border-color: #f1c40f;
}
@media (max-width: 420px) {
  .thumbnails-splide {
    padding: 0 5px;
  }
}

:root {
  /* Основные цвета (используются в кнопках, акцентах, иконках) */
  --primary-color: #f44f0b; /* основной оранжевый */
  --primary-dark: #da360d; /* hover / active для primary */
  /* Фоны и поверхности */
  --surface-bg: #ffffff; /* основной белый фон */
  --surface-primary: #f8fafc; /* светлый фон блоков */
  --surface-secondary:#f1f5f9; /* чуть темнее, используется в quantity-btn */
  --surface-tertiary: #e2e8f0; /* ещё темнее, для hover quantity */
  /* Границы и разделители */
  --border-color: #e2e8f0; /* основной цвет границ */
  /* Текст */
  --text-primary: #1e293b; /* основной тёмный текст */
}

/* Базовый сброс стилей (из style.scss, адаптировано под используемые элементы) */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  overflow-x: hidden;
}

ul, ol {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

img {
  display: block;
}

/* Desktop/Mobile visibility */
.desktop-only {
  display: none;
}

.mobile-only {
  display: block;
}

/* Header */
.header {
  width: 100%;
  background-color: var(--surface-bg); /* Замена $baseBackgroundColor */
}

.header__top {
  width: 100%;
}
.header__top nav.links {
  width: 100%;
  padding: 5px 3px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-primary); /* Замена $baseFontColor */
}
.header__top nav.links a.what-on-sale {
  color: var(--primary-color); /* Замена $baseRedColor */
  font-weight: 500;
}

.header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px 3px;
}
.header__row #burger-toggle {
  display: none;
}
.header__row .burger-wrapper {
  position: relative;
}
.header__row .burger-icon {
  display: inline-block;
  cursor: pointer;
  padding: 12px;
  background: none;
  border: none;
}
.header__row .burger-icon svg {
  display: block;
  width: 40px;
  height: 40px;
  stroke: currentColor;
  transition: transform 0.3s ease;
}
.header__row .burger-icon:hover svg {
  stroke: #555;
}
@media (min-width: 768px) {
  .header__row .burger-icon {
    display: none;
  }
}
.header__row .burger-icon,
.header__row .logo,
.header__row .cart {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo a {
  display: block; /* Для img внутри */
}
.logo img {
  width: 160px;
  height: 80px; /* Базовый размер; медиа ниже */
}

.search {
  flex-grow: 1;
  max-width: 100%;
  padding-left: 10%;
  padding-right: 10%;
}
.search .tsearch {
  width: 100%;
  display: flex;
  position: relative;
  padding-left: 1%;
  padding-right: 1%;
}

.tsearch {
  height: 50px;
  display: flex;
  width: 100%;
  max-width: 1200px; /* Адаптировано под siteWidthMax, если нужно */
  padding-left: 5px;
  padding-right: 5px;
}
.tsearch__holder__input {
  flex: 1;
}
.tsearch__holder__input input.tsearch_input {
  color: var(--text-primary); /* Замена $baseFontColor */
  padding: 15px;
  border: 1px solid #d7d5d3;
  background-color: var(--surface-primary); /* Замена #f5f5f5 */
  width: 100%;
  border-bottom-left-radius: 7px;
  border-top-left-radius: 7px;
}
.tsearch__holder__button {
  width: 70px;
}
.tsearch__holder__button button.tsearch_btn {
  width: 100%;
  padding: 15px;
  background-color: #7c7c7c;
  border: 1px solid #7c7c7c;
  color: #fff;
  border-bottom-right-radius: 7px;
  border-top-right-radius: 7px;
}
.tsearch__holder__button button.tsearch_btn:hover {
  background-color: var(--primary-color); /* Замена $baseRedColor */
}

.cart.shopCart {
  position: relative;
  margin-right: 27px;
}
.cart.shopCart svg {
  height: 40px;
  width: 40px;
}

.count_items_in_cart_header {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--primary-color); /* Замена $baseRedColor */
  color: #fff;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 12px;
  line-height: 1;
}

/* Burger Menu (мобильное) */
.burger-menu {
  display: block; /* Базово видно на мобиле; медиа ниже */
}

.burger-close {
  font-size: 24px; /* Адаптировано для 'x' */
  font-weight: bold;
}

/* CartTab */
.cartTab {
  width: 350px;
  background-color: var(--surface-bg);
  color: #000;
  position: fixed;
  inset: 0 0 70px auto;
  display: grid;
  grid-template-rows: 70px 1fr 70px;
  z-index: 10002;
  right: -360px;
  border: 2px solid #ebeaea; /* Хардкод, как в оригинале */
}

.cartTab h1 {
  padding: 20px;
  margin: 0;
  font-weight: 300;
}

.cartHeaderSection {
  display: grid;
  grid-template-rows: repeat(2, 1fr);
  justify-content: start;
  align-items: center;
}

.totalCartPrice {
  color: var(--primary-color); /* Замена $baseRedColor */
  font-size: 16px;
  font-weight: 600;
  padding: 10px;
}

.totalItemsInCart {
  color: #000;
  text-transform: uppercase;
  padding: 10px;
  font-weight: 600;
}

.cartTab .btn {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

button.close.closeCart,
button.checkOut {
  border-radius: 5px;
  background-color: var(--primary-color); /* Замена $baseRedColor */
  border: 2px solid #c0c0c0; /* Хардкод, как в оригинале */
  font-family: "kalinga";
  font-weight: 600;
  cursor: pointer;
  margin: 5px;
  color: white;
}

.cartTab .close {
  background-color: #8c949b;
  margin: 5px;
}

body.showCart .cartTab {
  right: 0;
  margin: 5px;
}

.closeButtonCorner {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  background-color: #8c949b;
  color: white;
  font-size: 30px;
  font-weight: bold;
  text-align: center;
  line-height: 37px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  z-index: 2;
  transition: background-color 0.3s ease;
}

.closeButtonCorner:hover {
  background-color: #424242;
}

.listCart {
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  max-width: 340px;
  background-color: #f9f9f9; /* Хардкод, как в оригинале */
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.listCart::-webkit-scrollbar {
  width: 0;
}

/* Медиа-запросы (релевантные для header и cart) */
@media (min-width: 1258px) {
  .burger-menu {
    display: none !important;
  }
  .desktop-only {
    display: block;
  }
  .mobile-only {
    display: none;
  }
  .logo img {
    height: 100px;
    width: 160px;
  }
}
@media (min-width: 1258px) {
  .burger-menu {
    display: none !important;
  }
  .desktop-only {
    display: block;
  }
  .mobile-only {
    display: none;
  }
}
.footer {
  background-color: #f9f9f9;
  color: #626471;
  padding: 2rem 1rem;
  font-family: "kalinga";
  line-height: 1.6;
}
.footer .wraper-footer {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.footer .colon-footer-1 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .footer .colon-footer-1 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 992px) {
  .footer .colon-footer-1 {
    grid-template-columns: repeat(4, 1fr);
  }
}
.footer .AuthorizeNetSeal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.footer .AuthorizeNetSeal #AuthorizeNetText {
  color: #3498db;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}
.footer .AuthorizeNetSeal #AuthorizeNetText:hover {
  color: #2980b9;
  text-decoration: underline;
}
.footer .footer-refs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}
.footer .footer-refs a {
  color: #88d4bd;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease, transform 0.2s ease;
}
.footer .footer-refs a:hover {
  color: #226963;
  transform: translateX(5px);
}
@media (min-width: 576px) {
  .footer .footer-refs {
    grid-template-columns: repeat(3, 1fr);
  }
}
.footer .footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer .footer-contacts-bold {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #626471;
}
.footer .footer-contacts .line-after {
  padding-bottom: 0.8rem;
  margin-bottom: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer img[src*=payments-accepted] {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  filter: grayscale(20%) brightness(110%);
  transition: filter 0.3s ease;
}
.footer img[src*=payments-accepted]:hover {
  filter: grayscale(0%) brightness(120%);
}
.footer a,
.footer .footer-contacts div {
  transition: all 0.3s ease;
}

@media (min-width: 768px) {
  .footer {
    padding: 3rem 2rem;
  }
  .footer .footer-refs {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 992px) {
  .footer {
    padding: 4rem 2rem;
  }
  .footer .wraper-footer {
    flex-direction: row;
    justify-content: space-between;
  }
  .footer .footer-refs {
    grid-template-columns: 1fr;
  }
}

/*# sourceMappingURL=main.css.map */
