/**
 * WooCommerce Style Overrides
 *
 * @package EpicMarks
 * @version 0.4.0
 */

/* ==========================================================================
   General WooCommerce
   ========================================================================== */

/* Apply theme variables to WooCommerce */
.woocommerce,
.woocommerce-page {
	font-family: var(--em-font-sans);
}

/* WooCommerce main wrapper */
.em-woocommerce-main {
	padding-top: var(--em-space-8);
	padding-bottom: var(--em-space-16);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.woocommerce .button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce a.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--em-space-2);
	padding: var(--em-space-3) var(--em-space-6);
	font-size: var(--em-text-base);
	font-weight: var(--em-font-semibold);
	line-height: var(--em-leading-tight);
	text-decoration: none;
	border-radius: var(--em-radius-md);
	transition: all var(--em-duration) var(--em-ease);
	background-color: var(--em-color-primary);
	color: var(--em-text-inverse);
	border: var(--em-border-2) solid var(--em-color-primary);
	cursor: pointer;
}

.woocommerce .button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button:hover {
	background-color: var(--em-neutral-800);
	border-color: var(--em-neutral-800);
	color: var(--em-text-inverse);
}

.woocommerce .button:focus-visible,
.woocommerce button.button:focus-visible,
.woocommerce input.button:focus-visible,
.woocommerce a.button:focus-visible {
	outline: 2px solid var(--em-color-accent);
	outline-offset: 2px;
}

.woocommerce .button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce a.button.alt {
	background-color: var(--em-color-accent);
	border-color: var(--em-color-accent);
}

.woocommerce .button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.woocommerce a.button.alt:hover {
	background-color: #e55a00;
	border-color: #e55a00;
}

.woocommerce .button.disabled,
.woocommerce .button:disabled,
.woocommerce button.button.disabled,
.woocommerce button.button:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* ==========================================================================
   Shop / Archive Page
   ========================================================================== */

.em-shop-page {
	max-width: var(--em-container-wide);
	margin: 0 auto;
}

.em-shop-header {
	margin-bottom: var(--em-space-8);
	text-align: center;
}

.em-shop-header__title {
	font-size: var(--em-text-4xl);
	font-weight: var(--em-font-bold);
	margin-bottom: var(--em-space-4);
}

.em-shop-header .term-description {
	color: var(--em-text-secondary);
	max-width: 600px;
	margin: 0 auto;
}

/* Shop toolbar */
.em-shop-toolbar {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: var(--em-space-4);
	margin-bottom: var(--em-space-6);
	padding-bottom: var(--em-space-4);
	border-bottom: var(--em-border) solid var(--em-border-color);
}

.woocommerce-result-count {
	color: var(--em-text-secondary);
	margin: 0;
}

.woocommerce-ordering select {
	padding: var(--em-space-2) var(--em-space-10) var(--em-space-2) var(--em-space-3);
	font-size: var(--em-text-sm);
	border: var(--em-border) solid var(--em-border-color);
	border-radius: var(--em-radius-md);
	background-color: var(--em-bg-primary);
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");
	background-position: right var(--em-space-2) center;
	background-repeat: no-repeat;
	background-size: 1.25rem;
	cursor: pointer;
}

/* Product grid */
.em-product-grid {
	margin-bottom: var(--em-space-8);
}

.em-product-grid .products {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--em-space-6);
	list-style: none;
	padding: 0;
	margin: 0;
}

@media (max-width: 1023px) {
	.em-product-grid .products {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 639px) {
	.em-product-grid .products {
		grid-template-columns: 1fr;
	}
}

/* Pagination */
.em-shop-pagination {
	display: flex;
	justify-content: center;
}

.woocommerce-pagination {
	display: flex;
	align-items: center;
	gap: var(--em-space-2);
}

.woocommerce-pagination ul {
	display: flex;
	list-style: none;
	padding: 0;
	margin: 0;
	gap: var(--em-space-1);
}

.woocommerce-pagination ul li {
	margin: 0;
}

.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	height: 2.5rem;
	padding: 0 var(--em-space-3);
	font-size: var(--em-text-sm);
	font-weight: var(--em-font-medium);
	border-radius: var(--em-radius-md);
	text-decoration: none;
	transition: all var(--em-duration) var(--em-ease);
	color: var(--em-text-primary);
	background-color: var(--em-bg-primary);
	border: var(--em-border) solid var(--em-border-color);
}

.woocommerce-pagination ul li a:hover {
	border-color: var(--em-color-accent);
	color: var(--em-color-accent);
}

.woocommerce-pagination ul li span.current {
	background-color: var(--em-color-primary);
	border-color: var(--em-color-primary);
	color: var(--em-text-inverse);
}

/* ==========================================================================
   Product Card
   ========================================================================== */

.em-product-card {
	position: relative;
	background-color: var(--em-surface);
	border: var(--em-border) solid var(--em-border-color);
	border-radius: var(--em-radius-lg);
	overflow: hidden;
	transition: box-shadow var(--em-duration) var(--em-ease);
}

.em-product-card:hover {
	box-shadow: var(--em-shadow-lg);
}

.em-product-card__inner {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.em-product-card__image-wrapper {
	position: relative;
	overflow: hidden;
	aspect-ratio: 1;
	background-color: var(--em-neutral-100);
}

.em-product-card__image-wrapper img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--em-duration-slow) var(--em-ease);
}

.em-product-card:hover .em-product-card__image-wrapper img {
	transform: scale(1.05);
}

.em-product-card__link {
	display: block;
}

/* Product badges */
.em-product-card .onsale,
.em-product-card .em-badge--new {
	position: absolute;
	top: var(--em-space-3);
	left: var(--em-space-3);
	z-index: 2;
}

.em-product-card .em-badge--new {
	top: auto;
	bottom: var(--em-space-3);
}

/* In Store ribbon */
.em-product-card__in-store-ribbon {
	position: absolute;
	top: var(--em-space-3);
	right: var(--em-space-3);
	z-index: 2;
	background-color: #22c55e;
	color: #FFFFFF;
	font-size: var(--em-text-xs);
	font-weight: var(--em-font-bold);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: var(--em-space-1) var(--em-space-3);
	border-radius: var(--em-radius-sm);
}

/* Hover actions */
.em-product-card__actions {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: var(--em-space-4);
	background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
	opacity: 0;
	transform: translateY(100%);
	transition: all var(--em-duration) var(--em-ease);
}

