#single-container {
    width: 99%;
    max-width: 1800px;
    height: auto;
	margin: -160px auto 0 auto;
}
.main__product , body {
	overflow: unset !important;
}
#products-left {
	width: 60%;
	visibility: hidden;
}
#products-right {
	width: 36%;
	display: flex;
	align-self: start;
	flex-direction: column;
	visibility: hidden;
}
#main > nav.woocommerce-breadcrumb , .onsale {
    display: none;
}

/* === FIXED HEADER – no layout crash === */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #fff;           /* change to your background */
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}
main#app,
.site-content,
.product-page-wrapper,
.woocommerce div.product,
body {
    padding-top: 180px;         /* ← IMPORTANT: CHANGE THIS to your header's REAL height */
}
#header.scrolled {
    /* padding: 10px 0; */
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
}

/* Smooth scroll for whole page */
html {
    scroll-behavior: smooth;
}

#primary #main {
	position: relative;
}
.woocommerce-tabs, .related.products {
    width: 100%;
}
.woocommerce-product-gallery {
    width: 100%;
    height: fit-content !important;
    display: flex;
    flex-direction: row-reverse;
    overflow: hidden;
    margin-top: 2rem !important;
	justify-content: space-around !important;
}

.woocommerce-product-gallery .flex-control-nav {
    list-style: none;
    padding-left: 0 !important;
    padding-right: 30px;
    height: fit-content !important;
}
.flex-control-nav li {
    margin-bottom: 1.5rem;
}

.flex-control-nav li img {
    width: 60px !important;
    height: 60px !important;
}

.flex-viewport {
    width: 100% !important;
	max-width: 660px !important;
}
.wp-post-image {
    width: 100%;
    max-width: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
}
/* Limit single product main image width */
.woocommerce div.product div.images,
.woocommerce div.product div.images img {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
}
.woocommerce div.product div.images img:hover {
    transform: none !important;
}


/* 1. Main gallery container: fixed width, centered */
.single-product div.product .woocommerce-product-gallery {
    max-width: 600px;       /* adjust for your design */
    width: 100%;
    margin: 0;
}

/* 2. Main image viewport: keep aspect ratio, no weird stretching */
.single-product div.product .woocommerce-product-gallery .flex-viewport {
    width: 100%;
    height: auto !important;
    overflow: hidden;
}

.single-product div.product .woocommerce-product-gallery__wrapper,
.single-product div.product .woocommerce-product-gallery__image img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain;
}

/* 3. Thumbnails: small row below */
.single-product div.product .woocommerce-product-gallery .flex-control-thumbs {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    justify-content: flex-start;
}

.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li {
    width: 80px;
    margin: 0;
}

.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li img {
    width: 100%;
    height: auto;
    cursor: pointer;
}

/* 4. Remove/soften hover zoom scaling (if theme adds transform) */
.single-product div.product .woocommerce-product-gallery__image img:hover {
    transform: none !important;
}



.woocommerce-product-gallery__trigger {
    display: none;
}

.cart.ajax-cart-wrapper , .woocommerce-variation-add-to-cart {
	width: 99%;
	position: absolute;
	bottom:0;right: .5%;
	padding: 25px;
	background: #fff;
	z-index: 100;
	box-shadow: 0 0 6px 2px var(--border-gray);
}
.total-add del {
	display: none !important;
}
.total-add > b {
    color: #838383;
    font-size: 14px;
}
.total-add .price {
    padding-left: 9px;
}
.summary-scroll-wrapper {
    width: 100%;
    scroll-behavior: smooth;
}
.summary.entry-summary {
    width: 100%;
    height: 100%;
}
.product_title.entry-title {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 1rem !important;
	padding-top: 20px;
}

.custom-star-rating {
    border-bottom: .25px solid var(--border-gray);
}
.rating-number strong , .text-muted {
    color: var(--black) !important;
}
.rating-number strong , .text-muted , .review-count{
    font-size: 12px;
    font-weight: 600;
}
.review-count {
    color: var(--gray);
}


