/**
 * Стили для категории RV & Van
 * Полностью независимые от off-grid
 */

@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: #EFEEEE;
}

/* Hero Section */
.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);
}

.compare-table {
  border-radius: 16px;
  margin-top: 20px;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background: #fff;
  background-image: url("../images/rv-van/HETVI -INFOGRAPHICS (1920 x 1080 px) (4).jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 40px 0;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}
.compare-table-wrapper {
  width: 944px;
  margin: auto;
}

.category-hero-images {
  width: 100%;
  overflow: hidden;
}

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

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

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

.category-hero-title {
  font-family: 'Inter', sans-serif;
  font-size: 40px;
  font-weight: 600;
  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: flex;
  gap: 20px;
  justify-content: center;
}

.category-hero-banners {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.category-hero-banners img {
  width: 970px;
}

.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: 500;
  line-height: 1.4;
  margin: 0;
  color: #000;
  display: flex;
  align-items: center;
  gap: 8px;
}

.category-stat-label::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  min-width: 16px;
  background-image: url('../images/product-info-params-icon.png');
  background-size: contain;
  background-repeat: no-repeat;
}

.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;
}

/* Табы напряжения */
.category-hero-tabs {
  margin: auto;
  width: 700px;
}

.category-hero-tabs ul {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  list-style: none;
  padding: 0;
  margin: 30px 0 0;
}

.category-hero-tabs .tab-item {
  text-align: center;
  padding: 12px 40px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 24px;
  font-weight: bold;
  color: #A3A3A3;
  transition: all 0.3s ease;
  border-bottom: 1px solid;
}

.category-hero-tabs .tab-item:hover {
  border-bottom: 2px solid;
  color: #000;
}

.category-hero-tabs .tab-item.active {
  border-bottom: 2px solid;
  color: #000;
}

/* Sticky табы - placeholder чтобы страница не прыгала */
.category-hero-tabs-placeholder {
  display: none;
}

.category-hero-tabs-placeholder.active {
  display: block;
}

/* Sticky режим */
.category-hero-tabs.sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #fff;
  width: 100%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.category-hero-tabs.sticky ul {
  width: 700px;
  margin: 0px auto;
}

.custom-products-grid {
  gap: 40px !important;
}

/* 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-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;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

.product-info-left img {
  width: 100%;
  max-width: 350px;
  align-self: center;
  height: auto;
  border-radius: 8px;
}

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



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

.product-info-btn {
  margin-top: auto;
  margin-bottom: 5px;
  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: 694 / 565;
  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-cards {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 20px;
}

.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;
}


@media (max-width: 768px) {
  .compare-table-wrapper {
    width: 80%;
  }
  .category-hero-subtitle {
    font-size: 10px;
  }
  .category-hero-tabs {
    width: auto;
  }
  .category-hero-tabs .tab-item {
    font-size: 14px;
  }
  .category-hero-tabs ul {
    margin: 15px 0 0;
  }
  .category-hero-tabs.sticky {
    top: 54px;
  }
  .category-hero-tabs.sticky ul {
    width: 100%;
  }
  .desktop-hide {
    display: block;
  }
  .mobile-hide {
    display: none;
  }
  .category-stat-value {
    font-size: 16px;
  }

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

  .category-hero-images img {
    width: 100%;
    height: auto;
  }

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

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

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

  .category-hero-stats {
    flex-wrap: wrap;
    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;
  }
  .custom-products-grid {
    gap: 20px !important;
  }

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

  .product-info-header {
    margin-bottom: 0px;
  }
  .product-info-left img.w-70 {
    width: 70%;
  }
  
  .product-info-left img {
    width: 100%;
    max-width: fit-content;
  }

  .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;
  }

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

  .product-info-right {
    display: none;
    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-cards {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

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

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

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

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

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