@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700;900&display=swap');

body:has(:not(.woocommerce-breadcrumb)) .site-content {
  padding-top: 0;
}
.pT-20 {
  padding-top: 20px;
}
.pLR-20 {
  padding-left: 20px;
  padding-right: 20px;
}
.desktop-hide {
  display: none;
}
.shoptimizer-archive {
  background-color: #d0d0d0;
}

.category-hero-section {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background: #fff;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

.category-hero-images {
  display: grid;
  align-content: end;
  grid-template-columns: repeat(4, 1fr);
  max-height: 250px;
  overflow: hidden;
}

.category-hero-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-hero-content {
  max-width: 1300px;
  margin: 0 auto;
  padding: 60px 20px;
}

.category-hero-title-block {
  text-align: center;
  margin-bottom: 60px;
}

.category-hero-title {
  font-family: 'Inter', sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 10px 0;
  color: #000;
}

.category-hero-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  margin: 0;
  color: #666;
}

.category-hero-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
  align-items: center;
}

.category-stat-item {
  text-align: center;
}

.category-stat-value {
  font-family: 'Inter', sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 8px 0;
  color: #000;
}

.category-stat-label {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  margin: 0;
  color: #000;
}

.category-hero-btn {
  display: inline-block;
  background: #3BB54A;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  padding: 16px 40px;
  border-radius: 16px;
  text-decoration: none;
  text-align: center;
  transition: background 0.3s ease;
}

.category-hero-btn:hover {
  background: #32a040;
  color: #fff;
}

/* Product Info Section */
.product-info-section {
  border-radius: 16px;
  margin-top: 20px;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background: #fff;
  padding: 40px 0;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

.product-info-section:nth-of-type(5) .product-info-btn {
  margin-top: 10px;
}

.product-info-section:nth-of-type(6) .product-info-btn {
  margin-top: 10px;
}

.product-info-header {
  display: flex;
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 20px;
  margin-bottom: 30px;
  justify-content: space-between;
}

.product-info-title {
  font-family: 'Inter', sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  color: #000;
}
.product-info-title-image {
  display: flex;
  gap: 20px;
  height: 40px;
  align-items: center;
}
.product-info-title-image img:nth-of-type(2) {
  height: 25px;
}

.product-info-main {
  max-width: 1500px;
  margin: 0 auto 40px;
  padding: 0 20px;
  display: flex;
  align-items: stretch;
  gap: 3em;
}

.product-info-content-wrap {
  width: 50%;
  display: flex;
  padding: 0;
}

.product-info-left {
  width: 100%;
  display: flex;
  gap: 5em;
  align-items: stretch;
}

.custom-class .product-info-left {
  gap: 2em;
}

.custom-class .product-info-image {
  width: 205px;
}

.product-info-image {
  flex-shrink: 0;
  width: 127px;
}

.product-info-image img {
  height: auto;
  display: block;
}

.product-info-text {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-info-features {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
}

.product-info-features li {
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  color: #000;
  position: relative;
  margin-bottom: 8px;
}

.product-info-params {
  display: grid;
  grid-template-rows: 1fr 1fr;
  grid-template-columns: 1fr 1fr;
  margin-left: 0;
}

.product-info-params li {
  align-items: center;
  display: flex;
  list-style: none;
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #3BB54A;
  text-transform: uppercase;
}
.product-info-params li:before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url(/wp-content/themes/shoptimizer-child/template-parts/category/assets/images/product-info-params-icon.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin-right: 5px;
}


.product-info-description {
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  color: #000;
  margin: 0 0 10px 0;
}

.product-info-btn {
  margin-top: 47px;
  align-self: center;
  display: flex;
  justify-content: center;
  width: 100%;
  background: #3BB54A;
  color: #fff;
  font-family: 'Roboto', sans-serif;
  font-size: 26px;
  font-weight: bold;
  padding: 7px 40px;
  border-radius: 16px;
  text-decoration: none;
  text-align: center;
  transition: background 0.3s ease;
  box-shadow: 0 2px 5px 0 rgb(1 1 1 / 71%);
}

.product-info-btn:hover {
  background: #32a040;
  color: #fff;
}

.product-info-right {
  width: 50%;
  padding: 5px;
  position: relative;
  overflow: hidden;
}

.product-info-right img {
  width: 100%;
  height: 360px;
  border-radius: 16px;
  object-fit: cover;
  object-position: right center;
  display: block;
}

/* Product Slider Styles */
.product-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 5px 0 rgb(1 1 1 / 71%);
}

.product-slider .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  border-radius: 16px;
  object-fit: cover;
  object-position: center center;
}

.product-slider .slide.active {
  opacity: 1;
  z-index: 1;
}

.product-info-overlay {
  position: absolute;
  bottom: 40px;
  left: 40px;
  right: 40px;
  color: #fff;
}

.product-info-overlay h3 {
  font-family: 'Inter', sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 12px 0;
  color: #fff;
}