.price {
    width: 100%;
    display: flex;
    justify-content: start;
    flex-direction: row-reverse;
    align-items: center;
    margin-bottom: 1rem;
    font-family: Gotham;
}
.price del {
    color: var(--d-gray);
    text-decoration:  line-through;
    font-size: 26px;
    font-weight: 700;
    margin-left: 16px;
    letter-spacing: -3%;
    line-height: 100%;
    font-family: Gotham;
}
.price ins {
    font-size: 32px;
    font-weight: 700;
    color: var(--green);
    text-decoration: none;
    letter-spacing: -3%;
    line-height: 100%;
    font-family: Gotham;
}

.cat-list {
    padding-left: 10px !important;
}
.product_meta {
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
    margin-top: 1rem;
    padding-bottom: 1rem;
    border-bottom: .25px solid var(--border-gray);
}
.product_meta span {
    color: var(--black);
}
.product_meta span * {
    margin-left: 0px;
    color: var(--blue)
}
.product_meta * {
	font-size: 20px !important;
	font-weight: 500;
}
.posted_in {
    display: flex;
    position: relative;
}
.cat-list, .sku {
    margin-left: 10px;
}

.sku , .posted_in div span {
    font-size: 18px !important;
}

#product-btns {
    flex-wrap: wrap;
    gap: 6px;
}
#product-btns a {
    background-color: var(--sky-blue);
    color: var(--black) !important;
    padding: 8px 20px;
    border-radius: 9px;
}


/* scroll settings */
/* Scrollable summary box - fixed height with scrollbar */
.summary-scroll-wrapper {
    width: 36% ;
    position: sticky;           /* initial state */
    top: 0;right: 0 ;
    align-self: start;          /* CRITICAL for flex container */
    max-height: calc(100vh - 220px);
    height: auto;
    overflow-x: hidden;
    background: #fff;
	display: none;

}
.summary.entry-summary {
	scroll-behavior: smooth;
	overflow-y: auto;
}

/* Make scrollbar look modern & slim */
.summary.entry-summary::-webkit-scrollbar {
    width: 8px;
}

.summary-scroll-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.summary-scroll-wrapper::-webkit-scrollbar-thumb {
    background: #6366f1;        /* your accent color */
    border-radius: 10px;
}

.summary-scroll-wrapper::-webkit-scrollbar-thumb:hover {
    background: #4f46e5;
}

/* Optional: smooth scrolling */
.summary-scroll-wrapper {
    scroll-behavior: smooth;
}

/* Padding inside the scroll area */
.summary-scroll-wrapper .summary {
    padding-right: 25px;
    padding-left: 25px;
}

/* Mobile: disable fixed height - let it expand naturally */
@media (max-width: 991px) {
    .summary-scroll-wrapper {
        max-height: none;
        overflow-y: visible;
        border: none;
        box-shadow: none;
        padding-right: 0;
    }
}

.summary .cart {
	width: 100%;
	box-shadow: 0 -6px 6px -6px rgba(0,0,0,.3);
    background: #fff;
    position: absolute;
    bottom: 25px;right: 0;
    padding: 15px 0;
    /* border-top: .25px solid var(--border-gray); */
    background-color: var(--white);
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    align-items: center;
    z-index: 110;
    flex-wrap: wrap;
}

.cart.ajax-cart-wrapper .quantity.modern-quantity ,
.woocommerce-variation-add-to-cart .quantity.modern-quantity {
	border-radius: 999px !important;
	border-color: var(--blue) !important;
}

.cart.ajax-cart-wrapper .quantity.modern-quantity button,
.cart.ajax-cart-wrapper .quantity.modern-quantity input ,
.woocommerce-variation-add-to-cart .quantity.modern-quantity button ,
.woocommerce-variation-add-to-cart .quantity.modern-quantity input {
	color: var(--blue) !important;
}
.yith-add-to-wishlist-button-block {
	display: none !important;
}

