/************************/
/** WOOCOMMERCE STYLES **/
/************************/

body.woocommerce,
body.woocommerce-page {
	font-family: var(--wp--preset--font-family--urbanist);
	color: #000;
}

/* Optional: if Woo/theme sidebar is still showing on shop/product pages */
body.woocommerce-page .widget-area,
body.woocommerce-page aside.sidebar {
	display: none;
}

body.woocommerce-page #primary,
body.woocommerce-page .content-area,
body.woocommerce-page main {
	width: 100%;
}


.woocommerce .woocommerce-breadcrumb {
	font-size: var(--wp--preset--font-size--small);
	margin-bottom: 1.5rem;
	color: var(--wp--preset--color--medium-blue);
}

.woocommerce .woocommerce-breadcrumb a {
	color: var(--wp--preset--color--medium-blue);
	text-decoration: none;
}

.woocommerce .woocommerce-breadcrumb a:hover {
	color: var(--wp--preset--color--orange);
	text-decoration: underline;
}

.woocommerce h1,
.woocommerce h2,
.woocommerce h3,
.woocommerce-page h1,
.woocommerce-page h2,
.woocommerce-page h3 {
	font-family: var(--wp--preset--font-family--jost);
	color: var(--wp--preset--color--dark-blue);
}

.woocommerce .page-title {
	margin-bottom: 1.5rem;
}

/* Result count / sorting */
.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering {
	margin-bottom: 1.5rem;
}

.woocommerce .woocommerce-ordering select {
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: .55rem .75rem;
	font-family: var(--wp--preset--font-family--urbanist);
	background: #fff;
}

/************************/
/** PRODUCT GRID       **/
/************************/

.woocommerce ul.products {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 2rem;
	margin: 0 0 2rem;
	padding: 0;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
	content: none;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
	float: none;
	width: auto;
	margin: 0;
	padding: 0;
	background: #fff;
	border: 1px solid #e6e6e6;
	border-radius: 8px;
	overflow: hidden;
	transition: .3s;
	text-align: center;
}

.woocommerce ul.products li.product:hover {
	border-color: var(--wp--preset--color--orange);
	box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
	transform: translateY(-3px);
}

.woocommerce ul.products li.product a {
	text-decoration: none;
}

.woocommerce ul.products li.product a img {
	width: 100%;
	margin: 0;
	display: block;
	background: #f7f7f7;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-family: var(--wp--preset--font-family--jost);
	font-size: var(--wp--preset--font-size--lead);
	color: var(--wp--preset--color--dark-blue);
	padding: 1rem 1rem .35rem;
	margin: 0;
}

.woocommerce ul.products li.product .price {
	display: block;
	color: var(--wp--preset--color--medium-blue);
	font-family: var(--wp--preset--font-family--jost);
	font-size: var(--wp--preset--font-size--base);
	font-weight: 600;
	margin: 0 1rem 1rem;
}

.woocommerce ul.products li.product .price del {
	color: #777;
	font-weight: 400;
}

.woocommerce ul.products li.product .price ins {
	text-decoration: none;
	color: var(--wp--preset--color--orange);
}

.woocommerce span.onsale {
	background: var(--wp--preset--color--orange);
	color: #fff;
	border-radius: 4px;
	min-height: 0;
	min-width: 0;
	line-height: 1;
	padding: .45rem .6rem;
	font-family: var(--wp--preset--font-family--jost);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
}

