/**
 * WooCommerce integration styling: shop loop, single product, cart,
 * checkout, my account, wishlist/compare tables, variation swatches,
 * currency switcher.
 */

/* Shop sidebar — Categories / Filter by Price / Active Filters /
   Filter by Attribute / Filter by Rating, all rendered by
   Codelabit_WooCommerce::shop_sidebar() via WooCommerce's own core
   widgets (see class-codelabit-woocommerce.php), styled as a set of
   clean card sections instead of WooCommerce's bare default markup. */

.ron-shop-sidebar .widget {
	background: #fff;
	border: 1px solid #ececec;
	border-radius: var(--ron-border-radius);
	padding: 20px;
	margin-bottom: 24px;
}

.ron-sidebar-empty-notice {
	color: #888;
	font-size: 0.9em;
}

.ron-shop-sidebar .widget-title {
	margin: 0 0 16px;
	font-size: 1.05em;
	padding-bottom: 12px;
	border-bottom: 1px solid #f0f0f0;
}

.ron-shop-sidebar ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ron-shop-sidebar .wc-layered-nav-list li {
	padding: 6px 0;
}

.ron-shop-sidebar .wc-layered-nav-list li a {
	color: var(--ron-color-secondary);
	display: flex;
	justify-content: space-between;
	gap: 8px;
}

.ron-shop-sidebar .wc-layered-nav-list li a:hover {
	color: var(--ron-color-primary);
}

/* Sidebar "Categories" widget — see codelabit_render_sidebar_category_
   widget() in inc/woocommerce/template-tags.php. A parent category with
   children shows a chevron toggle; children are collapsed by default
   and reveal on hover (desktop, pure CSS — same pattern as the primary
   nav's mega menu in ron-megamenu.css) or via the chevron's click
   (`.ron-sidebar-cat-open`, toggled by initSidebarCategoryWidget() in
   ron-theme.js — the touch/no-hover fallback, same pattern as
   initTouchDropdowns()). The category currently being viewed (and its
   parent, so a subcategory page doesn't hide its own siblings) starts
   expanded via that same class, rendered server-side. */
