/*
Theme Name:   		Unicase Child Theme
Theme URI:    		http://www.transvelo.in/wp/unicase
Description:  		This is a blank child theme for Unicase
Author:       		Transvelo
Author URI:			http://transvelo.com
Template:       	unicase
Template Version: 	1.2.5
Version:      		1.2.5
License:      		GNU General Public License v2 or later 
License URI:  		http://www.gnu.org/licenses/gpl-2.0.html
Tags:         		black, white, light, two-columns, left-sidebar, right-sidebar, responsive-layout, custom-background, custom-colors, custom-header, custom-menu, featured-images, full-width-template, threaded-comments, accessibility-ready
Text Domain:  		unicase-child

Unicase is based on Underscores http://underscores.me/, (C) 2012-2014 Automattic, Inc.
Resetting and rebuilding styles have been helped along thanks to the fine work of

Eric Meyer http://meyerweb.com/eric/tools/css/reset/index.html
along with Nicolas Gallagher and Jonathan Neal http://necolas.github.com/normalize.css/

FontAwesome License: SIL Open Font License - http://scripts.sil.org/OFL
Images License: GNU General Public License v2 or later
*/
/*
 * Add your own custom css below this text.
 */

/* WooCommerce 3.0+ Product Gallery Styles - Main Image on Top, Thumbnails Below */
.single-product .gallery-holder {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 40px !important;
}

.single-product .content-holder {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    clear: both !important;
}

