.custom-product-template {
    padding: 40px 0;
    background: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.product-main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.product-details-column {
    position: sticky;
    top: 20px;
    align-self: start;
}

.product-images-column {
    align-self: start;
}

@media (max-width: 768px) {
    .product-details-column {
        position: static;
    }
}

@media (max-width: 768px) {
    .product-main-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.product-images-column .product-main-image {
    border: 1px solid #eee;
    padding: 20px;
    text-align: center;
    margin-bottom: 15px;
}

.product-images-column .product-main-image img {
    max-width: 100%;
    height: auto;
}

.product-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.product-gallery-thumbs img {
    width: 100%;
    cursor: pointer;
    border: 1px solid #ddd;
    transition: border 0.2s;
}

.product-gallery-thumbs img:hover {
    border-color: #999;
}

.product-details-column {
    padding: 0 20px;
}

.product-attributes {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.attribute-item {
    margin-bottom: 8px;
    font-size: 16px;
}

.attribute-label {
    font-weight: bold;
    min-width: 100px;
    display: inline-block;
}

.attribute-value {
    color: #555;
}

.price-wrapper {
  display: flex;
}

.price-wrapper > div {
  flex: 1;
}

.product-price {
    margin-bottom: 20px;
    font-size: 28px;
    font-weight: bold;
    /*color: #F7B6C3;*/
    color: black;
}

.product-packaging-size {
    margin-bottom: 20px;
    padding: 12px;
    background: #f8f9fa;
    border-left: 3px solid #F7B6C3;
}

.packaging-label {
    font-weight: bold;
    margin-right: 10px;
}

.product-add-to-cart {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.product-add-to-cart .cart {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.product-add-to-cart .quantity {
    flex-shrink: 0;
}

.product-add-to-cart .single_add_to_cart_button {
    flex-grow: 1;
    width: auto;
    text-align: center;
    justify-content: center;
}

@media (max-width: 576px) {
    .product-add-to-cart .cart {
        flex-direction: column;
        align-items: stretch;
    }
    
    .product-add-to-cart .quantity {
        width: 100%;
    }
    
    .product-add-to-cart .quantity input {
        width: 100%;
    }
    
    .product-add-to-cart .single_add_to_cart_button {
        width: 100%;
    }
}

.product-add-to-cart .quantity {
    margin-right: 10px;
}

.product-add-to-cart .quantity input {
    width: 70px;
    padding: 10px;
    text-align: center;
}

.product-add-to-cart .single_add_to_cart_button {
    background: #e67e22;
    color: white;
    padding: 12px 25px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background 0.3s;
}

.product-add-to-cart .single_add_to_cart_button:hover {
    background: #d35400;
}

/* Product Slider Styles */
.product-images-column {
    position: relative;
}

.splide.product-slider {
    margin-bottom: 0;
}

.splide.product-slider.single-slide {
  visibility: visible;
}

.splide__slide {
    text-align: center;
    background: transparent;
    border-radius: 8px;
}

.splide__slide img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
}

/* Arrow buttons styling */
.splide__arrow {
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-slider:hover .splide__arrow {
    opacity: 1;
}

.splide__arrow:hover {
    background: rgba(0, 0, 0, 0.8);
}

.splide__arrow svg {
    fill: white;
}

/* Pagination dots */
.splide__pagination {
    bottom: 10px;
}

.splide__pagination__page {
    background: rgba(255, 255, 255, 0.7);
    width: 10px;
    height: 10px;
    margin: 0 4px;
}

.splide__pagination__page.is-active {
    background: #e67e22;
    transform: scale(1.2);
}

/* Responsive */
@media (max-width: 768px) {
    .splide__arrow {
        width: 30px;
        height: 30px;
    }
    
    .splide__slide img {
        max-height: 350px;
    }
}

.product-details-desktop {
  display: block;
}
.product-details-mobile {
  display: none;
}

@media (max-width: 768px) {
  .product-details-desktop {
    display: none;
  }
  .product-details-mobile {
    display: block;
  }
}

.custom-product-template .woocommerce-breadcrumb a {
  color: black;
}

.product-categories {
  margin-bottom: 0.5em;
  padding-bottom: 0.5em;
  border-bottom: 1px solid #F7B6C3;
}

.frh-categories {
  font-family: "scrawny-cat-hu";
  font-size: 1.8em;
}

div.original-name {
  font-family: "4reason-medium";
  font-weight: normal;
  font-size: 1.3em;
}
h2.product-title {
  font-family: "4reason-bold";
  font-weight: normal;
  font-size: 1.5em;
}
  
.details-title {
  font-family: "scrawny-cat-hu";
  font-size: 1.5em;
}

.product-details-desktop {
  margin-top: 1em;
} 

.product-details-mobile {
  margin-top: 2em;
} 

.details-section-title {
  font-family: "4reason-bold";
  margin: 0.5em 0;
  border-bottom: 1px solid var(--fourreasons-primary);
}

.ast-stock-detail .ast-stock-avail {
  display: none;
}

.collapsible {
  margin: 1rem 0;
  background: #e6e6e6;
  padding: 0.5em;
}

.collapsible summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.collapsible summary h4 {
  display: inline-block;
  line-height: 32px;
}

.collapsible .content {
  padding-top: 10px;
}

.collapsible summary::-webkit-details-marker {
    display: none;
}

.collapsible summary::before {
    content: "▶";
    display: inline-block;
    margin-right: 0.5em;
    transition: transform 0.2s ease;
    line-height: 32px;
    vertical-align: top;
}

.collapsible[open] summary::before {
    transform: rotate(90deg);
}

.heightlimit {
    max-height: 300px;
    overflow: hidden;
    clear: both;
    transition: max-height 600ms ease;
}

.heightlimit.expanded {
    max-height: none;
}

.product-details-mobile button.toggle-text,
.product-details-desktop button.toggle-text {
  width: 100%;
  padding: 3px 5px;
  font-size: 14px;
  text-transform: none;
  transition: background-color 0.3s ease;
  background: var(--fourreasons-primary);
  margin-bottom: 1em;
  border-radius: 0 0 1em 1em;
}

button.toggle-text:hover {
  background: #374151;
}

.product-ids {
  display: flex;
  flex-wrap: wrap;
  font-size: 0.8em;
}

.product-ids > div {
  padding-right: 1em;
}

.product-inci {
  text-transform: uppercase;
  font-family: "4reason-light";
  font-size: 0.9em;
}