.ron-sidebar-cat-tree {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.ron-sidebar-cat-row {
	display: flex;
	align-items: stretch;
}

.ron-sidebar-cat-link {
	flex: 1;
	min-width: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 9px 10px;
	border-radius: var(--ron-border-radius);
	color: var(--ron-color-secondary);
	font-size: 0.94em;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.ron-sidebar-cat-name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ron-sidebar-cat-link:hover,
.ron-sidebar-cat-row:hover .ron-sidebar-cat-link {
	background: #faf5f8;
	color: var(--ron-color-primary);
}

.ron-sidebar-cat-link.is-active {
	background: var(--ron-color-primary);
	color: #fff;
}

.ron-sidebar-cat-count {
	flex: 0 0 auto;
	font-size: 0.82em;
	color: #999;
	background: #f2f2f2;
	border-radius: 999px;
	padding: 1px 8px;
}

.ron-sidebar-cat-link.is-active .ron-sidebar-cat-count {
	background: rgba(255, 255, 255, 0.25);
	color: #fff;
}

.ron-sidebar-cat-toggle {
	flex: 0 0 auto;
	width: 34px;
	border: none;
	background: transparent;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #999;
}

.ron-sidebar-cat-toggle:hover {
	color: var(--ron-color-primary);
}

.ron-sidebar-cat-caret {
	width: 7px;
	height: 7px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform 0.2s ease;
}

/* Collapsed by default: zero max-height, clipped and non-interactive, so
   a category with many subcategories doesn't visually flash open/closed
   content before its `max-height` transition finishes. */
.ron-sidebar-cat-children {
	max-height: 0;
	overflow: hidden;
	opacity: 0;
	padding-left: 14px;
	margin-top: 2px;
	border-left: 2px solid #f2f2f2;
	transition: max-height 0.25s ease, opacity 0.2s ease;
}

.ron-sidebar-cat-children a {
	font-size: 0.92em;
	padding-top: 7px;
	padding-bottom: 7px;
}

.ron-sidebar-cat-item.ron-has-children:hover > .ron-sidebar-cat-children,
.ron-sidebar-cat-item.ron-sidebar-cat-open > .ron-sidebar-cat-children {
	max-height: 600px;
	opacity: 1;
}

.ron-sidebar-cat-item.ron-has-children:hover > .ron-sidebar-cat-row .ron-sidebar-cat-caret,
.ron-sidebar-cat-item.ron-sidebar-cat-open > .ron-sidebar-cat-row .ron-sidebar-cat-caret {
	transform: rotate(-135deg);
}

.ron-shop-sidebar .wc-layered-nav-list li.chosen a::before {
	content: '\2715';
	margin-right: 6px;
	font-size: 0.8em;
}

/* WooCommerce's Filter by Price widget renders a jQuery-UI slider
   (.price_slider / .ui-slider); its default look ships in WooCommerce's
   own frontend stylesheet — this just re-colors the handles/range to
   the brand primary color instead of WooCommerce's default green. */
.ron-shop-sidebar .price_slider .ui-slider-range,
.ron-shop-sidebar .price_slider .ui-slider-handle {
	background: var(--ron-color-primary);
	border-color: var(--ron-color-primary);
}

.ron-shop-sidebar .price_slider_amount {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: 14px;
}

.ron-shop-sidebar .price_slider_amount .button {
	padding: 8px 18px;
	font-size: 0.85em;
}

.ron-shop-sidebar .star-rating {
	overflow: hidden;
	position: relative;
	height: 1em;
	line-height: 1em;
	width: 5.4em;
	font-family: serif;
}

.ron-shop-sidebar .star-rating::before {
	content: '\2606\2606\2606\2606\2606';
	float: left;
	top: 0;
	left: 0;
	position: absolute;
}

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

.ron-shop-sidebar .star-rating span::before {
	content: '\2605\2605\2605\2605\2605';
	top: 0;
	position: absolute;
	left: 0;
	color: #f5a623;
}

/* Shop/category archives: sidebar left/right per WooLab Options > General
   > Shop Sidebar Position; product cards stay full-width inside the
   remaining column via the `.woocommerce ul.products li.product` rule
   further down, so a 4-column grid naturally narrows to fit. */
.ron-content-layout.has-sidebar-left.ron-woocommerce-layout ul.products,
.ron-content-layout.has-sidebar-right.ron-woocommerce-layout ul.products {
	grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1100px) {
	.ron-content-layout.has-sidebar-left.ron-woocommerce-layout ul.products,
	.ron-content-layout.has-sidebar-right.ron-woocommerce-layout ul.products {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* IMPORTANT — specificity, same bug class as the two comments above:
   this selector (0,4,1) is MORE specific than the plain `ul.products`
   breakpoints further down this file (`@media (max-width: 780px) {
   ul.products {...} }` etc., 0,1,1), so on any shop/category page WITH
   a sidebar those generic mobile breakpoints never won here — the grid
   stayed frozen at the 1100px rule's 2 columns all the way down to the
   narrowest phone. This affected single-product pages too whenever
   Shop > "Single Product Sidebar" is on (see shop_has_sidebar() in
   class-codelabit-woocommerce.php), since the related-products `ul.
   products` there matches this exact selector — one shared cause for
   two reports: "Category & Shop page product column (grid style) need
   to fix, 1 column is enough for mobile" and "product single page
   related product card need to full wide". Below 960px the sidebar
   itself has already stacked out of the way (see ron-layout.css's
   `.ron-content-layout.has-sidebar-*` collapsing to one column there),
   so the product grid is genuinely full-width again by this point —
   these values intentionally mirror the plain `ul.products` breakpoints
   exactly, so the two can never disagree regardless of which one wins. */
@media (max-width: 780px) {
	.ron-content-layout.has-sidebar-left.ron-woocommerce-layout ul.products,
	.ron-content-layout.has-sidebar-right.ron-woocommerce-layout ul.products {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 480px) {
	.ron-content-layout.has-sidebar-left.ron-woocommerce-layout ul.products,
	.ron-content-layout.has-sidebar-right.ron-woocommerce-layout ul.products {
		grid-template-columns: 1fr;
	}
}

/* Explicit column count (WooCommerce core's own `columns-N` class on
   `ul.products`, via `wc_get_loop_prop('columns', N)`) was being silently
   ignored everywhere — every `ul.products` on the site, cross-sells
   included, was always forced into the SAME hardcoded 4/3/2/1-column grid
   above regardless of what WooCommerce itself requested. Cart cross-sells
   specifically always request exactly `columns-2` (hardcoded in
   WC_Cart::get_cross_sells()'s own template call, independent of the shop's
   "Products per row" setting) — with only one cross-sell product to show,
   a 4-column grid put it in the first of four cells (~25% width) instead
   of the 50% "half width" a 2-column grid actually means. This also fixes
   a latent, previously-unnoticed inconsistency on the main shop loop
   itself: WooCommerce always tags it with whatever `loop_columns()`
   (this theme's own `products_per_row` option) sets, but the CSS below
   was never actually reading that class back — it was purely coincidental
   that the option's default (4) matched the CSS's own hardcoded default.
   `!important` + matching the sidebar-scoped selectors above (same
   "specificity" bug class already documented twice in this file) so this
   wins in every context those rules apply in, sidebar or no sidebar. */
ul.products.columns-1,
.ron-content-layout.has-sidebar-left.ron-woocommerce-layout ul.products.columns-1,
.ron-content-layout.has-sidebar-right.ron-woocommerce-layout ul.products.columns-1 {
	grid-template-columns: 1fr !important;
}

ul.products.columns-2,
.ron-content-layout.has-sidebar-left.ron-woocommerce-layout ul.products.columns-2,
.ron-content-layout.has-sidebar-right.ron-woocommerce-layout ul.products.columns-2 {
	grid-template-columns: repeat(2, 1fr) !important;
}

ul.products.columns-3,
.ron-content-layout.has-sidebar-left.ron-woocommerce-layout ul.products.columns-3,
.ron-content-layout.has-sidebar-right.ron-woocommerce-layout ul.products.columns-3 {
	grid-template-columns: repeat(3, 1fr) !important;
}

ul.products.columns-4,
.ron-content-layout.has-sidebar-left.ron-woocommerce-layout ul.products.columns-4,
.ron-content-layout.has-sidebar-right.ron-woocommerce-layout ul.products.columns-4 {
	grid-template-columns: repeat(4, 1fr) !important;
}

ul.products.columns-5,
.ron-content-layout.has-sidebar-left.ron-woocommerce-layout ul.products.columns-5,
.ron-content-layout.has-sidebar-right.ron-woocommerce-layout ul.products.columns-5 {
	grid-template-columns: repeat(5, 1fr) !important;
}

ul.products.columns-6,
.ron-content-layout.has-sidebar-left.ron-woocommerce-layout ul.products.columns-6,
.ron-content-layout.has-sidebar-right.ron-woocommerce-layout ul.products.columns-6 {
	grid-template-columns: repeat(6, 1fr) !important;
}

/* Still collapse an explicit column count responsively — WooCommerce's
   `columns-N` class is a desktop-intent request, not a demand to overflow
   a phone screen with N cramped columns. Mirrors the plain-grid breakpoints
   above exactly. */
@media (max-width: 1100px) {
	ul.products.columns-4,
	ul.products.columns-5,
	ul.products.columns-6,
	.ron-content-layout.has-sidebar-left.ron-woocommerce-layout ul.products.columns-4,
	.ron-content-layout.has-sidebar-left.ron-woocommerce-layout ul.products.columns-5,
	.ron-content-layout.has-sidebar-left.ron-woocommerce-layout ul.products.columns-6,
	.ron-content-layout.has-sidebar-right.ron-woocommerce-layout ul.products.columns-4,
	.ron-content-layout.has-sidebar-right.ron-woocommerce-layout ul.products.columns-5,
	.ron-content-layout.has-sidebar-right.ron-woocommerce-layout ul.products.columns-6 {
		grid-template-columns: repeat(3, 1fr) !important;
	}
}

@media (max-width: 780px) {
	ul.products.columns-3,
	ul.products.columns-4,
	ul.products.columns-5,
	ul.products.columns-6,
	.ron-content-layout.has-sidebar-left.ron-woocommerce-layout ul.products.columns-3,
	.ron-content-layout.has-sidebar-left.ron-woocommerce-layout ul.products.columns-4,
	.ron-content-layout.has-sidebar-left.ron-woocommerce-layout ul.products.columns-5,
	.ron-content-layout.has-sidebar-left.ron-woocommerce-layout ul.products.columns-6,
	.ron-content-layout.has-sidebar-right.ron-woocommerce-layout ul.products.columns-3,
	.ron-content-layout.has-sidebar-right.ron-woocommerce-layout ul.products.columns-4,
	.ron-content-layout.has-sidebar-right.ron-woocommerce-layout ul.products.columns-5,
	.ron-content-layout.has-sidebar-right.ron-woocommerce-layout ul.products.columns-6 {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}

@media (max-width: 480px) {
	ul.products[class*="columns-"],
	.ron-content-layout.has-sidebar-left.ron-woocommerce-layout ul.products[class*="columns-"],
	.ron-content-layout.has-sidebar-right.ron-woocommerce-layout ul.products[class*="columns-"] {
		grid-template-columns: 1fr !important;
	}
}

/* Shop loop */

.ron-shop-view-toggle {
	display: flex;
	gap: 6px;
	margin-bottom: 20px;
}

.ron-shop-view-btn {
	width: 36px;
	height: 36px;
	border: 1px solid #e2e2e2;
	border-radius: var(--ron-border-radius);
	background: #fff;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.ron-shop-view-btn .ron-icon {
	width: 16px;
	height: 16px;
}

.ron-shop-view-btn.is-active {
	background: var(--ron-color-primary);
}

.ron-shop-view-btn.is-active .ron-icon {
	background-color: #fff;
}

ul.products {
	display: grid !important;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	list-style: none;
	margin: 0 0 32px !important;
	padding: 0;
}

/* WooCommerce's own default stylesheet clearfixes `ul.products` for its
   float-based layout with `ul.products:before, ul.products:after {
   content: ' '; display: table; }`. A `::before`/`::after` with content
   is a real box, and inside a `display:grid` container a real box is a
   real grid item — so that clearfix (harmless for float, meaningless for
   grid) was silently occupying the FIRST cell of the grid, pushing every
   actual product over by one and producing the "first row missing its
   first product, every row after looks fine" pattern. Grid doesn't need
   a clearfix at all, so this just switches it off.

   IMPORTANT — specificity: WooCommerce's own woocommerce.css ships this
   exact clearfix scoped as `.woocommerce ul.products::before` (2 classes,
   2 elements). A bare `ul.products::before` (1 class, 2 elements) loses
   that specificity battle regardless of stylesheet load order, so the
   override below was silently never winning. Match the `.woocommerce` /
   `.woocommerce-page` body-class scoping (WooCommerce always adds one of
   these) and add !important as a hard guarantee against any future WC
   core CSS change. */
.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::before,
.woocommerce-page ul.products::after,
ul.products::before,
ul.products::after {
	content: none !important;
	display: none !important;
}

/* IMPORTANT — specificity (same class of bug as the clearfix comment
   above): on any shop/category page WITH a sidebar — the default —
   `.ron-content-layout.has-sidebar-left.ron-woocommerce-layout ul.products`
   (4 classes + 1 type, specificity 0,4,1) sets the grid to 3 (or, under
   1100px, 2) columns. `ul.products.ron-shop-list-view` below it is only
   2 classes + 1 type (0,2,1) — lower specificity, so switching to list
   view left the grid at 3/2 columns instead of becoming a true one-
   product-per-row list, regardless of this rule's position in the
   file. `!important` is a hard guarantee list view always wins, at
   every breakpoint, sidebar or not. */
body.ron-shop-default-view-list ul.products,
ul.products.ron-shop-list-view {
	grid-template-columns: 1fr !important;
}

/* `align-items` was set to `flex-start` here and then, in a second rule
   further down targeting this exact same selector, immediately
   overridden to `stretch` — same specificity, later in the cascade wins.
   `stretch` forced the button to match the image/title/price link's
   full height, producing a tall vertical bar instead of a normal
   button. Merged back into one rule, kept `flex-start`.
   `li.product` has 3 real flex-item children in list view: the image/
   title/price link, the "Add to Cart" button, and the wishlist/compare
   `.ron-product-actions` (screen-reader text is `position: absolute`
   and drops out of flow, so it doesn't count). Putting all three in one
   row — the original layout — squeezed the image down to fit the
   button beside it, so both read as cramped and small. `flex-wrap: wrap`
   plus `flex-basis: 100%` on the link forces a wrap point right after
   it: the image/title/price link fills its own full-width row, and the
   button + wishlist/compare actions flow onto a second row below it,
   together, at their natural size. */
ul.products.ron-shop-list-view li.product {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	align-items: flex-start;
	text-align: left;
	padding: 16px;
}

/* The image/title/price link becomes its own small grid — thumbnail on
   the left spanning both rows, title top-right, price bottom-right —
   instead of the image and text simply stacking on top of each other. */
ul.products.ron-shop-list-view li.product > a.woocommerce-loop-product__link {
	display: grid;
	grid-template-columns: 120px 1fr;
	column-gap: 20px;
	row-gap: 4px;
	align-items: center;
	flex: 1 1 100%;
	width: 100%;
}

ul.products.ron-shop-list-view li.product img {
	grid-row: 1 / 3;
	grid-column: 1;
	width: 120px;
	height: 120px;
	object-fit: cover;
	border-radius: var(--ron-radius-card);
}

ul.products.ron-shop-list-view li.product .woocommerce-loop-product__title,
ul.products.ron-shop-list-view li.product h2,
ul.products.ron-shop-list-view li.product h3 {
	grid-column: 2;
}

ul.products.ron-shop-list-view li.product .price {
	grid-column: 2;
}

/* Actions row — Add to Cart plus wishlist/compare, together, below the
   image/title/price row rather than squeezed beside it. */
ul.products.ron-shop-list-view li.product .ron-product-actions {
	justify-content: flex-start;
}

ul.products.ron-shop-list-view li.product .woocommerce-loop-product__title,
ul.products.ron-shop-list-view li.product h2,
ul.products.ron-shop-list-view li.product h3,
ul.products.ron-shop-list-view li.product .price,
ul.products.ron-shop-list-view li.product .button,
ul.products.ron-shop-list-view li.product .ron-product-actions {
	padding-left: 0;
	padding-right: 0;
	margin-left: 0;
	width: auto;
}

/* "Category & Shop page product column (list style) need to fix, product
   box need to full wide for mobile" — the fixed 120px thumbnail-beside-
   text grid above reads as cramped on a narrow phone screen (a small
   square photo squeezed against wrapping title/price text). Below this
   breakpoint the thumbnail becomes a normal full-width image stacked
   above the title/price instead of a fixed-size column beside them, so
   the whole card genuinely fills the available width. */
@media (max-width: 480px) {
	ul.products.ron-shop-list-view li.product > a.woocommerce-loop-product__link {
		grid-template-columns: 1fr;
	}

	ul.products.ron-shop-list-view li.product img {
		grid-row: auto;
		grid-column: 1;
		width: 100%;
		height: auto;
		aspect-ratio: 1 / 1;
	}

	ul.products.ron-shop-list-view li.product .woocommerce-loop-product__title,
	ul.products.ron-shop-list-view li.product h2,
	ul.products.ron-shop-list-view li.product h3,
	ul.products.ron-shop-list-view li.product .price {
		grid-column: 1;
	}
}

/* Product card — a flat <li> with a bare image previously read as an
   unfinished list; wrapping it as an elevated card with a hover lift is
   the single highest-impact change for a "modern, realistic" shop grid. */
ul.products li.product {
	position: relative;
	text-align: center;
	background: #fff;
	border-radius: var(--ron-radius-card);
	overflow: hidden;
	box-shadow: var(--ron-shadow-sm);
	transition: transform var(--ron-transition), box-shadow var(--ron-transition);
}

ul.products li.product:hover {
	transform: translateY(-6px);
	box-shadow: var(--ron-shadow-md);
}

/* WooCommerce's own frontend stylesheet ships `li.product { width: 22.1%;
   float: left; margin-right: 3.8%; }` (float ignored by grid, but the
   width still applied), leaving the card narrower than its grid cell —
   this is what read as "product grid not working properly". The grid on
   `ul.products` already sizes each cell, so every card should simply
   fill it.

   `!important` added here (was previously unqualified) because WooCommerce
   also ships PER-COLUMN-COUNT variants of this exact rule —
   `.woocommerce ul.products.columns-2 li.product { width: 48%; }`,
   `...columns-3... { width: 30.83%; }`, etc, from woocommerce-layout.css,
   plus a `[class*="columns-"]` catch-all in woocommerce-smallscreen.css.
   Each of those carries one extra class in its selector than the rule
   below, so it's MORE specific and silently won even after the
   grid-template-columns fix above — the grid correctly switched to 2
   tracks, but every card still rendered at WC's own hardcoded 48% instead
   of filling its track. Confirmed live via injection: cards sat at 451px
   (48% of a 940px track) until this rule got `!important`, then correctly
   filled the full 941px (~49%, accounting for the grid gap) track. Same
   "extra class beats us on specificity" bug class already fixed twice
   elsewhere in this file (the columns-N grid-template-columns block above,
   and the swatch-select min-width fix in this same stylesheet). */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
	width: 100% !important;
	float: none !important;
	margin: 0 !important;
}

/* Scoped to the image/title/price wrapper link specifically — NOT a bare
   `ul.products li.product > a`. The "Add to Cart" button (`a.button`) is
   also a direct child of `li.product`, and a bare `> a` selector has
   higher specificity than `.woocommerce a.button`'s own `color: #fff`
   (ron-base.css), so it was silently overriding the button's white text
   with the inherited navy link color — making the button's label render
   in the same navy as its own background and effectively disappear. */
ul.products li.product > a.woocommerce-loop-product__link {
	display: block;
	color: inherit;
	text-decoration: none;
}

ul.products li.product img {
	border-radius: 0;
	display: block;
	width: 100%;
	height: auto;
}

ul.products li.product .onsale {
	position: absolute;
	top: 12px;
	left: 12px;
	background: var(--ron-color-link-hover);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	padding: 5px 12px;
	border-radius: 20px;
	z-index: 2;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

ul.products li.product .woocommerce-loop-product__title,
ul.products li.product h2,
ul.products li.product h3 {
	padding: 0 16px;
	margin: 16px 0 0;
	font-size: 1em;
}

ul.products li.product .price {
	display: block;
	padding: 0 16px;
	margin: 6px 0 16px;
	color: var(--ron-color-primary);
	font-weight: 700;
	font-size: 1.05em;
}

ul.products li.product .price del {
	color: #999;
	font-weight: 400;
	margin-right: 6px;
}

ul.products li.product .button {
	margin: 0 16px 16px;
	width: calc(100% - 32px);
}

.ron-product-actions {
	display: flex;
	gap: 8px;
	justify-content: center;
	padding: 0 16px 18px;
}

.ron-wishlist-btn,
.ron-compare-btn {
	background: #fff;
	border: 1px solid #e2e2e2;
	border-radius: 50%;
	width: 38px;
	height: 38px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background var(--ron-transition), border-color var(--ron-transition), transform var(--ron-transition);
}

.ron-wishlist-btn:hover,
.ron-compare-btn:hover {
	background: var(--ron-color-primary);
	border-color: var(--ron-color-primary);
	transform: translateY(-2px);
}

.ron-wishlist-btn:hover .ron-icon,
.ron-compare-btn:hover .ron-icon {
	background-color: #fff;
}

.ron-wishlist-btn .ron-wishlist-btn-label,
.ron-compare-btn .ron-compare-btn-label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}

.ron-wishlist-btn.is-active,
.ron-compare-btn.is-active {
	border-color: var(--ron-color-primary);
	background: var(--ron-color-primary);
}

.ron-wishlist-btn.is-active .ron-icon,
.ron-compare-btn.is-active .ron-icon {
	background-color: #fff;
}

@media (max-width: 1100px) { ul.products { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 780px)  { ul.products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { ul.products { grid-template-columns: 1fr; } }

/* Single product */

.single-product div.product {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
}

/* WooCommerce's own frontend stylesheet still ships `div.product div.images
   { width: 48%; float: left; }` / `div.product div.summary { width: 48%;
   float: right; }` (its original, non-grid single-product layout, from
   woocommerce-layout.css). Float is ignored once these become CSS Grid
   items via the rule above, but the explicit `width: 48%` still fully
   applies — shrinking the gallery/summary to 48% of their own grid column
   instead of filling it, which is what read as "left side image not
   covering the block width" (a real ~300px gallery sitting in a much
   wider ~616px column with dead space beside it). This is the exact same
   class of bug already fixed once for the shop grid's `li.product` (see
   the comment further up this file) — WooCommerce core's own selector
   here is specific enough (`.woocommerce div.product div.images`, 3
   classes) that `!important` is the reliable way to beat it regardless of
   what order the stylesheets load in. */
.single-product div.product > .images,
.single-product div.product > .summary {
	width: 100% !important;
	float: none !important;
}

@media (max-width: 780px) {
	.single-product div.product { grid-template-columns: 1fr; }
}

/* Tabs, upsells and related products all print via
   `woocommerce_after_single_product_summary` as direct-child siblings of
   the gallery/summary divs — inside `.single-product div.product`'s
   2-column grid that makes them grid items too, so without an explicit
   span they were being squeezed into a narrow column instead of running
   full width below the product, which is what made "related products"
   look like it wasn't showing in the right place. */
.single-product div.product > .woocommerce-tabs,
.single-product div.product > .related.products,
.single-product div.product > .up-sells.products {
	grid-column: 1 / -1;
}

.related.products,
.up-sells.products {
	margin-top: 56px;
}

.related.products > h2,
.up-sells.products > h2 {
	margin-bottom: 24px;
}

/* Product meta (SKU / Category / Tags / Brand) — WooCommerce core ships
   these as `<span>` elements inside `.product_meta` with no `display`
   override at all, so the browser's own default `display: inline` leaves
   them all flowing in the same paragraph-like run — Tags and Brand (and
   Category, and SKU) only ever broke onto separate visual lines by luck,
   whenever the column happened to be narrow enough to force a wrap; at a
   wider column they can end up sharing one line, which is what read as
   "Tags and Brand showing same line, need to separate." WooCommerce's own
   native Brands feature reuses the exact same `.posted_in` class Category
   already uses (there is no separate "brand" class to hook), so the fix
   targets every direct child span generically rather than one class name,
   giving SKU/Category/Tags/Brand each their own row regardless of width
   or how many taxonomies a product has. */
.summary .product_meta > span {
	display: block;
	margin: 0 0 6px;
	color: #777;
}

.summary .product_meta > span:last-child {
	margin-bottom: 0;
}

.summary .product_meta a {
	color: var(--ron-color-primary, #E00F7A);
}

/* Gallery — left column. Zoom/lightbox/slider are WooCommerce core
   features (no plugin), switched on via add_theme_support() in
   class-codelabit-theme.php; this just gives the main image, thumbnail
   strip, and PhotoSwipe lightbox an actual designed look instead of
   WooCommerce's unstyled defaults. */
.single-product .woocommerce-product-gallery {
	position: relative;
}

.single-product .woocommerce-product-gallery__image {
	border-radius: var(--ron-border-radius);
	overflow: hidden;
	background: #f8f8f8;
	cursor: zoom-in;
}

.single-product .woocommerce-product-gallery__image img {
	width: 100%;
	height: auto;
	display: block;
}

.single-product .flex-control-thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
}

.single-product .flex-control-thumbs li {
	width: calc(25% - 8px);
}

.single-product .flex-control-thumbs img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: var(--ron-border-radius);
	border: 2px solid transparent;
	cursor: pointer;
	opacity: 0.75;
	transition: opacity var(--ron-transition), border-color var(--ron-transition);
}

.single-product .flex-control-thumbs img:hover {
	opacity: 1;
}

.single-product .flex-control-thumbs img.flex-active {
	opacity: 1;
	border-color: var(--ron-color-primary);
}

.single-product span.onsale {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	background: var(--ron-color-link-hover);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	padding: 5px 12px;
	border-radius: 20px;
}

/* PhotoSwipe lightbox (WooCommerce core) sits above everything else on
   the page, including a sticky header. */
.pswp {
	z-index: 100000;
}

/* Inside the single-product summary column the breadcrumb sits directly
   under the title, already inside a card-like column — drop the pill chip
   background/padding from the base style so it reads as a plain, quiet
   trail line there instead of a chip inside a chip. */
.single-product .summary .ron-breadcrumbs {
	display: block;
	padding: 6px 0 16px;
	background: none;
	border-radius: 0;
}

.single-product .price {
	font-size: 1.6em;
	color: var(--ron-color-primary);
	font-weight: 700;
}

.single-product .ron-wishlist-btn,
.single-product .ron-compare-btn {
	margin-left: 10px;
	vertical-align: middle;
}

/* Variation swatches */

/* Visually-hide the native variation <select> that swatches drive under the
   hood (WooCommerce's own add-to-cart-variation.js still reads/writes it).
   `!important` on every box-model property is deliberate, not decorative —
   two separate WooCommerce core rules (both in woocommerce.css, both
   higher-specificity or just plain conflicting with this one) were fighting
   this hide and, between them, winning:
     1. ".woocommerce form select { width: 100%; }" — two type selectors
        vs. this rule's one, so it wins on specificity alone regardless of
        stylesheet load order.
     2. ".woocommerce div.product form.cart .variations select
        { min-width: 75%; max-width: 100%; }" — even after (1) is beaten,
        a plain `width: 1px` still loses to this `min-width: 75%` because
        min-width always wins a min/max conflict, per the CSS box-sizing
        spec, regardless of what width or max-width say. 75% of this
        absolutely-positioned select's containing block (the page, since no
        positioned ancestor exists) is what rendered as ~960px on a
        1280px-wide layout — exactly the horizontal scrollbar reported on
        variable-product pages. (Simple products have no variations form/
        select at all, so they never hit this — matches the report that
        only variable products showed the scrollbar.) `min-width` needs
        its own `!important` override here, not just `width`. */
.ron-swatch-original-select select {
	position: absolute !important;
	width: 1px !important;
	min-width: 1px !important;
	max-width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	border: 0 !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	opacity: 0;
	pointer-events: none;
}

.ron-swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 8px;
}

.ron-swatch {
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.ron-swatch--color {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 2px solid #fff;
	box-shadow: 0 0 0 1px #ddd;
}

.ron-swatch--color.is-selected {
	box-shadow: 0 0 0 2px var(--ron-color-primary);
}

.ron-swatch--image {
	width: 44px;
	height: 44px;
	border-radius: var(--ron-border-radius);
	overflow: hidden;
	border: 2px solid #ddd;
}

.ron-swatch--image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ron-swatch--image.is-selected {
	border-color: var(--ron-color-primary);
}

.ron-swatch--button {
	padding: 8px 16px;
	border: 1px solid #ddd;
	border-radius: var(--ron-border-radius);
	font-size: 0.9em;
}

.ron-swatch--button.is-selected {
	border-color: var(--ron-color-primary);
	background: var(--ron-color-primary);
	color: #fff;
}

/* Cart / Checkout */

.woocommerce-cart table.cart,
.woocommerce-checkout table.shop_table {
	width: 100%;
	border-collapse: collapse;
}

.woocommerce-cart table.cart th,
.woocommerce-cart table.cart td,
.woocommerce-checkout table.shop_table th,
.woocommerce-checkout table.shop_table td {
	padding: 14px 10px;
	border-bottom: 1px solid #eee;
}

.woocommerce-cart .cart-collaterals,
.woocommerce-checkout #order_review {
	background: #f8f8f8;
	border-radius: var(--ron-border-radius);
	padding: 24px;
}

.woocommerce-checkout.ron-distraction-free .ron-header,
.woocommerce-checkout.ron-distraction-free .ron-footer {
	display: none;
}

/* My Account */

.woocommerce-account .woocommerce-MyAccount-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	border: 1px solid #eee;
	border-radius: var(--ron-border-radius);
	overflow: hidden;
}

.woocommerce-account .woocommerce-MyAccount-navigation li {
	border-bottom: 1px solid #eee;
}

.woocommerce-account .woocommerce-MyAccount-navigation li a {
	display: block;
	padding: 12px 18px;
	color: var(--ron-color-secondary);
}

.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
	background: var(--ron-color-primary);
	color: #fff;
}

.woocommerce-account .woocommerce-MyAccount-content {
	margin-top: 24px;
}

@media (min-width: 782px) {
	.woocommerce-account .woocommerce-MyAccount-navigation {
		float: left;
		width: 220px;
	}
	.woocommerce-account .woocommerce-MyAccount-content {
		float: right;
		width: calc(100% - 250px);
		margin-top: 0;
	}
}

/* Wishlist / Compare tables */

.ron-wishlist-table,
.ron-compare-table {
	width: 100%;
	border-collapse: collapse;
}

.ron-wishlist-table th,
.ron-wishlist-table td,
.ron-compare-table th,
.ron-compare-table td {
	padding: 14px 10px;
	border-bottom: 1px solid #eee;
	text-align: left;
}

.ron-wishlist-product a {
	display: flex;
	align-items: center;
	gap: 14px;
	color: var(--ron-color-secondary);
}

.ron-wishlist-product img {
	width: 60px;
	border-radius: var(--ron-border-radius);
}

.ron-wishlist-remove,
.ron-compare-remove {
	background: none;
	border: none;
	color: #999;
	cursor: pointer;
	text-decoration: underline;
}

.ron-compare-table-wrap {
	overflow-x: auto;
}

.ron-compare-table th {
	width: 160px;
	background: #f8f8f8;
}

.ron-compare-row-image img {
	width: 100%;
	max-width: 180px;
	border-radius: var(--ron-border-radius);
}

/* Currency switcher */

.ron-currency-switcher select {
	border: 1px solid #e2e2e2;
	border-radius: var(--ron-border-radius);
	padding: 6px 10px;
	background: #fff;
}

/* Star ratings — avoids WooCommerce's own star-font dependency by
   drawing rating with the ron-icon-star mask instead. */

.star-rating {
	overflow: hidden;
	position: relative;
	height: 1em;
	line-height: 1em;
	width: 5.4em;
	font-size: 1em;
}

.star-rating::before {
	content: '';
	position: absolute;
	inset: 0;
	background-color: #e2e2e2;
	-webkit-mask: repeat-x left center / 1.15em url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3.1 6.3 6.9 1-5 4.9 1.2 6.8L12 17.8 5.8 21l1.2-6.8-5-4.9 6.9-1z'/%3E%3C/svg%3E");
	mask: repeat-x left center / 1.15em url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3.1 6.3 6.9 1-5 4.9 1.2 6.8L12 17.8 5.8 21l1.2-6.8-5-4.9 6.9-1z'/%3E%3C/svg%3E");
}

.star-rating span {
	overflow: hidden;
	float: left;
	top: 0;
	left: 0;
	position: absolute;
	height: 100%;
}

.star-rating span::before {
	content: '';
	position: absolute;
	inset: 0;
	width: 5.4em;
	background-color: #f5a623;
	-webkit-mask: repeat-x left center / 1.15em url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3.1 6.3 6.9 1-5 4.9 1.2 6.8L12 17.8 5.8 21l1.2-6.8-5-4.9 6.9-1z'/%3E%3C/svg%3E");
	mask: repeat-x left center / 1.15em url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3.1 6.3 6.9 1-5 4.9 1.2 6.8L12 17.8 5.8 21l1.2-6.8-5-4.9 6.9-1z'/%3E%3C/svg%3E");
}

/* Quantity input */

.quantity .qty {
	width: 60px;
	padding: 10px;
	border: 1px solid #e2e2e2;
	border-radius: var(--ron-border-radius);
	text-align: center;
}

/* ==========================================================================
   Round C, item 5 — "Need to change some design for My Account, Cart and
   Checkout pages (basically all fields); give then new modern looking
   design." Buttons across the whole site (including these three page
   types — "Place order", "Proceed to Checkout", "Update cart", etc.) were
   already covered by the pill-shaped `.woocommerce a.button` / `.woocommerce
   input.button` rules in ron-base.css, but nothing in this file had ever
   styled the actual FORM FIELDS these pages are mostly made of — every
   text input, select, and textarea in checkout billing/shipping, account
   login/register/edit-account/edit-address, and the cart's coupon box was
   still rendering with the bare browser default look, which is what made
   these specific pages look unfinished next to the rest of the theme.
   No custom page templates are added here (WooCommerce's own default
   templates are left alone, per this theme's "no premium plugin, theme
   custom function only" approach) — this is styling only, targeting
   WooCommerce core's own stable class names/markup structure.
   ========================================================================== */

/* -- Form fields (shared by checkout, my-account login/register/edit-
   account/edit-address, and the cart coupon box) -------------------------- */

.woocommerce form .form-row label {
	display: block;
	margin-bottom: 6px;
	font-weight: 500;
	font-size: 0.92em;
	color: var(--ron-color-secondary);
}

.woocommerce form .form-row label .required {
	color: var(--ron-color-primary);
	text-decoration: none;
}

/* Follow-up fix, reported live via screenshots ("need fix css for checkout
   page entry fields, this design like old"): this whole rule block below
   was already correctly written and shipping since Session 20 (v1.0.15) —
   confirmed live it WAS loading (ron-woocommerce.css?ver=1.0.17) — but a
   newer WooCommerce core version now installed on the live site (11.1.0,
   well past this theme's "tested up to 9.3") ships its own default field
   styling in woocommerce.css: `.woocommerce form .form-row .input-text,
   .woocommerce form .form-row select { border: var(--wc-form-border-width)
   solid var(--wc-form-border-color); border-radius: var(--wc-form-border-
   radius); padding: 0.5em; }`. That selector has 3 class-level matches
   (.woocommerce, .form-row, .input-text) against this rule's 2
   (.woocommerce + a [type="..."] attribute selector counts the same tier
   as a class) — CSS specificity compares class-tier counts before
   anything else, so WC core's rule silently won regardless of source
   order, overriding OUR border/radius/padding with ITS OWN defaults
   (confirmed live: `--wc-form-border-color` resolved to a dark, un-themed
   rgba value, `--wc-form-border-radius` to a flat 4px) — exactly the
   "plain old browser field" look reported, on every text/email/tel/
   number/search/url input, every textarea, every select, and the
   select2 country/state dropdowns, since one shared WC-core rule covers
   all of them at once. Root-caused live by walking every matching CSSOM
   rule for an actual checkout field and comparing specificity by hand,
   then confirmed the fix by temporarily injecting an `!important`
   override directly in the browser and screenshotting the result before
   touching this file. `!important` here (this project's established,
   fastest guaranteed fix for a same-origin specificity fight — see "Key
   architecture decisions") is deliberately safer than raising selector
   specificity to match WC core's exactly, since a FUTURE WooCommerce
   update could freely change ITS OWN selector's specificity again server-
   side with no warning; `!important` wins regardless of how core's
   selector is written, as long as core doesn't also reach for
   `!important` (confirmed it doesn't, for these properties). */
.woocommerce form input.input-text,
.woocommerce form input[type="text"],
.woocommerce form input[type="email"],
.woocommerce form input[type="tel"],
.woocommerce form input[type="password"],
.woocommerce form input[type="number"],
.woocommerce form input[type="search"],
.woocommerce form input[type="url"],
.woocommerce form textarea,
.woocommerce form select,
.woocommerce form .select2-container .select2-selection--single {
	width: 100%;
	padding: 12px 14px !important;
	border: 1px solid #e2e2e2 !important;
	border-radius: var(--ron-border-radius) !important;
	background: #fff;
	color: var(--ron-color-secondary);
	font-family: inherit;
	font-size: 0.95em;
	transition: border-color var(--ron-transition), box-shadow var(--ron-transition);
}

.woocommerce form textarea {
	min-height: 110px;
}

.woocommerce form input.input-text:focus,
.woocommerce form input[type="text"]:focus,
.woocommerce form input[type="email"]:focus,
.woocommerce form input[type="tel"]:focus,
.woocommerce form input[type="password"]:focus,
.woocommerce form input[type="number"]:focus,
.woocommerce form input[type="search"]:focus,
.woocommerce form input[type="url"]:focus,
.woocommerce form textarea:focus,
.woocommerce form select:focus {
	outline: none;
	border-color: var(--ron-color-primary) !important;
	box-shadow: 0 0 0 3px rgba(224, 15, 122, 0.12);
}

/* Select2 (WooCommerce's own country/state dropdowns) — matched to the
   plain-select look above so the two don't visually clash on the same
   form; only takes effect if select2 assets are actually enqueued for
   that field, harmless no-op otherwise. */
.woocommerce form .select2-container .select2-selection--single {
	height: auto;
	display: flex;
	align-items: center;
}

.woocommerce form .select2-container .select2-selection__rendered {
	padding: 0;
	line-height: normal;
}

.woocommerce form .select2-container .select2-selection__arrow {
	height: 100%;
}

.woocommerce form .select2-dropdown {
	border-color: #e2e2e2;
	border-radius: var(--ron-border-radius);
	overflow: hidden;
}

.woocommerce form .select2-container--default .select2-results__option--highlighted[aria-selected] {
	background: var(--ron-color-primary);
}

/* Checkboxes/radios used throughout (payment methods handled separately
   below; this covers plain ones like "Create an account?", "Ship to a
   different address?"). */
.woocommerce form .form-row input[type="checkbox"],
.woocommerce form .form-row input[type="radio"] {
	width: auto;
	margin-right: 8px;
	accent-color: var(--ron-color-primary);
}

/* -- Notices (added-to-cart / error / info banners) ---------------------- */

.woocommerce-message,
.woocommerce-error,
.woocommerce-info,
.woocommerce-noreviews {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	list-style: none;
	margin: 0 0 24px;
	padding: 16px 20px;
	border-radius: var(--ron-border-radius);
	background: #fff;
	box-shadow: var(--ron-shadow-sm);
	border-left: 4px solid var(--ron-color-primary);
}

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

.woocommerce-info {
	border-left-color: var(--ron-color-secondary);
}

.woocommerce-message .button,
.woocommerce-error .button,
.woocommerce-info .button {
	order: 2;
	margin-left: auto;
}

/* -- Cart page ------------------------------------------------------------- */

.woocommerce-cart table.cart {
	border: 1px solid #eee;
	border-radius: var(--ron-radius-card);
	overflow: hidden;
}

.woocommerce-cart table.cart thead th {
	background: #f8f8f8;
	text-transform: uppercase;
	font-size: 0.78em;
	letter-spacing: 0.04em;
	color: #777;
}

.woocommerce-cart table.cart td.product-thumbnail img {
	width: 80px;
	height: 80px;
	object-fit: cover;
	border-radius: var(--ron-border-radius);
}

.woocommerce-cart table.cart td.product-name a {
	font-weight: 600;
	color: var(--ron-color-secondary);
}

.woocommerce-cart table.cart td.product-remove a.remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #f8f8f8;
	color: #d63638 !important;
	font-size: 1.1em;
	line-height: 1;
	transition: background var(--ron-transition), color var(--ron-transition);
}

.woocommerce-cart table.cart td.product-remove a.remove:hover {
	background: #d63638;
	color: #fff !important;
}

.woocommerce-cart table.cart td.actions .coupon {
	display: flex;
	align-items: center;
	gap: 10px;
}

.woocommerce-cart table.cart td.actions .coupon #coupon_code {
	width: auto;
	flex: 1;
	max-width: 220px;
}

.woocommerce-cart .cart-collaterals,
.cart_totals {
	background: #f8f8f8;
	border-radius: var(--ron-radius-card);
	padding: 28px;
	box-shadow: var(--ron-shadow-sm);
}

.cart_totals h2 {
	margin-bottom: 16px;
	font-size: 1.2em;
}

.cart_totals table.shop_table {
	background: transparent;
}

.cart_totals table.shop_table th,
.cart_totals table.shop_table td {
	border-bottom: 1px solid #e6e6e6;
	padding: 12px 4px;
}

.cart_totals table.shop_table tr:last-child th,
.cart_totals table.shop_table tr:last-child td {
	border-bottom: none;
}

.cart_totals .order-total th,
.cart_totals .order-total td {
	font-size: 1.15em;
	font-weight: 700;
	color: var(--ron-color-secondary);
}

.cart_totals .wc-proceed-to-checkout a.checkout-button {
	display: flex;
	width: 100%;
	text-align: center;
	margin-top: 8px;
}

/* -- Checkout page ---------------------------------------------------------- */

.woocommerce-checkout #customer_details {
	background: #fff;
	border: 1px solid #eee;
	border-radius: var(--ron-radius-card);
	padding: 28px;
	box-shadow: var(--ron-shadow-sm);
}