.cart.ajax-cart-wrapper  .loader-type-1 {
  position: absolute;
  display: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border-top: 4px solid var(--blue) !important;
  border-right: 4px solid transparent;
  border-bottom: 4px solid var(--white);
  border-left: 4px solid var(--white);
  box-sizing: border-box;
  animation: rotation 1.1s linear infinite;
  opacity: 0;
  transition: opacity 0.3s ease-out;
}
#space-btn {
    width: 100%;
    height: 1px;
    padding-top: 15px;
    border-top: .5px solid var(--border-gray);
}
.variations_form {
    width: 100%;
    display: flex;
    flex-direction: column;
}
.variations {
    width: 100%;
    margin: 1.5rem 0;
}

.custom-variations {
    width: 100%;
    display: flex;
    flex-direction: column;
    margin: 1.5rem 0;
    background-color: var(--sky-blue);
    padding: 6px 10px;
}
.custom-variations select {
    background: unset !important;
}

.variation-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.variation-label {
    font-weight: 600;
    font-size: 12px;
    color: #333;
    margin: 0;
}
.variations.custom-position select option {
    background: var(--sky-blue);      /* Default option background */
    color: #333;              /* Default text color */
    padding: 0.75rem 1rem;
}
.single_variation_wrap {
    width: 100% !important;
}
.woocommerce-variation-add-to-cart {
  display: flex;
  justify-content: space-between;
}

/* .summary .cart::before {
    content: '';
    width: 100%;
    height: 10px;
    position: absolute;
    top: 0;right: 0;
    border-radius: 40%;
    background-color: rgba(225,227,222, .5);
} */
.qty {
    font-size: 24px;
    font-weight: 600;
    
}
.qty-btn {
    font-size: 24px;
    font-weight: 700;
}
.single_add_to_cart_button{
    width: 180px !important;
    height: 50px !important;
    color: var(--white) !important;
    justify-content: center;
    align-items: center;
    border-radius: 999px !important;
	border: .5px solid var(--blue);
	padding: 0 20px;
	transition: all .2s ease;
	font-weight: 800;
	position: relative;
	margin-top: 0 !important;
	font-size: 18px !important;
	text-transform: uppercase;
}
.single_add_to_cart_button:hover {
	background: var(--blue) !important;
	color: var(--white) !important;
}
.ajax-cart-wrapper .price {
	width: fit-content;
	margin: 0 !important;
}
#footer {
    margin-top: 0 !important;
}


/* tabs */
.atd-custom-tabs-wrapper {
    background-color: var(--blue);
    border-radius: 10px;
    padding: 20px;
}
.woocommerce-tabs.wc-tabs-wrapper {
    padding-top: 30px;
}

.tabs.wc-tabs {
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: start;
    color: #fff;
	width: 100%;
	max-width: 90%;
	margin: 0 auto;
	padding: 10px 20px;
	text-wrap: wrap;
} 
.tabs.wc-tabs > * {
    margin-bottom: .5rem;
}

.tabs.wc-tabs li {
    padding: 20px 0;
}
.tabs.wc-tabs li.active {
    border-bottom: 1px solid var(--white);
}
.tabs.wc-tabs a {
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    margin-right: 36px;
}
.woocommerce-Tabs-panel h1,
.woocommerce-Tabs-panel h2,
.woocommerce-Tabs-panel h3,
.woocommerce-Tabs-panel h4,
.woocommerce-Tabs-panel h5,
.woocommerce-Tabs-panel p ,
.woocommerce-Tabs-panel b ,
.woocommerce-Tabs-panel li,
.woocommerce-Tabs-panel th,
.woocommerce-Tabs-panel td {
    color: var(--white);
}
.woocommerce-product-attributes tr {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.woocommerce-product-attributes tr p {
    margin: 0 !important;
}
.woocommerce-Tabs-panel a {
    color: var(--lighter-blue);
}

.woocommerce-Tabs-panel h1,
.woocommerce-Tabs-panel h2,
.woocommerce-Tabs-panel h3,
.product-long-description h1,
.product-long-description h2,
.product-long-description h3 {
    margin: 25px 0;
}
.woocommerce-Tabs-panel h4,
.woocommerce-Tabs-panel h5,
.product-long-description h4,
.product-long-description h5 {
    margin: 15px 0;
}

.woocommerce-Tabs-panel p,
.woocommerce-Tabs-panel b,
.woocommerce-Tabs-panel a,
.woocommerce-Tabs-panel li,
.product-long-description p,
.product-long-description li,
.product-long-description a,
.product-long-description b {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 12px;
}

.long-description-title {
	border-bottom: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color) !important;
	font-size: 1.5rem ;
}
/* card related */
.related {
    margin-bottom: 2rem;
}
.product-image-wrapper {
    height: 317px;
}
.product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    border: .25px solid var(--black);
}