.product-info-overlay p {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

.product-info-specs {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 130px;
}

.product-info-spec-item {
  text-align: left;
}

.spec-title {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: bold;
  line-height: 1.3;
  margin: 0 0 5px 0;
  color: #000;
}
.spec-title span {
  color: #696262;
}

.spec-description {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  margin: 0;
  color: #696262;
}

/* Inverter Section */
.inverter-section, .compare-section {
  border-radius: 16px;
  margin-top: 20px;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background: #fff;
  padding: 80px 0;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

.compare-section {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.inverter-header {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 20px;
  margin-bottom: 60px;
}

.inverter-title {
  font-family: 'Inter', sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  color: #000;
}

/* Обертка для шорткода сетки товаров */
.inverter-section .custom-products-grid {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 20px;
  gap: 40px;
}

.inverter-section.hide-add-to-cart .custom-add-to-cart {
  display: none;
}

/* Compare Tabs */
.compare-tabs-wrapper {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 20px;
  margin-bottom: 40px;
}

.compare-tabs {
  display: flex;
  gap: 0;
  overflow: hidden;
}

.compare-tab-btn {
  flex: 1;
  padding: 6px 24px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid #BCBCBC;
  border-top-right-radius: 12px;
  border-top-left-radius: 12px;
  background: #fff;
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
}

.compare-tab-btn.active {
  background: #155EA0;
  border-color: #155EA0;
  color: #fff;
}

.compare-tab-btn:hover:not(.active) {
  background: #f5f5f5;
}

/* Контент табов */
.compare-tab-content {
  display: none;
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 20px;
}

.compare-tab-content.active {
  display: block;
}

.compare-image {
  width: 100%;
  height: auto;
  display: block;
}

.category-hero-btn-wrap {
  justify-self: center;
}

@media (max-width: 1024px) {
  .product-info-params {
    grid-area: params;
    grid-template-columns: 1fr;
    margin-bottom: 8px;
  }
}

@media (max-width: 768px) {
  .desktop-hide {
    display: block;
  }
  .mobile-hide {
    display: none;
  }
  .category-stat-value {
    font-size: 16px;
  }

  .category-stat-label {
    font-size: 12px;
  }

  .category-hero-images {
    grid-template-columns: repeat(2, 1fr);
    height: auto;
    max-height: fit-content;
  }

  .category-hero-images img {
    /*height: 180px;*/
  }

  .category-hero-content {
    padding: 40px 20px;
  }

  .category-hero-title-block {
    margin-bottom: 40px;
  }

  .category-hero-title {
    font-size: 32px;
  }

  .category-hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px 20px;
  }

  .category-hero-stats .category-hero-btn-wrap {
    grid-column: 1 / -1;
    width: 60%;
    justify-self: center;
  }

  .category-hero-btn {
    width: 100%;
    display: block;
  }

  /* Product Info Section Mobile */
  .product-info-section {
    padding: 40px 0;
  }

  .product-info-header {
    margin-bottom: 40px;
  }

  .product-info-title {
    font-size: 28px;
  }

  .product-info-main {
    flex-direction: column;
    margin-bottom: 10px;
    gap: 1em;
  }

  .product-info-content-wrap {
    width: 100%;
    padding: 0;
  }

  .product-info-left {
    max-width: 100%;
    flex-direction: column;
    gap: 3em;
  }

  .product-info-image {
    grid-template-areas:
        "img params"
        "img list"
        "desk desk";
    grid-template-columns: 75px 1fr;
    display: grid;
    text-align: center;
    column-gap: 1em;
    row-gap: 0.5em;
    width: 100%;
  }

  .custom-class .product-info-image {
    width: 100%;
  }

  .product-info-image img {
    max-width: 75px;
    grid-area: img;
    align-self: center;
  }

  .product-info-features {
    margin-bottom: 0;
    text-align: left;
    grid-area: list;
  }

  .product-info-features li {
    font-size: 14px;
    line-height: 1.3;
  }

  .product-info-description {
    font-size: 13px;
    grid-area: desk;
    text-align: left;
  }

  .product-info-btn {
    width: 100%;
    display: block;
    padding: 14px 30px;
    font-size: 14px;
    margin-top: 0;
  }

  .product-info-right {
    width: 100%;
    margin-top: 0;
  }

  .product-info-overlay {
    bottom: 20px;
    left: 20px;
    right: 20px;
  }

  .product-info-overlay h3 {
    font-size: 20px;
    margin-bottom: 8px;
  }

  .product-info-overlay p {
    font-size: 12px;
  }

  .product-info-specs {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .spec-title {
    font-size: 16px;
  }

  .spec-description {
    font-size: 13px;
  }

  /* Inverter Section Mobile */
  .inverter-section {
    padding: 40px 0;
  }

  .inverter-header {
    margin-bottom: 40px;
  }

  .inverter-title {
    font-size: 24px;
  }

  /* Compare Tabs Mobile */
  .compare-tab-btn {
    font-size: 16px;
    padding: 12px 16px;
  }

  .compare-tabs-wrapper {
    margin-bottom: 30px;
  }

  .inverter-section .custom-products-grid {
    gap: 1em;
  }
}

/* Media queries для ориентации экрана */
@media (max-width: 768px) and (orientation: landscape) {
  .product-slider {
    aspect-ratio: 21 / 9;
  }
}

@media (max-width: 480px) {
  .product-slider {
    /*aspect-ratio: 4 / 3;*/
  }
}

@media (max-width: 480px) and (orientation: landscape) {
  .product-slider {
    aspect-ratio: 16 / 9;
  }
}