/*
Theme Name: IE Theme

WooCommerce styles override
*/

/* Enhanced Product Page Styling */
/**
 * WooCommerce color variables
 */
/**
 * Imports
 */
/**
 * Shop tables
 */
/**
 * Shop tables
 */
table.shop_table_responsive thead {
	display: none;
}

table.shop_table_responsive tbody th {
	display: none;
}

table.shop_table_responsive tr td {
	display: block;
	text-align: right;
	clear: both;
}

table.shop_table_responsive tr td:before {
	content: attr(data-title) ": ";
	float: left;
}

table.shop_table_responsive tr td.product-remove a {
	text-align: left;
}

table.shop_table_responsive tr td.product-remove:before {
	display: none;
}

table.shop_table_responsive tr td.actions:before, table.shop_table_responsive tr td.download-actions:before {
	display: none;
}

table.shop_table_responsive tr td.download-actions .button {
	display: block;
	text-align: center;
}

@media screen and (min-width: 48em) {
	table.shop_table_responsive thead {
		display: table-header-group;
	}
	table.shop_table_responsive tbody th {
		display: table-cell;
	}
	table.shop_table_responsive tr th, table.shop_table_responsive tr td {
		text-align: left;
	}
	table.shop_table_responsive tr td {
		display: table-cell;
	}
	table.shop_table_responsive tr td:before {
		display: none;
	}
}

/**
 * Products
 */
/**
 * Products
 */
ul.products {
	content: "";
	display: table;
	table-layout: fixed;
	margin: 0;
	padding: 0;
}

ul.products li.product {
	list-style: none;
	position: relative;
	margin-bottom: 2em;
}

ul.products li.product .woocommerce-loop-product__title {
	font-size: 1rem;
}

ul.products li.product img {
	display: block;
}

ul.products li.product .button {
	display: block;
}

@media screen and (min-width: 48em) {
	ul.products li.product {
		width: 30.7966666667%;
		float: left;
		margin-right: 3.8%;
	}
	ul.products li.product.first {
		clear: both;
	}
	ul.products li.product.last {
		margin-right: 0;
	}
	.columns-1 ul.products li.product {
		float: none;
		width: 100%;
	}
	.columns-2 ul.products li.product {
		width: 48.1%;
	}
	.columns-3 ul.products li.product {
		width: 30.7966666667%;
	}
	.columns-4 ul.products li.product {
		width: 22.15%;
	}
	.columns-5 ul.products li.product {
		width: 16.96%;
	}
	.columns-6 ul.products li.product {
		width: 13.4933333333%;
	}
}

/**
 * Related Products
 */
.single-product .related.products,
.single-product .upsells.products {
	margin-top: 4rem;
	padding: 2rem;
	background: #f8f9fa;
	border-radius: 8px;
}

.single-product .related h2,
.single-product .upsells h2 {
	font-size: 2rem;
	margin-bottom: 1.5rem;
	color: #333;
	text-align: center;
	border-bottom: 2px solid #c41e3a;
	padding-bottom: 0.5rem;
}

.single-product .related .products,
.single-product .upsells .products {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.5rem;
	margin-top: 1.5rem;
	justify-items: center;
}

.single-product .related li.product,
.single-product .upsells li.product {
	background: white;
	border-radius: 8px;
	padding: 1rem;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	transition: transform 0.3s ease;
	text-align: center;
	width: 100%;
}

.single-product .related li.product:hover,
.single-product .upsells li.product:hover {
	transform: translateY(-5px);
}

.single-product .related li.product img,
.single-product .upsells li.product img {
	border-radius: 6px;
	margin-bottom: 1rem;
	margin-left: auto;
	margin-right: auto;
}

.single-product .related li.product .woocommerce-loop-product__title,
.single-product .upsells li.product .woocommerce-loop-product__title {
	font-size: 1.1rem;
	margin-bottom: 0.5rem;
	color: #333;
}

.single-product .related li.product .price,
.single-product .upsells li.product .price {
	font-size: 1.2rem;
	font-weight: bold;
	color: #c41e3a;
	margin-bottom: 1rem;
}