.em-product-card:hover .em-product-card__actions {
	opacity: 1;
	transform: translateY(0);
}

.em-product-card__actions .button {
	width: 100%;
	background-color: var(--em-color-accent);
	border-color: var(--em-color-accent);
}

.em-product-card__actions .button:hover {
	background-color: #e55a00;
	border-color: #e55a00;
}

/* Product content */
.em-product-card__content {
	padding: var(--em-space-4);
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}

.em-product-card__categories {
	font-size: var(--em-text-xs);
	color: var(--em-text-muted);
	margin-bottom: var(--em-space-1);
}

.em-product-card__categories a {
	color: inherit;
	text-decoration: none;
}

.em-product-card__categories a:hover {
	color: var(--em-color-accent);
}

.em-product-card__title-link {
	text-decoration: none;
	color: inherit;
}

.em-product-card__title {
	font-size: var(--em-text-base);
	font-weight: var(--em-font-semibold);
	margin: 0 0 var(--em-space-2);
	line-height: var(--em-leading-snug);
}

.em-product-card__title-link:hover .em-product-card__title {
	color: var(--em-color-accent);
}

.em-product-card__rating {
	margin-bottom: var(--em-space-2);
}

.em-product-card__rating .star-rating {
	font-size: var(--em-text-sm);
}

.em-product-card__price {
	margin-top: auto;
}

.em-product-card__price .price {
	font-size: var(--em-text-lg);
	font-weight: var(--em-font-bold);
}

/* ==========================================================================
   Single Product Page
   ========================================================================== */

.em-single-product {
	max-width: var(--em-container-wide);
	margin: 0 auto;
}

.em-product__layout {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--em-space-10);
	margin-bottom: var(--em-space-12);
}

@media (max-width: 1023px) {
	.em-product__layout {
		grid-template-columns: 1fr;
		gap: var(--em-space-8);
	}
}

/* Gallery */
.em-product__gallery {
	position: relative;
}

.em-gallery {
	opacity: 1 !important;
}

.em-gallery__main {
	position: relative;
	margin-bottom: var(--em-space-4);
	border-radius: var(--em-radius-lg);
	overflow: hidden;
	background-color: var(--em-neutral-100);
}

.em-gallery__main img {
	width: 100%;
	height: auto;
	display: block;
}

.em-gallery__zoom {
	position: absolute;
	top: var(--em-space-3);
	right: var(--em-space-3);
	width: 2.5rem;
	height: 2.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: var(--em-bg-primary);
	border: var(--em-border) solid var(--em-border-color);
	border-radius: var(--em-radius-full);
	cursor: pointer;
	transition: all var(--em-duration) var(--em-ease);
	opacity: 0;
}

.em-gallery__main:hover .em-gallery__zoom {
	opacity: 1;
}

.em-gallery__zoom:hover {
	background-color: var(--em-color-accent);
	border-color: var(--em-color-accent);
	color: var(--em-text-inverse);
}

/* Thumbnails */
.em-gallery__thumbnails {
	position: relative;
}

.em-gallery__thumbnails-wrapper {
	display: flex;
	gap: var(--em-space-2);
	overflow-x: auto;
	scrollbar-width: thin;
	scrollbar-color: var(--em-neutral-300) transparent;
	padding-bottom: var(--em-space-2);
}

.em-gallery__thumbnail {
	flex: 0 0 auto;
	width: 80px;
	height: 80px;
	padding: 0;
	border: 2px solid transparent;
	border-radius: var(--em-radius-md);
	overflow: hidden;
	cursor: pointer;
	transition: all var(--em-duration) var(--em-ease);
	background: none;
}

.em-gallery__thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.em-gallery__thumbnail:hover {
	border-color: var(--em-neutral-300);
}

.em-gallery__thumbnail--active {
	border-color: var(--em-color-accent);
}

.em-gallery__nav {
	display: flex;
	justify-content: center;
	gap: var(--em-space-2);
	margin-top: var(--em-space-2);
}

.em-gallery__nav-btn {
	width: 2rem;
	height: 2rem;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: var(--em-bg-primary);
	border: var(--em-border) solid var(--em-border-color);
	border-radius: var(--em-radius-full);
	cursor: pointer;
	transition: all var(--em-duration) var(--em-ease);
}

.em-gallery__nav-btn:hover:not(:disabled) {
	border-color: var(--em-color-accent);
	color: var(--em-color-accent);
}

.em-gallery__nav-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* Product summary */
.em-product__summary {
	position: sticky;
	top: var(--em-space-4);
	align-self: start;
}

.em-product__summary .product_title {
	font-size: var(--em-text-3xl);
	font-weight: var(--em-font-bold);
	margin: 0 0 var(--em-space-3);
}

.em-product__summary .woocommerce-product-rating {
	display: flex;
	align-items: center;
	gap: var(--em-space-2);
	margin-bottom: var(--em-space-4);
}

.em-product__summary .price {
	font-size: var(--em-text-2xl);
	margin-bottom: var(--em-space-4);
}

.em-product__summary .woocommerce-product-details__short-description {
	color: var(--em-text-secondary);
	margin-bottom: var(--em-space-6);
	line-height: var(--em-leading-relaxed);
}

/* Add to cart form */
.em-product__summary .cart {
	display: flex;
	flex-wrap: wrap;
	gap: var(--em-space-3);
	margin-bottom: var(--em-space-6);
	padding-bottom: var(--em-space-6);
	border-bottom: var(--em-border) solid var(--em-border-color);
}

.em-product__summary .quantity {
	width: auto;
}

.em-product__summary .single_add_to_cart_button {
	flex: 1;
	min-width: 200px;
}

/* Product meta */
.em-product__summary .product_meta {
	color: var(--em-text-secondary);
	font-size: var(--em-text-sm);
}

.em-product__summary .product_meta > span {
	display: block;
	margin-bottom: var(--em-space-2);
}

.em-product__summary .product_meta a {
	color: var(--em-color-accent);
	text-decoration: none;
}

.em-product__summary .product_meta a:hover {
	text-decoration: underline;
}

/* ==========================================================================
   Product Tabs
   ========================================================================== */

.em-product-tabs {
	margin-bottom: var(--em-space-12);
}