.woocommerce-checkout .woocommerce-billing-fields h3,
.woocommerce-checkout .woocommerce-shipping-fields h3,
.woocommerce-checkout .woocommerce-additional-fields h3,
.woocommerce-checkout #order_review_heading {
	font-size: 1.15em;
	margin-bottom: 18px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--ron-color-primary);
	display: inline-block;
}

.woocommerce-checkout .form-row-first,
.woocommerce-checkout .form-row-last {
	width: calc(50% - 10px);
}

.woocommerce-checkout #order_review {
	background: #fff;
	border: 1px solid #eee;
	box-shadow: var(--ron-shadow-sm);
}

.woocommerce-checkout #order_review table.shop_table th,
.woocommerce-checkout #order_review table.shop_table td {
	border-bottom: 1px solid #e6e6e6;
}

/* Payment method list — turns the default plain radio list into
   selectable "cards" so it reads as a modern checkout step rather than a
   bare `<ul>`. */
.woocommerce-checkout ul.wc_payment_methods {
	list-style: none;
	margin: 0 0 20px;
	padding: 0;
}

.woocommerce-checkout ul.wc_payment_methods li.wc_payment_method {
	border: 1px solid #e2e2e2;
	border-radius: var(--ron-border-radius);
	margin-bottom: 10px;
	padding: 14px 16px;
	background: #fff;
	transition: border-color var(--ron-transition), box-shadow var(--ron-transition);
}