.single-product .related li.product .button,
.single-product .upsells li.product .button {
	background: #c41e3a;
	color: white;
	border: none;
	padding: 8px 16px;
	border-radius: 5px;
	text-decoration: none;
	transition: background-color 0.3s;
	width: 100%;
	text-align: center;
}

.single-product .related li.product .button:hover,
.single-product .upsells li.product .button:hover {
	background: #a01729;
}

/**
 * Single product
 */
/**
 * Single Product
 */
.single-product div.product {
	content: "";
	display: table;
	table-layout: fixed;
	position: relative;
	width: 100%;
}

.single-product .cart {
	margin: 2rem 0;
	padding: 1.5rem;
	background: #f9f9f9;
	border-radius: 8px;
	border: 1px solid #ddd;
}

.single-product .cart .quantity {
	margin-right: 1rem;
}

.single-product .cart .single_add_to_cart_button {
	background: #c41e3a;
	color: white;
	padding: 12px 24px;
	border: none;
	border-radius: 5px;
	font-size: 1.1rem;
	cursor: pointer;
	transition: background-color 0.3s;
}

.single-product .cart .single_add_to_cart_button:hover {
	background: #a01729;
}

body.single-product .product_meta {
	display: block !important;
	margin-top: 1.5rem !important;
	padding-top: 1.5rem !important;
	border-top: 1px solid #eee !important;
	font-size: 0.9rem !important;
}

/* Remove complex styling that's causing issues */

.single-product div.product .woocommerce-product-gallery img {
	border-radius: 6px;
	width: 100%;
	height: auto;
	transition: transform 0.3s ease;
}

.single-product div.product .woocommerce-product-gallery img:hover {
	transform: scale(1.05);
}

.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__trigger {
	position: absolute;
	top: 1em;
	right: 1em;
	display: block;
	z-index: 99;
}

.single-product div.product .woocommerce-product-gallery .flex-viewport {
	margin-bottom: 1em;
}

.single-product div.product .woocommerce-product-gallery .flex-control-thumbs {
	content: "";
	display: table;
	table-layout: fixed;
	margin: 0;
	padding: 0;
}

.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li {
	list-style: none;
	cursor: pointer;
	float: left;
}

.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li img {
	opacity: .5;
}

.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li img.flex-active {
	opacity: 1;
}

.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li:hover img {
	opacity: 1;
}

.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-2 .flex-control-thumbs li {
	width: 48.1%;
}

.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-2 .flex-control-thumbs li:nth-child(2n) {
	margin-right: 0;
}

.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-2 .flex-control-thumbs li:nth-child(2n+1) {
	clear: both;
}

.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-3 .flex-control-thumbs li {
	width: 30.7966666667%;
}

.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-3 .flex-control-thumbs li:nth-child(3n) {
	margin-right: 0;
}

.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-3 .flex-control-thumbs li:nth-child(3n+1) {
	clear: both;
}

.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-4 .flex-control-thumbs li {
	width: 22.15%;
}

.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-4 .flex-control-thumbs li:nth-child(4n) {
	margin-right: 0;
}

.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-4 .flex-control-thumbs li:nth-child(4n+1) {
	clear: both;
}

.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-5 .flex-control-thumbs li {
	width: 16.96%;
}

.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-5 .flex-control-thumbs li:nth-child(5n) {
	margin-right: 0;
}

.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-5 .flex-control-thumbs li:nth-child(5n+1) {
	clear: both;
}

.stock:empty:before {
	display: none;
}

.stock.in-stock {
	color: #0f834d;
}

.stock.out-of-stock {
	color: #e2401c;
}

/**
 * Checkout
 */
/**
 * Checkout
 */
@media screen and (min-width: 768px) {
	.col2-set .form-row-first {
		float: left;
		margin-right: 3.8%;
	}
	.col2-set .form-row-last {
		float: right;
		margin-right: 0;
	}
	.col2-set .form-row-first,
	.col2-set .form-row-last {
		width: 48.1%;
	}
}

/**
 * General WooCommerce components
 */
/**
 * Header cart
 */