.product-card  .view-count ,.product-card .rating b {
    font-size: 12px;
    font-weight: 600;
}
.product-card  .rating b {
    padding-left: 6px;
    color: #96A3B8;
}

.product-card {
    padding: 10px;
}

.product-title {
    min-height: 90px !important;
}
.product-title * {
    font-size: 15px;
    font-weight: 600;
}

.product-price {
    min-height: 35px;
    margin-top: 1rem;
    margin-bottom: 0 !important;
}
.product-card .product-price span {
    color: var(--green) !important;
}
.product-price ins {
    text-decoration: none;
}
.regular-price {
    font-size: 23px;
    font-weight: 700;
    color: var(--green);
}
.sale-price {
    font-size: 17px;
    font-weight: 700;
    color: #96A3B8;
    text-decoration: none;
    padding-left: 10px;
}
.onsale {
    display: none;
}

.product-card  a.button {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 42px;
    background-color: var(--blue);
    color: var(--white);
    border-radius: 15px;
    font-size: 15px;
    font-weight: 600;
    margin-top: 1rem;
}

.wc-forward {
    width: fit-content !important;
    margin-top: 0 !important;
    padding: 3px 16px;
    border-radius: 9px !important;
}


#tab-description , #tab-description > * {
    color: var(--white);
}

.compare.button {
    height: 50px;
    border-radius: 4px !important;
} 

/* gallery */
/* review */
.cr-nosummary-add {
    padding: 0 10px !important;
    border-radius: 4px !important;
}
.cr-nosummary-rating-lbl,
.woocommerce-review__published-date {
    color: var(--white) !important;
}
.woocommerce-review__verified.verified {
    background: var(--green);
  color: #fff !important;
  margin-top: 1rem !important;
  padding: 4px 10px;
  border-radius: 4px;
}
.woocommerce-review__author {
    color: var(--light-blue) !important;
    background: #fff;
  text-align: center;
  border-radius: 4px;
    padding: 4px 10px;
}
.avatar-60.photo.cr-std-avatar {
    border-radius: 50% !important;
}
.cr-show-more-reviews-prd {
    background-color: var(--white) !important;
    color: var(--blue) !important;
}
.compare {
    display: none !important;
}
.product-long-description {
	width: 100%;
}
#p-right-summary {
	display: none;
}
#q-btn {
    cursor: pointer;
    color: #333;
}
#product-btns + .stock {
    display: none !important;
}
#q-message {
    background-color: var(--blue, #007bff);
    padding: 10px 15px;
    border-radius: 8px;
    width: max-content;
    position: absolute;
    left: 0;
    bottom: 35px;
    display: none;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Tooltip arrow pointing to the icon */
#q-message::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 15px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid var(--blue, #007bff);
}

#q-message p {
    color: #fff;
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
}

/* Container for the flex row - needs position relative */
.tooltip-container {
    position: relative;
    display: inline-block;
}

/* Style for the question icon */
#q-btn {
    cursor: pointer;
    font-size: 18px;
    color: #000;
    transition: color 0.3s ease;
}

#q-btn:hover {
    color: var(--blue);
}