/************************/
/** BUTTONS            **/
/************************/

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce .single_add_to_cart_button,
.woocommerce-page a.button,
.woocommerce-page button.button,
.woocommerce-page input.button,
.wc-block-components-button,
.wc-block-cart__submit-button,
.wc-block-checkout__actions_row .wc-block-components-checkout-place-order-button {
	background: var(--wp--preset--color--orange);
	color: #fff;
	border: 0;
	border-radius: 4px;
	padding: .75rem 1.1rem;
	font-family: var(--wp--preset--font-family--jost);
	font-size: var(--wp--preset--font-size--base);
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: .3s;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce .single_add_to_cart_button:hover,
.woocommerce-page a.button:hover,
.woocommerce-page button.button:hover,
.woocommerce-page input.button:hover,
.wc-block-components-button:hover,
.wc-block-cart__submit-button:hover,
.wc-block-checkout__actions_row .wc-block-components-checkout-place-order-button:hover {
	background: var(--wp--preset--color--dark-blue);
	color: #fff;
	text-decoration: none;
}

.woocommerce ul.products li.product .button {
	margin: 0 1rem 1.25rem;
}

/************************/
/** SINGLE PRODUCT     **/
/************************/

.woocommerce div.product {
	margin-bottom: 3rem;
}

.woocommerce div.product div.images img {
	border-radius: 8px;
	border: 1px solid #e6e6e6;
}

.woocommerce div.product .product_title {
	margin-bottom: .75rem;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
	color: var(--wp--preset--color--orange);
	font-family: var(--wp--preset--font-family--jost);
	font-size: clamp(1.5rem, 2vw, 2rem);
	font-weight: 700;
}

.woocommerce div.product form.cart {
	margin-top: 1.5rem;
	margin-bottom: 1.5rem;
}

.woocommerce .quantity .qty {
	width: 5rem;
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: .65rem;
	font-family: var(--wp--preset--font-family--urbanist);
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
	padding: 0;
	margin: 2rem 0 0;
	border-bottom: 1px solid #ddd;
}

.woocommerce div.product .woocommerce-tabs ul.tabs::before {
	border-bottom: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
	border: 0;
	background: transparent;
	border-radius: 0;
	margin: 0;
	padding: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
	padding: .85rem 1.1rem;
	font-family: var(--wp--preset--font-family--jost);
	color: var(--wp--preset--color--dark-blue);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
	color: var(--wp--preset--color--orange);
}

.woocommerce div.product .woocommerce-tabs .panel {
	padding: 1.5rem 0;
}

/************************/
/** FORMS              **/
/************************/

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce input[type="text"],
.woocommerce input[type="email"],
.woocommerce input[type="tel"],
.woocommerce input[type="password"],
.woocommerce textarea,
.woocommerce select,
.wc-block-components-text-input input,
.wc-block-components-textarea,
.wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input {
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: .75rem;
	font-family: var(--wp--preset--font-family--urbanist);
	font-size: var(--wp--preset--font-size--base);
	background: #fff;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce input:focus,
.woocommerce textarea:focus,
.woocommerce select:focus,
.wc-block-components-text-input input:focus {
	outline: 2px solid var(--wp--preset--color--orange);
	outline-offset: 2px;
	border-color: var(--wp--preset--color--orange);
}

.woocommerce form .form-row label {
	font-family: var(--wp--preset--font-family--jost);
	color: var(--wp--preset--color--dark-blue);
	font-weight: 500;
}

/************************/
/** NOTICES            **/
/************************/

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	border-top: 0;
	border-left: 5px solid var(--wp--preset--color--orange);
	background: #f7f7f7;
	color: #000;
	padding: 1rem 1.25rem 1rem 3.25rem;
	border-radius: 4px;
}

.woocommerce-message::before,
.woocommerce-info::before {
	color: var(--wp--preset--color--orange);
}

.woocommerce-error {
	border-left-color: #b00020;
}

.woocommerce-error::before {
	color: #b00020;
}

/************************/
/** CART / CHECKOUT    **/
/************************/

.woocommerce table.shop_table {
	border: 1px solid #e6e6e6;
	border-radius: 8px;
	overflow: hidden;
}

.woocommerce table.shop_table th {
	font-family: var(--wp--preset--font-family--jost);
	color: var(--wp--preset--color--dark-blue);
	background: #f7f7f7;
}

.woocommerce table.shop_table td,
.woocommerce table.shop_table th {
	padding: 1rem;
}

.woocommerce-cart .cart-collaterals .cart_totals,
.woocommerce-checkout #order_review,
.woocommerce-checkout #customer_details,
.wc-block-cart,
.wc-block-checkout {
	background: #fff;
}

.woocommerce-cart .cart-collaterals .cart_totals {
	border: 1px solid #e6e6e6;
	border-radius: 8px;
	padding: 1.5rem;
}

.woocommerce-cart .cart-collaterals .cart_totals h2,
.woocommerce-checkout h3 {
	margin-top: 0;
}

.woocommerce-checkout-review-order-table {
	background: #fff;
}

/* Block cart/checkout polish */
.wc-block-components-sidebar,
.wc-block-cart-items,
.wc-block-components-totals-wrapper {
	border-color: #e6e6e6;
}

.wc-block-components-product-name,
.wc-block-components-totals-item__label,
.wc-block-components-totals-item__value {
	font-family: var(--wp--preset--font-family--jost);
	color: var(--wp--preset--color--dark-blue);
}

.wc-block-components-notice-banner {
	border-radius: 4px;
}

/************************/
/** ACCOUNT PAGE       **/
/************************/

.woocommerce-MyAccount-navigation ul {
	margin: 0 0 2rem;
	padding: 0;
	border: 1px solid #e6e6e6;
	border-radius: 8px;
	overflow: hidden;
}

.woocommerce-MyAccount-navigation li {
	list-style: none;
	border-bottom: 1px solid #e6e6e6;
}

.woocommerce-MyAccount-navigation li:last-child {
	border-bottom: 0;
}

.woocommerce-MyAccount-navigation a {
	display: block;
	padding: .85rem 1rem;
	color: var(--wp--preset--color--dark-blue);
	text-decoration: none;
	font-family: var(--wp--preset--font-family--jost);
}

.woocommerce-MyAccount-navigation a:hover,
.woocommerce-MyAccount-navigation .is-active a {
	background: var(--wp--preset--color--dark-blue);
	color: #fff;
	text-decoration: none;
}

/************************/
/** RESPONSIVE         **/
/************************/

@media (max-width: 1199px) {
	.woocommerce ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 991px) {
	.woocommerce ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767) {

	.woocommerce .woocommerce-result-count,
	.woocommerce .woocommerce-ordering {
		float: none;
		width: 100%;
	}

	.woocommerce .woocommerce-ordering select {
		width: 100%;
	}

	.woocommerce table.shop_table_responsive tr,
	.woocommerce-page table.shop_table_responsive tr {
		margin-bottom: 1rem;
		border: 1px solid #e6e6e6;
		border-radius: 8px;
		overflow: hidden;
	}

	.woocommerce table.shop_table_responsive tr td,
	.woocommerce-page table.shop_table_responsive tr td {
		padding: .85rem 1rem;
	}
}

@media (max-width: 767px) {
	.woocommerce ul.products,
	.woocommerce-page ul.products {
		grid-template-columns: 1fr;
		justify-items: center;
		gap: 1.5rem;
	}

	.woocommerce ul.products li.product,
	.woocommerce-page ul.products li.product {
		width: 100% !important;
		max-width: 360px;
		margin-left: auto !important;
		margin-right: auto !important;
	}
}

/* WooCommerce product tabs */
.woocommerce div.product .woocommerce-tabs ul.tabs {
	display: flex;
	gap: 0.75rem;
	margin: 0 0 2rem;
	padding: 0;
	border-bottom: 1px solid #d8dce3;
	overflow: visible;
}

/* Remove WooCommerce's default decorative tab shapes */
.woocommerce div.product .woocommerce-tabs ul.tabs::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after {
	display: none !important;
	content: none !important;
}

/* Individual tabs */
.woocommerce div.product .woocommerce-tabs ul.tabs li {
	margin: 0;
	padding: 0;
	border: none;
	background: transparent;
	border-radius: 0;
}

/* Tab links */
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
	display: block;
	padding: 0.85rem 0.25rem;
	font-size: 1rem;
	font-weight: 700;
	color: var(--wp--preset--color--dark-blue, #011431);
	text-decoration: none;
	border-bottom: 3px solid transparent;
	transition: color 0.2s ease, border-color 0.2s ease;
}

/* Hover */
.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
	color: var(--wp--preset--color--orange, #f27400);
}

/* Active tab */
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
	color: var(--wp--preset--color--orange, #f27400);
	border-bottom-color: var(--wp--preset--color--orange, #f27400);
}

/* Remove default active tab background/border */
.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
	background: transparent;
	border: none;
}
/* Base WooCommerce product gallery thumbnail row */
.woocommerce div.product div.images ol.flex-control-thumbs {
	display: flex !important;
	flex-wrap: nowrap !important;
	gap: 0.5rem;
	margin: 0.85rem 0 0;
	padding: 0.15rem;
	list-style: none;
	overflow-x: auto;
	scroll-behavior: smooth;
	scrollbar-width: none;
}

/* Hide scrollbar in Chrome/Safari/Edge */
.woocommerce div.product div.images ol.flex-control-thumbs::-webkit-scrollbar {
	display: none;
}

/* Wrapper created by JS */
.woocommerce div.product div.images .tg-gallery-thumbs-wrap {
	display: grid;
	grid-template-columns: 2.5rem minmax(0, 1fr) 2.5rem;
	align-items: center;
	gap: 0.5rem;
	margin-top: 0.85rem;
}

/* Remove extra margin once the thumbnails are inside our wrapper */
.woocommerce div.product div.images .tg-gallery-thumbs-wrap ol.flex-control-thumbs {
	margin: 0;
	min-width: 0;
}

/* Individual thumbnail items */
.woocommerce div.product div.images ol.flex-control-thumbs li {
	float: none !important;
	width: auto !important;
	flex: 0 0 5.5rem !important;
	margin: 0 !important;
	padding: 0;
	overflow: hidden;
	border: 1px solid #d8dce3;
	border-radius: 0.45rem;
	background: #fff;
	cursor: pointer;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Thumbnail images */
.woocommerce div.product div.images ol.flex-control-thumbs li img {
	display: block;
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	opacity: 0.65;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Hover thumbnail */
.woocommerce div.product div.images ol.flex-control-thumbs li:hover {
	border-color: var(--wp--preset--color--orange, #f27400);
	box-shadow: 0 0 0 2px rgba(242, 116, 0, 0.15);
}

.woocommerce div.product div.images ol.flex-control-thumbs li:hover img {
	opacity: 1;
	transform: scale(1.04);
}

/* Active thumbnail */
.woocommerce div.product div.images ol.flex-control-thumbs li img.flex-active {
	opacity: 1;
}

.woocommerce div.product div.images ol.flex-control-thumbs li:has(img.flex-active) {
	border-color: var(--wp--preset--color--orange, #f27400);
	box-shadow: 0 0 0 2px rgba(242, 116, 0, 0.2);
}

/* Arrow buttons */
.woocommerce div.product div.images .tg-gallery-thumb-arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	border: 1px solid #d8dce3;
	border-radius: 999px;
	background: #fff;
	color: var(--wp--preset--color--dark-blue, #011431);
	font-size: 1rem;
	line-height: 1;
	cursor: pointer;
	transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
}

/* Bootstrap Icon alignment */
.woocommerce div.product div.images .tg-gallery-thumb-arrow i {
	display: block;
	line-height: 1;
}

/* Arrow hover */
.woocommerce div.product div.images .tg-gallery-thumb-arrow:hover {
	border-color: var(--wp--preset--color--orange, #f27400);
	background: var(--wp--preset--color--orange, #f27400);
	color: #fff;
}

/* Disabled arrow */
.woocommerce div.product div.images .tg-gallery-thumb-arrow:disabled {
	opacity: 0.35;
	cursor: default;
	pointer-events: none;
}

/* Smaller screens */
@media (max-width: 600px) {
	.woocommerce div.product div.images .tg-gallery-thumbs-wrap {
		grid-template-columns: 2.25rem minmax(0, 1fr) 2.25rem;
		gap: 0.4rem;
	}

	.woocommerce div.product div.images .tg-gallery-thumb-arrow {
		width: 2.25rem;
		height: 2.25rem;
	}

	.woocommerce div.product div.images ol.flex-control-thumbs li {
		flex-basis: 4.75rem !important;
	}
}