.image-hover {
  display: inline-block;
  width: 100px; /* поставь нужный размер */
  height: 100px;
  background-image: url('/img/Color_1.png');
  background-size: cover;
  background-position: center;
  transition: background-image 0.3s ease;
}

.image-hover:hover {
  background-image: url('/img/Color_2.png');
  transform: scale(1.1);
}
.image-hover:active {
  background-image: url('/img/Color_3.png');
  transform: scale(0.9);
}
    .variation-button{
    font-weight: bold;
    color: white;
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    align-items: center;   
    }
    
    .variation-trigger{
    width: 60px;
    height: 60px;
    position: absolute;
    left: 630px;
    top: 330px;
    transition: all 0.5s ease;
    filter: drop-shadow(6px 6px 5px rgba(0, 0, 0, 0.4));
    }

    .add-to-cart {
    padding: 12px;
    font-weight: bold;
    color: white;
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-to-cart:hover {
  background: linear-gradient(135deg, #66bb6a, #388e3c);
  box-shadow: 0 6px 24px rgba(76, 175, 80, 0.4);
  transform: scale(1.02);
}
    .product-card {
        backdrop-filter: blur(14px);
    background: linear-gradient(to bottom right, #ffffff, #fbfbfbf1);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 20px;
    color: #2e2e2e;
    box-shadow: 0 8px 32px rgba(0, 128, 0, 0.1);
    margin-bottom: 50px;
    padding-bottom: 40px;
}

.product-card h2 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 15px;
  line-height: 30px;
}

.product-card .height {
  color: green;
  font-weight: bold;
}

.price {
  font-size: 20px;
  font-weight: bold;
  color: green;
  margin-bottom: 15px;
}

.details {
  list-style: none;
  padding: 0;
  margin: 0 0 15px;
}

.details li {
  margin: 6px 0;
}

.info-block {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    background: rgba(0, 255, 0, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.3s;
    margin-bottom: 25px;
}

.info-block:hover {
  background: rgba(0, 255, 0, 0.2);
}

.info-icon {
  width: 20px;
  height: 20px;
}
.gp-img_new{
    position: relative;
    float: left;
    width: 38.461538461%;
    margin-right: 270px;
}
.gp-img-small_1{
    display: flex;
    align-items: flex-start;
    margin-top: 5px;
    width: 20%;
}
.gp-img-small_1:hover{
    display: flex;
    align-items: flex-start;
    margin-top: 5px;
    width: 20%;
    transform: scale(1.1);
}
.gp-img-small-none{
    display: none;
}
.gp-info_1{
    position: relative;
    display: grid;
}
.vid-small{
    float: left;
    margin-right: 32px;
}
.text-tovara {
    width: 600px;
    display: grid;
    background: linear-gradient(to bottom right, #ffffff, #f6f6f6);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    transition: transform 0.2s ease;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
/* Базовый стиль (для очень маленьких экранов, до 320px) */
.other_12{
    position: absolute;
    top: -10px;
    left: 570px;
    width: 140px;
    z-index: 1;
    -webkit-filter: drop-shadow(6px 6px 5px rgba(0,0,0,0.4));
    filter: drop-shadow(6px 6px 5px rgba(0,0,0,0.4));
}
@media (min-width: 320px) and (max-width: 374px) {
    .other_12 { 
        top: 0px;
        left: 0px;
        width: 100px;
    }
    .variation-trigger {
        width: 50px;
        height: 50px;
        left: 225px;
        top: 180px;
        z-index: 1;
}
   .product-card {
    margin-bottom: auto;
}

}

@media (min-width: 375px) and (max-width: 424px) {
    .other_12 { 
        width: 110px;
        top: 0px;
        left: 0px;
    }
    .variation-trigger {
        left: 280px;
        top: 200px;
        z-index: 1;
        width: 60px;
        height: 60px;
}
   .product-card {
    margin-bottom: auto;
}
}

@media (min-width: 425px) and (max-width: 767px) {
        .other_12{
        width: 120px;
        top: 0px;
        left: 0px;
}
.variation-trigger {
    left: 300px;
        top: 210px;
        z-index: 1;
        width: 60px;
        height: 60px;
}
   .product-card {
    margin-bottom: auto;
}
}

@media (min-width: 768px) and (max-width: 816px) {
    .other_12 { 
        width: 160px;
        top: 0px;
        left: 0px;
    }
    .text-tovara {
    width: auto;
}
.variation-trigger {
    width: 80px;
        height: 80px;
        left: 590px;
        top: 350px;
}
   .product-card {
    margin-bottom: auto;
}
}
@media (min-width: 818px) and (max-width: 1023px) {
    .other_12 { 
        width: 130px;
        top: -5px;
        left: 85px;
    }
    .variation-trigger {
    width: 80px;
    height: 80px;
    left: 590px;
    top: 350px;
}
    .gp-img_new {
    margin-right: 200px;
}
.text-tovara {
    width: auto;
}
.variation-trigger {
    left: 350px;
        top: 200px;
        width: 60px;
        height: 60px;
}
}
@media (min-width: 1024px) and (max-width: 1439px) {
    .other_12 { 
        top: -10px;
        left: 480px;
        width: 130px;
    }
    .text-tovara {
    width: auto;
}
.variation-trigger {
    left: 520px;
    top: 260px;
}
}

@media (max-width: 819px) {
    .gp {
        display: flex;
        flex-direction: column;
    }

    .vid-small{
        float: none;
        max-width: 290px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 20px;
}
.gp-info_1{
      text-align: center;
}
.text-tovara {
    text-align: -webkit-center;
    display: grid;
    width: auto;
}
    .gp-img_new {
        width: 100%;
        float: none;
        margin-right: 0;
        margin-bottom: 20px;
    }

    .gp-img-small_1 {
        display: none;
    }
    .gp-price {
        text-align: center;
    }
    .gp-img-big img {
        max-width: 100% !important;
        height: auto;
        left: 0 !important;
        position: relative !important;
    }
    h1.gp-name {
        text-align: center;
    }
}

.variation{
    display: none;
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 20px;
    border: 1px solid rgb(204, 204, 204);
    z-index: 1000;
    width: max-content;
    border-radius: 30px;
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.25), inset 0 -2px 4px rgba(0, 0, 0, 0.15);
}

@media (max-width: 819px) {
    .variation{
        max-width: 300px;
    }



 
  
  /* --- Стили для стрелок в галерее (ВАРИАНТ: ВНИЗУ, БЛИЖЕ К КРАЯМ) --- */
@media (max-width: 819px) {

  /* 1. Стилизуем контейнеры стрелок */
  .fancybox-nav {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0.8 !important;
    width: 33px !important;
    height: 33px !important;
    background: rgba(24, 22, 23, 0.8) !important;
    border-radius: 50% !important;
    transition: opacity 0.2s !important;
    
    /* === ПОЗИЦИОНИРОВАНИЕ === */
    top: auto !important;
    bottom: 10px !important;      /* Оставляем в 15px от низа */
    transform: none !important;
  }

  .fancybox-nav:hover {
    opacity: 1 !important;
  }

  /* 2. Располагаем стрелки ближе к краям */
  .fancybox-prev {
    left: 8px !important;        /* Уменьшаем отступ */
  }

  .fancybox-next {
    right: 8px !important;       /* Уменьшаем отступ */
  }

  /* 3. Убираем старые элементы */
  .fancybox-nav span {
    display: none !important;
  }

  /* 4. Рисуем новые символы < и > */
  .fancybox-nav::before {
    color: #fff !important;
    font-size: 28px !important;
    font-weight: bold !important;
    line-height: 1 !important;
    font-family: 'Arial', sans-serif;
  }

  .fancybox-prev::before {
    content: '<' !important;
    padding-right: 2px;
  }

  .fancybox-next::before {
    content: '>' !important;
    padding-left: 2px;
  }
}}