/**
 * SAHOMA - Single Product Page Styles
 * Path: /wp-content/themes/hello-elementor-child/assets/css/single-product.css
 */

.sahoma-product-info-sticky {
	max-width:500px;
}

 .stock {
    display: none !important;
}

.single-product .cart {
    display:block !important;
}

.single-product .quantity {
    display:none !important;
}

.input-text.qty.text {
    display:none !important;
}

/* ============================================
   1. PRODUCT GALLERY
============================================ */

.woocommerce .woocommerce-breadcrumb {
    margin: 0 !important;
}

.sahoma-product-gallery {
    width: 100%;
    position: relative;
}

/* All gallery rows */
.sahoma-gallery-row {
    display: grid;
    gap: 7.5px;
    margin-bottom: 0px;
}

.sahoma-gallery-row:last-of-type {
    margin-bottom: 0;
}

/* Row with 2 columns */
.sahoma-gallery-row-2 {
    grid-template-columns: 1fr 1fr;
}

/* Row with 3 columns */
.sahoma-gallery-row-3 {
    grid-template-columns: repeat(3, 1fr);
}

.sahoma-gallery-item {
    cursor: pointer;
}

/* ============================================
   2. LIGHTBOX
============================================ */

.sahoma-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
}

.sahoma-lightbox.active {
    opacity: 1;
}

.sahoma-lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    z-index: 100001;
}

.sahoma-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sahoma-lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.sahoma-lightbox-prev,
.sahoma-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: none;
    font-size: 30px;
    padding: 15px 20px;
    cursor: pointer;
    transition: background 0.3s ease;
    z-index: 100001;
}

.sahoma-lightbox-prev:hover,
.sahoma-lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
}

.sahoma-lightbox-prev {
    left: 20px;
}

.sahoma-lightbox-next {
    right: 20px;
}

/* ============================================
   4. SIZE BUTTONS (Variations)
============================================ */

.sahoma-product-price .price {
    margin-block-end:0 !important;
}
.single-product .woosw-btn-has-icon {
    position: relative;
    top: -2px;
    right: 0;
}
.single-product .woosw-btn-icon:before {
    width: 25px;
    height: 25px;
}
.single-product .woosw-btn-icon {
    font-size: 25px;
}
.single-product .woosw-btn-added .woosw-btn-icon:before{
    width: 25px;
    height: 25px;
    background-image: url(/wp-content/uploads/2025/12/image.png);
}
.singlewishlist {
    margin-left: auto;
}

.sahoma-size-guide-wrapper {
    margin-bottom: 15px;
    margin-top:15px;
    width:100%;
}

.sahoma-size-guide-trigger {
    color: #000;
    cursor: pointer;
    font-weight:600;
	font-size:16px;
}
.sahoma-size-guide-trigger:hover {
    color: #000;
}

.size-guide-icon {
    width: 25px;
    height: 25px;
    vertical-align: middle;
    margin-left: 5px;
    transform: rotate(45deg);
    top: -1px;
    position: relative;   
    filter: brightness(0) saturate(100%);
}

/* Taille unique pour produits simples */
.sahoma-unique-size {
    margin-bottom: 16px;
    width: 100%;
}

.unique-size-label {
    min-width: 35px !important;
    padding: 10px 12px 8px 12px !important;
    border: 0px;
    background: #000 ! important;
    color: #fff !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    text-decoration:none !important;
    margin-left:0 !important;
	font-size:16px !important;
}

.sahoma-size-buttons {
    display: flex;
    gap: 5px;
}

.sahoma-size-btn {
    min-width: 35px !important;
    padding: 10px 12px 8px 12px !important;
    border: 0px;
    background: #fff ! important;
    color: #000 !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    text-decoration:none !important;
    margin-left:0 !important;
	font-size:16px !important;
}

.sahoma-size-btn:hover {
    background: #000 !important;
    color: #fff !important;
}

.sahoma-size-btn.selected {
    background: #000 !important;
    color: #fff !important;
}

.sahoma-hidden-select {
    display: none !important;
}

.variations .label,.reset_variations {
    display:none !important;
}

.woocommerce div.product form.cart .variations td, .woocommerce div.product form.cart .variations th {
    padding:0 !important;
}

.variations .value {
    background:transparent !important;
}