.woocommerce-checkout ul.wc_payment_methods li.wc_payment_method:has(input:checked) {
	border-color: var(--ron-color-primary);
	box-shadow: 0 0 0 2px rgba(224, 15, 122, 0.12);
}

.woocommerce-checkout ul.wc_payment_methods li.wc_payment_method input.input-radio {
	width: auto;
	margin-right: 10px;
	accent-color: var(--ron-color-primary);
}

.woocommerce-checkout ul.wc_payment_methods li.wc_payment_method label {
	font-weight: 600;
	color: var(--ron-color-secondary);
}

.woocommerce-checkout ul.wc_payment_methods li.wc_payment_method .payment_box {
	margin-top: 12px;
	padding: 14px;
	background: #f8f8f8;
	border-radius: var(--ron-border-radius);
	font-size: 0.92em;
}

.woocommerce-checkout #payment .form-row.place-order {
	margin-top: 20px;
}

.woocommerce-checkout #payment #place_order {
	width: 100%;
	justify-content: center;
	font-size: 1.05em;
	padding: 16px 26px;
}

/* -- My Account -------------------------------------------------------------- */

.woocommerce-account .woocommerce-MyAccount-content > p:first-child {
	font-size: 1.05em;
}

.woocommerce-account table.woocommerce-orders-table,
.woocommerce-account table.shop_table {
	width: 100%;
	border-collapse: collapse;
	border: 1px solid #eee;
	border-radius: var(--ron-radius-card);
	overflow: hidden;
}

