/**
 * Golden Light — WooCommerce Styles
 */

/* Product card */
.products .product,
.gl-product-grid .product {
	position: relative;
	background: var(--gl-white);
	border-radius: var(--gl-radius-lg);
	overflow: hidden;
	box-shadow: var(--gl-shadow);
	transition: transform var(--gl-transition), box-shadow var(--gl-transition);
	list-style: none;
}

.products .product:hover,
.gl-product-grid .product:hover {
	transform: translateY(-6px);
	box-shadow: var(--gl-shadow-hover);
}

.products .product a img,
.gl-product-grid .product a img {
	width: 100%;
	aspect-ratio: 4/5;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.products .product:hover a img { transform: scale(1.03); }

.products .product .woocommerce-loop-product__title,
.gl-product-grid .product .woocommerce-loop-product__title {
	padding: 1rem 1.25rem 0.25rem;
	font-size: 1rem;
	font-weight: 600;
	margin: 0;
}

.products .product .price,
.gl-product-grid .product .price {
	padding: 0 1.25rem 1.25rem;
	color: var(--gl-gold);
	font-weight: 700;
	font-size: 1.0625rem;
}

.products .product .price del {
	color: var(--gl-gray);
	font-weight: 400;
	font-size: 0.875rem;
	margin-inline-start: 0.5rem;
}

.products .product .price ins { text-decoration: none; }

.gl-product-card__actions {
	position: absolute;
	top: 0.75rem;
	inset-inline-start: 0.75rem;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	opacity: 0;
	transform: translateX(-8px);
	transition: all var(--gl-transition);
}

.products .product:hover .gl-product-card__actions {
	opacity: 1;
	transform: translateX(0);
}

.onsale {
	position: absolute;
	top: 0.75rem;
	inset-inline-end: 0.75rem;
	background: var(--gl-gold);
	color: var(--gl-white);
	padding: 0.375rem 0.75rem;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 700;
	z-index: 2;
}

/* Single product */
.gl-product-single__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
	padding: 2rem 0 3rem;
}

.gl-product-gallery .woocommerce-product-gallery {
	position: relative;
}

.gl-product-gallery .woocommerce-product-gallery__image img {
	border-radius: var(--gl-radius-lg);
	width: 100%;
}

.gl-product-summary .product_title {
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 800;
	margin: 0 0 1rem;
	line-height: 1.3;
}

.gl-product-summary .price {
	font-size: 1.5rem;
	font-weight: 800;
	color: var(--gl-gold);
	margin-bottom: 1.25rem;
}

.gl-product-summary .stock {
	font-weight: 600;
	margin-bottom: 1rem;
}

.gl-product-summary .stock.in-stock { color: #2E7D32; }
.gl-product-summary .stock.out-of-stock { color: #C62828; }

.gl-product-meta {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin: 1.5rem 0;
	padding: 1rem 0;
	border-top: 1px solid var(--gl-gray-light);
	border-bottom: 1px solid var(--gl-gray-light);
	font-size: 0.875rem;
	color: var(--gl-gray);
}

.gl-product-meta__item strong { color: var(--gl-charcoal); }

.gl-product-actions {
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
	margin-top: 1rem;
}

/* Variations */
.gl-variation-notice {
	background: rgba(201, 169, 98, 0.1);
	border-inline-start: 4px solid var(--gl-gold);
	padding: 0.875rem 1rem;
	border-radius: 0 var(--gl-radius) var(--gl-radius) 0;
	font-size: 0.875rem;
	margin-bottom: 1rem;
}

.gl-variation-group { margin-bottom: 1.25rem; }

.gl-variation-group__label {
	display: block;
	font-weight: 700;
	margin-bottom: 0.75rem;
	font-size: 0.9375rem;
}

.gl-variation-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.625rem;
}

.gl-variation-btn {
	padding: 0.625rem 1.25rem;
	border: 2px solid var(--gl-gray-light);
	background: var(--gl-white);
	border-radius: var(--gl-radius);
	font-family: var(--gl-font);
	font-size: 0.9375rem;
	font-weight: 600;
	cursor: pointer;
	transition: all var(--gl-transition);
	min-width: 64px;
}

.gl-variation-btn:hover {
	border-color: var(--gl-gold);
	color: var(--gl-gold);
}

.gl-variation-btn.is-selected {
	background: var(--gl-gold);
	border-color: var(--gl-gold);
	color: var(--gl-white);
}

.gl-variation-select-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

/* سایز / تعداد شاخه render as a real select box */
.gl-variation-select-hidden.gl-variation-select--visible {
	position: static;
	width: 100%;
	max-width: 340px;
	height: 48px;
	padding: 0 1rem 0 2.4rem; /* RTL: text starts right, arrow sits left */
	opacity: 1;
	pointer-events: auto;
	appearance: none;
	-webkit-appearance: none;
	border: 2px solid var(--gl-gray-light);
	border-radius: var(--gl-radius);
	background: var(--gl-white) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236B6B6B' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat left 0.9rem center;
	color: var(--gl-charcoal, #1A1A1A);
	font-family: var(--gl-font);
	font-size: 0.9375rem;
	font-weight: 600;
	cursor: pointer;
	transition: border-color var(--gl-transition);
}
.gl-variation-select-hidden.gl-variation-select--visible:hover { border-color: var(--gl-gold); }
.gl-variation-select-hidden.gl-variation-select--visible:focus-visible {
	outline: none;
	border-color: var(--gl-gold);
	box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.25);
}

/* Add to cart — qty box and button share one 52px baseline */
.gl-product-summary form.cart {
	display: flex;
	align-items: stretch;
	gap: 0.75rem;
	flex-wrap: wrap;
	margin-top: 1.5rem;
}

.gl-product-summary .quantity {
	display: flex;
	align-items: stretch;
	height: 52px;
	border: 1px solid var(--gl-gray-light);
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
	box-sizing: border-box;
}

.gl-product-summary .quantity input {
	width: 64px;
	height: 100%;
	text-align: center;
	border: none;
	padding: 0 0.5rem;
	font-family: var(--gl-font);
	font-size: 1rem;
	font-weight: 700;
	-moz-appearance: textfield;
	appearance: textfield;
}
.gl-product-summary .quantity input::-webkit-outer-spin-button,
.gl-product-summary .quantity input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.gl-product-summary .single_add_to_cart_button {
	flex: 1;
	min-width: 200px;
	padding: 1rem 2rem !important;
	background: var(--gl-gold) !important;
	color: var(--gl-white) !important;
	border: none !important;
	border-radius: var(--gl-radius) !important;
	font-family: var(--gl-font) !important;
	font-size: 1rem !important;
	font-weight: 700 !important;
	cursor: pointer;
	transition: all var(--gl-transition) !important;
}

.gl-product-summary .single_add_to_cart_button:hover {
	background: #B8984F !important;
	transform: translateY(-2px);
}

.gl-product-summary .single_add_to_cart_button:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	transform: none;
}

/* Related products */
.related.products,
.upsells.products {
	margin-top: 4rem;
}

.related.products > h2,
.upsells.products > h2 {
	font-size: 1.5rem;
	font-weight: 800;
	margin-bottom: 2rem;
}

/* Cart page */
.woocommerce-cart-form {
	background: var(--gl-white);
	border-radius: var(--gl-radius-lg);
	padding: 2rem;
	box-shadow: var(--gl-shadow);
}

.woocommerce table.shop_table {
	border: none;
	border-collapse: collapse;
	width: 100%;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
	padding: 1rem;
	border-bottom: 1px solid var(--gl-gray-light);
	text-align: right;
}

.woocommerce table.shop_table th {
	font-weight: 700;
	background: var(--gl-bg);
}

.woocommerce .cart-collaterals {
	margin-top: 2rem;
}

.woocommerce .cart_totals {
	background: var(--gl-white);
	border-radius: var(--gl-radius-lg);
	padding: 2rem;
	box-shadow: var(--gl-shadow);
}

.woocommerce .wc-proceed-to-checkout .checkout-button {
	display: block;
	width: 100%;
	padding: 1rem !important;
	background: var(--gl-gold) !important;
	color: var(--gl-white) !important;
	border-radius: var(--gl-radius) !important;
	font-weight: 700 !important;
	text-align: center;
}

/* Checkout */
form.woocommerce-checkout {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 2rem;
}

.woocommerce-billing-fields,
.woocommerce-additional-fields {
	background: var(--gl-white);
	padding: 2rem;
	border-radius: var(--gl-radius-lg);
	box-shadow: var(--gl-shadow);
}

.woocommerce-checkout-review-order {
	background: var(--gl-white);
	padding: 2rem;
	border-radius: var(--gl-radius-lg);
	box-shadow: var(--gl-shadow);
	position: sticky;
	top: calc(var(--gl-header-height) + 1rem);
}

.woocommerce form .form-row label {
	font-weight: 600;
	font-size: 0.875rem;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
	padding: 0.875rem 1rem;
	border: 1px solid var(--gl-gray-light);
	border-radius: var(--gl-radius);
	font-family: var(--gl-font);
}

.woocommerce form .form-row input.input-text:focus {
	border-color: var(--gl-gold);
	box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.15);
}

#place_order {
	width: 100%;
	padding: 1rem !important;
	background: var(--gl-gold) !important;
	color: var(--gl-white) !important;
	border-radius: var(--gl-radius) !important;
	font-weight: 700 !important;
	font-size: 1rem !important;
}

/* My Account */
.woocommerce-account .woocommerce-MyAccount-navigation {
	background: var(--gl-white);
	border-radius: var(--gl-radius-lg);
	padding: 1.5rem;
	box-shadow: var(--gl-shadow);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation li a {
	display: block;
	padding: 0.75rem 1rem;
	border-radius: 8px;
	font-weight: 500;
	transition: background var(--gl-transition);
}

.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation li a:hover {
	background: var(--gl-bg);
	color: var(--gl-gold);
}

.woocommerce-account .woocommerce-MyAccount-content {
	background: var(--gl-white);
	border-radius: var(--gl-radius-lg);
	padding: 2rem;
	box-shadow: var(--gl-shadow);
}

/* Notices */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	padding: 1rem 1.25rem;
	border-radius: var(--gl-radius);
	margin-bottom: 1.5rem;
	list-style: none;
	border-inline-start: 4px solid;
}