.em-product-tabs__nav {
	display: flex;
	gap: var(--em-space-1);
	border-bottom: var(--em-border) solid var(--em-border-color);
	margin-bottom: var(--em-space-6);
	overflow-x: auto;
}

.em-product-tabs__btn {
	padding: var(--em-space-3) var(--em-space-6);
	font-size: var(--em-text-base);
	font-weight: var(--em-font-medium);
	color: var(--em-text-secondary);
	background: none;
	border: none;
	border-bottom: 2px solid transparent;
	cursor: pointer;
	transition: all var(--em-duration) var(--em-ease);
	white-space: nowrap;
}

.em-product-tabs__btn:hover {
	color: var(--em-text-primary);
}

.em-product-tabs__btn--active {
	color: var(--em-color-accent);
	border-bottom-color: var(--em-color-accent);
}

.em-product-tabs__panel {
	display: none;
}

.em-product-tabs__panel--active {
	display: block;
}

.em-product-tabs__panel h2 {
	font-size: var(--em-text-xl);
	margin-bottom: var(--em-space-4);
}

/* ==========================================================================
   Related Products
   ========================================================================== */

.em-related-products {
	padding-top: var(--em-space-12);
	border-top: var(--em-border) solid var(--em-border-color);
}

.em-related-products__title {
	font-size: var(--em-text-2xl);
	font-weight: var(--em-font-bold);
	margin-bottom: var(--em-space-6);
	text-align: center;
}

.em-related-products__grid .products {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--em-space-6);
	list-style: none;
	padding: 0;
	margin: 0;
}

@media (max-width: 1023px) {
	.em-related-products__grid .products {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 639px) {
	.em-related-products__grid .products {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   Quantity Input
   ========================================================================== */

.em-quantity-wrapper {
	display: flex;
	align-items: center;
}

.quantity {
	display: flex;
	align-items: center;
	border: var(--em-border) solid var(--em-border-color);
	border-radius: var(--em-radius-md);
	overflow: hidden;
}

.quantity .qty {
	width: 3rem;
	padding: var(--em-space-3);
	text-align: center;
	font-size: var(--em-text-base);
	font-weight: var(--em-font-medium);
	border: none;
	background: var(--em-bg-primary);
	-moz-appearance: textfield;
}

.quantity .qty::-webkit-outer-spin-button,
.quantity .qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* Quantity stepper buttons */
.em-qty-btn {
	width: 2.5rem;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: var(--em-neutral-100);
	border: none;
	font-size: var(--em-text-lg);
	font-weight: var(--em-font-bold);
	cursor: pointer;
	transition: all var(--em-duration) var(--em-ease);
	color: var(--em-text-primary);
}

.em-qty-btn:hover {
	background-color: var(--em-neutral-200);
}

.em-qty-btn:active {
	background-color: var(--em-neutral-300);
}

.em-qty-btn--minus {
	border-right: var(--em-border) solid var(--em-border-color);
}

.em-qty-btn--plus {
	border-left: var(--em-border) solid var(--em-border-color);
}

/* ==========================================================================
   Cart Page
   ========================================================================== */

.em-cart {
	display: grid;
	grid-template-columns: 1fr 380px;
	gap: var(--em-space-8);
	max-width: var(--em-container-wide);
	margin: 0 auto;
}

@media (max-width: 1023px) {
	.em-cart {
		grid-template-columns: 1fr;
	}
}

.em-cart__header {
	display: none;
	grid-template-columns: 2fr 1fr 1fr 1fr;
	gap: var(--em-space-4);
	padding: var(--em-space-4);
	background-color: var(--em-neutral-100);
	border-radius: var(--em-radius-md);
	font-weight: var(--em-font-semibold);
	font-size: var(--em-text-sm);
	color: var(--em-text-secondary);
	margin-bottom: var(--em-space-4);
}

@media (min-width: 768px) {
	.em-cart__header {
		display: grid;
	}
}

.em-cart__item {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr;
	gap: var(--em-space-4);
	padding: var(--em-space-4);
	border-bottom: var(--em-border) solid var(--em-border-color);
	align-items: center;
}

@media (max-width: 767px) {
	.em-cart__item {
		grid-template-columns: 1fr;
		gap: var(--em-space-3);
	}
}

.em-cart__item-product {
	display: flex;
	gap: var(--em-space-4);
}

.em-cart__item-image {
	flex: 0 0 80px;
}

.em-cart__item-image img {
	width: 80px;
	height: 80px;
	object-fit: cover;
	border-radius: var(--em-radius-md);
}

.em-cart__item-details {
	flex: 1;
}

.em-cart__item-name {
	font-size: var(--em-text-base);
	font-weight: var(--em-font-semibold);
	margin: 0 0 var(--em-space-2);
}

.em-cart__item-name a {
	color: inherit;
	text-decoration: none;
}

.em-cart__item-name a:hover {
	color: var(--em-color-accent);
}

.em-cart__remove-btn {
	font-size: var(--em-text-sm);
	color: var(--em-text-muted);
	text-decoration: none;
}

.em-cart__remove-btn:hover {
	color: var(--em-color-error);
}

.em-cart__item-price,
.em-cart__item-quantity,
.em-cart__item-subtotal {
	font-weight: var(--em-font-medium);
}

@media (max-width: 767px) {
	.em-cart__item-price::before,
	.em-cart__item-quantity::before,
	.em-cart__item-subtotal::before {
		content: attr(data-title) ": ";
		font-weight: var(--em-font-normal);
		color: var(--em-text-secondary);
	}
}

.em-cart__item-subtotal {
	font-weight: var(--em-font-bold);
}

/* Cart actions */
.em-cart__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--em-space-4);
	padding: var(--em-space-4) 0;
	justify-content: space-between;
}

.em-cart__coupon {
	display: flex;
	gap: var(--em-space-2);
}

.em-cart__coupon .em-input {
	width: 180px;
}

/* Cart collaterals */
.em-cart__collaterals {
	position: sticky;
	top: var(--em-space-4);
}

.em-cart__collaterals .cart_totals {
	background-color: var(--em-neutral-50);
	border-radius: var(--em-radius-lg);
	padding: var(--em-space-6);
}

.em-cart__collaterals .cart_totals h2 {
	font-size: var(--em-text-xl);
	margin-bottom: var(--em-space-4);
}

.em-cart__collaterals .shop_table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: var(--em-space-4);
}