.woocommerce-account table.woocommerce-orders-table thead th,
.woocommerce-account table.shop_table thead th {
	background: #f8f8f8;
	text-transform: uppercase;
	font-size: 0.78em;
	letter-spacing: 0.04em;
	color: #777;
	padding: 12px 14px;
}

.woocommerce-account table.woocommerce-orders-table td,
.woocommerce-account table.shop_table td {
	padding: 14px;
	border-bottom: 1px solid #eee;
}

.woocommerce-account table.woocommerce-orders-table .order-status,
.woocommerce-account table.woocommerce-orders-table td mark {
	display: inline-flex;
	padding: 4px 12px;
	border-radius: var(--ron-radius-pill);
	background: rgba(43, 57, 144, 0.1);
	color: var(--ron-color-secondary);
	font-size: 0.85em;
	font-weight: 600;
}

.woocommerce-account .woocommerce-Addresses {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

.woocommerce-account .woocommerce-Address {
	flex: 1 1 260px;
	background: #fff;
	border: 1px solid #eee;
	border-radius: var(--ron-radius-card);
	padding: 22px;
	box-shadow: var(--ron-shadow-sm);
}

.woocommerce-account .woocommerce-Address-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
}

.woocommerce-account .woocommerce-Address-title h2,
.woocommerce-account .woocommerce-Address-title h3 {
	margin: 0;
	font-size: 1.05em;
}