.site-header-cart {
	position: relative;
	margin: 0;
	padding: 0;
	content: "";
	display: table;
	table-layout: fixed;
}

.site-header-cart .cart-contents {
	text-decoration: none;
}

.site-header-cart .widget_shopping_cart {
	display: none;
}

.site-header-cart .product_list_widget {
	margin: 0;
	padding: 0;
}

/**
 * Star rating
 */
.star-rating {
	overflow: hidden;
	position: relative;
	height: 1.618em;
	line-height: 1.618;
	font-size: 1em;
	width: 5.3em;
	font-family: 'star';
	font-weight: 400;
}

.star-rating:before {
	content: "\53\53\53\53\53";
	opacity: .25;
	float: left;
	top: 0;
	left: 0;
	position: absolute;
}

.star-rating span {
	overflow: hidden;
	float: left;
	top: 0;
	left: 0;
	position: absolute;
	padding-top: 1.5em;
}

.star-rating span:before {
	content: "\53\53\53\53\53";
	top: 0;
	position: absolute;
	left: 0;
	color: royalblue;
}

p.stars a {
	position: relative;
	height: 1em;
	width: 1em;
	text-indent: -999em;
	display: inline-block;
	text-decoration: none;
	margin-right: 1px;
	font-weight: 400;
}

p.stars a:before {
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	width: 1em;
	height: 1em;
	line-height: 1;
	font-family: "star";
	content: "\53";
	color: #404040;
	text-indent: 0;
	opacity: .25;
}

p.stars a:hover ~ a:before {
	content: "\53";
	color: #404040;
	opacity: .25;
}

p.stars:hover a:before {
	content: "\53";
	color: royalblue;
	opacity: 1;
}

p.stars.selected a.active:before {
	content: "\53";
	color: royalblue;
	opacity: 1;
}

p.stars.selected a.active ~ a:before {
	content: "\53";
	color: #404040;
	opacity: .25;
}

p.stars.selected a:not(.active):before {
	content: "\53";
	color: royalblue;
	opacity: 1;
}

/**
 * Tabs
 */
.single-product .woocommerce-tabs {
	margin-top: 30px;
}

.woocommerce-tabs ul.tabs {
	list-style: none;
	margin: 0;
	padding: 0;
	text-align: left;
	display: flex;
	background: #f8f9fa;
	border-bottom: 1px solid #dee2e6;
}

.woocommerce-tabs ul.tabs li {
	margin: 0;
	position: relative;
	flex: 1;
}

.woocommerce-tabs ul.tabs li a {
	padding: 1.2em 1.5em;
	display: block;
	text-decoration: none;
	color: #666;
	font-weight: 500;
	border-right: 1px solid #dee2e6;
	transition: all 0.3s ease;
	text-align: center;
}

.woocommerce-tabs ul.tabs li:last-child a {
	border-right: none;
}

.woocommerce-tabs ul.tabs li a:hover {
	background: #e9ecef;
	color: #333;
}

.woocommerce-tabs ul.tabs li.active a {
	background: white;
	color: #c41e3a;
	border-bottom: 3px solid #c41e3a;
	margin-bottom: -1px;
}

.woocommerce-tabs .panel {
	padding: 2rem;
	background: white;
	min-height: 200px;
}


.woocommerce-tabs .panel h2:first-of-type {
	margin-top: 0;
	margin-bottom: 1.5em;
	color: #333;
	font-size: 1.8rem;
	border-bottom: 2px solid #f0f0f0;
	padding-bottom: 0.5rem;
}

body.single-product .woocommerce-tabs .panel p {
	margin-bottom: 1.2rem !important;
	line-height: 1.8 !important;
	color: #222 !important;
	font-size: 1.1rem !important;
}

.woocommerce-tabs .panel h3 {
	color: #333;
	margin-top: 2rem;
	margin-bottom: 1rem;
	font-size: 1.3rem;
}

.woocommerce-tabs .panel h4 {
	color: #c41e3a;
	margin-top: 1.5rem;
	margin-bottom: 0.8rem;
	font-size: 1.1rem;
}

