/*---------------------------------------*/
/*---------------------------------------*/
/* INIT - PRODUCT STYLING                */
/*---------------------------------------*/
/*---------------------------------------*/

/* Import elements to hide first: */
@import url('iledysile-product-hide-elements.css');

.iledysile-square-menu-logo {
    position: fixed;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.iledysile-square-menu-logo.hidden {
    transform: translateY(-100%);
    transform: rotate(90deg); /* se mantiene */
    opacity: 0;
    pointer-events: none;
}

.site-main {
    opacity: 1 !important;
    margin-bottom: 0px !important;
}

/* Estilos para el input tipo range */
input[type="range"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    height: 1px;
    background: #000;
    border-radius: 5px;
    outline: none;
    margin: 10px 0;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 40px;
    background: #fff;
    border: 1px solid #000;
    border-radius: 5px;
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 40px;
    background: #fff;
    border: 2px solid #000;
    border-radius: 5px;
    cursor: pointer;
}

input[type="range"]::-ms-thumb {
    width: 20px;
    height: 40px;
    background: #fff;
    border: 2px solid #000;
    border-radius: 5px;
    cursor: pointer;
}

.site-content .col-full {
    padding-left: 0px;
    padding-right: 0px;
}

.site-content .col-full img {
    border-radius: 0px;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    width: 40px;
    height: 40px;
    background-color: #43454b;
    cursor: pointer;
    clip-path: polygon(10% 70%, 50% 30%, 90% 70%);
    transform-origin: center;
    z-index: 1000 !important;
    padding: 0;
    border-radius: 0;
    transform: translateY(-50%); 
}

.gallery-nav.prev {
  left: 4rem;
  transform: translateY(-50%) rotate(270deg);
}

.gallery-nav.next {
  right: 4rem;
  transform: translateY(-50%) rotate(90deg);
}

.gallery-nav:hover {
    border: solid 1px #8d8d8d;
    background-color: #8d8d8d;
}

.iledysile-image-wrapper {
    width: 100%;
    max-width: 1000px; 
    margin: 0 auto;
    text-align: center;
}

.iledysile-image-wrapper img {
    max-width: 100%;
    max-height: 100vh; 
    width: auto;
    height: auto;
    display: inline-block;
    object-fit: contain; /* para mantener proporción */
}

.woocommerce-Price-amount {
    color: #8d8d8d !important;
    font-family: "Be Vietnam Pro", serif !important;
    font-weight: 400 !important;
}

.woocommerce-product-details__short-description {
    color: #000 !important;
    font-family: "Be Vietnam Pro", serif !important;
    font-weight: 400 !important;
}

.single-product div.product table.variations .value {
    margin-bottom: 0 !important;
}

.single-product div.product .variations_button {
    padding-top: 0 !important;
}

.input-text.qty.text {
    width: 190px;
    background: #f1defc;
    margin-block: clamp(0.5rem, 3vh, 1.5rem);
    box-shadow: none !important;
    text-align: left !important;
    padding-left: 14px;
    font-size: 1rem;
    color: #000 !important;
    font-family: "Be Vietnam Pro", serif !important;
    font-weight: 400 !important;
}

.woocommerce-variation-add-to-cart {
    display: grid;
}

button.iledysile_add_cart {
    width: 190px;
    margin-top: clamp(0.5rem, 3vh, 1.5rem);
    background-color: #43454b !important;
    color: white !important;
    border-left: none !important;
    border-right: none !important;
    border-radius: 0 !important;
    padding: 10px 20px !important;
    font-size: 16px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    font-family: "Be Vietnam Pro", serif !important;
}
button.iledysile_add_cart:hover {
    background-color: #8d8d8d !important;
    color: white !important;
}

.custom-select-wrapper {
	position: relative;
    background-color: #f1defc;
	width: 190px;
	overflow: hidden;
    margin-bottom: clamp(0.5rem, 3vh, 1.5rem);
}

.custom-select-wrapper select{
    font-family: "Be Vietnam Pro", serif !important;
    background-color: transparent !important;
    font-weight: 400 !important;
}

.custom-select-wrapper select,
.custom-select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	border: none;
	padding: 0.75rem 2.5rem 0.75rem 1rem;
	width: 100%;
    max-width: 100% !important;
	font-size: 1rem;
	cursor: pointer;
}