.em-cart__collaterals .shop_table th,
.em-cart__collaterals .shop_table td {
	padding: var(--em-space-3) 0;
	border-bottom: var(--em-border) solid var(--em-border-color);
}

.em-cart__collaterals .shop_table th {
	text-align: left;
	font-weight: var(--em-font-normal);
	color: var(--em-text-secondary);
}

.em-cart__collaterals .shop_table .order-total th,
.em-cart__collaterals .shop_table .order-total td {
	font-size: var(--em-text-lg);
	font-weight: var(--em-font-bold);
	border-bottom: none;
}

.em-cart__collaterals .wc-proceed-to-checkout {
	margin-top: var(--em-space-4);
}

.em-cart__collaterals .wc-proceed-to-checkout a {
	width: 100%;
	font-size: var(--em-text-lg);
	padding: var(--em-space-4) var(--em-space-6);
}

/* ==========================================================================
   Empty Cart
   ========================================================================== */

.em-cart-empty {
	text-align: center;
	padding: var(--em-space-16) var(--em-space-4);
	max-width: 500px;
	margin: 0 auto;
}

.em-cart-empty__icon {
	color: var(--em-neutral-300);
	margin-bottom: var(--em-space-6);
}

.em-cart-empty__title {
	font-size: var(--em-text-2xl);
	margin-bottom: var(--em-space-3);
}

.em-cart-empty__message {
	color: var(--em-text-secondary);
	margin-bottom: var(--em-space-6);
}

/* Hide default WooCommerce empty cart message */
.woocommerce-info.wc-empty-cart-message {
	display: none;
}

/* ==========================================================================
   Checkout Page
   ========================================================================== */

.em-checkout {
	max-width: var(--em-container-wide);
	margin: 0 auto;
}

.em-checkout__layout {
	display: grid;
	grid-template-columns: 1fr 420px;
	gap: var(--em-space-10);
}

@media (max-width: 1023px) {
	.em-checkout__layout {
		grid-template-columns: 1fr;
	}
}

.em-checkout__section-title {
	font-size: var(--em-text-xl);
	font-weight: var(--em-font-bold);
	margin-bottom: var(--em-space-6);
	padding-bottom: var(--em-space-3);
	border-bottom: var(--em-border) solid var(--em-border-color);
}

.em-checkout__shipping {
	margin-top: var(--em-space-8);
}

/* Checkout form fields */
.em-checkout .form-row {
	margin-bottom: var(--em-space-4);
}

.em-checkout .form-row label {
	display: block;
	font-size: var(--em-text-sm);
	font-weight: var(--em-font-medium);
	margin-bottom: var(--em-space-2);
}

.em-checkout .form-row .required {
	color: var(--em-color-error);
}

.em-checkout .form-row input.input-text,
.em-checkout .form-row textarea,
.em-checkout .form-row select {
	width: 100%;
	padding: var(--em-space-3) var(--em-space-4);
	font-size: var(--em-text-base);
	border: var(--em-border) solid var(--em-border-color);
	border-radius: var(--em-radius-md);
	transition: border-color var(--em-duration) var(--em-ease),
	            box-shadow var(--em-duration) var(--em-ease);
}

.em-checkout .form-row input.input-text:focus,
.em-checkout .form-row textarea:focus,
.em-checkout .form-row select:focus {
	outline: none;
	border-color: var(--em-color-accent);
	box-shadow: 0 0 0 3px rgba(115, 205, 214, 0.3);
}

.em-checkout .form-row.woocommerce-invalid input.input-text {
	border-color: var(--em-color-error);
}

/* Order review sidebar */
.em-checkout__sidebar {
	position: sticky;
	top: var(--em-space-4);
	align-self: start;
}

.em-checkout__order-review-wrapper {
	background-color: var(--em-neutral-50);
	border-radius: var(--em-radius-lg);
	padding: var(--em-space-6);
}

.em-checkout__order-review .shop_table {
	width: 100%;
	border-collapse: collapse;
}

.em-checkout__order-review .shop_table th,
.em-checkout__order-review .shop_table td {
	padding: var(--em-space-3) 0;
	border-bottom: var(--em-border) solid var(--em-border-color);
	vertical-align: top;
}

.em-checkout__order-review .shop_table thead th {
	font-weight: var(--em-font-semibold);
}

.em-checkout__order-review .shop_table .product-name {
	display: flex;
	gap: var(--em-space-2);
	flex-wrap: wrap;
}

.em-checkout__order-review .shop_table .order-total th,
.em-checkout__order-review .shop_table .order-total td {
	font-size: var(--em-text-lg);
	font-weight: var(--em-font-bold);
}

/* Payment methods */
.em-checkout #payment {
	background-color: var(--em-bg-primary);
	border-radius: var(--em-radius-md);
	margin-top: var(--em-space-6);
}

.em-checkout #payment .payment_methods {
	list-style: none;
	padding: 0;
	margin: 0;
}

.em-checkout #payment .payment_methods li {
	padding: var(--em-space-4);
	border-bottom: var(--em-border) solid var(--em-border-color);
}

.em-checkout #payment .payment_methods li:last-child {
	border-bottom: none;
}

.em-checkout #payment .payment_methods li label {
	display: flex;
	align-items: center;
	gap: var(--em-space-3);
	font-weight: var(--em-font-medium);
	cursor: pointer;
}

.em-checkout #payment .payment_box {
	padding: var(--em-space-4);
	background-color: var(--em-neutral-100);
	border-radius: var(--em-radius-md);
	margin-top: var(--em-space-3);
}

.em-checkout #place_order {
	width: 100%;
	font-size: var(--em-text-lg);
	padding: var(--em-space-4) var(--em-space-6);
	margin-top: var(--em-space-4);
}

/* Trust badges */
.em-trust-badges {
	display: flex;
	justify-content: center;
	gap: var(--em-space-6);
	margin-top: var(--em-space-6);
	padding-top: var(--em-space-4);
	border-top: var(--em-border) solid var(--em-border-color);
}

.em-trust-badges__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--em-space-2);
	text-align: center;
}

.em-trust-badges__icon {
	color: var(--em-color-success);
}

.em-trust-badges__item span {
	font-size: var(--em-text-xs);
	color: var(--em-text-secondary);
}