.sahoma-color-switcher {
    position: absolute;
    right: 0;
    bottom: 95px;
}

.sahoma-color-select {
    border: 0;
    font-size: 16px;
    font-weight: 600;
    cursor:pointer;
}
.sahoma-color-select:focus {
    outline:unset !important;
}

.woocommerce div.product p.price del, .woocommerce div.product span.price del {
    opacity:1 !important;
}

.woocommerce div.product p.price ins, .woocommerce div.product span.price ins {
    font-weight: 500 !important;
    color:#B46A55 !important;
    margin-left:5px !important;
    text-decoration:unset !important;
}

/* ============================================
   5. ADD TO CART BUTTONS
============================================ */

/* Container pour les boutons */
.woocommerce-variation-add-to-cart {
    display: flex !important;
    gap: 0 15px;
    flex-wrap: wrap !important;
}

/* Cacher le champ quantité */
.woocommerce-variation-add-to-cart .quantity,
.product-type-simple .cart .quantity {
    display: none !important;
}

button.single_add_to_cart_button {
    padding: 12px 30px 10px 30px !important;
    background: #fff !important;
    border: 1px solid #000 !important;
    color: #000 !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    margin: 0 !important;
    border-radius: 0 !important;
    line-height: 1 !important;
    float: none !important;
    min-height: unset !important;
    text-decoration: none !important;
    flex: 1 !important;
    width: 50% !important;
	font-size:16px !important;
}

button.single_add_to_cart_button:hover {
    background: #000 !important;
    color: #fff !important;
}

.sahoma-quick-buy-btn {
    padding: 12px 30px 10px 30px !important;
    background: #fff !important;
    border: 1px solid #000 !important;
    color: #000 !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    margin: 0 !important;
    border-radius: 0 !important;
    line-height: 1 !important;
    float: none !important;
    min-height: unset !important;
    text-decoration: none !important;
    flex: 1 !important;
    width: 50% !important;
	font-size:16px !important;
}

.sahoma-quick-buy-btn:hover {
    background: #000 !important;
    color: #fff !important;
}

.product-type-simple .cart {
    display: flex !important;
    gap: 0 15px;
    flex-wrap: wrap !important;
}

.single-product .cart {
    position:relative;
}

/* ============================================
   6. PAYMENT INFO
============================================ */

.sahoma-payment-info {
    flex-basis: 100%;
    padding-top: 15px;
    width: 100%;
}

.sahoma-payment-info p {
    font-style: italic;
	font-size:16px;
    margin: 0;
}

/* ============================================
   7. PRODUCT TABS
============================================ */

.woocommerce-tabs {
    margin-top: 30px;
}

.woocommerce-tabs ul.tabs {
    display: flex;
    gap: 0;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    border:0 !important;
    margin-bottom:10px !important;
	justify-content:space-between;
}

.woocommerce-tabs ul.tabs li {
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
}

.woocommerce-tabs ul.tabs li a {
    display: block !important;
    padding: 0px !important;
    color: #000 !important;
    text-decoration: none !important;
    font-size: 18px;
    font-weight: 500 !important;
    text-transform: uppercase;
    font-family:"Bebas Neue", Sans-serif;
    margin: 0 10px;
}
.woocommerce-tabs ul.tabs li:first-child a {
    margin: 0px;
    margin-right:10px;
}
.woocommerce-tabs ul.tabs li:last-child a {
    margin-right:0px;
}