.single-product .gallery-holder .woocommerce-product-gallery__wrapper {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.single-product .gallery-holder .woocommerce-product-gallery__image:first-child {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    margin: 0 0 15px 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.single-product .gallery-holder .woocommerce-product-gallery__image:first-child a {
    display: block !important;
    width: 100% !important;
}

.single-product .gallery-holder .woocommerce-product-gallery__image:first-child img {
    display: block !important;
    width: 100% !important;
    height: 450px !important;
    object-fit: contain !important;
    border: 1px solid #eaeaea !important;
    padding: 10px !important;
    background: #fff !important;
    box-sizing: border-box !important;
}

/* Style thumbnails side-by-side on a single row below */
.single-product .gallery-holder .woocommerce-product-gallery__image:nth-child(n+2) {
    flex: 1 1 0% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 5px !important;
    box-sizing: border-box !important;
}

.single-product .gallery-holder .woocommerce-product-gallery__image:nth-child(n+2) a {
    display: block !important;
    width: 100% !important;
}

.single-product .gallery-holder .woocommerce-product-gallery__image:nth-child(n+2) img {
    display: block !important;
    width: 100% !important;
    height: 100px !important;
    object-fit: contain !important;
    border: 1px solid #e0e0e0 !important;
    padding: 4px !important;
    background: #fff !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s ease-in-out !important;
    cursor: pointer !important;
}

.single-product .gallery-holder .woocommerce-product-gallery__image:nth-child(n+2) img:hover {
    border-color: #f7542b !important;
}

@media (max-width: 767px) {
    .single-product .gallery-holder .woocommerce-product-gallery__image:first-child img {
        height: 280px !important;
    }
    .single-product .gallery-holder .woocommerce-product-gallery__image:nth-child(n+2) img {
        height: 60px !important;
    }
}

/* Hide the main product price container to remove empty dash and horizontal borders */
.single-product .price-container {
    display: none !important;
}

/* Reduce vertical gaps in single product page to half */
.single-product .entry-summary .product_meta {
    margin-top: 12px !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

.single-product .entry-summary .social-icons {
    margin-top: 12px !important;
    margin-bottom: 0 !important;
}

.single-product .related, 
.single-product .related-products, 
.single-product .upsells {
    margin-top: 25px !important;
}

/* Align VIEW PRODUCT buttons to the same line in all WooCommerce product grids */
ul.products {
    display: flex !important;
    flex-wrap: wrap !important;
    float: none !important;
}

ul.products li.product {
    display: flex !important;
    flex-direction: column !important;
    float: none !important;
    height: auto !important;
}

ul.products .product-item {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    height: 100% !important;
    box-sizing: border-box !important;
}

ul.products .product-item > a.button {
    margin-top: auto !important;
    float: none !important;
    align-self: center !important;
}

/* Force equal image dimensions in all product lists using a flex container with fixed height */
ul.products .product-cover {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 200px !important;
    width: 100% !important;
    background-color: #fff !important;
    overflow: hidden !important;
    margin-bottom: 15px !important;
}

ul.products .product-cover img {
    max-height: 100% !important;
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
}

/* Force opacity to 1 on AJAX-loaded WooCommerce quick view modal gallery */
.modal-quick-view .woocommerce-product-gallery,
.col-product-image .woocommerce-product-gallery {
    opacity: 1 !important;
}

/* Style thumbnails side-by-side inside the quick view modal */
.modal-quick-view .woocommerce-product-gallery__wrapper {
    display: flex !important;
    flex-wrap: wrap !important;
    margin: 0 -5px !important;
    padding: 0 !important;
    list-style: none !important;
}

.modal-quick-view .woocommerce-product-gallery__image:first-child {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    margin-bottom: 10px !important;
    padding: 5px !important;
    box-sizing: border-box !important;
}

.modal-quick-view .woocommerce-product-gallery__image:nth-child(n+2) {
    flex: 1 1 0% !important;
    max-width: none !important;
    padding: 5px !important;
    box-sizing: border-box !important;
}

.modal-quick-view .woocommerce-product-gallery__image:first-child img {
    width: 100% !important;
    height: 450px !important;
    object-fit: contain !important;
    display: block !important;
    border: 1px solid #eaeaea !important;
    background: #fff !important;
    padding: 10px !important;
    box-sizing: border-box !important;
}

.modal-quick-view .woocommerce-product-gallery__image:nth-child(n+2) img {
    width: 100% !important;
    height: 100px !important;
    object-fit: contain !important;
    display: block !important;
    border: 1px solid #e0e0e0 !important;
    background: #fff !important;
    padding: 4px !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s ease-in-out !important;
}

/* Custom Gallery Modal Overlay */
.custom-gallery-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(5px) !important;
    z-index: 999999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
}

.custom-gallery-modal-overlay.active {
    opacity: 1 !important;
}

/* Modal Content Box */
.custom-gallery-modal-content {
    background: #fff !important;
    padding: 30px !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important;
    max-width: 500px !important;
    width: 90% !important;
    position: relative !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    transform: scale(0.9) !important;
    transition: transform 0.3s ease !important;
}

.custom-gallery-modal-overlay.active .custom-gallery-modal-content {
    transform: scale(1) !important;
}

/* Close button */
.custom-gallery-modal-close {
    position: absolute !important;
    top: 10px !important;
    right: 15px !important;
    font-size: 32px !important;
    font-weight: 300 !important;
    color: #333 !important;
    cursor: pointer !important;
    transition: color 0.2s !important;
    line-height: 1 !important;
}

.custom-gallery-modal-close:hover {
    color: #f7542b !important;
}

/* Main Image Container */
.custom-gallery-modal-main {
    width: 100% !important;
    height: 400px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #fff !important;
    border: 1px solid #eaeaea !important;
    border-radius: 4px !important;
    overflow: hidden !important;
    margin-bottom: 20px !important;
}

.custom-gallery-modal-main img {
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
}

/* Thumbnails Wrapper */
.custom-gallery-modal-thumbs {
    display: flex !important;
    justify-content: center !important;
    gap: 15px !important;
    width: 100% !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    padding-bottom: 8px !important;
}

/* Thumbnail Item */
.custom-gallery-modal-thumb {
    width: 80px !important;
    height: 80px !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 4px !important;
    padding: 4px !important;
    background: #fff !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: border-color 0.2s ease-in-out !important;
}

.custom-gallery-modal-thumb img {
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    display: block !important;
}

.custom-gallery-modal-thumb.active {
    border-color: #f7542b !important;
}

/* Prevent image stretching in list view */
.list-view-products .product-cover {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 250px !important;
    width: 100% !important;
    background-color: #fff !important;
    overflow: hidden !important;
}

.list-view-products .product-cover img {
    max-height: 100% !important;
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
}

/* Style the View Product button in list view to look like the grid view button */
.list-view-products .list-view-content a.button {
    border-radius: 4px !important;
    color: #555 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    padding: 8px 17px !important;
    line-height: 18px !important;
    background-color: #fff8f5 !important;
    border: 1px solid #f37022 !important;
    display: inline-block !important;
    text-align: center !important;
    float: none !important;
    transition: all linear 0.2s !important;
    margin-left: 20px !important;
}

.list-view-products .list-view-content a.button:hover {
    color: #fff !important;
    background-color: #f37022 !important;
    text-decoration: none !important;
}