/* ==========================================================================
   My Account
   ========================================================================== */

.em-account {
	display: grid;
	grid-template-columns: 260px 1fr;
	gap: 32px;
	max-width: var(--em-container-wide);
	margin: 0 auto;
}

@media (max-width: 767px) {
	.em-account {
		grid-template-columns: 1fr;
	}
}

/* Account navigation */
.em-account__sidebar .woocommerce-MyAccount-navigation ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.em-account__sidebar .woocommerce-MyAccount-navigation ul li {
	margin-bottom: var(--em-space-1);
}

/* FINAL, ACTUAL FIX — force My Account nav to fill sidebar */
.woocommerce-account .woocommerce-MyAccount-navigation {
	width: 100%;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
	width: 100%;
}

.woocommerce-account .woocommerce-MyAccount-navigation-link > a {
	display: block;
	width: 100%;
	padding: 12px 16px;
	box-sizing: border-box;
	border-radius: var(--em-radius-md);
	text-decoration: none;
	color: var(--em-text-primary);
	transition: background-color var(--em-duration) var(--em-ease),
	            color var(--em-duration) var(--em-ease);
}

.woocommerce-account .woocommerce-MyAccount-navigation-link > a:hover {
	background-color: var(--em-neutral-100);
}

/* Active state (pill highlight) */
.woocommerce-account .woocommerce-MyAccount-navigation-link.is-active > a {
	background-color: var(--em-color-primary);
	color: #ffffff;
}

/* Dashboard */
.em-dashboard__welcome {
	margin-bottom: var(--em-space-8);
}

.em-dashboard__title {
	font-size: var(--em-text-2xl);
	margin-bottom: var(--em-space-2);
}

.em-dashboard__subtitle {
	color: var(--em-text-secondary);
}

.em-dashboard__quick-links {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--em-space-4);
	margin-bottom: var(--em-space-8);
}

@media (max-width: 767px) {
	.em-dashboard__quick-links {
		grid-template-columns: 1fr;
	}
}

.em-dashboard__card {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: var(--em-space-6);
	background-color: var(--em-neutral-50);
	border-radius: var(--em-radius-lg);
	text-decoration: none;
	text-align: center;
	transition: all var(--em-duration) var(--em-ease);
}

.em-dashboard__card:hover {
	background-color: var(--em-neutral-100);
	transform: translateY(-2px);
}

.em-dashboard__card-icon {
	color: var(--em-color-accent);
	margin-bottom: var(--em-space-3);
}

.em-dashboard__card-title {
	font-size: var(--em-text-lg);
	font-weight: var(--em-font-semibold);
	color: var(--em-text-primary);
	margin: 0 0 var(--em-space-2);
}

.em-dashboard__card-text {
	font-size: var(--em-text-sm);
	color: var(--em-text-secondary);
	margin: 0;
}

.em-dashboard__info {
	color: var(--em-text-secondary);
}

.em-dashboard__info a {
	color: var(--em-color-accent);
}

/* Orders list */
.em-orders__item {
	background-color: var(--em-bg-primary);
	border: var(--em-border) solid var(--em-border-color);
	border-radius: var(--em-radius-lg);
	padding: var(--em-space-4);
	margin-bottom: var(--em-space-4);
}

.em-orders__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: var(--em-space-3);
}

.em-orders__number a {
	font-size: var(--em-text-lg);
	font-weight: var(--em-font-bold);
	color: var(--em-text-primary);
	text-decoration: none;
}

.em-orders__number a:hover {
	color: var(--em-color-accent);
}

.em-orders__details {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	flex-wrap: wrap;
	gap: var(--em-space-4);
}

.em-orders__meta {
	display: flex;
	gap: var(--em-space-6);
	font-size: var(--em-text-sm);
	color: var(--em-text-secondary);
}

.em-orders__actions {
	display: flex;
	gap: var(--em-space-2);
}

.em-orders__pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: var(--em-space-4);
	margin-top: var(--em-space-6);
}

.em-orders__page-info {
	color: var(--em-text-secondary);
}

/* Orders empty */
.em-orders-empty {
	text-align: center;
	padding: var(--em-space-12) var(--em-space-4);
}

.em-orders-empty__icon {
	color: var(--em-neutral-300);
	margin-bottom: var(--em-space-4);
}

.em-orders-empty__title {
	font-size: var(--em-text-xl);
	margin-bottom: var(--em-space-2);
}

.em-orders-empty__text {
	color: var(--em-text-secondary);
	margin-bottom: var(--em-space-6);
}

/* Edit account form */
.em-edit-account {
	max-width: 600px;
}

.em-form__section {
	margin-bottom: var(--em-space-8);
}

.em-form__section-title {
	font-size: var(--em-text-lg);
	font-weight: var(--em-font-bold);
	margin-bottom: var(--em-space-4);
	padding-bottom: var(--em-space-2);
	border-bottom: var(--em-border) solid var(--em-border-color);
}

.em-form__section-desc {
	color: var(--em-text-secondary);
	margin-bottom: var(--em-space-4);
}

.em-form__row--2col {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--em-space-4);
}

@media (max-width: 639px) {
	.em-form__row--2col {
		grid-template-columns: 1fr;
	}
}

.em-form__actions {
	padding-top: var(--em-space-4);
}

/* ==========================================================================
   Badge Status Colors
   ========================================================================== */

.em-badge--secondary {
	background-color: var(--em-neutral-200);
	color: var(--em-text-secondary);
}

.em-badge--info {
	background-color: #e0f2fe;
	color: #0c4a6e;
}

/* ==========================================================================
   Notices / Messages
   ========================================================================== */

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	position: relative;
	padding: var(--em-space-4);
	padding-left: var(--em-space-12);
	margin-bottom: var(--em-space-4);
	border-radius: var(--em-radius-md);
	border: 1px solid;
	border-left-width: 4px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--em-space-4);
	flex-wrap: wrap;
}

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
	position: absolute;
	left: var(--em-space-4);
	top: 50%;
	transform: translateY(-50%);
	font-size: var(--em-text-lg);
	font-weight: var(--em-font-bold);
}

.woocommerce-message::before {
	content: "\2713";
	color: var(--em-color-success);
}

.woocommerce-info::before {
	content: "\2139";
	color: var(--em-color-info);
}

.woocommerce-error::before {
	content: "\2717";
	color: var(--em-color-error);
}