#stock-wrp {
    width: fit-content;
    border-radius: 6px;
    padding: 6px;
	padding-left: 0 !important;
    margin: 6px 0;
}
#stock-wrp img {
    width: 30px;
    height: 30px;
    margin-right: 10px;
}
#stock-wrp p {
    color: var(--blue);
	margin-left: 10px;
}


/* responsive */
@media only screen and ( max-width: 1200px ) {
    #p-right-summary + .onsale + .woocommerce-product-gallery {
        display: none !important;
    }
	.cart.ajax-cart-wrapper, .woocommerce-variation-add-to-cart {
		display: none !important;
	}
	#single-container {
		width: 96% !important;
		margin-left: auto !important;
		margin-right: auto !important;
	}
	#nav-sm .product-mini-price {
		margin-left: 20px;
	}
	#nav-sm .modern-quantity {
		display: none !important;
	}
	#products-right {
		display: none;
	}
	#products-left {
		width: 100%;
	}
	#p-right-summary {
		display: flex;
		flex-direction: column;
	}

	#p-right-summary + .woocommerce-product-gallery {
		display: none !important;
	}
	#p-right-summary .woocommerce-product-gallery {
		margin-top: 0 !important;
		height: auto !important;
		max-height: 600px !important;
	}
	#p-right-summary .custom-star-rating {
		border-bottom: unset !important;
	}
	#p-right-summary .woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image {
		height: auto !important;
	}
/* 	#p-right-summary #ppcp-recaptcha-v2-container {
		display: none;
	} */
    .woocommerce-product-gallery ,
	.product-long-description {
        width: 100% !important;
    }
    .summary-scroll-wrapper {
        position: static !important;
        width: 100% !important;
        height: auto !important;
		display: none !important;
    }
    .summary.entry-summary {
        height: auto;
    }

    .summary .cart {
        justify-content: start !important;
    }
    .single_add_to_cart_button {
        max-width: 610px !important;
    }

    .woocommerce-tabs, .related.products {
        width: 100% !important;
    }
    .woocommerce-tabs {
        margin-top: 1.5rem;
    }
    .product_title.entry-title {
        margin-top: 1.5rem;
    }
    .summary .cart {
        display: none;
    }
    #nav-sm.mobile-sticky-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 9999;
        background: #fff;
        border-top: 1px solid #ddd;
        padding: 8px 12px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    }
    #nav-sm .price {
        width: fit-content;
    }
    #nav-sm .price bdi {
        font-size: 26px !important;
    }
    #nav-sm .modern-quantity, .single_add_to_cart_button  {
        width: fit-content !important;
    }

    #nav-sm form.cart {
        display: flex !important;
    }

    #nav-sm #space-btn {
        display: none;
    }
    .product-mini-image img {
        width: 60px !important;
        height: 60px !important;
    }
    .woocommerce-tabs.wc-tabs-wrapper {
        margin-top: 0 !important;
    }
    .product-mini-price .price {
        margin-bottom: 0 !important;
    }
}
@media only screen and ( max-width: 1000px ) {
	.tabs.wc-tabs {
		text-wrap: wrap;
	}
}
@media only screen and ( max-width: 900px ) {
    .modern-quantity ,
    .single_add_to_cart_button {
        max-width: unset !important;
    }
    .single_add_to_cart_button {
        width: 70% !important;
    }
    #nav-sm .single_add_to_cart_button {
        width: 100% !important;
    }
    #nav-sm .single_add_to_cart_button .loader-type-1 {
        top: 20px !important;
    }
    .product-mini-actions {
        width: 180px;
    }
    .modern-quantity {
        width: calc(30% - 20px) !important;
    }
}

@media only screen and ( max-width: 767px ) {
    body {
        overflow-x: hidden;
    }
    .product_title.entry-title {
        font-size: 30px !important;
    }
    
    .product-long-description {
        width: 100% !important;
    }
    .product-long-description img {
        max-width: 100% !important;
        height: auto !important;
    }
	#p-right-summary .price {
		margin: 20px 0 !important;
	}
	#product-btns {
		display: none;
	}
	.product_meta span, .product_meta span * {
		font-size: 13px;
	}
}