.custom-select-wrapper select:focus {
	outline: none;
}

.custom-arrow {
	position: absolute;
	top: 50%;
	right: 1rem;
	transform: translateY(-50%);
	pointer-events: none;
	fill: #000;
}

.iledisyle-size-chart-button a {
    background-color: transparent !important;
    color: #43454b !important;
    border-top: 2px solid #43454b !important;
    border-bottom: 2px solid #43454b !important;
    border-left: none !important;
    border-right: none !important;
    border-radius: 0 !important;
    padding: 10px 20px !important;
    font-size: 16px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    margin-block: clamp(0.5rem, 3vh, 1.5rem);
}

.iledisyle-size-chart-button a:hover {
    color: #8d8d8d !important;
    border-top: 2px solid #8d8d8d !important;
    border-bottom: 2px solid #8d8d8d !important;
}

.iledysile-product-description {
    color: #000;
}


@media (min-width: 768px) {
    body:not(.home) .site-content {
        margin-top: 0px !important;
    }
    .col-full {
        max-width: 100% !important;
        padding-left: 100px;
        padding-right: 100px;
        margin: 0;
    }
    .storefront-full-width-content.single-product div.product .woocommerce-product-gallery {
        width: 50% !important;
        margin-right: 0px !important;
    }

    .storefront-full-width-content.single-product div.product .summary {
        width: 50% !important;
        opacity: 1 !important;
    }

    .storefront-full-width-content.single-product div.product .summary {
        padding-top: 3%;
        padding-left: 10%;
    }

    .single-product div.product .woocommerce-product-gallery .flex-control-thumbs {
            margin-left: 1.618em !important;
    }

    .storefront-full-width-content.single-product div.product .woocommerce-product-gallery {
        margin-bottom: 0px !important;
    }

    .single-product div.product .woocommerce-product-gallery .flex-viewport {
        margin-bottom: 0px !important;
    }

    .storefront-full-width-content.single-product div.product .summary {
        margin-bottom: 0px !important;
    }
    
}

@media (max-width: 768px) {
    .gallery-nav {
        display: none;
    }
    .iledysile-square-menu-logo {
        position: absolute;
    }
    body:not(.home) .site-content {
        margin-top: 0px;
    }

    .flex-control-nav.flex-control-thumbs {
        display: flex !important;
        justify-content: center !important;
        margin-top: 10px !important;
        padding: 0 !important;
        list-style: none !important;
    }

    .flex-control-nav.flex-control-thumbs li {
        position: relative !important;
        width: 14px !important;
        height: 14px !important;
        margin: 0 6px !important;
        cursor: pointer !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .flex-control-nav.flex-control-thumbs li::before {
        content: '' !important;
        width: 10px !important;
        height: 10px !important;
        background-color: #ccc !important;
        border-radius: 50% !important;
        display: block !important;
        transition: background-color 0.3s ease !important;
        pointer-events: none !important;
    }

    /* Punto activo */
    .flex-control-nav.flex-control-thumbs li.flex-active::before {
        background-color: #000 !important;
    }

    .flex-control-nav.flex-control-thumbs li img {
        opacity: 0 !important;
        width: 100% !important;
        height: 100% !important;
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        pointer-events: none !important;
    }

    .single-product div.product .woocommerce-product-gallery .flex-viewport {
        margin-bottom: 0.5em !important;
    }

}

@media (max-width: 1370px) {
    .gallery-nav {
        top: 70%;
    }
    .gallery-nav.prev {
        left: 2rem;
    }

    .gallery-nav.next {
        right: 2rem;
    }
}
/*---------------------------------------*/
/*---------------------------------------*/
/* END - PRODUCT STYLING                 */
/*---------------------------------------*/
/*---------------------------------------*/