.woocommerce-message {
	background-color: #dcfce7;
	border-color: var(--em-color-success);
	color: #14532d;
}

.woocommerce-info {
	background-color: #e0f2fe;
	border-color: var(--em-color-info);
	color: #0c4a6e;
}

.woocommerce-error {
	background-color: #fee2e2;
	border-color: var(--em-color-error);
	color: #7f1d1d;
	list-style: none;
	padding-left: var(--em-space-4);
}

.woocommerce-error li {
	margin-bottom: var(--em-space-2);
}

.woocommerce-error li:last-child {
	margin-bottom: 0;
}

/* ==========================================================================
   Forms
   ========================================================================== */

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
	padding: var(--em-space-3) var(--em-space-4);
	font-size: var(--em-text-base);
	border: var(--em-border) solid var(--em-border-color);
	border-radius: var(--em-radius-md);
	transition: border-color var(--em-duration) var(--em-ease),
	            box-shadow var(--em-duration) var(--em-ease);
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
	outline: none;
	border-color: var(--em-color-accent);
	box-shadow: 0 0 0 3px rgba(115, 205, 214, 0.3);
}

/* ==========================================================================
   Price
   ========================================================================== */

.woocommerce .price {
	color: var(--em-text-primary);
	font-weight: var(--em-font-semibold);
}

.woocommerce .price del {
	color: var(--em-text-muted);
	font-weight: var(--em-font-normal);
	margin-right: var(--em-space-2);
}

.woocommerce .price ins {
	text-decoration: none;
	color: var(--em-color-accent);
}

/* ==========================================================================
   Star Rating
   ========================================================================== */

.woocommerce .star-rating {
	color: var(--em-color-accent);
	font-size: var(--em-text-sm);
}

/* ==========================================================================
   Sale Badge
   ========================================================================== */

.woocommerce span.onsale {
	background-color: var(--em-color-accent);
	color: var(--em-text-inverse);
	font-weight: var(--em-font-semibold);
	border-radius: var(--em-radius-md);
	padding: var(--em-space-1) var(--em-space-3);
	font-size: var(--em-text-sm);
	min-width: auto;
	min-height: auto;
	line-height: var(--em-leading-tight);
}

/* ==========================================================================
   Cart Count (header)
   ========================================================================== */

.em-cart-count,
.em-header-cart__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.25rem;
	height: 1.25rem;
	padding: 0 var(--em-space-1);
	font-size: var(--em-text-xs);
	font-weight: var(--em-font-bold);
	background-color: #73CDD6;
	color: #000000;
	border-radius: var(--em-radius-full);
}

/* ==========================================================================
   Lightbox (for gallery)
   ========================================================================== */

.em-lightbox {
	position: fixed;
	inset: 0;
	z-index: 9999;
	background-color: rgba(0, 0, 0, 0.9);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: all var(--em-duration) var(--em-ease);
}

.em-lightbox--active {
	opacity: 1;
	visibility: visible;
}

.em-lightbox__content {
	max-width: 90vw;
	max-height: 90vh;
}

.em-lightbox__content img {
	max-width: 100%;
	max-height: 90vh;
	object-fit: contain;
}

.em-lightbox__close {
	position: absolute;
	top: var(--em-space-4);
	right: var(--em-space-4);
	width: 3rem;
	height: 3rem;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: var(--em-bg-primary);
	border: none;
	border-radius: var(--em-radius-full);
	cursor: pointer;
	font-size: var(--em-text-xl);
}

.em-lightbox__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 3rem;
	height: 3rem;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: var(--em-bg-primary);
	border: none;
	border-radius: var(--em-radius-full);
	cursor: pointer;
}

.em-lightbox__nav--prev {
	left: var(--em-space-4);
}

.em-lightbox__nav--next {
	right: var(--em-space-4);
}

/* ==========================================================================
   Variable Products
   ========================================================================== */

.variations {
	width: 100%;
	margin-bottom: var(--em-space-4);
}

.variations tr {
	display: flex;
	flex-direction: column;
	margin-bottom: var(--em-space-3);
}

.variations .label {
	font-weight: var(--em-font-medium);
	margin-bottom: var(--em-space-2);
}

.variations .value select {
	width: 100%;
	padding: var(--em-space-3) var(--em-space-4);
	border: var(--em-border) solid var(--em-border-color);
	border-radius: var(--em-radius-md);
}

.reset_variations {
	font-size: var(--em-text-sm);
	color: var(--em-text-muted);
	text-decoration: underline;
	margin-left: var(--em-space-2);
}

/* ==========================================================================
   Cross-sells
   ========================================================================== */

.cross-sells {
	margin-top: var(--em-space-8);
}

.cross-sells h2 {
	font-size: var(--em-text-xl);
	margin-bottom: var(--em-space-4);
}

.cross-sells .products {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--em-space-4);
	list-style: none;
	padding: 0;
	margin: 0;
}

/* ==========================================================================
   Select2 Overrides
   ========================================================================== */

.select2-container--default .select2-selection--single {
	height: auto;
	padding: var(--em-space-3) var(--em-space-4);
	border: var(--em-border) solid var(--em-border-color);
	border-radius: var(--em-radius-md);
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
	line-height: inherit;
	padding: 0;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
	height: 100%;
}

.select2-dropdown {
	border-color: var(--em-border-color);
	border-radius: var(--em-radius-md);
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
	background-color: var(--em-color-accent);
}

/* ==========================================================================
   Cart Page - Grid Layout
   ========================================================================== */

/* Give product column more room in cart grid */
.em-cart__item {
	grid-template-columns: 3fr 1fr 1fr 1fr;
}

@media (min-width: 768px) {
	.em-cart__header {
		grid-template-columns: 3fr 1fr 1fr 1fr;
	}
}

/* ==========================================================================
   Cart Page - Empty Cart Styling
   ========================================================================== */

.woocommerce-cart .em-cart-empty {
	text-align: center;
	padding: var(--em-space-16) var(--em-space-4);
	max-width: 600px;
	margin: 0 auto;
}

.woocommerce-cart .em-cart-empty__icon {
	display: block;
	text-align: center;
	margin: 0 auto var(--em-space-6);
}

.woocommerce-cart .em-cart-empty__icon svg {
	display: inline-block;
	width: 120px;
	height: 120px;
	margin: 0 auto;
}