.woocommerce-message { background: #E8F5E9; border-color: #2E7D32; }
.woocommerce-info { background: #E3F2FD; border-color: #1565C0; }
.woocommerce-error { background: #FFEBEE; border-color: #C62828; }

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before { display: none; }

/* Pagination */
.woocommerce-pagination ul {
	display: flex;
	gap: 0.5rem;
	list-style: none;
	padding: 0;
	justify-content: center;
	margin-top: 2rem;
}

.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 8px;
	border: 1px solid var(--gl-gray-light);
	font-weight: 600;
}

.woocommerce-pagination ul li span.current,
.woocommerce-pagination ul li a:hover {
	background: var(--gl-gold);
	color: var(--gl-white);
	border-color: var(--gl-gold);
}

/* Login / Register */
.woocommerce-form-login,
.woocommerce-form-register {
	background: var(--gl-white);
	padding: 2rem;
	border-radius: var(--gl-radius-lg);
	box-shadow: var(--gl-shadow);
}

.woocommerce-form-login .button,
.woocommerce-form-register .button {
	background: var(--gl-gold) !important;
	color: var(--gl-white) !important;
	padding: 0.875rem 2rem !important;
	border-radius: var(--gl-radius) !important;
	font-weight: 700 !important;
}

.gl-auth-tabs {
	display: flex;
	gap: 0.5rem;
	margin-bottom: 1.5rem;
}

.gl-auth-tab {
	padding: 0.75rem 1.25rem;
	border: 2px solid var(--gl-gray-light);
	background: var(--gl-white);
	border-radius: var(--gl-radius);
	font-family: var(--gl-font);
	font-weight: 600;
	cursor: pointer;
	transition: all var(--gl-transition);
}

.gl-auth-tab.is-active {
	border-color: var(--gl-gold);
	background: var(--gl-gold);
	color: var(--gl-white);
}

@media (max-width: 991px) {
	.gl-product-single__grid { grid-template-columns: 1fr; gap: 2rem; }
	form.woocommerce-checkout { grid-template-columns: 1fr; }
	.woocommerce-checkout-review-order { position: static; }
}

@media (max-width: 576px) {
	.woocommerce table.shop_table { font-size: 0.8125rem; }
	.gl-product-summary form.cart { flex-direction: column; align-items: stretch; }
}

/* ==========================================================================
   Audit fixes
   ========================================================================== */
/* Sale badge: WooCommerce's core + RTL styles set both left/right offsets,
   which stretched the badge to full width. Pin it to one edge and let it size
   to its content. */
.woocommerce span.onsale,
.onsale {
	inset-inline-end: 0.75rem;
	inset-inline-start: auto;
	left: auto;
	right: auto;
	width: max-content;
	min-width: 0;
	min-height: 0;
	margin: 0;
	line-height: 1.4;
	color: #1a1814;
	background: var(--gl-gold);
	box-shadow: 0 6px 16px -8px rgba(26, 24, 20, 0.5);
}

[dir="rtl"] .woocommerce span.onsale,
[dir="rtl"] .onsale {
	right: auto;
	left: 0.75rem;
}

.gl-product-gallery {
	position: relative;
}

.gl-product-summary .price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.6rem;
	color: var(--gl-charcoal);
}

.gl-product-summary .price del {
	color: var(--gl-gray);
	font-weight: 500;
	font-size: 0.72em;
	opacity: 0.85;
}

.gl-product-summary .price ins {
	text-decoration: none;
	color: var(--gl-gold);
}

.gl-product-summary form.cart {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 0.75rem;
}

.gl-product-summary form.cart .quantity input.qty {
	height: 100%;
	min-height: 0;
	width: 64px;
	text-align: center;
	border-radius: 0;
	border: none;
	font-size: 1rem;
	font-weight: 700;
}

.gl-product-summary form.cart .single_add_to_cart_button {
	flex: 1 1 220px;
	flex-basis: auto;
	min-height: 52px;
	height: 52px;
	border-radius: 12px;
	font-weight: 700;
	background: linear-gradient(135deg, #cbae68, #b6944a);
	color: #1a1814;
	border: 0;
	box-shadow: 0 10px 24px -12px rgba(171, 141, 74, 0.7);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gl-product-summary form.cart .single_add_to_cart_button:hover,
.gl-product-summary form.cart .single_add_to_cart_button:focus-visible {
	transform: translateY(-1px);
	box-shadow: 0 14px 28px -12px rgba(171, 141, 74, 0.85);
	outline: none;
}

.gl-product-summary form.cart .single_add_to_cart_button:focus-visible,
.products .product .button:focus-visible,
.gl-btn:focus-visible {
	outline: 2px solid var(--gl-gold);
	outline-offset: 3px;
}

@media (max-width: 767px) {
	.gl-product-single__grid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
		padding: 1rem 0 2rem;
	}
}

@media (max-width: 767px) {
	.gl-product-summary form.cart {
		flex-direction: row;
		align-items: center;
	}

	.gl-product-summary form.cart .single_add_to_cart_button {
		flex: 1 1 auto;
	}
}

/* Attribute filter groups */
.gl-filter-group--attr {
	margin: 0 0 1.1rem;
	padding: 0;
	border: 0;
	min-width: 0;
}
.gl-filter-group--attr legend {
	margin-bottom: 0.5rem;
	font-weight: 700;
	font-size: 0.9rem;
	color: var(--gl-charcoal);
}
.gl-filter-options {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	max-height: 220px;
	overflow-y: auto;
	scrollbar-width: thin;
	padding-inline-end: 0.25rem;
}
.gl-filter-option {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.35rem 0.4rem;
	border-radius: 8px;
	font-size: 0.86rem;
	cursor: pointer;
	transition: background 0.15s ease;
}
.gl-filter-option:hover { background: rgba(201, 169, 98, 0.10); }
.gl-filter-option input { accent-color: #b8933f; width: 1rem; height: 1rem; margin: 0; }
.gl-filter-option span { flex: 1; }
.gl-filter-option small { color: var(--gl-gray); font-size: 0.72rem; }
.gl-filter-option:has(input:checked) { background: rgba(201, 169, 98, 0.16); font-weight: 600; }

/* WooCommerce's variations table already carries our label inside the cell */
.variations th.label { display: none; }
.variations td.value { display: block; padding: 0; }
.variations tr { display: block; margin-bottom: 0.9rem; }
.reset_variations { display: inline-block; margin-top: 0.25rem; font-size: 0.8rem; color: var(--gl-gray); }
.gl-size-guide p { margin: 0 0 0.6rem; line-height: 1.9; }
.gl-product-meta__item code { background: transparent; padding: 0; font-family: inherit; letter-spacing: 0.02em; }

/* ==========================================================================
   Product tabs — «طاقچه»: labels rest on a lit mantel shelf; a warm cone of
   light (the chandelier) falls on the active tab from above, with a small
   glowing pendant dot and a light pool on the shelf. No dark bar, no pills.
   ========================================================================== */
.woocommerce-tabs {
	margin-top: clamp(2.25rem, 5vw, 3.5rem);
}

.woocommerce-tabs ul.tabs {
	position: relative;
	display: flex;
	flex-wrap: nowrap;
	align-items: flex-end;
	gap: clamp(0.75rem, 2vw, 1.75rem);
	margin: 0 0 1.5rem;
	padding: 34px 1rem 0; /* headroom for the light cone */
	list-style: none;
	border: 0;
	background: none;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
.woocommerce-tabs ul.tabs::-webkit-scrollbar { display: none; }
.woocommerce-tabs ul.tabs::before { display: none; }
/* WooCommerce core ships `.woocommerce div.product .woocommerce-tabs ul.tabs
   { overflow: hidden }` at higher specificity, which silently disabled the
   sideways scroll above. Match it and keep the row scrollable. */
.woocommerce div.product .woocommerce-tabs ul.tabs {
	overflow-x: auto;
	overscroll-behavior-x: contain;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a { white-space: nowrap; }

/* The shelf: a light wooden-cream mantel with a soft drop shadow */
.woocommerce-tabs ul.tabs::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	height: 9px;
	border-radius: 3px;
	background: linear-gradient(180deg, #FDFBF6 0%, #EFE9DB 55%, #E3DBC8 100%);
	border: 1px solid rgba(26, 24, 20, 0.09);
	box-shadow: 0 9px 16px -8px rgba(26, 24, 20, 0.3);
	display: block;
}

.woocommerce-tabs ul.tabs li {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	flex: 0 0 auto;
}
.woocommerce-tabs ul.tabs li::before,
.woocommerce-tabs ul.tabs li::after { display: none; }

.woocommerce-tabs ul.tabs li a {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	min-height: 46px;
	padding: 0 0.55rem 9px; /* sits on the shelf */
	margin: 0;
	border: 0;
	background: none;
	color: #97917f;
	font-size: 0.92rem;
	font-weight: 600;
	white-space: nowrap;
	transition: color 0.3s ease;
}

/* Light cone from above (the chandelier beam) */
.woocommerce-tabs ul.tabs li a::before {
	content: "";
	position: absolute;
	top: -34px;
	bottom: 0;
	inset-inline: -26%;
	background: radial-gradient(58% 105% at 50% 0%, rgba(238, 209, 141, 0.6) 0%, rgba(238, 209, 141, 0.22) 45%, rgba(238, 209, 141, 0) 78%);
	opacity: 0;
	transition: opacity 0.45s ease;
	pointer-events: none;
}

/* The pendant: glowing bulb hanging above + light pool it casts on the shelf */
.woocommerce-tabs ul.tabs li a::after {
	content: "";
	position: absolute;
	top: -26px;
	inset-inline-start: 50%;
	width: 8px;
	height: 8px;
	margin-inline-start: -4px;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 30%, #FFF3D6, #E8C97E 60%, #D2A94F);
	box-shadow:
		0 0 10px 3px rgba(238, 209, 141, 0.85),
		0 0 26px 8px rgba(238, 209, 141, 0.35),
		0 34px 14px -4px rgba(216, 181, 106, 0.4); /* pool on the shelf */
	opacity: 0;
	transform: translateY(-6px);
	transition: opacity 0.45s ease, transform 0.45s ease;
	pointer-events: none;
}

.woocommerce-tabs ul.tabs li a:hover,
.woocommerce-tabs ul.tabs li a:focus-visible {
	color: #4d483e;
	outline: none;
}
.woocommerce-tabs ul.tabs li a:hover::before { opacity: 0.35; }

/* Active: the light falls on it */
.woocommerce-tabs ul.tabs li.active a {
	color: #2c2820;
	font-weight: 750;
	text-shadow: 0 0 14px rgba(238, 209, 141, 0.55);
}
.woocommerce-tabs ul.tabs li.active a::before { opacity: 1; }
.woocommerce-tabs ul.tabs li.active a::after { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
	.woocommerce-tabs ul.tabs li a,
	.woocommerce-tabs ul.tabs li a::before,
	.woocommerce-tabs ul.tabs li a::after { transition: none; }
}

/* Panel: quiet surface under the shelf */
.woocommerce-Tabs-panel,
.woocommerce-tabs .panel {
	padding: clamp(1.5rem, 3.5vw, 2.5rem) !important;
	background: #fff;
	border: 1px solid rgba(26, 24, 20, 0.07);
	border-radius: 18px;
	box-shadow: 0 16px 34px -30px rgba(26, 24, 20, 0.45);
	max-width: 100%;
	overflow-wrap: anywhere;
}
.woocommerce-Tabs-panel > :first-child { margin-top: 0 !important; }
.woocommerce-Tabs-panel > :last-child { margin-bottom: 0 !important; }

/* Prose inside panels */
.woocommerce-Tabs-panel h2,
.woocommerce-Tabs-panel h3 {
	margin: 1.6rem 0 0.6rem;
	color: #1a1814;
	font-weight: 700;
	line-height: 1.4;
}
.woocommerce-Tabs-panel h2 { font-size: 1.2rem; }
.woocommerce-Tabs-panel h3 { font-size: 1.05rem; }
.woocommerce-Tabs-panel h2:first-child,
.woocommerce-Tabs-panel h3:first-child,
.woocommerce-Tabs-panel > *:first-child { margin-top: 0; }

.woocommerce-Tabs-panel p,
.woocommerce-Tabs-panel li {
	color: #3d3a33;
	font-size: 0.98rem;
	line-height: 1.95;
}
.woocommerce-Tabs-panel p { margin: 0 0 1rem; }
.woocommerce-Tabs-panel p:last-child { margin-bottom: 0; }
.woocommerce-Tabs-panel ul,
.woocommerce-Tabs-panel ol { margin: 0 0 1rem; padding-inline-start: 1.25rem; }
.woocommerce-Tabs-panel li { margin-bottom: 0.3rem; }
.woocommerce-Tabs-panel strong { color: #1a1814; font-weight: 700; }
.woocommerce-Tabs-panel a { color: #8a6b28; text-decoration: underline; text-decoration-color: rgba(138, 107, 40, 0.35); text-underline-offset: 3px; }
.woocommerce-Tabs-panel a:hover { text-decoration-color: currentColor; }
.woocommerce-Tabs-panel img { border-radius: 12px; margin: 0.5rem 0 1rem; }

/* Additional information (attributes) table */
.woocommerce-Tabs-panel .woocommerce-product-attributes,
.woocommerce table.woocommerce-product-attributes {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid rgba(26, 24, 20, 0.08);
	border-radius: 14px;
	overflow: hidden;
	margin: 0;
}
.woocommerce table.woocommerce-product-attributes th,
.woocommerce table.woocommerce-product-attributes td {
	padding: 0.85rem 1.1rem;
	border: 0;
	border-bottom: 1px solid rgba(26, 24, 20, 0.07);
	font-size: 0.93rem;
	line-height: 1.7;
	background: #fff;
	text-align: start;
	vertical-align: top;
}
.woocommerce table.woocommerce-product-attributes tr:last-child th,
.woocommerce table.woocommerce-product-attributes tr:last-child td { border-bottom: 0; }
.woocommerce table.woocommerce-product-attributes th {
	width: 32%;
	background: #faf8f3;
	color: #1a1814;
	font-weight: 700;
	font-style: normal;
}
.woocommerce table.woocommerce-product-attributes td { color: #3d3a33; }
.woocommerce table.woocommerce-product-attributes td,
.woocommerce table.woocommerce-product-attributes td p { font-style: normal; }
.woocommerce table.woocommerce-product-attributes td p { margin: 0; }
.woocommerce table.woocommerce-product-attributes tr:nth-child(even) td { background: #fff; }

/* Shipping / FAQ / size guide lists */
.gl-shipping-info ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.gl-shipping-info li { position: relative; padding-inline-start: 1.5rem; }
.gl-shipping-info li::before { content: ''; position: absolute; inset-inline-start: 0; top: 0.75rem; width: 8px; height: 8px; border-radius: 50%; background: var(--gl-gold); }
.gl-size-guide p { margin: 0 0 0.75rem; }

@media (max-width: 767px) {
	.woocommerce-tabs ul.tabs { gap: 0.9rem; padding: 30px 0.75rem 0; }
	.woocommerce-tabs ul.tabs li a { min-height: 42px; padding: 0 0.4rem 8px; font-size: 0.85rem; }
	.woocommerce-tabs ul.tabs li a::before { top: -30px; }
	.woocommerce-tabs ul.tabs li a::after { top: -23px; }
	.woocommerce-Tabs-panel, .woocommerce-tabs .panel { padding: 1.25rem 1rem !important; border-radius: 15px; }
	.woocommerce-Tabs-panel h2 { font-size: 1.08rem; }
	.woocommerce-Tabs-panel p, .woocommerce-Tabs-panel li { font-size: 0.93rem; line-height: 1.85; }
	.woocommerce table.woocommerce-product-attributes th { width: 40%; }
}
/* Keep number + «تومان» together and read naturally in RTL */
.gl-price, .woocommerce-Price-amount { white-space: nowrap; unicode-bidi: isolate; }
.woocommerce-Price-currencySymbol { font-weight: 500; font-size: 0.82em; }

/* ==========================================================================
   Product page enrichment
   ========================================================================== */
.gl-product-single__grid {
	grid-template-columns: minmax(0, 2fr) minmax(340px, 1fr);
	gap: clamp(1.25rem, 3vw, 2.5rem);
	align-items: start;
	padding-top: 1rem;
}

/* The gallery owns the visual weight of the page.
   Layout: vertical thumbnail rail beside the featured image (RTL: the rail
   sits on the right). Long lists scroll/swipe with snap; inactive thumbs are
   dimmed + softly blurred, the active one is crisp with a gold ring. */
.gl-product-gallery { position: sticky; top: calc(var(--gl-header-height, 72px) + 1.25rem); }

.gl-product-gallery .woocommerce-product-gallery {
	display: grid !important;
	grid-template-columns: 80px minmax(0, 1fr); /* thumb rail fixed at 80px */
	gap: 0.75rem;
	width: 100% !important;
	float: none;
	align-items: start;
	opacity: 1 !important;
}
/* Single-image products: no rail, full-width stage */
.gl-product-gallery .woocommerce-product-gallery:not(:has(.flex-control-thumbs)) {
	grid-template-columns: minmax(0, 1fr);
}

.gl-product-gallery .woocommerce-product-gallery__wrapper,
.gl-product-gallery .flex-viewport {
	grid-column: 2;
	grid-row: 1;
	margin: 0;
	min-width: 0;
}
.gl-product-gallery .woocommerce-product-gallery:not(:has(.flex-control-thumbs)) .woocommerce-product-gallery__wrapper,
.gl-product-gallery .woocommerce-product-gallery:not(:has(.flex-control-thumbs)) .flex-viewport {
	grid-column: 1;
}

.gl-product-gallery .woocommerce-product-gallery__image {
	background: #fff;
	border-radius: var(--gl-radius-lg);
	overflow: hidden;
	border: 1px solid rgba(26, 24, 20, 0.06);
}
.gl-product-gallery .woocommerce-product-gallery__image a { display: block; }
.gl-product-gallery .woocommerce-product-gallery__image img {
	display: block;
	width: 100% !important;
	height: auto;
	max-height: 64vh;
	aspect-ratio: auto; /* frame hugs the photo's natural ratio — no oversized box */
	object-fit: contain; /* never crop the sides of the shot */
	padding: 0;
	background: #fff;
}
.gl-product-gallery .flex-viewport { height: auto !important; }
.gl-product-gallery .woocommerce-product-gallery__wrapper { width: 100%; }

/* Thumbnail rail */
.gl-product-gallery .flex-control-thumbs {
	grid-column: 1;
	grid-row: 1;
	align-self: stretch;
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	gap: 0.6rem;
	margin: 0;
	padding: 2px;
	max-height: min(560px, 64vh); /* never taller than the stage cap */
	overflow-y: auto;
	overscroll-behavior: contain;
	scroll-snap-type: y proximity;
	scrollbar-width: none;
}
.gl-product-gallery .flex-control-thumbs::-webkit-scrollbar { display: none; }
/* Soft fade hinting that the rail scrolls */
.gl-product-gallery .flex-control-thumbs {
	mask-image: linear-gradient(180deg, #000 calc(100% - 34px), transparent);
	-webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 34px), transparent);
}

/* WC core ships `.woocommerce div.product div.images .flex-control-thumbs li
   { width: 25%; float: right; }` which outranked the theme selector — the
   thumbs silently stayed at 25%. Matched at core specificity + theme class. */
.woocommerce div.product .gl-product-gallery div.images .flex-control-thumbs li,
.woocommerce div.product div.images .flex-control-thumbs li,
.gl-product-gallery .flex-control-thumbs li {
	flex: 0 0 auto;
	float: none;
	scroll-snap-align: start;
	margin: 0;
	padding: 0;
	list-style: none;
	width: 80%;
}

.gl-product-gallery .flex-control-thumbs li img {
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 14px;
	border: 2px solid transparent;
	background: #fff;
	cursor: pointer;
	filter: blur(0.6px) saturate(0.85);
	opacity: 0.6;
	transition: filter 0.22s ease, opacity 0.22s ease, border-color 0.22s ease;
}

.gl-product-gallery .flex-control-thumbs li img:hover {
	filter: none;
	opacity: 0.9;
}

.gl-product-gallery .flex-control-thumbs li img.flex-active {
	filter: none;
	opacity: 1;
	border-color: var(--gl-gold, #C9A962);
	box-shadow: 0 4px 12px -6px rgba(201, 169, 98, 0.6);
}

@media (prefers-reduced-motion: reduce) {
	.gl-product-gallery .flex-control-thumbs li img { transition: none; }
}

@media (max-width: 1023px) {
	.gl-product-gallery { position: static; }
}

/* Mobile: rail becomes a horizontal swipe strip under the image */
@media (max-width: 767px) {
	.gl-product-gallery .woocommerce-product-gallery {
		grid-template-columns: minmax(0, 1fr);
		gap: 0.7rem;
	}
	.gl-product-gallery .woocommerce-product-gallery__wrapper,
	.gl-product-gallery .flex-viewport {
		grid-column: 1;
	}
	.gl-product-gallery .flex-control-thumbs {
		grid-column: 1;
		grid-row: 2;
		flex-direction: row;
		max-height: none;
		overflow-y: visible;
		overflow-x: auto;
		scroll-snap-type: x proximity;
		mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
		-webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
	}
	.woocommerce div.product div.images .flex-control-thumbs li,
	.gl-product-gallery .flex-control-thumbs li { width: 96px; float: none; }

}

.gl-product-summary .product_title { font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.3; margin-bottom: 0.6rem; }
.gl-product-summary .price { font-size: 1.35rem; margin-bottom: 1rem; }
.gl-product-summary .gl-branch-unit-price {
	margin: -0.5rem 0 1rem;
	font-size: 0.85rem;
	color: #6e6b63;
}
.gl-product-summary .gl-branch-unit-price strong { color: #8a6b28; font-weight: 750; }
.gl-product-summary .woocommerce-product-details__short-description p { color: #5c5850; font-size: 0.95rem; line-height: 1.85; margin: 0 0 1.1rem; }

/* Highlights */
.gl-highlights {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.5rem;
	margin: 0 0 1.25rem;
	padding: 0;
	list-style: none;
}
.gl-highlights__item {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.6rem 0.75rem;
	background: #faf8f3;
	border: 1px solid rgba(26, 24, 20, 0.06);
	border-radius: 12px;
	min-width: 0;
}
.gl-highlights__icon {
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	background: #fff;
	color: #8a6b28;
	border: 1px solid rgba(201, 169, 98, 0.35);
}
.gl-highlights__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.gl-highlights__text small { color: #8a857b; font-size: 0.7rem; }
.gl-highlights__text strong { font-size: 0.85rem; color: #1a1814; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Trust strip */
.gl-product-trust {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1.1rem;
	margin: 1rem 0 0;
	padding: 0;
	list-style: none;
}
.gl-product-trust li { display: inline-flex; align-items: center; gap: 0.4rem; color: #5c5850; font-size: 0.8rem; font-weight: 600; }
.gl-product-trust__icon { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(201, 169, 98, 0.16); color: #7a5f22; }

/* Consult card */
.gl-consult {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	margin-top: 1.25rem;
	padding: 1rem 1.15rem;
	background: linear-gradient(135deg, #1f1d19, #2a261f);
	color: #f7f4ee;
	border-radius: 16px;
}
.gl-consult__text { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.gl-consult__text strong { font-size: 0.92rem; }
.gl-consult__text span { font-size: 0.78rem; color: rgba(247, 244, 238, 0.7); }
.gl-consult__actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.gl-consult__btn {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	min-height: 38px;
	padding: 0 0.9rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.16);
	color: #fff !important;
	font-size: 0.84rem;
	font-weight: 700;
	transition: background 0.2s ease;
}
.gl-consult__btn:hover { background: rgba(201, 169, 98, 0.28); }
.gl-consult__btn--wa { background: #25d366; border-color: #25d366; color: #0b2e1a !important; }
.gl-consult__btn--wa:hover { background: #3ee07a; }

/* Meta + actions spacing */
.gl-product-meta { margin: 1.1rem 0 0.75rem; padding: 0.85rem 0; }
.gl-product-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.gl-product-actions .gl-btn { min-height: 40px; font-size: 0.85rem; }

/* Gallery */
.gl-product-gallery .woocommerce-product-gallery__wrapper { border-radius: 20px; overflow: hidden; background: #fff; }
.gl-product-gallery .woocommerce-product-gallery__image img { border-radius: 0; }
.gl-product-gallery .flex-control-thumbs { gap: 0.6rem; margin-top: 0.75rem; }
.gl-product-gallery .flex-control-thumbs li { width: 72px; }
.gl-product-gallery .flex-control-thumbs img { border-radius: 10px; border: 2px solid transparent; opacity: 0.6; transition: opacity 0.2s ease, border-color 0.2s ease; cursor: pointer; }
.gl-product-gallery .flex-control-thumbs img.flex-active,
.gl-product-gallery .flex-control-thumbs img:hover { opacity: 1; border-color: var(--gl-gold); }
.gl-product-gallery .woocommerce-product-gallery__trigger { top: 0.9rem; inset-inline-start: 0.9rem; right: auto; left: auto; border-radius: 50%; background: rgba(255, 255, 255, 0.9); }

/* Related */
.related.products > h2, .upsells.products > h2 { font-size: 1.35rem; font-weight: 750; margin: 0 0 1.25rem; }
.related.products, .upsells.products { margin-top: clamp(2.5rem, 5vw, 4rem); }

@media (max-width: 767px) {
	.gl-highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.4rem; }
	.gl-highlights__item { padding: 0.5rem 0.6rem; }
	.gl-highlights__icon { width: 30px; height: 30px; }
	.gl-consult { flex-direction: column; align-items: stretch; }
	.gl-consult__actions .gl-consult__btn { flex: 1; justify-content: center; }
	.gl-product-gallery .flex-control-thumbs li { width: 60px; }
}
@media (max-width: 767px) {
	.gl-product-single__grid { grid-template-columns: 1fr; gap: 1.25rem; padding-top: 0.5rem; }
	.gl-product-summary .product_title { font-size: 1.4rem; }
	.gl-highlights__text strong { white-space: normal; }
}

/* ==========================================================================
   Classic cart & checkout — Golden Light styling
   ========================================================================== */
.woocommerce-cart .gl-page-title,
.woocommerce-checkout .gl-page-title { margin-bottom: 1.5rem; }

/* Cart table */
.woocommerce-cart-form { padding: 0.5rem 1.25rem; border: 1px solid rgba(26, 24, 20, 0.07); box-shadow: 0 12px 30px -24px rgba(26, 24, 20, 0.35); }
.woocommerce table.shop_table th { background: transparent; color: #8a857b; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; }
.woocommerce table.shop_table td { vertical-align: middle; font-size: 0.93rem; }
.woocommerce table.shop_table td.product-thumbnail img { width: 64px; height: 80px; object-fit: cover; border-radius: 10px; }
.woocommerce table.shop_table td.product-name a { font-weight: 700; color: #1a1814; }
.woocommerce table.shop_table td.product-name .variation { margin: 0.25rem 0 0; font-size: 0.8rem; color: #6e6b63; display: flex; flex-wrap: wrap; gap: 0.15rem 0.6rem; }
.woocommerce table.shop_table td.product-name .variation dt, .woocommerce table.shop_table td.product-name .variation dd { margin: 0; display: inline; }
.woocommerce table.shop_table td.product-name .variation dd p { display: inline; }
.woocommerce table.shop_table td.product-remove a.remove { width: 30px; height: 30px; line-height: 28px; border-radius: 50%; color: #b8362c !important; background: rgba(184, 54, 44, 0.08); font-size: 1.1rem; }
.woocommerce table.shop_table td.product-remove a.remove:hover { background: #b8362c; color: #fff !important; }
.woocommerce table.shop_table td.actions { padding-top: 1.25rem; }
.woocommerce table.shop_table td.actions .coupon { display: inline-flex; gap: 0.5rem; }
.woocommerce table.shop_table td.actions .coupon input.input-text { width: 180px !important; min-height: 42px; padding: 0.5rem 0.9rem; border: 1px solid #d5cfc1; border-radius: 10px; }
.woocommerce table.shop_table td.actions .button,
.woocommerce .cart .button, .woocommerce .cart input.button { min-height: 42px; padding: 0 1rem; border-radius: 10px; background: #fff; border: 1px solid #d5cfc1; color: #1a1814; font-weight: 600; }
.woocommerce table.shop_table td.actions .button:hover { border-color: var(--gl-gold); background: rgba(201, 169, 98, 0.12); }
.woocommerce .quantity .qty { min-height: 42px; width: 4.5rem; text-align: center; border: 1px solid #d5cfc1; border-radius: 10px; }

.woocommerce .cart-collaterals { display: flex; justify-content: flex-start; margin-top: 1.5rem; }
.woocommerce .cart_totals { width: min(100%, 420px); padding: 1.5rem; border: 1px solid rgba(26, 24, 20, 0.07); box-shadow: 0 12px 30px -24px rgba(26, 24, 20, 0.35); }
.woocommerce .cart_totals h2 { font-size: 1.1rem; font-weight: 750; margin: 0 0 1rem; }
.woocommerce .cart_totals table.shop_table th { width: 40%; color: #5c5850; font-size: 0.9rem; text-transform: none; letter-spacing: 0; }
.woocommerce .cart_totals .order-total td { font-size: 1.15rem; font-weight: 750; color: #1a1814; }
.woocommerce .wc-proceed-to-checkout { padding: 1rem 0 0; }
.woocommerce .wc-proceed-to-checkout .checkout-button,
#place_order {
	background: linear-gradient(135deg, #cbae68, #b6944a) !important;
	color: #1a1814 !important;
	border: 0 !important;
	border-radius: 12px !important;
	min-height: 50px;
	font-size: 1rem !important;
	box-shadow: 0 10px 24px -12px rgba(171, 141, 74, 0.7);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.woocommerce .wc-proceed-to-checkout .checkout-button:hover, #place_order:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -12px rgba(171, 141, 74, 0.85); }
.woocommerce .cart-empty { text-align: center; padding: 3rem 0 1rem; font-size: 1.1rem; color: #5c5850; }
.woocommerce .return-to-shop { text-align: center; }
.woocommerce .return-to-shop .button { min-height: 46px; padding: 0 1.5rem; border-radius: 12px; background: #1a1814 !important; color: #fff !important; }

/* Checkout layout */
.woocommerce-checkout .woocommerce-notices-wrapper { grid-column: 1 / -1; }
form.woocommerce-checkout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.85fr); gap: 1.5rem; align-items: start; }
form.woocommerce-checkout #customer_details { display: contents; }
form.woocommerce-checkout #customer_details > .col-1,
form.woocommerce-checkout #customer_details > .col-2 { grid-column: 1; float: none; width: 100%; }
form.woocommerce-checkout #order_review_heading { grid-column: 2; grid-row: 1; margin: 0; font-size: 1.1rem; font-weight: 750; }
form.woocommerce-checkout #order_review { grid-column: 2; grid-row: 2 / span 6; }
form.woocommerce-checkout .woocommerce-billing-fields h3,
form.woocommerce-checkout .woocommerce-shipping-fields h3,
form.woocommerce-checkout .woocommerce-additional-fields h3 { margin: 0 0 1rem; font-size: 1.1rem; font-weight: 750; }
.woocommerce-billing-fields, .woocommerce-shipping-fields, .woocommerce-additional-fields { padding: 1.5rem; border: 1px solid rgba(26, 24, 20, 0.07); box-shadow: 0 12px 30px -24px rgba(26, 24, 20, 0.35); }
.woocommerce-shipping-fields, .woocommerce-additional-fields { margin-top: 1.25rem; }
.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.woocommerce form .form-row { margin: 0 0 1rem; padding: 0; float: none; width: 100%; }
.woocommerce form .form-row-wide { grid-column: 1 / -1; }
.woocommerce form .form-row.gl-hidden-country { display: none; }
.woocommerce form .form-row label { display: block; margin-bottom: 0.35rem; color: #1a1814; font-weight: 600; font-size: 0.86rem; }
.woocommerce form .form-row label .required { color: #b8362c; text-decoration: none; }
.woocommerce form .form-row .optional { color: #8a857b; font-weight: 500; font-size: 0.78rem; }
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce form .form-row .select2-container .select2-selection--single { min-height: 46px; padding: 0.6rem 0.9rem; border: 1px solid #d5cfc1; border-radius: 10px; background: #fff; font-size: 0.95rem; box-shadow: none; }
.woocommerce form .form-row .select2-container .select2-selection--single .select2-selection__rendered { line-height: 44px; padding-inline: 0; color: #1a1814; }
.woocommerce form .form-row .select2-container .select2-selection--single .select2-selection__arrow { height: 44px; }
.woocommerce form .form-row input.input-text:focus, .woocommerce form .form-row textarea:focus, .woocommerce form .form-row select:focus { border-color: var(--gl-gold); box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.2); outline: 0; }
.woocommerce form .form-row.woocommerce-invalid input.input-text { border-color: #b8362c; }
.woocommerce form .form-row.woocommerce-validated input.input-text { border-color: #2f7d4f; }
.woocommerce form .form-row textarea { min-height: 96px; }
.woocommerce-checkout .woocommerce-form-login-toggle .woocommerce-info,
.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info { grid-column: 1; }
.woocommerce-info, .woocommerce-message, .woocommerce-error { border-radius: 12px; border-top: 0 !important; border-inline-start: 4px solid #2f5f9e; background: #fff; box-shadow: 0 1px 2px rgba(31, 29, 25, 0.06); color: #1a1814; padding: 0.9rem 1rem 0.9rem 1rem !important; }
.woocommerce-message { border-inline-start-color: #2f7d4f; }
.woocommerce-error { border-inline-start-color: #b8362c; }
.woocommerce-info::before, .woocommerce-message::before, .woocommerce-error::before { display: none; }
.woocommerce-info a, .woocommerce-message a { color: #8a6b28; font-weight: 600; }
.woocommerce-checkout .woocommerce-form-login, .woocommerce-checkout .checkout_coupon { grid-column: 1; padding: 1.25rem; border: 1px solid rgba(26, 24, 20, 0.07); border-radius: 16px; background: #fff; }
.woocommerce-checkout .checkout_coupon { display: flex; gap: 0.5rem; align-items: flex-end; }
.woocommerce-checkout .checkout_coupon .form-row { margin: 0; }
.woocommerce-checkout .checkout_coupon .button { min-height: 46px; border-radius: 10px; }

/* Order review */
#order_review { padding: 1.5rem; background: #fff; border: 1px solid rgba(26, 24, 20, 0.07); border-radius: 20px; box-shadow: 0 12px 30px -24px rgba(26, 24, 20, 0.35); position: sticky; top: calc(var(--gl-header-pill-h, 64px) + 1.5rem); }
#order_review table.shop_table thead { display: none; }
#order_review table.shop_table td, #order_review table.shop_table th { padding: 0.75rem 0; font-size: 0.9rem; border-bottom: 1px solid rgba(26, 24, 20, 0.07); }
#order_review table.shop_table .product-name { color: #1a1814; }
#order_review table.shop_table .product-quantity { color: #8a857b; font-weight: 500; }
#order_review table.shop_table tfoot th { color: #5c5850; font-weight: 600; width: 45%; text-transform: none; letter-spacing: 0; font-size: 0.9rem; }
#order_review table.shop_table .order-total td, #order_review table.shop_table .order-total th { font-size: 1.1rem; font-weight: 750; color: #1a1814; border-bottom: 0; }
#order_review ul#shipping_method { list-style: none; margin: 0; padding: 0; }
#order_review ul#shipping_method li { display: flex; align-items: center; gap: 0.5rem; margin: 0.25rem 0; }
#order_review ul#shipping_method label { font-size: 0.9rem; }
#payment { background: #faf8f3; border-radius: 14px; margin-top: 1rem; }
#payment ul.payment_methods { padding: 1rem; border-bottom: 1px solid rgba(26, 24, 20, 0.07); }
#payment ul.payment_methods li { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; padding: 0.4rem 0; }
#payment ul.payment_methods li label { font-weight: 600; font-size: 0.92rem; }
#payment ul.payment_methods li img { max-height: 24px; }
#payment div.payment_box { width: 100%; background: #fff; border-radius: 10px; font-size: 0.85rem; margin: 0.4rem 0 0; padding: 0.75rem 1rem; }
#payment div.payment_box::before { display: none; }
#payment .place-order { padding: 1rem; }
#payment .woocommerce-terms-and-conditions-wrapper { margin-bottom: 0.75rem; font-size: 0.85rem; color: #5c5850; }
.woocommerce-checkout .woocommerce-privacy-policy-text p { font-size: 0.8rem; color: #8a857b; }
#place_order { width: 100%; }

/* Thank-you */
.woocommerce-order .woocommerce-thankyou-order-received { padding: 1.25rem 1.5rem; border-radius: 16px; background: #e8f3ec; color: #2f7d4f; font-weight: 700; font-size: 1.05rem; }
.woocommerce-order ul.order_details { display: flex; flex-wrap: wrap; gap: 1rem; list-style: none; padding: 1rem 0; margin: 1rem 0; }
.woocommerce-order ul.order_details li { border: 0; padding: 0.75rem 1rem; background: #fff; border-radius: 12px; font-size: 0.8rem; color: #8a857b; }
.woocommerce-order ul.order_details li strong { display: block; color: #1a1814; font-size: 1rem; }

@media (max-width: 991px) {
	form.woocommerce-checkout { grid-template-columns: 1fr; }
	form.woocommerce-checkout #order_review_heading, form.woocommerce-checkout #order_review { grid-column: 1; grid-row: auto; }
	#order_review { position: static; }
}
@media (max-width: 767px) {
	.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper { grid-template-columns: 1fr; }
	.woocommerce form .form-row-half, .woocommerce form .form-row-first, .woocommerce form .form-row-last { grid-column: 1 / -1; }
	.woocommerce-cart-form { padding: 0.25rem 0.75rem; }
}
/* Stacked-table styles run through 991px: WooCommerce's smallscreen sheet is
   raised to the same breakpoint (woocommerce_style_smallscreen_breakpoint),
   so tablets no longer fall in a gap where the wide table overflowed. */
@media (max-width: 991px) {
	.woocommerce table.shop_table_responsive tr td { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; text-align: end; }
	.woocommerce table.shop_table_responsive tr td::before { font-weight: 600; color: #8a857b; float: none; }
	.woocommerce table.shop_table_responsive tr td.product-remove { justify-content: flex-start; }
	.woocommerce table.shop_table_responsive tr td.product-thumbnail { display: none; }
	.woocommerce table.shop_table td.actions .coupon { display: flex; flex-wrap: wrap; gap: 0.5rem; width: 100%; }
	.woocommerce table.shop_table td.actions .coupon input.input-text { flex: 1; min-width: 0; width: auto !important; }
	.woocommerce .cart_totals { width: 100%; float: none; }
	.woocommerce form .form-row input.input-text,
	.woocommerce form .form-row select,
	.woocommerce form .form-row .select2-container { max-width: 100%; }
}

/* Added-to-cart popup */
.gl-cart-popup { position: fixed; inset: 0; z-index: 1300; display: grid; place-items: center; padding: 1rem; background: rgba(26, 24, 20, 0.45); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; transition: opacity 0.25s ease; }
.gl-cart-popup.is-open { opacity: 1; }
.gl-cart-popup[hidden] { display: none; }
.gl-cart-popup__card { position: relative; width: min(100%, 380px); padding: 1.5rem 1.25rem 1.15rem; background: #fff; border-radius: 22px; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.5); text-align: center; transform: translateY(16px) scale(0.98); transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2); }
.gl-cart-popup.is-open .gl-cart-popup__card { transform: none; }
.gl-cart-popup__close { position: absolute; top: 0.6rem; inset-inline-start: 0.6rem; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #f3efe6; color: #5c5850; font-size: 1.3rem; line-height: 1; cursor: pointer; }
.gl-cart-popup__check { width: 56px; height: 56px; margin: 0 auto 0.6rem; }
.gl-cart-popup__check svg { width: 100%; height: 100%; }
.gl-cart-popup__ring { fill: #e8f3ec; stroke: #2f7d4f; stroke-width: 2; stroke-dasharray: 160; stroke-dashoffset: 160; animation: gl-ring 0.6s ease forwards; }
.gl-cart-popup__tick { fill: none; stroke: #2f7d4f; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: gl-tick 0.4s 0.45s ease forwards; }
@keyframes gl-ring { to { stroke-dashoffset: 0; } }
@keyframes gl-tick { to { stroke-dashoffset: 0; } }
.gl-cart-popup__title { margin: 0 0 0.8rem; font-size: 1.05rem; font-weight: 750; color: #1a1814; }
.gl-cart-popup__product { display: flex; align-items: center; gap: 0.75rem; text-align: start; padding: 0.75rem; background: #faf8f3; border-radius: 14px; margin-bottom: 1rem; }
.gl-cart-popup__product img { width: 56px; height: 70px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.gl-cart-popup__product > div { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.gl-cart-popup__name { font-size: 0.92rem; color: #1a1814; }
.gl-cart-popup__meta { font-size: 0.8rem; color: #6e6b63; }
.gl-cart-popup__meta:empty { display: none; }
.gl-cart-popup__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.45rem; }
.gl-cart-popup__actions .gl-btn { min-height: 36px; padding: 0 0.8rem; justify-content: center; font-size: 0.8rem; font-weight: 650; border-radius: 10px; }
@media (prefers-reduced-motion: reduce) { .gl-cart-popup__ring, .gl-cart-popup__tick { animation: none; stroke-dashoffset: 0; } }
@media (max-width: 480px) { .gl-cart-popup { align-items: end; } .gl-cart-popup__card { border-radius: 22px 22px 0 0; width: 100%; } .gl-cart-popup__actions { grid-template-columns: 1fr; } }

/* ==========================================================================
   Order received (thank-you)
   ========================================================================== */
.gl-thankyou { max-width: 1040px; margin: 0 auto; }
.gl-thankyou__hero { text-align: center; padding: clamp(1.5rem, 4vw, 3rem) 1rem 1.5rem; }
.gl-thankyou__icon { display: block; width: 84px; height: 84px; margin: 0 auto 1rem; }
.gl-thankyou__icon svg { width: 100%; height: 100%; }
.gl-thankyou__icon circle { fill: #e8f3ec; stroke: #2f7d4f; stroke-width: 2; }
.gl-thankyou__ring { stroke-dasharray: 160; stroke-dashoffset: 160; animation: gl-ring 0.7s ease forwards; }
.gl-thankyou__tick { fill: none; stroke: #2f7d4f; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: gl-tick 0.45s 0.5s ease forwards; }
.gl-thankyou--failed .gl-thankyou__icon circle { fill: #fbe9e7; stroke: #b8362c; }
.gl-thankyou--failed .gl-thankyou__icon path { fill: none; stroke: #b8362c; stroke-width: 3.5; stroke-linecap: round; }
.gl-thankyou__hero h1 { margin: 0 0 0.6rem; font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 750; color: #1a1814; }
.gl-thankyou__hero p { max-width: 60ch; margin: 0 auto 1.5rem; color: #5c5850; font-size: 0.98rem; line-height: 1.85; }
.gl-thankyou__hero p strong { color: #8a6b28; }
.gl-thankyou__steps { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.5rem 0; margin: 0 auto; padding: 0; list-style: none; counter-reset: none; }
.gl-thankyou__steps li { position: relative; display: flex; align-items: center; gap: 0.5rem; padding: 0 1.1rem; font-size: 0.85rem; font-weight: 600; color: #8a857b; }
.gl-thankyou__steps li + li::before { content: ''; position: absolute; inset-inline-start: -0.9rem; top: 50%; width: 1.8rem; height: 2px; background: #e6e1d6; }
.gl-thankyou__step-dot { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #f1ede3; color: #8a857b; font-size: 0.78rem; font-weight: 700; }
.gl-thankyou__steps li.is-done { color: #1a1814; }
.gl-thankyou__steps li.is-done .gl-thankyou__step-dot { background: #2f7d4f; color: #fff; }
.gl-thankyou__steps li.is-done + li::before { background: #2f7d4f; }

.gl-thankyou__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr); gap: 1.25rem; align-items: start; margin-top: 1rem; }
.gl-thankyou__card { padding: 1.5rem; background: #fff; border: 1px solid rgba(26, 24, 20, 0.07); border-radius: 20px; box-shadow: 0 12px 30px -24px rgba(26, 24, 20, 0.35); }
.gl-thankyou__card h2 { margin: 0 0 1rem; font-size: 1.05rem; font-weight: 750; color: #1a1814; }
.gl-thankyou__card h3 { margin: 1.5rem 0 0.75rem; font-size: 0.95rem; font-weight: 700; color: #1a1814; }
.gl-thankyou__side { display: flex; flex-direction: column; gap: 1rem; }

.gl-thankyou__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.6rem; margin: 0; }
.gl-thankyou__facts div { padding: 0.65rem 0.8rem; background: #faf8f3; border-radius: 12px; }
.gl-thankyou__facts dt { font-size: 0.72rem; color: #8a857b; margin-bottom: 0.15rem; }
.gl-thankyou__facts dd { margin: 0; font-size: 0.9rem; font-weight: 700; color: #1a1814; overflow-wrap: anywhere; }
.gl-status { display: inline-block; padding: 0.1rem 0.6rem; border-radius: 999px; font-size: 0.78rem; background: #fbf1dc; color: #a5670c; }
.gl-status--processing, .gl-status--completed { background: #e8f3ec; color: #2f7d4f; }
.gl-status--cancelled, .gl-status--failed { background: #fbe9e7; color: #b8362c; }

.gl-thankyou__items { list-style: none; margin: 0; padding: 0; border: 1px solid rgba(26, 24, 20, 0.07); border-radius: 14px; overflow: hidden; }
.gl-thankyou__items li { display: flex; align-items: center; gap: 0.85rem; padding: 0.75rem 0.9rem; border-bottom: 1px solid rgba(26, 24, 20, 0.06); }
.gl-thankyou__items li:last-child { border-bottom: 0; }
.gl-thankyou__item-thumb img { width: 52px; height: 65px; object-fit: cover; border-radius: 10px; }
.gl-thankyou__item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.1rem; }
.gl-thankyou__item-body strong { font-size: 0.92rem; color: #1a1814; }
.gl-thankyou__item-meta, .gl-thankyou__item-body small { font-size: 0.78rem; color: #6e6b63; }
.gl-thankyou__item-meta p { display: inline; margin: 0; }
.gl-thankyou__item-total { font-weight: 700; color: #1a1814; white-space: nowrap; }

.gl-thankyou__totals { margin: 1rem 0 0; }
.gl-thankyou__totals div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px dashed rgba(26, 24, 20, 0.1); font-size: 0.9rem; }
.gl-thankyou__totals dt { color: #5c5850; margin: 0; }
.gl-thankyou__totals dd { margin: 0; font-weight: 600; color: #1a1814; }
.gl-thankyou__totals .is-grand { border-bottom: 0; padding-top: 0.85rem; font-size: 1.05rem; }
.gl-thankyou__totals .is-grand dd { font-weight: 800; color: #8a6b28; }
.gl-thankyou__note { margin: 1rem 0 0; padding: 0.75rem 0.9rem; background: #faf8f3; border-radius: 12px; font-size: 0.88rem; color: #3d3a33; }

.gl-thankyou address { font-style: normal; line-height: 1.9; color: #3d3a33; font-size: 0.93rem; }
.gl-thankyou__phone { margin: 0.5rem 0 0; font-weight: 700; color: #1a1814; }
.gl-thankyou__help p { margin: 0 0 0.75rem; color: #5c5850; font-size: 0.9rem; }
.gl-thankyou__help small { display: block; margin-top: 0.5rem; color: #8a857b; }
.gl-thankyou__help .gl-btn { width: 100%; justify-content: center; }
.gl-thankyou__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.gl-thankyou__actions .gl-btn { flex: 1; justify-content: center; min-height: 46px; }
.gl-thankyou .woocommerce-bacs-bank-details, .gl-thankyou .wc-bacs-bank-details { margin: 1rem 0 0; padding: 1rem; background: #fbf1dc; border-radius: 12px; font-size: 0.9rem; }
.gl-thankyou .woocommerce-bacs-bank-details-heading, .gl-thankyou .wc-bacs-bank-details-heading { font-size: 0.95rem; margin: 0 0 0.5rem; }
.gl-thankyou .wc-bacs-bank-details-account-name { margin: 0.5rem 0 0.25rem; }
.gl-thankyou .woocommerce-thankyou-order-details, .gl-thankyou .woocommerce-order-details, .gl-thankyou .woocommerce-customer-details { display: none; } /* rendered by our template */
.gl-thankyou .woocommerce-notice { margin: 1rem 0; }

@media (max-width: 991px) { .gl-thankyou__grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
	.gl-thankyou__steps { justify-content: flex-start; flex-direction: column; align-items: flex-start; gap: 0.6rem; }
	.gl-thankyou__steps li + li::before { display: none; }
	.gl-thankyou__card { padding: 1.15rem; }
	.gl-thankyou__items li { flex-wrap: wrap; }
	.gl-thankyou__item-total { width: 100%; text-align: end; }
}
/* The thank-you template has its own hero heading; hide the page title on that endpoint */
.woocommerce-order-received .gl-page-header { display: none; }

/* ==========================================================================
   Shop page v2 — layout, filters, selects, range slider, product cards
   ========================================================================== */
.gl-shop-layout__grid { grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 1.5rem; }
.gl-shop-content { padding: 1.25rem 1.5rem 1.5rem; border: 1px solid rgba(26, 24, 20, 0.06); box-shadow: 0 12px 30px -24px rgba(26, 24, 20, 0.3); }
.gl-shop-sidebar { top: calc(var(--gl-header-pill-h, 64px) + 1.5rem); }
.gl-filters { padding: 1.25rem 1.25rem 1.5rem; border: 1px solid rgba(26, 24, 20, 0.06); box-shadow: 0 12px 30px -24px rgba(26, 24, 20, 0.3); overflow: visible; }
.gl-filters__title { display: flex; align-items: center; gap: 0.5rem; margin: 0 0 1.1rem; padding-bottom: 0.85rem; border-bottom: 1px solid rgba(26, 24, 20, 0.07); font-size: 1rem; font-weight: 750; }
.gl-filters__title::before { content: ''; width: 18px; height: 18px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 6h16M7 12h10M10 18h4'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 6h16M7 12h10M10 18h4'/%3E%3C/svg%3E") center/contain no-repeat; color: #b8933f; }
.gl-filter-group { margin-bottom: 1.15rem; }
.gl-filter-group > label, .gl-filter-group--attr legend { font-size: 0.86rem; font-weight: 700; color: #1a1814; margin-bottom: 0.5rem; }
.gl-filters .gl-btn { min-height: 42px; border-radius: 10px; }
.gl-filters .gl-btn--outline { background: #fff; }

/* Custom select — consistent height, centred text, chevron on the correct side */
.gl-filter-control,
select.gl-filter-control,
.woocommerce-ordering select,
.gl-shop-toolbar select {
	appearance: none;
	-webkit-appearance: none;
	display: inline-flex;
	align-items: center;
	height: 44px;
	line-height: 1.2;
	padding: 0 1rem 0 2.4rem; /* RTL: text starts right, arrow sits left */
	border: 1px solid #d9d3c5;
	border-radius: 10px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c5850' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.85rem center / 16px 16px;
	color: #1a1814;
	font-family: var(--gl-font);
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
[dir="rtl"] .gl-filter-control, [dir="rtl"] select.gl-filter-control, [dir="rtl"] .gl-shop-toolbar select { padding: 0 1rem 0 2.4rem; /* RTL: text starts right, arrow sits left */ background-position: right 0.85rem center; }
.gl-filter-control:hover { border-color: #c9a962; }
.gl-filter-control:focus { outline: none; border-color: #c9a962; box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.22); }
.gl-shop-toolbar__sort .gl-filter-control { min-width: 170px; }

/* Range slider */
.gl-filter-group--price .gl-range { position: relative; height: 34px; margin: 0.35rem 0.5rem 0.25rem; }
.gl-range__track { position: absolute; inset-inline: 0; top: 50%; height: 4px; transform: translateY(-50%); background: #ebe6db; border-radius: 999px; }
.gl-range__fill { position: absolute; top: 0; height: 100%; background: linear-gradient(90deg, #cbae68, #b6944a); border-radius: 999px; }
.gl-range__input { position: absolute; inset-inline: 0; top: 0; width: 100%; height: 100%; margin: 0; background: transparent; appearance: none; -webkit-appearance: none; pointer-events: none; }
.gl-range__input::-webkit-slider-runnable-track { background: transparent; height: 100%; }
.gl-range__input::-moz-range-track { background: transparent; height: 100%; }
.gl-range__input::-webkit-slider-thumb { pointer-events: auto; appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin-top: 6px; border-radius: 50%; background: #fff; border: 2px solid #b8933f; box-shadow: 0 2px 8px rgba(26, 24, 20, 0.2); cursor: grab; transition: transform 0.15s ease; }
.gl-range__input::-moz-range-thumb { pointer-events: auto; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid #b8933f; box-shadow: 0 2px 8px rgba(26, 24, 20, 0.2); cursor: grab; }
.gl-range__input:active::-webkit-slider-thumb, .gl-range__input:focus-visible::-webkit-slider-thumb { transform: scale(1.1); box-shadow: 0 0 0 5px rgba(201, 169, 98, 0.25); }
.gl-range__input:focus { outline: none; }
.gl-range__values { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-top: 0.4rem; font-size: 0.82rem; font-weight: 700; color: #1a1814; }
.gl-range__sep { color: #8a857b; font-weight: 400; }
.gl-range__value { padding: 0.25rem 0.55rem; background: #faf8f3; border: 1px solid rgba(26, 24, 20, 0.07); border-radius: 8px; white-space: nowrap; }

/* Toolbar */
.gl-shop-toolbar { padding-bottom: 1rem; margin-bottom: 1.25rem; }
.gl-shop-toolbar__count { font-size: 0.9rem; color: #6e6b63; }

/* Product cards */
.products .product, .gl-product-grid .product {
	display: flex;
	flex-direction: column;
	border: 1px solid rgba(26, 24, 20, 0.06);
	border-radius: 20px;
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 12px 28px -24px rgba(26, 24, 20, 0.35);
	overflow: hidden;
}
.products .product:hover, .gl-product-grid .product:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -22px rgba(26, 24, 20, 0.35); border-color: rgba(201, 169, 98, 0.45); }
.gl-card__media { position: relative; background: #f7f4ee; }
.gl-card__media > a { display: block; }
.products .product .gl-card__media img { aspect-ratio: 4/5; width: 100%; height: auto; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.products .product:hover .gl-card__media img { transform: scale(1.04); }
.gl-card__cat { position: absolute; bottom: 0.7rem; inset-inline-start: 0.75rem; padding: 0.2rem 0.6rem; border-radius: 999px; background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(4px); color: #5c5850; font-size: 0.7rem; font-weight: 700; pointer-events: none; }
.products .product .onsale { top: 0.7rem; inset-inline-end: 0.75rem; }
.gl-product-card__actions { top: 0.7rem; inset-inline-start: 0.7rem; }
.gl-product-card__actions .gl-btn-icon { width: 38px; height: 38px; background: rgba(255, 255, 255, 0.92); box-shadow: 0 4px 12px rgba(26, 24, 20, 0.12); color: #1a1814; }
.gl-product-card__actions .gl-btn-icon:hover { background: #1a1814; color: #fff; }
.gl-card__body { display: flex; flex-direction: column; flex: 1; padding: 0.9rem 1rem 1rem; }
.products .product .woocommerce-loop-product__title, .products .product .gl-card__body h2 { padding: 0; margin: 0 0 0.35rem; font-size: 0.95rem; font-weight: 700; line-height: 1.5; color: #1a1814; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.products .product .gl-card__body > a { color: inherit; }
.products .product .price { padding: 0; margin: 0 0 0.85rem; font-size: 0.95rem; color: #8a6b28; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.4rem; }
.products .product .price del { font-size: 0.8rem; margin: 0; opacity: 0.7; }
.products .product .price ins { color: #8a6b28; }
.gl-card__footer { margin-top: auto; }
.gl-card__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	width: 100%;
	min-height: 42px;
	padding: 0 0.9rem;
	border-radius: 12px;
	font-size: 0.86rem;
	font-weight: 700;
	line-height: 1;
	text-decoration: none !important;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.gl-card__btn--primary { background: linear-gradient(135deg, #cbae68, #b6944a); color: #1a1814 !important; box-shadow: 0 8px 18px -12px rgba(171, 141, 74, 0.8); }
.gl-card__btn--primary:hover { filter: brightness(1.05); transform: translateY(-1px); }
.gl-card__btn--primary.loading { opacity: 0.6; pointer-events: none; }
.gl-card__btn--primary.added::after { display: none; }
.gl-card__btn--outline { background: #fff; border: 1px solid #d9d3c5; color: #1a1814 !important; }
.gl-card__btn--outline:hover { border-color: #b8933f; background: rgba(201, 169, 98, 0.12); }
.gl-card__btn--outline svg { transition: transform 0.2s ease; }
.gl-card__btn--outline:hover svg { transform: translateX(-3px); }
.gl-card__btn--muted { background: #f3efe6; color: #8a857b !important; cursor: not-allowed; }
.products .product .added_to_cart { display: none; } /* WooCommerce's "View cart" link — we show the popup instead */

@media (max-width: 991px) {
	.gl-shop-layout__grid { grid-template-columns: 1fr; }
	.gl-filters { padding: 1rem; }
}
@media (max-width: 576px) {
	.gl-shop-content { padding: 0.9rem; border-radius: 16px; }
	.gl-card__body { padding: 0.7rem 0.75rem 0.8rem; }
	.products .product .woocommerce-loop-product__title { font-size: 0.86rem; }
	.products .product .price { font-size: 0.86rem; }
	.gl-card__btn { min-height: 38px; font-size: 0.8rem; }
	.gl-card__btn span { white-space: nowrap; }
	.gl-shop-toolbar { flex-direction: column; align-items: stretch; }
	.gl-shop-toolbar__sort .gl-filter-control { width: 100%; }
}

/* ==========================================================================
   Block cart/checkout containment (defensive)
   The theme migrates these pages to the classic shortcodes automatically,
   but if the block versions are deliberately restored they must at least
   stay inside the container and align RTL.
   ========================================================================== */
.wp-block-woocommerce-checkout,
.wp-block-woocommerce-cart {
	max-width: min(var(--gl-container, 1280px), 100%);
	margin-inline: auto;
	padding-inline: clamp(0.75rem, 3vw, 1.5rem);
	box-sizing: border-box;
	overflow-x: clip;
}

.wp-block-woocommerce-checkout .wc-block-components-sidebar-layout {
	flex-wrap: wrap;
	max-width: 100%;
}

.wp-block-woocommerce-checkout .wc-block-components-text-input input,
.wp-block-woocommerce-checkout .wc-block-components-form .wc-block-components-text-input input {
	font-family: var(--gl-font);
}

@media (max-width: 767px) {
	.wp-block-woocommerce-checkout .wc-block-components-sidebar,
	.wp-block-woocommerce-checkout .wc-block-components-main {
		width: 100%;
		padding-inline: 0;
	}
}

/* ==========================================================================
   Checkout containment + typography (v1.19.1 fixes)
   ========================================================================== */
/* The checkout/cart content must fill its column like any other page. */
.woocommerce-checkout .gl-page-content,
.woocommerce-cart .gl-page-content,
.woocommerce-checkout .gl-page-body,
.woocommerce-cart .gl-page-body,
.woocommerce-checkout .gl-page-body .woocommerce,
.woocommerce-cart .gl-page-body .woocommerce {
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

body.woocommerce-checkout,
body.woocommerce-cart {
	overflow-x: clip;
}

/* select2 country dropdown is appended to <body>; keep it inside the viewport. */
body > .select2-container {
	max-width: calc(100vw - 2rem);
}

/* Buttons across cart/checkout/account must inherit the theme font —
   the browser default `font: menu` on <button> was leaking through. */
.woocommerce button.button,
.woocommerce input.button,
.woocommerce a.button,
.woocommerce #place_order,
.woocommerce-page #payment button,
.wc-block-components-button,
.wc-block-components-checkout-place-order-button {
	font-family: var(--gl-font) !important;
}

/* ==========================================================================
   1.19.2 — variation price card, price spacing, loop buttons, cart, thankyou
   ========================================================================== */

/* --- Item 4: currency word sits tight beside the number, everywhere ---
   wc_price renders `38.500.000&nbsp;<span class=currencySymbol>` — the nbsp
   plus symbol margins opened a large gap. inline-flex drops whitespace text
   nodes entirely; gap becomes the single source of truth. */
.woocommerce-Price-amount bdi {
	display: inline-flex;
	align-items: baseline;
	gap: 0.18em;
	direction: rtl;
	white-space: nowrap;
}
.woocommerce-Price-currencySymbol {
	margin: 0 !important;
}

/* --- Item 3: selected-variation price card --- */
.gl-product-summary .single_variation_wrap { width: 100%; }

.gl-product-summary .woocommerce-variation.single_variation {
	margin: 0.75rem 0 0.9rem;
}
.gl-product-summary .woocommerce-variation.single_variation:empty { display: none; }

.gl-product-summary .woocommerce-variation-price {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.35rem 0.9rem;
	padding: 0.9rem 1.1rem;
	background: linear-gradient(135deg, #FBF7EE, #F6EFDF);
	border: 1px solid rgba(201, 169, 98, 0.4);
	border-inline-start: 4px solid var(--gl-gold, #C9A962);
	border-radius: 14px;
}
.gl-product-summary .woocommerce-variation-price:empty { display: none; }

/* Label injected by product.js */
.gl-product-summary .gl-variation-price-label {
	flex-basis: 100%;
	font-size: 0.78rem;
	font-weight: 650;
	color: #8a6b28;
}

.gl-product-summary .woocommerce-variation-price .price {
	display: inline-flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 0.25rem 0.7rem;
	margin: 0;
	font-size: 1.35rem;
	font-weight: 800;
	color: #7a5f1f;
}

.gl-product-summary .woocommerce-variation-price .price del {
	order: 2;
	font-size: 0.85rem;
	font-weight: 500;
	color: #a39c8d;
	text-decoration-color: rgba(217, 58, 58, 0.7);
	text-decoration-thickness: 1.5px;
	opacity: 1;
}
.gl-product-summary .woocommerce-variation-price .price ins {
	order: 1;
	text-decoration: none;
}

/* Discount badge injected by product.js */
.gl-product-summary .gl-variation-off {
	order: 3;
	display: inline-flex;
	align-items: center;
	padding: 0.2rem 0.6rem;
	background: #D93A3A;
	color: #fff;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 750;
	line-height: 1.5;
	box-shadow: 0 4px 10px -5px rgba(217, 58, 58, 0.7);
}

.gl-product-summary .woocommerce-variation-availability { margin-top: 0.4rem; font-size: 0.85rem; }
.gl-product-summary .woocommerce-variation-availability p { margin: 0; }

/* --- Item 6: loop / related-products button — white, not black --- */
ul.products li.product .button,
.related.products .product .button,
.upsells.products .product .button {
	background: #fff !important;
	color: var(--gl-charcoal, #1A1A1A) !important;
	border: 1.5px solid rgba(26, 24, 20, 0.16) !important;
	border-radius: 12px !important;
	font-family: var(--gl-font) !important;
	font-weight: 650;
	transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
ul.products li.product .button:hover,
.related.products .product .button:hover,
.upsells.products .product .button:hover {
	background: #fff !important;
	color: #8a6b28 !important;
	border-color: var(--gl-gold, #C9A962) !important;
	box-shadow: 0 6px 16px -10px rgba(201, 169, 98, 0.8);
}

/* --- Item 7: cart page — two-column layout, totals as a sticky card --- */
@media (min-width: 992px) {
	.woocommerce-cart .gl-page-body .woocommerce {
		display: grid;
		grid-template-columns: minmax(0, 1.45fr) minmax(330px, 0.85fr);
		gap: 1.5rem;
		align-items: start;
	}
	.woocommerce-cart .gl-page-body .woocommerce-notices-wrapper { grid-column: 1 / -1; }
	.woocommerce-cart .gl-page-body .woocommerce-cart-form { grid-column: 1; grid-row: auto; margin: 0; }
	.woocommerce-cart .gl-page-body .cart-collaterals {
		grid-column: 2;
		grid-row: auto;
		position: sticky;
		top: calc(var(--gl-header-height, 72px) + 1.25rem);
	}
	.woocommerce-cart .gl-page-body .cart_totals { width: 100%; float: none; }
}

.woocommerce-cart-form { border-radius: 18px; background: #fff; }

.woocommerce-cart-form table.shop_table { border: 0; margin: 0; }
.woocommerce-cart-form table.shop_table th {
	padding: 1rem 0.5rem;
	font-size: 0.8rem;
	font-weight: 700;
	color: #8b857a;
	border-bottom: 1px solid rgba(26, 24, 20, 0.08);
}
.woocommerce-cart-form table.shop_table td {
	padding: 1rem 0.5rem;
	border-bottom: 1px solid rgba(26, 24, 20, 0.06);
	vertical-align: middle;
}
.woocommerce-cart-form .product-thumbnail img {
	width: 76px;
	height: 76px;
	object-fit: cover;
	border-radius: 14px;
	background: #F6F2E9;
}
.woocommerce-cart-form .product-name a { font-weight: 650; color: var(--gl-charcoal, #1A1A1A); }
.woocommerce-cart-form .product-name a:hover { color: var(--gl-gold, #C9A962); }
.woocommerce-cart-form .product-name .variation { margin: 0.25rem 0 0; font-size: 0.78rem; color: #8b857a; }
.woocommerce-cart-form .product-price,
.woocommerce-cart-form .product-subtotal { font-weight: 700; white-space: nowrap; }
.woocommerce-cart-form .product-subtotal { color: #7a5f1f; }

.woocommerce-cart-form .product-remove .remove {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #F6F2ED;
	color: #8b857a !important;
	font-size: 1.1rem;
	font-weight: 400;
	transition: background 0.2s ease, color 0.2s ease;
}
.woocommerce-cart-form .product-remove .remove:hover {
	background: #FBE9E7;
	color: #C62828 !important;
}

.woocommerce-cart-form .quantity {
	display: inline-flex;
	height: 44px;
	border: 1px solid rgba(26, 24, 20, 0.14);
	border-radius: 11px;
	overflow: hidden;
	background: #fff;
}
.woocommerce-cart-form .quantity .qty {
	width: 58px;
	height: 100%;
	border: 0;
	text-align: center;
	font-family: var(--gl-font);
	font-weight: 700;
	-moz-appearance: textfield;
	appearance: textfield;
}
.woocommerce-cart-form .quantity .qty::-webkit-outer-spin-button,
.woocommerce-cart-form .quantity .qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Coupon + update row */
.woocommerce-cart-form td.actions { padding-top: 1.15rem; }
.woocommerce-cart-form td.actions .coupon .input-text {
	min-height: 44px;
	padding: 0 0.9rem;
	border: 1px solid rgba(26, 24, 20, 0.14);
	border-radius: 11px;
	font-family: var(--gl-font);
}
.woocommerce-cart-form td.actions .button {
	min-height: 44px;
	padding: 0 1.25rem;
	border-radius: 11px;
	font-weight: 700;
}
.woocommerce-cart-form td.actions .button:disabled { opacity: 0.45; }

/* Totals card */
.woocommerce .cart_totals {
	border-radius: 18px;
	background: linear-gradient(180deg, #FFFFFF, #FBF8F1);
	border-color: rgba(201, 169, 98, 0.3) !important;
}
.woocommerce .cart_totals > h2 {
	position: relative;
	padding-bottom: 0.75rem;
	margin-bottom: 1.1rem !important;
	border-bottom: 1px dashed rgba(201, 169, 98, 0.45);
}
.woocommerce .cart_totals > h2::after {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	bottom: -1px;
	width: 34px;
	height: 2.5px;
	border-radius: 3px;
	background: var(--gl-gold, #C9A962);
}
.woocommerce .cart_totals table.shop_table { border: 0; margin-bottom: 1rem; }
.woocommerce .cart_totals table.shop_table th,
.woocommerce .cart_totals table.shop_table td {
	padding: 0.7rem 0;
	border-bottom: 1px solid rgba(26, 24, 20, 0.06);
	background: none;
}
.woocommerce .cart_totals .order-total th,
.woocommerce .cart_totals .order-total td { border-bottom: 0; padding-top: 0.9rem; }
.woocommerce .cart_totals .wc-proceed-to-checkout { padding: 0; margin: 0; }
.woocommerce .cart_totals .checkout-button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 52px;
	margin: 0 !important;
	border-radius: 13px !important;
	background: linear-gradient(135deg, #cbae68, #b6944a) !important;
	color: #1a1814 !important;
	font-family: var(--gl-font) !important;
	font-size: 1rem !important;
	font-weight: 750 !important;
	box-shadow: 0 10px 24px -12px rgba(171, 141, 74, 0.7);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.woocommerce .cart_totals .checkout-button:hover {
	transform: translateY(-1px);
	box-shadow: 0 14px 28px -12px rgba(171, 141, 74, 0.85);
}

@media (max-width: 767px) {
	.woocommerce-cart-form table.shop_table td { padding: 0.75rem 0.35rem; }
	.woocommerce-cart-form .product-thumbnail img { width: 60px; height: 60px; border-radius: 11px; }
	.woocommerce .cart_totals { margin-top: 1.25rem; }
}

/* --- Item 9: thank-you delivery address card --- */
.gl-thankyou__side .gl-thankyou__card[aria-labelledby="gl-ty-address"] {
	background: linear-gradient(180deg, #FFFFFF, #FBF8F1);
	border-color: rgba(201, 169, 98, 0.35);
}
.gl-thankyou__card #gl-ty-address {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	padding-bottom: 0.8rem;
	border-bottom: 1px dashed rgba(201, 169, 98, 0.45);
}
.gl-thankyou__card #gl-ty-address::before {
	content: "";
	flex: 0 0 34px;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	background: rgba(201, 169, 98, 0.14)
		url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%238a6b28" stroke-width="1.7"><path d="M12 21s-6-5.3-6-10.5a6 6 0 0 1 12 0C18 15.7 12 21 12 21Z"/><circle cx="12" cy="10.5" r="2.3"/></svg>')
		center / 18px no-repeat;
	border: 1px solid rgba(201, 169, 98, 0.35);
}
.gl-thankyou__card address {
	margin: 0.85rem 0 0;
	padding: 0.85rem 1rem;
	background: #fff;
	border: 1px solid rgba(26, 24, 20, 0.07);
	border-radius: 13px;
	font-style: normal;
	font-size: 0.92rem;
	line-height: 2.1;
	color: #55524a;
}
.gl-thankyou__phone {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	margin: 0.7rem 0 0 !important;
	padding: 0.45rem 0.85rem;
	background: rgba(201, 169, 98, 0.12);
	border: 1px solid rgba(201, 169, 98, 0.35);
	border-radius: 999px;
	color: #7a5f1f;
	font-weight: 700;
	font-size: 0.88rem;
}
.gl-thankyou__phone::before {
	content: "";
	width: 15px;
	height: 15px;
	background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%237a5f1f" stroke-width="1.8"><path d="M5 4h4l1.5 4.5-2 1.5a12 12 0 0 0 5.5 5.5l1.5-2L20 15v4a2 2 0 0 1-2.2 2A16.5 16.5 0 0 1 3 6.2 2 2 0 0 1 5 4Z"/></svg>') center / contain no-repeat;
}

/* ==========================================================================
   Product reviews (#reviews) — redesigned
   ========================================================================== */
#reviews.woocommerce-Reviews { display: grid; gap: 1.5rem; }

#reviews .woocommerce-Reviews-title {
	margin: 0;
	font-size: 1.15rem;
	font-weight: 750;
	color: #1a1814;
}

#reviews .commentlist {
	display: grid;
	gap: 0.85rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
#reviews .commentlist li { margin: 0; }

#reviews .commentlist .comment_container {
	display: flex;
	gap: 0.9rem;
	padding: 1.15rem 1.25rem;
	background: #fff;
	border: 1px solid rgba(26, 24, 20, 0.08);
	border-radius: 16px;
	box-shadow: 0 8px 22px -20px rgba(26, 24, 20, 0.4);
}

#reviews .commentlist .avatar {
	flex: 0 0 46px;
	width: 46px;
	height: 46px;
	border-radius: 14px;
	object-fit: cover;
	background: #F6F2E9;
}

#reviews .comment-text {
	flex: 1;
	min-width: 0;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
}

#reviews .comment-text .meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.25rem 0.6rem;
	margin: 0 0 0.4rem;
	font-size: 0.85rem;
	color: #8b857a;
}
#reviews .comment-text .meta .woocommerce-review__author {
	font-weight: 700;
	font-style: normal;
	color: #1a1814;
}
#reviews .comment-text .meta .woocommerce-review__dash { display: none; }
#reviews .comment-text .meta .woocommerce-review__published-date { font-size: 0.78rem; }
#reviews .comment-text .meta .woocommerce-review__verified {
	padding: 0.1rem 0.5rem;
	background: #E8F3EC;
	color: #2f7d4f;
	border-radius: 999px;
	font-size: 0.7rem;
	font-style: normal;
	font-weight: 650;
}

#reviews .star-rating {
	float: none;
	margin: 0 0 0.35rem;
	color: var(--gl-gold, #C9A962);
}

#reviews .comment-text .description p {
	margin: 0;
	font-size: 0.92rem;
	line-height: 2;
	color: #55524a;
}

/* Review form */
#review_form_wrapper { max-width: 640px; }

#reviews #respond {
	padding: clamp(1.25rem, 3vw, 1.75rem);
	background: linear-gradient(180deg, #FFFFFF, #FBF8F1);
	border: 1px solid rgba(201, 169, 98, 0.3);
	border-radius: 18px;
}

#reviews #respond .comment-reply-title {
	display: block;
	margin: 0 0 1rem;
	font-size: 1.05rem;
	font-weight: 750;
	color: #1a1814;
}

#reviews #respond .comment-form { display: grid; gap: 0.9rem; }
#reviews #respond .comment-form > p { margin: 0; display: flex; flex-direction: column; gap: 0.35rem; }
#reviews #respond .comment-notes { font-size: 0.82rem; color: #8b857a; }

#reviews #respond label {
	font-size: 0.86rem;
	font-weight: 650;
	color: #1a1814;
}

#reviews #respond .comment-form-rating .stars {
	margin: 0.15rem 0 0;
	font-size: 1.35rem;
}
#reviews #respond .comment-form-rating .stars a { color: var(--gl-gold, #C9A962); }

#reviews #respond input.input-text,
#reviews #respond input[type="text"],
#reviews #respond input[type="email"],
#reviews #respond textarea {
	width: 100%;
	min-height: 46px;
	padding: 0.6rem 0.9rem;
	background: #fff;
	border: 1px solid rgba(26, 24, 20, 0.14);
	border-radius: 12px;
	font-family: var(--gl-font);
	font-size: 0.92rem;
	transition: border-color var(--gl-transition), box-shadow var(--gl-transition);
}
#reviews #respond textarea { min-height: 120px; resize: vertical; }
#reviews #respond input:focus,
#reviews #respond textarea:focus {
	outline: none;
	border-color: var(--gl-gold, #C9A962);
	box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.2);
}

#reviews #respond .form-submit { margin: 0.25rem 0 0; }
#reviews #respond .form-submit .submit {
	min-height: 48px;
	padding: 0 2rem;
	border: 0;
	border-radius: 12px;
	background: linear-gradient(135deg, #cbae68, #b6944a);
	color: #1a1814;
	font-family: var(--gl-font);
	font-size: 0.95rem;
	font-weight: 750;
	cursor: pointer;
	box-shadow: 0 10px 24px -12px rgba(171, 141, 74, 0.7);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
#reviews #respond .form-submit .submit:hover {
	transform: translateY(-1px);
	box-shadow: 0 14px 28px -12px rgba(171, 141, 74, 0.85);
}

#reviews .woocommerce-noreviews {
	padding: 1.25rem;
	background: #FAF8F3;
	border: 1px dashed rgba(201, 169, 98, 0.45);
	border-radius: 14px;
	color: #8b857a;
}

/* Math captcha field (reviews + registration) */
.gl-captcha {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	padding: 0.9rem 1rem !important;
	margin: 0.25rem 0 !important;
	background: rgba(201, 169, 98, 0.08);
	border: 1px dashed rgba(201, 169, 98, 0.5);
	border-radius: 13px;
}
.gl-captcha label { font-size: 0.85rem !important; }
.gl-captcha .gl-captcha__input {
	max-width: 130px;
	min-height: 44px !important;
	text-align: center;
	font-weight: 700;
	letter-spacing: 0.1em;
}

/* Reviews — neutralize WooCommerce core styles (they position the avatar
   absolutely and float the stars, which broke the card layout). Specificity
   matches core (.woocommerce #reviews #comments …). */
.woocommerce #reviews #comments ol.commentlist li {
	position: static;
	padding: 0;
	margin: 0 0 0.85rem;
	border: 0;
	background: none;
}
.woocommerce #reviews #comments ol.commentlist li img.avatar {
	position: static !important;
	float: none !important;
	width: 46px;
	height: 46px;
	padding: 0;
	margin: 0;
	border: 0;
	background: #F6F2E9;
	box-shadow: none;
	border-radius: 14px;
}
.woocommerce #reviews #comments ol.commentlist li .comment-text {
	float: none !important;
	width: auto;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0;
}
.woocommerce #reviews .comment-text .star-rating,
.woocommerce #reviews #comments ol.commentlist li .star-rating {
	float: none !important;
	position: static !important;
	margin: 0 0 0.35rem;
}
.woocommerce #reviews #comments ol.commentlist li .comment-text .meta { margin-top: 0; }

/* Quantity select styling (matches the old 52px baseline) */
.gl-quantity-select {
	position: relative;
	display: inline-flex;
	align-items: stretch;
	height: 52px;
	border: 1px solid var(--gl-gray-light, #d5cfc1);
	border-radius: 12px;
	background: #fff;
	overflow: hidden;
}
/* Selector doubled with .woocommerce .quantity to outrank WC core's
   `.woocommerce .quantity .qty { width: 3.631em }`, which squeezed the select
   until the digit hid under the arrow (cart page bug). */
.woocommerce .quantity.gl-quantity-select select.qty,
.gl-quantity-select select.qty {
	width: auto;
	height: 100%;
	min-width: 84px;
	padding-block: 0;
	padding-inline: 0.9rem 2.1rem; /* logical: RTL puts the 2.1rem clearance on the arrow (left) side */
	border: 0;
	background: transparent;
	font-family: var(--gl-font);
	font-size: 1rem;
	font-weight: 700;
	color: var(--gl-charcoal, #1A1A1A);
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
}
.gl-quantity-select::after {
	content: "";
	position: absolute;
	top: 50%;
	inset-inline-end: 0.85rem;
	width: 9px;
	height: 9px;
	border-inline-end: 2px solid #8b857a;
	border-block-end: 2px solid #8b857a;
	transform: translateY(-70%) rotate(45deg);
	pointer-events: none;
}
.gl-quantity-select select.qty:focus-visible { outline: none; }
.gl-quantity-select:focus-within {
	border-color: var(--gl-gold, #C9A962);
	box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.2);
}

/* Cart page: slightly shorter to match row height */
.woocommerce-cart-form .gl-quantity-select { height: 44px; }
.woocommerce-cart-form .woocommerce .quantity.gl-quantity-select select.qty,
.woocommerce .woocommerce-cart-form .quantity.gl-quantity-select select.qty,
.woocommerce-cart-form .gl-quantity-select select.qty { min-width: 74px; font-size: 0.92rem; }

/* ==========================================================================
   1.19.8 — Mobile product page fixes
   ========================================================================== */

/* --- Gallery: mobile behaves exactly like desktop ----------------------------
   FlexSlider runs on every viewport: one main image + thumbnail strip, tap a
   thumbnail to swap the stage (thumb strip styling lives in the gallery block
   above). The rules below are a FALLBACK for when FlexSlider fails to
   initialise (no .flex-viewport): product.js shows one image and builds a
   tappable .gl-gallery-thumbs strip — never a swipe carousel. */
.gl-product-gallery .woocommerce-product-gallery:not(:has(.flex-viewport)) .woocommerce-product-gallery__image { display: none; }
.gl-product-gallery .woocommerce-product-gallery:not(:has(.flex-viewport)) .woocommerce-product-gallery__image.is-active { display: block; }
/* Before JS runs (or with JS off) the first image stays visible */
.gl-product-gallery .woocommerce-product-gallery:not(:has(.flex-viewport)) .woocommerce-product-gallery__wrapper:not(:has(.is-active)) .woocommerce-product-gallery__image:first-child { display: block; }

.gl-gallery-thumbs {
	display: flex;
	gap: 0.5rem;
	margin-top: 0.6rem;
	padding: 2px;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scrollbar-width: none;
}
.gl-gallery-thumbs::-webkit-scrollbar { display: none; }
.gl-gallery-thumbs__btn {
	flex: 0 0 auto;
	width: 76px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	scroll-snap-align: start;
}
.gl-gallery-thumbs__btn img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 12px;
	border: 2px solid transparent;
	background: #fff;
	opacity: 0.6;
	transition: opacity 0.22s ease, border-color 0.22s ease;
}
.gl-gallery-thumbs__btn:hover img { opacity: 0.9; }
.gl-gallery-thumbs__btn.is-active img {
	opacity: 1;
	border-color: var(--gl-gold, #C9A962);
	box-shadow: 0 4px 12px -6px rgba(201, 169, 98, 0.6);
}
.gl-gallery-thumbs__btn:focus-visible {
	outline: 2px solid var(--gl-gold, #C9A962);
	outline-offset: 2px;
	border-radius: 12px;
}
@media (prefers-reduced-motion: reduce) {
	.gl-gallery-thumbs__btn img { transition: none; }
}

/* --- Product tabs actually scroll sideways on mobile -------------------------
   Hardened against overrides: nowrap flex row, momentum scrolling, snap.
   The absolutely-positioned "shelf" (ul::after) only spans the visible box of
   a scroll container and slides away mid-scroll, so on mobile it is replaced
   by a background gradient pinned to the ul box (background-attachment
   defaults to scroll = fixed to the element, not its content). */
@media (max-width: 767px) {
	.woocommerce-tabs ul.tabs {
		display: flex !important;
		flex-wrap: nowrap !important;
		overflow-x: auto !important;
		max-width: 100%;
		scroll-snap-type: x proximity;
		touch-action: pan-x pan-y;
		-webkit-overflow-scrolling: touch;
		background: linear-gradient(180deg, #FDFBF6 0%, #EFE9DB 55%, #E3DBC8 100%) bottom / 100% 9px no-repeat;
	}
	.woocommerce-tabs ul.tabs::after { display: none; }
	.woocommerce-tabs ul.tabs li { flex: 0 0 auto; float: none; scroll-snap-align: start; }
	.woocommerce-tabs ul.tabs li a { white-space: nowrap; }
}

/* --- Sticky add-to-cart bar: compact + clears the bottom nav ----------------- */
@media (max-width: 991px) {
	/* the fixed bottom navigation occupies the bottom edge; sit above it */
	.gl-sticky-cart {
		bottom: calc(56px + env(safe-area-inset-bottom));
		padding: 0.5rem 0;
	}
}
@media (max-width: 767px) {
	.gl-sticky-cart { padding: 0.4rem 0; }
	.gl-sticky-cart__inner { gap: 0.5rem; }
	.gl-sticky-cart__info { gap: 0.5rem; min-width: 0; }
	.gl-sticky-cart__info img { width: 32px; height: 32px; border-radius: 8px; }
	.gl-sticky-cart__info img { width: 28px; height: 28px; }
	.gl-sticky-cart__info strong {
		display: block;
		max-width: 40vw;
		overflow: hidden;
		white-space: nowrap;
		text-overflow: ellipsis;
		font-size: 0.7rem;
		line-height: 1.45;
	}
	.gl-sticky-cart__price { font-size: 0.63rem; }
	.gl-sticky-cart .gl-btn {
		flex: 0 0 auto;
		min-height: 34px; /* still a workable touch target; visually much lighter */
		padding: 0.32rem 0.7rem;
		font-size: 0.7rem;
	}
}

/* ==========================================================================
   1.19.8 — Mobile cart & checkout: self-contained stacked tables
   ==========================================================================
   The stacked layout previously depended on WooCommerce's smallscreen sheet
   for `content: attr(data-title)` and thead hiding; if a plugin dequeues or
   reorders WC styles the cart rendered as an overflowing wide table. These
   rules stand on their own. */
@media (max-width: 991px) {
	.woocommerce table.shop_table_responsive thead { display: none; }
	.woocommerce table.shop_table_responsive,
	.woocommerce table.shop_table_responsive tbody { display: block; width: 100%; }
	.woocommerce table.shop_table_responsive tr { display: block; }
	.woocommerce table.shop_table_responsive tr td {
		display: flex;
		justify-content: space-between;
		align-items: center;
		gap: 0.5rem;
		width: 100%;
		min-width: 0;
		text-align: end;
	}
	.woocommerce table.shop_table_responsive tr td::before {
		content: attr(data-title);
		float: none;
		font-weight: 600;
		color: #8a857b;
	}
	.woocommerce table.shop_table_responsive tr td.product-remove::before,
	.woocommerce table.shop_table_responsive tr td.actions::before { content: none; }
	.woocommerce-cart-form .product-name { min-width: 0; }
	.woocommerce-cart-form .product-name a { overflow-wrap: anywhere; }
	/* Checkout order review: totals rows never overflow */
	#order_review table.shop_table { display: table; width: 100%; table-layout: fixed; }
	#order_review table.shop_table td, #order_review table.shop_table th { overflow-wrap: anywhere; }

	/* Cart rows read as cards: image + remove on one line, no float leaks */
	.woocommerce-cart-form { padding: 0.4rem 0.9rem; }
	.woocommerce table.shop_table_responsive tr { padding: 0.35rem 0; border-bottom: 1px solid rgba(26, 24, 20, 0.08); }
	.woocommerce table.shop_table_responsive tr td { border-bottom: 0; padding: 0.45rem 0.1rem; }
	.woocommerce table.shop_table_responsive td.product-thumbnail { justify-content: center; }
	.woocommerce table.shop_table_responsive td.product-thumbnail::before { content: none; }
	.woocommerce table.shop_table_responsive td.product-thumbnail img { width: 96px; height: 110px; }
	.woocommerce table.shop_table_responsive td.product-remove { justify-content: flex-end; padding-bottom: 0; }

	/* Coupon + update: stacked, full width, nothing overflows */
	.woocommerce table.shop_table_responsive td.actions { display: block; }
	.woocommerce table.shop_table_responsive td.actions .coupon {
		display: flex;
		flex-wrap: wrap;
		gap: 0.5rem;
		width: 100%;
		margin-bottom: 0.6rem;
	}
	.woocommerce table.shop_table_responsive td.actions .coupon input.input-text { flex: 1 1 55%; min-width: 0; }
	.woocommerce table.shop_table_responsive td.actions .coupon .button { flex: 1 1 auto; }
	.woocommerce table.shop_table_responsive td.actions > .button { width: 100%; }

	/* Totals card + checkout CTA full width under the table */
	.woocommerce-cart .cart-collaterals { width: 100%; }
	.woocommerce-cart .cart-collaterals .cart_totals { width: 100%; float: none; }
	.woocommerce-cart .wc-proceed-to-checkout .checkout-button { width: 100%; text-align: center; }
}

/* Empty cart occupies the entire cart grid rather than splitting notice and CTA. */
.woocommerce-cart .woocommerce .gl-cart-empty-state { grid-column: 1 / -1; display: grid; justify-items: center; align-content: center; width: 100%; max-width: 880px; min-height: 380px; margin: 0 auto; padding: 48px 28px; border: 1px solid #e8e3d9; border-radius: 24px; background: #fff; color: #302c25; text-align: center; box-shadow: 0 10px 36px #30261504; }
.gl-cart-empty-state__art { display: grid; place-items: center; width: 108px; height: 108px; margin-bottom: 22px; border-radius: 50%; background: #f8f3e8; color: #ad8b42; }
.gl-cart-empty-state__art svg { display: block; width: 64px; height: 64px; }
.woocommerce .gl-cart-empty-state h2 { margin: 0; color: #302c25; font-size: clamp(1.25rem,2vw,1.6rem); font-weight: 700; line-height: 1.7; }
.woocommerce .gl-cart-empty-state .gl-cart-empty-state__description { max-width: 430px; margin: 10px 0 26px; color: #756f64; font-size: .9rem; line-height: 1.95; }
.woocommerce .gl-cart-empty-state .gl-cart-empty-state__action { margin: 0; padding: 0; }
.woocommerce .gl-cart-empty-state .gl-cart-empty-state__browse { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 46px; margin: 0; padding: 10px 20px; border: 1px solid #29251f; border-radius: 11px; background: #29251f; color: #fff; font: 500 .875rem/1.6 var(--gl-font,Peyda,Tahoma,sans-serif); text-decoration: none; box-shadow: none; }
.woocommerce .gl-cart-empty-state .gl-cart-empty-state__browse:hover { border-color: #5b4b2e; background: #5b4b2e; color: #fff; }
.gl-cart-empty-state__browse svg { display: block; flex: 0 0 16px; width: 16px; height: 16px; }
.gl-cart-empty-state__browse:focus-visible { outline: 3px solid #d2b97d; outline-offset: 4px; }
.woocommerce-cart .woocommerce .gl-cart-empty-extra { grid-column: 1 / -1; min-width: 0; }
.gl-cart-empty-extra:empty { display: none; }
@media(max-width:600px){ .woocommerce-cart .woocommerce .gl-cart-empty-state { min-height: 340px; padding: 34px 20px; border-radius: 19px; } .gl-cart-empty-state__art { width: 94px; height: 94px; margin-bottom: 20px; } .woocommerce .gl-cart-empty-state .gl-cart-empty-state__description { font-size: .85rem; } }