/* Hide on desktop - only show on mobile */
@media (min-width: 1200px) {  /* adjust breakpoint as needed */
    #nav-sm.mobile-sticky-bar {
        display: none !important;
    }
}

/* Show & position fixed bottom on mobile */
@media (max-width: 767px) {
    

    .product-mini-image img {
        width: 80px;
        height: 80px;
        object-fit: cover;
        border-radius: 4px;
        margin-right: 12px;
    }

    .product-mini-price {
        font-size: 1.1em;
        font-weight: bold;
        color: #e91e63; /* example color */
        flex: 1;
        text-align: left;
    }

    .product-mini-actions {
        flex-shrink: 0;
    }

    .product-mini-actions .single_add_to_cart_button {
        padding: 8px 16px;
        font-size: 0.95em;
    }
}

@media (max-width: 560px) {

	.product-mini-image, #nav-sm .cart {
		gap: 6px;
	}
	#nav-sm .single_add_to_cart_button ,
	#nav-sm .quantity.modern-quantity {
		width: 100% !important;
		margin-left: 0 !important;
		height: 40px !important;
	}
}


@media only screen and  (max-width: 480px) {
	.product_title.entry-title {
    font-size: 26px !important;
	  }
    #single-container {
        width: 96% !important;
    }
    #product-btns li a {
        font-size: 12px !important;
        padding: 8px 10px !important;
    }
    .woocommerce-tabs.wc-tabs-wrapper {
        padding: 30px 10px !important;
    }
    .tabs.wc-tabs a {
        font-size: 12px !important;
        margin-right: 16px !important;
    }
    .product-long-description {
        margin-top: 0 !important;;
    }
    .long-description-title {
        margin-top: 0 !important;
    }
    .single_add_to_cart_button {
        font-size: 12px;
        padding: 10px !important;
        width: auto !important;
        height: auto !important;
    }
	.product_meta span, .product_meta span * {
		font-size: 12px;
	}

    #nav-sm .product-mini-price {
        margin-left: 0 !important;
    }
    #nav-sm .price bdi {
        font-size: 20px !important;
    }
    #nv-sm .single_add_to_cart_button {
        font-size:  14px !important;
    }
    .product-mini-actions {
        width: 160px;
    }

    

}

.cr-ajax-reviews-review-form .cr-review-form-comment .cr-review-form-lbl {
	background-color: #31856c;
	color: #fff;
}


/* Main product image container - FIXED size */
.woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image {
    width: 100% !important;
	max-width: 600px !important;
    height: 600px; /* FIXED height - adjust to your design */
    overflow: hidden;
}

/* All gallery images - object-fit + fixed size */
.woocommerce-product-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* or contain */
    object-position: center;
    transition: transform 0.3s ease;
}

/* Gallery thumbnails - fixed size */
.flex-control-thumbs img {
    height: 80px !important;
    width: 80px !important;
    object-fit: cover;
}









/* Restore FlexSlider basics – hide non-active slides, fix widths */
.woocommerce-product-gallery {
    position: relative !important;
    overflow: hidden !important;
    display: block !important;                  /* remove your flex row-reverse */
    flex-direction: unset !important;
}

.flex-viewport {
    overflow: hidden !important;                /* MUST hide inactive slides */
    position: relative !important;
    height: auto !important;                    /* dynamic per image */
}

.woocommerce-product-gallery__wrapper {
    width: auto !important;                     /* FlexSlider manages this */
    transform: none !important;                 /* clear any stuck translate */
    transition: none !important;
}

.woocommerce-product-gallery__image {
    width: 100% !important;                     /* each slide = full container */
    margin: 0 !important;
    float: left !important;                     /* FlexSlider needs float for horizontal */
    display: block !important;
    position: relative !important;
}

/* Images fit properly */
.woocommerce-product-gallery img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    max-height: none !important;
}

/* Thumbnails – position them below (default) or side if you want */
.flex-control-thumbs {
    margin-top: 15px !important;
    text-align: center !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 10px !important;
}