.woocommerce div.product.elementor .woocommerce-tabs .panel {
    border:0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.woocommerce-tabs ul.tabs li a:hover {
    border-bottom: 2px solid;
}

.woocommerce-tabs ul.tabs li.active a {
    border-bottom: 2px solid;
}

.woocommerce-tabs .woocommerce-Tabs-panel {
    padding: 0;
}

.sahoma-tab-content {
    font-size: 16px;
}
.sahoma-tab-content p {
    margin-bottom:5px;
}

/* ============================================
   8. WISHLIST BUTTON
============================================ */

.sahoma-wishlist-wrapper {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

.sahoma-wishlist-wrapper .woosw-btn {
    background: #fff;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.sahoma-wishlist-wrapper .woosw-btn:hover {
    transform: scale(1.1);
}

/* ============================================
   9. SIZE GUIDE MODAL
============================================ */

.sahoma-size-guide-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sahoma-size-guide-modal.active {
    opacity: 1;
}

.sahoma-size-guide-content {
    position: relative;
    background: #fff;
    padding: 40px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 0;
}

.sahoma-size-guide-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    font-weight: 300;
    cursor: pointer;
    color: #000;
    transition: opacity 0.3s ease;
}

.sahoma-size-guide-close:hover {
    opacity: 0.7;
}

.sahoma-size-guide-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* ============================================
   10. RELATED PRODUCTS SECTION
============================================ */

.sahoma-related-section {
    margin-top: 80px;
}

.sahoma-related-title {
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 40px;
}

/* ============================================
   11. RESPONSIVE
============================================ */

@media (max-width: 768px) {
    /* Gallery: all rows become 2 columns on mobile */
    .sahoma-gallery-row {
        grid-template-columns: 1fr 1fr !important;
        gap: 5px;
        margin-bottom: 5px;
    }
    
    .sahoma-cart-buttons {
        grid-template-columns: 1fr;
    }
    
    .sahoma-size-buttons {
        flex-wrap: wrap;
    }
    
    .woocommerce-tabs ul.tabs {
        flex-wrap: wrap;
    }
    
    .woocommerce-tabs ul.tabs li a {
        padding: 10px 15px;
        font-size: 12px;
    }
    
    .sahoma-lightbox-prev,
    .sahoma-lightbox-next {
        padding: 10px 15px;
        font-size: 20px;
    }
    
    .sahoma-product-info-sticky {
        position: relative;
        top: 0;
    }
}

/* ============================================
   12. LOADING STATE
============================================ */

.sahoma-loading {
    opacity: 0.5;
    pointer-events: none;
}

.sahoma-quick-buy-btn.loading::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 10px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: sahoma-spin 0.6s linear infinite;
}

@keyframes sahoma-spin {
    to { transform: rotate(360deg); }
}


/* ============================================
   SLIDER COMPLETER LE LOOK (FICHE PRODUIT)
============================================ */

.completelook .products {
    position: relative;
    overflow: hidden;
    padding: 0px;
}

.completelook .products ul.products {
    display: flex !important;
    gap: 5px !important;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin: 0;
}

.completelook li.product .button {
    display:none !important;
}
.completelook .product-sizes-overlay {
    display:none !important;
}

.completelook .products ul.products::-webkit-scrollbar {
    display: none;
}

.completelook .out-of-stock-message span {
    font-size:18px !important;
}

.completelook .products li.product {
    flex: 0 0 calc((100% - 60px) / 3);
    min-width: calc((100% - 60px) / 3);
    max-width: calc((100% - 60px) / 3);
}

.completelook .product-info-wrapper button {
    display: none !important;
}

.completelook .product-info-wrapper {
    position: absolute;
    bottom: 10px;
    left: 10px;
    justify-content: space-between;
    width: calc(100% - 20px);
    opacity:0;
}

.completelook li:hover .product-info-wrapper {
    opacity:1;
}

.completelook .woocommerce-loop-product__title {
    color:#000;
    line-height:14px !important;
    font-size:14px !important;
    padding-top:0 !important;
    color:#fff !important;
}
.woocommerce .completelook ul.products li.product .price {
    line-height:14px !important;
    font-size:14px !important;   
    padding-top:0 !important;
    color:#fff !important;
}

.completelook-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background-color: #fff !important;
    border-radius: 50px !important;
    padding: 5px !important;
    cursor: pointer !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    border: none;
    width: auto;
    height: auto;
}

.completelook-nav svg {
    width: 14px;
    height: 14px;
    fill: #000;
}

.completelook-nav:hover svg {
    fill: #B46A55;
}

.completelook-nav-prev {
    left: 10px;
}

.completelook-nav-next {
    right: 10px;
}

.single-product ul.products li.product .button,.single-product .product-info-wrapper button {
    display:none !important;
}


/* ============================================
   BLOC RUPTURE
============================================ */

.outofstock .single_add_to_cart_button,.outofstock .sahoma-quick-buy-btn,.outofstock .sahoma-payment-info {
    display:none !important;
}

.outofstock.product form.cart {
    margin-bottom: 0em !important;
}

.outofstock .sahoma-color-switcher {
    bottom: 15px;
}