.woocommerce-account address {
	font-style: normal;
	line-height: 1.7;
	color: #555;
}

/* Login / Register (shown together on My Account when logged out). */
#customer_login.u-columns,
#customer_login.col2-set {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
}

#customer_login .u-column1.col-1,
#customer_login .u-column2.col-2 {
	flex: 1 1 280px;
	background: #fff;
	border: 1px solid #eee;
	border-radius: var(--ron-radius-card);
	padding: 28px;
	box-shadow: var(--ron-shadow-sm);
}

#customer_login .u-column2.col-2 {
	background: #f8f8f8;
}

#customer_login h2 {
	font-size: 1.15em;
	margin-bottom: 18px;
}

#customer_login .lost_password {
	margin-top: 12px;
	font-size: 0.9em;
}

/* Order-received ("thank you") page — see
   woocommerce/checkout/thankyou.php for the markup this styles. Scoped
   under .ron-order-received (only present on that one page) so none of
   this leaks onto the cart/checkout forms, which reuse some of the same
   WooCommerce core classes (e.g. .woocommerce-order). */

.ron-order-received {
	max-width: 860px;
	margin: 0 auto;
	padding: 10px 0 40px;
}

.ron-order-hero {
	text-align: center;
	padding: 40px 24px;
	margin-bottom: 28px;
	background: #fff;
	border: 1px solid #eee;
	border-radius: var(--ron-radius-card);
	box-shadow: var(--ron-shadow-sm);
}