.woocommerce-cart .em-cart-empty__title {
	font-size: var(--em-text-3xl);
}

.woocommerce-cart .em-cart-empty__message {
	font-size: var(--em-text-lg);
	max-width: 500px;
	margin-left: auto;
	margin-right: auto;
}

/* Hide duplicate WooCommerce messages in empty cart */
.woocommerce-cart .em-cart-empty .woocommerce-info,
.woocommerce-cart .em-cart-empty .woocommerce-message,
.woocommerce-cart .em-cart-empty .cart-empty {
	display: none;
}

/* Style notices that appear above the cart */
.woocommerce-cart .woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-cart .woocommerce-notices-wrapper .woocommerce-info {
	max-width: 600px;
	margin: 0 auto var(--em-space-4);
	padding: var(--em-space-3) var(--em-space-4);
	background: var(--em-color-surface);
	border-radius: var(--em-radius-md);
	text-align: center;
}

/* ==========================================================================
   My Account Page - Layout
   ========================================================================== */

/* Account two-column grid layout */
.woocommerce-account .em-account {
	display: grid;
	grid-template-columns: 260px 1fr;
	gap: 32px;
	align-items: flex-start;
	max-width: var(--em-container-width);
	margin: 0 auto;
	padding: var(--em-space-8) var(--em-space-4);
}

/* Sidebar with sticky navigation */
.woocommerce-account .em-account__sidebar {
	width: 260px;
	position: relative;
}