.flex-control-thumbs li {
    width: 80px !important;
    margin: 0 5px !important;
}

/* Navigation arrows – force to sides if misplaced */
.flex-direction-nav {
    position: absolute !important;
    top: 50% !important;
    width: 100% !important;
    margin: -25px 0 0 !important;
    z-index: 10 !important;
}

.flex-direction-nav a {
    position: absolute !important;
    top: 0 !important;
    width: 40px !important;
    height: 50px !important;
    background: rgba(0,0,0,0.5) !important;
    color: white !important;
    text-align: center !important;
    line-height: 50px !important;
    font-size: 30px !important;
}

.flex-prev {
    left: 10px !important;
}

.flex-next {
    right: 10px !important;
}

/* If you want thumbnails on left side (your original row-reverse intent) */
@media (min-width: 768px) {
    .woocommerce-product-gallery {
        display: flex !important;
        flex-direction: row-reverse !important;
        align-items: flex-start !important;
    }
    
    .flex-control-thumbs {
        flex-direction: column !important;
        margin-right: 20px !important;
        margin-top: 0 !important;
    }
}


/* Force correct slider container behavior */
.woocommerce-product-gallery {
    position: relative !important;
    overflow: hidden !important;
    display: flex !important;               /* kill any flex/row-reverse you added */
}

/* Viewport must clip inactive slides */
.flex-viewport {
    overflow: hidden !important;
    position: relative !important;
    height: auto !important;                 /* dynamic height */
}

/* Wrapper – let FlexSlider calculate */
.woocommerce-product-gallery__wrapper {
    width: auto !important;
    position: relative !important;
    transform: none !important;              /* clear stuck transforms */
}

/* Each slide – must be full width, floated, but hidden when inactive */
.woocommerce-product-gallery__image {
    width: 100% !important;
    margin: 0 !important;
    float: left !important;
    display: block !important;
    position: relative !important;
    opacity: 1 !important;                   /* active one visible */
}

/* Hide inactive slides (FlexSlider normally does this – reinforce) */
.woocommerce-product-gallery__image:not(.flex-active-slide) {
    display: none !important;                /* strongest hide */
    opacity: 0 !important;
}

/* Thumbnails – clickable, normal layout */
.flex-control-thumbs,
.flex-control-nav {
    margin-top: 15px !important;
    text-align: center !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    list-style: none !important;
    padding: 0 !important;
}

.flex-control-thumbs li,
.flex-control-nav li {
    margin: 0 8px 8px !important;
    cursor: pointer !important;
    pointer-events: auto !important;         /* make sure clicks work */
}

.flex-control-thumbs img {
    opacity: 0.6 !important;
    transition: opacity 0.3s;
}

.flex-control-thumbs img.flex-active,
.flex-control-thumbs img:hover {
    opacity: 1 !important;
}

@media (max-width: 768px) {
	.woocommerce-product-gallery {
		flex-direction: column !important;
	}
	.flex-viewport {
		margin: auto !important;
	}
	.flex-control-nav.flex-control-thumbs {
        display: flex;
        justify-content: center;
        gap: 6px;
        align-items: center;
        padding-right: 0 !important;
        margin-top: 20px !important;
    }
}
/* Only force single slide visible if no thumbs or controls exist (common for 1-image products) */
.woocommerce-product-gallery:not(.woocommerce-product-gallery--with-images) .woocommerce-product-gallery__image,
.woocommerce-product-gallery__wrapper:has(.woocommerce-product-gallery__image:only-child) .woocommerce-product-gallery__image {
    display: block !important;
    opacity: 1 !important;
}

#product-btns + form.cart {
	display: none !important;
}

.variations_form.cart {
	display: none !important;
}

#p-right-summary + .onsale {
	display: none;
}
#nav-sm del.regular-price {
	display: none !important;
}

.stock.in-stock + form.cart , .stock.available-on-backorder + form.cart {
    display: none !important;
}
#products-left .onsale {
    display: none !important;
}