.ron-order-hero__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	margin: 0 auto 18px;
	border-radius: 50%;
	background: rgba(43, 57, 144, 0.08);
	color: var(--ron-color-secondary);
	font-size: 34px;
}

.ron-order-hero--failed .ron-order-hero__icon {
	background: rgba(224, 15, 122, 0.1);
	color: var(--ron-color-primary);
}

.ron-order-hero__title {
	margin: 0 0 10px;
	font-family: var(--ron-font-heading);
	font-size: 1.8em;
}

.ron-order-hero__subtitle {
	margin: 0 auto;
	max-width: 520px;
	color: #666;
}

/* The order-received.php sub-template's own <p class="woocommerce-notice">
   still renders inside .ron-order-hero__subtitle (see thankyou.php) — undo
   WooCommerce core's default notice box styling (background/border) here
   since the hero card already provides that visual treatment. */
.ron-order-hero__subtitle .woocommerce-notice {
	margin: 0;
	padding: 0;
	background: none;
	border: none;
	font-size: 1em;
	color: inherit;
}

.ron-order-hero__actions {
	display: flex;
	gap: 12px;
	justify-content: center;
	margin-top: 18px !important;
	background: none !important;
	border: none !important;
	padding: 0 !important;
}

.ron-order-summary {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 14px;
	list-style: none;
	margin: 0 0 28px;
	padding: 0;
}