.woocommerce-account .woocommerce-MyAccount-navigation {
	position: sticky;
	top: calc(var(--em-header-height, 80px) + 2rem);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
	padding-left: 0;
	margin-top: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li {
	margin-bottom: 0.25rem;
}

/* Main content area */
.woocommerce-account .em-account__main {
	width: 100%;
}

.woocommerce-account .em-account__content {
	min-height: 60vh;
}

/* Hide default page title (dashboard has its own) */
.woocommerce-account .em-page-header {
	display: none;
}

/* Mobile: stack layout */
@media (max-width: 900px) {
	.woocommerce-account .em-account {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   My Account Page - Dashboard Styling
   ========================================================================== */

.woocommerce-account .em-dashboard {
	padding: var(--em-space-6) 0;
}

.woocommerce-account .em-dashboard__title {
	font-size: var(--em-text-3xl);
	margin-bottom: var(--em-space-4);
}

.woocommerce-account .em-dashboard__welcome {
	margin-bottom: var(--em-space-10);
}

.woocommerce-account .em-dashboard__intro {
	font-size: var(--em-text-lg);
	line-height: 1.7;
	max-width: 800px;
}

.woocommerce-account .em-dashboard__info {
	font-size: var(--em-text-lg);
	line-height: 1.7;
}

/* Dashboard quick links / cards grid */
.woocommerce-account .em-dashboard__quick-links,
.woocommerce-account .em-dashboard__cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--em-space-6);
	width: 100%;
	margin-bottom: var(--em-space-10);
}

.woocommerce-account .em-dashboard__card {
	padding: var(--em-space-6) var(--em-space-8);
	min-height: 160px;
}

.woocommerce-account .em-dashboard__card-icon {
	width: 48px;
	height: 48px;
	margin-bottom: var(--em-space-4);
}

.woocommerce-account .em-dashboard__card-icon svg {
	width: 48px;
	height: 48px;
}

.woocommerce-account .em-dashboard__card-title {
	font-size: var(--em-text-xl);
	margin: var(--em-space-4) 0 var(--em-space-2);
}

.woocommerce-account .em-dashboard__card-text {
	font-size: var(--em-text-base);
	line-height: 1.6;
}

@media (max-width: 767px) {
	.woocommerce-account .em-dashboard__quick-links,
	.woocommerce-account .em-dashboard__cards {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   My Account Page - Info Boxes & Empty States
   ========================================================================== */

.woocommerce-account .woocommerce-info {
	display: block;
	padding: var(--em-space-4) var(--em-space-6);
	padding-left: var(--em-space-12);
	position: relative;
}

.woocommerce-account .woocommerce-info::before {
	position: absolute;
	left: var(--em-space-4);
	top: 50%;
	transform: translateY(-50%);
}

.woocommerce-account .woocommerce-info .button {
	margin-left: var(--em-space-4);
}

/* Empty downloads state */
.woocommerce-account .em-downloads-empty {
	text-align: center;
	padding: var(--em-space-8);
	background: var(--em-color-surface);
	border-radius: var(--em-radius-md);
}

.woocommerce-account .em-downloads-empty::before {
	display: none;
}

.woocommerce-account .em-downloads-empty p {
	margin-bottom: var(--em-space-4);
	font-size: var(--em-text-lg);
}

/* ==========================================================================

/* ==========================================================================
   Product Category Archive Fixes
   ========================================================================== */

/* Hide duplicate WooCommerce products header */
.woocommerce-products-header {
	display: none !important;
}

/* Reset WooCommerce default product list styles */
.woocommerce ul.products,
.em-product-grid ul.products,
ul.products.columns-3 {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr) !important;
	gap: 16px !important;
	list-style: none !important;
	padding: 0 !important;
	margin: 0 !important;
}

/* Override any WooCommerce li styles */
.woocommerce ul.products li.product,
.em-product-grid ul.products li.product,
ul.products li.em-product-card {
	margin: 0 !important;
	padding: 0 !important;
	width: 100% !important;
	float: none !important;
}

/* Product card container */
.em-product-card {
	background: var(--em-surface, #fff);
	border: 1px solid var(--em-border-color, #e5e5e5);
	border-radius: 8px;
	overflow: hidden;
	transition: box-shadow 0.2s ease;
}

.em-product-card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Image wrapper - square aspect ratio */
.em-product-card .em-product-card__image-wrapper {
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #f5f5f5;
}

.em-product-card .em-product-card__image-wrapper img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Content area */
.em-product-card .em-product-card__content {
	padding: 12px;
}

/* Hide categories for cleaner look */
.em-product-card .em-product-card__categories {
	display: none;
}

/* Product title */
.em-product-card .em-product-card__title {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	margin: 0 0 8px 0;
	color: #1a1a1a;
}

/* Price */
.em-product-card .em-product-card__price .price {
	font-size: 16px;
	font-weight: 700;
	color: #1a1a1a;
}

/* Hide rating if empty */
.em-product-card .em-product-card__rating:empty {
	display: none;
}

/* Responsive */
@media (max-width: 1023px) {
	.woocommerce ul.products,
	.em-product-grid ul.products,
	ul.products.columns-3 {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}

@media (max-width: 639px) {
	.woocommerce ul.products,
	.em-product-grid ul.products,
	ul.products.columns-3 {
		grid-template-columns: 1fr !important;
	}
}

@media (min-width: 1200px) {
	.woocommerce ul.products,
	.em-product-grid ul.products,
	ul.products.columns-3 {
		grid-template-columns: repeat(4, 1fr) !important;
	}
}

/* Remove WooCommerce default ::before and ::after pseudo-elements on product grid */
.woocommerce ul.products::before,
.woocommerce ul.products::after,
.em-product-grid ul.products::before,
.em-product-grid ul.products::after,
ul.products.columns-3::before,
ul.products.columns-3::after {
	display: none !important;
	content: none !important;
}

/* ==========================================================================
	margin: 0;
}

/* ==========================================================================
   Shop Header Styling with Brand Gradient
   ========================================================================== */

.em-shop-header {
	background: var(--em-gradient-radial);
	padding: var(--em-space-10) var(--em-space-4);
	margin: 0 calc(-1 * var(--em-space-4)) var(--em-space-6);
	text-align: center;
}

.em-shop-header__title {
	color: #000000;
	font-size: var(--em-text-4xl);
	font-weight: var(--em-font-bold);
	margin: 0;
}

/* Center align the toolbar */
.em-shop-toolbar {
	display: flex;
	flex-wrap: wrap;
	justify-content: center !important;
	align-items: center;
	gap: var(--em-space-4);
	padding: var(--em-space-3) 0;
	margin-bottom: var(--em-space-4);
	border-bottom: 1px solid var(--em-border-color, #e5e5e5);
}

.em-shop-toolbar .woocommerce-result-count {
	margin: 0;
	color: var(--em-text-secondary);
}

.em-shop-toolbar .woocommerce-ordering {
	margin: 0;
}

/* ==========================================================================
   Category Sections (for parent categories with subcategories)
   ========================================================================== */

.em-category-section {
	margin-bottom: var(--em-space-10);
	padding-bottom: var(--em-space-8);
	border-bottom: 2px solid var(--em-border-color, #e5e5e5);
}

.em-category-section:last-child {
	border-bottom: none;
	margin-bottom: 0;
}

.em-category-section__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: var(--em-space-2);
	margin-bottom: var(--em-space-4);
	padding-bottom: var(--em-space-3);
	border-bottom: 1px solid var(--em-border-color, #e5e5e5);
}

.em-category-section__title {
	font-size: var(--em-text-2xl);
	font-weight: var(--em-font-bold);
	margin: 0;
	color: var(--em-text-primary, #1a1a1a);
}

.em-category-section__title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}

.em-category-section__title a:hover {
	color: var(--em-color-primary, #73CDD6);
}

.em-category-section__count {
	font-size: var(--em-text-sm);
	color: var(--em-text-secondary, #666);
	background: var(--em-neutral-100, #f5f5f5);
	padding: var(--em-space-1) var(--em-space-3);
	border-radius: var(--em-radius-full, 9999px);
}

/* ==========================================================================
   Single Product Gallery - Make it bigger and fill the space
   ========================================================================== */

/* Ensure the gallery wrapper fills the column */
.em-product__gallery .woocommerce-product-gallery {
	width: 100% !important;
	max-width: 100% !important;
}

.em-product__gallery .woocommerce-product-gallery__wrapper,
.em-product__gallery .em-gallery__wrapper {
	width: 100% !important;
	max-width: 100% !important;
}

/* Main gallery image container */
.em-product__gallery .woocommerce-product-gallery__image,
.em-product__gallery .em-gallery__main {
	width: 100% !important;
	max-width: 100% !important;
}

/* The actual image should fill the container */
.em-product__gallery .woocommerce-product-gallery__image img,
.em-product__gallery .em-gallery__main img.wp-post-image {
	width: 100% !important;
	height: auto !important;
	max-width: 100% !important;
	object-fit: contain;
}

/* Give the gallery column more visual weight */
.em-product__layout {
	grid-template-columns: 1.2fr 1fr !important;
	align-items: start;
}

/* Add some min-height to the gallery for better proportions */
.em-gallery__main {
	min-height: 400px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #f9f9f9;
}

/* Center the image within the gallery */
.em-gallery__main .woocommerce-product-gallery__wrapper {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
}

.em-gallery__main .woocommerce-product-gallery__image {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
}

/* Make thumbnails a bit bigger too */
.em-gallery__thumbnail {
	width: 80px !important;
	height: 80px !important;
	flex-shrink: 0;
}

.em-gallery__thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@media (max-width: 1023px) {
	.em-product__layout {
		grid-template-columns: 1fr !important;
	}
	
	.em-gallery__main {
		min-height: 300px;
	}
}

/* Fix for product tabs - override WooCommerce inline styles */
.em-product-tabs__panel--active {
	display: block !important;
}

.em-product-tabs__panel:not(.em-product-tabs__panel--active) {
	display: none !important;
}

/* ==========================================================================
   Hide hover Add to Cart / Select Options overlay on product cards
   ========================================================================== */

.em-product-card__actions {
	display: none !important;
}

/* View All Link for Category Sections */
.em-category-section__footer {
	margin-top: 1.5rem;
	text-align: center;
}

.em-view-all-link {
	display: inline-block;
	padding: 0.75rem 1.5rem;
	background-color: #1a1a1a;
	color: #fff;
	text-decoration: none;
	border-radius: 4px;
	font-weight: 500;
	transition: background-color 0.2s ease;
}

.em-view-all-link:hover {
	background-color: #333;
	color: #fff;
}

/* In Store Section Styling */
.em-category-section--in-store {
	background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
	border: 2px solid #22c55e;
	border-radius: 8px;
	padding: 1.5rem;
	margin-bottom: 2rem;
}

.em-category-section--in-store .em-category-section__title {
	color: #166534;
}

.em-in-store-icon {
	margin-right: 0.5rem;
}

.em-category-section--in-store .em-category-section__count {
	color: #15803d;
	font-weight: 500;
}