.woocommerce-tabs .panel ul {
	margin-left: 1.5rem;
	margin-bottom: 1.5rem;
}

.woocommerce-tabs .panel li {
	margin-bottom: 0.5rem;
	line-height: 1.5;
}

@media (max-width: 768px) {
	.woocommerce-tabs ul.tabs {
		flex-direction: column;
	}

	.woocommerce-tabs ul.tabs li a {
		border-right: none;
		border-bottom: 1px solid #dee2e6;
	}

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

/**
 * Password strength meter
 */
.woocommerce-password-strength {
	text-align: right;
}

.woocommerce-password-strength.strong {
	color: #0f834d;
}

.woocommerce-password-strength.short {
	color: #e2401c;
}

.woocommerce-password-strength.bad {
	color: #e2401c;
}

.woocommerce-password-strength.good {
	color: #3D9CD2;
}

/**
 * Forms
 */
.form-row.woocommerce-validated input.input-text {
	box-shadow: inset 2px 0 0 #0f834d;
}

.form-row.woocommerce-invalid input.input-text {
	box-shadow: inset 2px 0 0 #e2401c;
}

.required {
	color: red;
}

/**
 * Notices
 */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-noreviews,
p.no-comments {
	content: "";
	display: table;
	table-layout: fixed;
	background-color: #0f834d;
	clear: both;
}

.woocommerce-info,
.woocommerce-noreviews,
p.no-comments {
	background-color: #3D9CD2;
}

.woocommerce-error {
	background-color: #e2401c;
}

.demo_store {
	position: fixed;
	left: 0;
	bottom: 0;
	right: 0;
	margin: 0;
	padding: 1em;
	background-color: #3D9CD2;
	z-index: 9999;
}

@media screen and (min-width: 48em) {
	/**
	 * Header cart
	 */
	.site-header-cart .widget_shopping_cart {
		position: absolute;
		top: 100%;
		width: 100%;
		z-index: 999999;
		left: -999em;
		display: block;
		box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
	}
	.site-header-cart:hover .widget_shopping_cart, .site-header-cart.focus .widget_shopping_cart {
		left: 0;
		display: block;
	}
}

/**
 * WooCommerce widgets
 */
/**
 * WooCommerce Price Filter
 */
.widget_price_filter .price_slider {
	margin-bottom: 1.5em;
}

.widget_price_filter .price_slider_amount {
	text-align: right;
	line-height: 2.4em;
}

.widget_price_filter .price_slider_amount .button {
	float: left;
}

.widget_price_filter .ui-slider {
	position: relative;
	text-align: left;
}

.widget_price_filter .ui-slider .ui-slider-handle {
	position: absolute;
	z-index: 2;
	width: 1em;
	height: 1em;
	cursor: ew-resize;
	outline: none;
	background: royalblue;
	box-sizing: border-box;
	margin-top: -.25em;
	opacity: 1;
}

.widget_price_filter .ui-slider .ui-slider-handle:last-child {
	margin-left: -1em;
}

.widget_price_filter .ui-slider .ui-slider-handle:hover, .widget_price_filter .ui-slider .ui-slider-handle.ui-state-active {
	box-shadow: 0 0 0 0.25em rgba(0, 0, 0, 0.1);
}

.widget_price_filter .ui-slider .ui-slider-range {
	position: absolute;
	z-index: 1;
	display: block;
	border: 0;
	background: royalblue;
}

.widget_price_filter .price_slider_wrapper .ui-widget-content {
	background: rgba(0, 0, 0, 0.1);
}

.widget_price_filter .ui-slider-horizontal {
	height: .5em;
}

.widget_price_filter .ui-slider-horizontal .ui-slider-range {
	height: 100%;
}

/* Variable Product - Variation Price Display */
.single_variation_wrap {
	margin-top: 1.5em;
}

.woocommerce-variation.single_variation {
	margin-bottom: 1.5em;
	padding: 1em;
	background: #f8f9fa;
	border-left: 3px solid #c41e3a;
}

.woocommerce-variation-price {
	margin-bottom: 0.5em;
}

.woocommerce-variation-price .price {
	font-size: 1.5em;
	font-weight: 600;
	color: #c41e3a;
}

/* Single product page price - override bare .price {font-size:12px} from style.css */
.single-product p.price {
	font-size: 1.5rem;
	font-weight: 700;
	color: #c41e3a;
}

/* Sale price styling (sitewide) */
.woocommerce .price del,
.single-product p.price del,
.woocommerce-variation-price .price del {
	color: #999;
	font-size: 0.85em;
	font-weight: 400;
	margin-right: 8px;
	opacity: 0.7;
}

.woocommerce .price ins,
.single-product p.price ins,
.woocommerce-variation-price .price ins {
	text-decoration: none;
	color: #c41e3a;
	font-weight: 700;
	background: none;
	padding: 0;
	font-size: inherit;
}

.woocommerce-variation-availability {
	font-size: 0.9em;
	color: #666;
}

.woocommerce-variation-availability .stock {
	font-weight: 500;
}

.woocommerce-variation-availability .stock.in-stock {
	color: #28a745;
}

.woocommerce-variation-availability .stock.out-of-stock {
	color: #dc3545;
}

/* Product Description in Right Column */
.woocommerce-product-description {
	margin-top: 2em;
	padding-top: 2em;
	border-top: 2px solid #e9ecef;
}

.woocommerce-product-description h2 {
	font-size: 1.5rem;
	margin-bottom: 1.2em;
	color: #333;
	font-weight: 600;
}

.woocommerce-product-description .product-description-content p {
	margin-bottom: 1rem;
	line-height: 1.7;
	color: #555;
}

.woocommerce-product-description .product-description-content p strong,
.woocommerce-product-description .product-description-content p b {
	color: #333;
	font-weight: 600;
}

.woocommerce-product-description .product-description-content p em,
.woocommerce-product-description .product-description-content p i {
	color: #666;
}

/* Responsive: Stack on mobile */
@media (max-width: 768px) {
	.woocommerce-product-description {
		margin-top: 1.5em;
		padding-top: 1.5em;
	}

	.woocommerce-product-description h2 {
		font-size: 1.3rem;
	}

	/* Mobile Product Page Optimizations */
	.single-product div.product {
		padding: 0 1rem;
	}

	/* Product Title */
	.product_title.entry-title {
		font-size: 1.5rem !important;
		line-height: 1.3 !important;
		margin-bottom: 1rem !important;
	}

	/* Product Images */
	.single-product div.product .woocommerce-product-gallery img {
		width: 100%;
		height: auto;
		max-width: 100%;
	}

	.single-product .wp-post-image {
		width: 100% !important;
		max-width: 100% !important;
	}

	/* Product Price */
	.single-product .price {
		font-size: 1.5rem !important;
		margin-bottom: 1rem !important;
	}

	/* Add to Cart Section */
	.single-product .cart {
		margin: 1.5rem 0;
		padding: 1rem;
	}

	.single-product .cart .single_add_to_cart_button {
		width: 100%;
		padding: 15px 20px;
		font-size: 1.1rem;
		margin-top: 1rem;
	}

	.single-product .cart .quantity {
		margin-right: 0;
		margin-bottom: 1rem;
		width: 100%;
	}

	.single-product .cart .quantity input {
		width: 100%;
		padding: 12px;
		font-size: 1rem;
	}

	/* Variation Selects */
	.variations {
		font-size: 16px !important;
		line-height: 1.5 !important;
	}

	.variations select,
	.variations_form select {
		width: 100% !important;
		padding: 12px !important;
		font-size: 16px !important;
		margin-bottom: 1rem !important;
		min-height: 44px !important;
		-webkit-appearance: menulist !important;
		appearance: menulist !important;
		background-image: none !important;
		background-position: inherit !important;
		box-sizing: border-box !important;
	}

	.variations td,
	.variations th {
		display: block !important;
		width: 100% !important;
		padding: 0 !important;
		text-align: left !important;
		margin-bottom: 0 !important;
	}

	.variations th {
		font-weight: 600 !important;
		text-align: left !important;
		padding-bottom: 0.5rem !important;
		margin-bottom: 0.5rem !important;
	}

	.variations label {
		font-size: 16px !important;
		line-height: 1.5 !important;
		margin-bottom: 0.75rem !important;
		display: block !important;
		font-weight: 600 !important;
		position: relative !important;
		width: 100% !important;
		clear: both !important;
	}

	.variations .value {
		display: block !important;
		width: 100% !important;
		margin-top: 0.5rem !important;
		clear: both !important;
	}

	/* Remove any pseudo-element arrows from variations */
	.variations label::before,
	.variations label::after,
	.variations th::before,
	.variations th::after,
	.variations td::before,
	.variations td::after,
	.variations .label::before,
	.variations .label::after {
		display: none !important;
		content: none !important;
		background-image: none !important;
	}

	.variations tr {
		display: block !important;
		width: 100% !important;
	}

	.variations .label label {
		margin-bottom: 0.75rem !important;
		display: block !important;
		width: 100% !important;
	}

	.variations .value::before,
	.variations .value::after {
		display: none !important;
		content: none !important;
	}

	.variations select {
		margin-top: 0.5rem !important;
		display: block !important;
		clear: both !important;
	}

	/* Replace "Kit Price" label with "Online or Onsite" for product 23608 */
	.postid-23608 .variations .label label[for="pa_kit-price"] {
		font-size: 0 !important;
	}

	.postid-23608 .variations .label label[for="pa_kit-price"]::after {
		content: "Online or Onsite";
		font-size: 16px !important;
		font-weight: 600 !important;
	}

	/* Make variations form full width on mobile */
	.variations_form.cart {
		width: 100% !important;
		max-width: 100% !important;
	}

	/* Make cart table full width */
	.single-product .cart,
	form.cart {
		width: 100% !important;
		max-width: 100% !important;
	}

	/* Wider variations table */
	.variations,
	.variations table,
	table.variations {
		width: 100% !important;
		max-width: 100% !important;
		table-layout: fixed !important;
	}

	/* Wider dropdown on mobile for better display */
	.variations select,
	.variations_form select {
		max-width: 100% !important;
		overflow: visible !important;
		box-sizing: border-box !important;
	}

	/* Product Meta */
	body.single-product .product_meta {
		font-size: 0.9rem !important;
		margin-top: 1.5rem !important;
	}

	/* Product Summary */
	.summary.entry-summary,
	.summary.entry-summary.custom-product-layout {
		padding: 1rem !important;
		width: 100% !important;
		max-width: 100% !important;
		float: none !important;
		box-sizing: border-box !important;
	}

	/* Product Description in Tabs */
	.woocommerce-tabs .panel {
		padding: 1rem;
	}

	.woocommerce-tabs .panel h2:first-of-type {
		font-size: 1.4rem;
	}

	body.single-product .woocommerce-tabs .panel p {
		font-size: 1rem !important;
	}
}

/* Collapsible Accordion for Product Description */
.woocommerce-product-description details {
	margin-bottom: 0.5em;
	border: 1px solid #dee2e6;
	border-radius: 4px;
	overflow: hidden;
}

.woocommerce-product-description details summary {
	cursor: pointer;
	padding: 1em 1.2em;
	background: #f8f9fa;
	font-size: 1.05rem;
	list-style: none;
	position: relative;
	user-select: none;
	transition: background-color 0.3s ease;
}

.woocommerce-product-description details summary::-webkit-details-marker {
	display: none;
}

.woocommerce-product-description details summary::marker {
	display: none;
}

/* Arrow indicator */
.woocommerce-product-description details summary::after {
	content: '▼';
	position: absolute;
	right: 1.2em;
	top: 50%;
	transform: translateY(-50%) rotate(-90deg);
	transition: transform 0.3s ease;
	font-size: 0.8em;
	color: #c41e3a;
}

.woocommerce-product-description details[open] summary::after {
	transform: translateY(-50%) rotate(0deg);
}

.woocommerce-product-description details summary:hover {
	background: #e9ecef;
}

.woocommerce-product-description details[open] summary {
	background: #fff;
	border-bottom: 1px solid #dee2e6;
	color: #c41e3a;
}

/* Content inside accordion */
.woocommerce-product-description details > *:not(summary) {
	padding: 1em 1.2em;
	background: #fff;
}

.woocommerce-product-description details p {
	margin-bottom: 0.8em;
}

.woocommerce-product-description details p:last-child {
	margin-bottom: 0;
}

/* Nested session headings */
.woocommerce-product-description details details {
	margin: 0.5em 0;
	border-left: 3px solid #c41e3a;
}

.woocommerce-product-description details details summary {
	background: #ffffff;
	padding: 0.7em 1em;
	font-size: 0.95rem;
}

.woocommerce-product-description details details summary::after {
	font-size: 0.7em;
}

.woocommerce-product-description details details[open] summary {
	background: #f8f9fa;
}

/* Additional Mobile Optimizations for Better UX */
@media (max-width: 768px) {
	/* Ensure product gallery is responsive */
	.single-product div.product .woocommerce-product-gallery.images {
		width: 100% !important;
		float: none !important;
		margin-bottom: 1.5rem;
	}

	.summary.entry-summary.custom-product-layout {
		width: 100% !important;
		float: none !important;
	}

	/* Related Products - Mobile Grid */
	.single-product .related.products,
	.single-product .upsells.products {
		margin-top: 2rem;
		padding: 1rem;
	}

	.single-product .related h2,
	.single-product .upsells h2 {
		font-size: 1.5rem;
	}

	.single-product .related .products,
	.single-product .upsells .products {
		grid-template-columns: repeat(2, 1fr);
	}

	/* Variation Price Display */
	.woocommerce-variation.single_variation {
		padding: 0.8rem;
		margin-bottom: 1rem;
	}

	.woocommerce-variation-price .price {
		font-size: 1.3em !important;
	}

	/* Accordion Improvements for Mobile */
	.woocommerce-product-description details summary {
		padding: 0.8rem 1rem;
		font-size: 1rem;
	}

	.woocommerce-product-description details > *:not(summary) {
		padding: 0.8rem 1rem;
	}
}

/* Small Mobile Devices */
@media (max-width: 480px) {
	/* Further optimize for very small screens */
	.product_title.entry-title {
		font-size: 1.3rem !important;
	}

	.single-product .price {
		font-size: 1.3rem !important;
	}

	.single-product .cart .single_add_to_cart_button {
		padding: 12px 16px;
		font-size: 1rem;
	}

	.woocommerce-tabs ul.tabs li a {
		padding: 1rem 0.8rem;
		font-size: 0.9rem;
	}

	.woocommerce-tabs .panel {
		padding: 0.8rem;
	}

	body.single-product .woocommerce-tabs .panel p {
		font-size: 0.95rem !important;
	}

	/* Reduce spacing for small screens */
	.single-product div.product {
		padding: 0 0.5rem;
	}
}

/* Touch Target Optimizations - Minimum 44x44px for better mobile UX */
@media (max-width: 768px) {
	/* Ensure all buttons have adequate touch targets */
	.single-product button,
	.single-product .button,
	.single-product input[type="submit"] {
		min-height: 44px;
		min-width: 44px;
	}

	/* Quantity input buttons */
	.single-product .cart .quantity .qty {
		min-height: 44px;
		font-size: 1rem;
	}

	/* Tab navigation - larger touch targets */
	.woocommerce-tabs ul.tabs li a {
		min-height: 44px;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	/* Variation table - ensure proper display */
	.variations table {
		width: 100% !important;
	}

	/* Product meta links */
	body.single-product .product_meta a {
		min-height: 44px;
		display: inline-flex;
		align-items: center;
		padding: 4px 8px;
	}

	/* Improve readability with better line spacing */
	body.single-product .woocommerce-product-details__short-description,
	body.single-product .product-description-content {
		line-height: 1.6;
	}

	/* Gallery thumbnails - better touch targets */
	.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li {
		padding: 5px;
		min-width: 44px;
		min-height: 44px;
	}

	/* Reset button - ensure visibility */
	.reset_variations {
		min-height: 44px;
		padding: 8px 16px;
		margin-top: 8px;
	}
}