/* The <ul> here deliberately keeps WooCommerce core's own `order_details`
   class too (thankyou.php built the markup that way, for compatibility —
   see that file's own doc comment), and core's `ul.order_details` rule
   (woocommerce.scss) applies a clearfix to it via a `::before`/`::after`
   with `content: ""`. A `::before`/`::after` WITH real content is a real
   box — inside a `display: grid` container (this one) a real box becomes
   a real, empty GRID ITEM occupying the FIRST cell, pushing every actual
   `<li>` over by one and producing exactly what was reported: "first
   column box is empty". This is the identical bug class already found
   and fixed once before in this same file for `ul.products` (see the
   `ul.products::before, ul.products::after` rule above) — WooCommerce
   core's float-era clearfix pattern needs switching off wherever this
   theme turns a `ul.order_details`/`ul.products` into a CSS Grid. */
.ron-order-summary::before,
.ron-order-summary::after {
	content: none !important;
	display: none !important;
}

.ron-order-summary__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 18px;
	background: #fff;
	border: 1px solid #eee;
	border-radius: var(--ron-radius-card);
	box-shadow: var(--ron-shadow-sm);
	text-align: center;
	/* Reset every property WooCommerce core's own `ul.order_details li`
	   rule sets on this same element (it still carries core's
	   `.woocommerce-order-overview__*` classes) — float, margin/padding,
	   the dashed divider border, and shouting-case labels all fought this
	   card layout otherwise, on top of contributing to the "empty box"
	   look above. */
	float: none !important;
	margin: 0 !important;
	border-right: none !important;
	text-transform: none !important;
}

.ron-order-summary__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: rgba(43, 57, 144, 0.08);
	color: var(--ron-color-secondary);
	font-size: 14px;
}

.ron-order-summary__label {
	font-size: 0.82em;
	color: #888;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.ron-order-summary__value {
	/* `!important` on font-size overrides core's own
	   `ul.order_details li strong { font-size: 1.4em; }` — too large next
	   to this card's own icon/label. core's `display: block` is redundant
	   but harmless inside this flex column. */
	font-size: 1.05em !important;
	line-height: 1.3;
	word-break: break-word;
}

.ron-order-next-steps {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 28px;
	padding: 22px;
	background: #fff;
	border: 1px solid #eee;
	border-radius: var(--ron-radius-card);
	box-shadow: var(--ron-shadow-sm);
}

.ron-order-next-steps__step {
	flex: 1 1 120px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	text-align: center;
	opacity: 0.45;
}

.ron-order-next-steps__step.is-done {
	opacity: 1;
}

.ron-order-next-steps__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #f4f4f8;
	color: var(--ron-color-secondary);
}

.ron-order-next-steps__step.is-done .ron-order-next-steps__icon {
	background: var(--ron-color-secondary);
	color: #fff;
}

.ron-order-next-steps__label {
	font-size: 0.85em;
	font-weight: 600;
}

.ron-order-details-card {
	background: #fff;
	border: 1px solid #eee;
	border-radius: var(--ron-radius-card);
	box-shadow: var(--ron-shadow-sm);
	padding: 26px;
	margin-bottom: 28px;
	overflow-x: auto;
}

.ron-order-details-card .woocommerce-order-details__title,
.ron-order-details-card .woocommerce-column__title {
	font-family: var(--ron-font-heading);
	font-size: 1.2em;
}

.ron-order-details-card section + section {
	margin-top: 24px;
}

.ron-order-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
}

.ron-order-actions__secondary {
	background: #fff !important;
	color: var(--ron-color-secondary) !important;
	border: 1px solid var(--ron-color-secondary) !important;
}

.ron-order-actions__secondary::after {
	color: var(--ron-color-secondary);
}

@media (max-width: 600px) {
	.ron-order-hero {
		padding: 28px 18px;
	}

	.ron-order-next-steps {
		flex-direction: column;
		align-items: stretch;
	}

	.ron-order-next-steps__step {
		flex-direction: row;
		justify-content: flex-start;
		text-align: left;
	}
}
