/* Wymuszenie efektu hover nawet przy focus/visited */
.single-product-custom-container h5 {
  margin: 10px 0px;
}

.gallery-arrow:hover {
  background: #dbdbdba9 !important;
}

.product-gallery-slider {
  position: relative;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  justify-content: center;
  height: 700px;
  flex-direction: row;
}

.gallery-arrow {
    background: #ffffff00;
    width: 49px;
    height: 100%;
    font-size: 2.5rem;
    top: 0px;
    cursor: pointer;
    position: absolute;
    z-index: 2;
    transition: background 0.2s;
    box-shadow: none !important;
    padding: 0px 10px;
}
    
.gallery-arrow-left {
    left: 90px;

}

.gallery-arrow-left::before {
content: '\25C0'; /* Unicode dla ◀ */
font-size: 2.2rem;
color: #878787;
display: block;
line-height: 1;
font-family: Arial, sans-serif;
font-variant-emoji: none;
}

.gallery-arrow-left:hover::before {
    color: #000000;
}

.gallery-arrow-right {
  right: 0px;
}

.gallery-arrow-right::before {
content: '\25B6'; /* Unicode dla ▶ */
font-size: 2.2rem;
color: #878787;
display: block;
line-height: 1;
font-family: Arial, sans-serif;
}

.gallery-arrow-right:hover::before {
    color: #000000;
}


.gallery-arrow:focus,
.gallery-arrow:visited {
  background: inherit !important;
  outline: none !important;
  border-color: inherit !important;
  color: inherit !important;
  filter: none !important;
}

.gallery-images-wrapper {
  display: flex;
  overflow: hidden;
  width: 100%;
  height: 100%;
  transition: transform 0.3s;
  flex-direction: row;
  white-space: nowrap;
}

.gallery-image-item {
  min-width: 100%;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.gallery-image-item img {
    height: 100%;
    object-fit: cover;
  border-radius: 4px;
}

.gallery-thumbnails-wrapper {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  justify-content: flex-start;
  overflow: hidden;
}

.gallery-thumbnail-item {
  border: 2px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: border 0.2s;
  box-sizing: border-box;
  margin-bottom: 8px;
  opacity: 0.5;
}

.gallery-thumbnail-item.active {
  border: 2px solid #ffd600;
  opacity: 1;
}

.gallery-thumbnail-item img {
  display: block;
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 4px;
}

/*
Theme Name: Astra Child - WooCommerce Single Product Custom Styles
*/

.single-product-custom-container {
  display: flex;
  gap: 40px;
}

.single-product-left {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 45%;
}


.single-product-main-image {
  width: 100%;
  border: 1px solid #f9f9f9;
}

.single-product-variants-grid {
    display: flex;
    gap: 8px;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.single-product-variant-tile {
  width: 70px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ddd;
  background: #fafafa;
  cursor: pointer;
  overflow: hidden;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  transition: border-color 0.3s ease;
}

.single-product-variant-tile:hover {
  border-color: #00244f;
}

.single-product-variant-tile.active {
  outline: none;
  border: 4px solid #ffd600;
  box-shadow: 0 2px 5px 0px rgb(0 0 0 / 13%);
}

.single-product-variant-tile img {

}

/* Right side content */

.single-product-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.single-product-right {
  flex: 2 1 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.single-product-brand-logo {
  max-width: 120px !important;
  margin-bottom: 12px;
}

.single-product-title {
    display: flex;
    flex-direction: column;
}

.single-product-sku {
  color: #888;
  font-size: 0.85rem;
}

.single-product-short-desc {
  font-size: 1.1rem;
  margin: 10px 0px;
}

.single-product-full-desc {
  font-size: 1rem;
  color: #444;
}



@media screen and (max-width: 1200px) {
  .single-product-custom-container {
    gap: 20px;
  }

  .single-product-left {
    min-width: 42%;
  }

  .product-gallery-slider {
    height: 500px;
  }

  .ast-woocommerce-container {
    margin: 35px 10px;
  }
}

@media screen and (max-width: 900px) {
  .product-gallery-slider {
    flex-direction: column;
    overflow: hidden;
  }

  .gallery-arrow {
    height: 450px;
    top: 50px;
  }

  .gallery-arrow-left {
    left: 0px;
  }

  .gallery-thumbnails-wrapper {
    flex-direction: row;
    height: 56px;
    align-items: center;
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    max-width: 100vw;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
  }
  .gallery-thumbnails-wrapper::-webkit-scrollbar {
    display: none;
  }
  .gallery-thumbnail-item {
    margin-bottom: 0;
    width: 50px;
    flex: 0 0 auto;
  }

  .gallery-thumbnail-item img {
    height: auto;
  }

  .gallery-images-wrapper {
    height: 450px;
  }
}

@media screen and (max-width: 776px) {
    .single-product-custom-container {
        flex-direction: column;
    }

    .single-product-left,
    .single-product-right {
        min-width: 100%;
    }

    .single-product-right {
        margin-top: 50px;
    }

    .gallery-arrow {
        width: 100px;
    }

    .single-product-variants-grid {
        max-width: none;
    }

    .single-product-variant-tile {
        width: 80px;
        height: 40px;
    }
    
}

.gallery-main-wrapper {
  width: 100%;
  height: 100%;
}

