@import url('../costants.css');

html { scroll-behavior: smooth; }

del {
    text-decoration: none; /* Disabilita la linea-through di default */
    position: relative;    /* Per poter posizionare la linea con ::after */
}

hr{
    border-top: 1px solid var(--color-grey-dark);
}

del::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: currentColor;
    top: 50%;
    transform: translateY(-50%);
}


.breadcrumb-layout {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.breadcrumb-layout::-webkit-scrollbar {
    display: none;
}


.details-item .head-image {
    border: none;
    padding: 0;
    img {
        width: 98%;
        object-fit: cover;
        object-position: center;
        aspect-ratio: 3/2;
    }
}


.descrizione-item strong{
    contain: var(--color-red);
    font-family: "Playfair Display", serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
}

.footer-image .foot-img{
    height: 100%;
}

.icon-gallery{
    color: var(--color-primary);
    padding: 10px;
    position: absolute;
    right: 0px;
    top: 0px;
    z-index: 10;
    cursor: pointer;
    border-radius: 2px;

}

@media (min-width:768px){
    .details-item .head-image {
        max-height: 675px;
        img {
            width: 100%;
            height: auto;
            margin-left: auto;
            object-fit: cover;
            aspect-ratio: 3/2;
        }
    }
}


.details-item .footer-image {
    padding-top: 10px;

    .swiper-slide {
        border: 1px solid var(--color-grey-light);
        border-radius: 5px;
        width: 150px;
        height: 150px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;

    }
}




@media (min-width:768px){
    .details-item .footer-image {
        .swiper-slide {
            width: 200px;
            height: 200px;
            padding: 0;
        }
    }
    
}

.details-item .footer-image .swiper-container {
    position: relative;
    padding: 0 30px;
}

.details-item .footer-image .swiper {
    position: static;
}

.details-item .footer-image .swiper-button-next::after,
.details-item .footer-image .swiper-button-prev::after {
    content: "";
}

.details-item .footer-image .swiper-button-prev,
.details-item .footer-image .swiper-button-next {
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

.details-item .footer-image .swiper-button-prev {
    background-image: url("../../img/icon/green/LeftArrowChevron.svg");
}


.details-item .footer-image .swiper-button-next {
    background-image: url("../../img/icon/green/RightArrowChevron.svg");
}

.details-item .footer-image .swiper-button-prev {
    left: -3px;
}

.details-item .footer-image .swiper-button-next {
    right: -3px;
}



.details-item .description-item .valutazione {
    border-bottom: 1px solid var(--color-pink-secondary);
}

.details-item .description-item .sconto {
    padding: 12px 6px;
}

.stato-consegna {
    .true {
        width: 15px;
        height: 15px;
        border-radius: 50%;
        background-color: #14AE5C;
    }

    .false{
        width: 15px;
        height: 15px;
        border-radius: 50%;
        background-color: var(--color-red);
    }
}


.radio-custom {
    display: none;
}

/* Stile per il contenitore del radio */
.form-check {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 0;

    .sconto {
        padding: 3px 6px !important;
    }
}






 input[type="radio"].tectonic {
    appearance: none;
    border: 2px solid var(--color-red);
    border-radius: 50%;
    width: 14px;
    height: 14px;
    outline: none;
    cursor: pointer;
    position: relative;
    padding: 0;
}

input[type="radio"].tectonic:checked {
    background-color: var(--color-red);
}

input[type="radio"].tectonic:checked::after {
    content: '';
    width: 6px;
    height: 6px;
    background-color: white;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}





@media (min-width:992px){
    .description-product .tab-content{
        box-shadow: 3px 10px 10px rgba(126, 126, 126, 0.3);
        background-color: white;
        border-radius: 24px;
        border: none;
    }
}






/* InEvidenzia */

.correlati .img-item{
    display: flex;
    justify-content: center;
    align-items: center;
}

.correlati .immagine img{
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: 190px;
}
.correlati .immagine h2{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 2rem;
    z-index: 100;
    text-align: center;
    width: 100%;
    max-width: 300px;
    font-weight: bold;
}

.correlati .prd{
    border: 2px solid var(--color-grey-light);

}
.correlati .prd .prd-detailts{
    min-height: 145px;
}


.correlati .prd h2{
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 10px;
}

.correlati .prd .list-item img{
    padding: 10px;
    width: 100px;
}

@media screen and (min-width: 992px) {

    .correlati .immagine {
        height: 100%;
    }
    .correlati .immagine img {
        height: 100%;
        max-height: 470px;
        width: 100%;
        object-fit: cover;
    }
}

  /* banner-footer */

  .banner-footer{
    background: linear-gradient(rgba(255,255,255,.9), rgba(255,255,255,.9)), url("../../img/COVER.png");
    position: relative;
    background-size: cover;
    background-position: center;
  }
  

  .banner-footer .swiper-button-prev {
    background-image: url("../../img/icon/white/LeftChevron.svg");
    left: 5;
  }

  .banner-footer .swiper-button-next{
    background-image: url("../../img/icon/white/RightChevron.svg");
    right: 5;
  }



.fancybox__image {
    object-fit: contain !important; /* Assicura che l'immagine sia sempre contenuta */
    width: auto !important;
}

.correlati .inEvidenzia .swiper-button-next{
    right: 0px;
}
.correlati .inEvidenzia .swiper-button-prev{
    left: 0px;
}

.icon-video{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    padding: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.82);
    height: 55px;
    width: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
}


/*CALENDARIO - INIZIO */

#choose-date input, #choose-date_des input{
    background-color: inherit;
    border: none;
    outline: none;
}

/*CALENDARIO - FINE */

/*QUANTITA - INIZIO*/

.put-number {
    height: 100%;
    max-height: 42px;
    width: 100px;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
}

/*QUANTITA - FINE*/



.quantity, .quantity_des {
    display: inline-flex;
    align-items: center;
}

.quantity button, .quantity_des button {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1.6rem;
    line-height: 1;
    padding: 0;
    color: var(--color-primary);
}

.quantity input, .quantity_des input {
    width: 30px;
    text-align: center;
    border: none;
    margin: 0 4px;
    -moz-appearance: textfield;
}

.quantity input:focus, .quantity_des input:focus{
    outline: none;
}

.quantity input::-webkit-outer-spin-button,
.quantity input::-webkit-inner-spin-button.button,
.quantity_des input::-webkit-outer-spin-button,
.quantity_des input::-webkit-inner-spin-button.button{
    -webkit-appearance: none;  /* rimuove le freccette native in Chrome/Safari */
    margin: 0;
}



/*RECENSIONI - INIZIO*/

.recensioni-container {
    margin: 50px auto;
}

.recensioni-box {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.recensioni-box h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
}

.recensioni-placeholder {
    color: #6c757d;
    font-style: italic;
    padding: 15px;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    background-color: #f8f9fa;
}

.recensioni-placeholder:hover {
    border-color: var(--color-primary);
    background-color: #e3f2fd;
    color: var(--color-primary);
}

.recensioni-input {
    margin-top: 15px;
}

.recensioni-input textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.recensioni-input textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    justify-content: flex-end;
}

.btn-cancel,
.btn-submit {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-cancel {
    background-color: var(--color-grey-6);
    color: black;
}

.btn-cancel:hover {
    background-color: var(--color-grey-light);
}

.btn-submit {
    background-color: var(--color-primary);
    color: white;
}

.btn-submit:hover {
    background-color: var(--color-primary-light);
}

.hidden {
    display: none;
}

.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stelle-container {
    margin-bottom: 25px;
}

.stelle-wrapper {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 15px;
}

.stella {
    font-size: 40px;
    color: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    position: relative;
}

.stella:hover {
    transform: scale(1.2);
}

.stella.attiva {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.stella.hover {
    color: #ffed4e;
}

.stelle-wrapper {
    display: inline-flex;
    flex-direction: row; /* o row-reverse + inverti logica */
}

.stella { color:#ddd; }
.stella.attiva { color:#ffd700; }
.stella.hover  { color:#ffed4e; }  /* solo quelle con .hover */




/* Responsive */
@media (max-width: 600px) {
    .recensioni-container {
        margin: 20px auto;
        padding: 0 10px;
    }

    .recensioni-box {
        padding: 20px;
    }

    .buttons {
        flex-direction: column;
    }

    .btn-cancel,
    .btn-submit {
        width: 100%;
    }
}

/*RECENSIONI - FINE*/



/*LISTA RECENSIONI - INIZIO*/

#list-rec .img-profile{
    background-color: #0a6aa1;
    border-radius: 50%;
    color: white;
    height: 40px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}
#list-rec .description{
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#list-rec .l-rec{
    display: grid;
    grid-template-columns:1fr;
    gap: 2rem;
}

#list-rec .rex-item{
    padding: 10px;
    cursor: pointer;
}

#list-rec .rex-item:hover{
    background-color: #f4f4f4;
}

@media  (min-width: 568px) {
    #list-rec .l-rec {
        grid-template-columns: repeat(2, 1fr);
    }
}


/*LISTA RECENSIONI - FINE*/
