/*
Theme Name: Rare Icedout
Theme URI: http://localhost/Wordpress-project/rare_icedout
Author: Rare Icedout
Description: A custom light-luxury WooCommerce theme for an iced-out watches & hip-hop jewelry store, designed same-to-same after kloira.com (white UI, black accents, pastel hero & brand cards, dark footer). Built from scratch, WooCommerce-ready, and defensively coded so the front end never fatals when content is missing.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rare-icedout
Tags: e-commerce, woocommerce, light, custom-menu, featured-images, custom-logo
Design By : Bhadresh Babariya 
*/

/* ==========================================================================
   Design tokens — light theme
   ========================================================================== */
:root {
	--ri-bg: #ffffff;
	--ri-bg-alt: #f6f6f7;
	--ri-surface: #ffffff;
	--ri-ink: #111114;
	/* near-black: text + buttons */
	--ri-ink-2: #2a2a30;
	--ri-muted: #6b6b73;
	--ri-line: #e7e7ec;
	--ri-line-2: #d8d8df;
	--ri-stock: #1f9d57;
	/* IN STOCK green */
	--ri-stock-bg: #e8f6ee;
	--ri-star: #00b67a;
	/* trustpilot green */
	--ri-pill: #f0f0f2;
	/* pastel brand backgrounds */
	--ri-peach: #f6e6da;
	--ri-pink: #f6dfe1;
	--ri-blue: #dcebf6;
	--ri-graypastel: #e9e9ec;
	--ri-mint: #ddefe4;
	--ri-lavender: #e6e1f2;
	--ri-sand: #f2ecdc;
	--ri-radius: 14px;
	--ri-radius-sm: 8px;
	--ri-radius-btn: 0px;
	/* kloira buttons are square — no radius */
	--ri-shadow: 0 8px 30px rgba(17, 17, 20, .08);
	--ri-shadow-hover: 0 16px 40px rgba(17, 17, 20, .14);
	--ri-container: 1500px;
	--ri-font: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	--ri-font-head: 'Archivo', var(--ri-font);
}

/* ==========================================================================
   Base / reset
   ========================================================================== */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--ri-font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--ri-ink);
	background: var(--ri-bg);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: inherit;
	text-decoration: none;
	transition: color .2s ease, opacity .2s ease;
}

a:hover {
	color: #000;
}

h1,
h2,
h3,
h4,
h5 {
	font-family: var(--ri-font-head);
	font-weight: 600;
	line-height: 1.15;
	margin: 0 0 .5em;
	color: var(--ri-ink);
}

p {
	margin: 0 0 1em;
}

ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

button {
	font-family: inherit;
	cursor: pointer;
}

.ri-container {
	width: 100%;
	max-width: var(--ri-container);
	margin: 0 auto;
	padding: 0 24px;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	word-wrap: normal !important;
}

.ri-section {
	padding: 60px 0;
}

.ri-section-head {
	text-align: center;
	margin-bottom: 40px;
}

.ri-section-head .eyebrow {
	display: inline-block;
	letter-spacing: .04em;
	text-transform: uppercase;
	font-size: 13px;
	color: var(--ri-muted);
	margin-bottom: 8px;
	font-weight: 600;
}

.ri-section-head h2 {
	font-size: clamp(26px, 3vw, 40px);
}

.ri-section-head p {
	color: var(--ri-muted);
	max-width: 620px;
	margin: 8px auto 0;
}

/* Buttons (kloira uses solid-black rectangular buttons) */
.ri-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 28px;
	border-radius: var(--ri-radius-btn);
	border: 1px solid var(--ri-ink);
	font-weight: 600;
	font-size: 14px;
	letter-spacing: .03em;
	text-transform: uppercase;
	cursor: pointer;
	line-height: 1;
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	overflow: hidden;
}

.ri-btn svg {
	transition: transform 0.25s ease;
}

.ri-btn:hover svg {
	transform: scale(1.15) rotate(5deg);
}

.ri-btn:active {
	transform: translateY(1px);
}

.ri-btn-dark {
	background: var(--ri-ink);
	color: #fff;
}

.ri-btn-dark:hover {
	background: #fff;
	color: var(--ri-ink);
	border-color: var(--ri-ink);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.ri-btn-light {
	background: #fff;
	color: var(--ri-ink);
	border-color: var(--ri-line-2);
}

.ri-btn-light:hover {
	border-color: var(--ri-ink);
}

.ri-btn-link {
	background: none;
	padding: 14px 4px;
	color: var(--ri-ink);
	border-bottom: 2px solid var(--ri-ink);
	border-radius: 0;
}

.ri-btn-link:hover {
	color: #000;
}

/* ==========================================================================
   Announcement bar (thin, optional)
   ========================================================================== */
.ri-topbar {
	background: var(--ri-ink);
	color: #f4f4f5;
	font-size: 12.5px;
}

.ri-topbar .ri-container {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	height: 38px;
	text-align: center;
}

.ri-topbar a {
	color: #f4f4f5;
	opacity: .85;
}

.ri-topbar a:hover {
	opacity: 1;
	color: #fff;
}

/* ==========================================================================
   Header
   ========================================================================== */
.ri-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: #fff;
	border-bottom: 1px solid var(--ri-line);
}

.ri-header-main {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 18px;
	height: 78px;
}

.ri-logo {
	font-family: var(--ri-font-head);
	font-weight: 700;
	font-size: 26px;
	letter-spacing: .12em;
	white-space: nowrap;
	text-transform: uppercase;
	text-align: center;
}

.ri-logo b {
	color: var(--ri-ink);
	font-weight: 700;
}

.ri-logo img {
	max-height: 50px;
	width: auto;
	margin: 0 auto;
}

.ri-header-left {
	display: flex;
	align-items: center;
	gap: 14px;
}

.ri-header-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 18px;
}

.ri-iconbtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--ri-ink);
	position: relative;
	width: 26px;
	height: 26px;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
}

.ri-iconbtn svg {
	width: 23px;
	height: 23px;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.6;
}

.ri-iconbtn:hover {
	color: #000;
}

.ri-cart-count {
	position: absolute;
	top: -8px;
	right: -9px;
	background: var(--ri-ink);
	color: #fff;
	font-size: 10.5px;
	font-weight: 700;
	min-width: 17px;
	height: 17px;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 4px;
}

.ri-burger {
	display: none;
	background: none;
	border: 0;
	color: var(--ri-ink);
	padding: 0;
}

.ri-burger svg {
	width: 26px;
	height: 26px;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.8;
}

/* Search slide-down */
.ri-searchbar {
	display: none;
	border-top: 1px solid var(--ri-line);
	background: #fff;
	padding: 14px 0;
}

.ri-searchbar.is-open {
	display: block;
}

.ri-searchbar form {
	display: flex;
	max-width: 720px;
	margin: 0 auto;
	border: 1px solid var(--ri-line-2);
	border-radius: var(--ri-radius-btn);
	overflow: hidden;
}

.ri-searchbar input[type="search"],
.ri-searchbar input[type="text"] {
	flex: 1;
	border: 0;
	padding: 12px 16px;
	font-size: 15px;
	outline: none;
	color: var(--ri-ink);
	background: #fff;
}

.ri-searchbar button {
	background: var(--ri-ink);
	border: 0;
	color: #fff;
	padding: 0 22px;
	font-weight: 600;
}

/* ==========================================================================
   Primary navigation (multi-tier, centered)
   ========================================================================== */
.ri-nav {
	background: #fff;
	border-bottom: 1px solid var(--ri-line);
}

.ri-nav>.ri-nav-head {
	display: none;
}

/* drawer header — mobile only */
.ri-nav .ri-container,
.ri-nav>div {
	display: flex;
	justify-content: center;
}

.ri-nav .menu,
.ri-nav ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

.ri-nav li {
	position: relative;
}

.ri-nav .menu>li>a {
	position: relative;
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 16px 18px;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: .01em;
	color: var(--ri-ink);
}

.ri-nav .menu>li.menu-item-has-children>a::after {
	content: "";
	width: 6px;
	height: 6px;
	border-right: 1.5px solid var(--ri-muted);
	border-bottom: 1.5px solid var(--ri-muted);
	transform: rotate(45deg);
	margin-top: -3px;
}

.ri-nav .menu>li:hover>a {
	color: #000;
}

.ri-nav .menu>li>a:hover {
	opacity: 1;
}

.ri-nav .menu>li>a::before {
	content: "";
	position: absolute;
	left: 18px;
	right: 18px;
	bottom: 8px;
	height: 2px;
	background: var(--ri-ink);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .2s ease;
}

.ri-nav .menu>li:hover>a::before {
	transform: scaleX(1);
}

.ri-nav ul ul {
	display: block;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 230px;
	background: #fff;
	border: 1px solid var(--ri-line);
	border-radius: var(--ri-radius-sm);
	box-shadow: var(--ri-shadow);
	padding: 8px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity .18s ease, transform .18s ease, visibility .18s;
	z-index: 50;
}

.ri-nav li:hover>ul {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.ri-nav ul ul li a {
	display: block;
	padding: 9px 14px;
	font-size: 13.5px;
	border-radius: 6px;
	color: var(--ri-muted);
}

.ri-nav ul ul li a:hover {
	background: var(--ri-bg-alt);
	color: var(--ri-ink);
}

.ri-nav ul ul ul {
	top: 0;
	left: 100%;
}

/* Mega menu — desktop panel: serif-heading link column + promo card. */
@media (min-width: 1025px) {
	.ri-nav {
		position: sticky;
		top: 78px;
		/* height of the sticky header above it */
		z-index: 90;
		/* below the header (100), above page content */
	}

	.ri-nav .menu>li {
		position: static;
	}

	.ri-nav .menu>li>.ri-mega {
		position: absolute;
		top: 100%;
		left: 50%;
		transform: translate(-50%, 10px);
		width: min(880px, calc(100vw - 48px));
		display: flex;
		align-items: stretch;
		gap: 38px;
		background: #fff;
		border: 1px solid var(--ri-line);
		border-top: 0;
		border-radius: 0 0 var(--ri-radius-sm) var(--ri-radius-sm);
		box-shadow: var(--ri-shadow);
		padding: 30px 34px;
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		/* closed panel must not capture the mouse */
		transition: opacity .18s ease, transform .18s ease, visibility .18s;
		z-index: 50;
	}

	.ri-nav .menu>li:hover>.ri-mega {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		transform: translate(-50%, 0);
		z-index: 60;
		transition-delay: 0s;
	}

	/* Fading-out panels drop behind instantly so they never cover the open one. */
	.ri-nav .menu>li:not(:hover)>.ri-mega {
		transition: opacity .14s ease, transform .14s ease, visibility .14s, z-index 0s;
	}

	.ri-mega-links {
		flex: 1;
		padding-top: 4px;
	}

	.ri-mega-heading {
		display: block;
		font-family: var(--ri-font-head);
		font-size: 12.5px;
		font-weight: 700;
		letter-spacing: .18em;
		text-transform: uppercase;
		color: var(--ri-ink);
		padding-bottom: 12px;
		margin-bottom: 16px;
		position: relative;
	}

	.ri-mega-heading::after {
		content: "";
		position: absolute;
		left: 0;
		bottom: 0;
		width: 34px;
		height: 2px;
		background: var(--ri-ink);
	}

	.ri-nav .menu>li>.ri-mega ul {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		display: block;
		min-width: 0;
		background: none;
		border: 0;
		border-radius: 0;
		box-shadow: none;
		padding: 0;
	}

	.ri-nav .menu>li>.ri-mega ul li a {
		padding: 9px 0;
		font-size: 14.5px;
		color: var(--ri-ink-2);
		border-radius: 0;
	}

	.ri-nav .menu>li>.ri-mega ul li a:hover {
		background: none;
		color: #000;
		text-decoration: underline;
		text-underline-offset: 4px;
	}

	.ri-mega-promo {
		width: 320px;
		min-height: 300px;
		flex: none;
		border-radius: var(--ri-radius-sm);
		overflow: hidden;
		position: relative;
		padding: 24px;
		display: flex;
		flex-direction: column;
		justify-content: flex-end;
		background-size: cover;
		background-position: center;
	}

	.ri-mega-promo>* {
		position: relative;
	}

	.ri-mega-promo--peach {
		background-color: var(--ri-peach);
	}

	.ri-mega-promo--pink {
		background-color: var(--ri-pink);
	}

	.ri-mega-promo--blue {
		background-color: var(--ri-blue);
	}

	.ri-mega-promo--mint {
		background-color: var(--ri-mint);
	}

	.ri-mega-promo--lavender {
		background-color: var(--ri-lavender);
	}

	.ri-mega-promo--sand {
		background-color: var(--ri-sand);
	}

	.ri-mega-promo.has-image::before {
		content: "";
		position: absolute;
		inset: 0;
		background: linear-gradient(180deg, rgba(0, 0, 0, .02) 30%, rgba(0, 0, 0, .55));
	}

	.ri-mega-promo-tag {
		position: absolute;
		top: 20px;
		left: 24px;
		font-size: 10.5px;
		font-weight: 700;
		letter-spacing: .24em;
		text-transform: uppercase;
		color: #8a6f3c;
	}

	.ri-mega-promo-title {
		font-family: var(--ri-font-head);
		font-weight: 700;
		font-size: 24px;
		line-height: 1.15;
		color: var(--ri-ink);
		margin-bottom: 6px;
	}

	.ri-mega-promo-sub {
		font-size: 13.5px;
		color: var(--ri-muted);
		margin-bottom: 16px;
	}

	.ri-mega-promo-btn {
		align-self: flex-start;
		background: var(--ri-ink);
		color: #fff;
		font-size: 11.5px;
		font-weight: 700;
		letter-spacing: .18em;
		text-transform: uppercase;
		padding: 13px 20px;
	}

	.ri-mega-promo-btn:hover {
		background: #000;
		color: #fff;
	}

	.ri-mega-promo.has-image .ri-mega-promo-tag {
		color: #f0e3c0;
	}

	.ri-mega-promo.has-image .ri-mega-promo-title {
		color: #fff;
	}

	.ri-mega-promo.has-image .ri-mega-promo-sub {
		color: rgba(255, 255, 255, .85);
	}
}

/* Mega menu — mobile drawer: plain expandable list, promo hidden. */
@media (max-width: 1024px) {

	.ri-mega-heading,
	.ri-mega-promo {
		display: none;
	}

	.ri-nav li.is-open .ri-mega ul {
		display: block;
	}
}

.ri-nav-fallback {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

.ri-nav-fallback a {
	display: block;
	padding: 16px 18px;
	font-size: 14px;
	font-weight: 500;
}

.ri-nav-fallback a:hover {
	color: #000;
}

/* ==========================================================================
   Hero slider (pastel backgrounds)
   ========================================================================== */
.ri-hero {
	position: relative;
	overflow: hidden;
	background: var(--ri-peach);
}

.ri-slides {
	position: relative;
}

.ri-slide {
	display: none;
	min-height: 520px;
	align-items: center;
	background-size: cover;
	background-position: center;
	position: relative;
}

.ri-slide.is-active {
	display: flex;
	animation: riFade .6s ease;
}

@keyframes riFade {
	from {
		opacity: .3;
	}

	to {
		opacity: 1;
	}
}

.ri-slide-inner {
	position: relative;
	z-index: 2;
	max-width: 620px;
	padding: 70px 0;
}

.ri-slide .eyebrow {
	color: var(--ri-ink-2);
	letter-spacing: .04em;
	text-transform: uppercase;
	font-size: 13px;
	font-weight: 600;
}

.ri-slide h1,
.ri-slide h2 {
	font-size: clamp(34px, 4.4vw, 56px);
	margin: 10px 0 16px;
	line-height: 1.06;
	color: var(--ri-ink);
	font-weight: 700;
}

.ri-slide p {
	color: var(--ri-ink-2);
	font-size: 17px;
	margin-bottom: 28px;
	max-width: 540px;
}

.ri-slide-cta {
	display: flex;
	gap: 18px;
	align-items: center;
	flex-wrap: wrap;
}

.ri-slide-img {
	position: absolute;
	right: 0;
	top: 0;
	bottom: 0;
	width: 46%;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center right;
	z-index: 1;
}

.ri-slide-watermark {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%) rotate(180deg);
	writing-mode: vertical-rl;
	font-size: clamp(60px, 9vw, 130px);
	font-weight: 800;
	color: rgba(17, 17, 20, .06);
	letter-spacing: .04em;
	z-index: 0;
	user-select: none;
}

/* Video hero slide (e.g. watches) — full-bleed background video + scrim. */
.ri-slide-video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
}

.ri-slide-scrim {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(90deg, rgba(0, 0, 0, .62) 0%, rgba(0, 0, 0, .34) 55%, rgba(0, 0, 0, .08) 100%);
}

.ri-slide--video .ri-slide-watermark {
	color: rgba(255, 255, 255, .08);
	z-index: 1;
}

.ri-slide--video .eyebrow {
	color: rgba(255, 255, 255, .85);
}

.ri-slide--video h1,
.ri-slide--video h2 {
	color: #fff;
}

.ri-slide--video p {
	color: rgba(255, 255, 255, .88);
}

.ri-slide--video .ri-btn-link {
	color: #fff;
}

.ri-hero-dots {
	position: absolute;
	right: 26px;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	flex-direction: column;
	gap: 12px;
	z-index: 5;
}

.ri-hero-dots button {
	width: 11px;
	height: 11px;
	border-radius: 999px;
	border: 1.5px solid var(--ri-ink);
	background: transparent;
	padding: 0;
}

.ri-hero-dots button.is-active {
	background: var(--ri-ink);
}

.ri-hero-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	background: rgba(255, 255, 255, .85);
	border: 1px solid var(--ri-line-2);
	color: var(--ri-ink);
	width: 44px;
	height: 44px;
	border-radius: 999px;
	font-size: 20px;
	display: grid;
	place-items: center;
}

.ri-hero-arrow:hover {
	background: var(--ri-ink);
	color: #fff;
	border-color: var(--ri-ink);
}

.ri-hero-arrow.prev {
	left: 18px;
}

.ri-hero-arrow.next {
	right: 60px;
}

/* ==========================================================================
   Feature strip
   ========================================================================== */
.ri-features {
	background: var(--ri-bg-alt);
	border-bottom: 1px solid var(--ri-line);
}

.ri-features .ri-container {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
	padding-top: 26px;
	padding-bottom: 26px;
}

.ri-feature {
	display: flex;
	align-items: center;
	gap: 14px;
}

.ri-feature .ic {
	width: 44px;
	height: 44px;
	border-radius: 10px;
	background: var(--ri-ink);
	color: #fff;
	display: grid;
	place-items: center;
	font-size: 20px;
	flex: none;
}

.ri-feature .ic svg {
	width: 22px;
	height: 22px;
}

.ri-feature strong {
	display: block;
	font-size: 14px;
	color: var(--ri-ink);
}

.ri-feature span {
	color: var(--ri-muted);
	font-size: 12.5px;
}

/* ==========================================================================
   Section header pattern (icon + title pill + explore button)
   ========================================================================== */
.ri-shead {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 30px;
}

.ri-shead-icon {
	width: 60px;
	height: 60px;
	border-radius: 8px;
	background: var(--ri-ink);
	color: #fff;
	display: grid;
	place-items: center;
	font-weight: 800;
	font-size: 20px;
	flex: none;
}

.ri-shead-icon svg {
	width: 30px;
	height: 30px;
}

.ri-shead-title {
	flex: 1;
	font-size: clamp(20px, 2.4vw, 30px);
	font-weight: 600;
	padding: 14px 24px;
	border-radius: 8px;
	background: linear-gradient(90deg, var(--ri-bg-alt) 0%, rgba(246, 246, 247, 0) 80%);
	margin: 0;
}

.ri-shead .ri-btn {
	flex: none;
}

.ri-rail-nav {
	display: flex;
	gap: 10px;
}

.ri-rail-nav button {
	width: 42px;
	height: 42px;
	border-radius: 999px;
	border: 1px solid var(--ri-line-2);
	background: #fff;
	color: var(--ri-ink);
	font-size: 18px;
	display: grid;
	place-items: center;
}

.ri-rail-nav button:hover {
	background: var(--ri-ink);
	color: #fff;
	border-color: var(--ri-ink);
}

/* ==========================================================================
   Category showcase
   ========================================================================== */
.ri-cats {
	display: grid;
	grid-template-columns: repeat(var(--ri-cat-cols, 4), 1fr);
	gap: 22px;
}

.ri-cat-card {
	position: relative;
	border-radius: var(--ri-radius);
	overflow: hidden;
	border: 1px solid var(--ri-line);
	background: var(--ri-bg-alt);
	min-height: 220px;
	display: flex;
	align-items: flex-end;
	padding: 22px;
	transition: transform .2s ease, box-shadow .2s ease;
}

.ri-cat-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--ri-shadow-hover);
}

.ri-cat-card .bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
}

.ri-cat-card::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .6));
}

.ri-cat-card .info {
	position: relative;
	z-index: 2;
	color: #fff;
}

.ri-cat-card.is-light .info {
	color: var(--ri-ink);
}

.ri-cat-card.is-light::after {
	background: none;
}

.ri-cat-card h3 {
	font-size: 20px;
	margin: 0 0 4px;
	color: inherit;
}

.ri-cat-card span {
	font-size: 13px;
	font-weight: 600;
	opacity: .9;
}

/* ==========================================================================
   Prestigious brand cards (pastel)
   ========================================================================== */
.ri-brandcards {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 22px;
}

.ri-brandcard {
	position: relative;
	border-radius: var(--ri-radius);
	overflow: hidden;
	min-height: 320px;
	display: flex;
	align-items: flex-end;
	padding: 24px;
	transition: transform .2s ease, box-shadow .2s ease;
}

.ri-brandcard:hover {
	transform: translateY(-4px);
	box-shadow: var(--ri-shadow-hover);
}

.ri-brandcard .bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
}

.ri-brandcard::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .65));
}

.ri-brandcard.is-light::after {
	background: none;
}

.ri-brandcard .info {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	gap: 12px;
}

.ri-brandcard .name {
	color: #fff;
	font-size: 22px;
	font-weight: 800;
}

.ri-brandcard.is-light .name {
	color: var(--ri-ink);
}

.ri-brandcard .go {
	display: inline-flex;
	width: 36px;
	height: 36px;
	flex: none;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: rgba(255, 255, 255, .85);
	color: var(--ri-ink);
	transition: background .2s ease;
}

.ri-brandcard .go svg {
	width: 16px;
	height: 16px;
}

.ri-brandcard:hover .go {
	background: #fff;
}

/* ==========================================================================
   Product grids / carousels (WooCommerce)
   ========================================================================== */
.ri-products,
ul.products {
	display: grid !important;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Slider track: exactly 4 cards per view on desktop, slides one page at a time. */
.ri-rail {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 72px) / 4);
	gap: 24px;
	overflow-x: auto;
	padding-bottom: 4px;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

/* Rail also carries the `.products` class (for WooCommerce card markup), whose
   grid-template-columns:repeat(4,1fr) has higher specificity and would squash
   the horizontal auto-flow. Clear it so the rail stays a single scrolling row. */
ul.products.ri-rail {
	grid-template-columns: none;
}

.ri-rail>* {
	scroll-snap-align: start;
}

.ri-rail::-webkit-scrollbar {
	display: none;
}

/* Carousel shell: round prev/next arrows + dots (kloira-style). */
.ri-carousel {
	position: relative;
}

.ri-car-arrow {
	position: absolute;
	top: 38%;
	transform: translateY(-50%);
	z-index: 6;
	width: 46px;
	height: 46px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid var(--ri-line-2);
	color: var(--ri-ink);
	display: grid;
	place-items: center;
	font-size: 22px;
	line-height: 1;
	box-shadow: var(--ri-shadow);
	cursor: pointer;
	transition: background .2s ease, color .2s ease, opacity .2s ease;
}

.ri-car-arrow:hover {
	background: var(--ri-ink);
	color: #fff;
	border-color: var(--ri-ink);
}

.ri-car-arrow.prev {
	left: -16px;
}

.ri-car-arrow.next {
	right: -16px;
}

.ri-car-arrow[disabled] {
	opacity: .3;
	cursor: default;
	background: #fff;
	color: var(--ri-ink);
	border-color: var(--ri-line-2);
}

.ri-car-dots {
	display: flex;
	gap: 8px;
	justify-content: center;
	margin-top: 24px;
}

.ri-car-dots button {
	width: 9px;
	height: 9px;
	border-radius: 999px;
	background: var(--ri-line-2);
	border: 0;
	padding: 0;
	cursor: pointer;
	transition: width .2s ease, background .2s ease;
}

.ri-car-dots button.is-active {
	background: var(--ri-ink);
	width: 24px;
}

ul.products li.product,
.ri-product-card {
	background: var(--ri-surface);
	border: 1px solid var(--ri-line);
	overflow: hidden;
	position: relative;
	transition: transform .2s ease, box-shadow .2s ease;
	text-align: left;
	margin: 0 !important;
	width: auto !important;
	padding: 0 !important;
	float: none !important;
	display: flex;
	flex-direction: column;
	/* equal-height cards with bottom-aligned button */
}

/* Hover = swap to the second (gallery) image only — no lift/shadow effect. */
ul.products li.product .ri-hover-img,
.ri-product-card .ri-hover-img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	aspect-ratio: 1/1;
	object-fit: cover;
	opacity: 0;
	transition: opacity .25s ease;
	pointer-events: none;
	z-index: 1;
}

ul.products li.product:hover .ri-hover-img,
.ri-product-card:hover .ri-hover-img {
	opacity: 1;
}

ul.products li.product a img,
.ri-product-card .thumb img {
	width: 100%;
	aspect-ratio: 1/1;
	object-fit: cover;
	background: #f1f1f3;
	margin: 0;
}

.ri-product-card .thumb {
	position: relative;
	display: block;
	background: #f1f1f3;
	aspect-ratio: 1/1;
}

ul.products li.product .woocommerce-loop-product__title,
.ri-product-card .title {
	font-size: 19px;
	font-weight: 600;
	line-height: 1.35;
	padding: 16px 16px 6px !important;
	color: var(--ri-ink);
}

ul.products li.product .price,
.ri-product-card .price {
	display: block;
	padding: 0 16px 8px;
	color: var(--ri-ink) !important;
	/* !important — woocommerce.css sets 400 with higher specificity */
	font-weight: 700 !important;
	font-size: 17px !important;
}

ul.products li.product .price ins,
.ri-product-card .price ins {
	text-decoration: none;
	font-size: 17px !important;
	font-weight: 700;
}

ul.products li.product .price ins .woocommerce-Price-amount,
.ri-product-card .price ins .woocommerce-Price-amount {
	font-size: 17px !important;
}

ul.products li.product .price del,
.ri-product-card .price del {
	color: var(--ri-muted) !important;
	font-weight: 400;
	opacity: .8;
	margin-right: 8px;
	font-size: 13px !important;
}

ul.products li.product .price del .woocommerce-Price-amount,
.ri-product-card .price del .woocommerce-Price-amount {
	font-size: 13px !important;
}

ul.products li.product .button,
.ri-product-card .button {
	margin: auto 16px 16px !important;
	display: inline-flex;
	align-self: flex-start;
	background: var(--ri-ink);
	color: #fff;
	border: 0;
	padding: 12px 20px;
	border-radius: var(--ri-radius-btn);
	font-size: 15px;
	font-weight: 600;
}

ul.products li.product .button:hover {
	background: #000;
	color: #fff;
}

/* AJAX add-to-cart: clean spinner while loading, then the button becomes "View cart" */
ul.products li.product a.button.loading,
.ri-product-card a.button.loading {
	position: relative;
	color: transparent !important;
	opacity: 1 !important;
	pointer-events: none;
}

ul.products li.product a.button.loading::after,
.ri-product-card a.button.loading::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 16px;
	height: 16px;
	margin: -8px 0 0 -8px;
	border: 2px solid rgba(255, 255, 255, .45);
	border-top-color: #fff;
	border-radius: 50%;
	box-sizing: border-box;
	animation: riSpin .6s linear infinite;
}

ul.products li.product a.button.ri-view-cart::after,
.ri-product-card a.button.ri-view-cart::after {
	content: none;
}

/* Hide WooCommerce's separate "View cart" link (the button itself becomes View cart) */
ul.products li.product a.added_to_cart,
.ri-product-card a.added_to_cart {
	display: none !important;
}

/* price + savings row */
.ri-price-row {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	flex-wrap: wrap;
	gap: 6px 10px;
	padding: 0 16px 8px;
}

.ri-price-row .price {
	padding: 0 !important;
}

.ri-price-row .ri-badge-save {
	flex: none;
}

/* spec pills */
.ri-spec-row {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding: 12px 16px 0;
}

.ri-spec {
	background: var(--ri-pill);
	color: var(--ri-muted);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .05em;
	text-transform: uppercase;
	padding: 3px 7px;
	border-radius: 3px;
}

/* Loop card metal colour swatches */
.ri-loop-metals {
	display: flex;
	gap: 8px;
	padding: 0 16px 12px;
}

.ri-loop-metals .ri-metal-swatch {
	width: 17px;
	height: 17px;
	border-radius: 50%;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12);
}

.ri-loop-metal {
	cursor: pointer;
	transition: box-shadow .15s ease, transform .12s ease;
}

.ri-loop-metal:hover {
	transform: scale(1.12);
}

.ri-loop-metal.is-active {
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12), 0 0 0 2px #fff, 0 0 0 3.5px var(--ri-ink);
}

/* Loop card rating: stars + review count (only shown when reviews exist) */
.ri-loop-rating {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 0 16px 6px;
}

.ri-loop-rating .star-rating {
	font-size: 14px;
	margin: 0;
	color: var(--ri-star);
}

.ri-loop-rating-count {
	font-size: 13px;
	color: var(--ri-muted);
	font-weight: 500;
}

/* WooCommerce star rating — render unicode stars and hide the fallback
 * "Rated X out of 5…" text (the theme doesn't load WooCommerce's star font).
 * The gray track is static content, so the element is exactly as wide as the
 * five glyphs in the active font — no hardcoded em width, nothing clips. */
.star-rating {
	position: relative;
	display: inline-block;
	height: 1.2em;
	line-height: 1.2;
	overflow: hidden;
	vertical-align: middle;
}

.star-rating::before {
	content: "★★★★★";
	display: inline-block;
	color: var(--ri-line-2, #d9d9de);
	letter-spacing: .1em;
}

.star-rating>span {
	position: absolute;
	top: 0;
	left: 0;
	overflow: hidden;
	white-space: nowrap;
	padding-top: 1.5em;
	/* pushes the fallback text below the clip window */
}

.star-rating>span::before {
	content: "★★★★★";
	position: absolute;
	top: 0;
	left: 0;
	color: var(--ri-star);
	letter-spacing: .1em;
}

/* badges */
.ri-badge-stock {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 3;
	background: var(--ri-stock);
	color: #fff;
	font-size: 10.5px;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 999px;
	text-transform: uppercase;
	letter-spacing: .04em;
}

.ri-badge-save {
	position: absolute;
	right: 12px;
	bottom: 12px;
	z-index: 3;
	background: var(--ri-ink);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 999px;
}

.ri-card-actions {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 3;
	display: flex;
	flex-direction: column;
	gap: 8px;
	opacity: 0;
	transform: translateX(8px);
	transition: opacity .2s ease, transform .2s ease;
}

ul.products li.product:hover .ri-card-actions,
.ri-product-card:hover .ri-card-actions {
	opacity: 1;
	transform: translateX(0);
}

.ri-card-actions a {
	width: 36px;
	height: 36px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid var(--ri-line);
	display: grid;
	place-items: center;
	color: var(--ri-ink);
	box-shadow: var(--ri-shadow);
}

.ri-card-actions a:hover {
	background: var(--ri-ink);
	color: #fff;
}

.ri-card-actions a.is-active {
	background: var(--ri-ink);
	color: #fff;
}

.ri-card-actions a.is-active svg {
	fill: currentColor;
}

/* Wishlist count badge (mirrors cart badge) */
.ri-wishlist-count {
	position: absolute;
	top: -8px;
	right: -9px;
	background: var(--ri-ink);
	color: #fff;
	font-size: 10.5px;
	font-weight: 700;
	min-width: 17px;
	height: 17px;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 4px;
}

.ri-wishlist-main {
	margin-top: 8px;
}

.ri-card-actions svg {
	width: 18px;
	height: 18px;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.6;
}

span.onsale {
	display: none;
}

/* replaced by our save badge */

/* Modern empty state */
.ri-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 14px;
	padding: 72px 24px;
	background: var(--ri-bg-alt);
	border: 1px solid var(--ri-line);
	border-radius: var(--ri-radius);
}

.ri-empty-ic {
	width: 88px;
	height: 88px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid var(--ri-line);
	display: grid;
	place-items: center;
	box-shadow: var(--ri-shadow);
	margin-bottom: 4px;
}

.ri-empty-ic svg {
	width: 38px;
	height: 38px;
	stroke: var(--ri-ink);
	fill: none;
	stroke-width: 1.5;
}

.ri-empty h3 {
	font-size: 22px;
	margin: 0;
}

.ri-empty p {
	color: var(--ri-muted);
	max-width: 440px;
	margin: 0;
}

.ri-empty .ri-btn {
	margin-top: 8px;
}

/* WooCommerce adds clearfix ::before/::after to ul.products for its old float
   layout; in our CSS grid they'd become empty "ghost" cells. Remove them. */
ul.products::before,
ul.products::after {
	content: none !important;
	display: none !important;
}

/* ==========================================================================
   Product archive (Collections / category) — dark banner + filter sidebar
   ========================================================================== */
.ri-archive-hero {
	background: linear-gradient(120deg, #0b0b0d 0%, #1a1a1f 100%);
	color: #fff;
	padding: 54px 0;
	margin-bottom: 36px;
}

.ri-archive-hero h1 {
	color: #fff;
	font-size: clamp(30px, 4vw, 50px);
	margin: 6px 0 12px;
}

.ri-archive-hero .ri-archive-hero-desc {
	color: #c7c7cd;
	max-width: 640px;
}

.ri-archive-hero .ri-archive-hero-desc p {
	margin: 0;
}

.ri-archive-hero .woocommerce-breadcrumb {
	color: rgba(255, 255, 255, .6);
	font-size: 13px;
	margin: 0;
}

.ri-archive-hero .woocommerce-breadcrumb a {
	color: rgba(255, 255, 255, .85);
}

.ri-archive-hero .woocommerce-breadcrumb a:hover {
	color: #fff;
}

.ri-shop-layout {
	display: grid;
	grid-template-columns: 270px 1fr;
	gap: 36px;
	align-items: start;
}

/* Sidebar */
.ri-shop-sidebar {
	position: sticky;
	top: 96px;
}

.ri-filter-title {
	font-size: 22px;
	margin: 0 0 18px;
	padding-bottom: 14px;
	border-bottom: 2px solid var(--ri-ink);
}

.ri-filter-group {
	padding: 18px 0;
	border-bottom: 1px solid var(--ri-line);
}

.ri-filter-group h4 {
	font-size: 14px;
	letter-spacing: .04em;
	text-transform: uppercase;
	margin: 0 0 14px;
}

/* Dual-handle price range slider */
.ri-price-slider {
	position: relative;
	height: 34px;
	margin: 4px 2px 14px;
}

.ri-slider-track {
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	height: 4px;
	transform: translateY(-50%);
	background: var(--ri-line-2);
	border-radius: 999px;
}

.ri-slider-fill {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	background: var(--ri-ink);
	border-radius: 999px;
}

.ri-price-slider input[type="range"] {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 34px;
	margin: 0;
	padding: 0;
	background: none;
	pointer-events: none;
	-webkit-appearance: none;
	appearance: none;
}

.ri-price-slider input[type="range"]:focus {
	outline: none;
}

.ri-price-slider input[type="range"]::-webkit-slider-runnable-track {
	background: none;
	border: none;
	height: 4px;
}

.ri-price-slider input[type="range"]::-moz-range-track {
	background: none;
	border: none;
	height: 4px;
}

.ri-price-slider input[type="range"]::-webkit-slider-thumb {
	pointer-events: auto;
	-webkit-appearance: none;
	appearance: none;
	width: 18px;
	height: 18px;
	margin-top: -7px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid var(--ri-ink);
	box-shadow: var(--ri-shadow);
	cursor: grab;
}

.ri-price-slider input[type="range"]::-webkit-slider-thumb:active {
	cursor: grabbing;
}

.ri-price-slider input[type="range"]::-moz-range-thumb {
	pointer-events: auto;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid var(--ri-ink);
	box-shadow: var(--ri-shadow);
	cursor: grab;
}

.ri-price-row-f {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 12px;
}

.ri-price-row-f span {
	color: var(--ri-muted);
}

.ri-price-row-f em {
	color: var(--ri-muted);
	font-style: normal;
	font-size: 13px;
}

.ri-price-row-f input {
	width: 100%;
	min-width: 0;
	border: 1px solid var(--ri-line-2);
	border-radius: var(--ri-radius-btn);
	padding: 9px 10px;
	font-size: 14px;
	color: var(--ri-ink);
}

.ri-price-filter .ri-btn {
	width: 100%;
	justify-content: center;
	padding: 10px;
}

.ri-filter-list {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.ri-filter-list li a {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	padding: 7px 0;
	color: var(--ri-ink-2);
	font-size: 14px;
}

.ri-filter-list li a span {
	color: var(--ri-muted);
	font-size: 13px;
}

.ri-filter-list li a:hover {
	color: #000;
}

.ri-filter-list li.is-current a {
	font-weight: 600;
	color: #000;
}

.ri-filter-reset {
	display: inline-block;
	margin-top: 18px;
	font-size: 13px;
	color: var(--ri-muted);
	text-decoration: underline;
}

.ri-filter-reset:hover {
	color: var(--ri-ink);
}

/* Main column */
.ri-shop-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	padding-bottom: 20px;
	margin-bottom: 8px;
	border-bottom: 1px solid var(--ri-line);
}

.ri-shop-toolbar .woocommerce-result-count {
	margin: 0;
	color: var(--ri-muted);
	font-size: 14px;
}

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

.ri-shop-toolbar .woocommerce-ordering select {
	border: 1px solid var(--ri-line-2);
	border-radius: var(--ri-radius-btn);
	padding: 9px 14px;
	background: #fff;
	color: var(--ri-ink);
	font-size: 14px;
}

.ri-shop-main ul.products {
	grid-template-columns: repeat(4, 1fr) !important;
	margin-top: 24px;
}

/* Product/card links never get the content underline */
.ri-shop-main a,
.entry-content ul.products a,
.entry-content ul.products a.button,
.ri-wishlist-main a {
	text-decoration: none;
}

/* Responsive grid: 4 → 3 → 2 → 1 (the JS view-switcher can override on desktop) */
@media (max-width: 1200px) {
	.ri-shop-main ul.products {
		grid-template-columns: repeat(3, 1fr) !important;
	}
}

/* Search results page */
.ri-search-main ul.products {
	margin-top: 24px;
}

.ri-search-again {
	max-width: 520px;
	margin: 26px auto 0;
}

.ri-search-again form {
	display: flex;
	border: 1px solid var(--ri-line-2);
	overflow: hidden;
}

.ri-search-again input[type="search"],
.ri-search-again input[type="text"] {
	flex: 1;
	border: 0;
	padding: 12px 16px;
	font-size: 15px;
	outline: none;
	color: var(--ri-ink);
}

.ri-search-again button {
	background: var(--ri-ink);
	color: #fff;
	border: 0;
	padding: 0 22px;
	font-weight: 600;
	cursor: pointer;
}

/* Active filter chips */
.ri-active-filters {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin: 20px 0 0;
}

.ri-af-label {
	color: var(--ri-muted);
	font-size: 13px;
}

.ri-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--ri-bg-alt);
	border: 1px solid var(--ri-line);
	border-radius: 999px;
	padding: 6px 13px;
	font-size: 13px;
	font-weight: 600;
	color: var(--ri-ink);
}

.ri-chip svg {
	width: 14px;
	height: 14px;
	stroke: currentColor;
	fill: none;
	stroke-width: 2.2;
}

.ri-chip:hover {
	background: var(--ri-ink);
	color: #fff;
	border-color: var(--ri-ink);
}

.ri-af-clear {
	font-size: 13px;
	text-decoration: underline;
	color: var(--ri-muted);
}

.ri-af-clear:hover {
	color: var(--ri-ink);
}

.ri-shop-toolbar .woocommerce-result-count {
	margin-right: auto;
}

.ri-toolbar-right {
	display: flex;
	align-items: center;
	gap: 12px;
}

/* View switcher */
.ri-view-switch {
	display: flex;
	gap: 4px;
}

.ri-view-switch button {
	width: 40px;
	height: 40px;
	border: 1px solid var(--ri-line-2);
	background: #fff;
	border-radius: var(--ri-radius-btn);
	display: grid;
	place-items: center;
	color: var(--ri-muted);
	cursor: pointer;
	padding: 0;
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.ri-view-switch button svg {
	width: 18px;
	height: 18px;
}

.ri-view-switch button:hover {
	border-color: var(--ri-ink);
	color: var(--ri-ink);
}

.ri-view-switch button.is-active {
	background: var(--ri-ink);
	color: #fff;
	border-color: var(--ri-ink);
}

.ri-view-switch [data-cols="1"] {
	display: none;
}

/* list shown on mobile only */

/* Column-count overrides (desktop) */
@media (min-width: 981px) {
	.ri-shop-main ul.products.ri-cols-2 {
		grid-template-columns: repeat(2, 1fr) !important;
	}

	.ri-shop-main ul.products.ri-cols-3 {
		grid-template-columns: repeat(3, 1fr) !important;
	}

	.ri-shop-main ul.products.ri-cols-4 {
		grid-template-columns: repeat(4, 1fr) !important;
	}
}

/* List view (1 column) — clean single-column cards with a landscape image */
.ri-shop-main ul.products.ri-cols-1 {
	grid-template-columns: 1fr !important;
}

.ri-shop-main ul.products.ri-cols-1 li.product a img {
	aspect-ratio: 16 / 10;
}

/* Infinite scroll loader */
.ri-infinite {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 44px 0;
	min-height: 64px;
}

.ri-spinner {
	display: none;
	width: 32px;
	height: 32px;
	border: 3px solid var(--ri-line-2);
	border-top-color: var(--ri-ink);
	border-radius: 50%;
	animation: riSpin .7s linear infinite;
}

@keyframes riSpin {
	to {
		transform: rotate(360deg);
	}
}

.ri-infinite.ri-js .ri-spinner {
	display: block;
}

.ri-infinite.ri-js .ri-infinite-fallback {
	display: none;
}

/* Pagination (still used elsewhere, e.g. blog) */
.woocommerce-pagination {
	margin-top: 40px;
}

.woocommerce-pagination ul {
	display: inline-flex;
	gap: 6px;
	border: 0 !important;
}

.woocommerce-pagination ul li {
	border: 0 !important;
}

.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
	display: grid;
	place-items: center;
	min-width: 42px;
	height: 42px;
	padding: 0 10px;
	border: 1px solid var(--ri-line-2) !important;
	border-radius: var(--ri-radius-btn);
	color: var(--ri-ink);
}

.woocommerce-pagination ul li span.current,
.woocommerce-pagination ul li a:hover {
	background: var(--ri-ink) !important;
	color: #fff !important;
	border-color: var(--ri-ink) !important;
}

/* Mobile filter drawer */
.ri-filter-toggle {
	display: none;
}

.ri-filter-close {
	display: none;
}

.ri-filter-overlay {
	display: none;
}

/* hidden on desktop so it doesn't take a grid cell */

@media (max-width: 980px) {
	.ri-shop-layout {
		display: block;
	}

	.ri-shop-main ul.products {
		grid-template-columns: repeat(2, 1fr) !important;
	}

	/* Toolbar: Filter button (left) + Sort (right) */
	.ri-shop-toolbar {
		border-bottom: 0;
		padding-bottom: 0;
	}

	.ri-shop-toolbar .woocommerce-result-count {
		display: none;
	}

	.ri-filter-toggle {
		display: inline-flex;
		align-items: center;
		gap: 8px;
		order: -1;
		margin-right: auto;
		background: #fff;
		border: 1px solid var(--ri-line-2);
		border-radius: var(--ri-radius-btn);
		padding: 10px 16px;
		font-size: 14px;
		font-weight: 600;
		color: var(--ri-ink);
	}

	.ri-filter-toggle svg {
		width: 18px;
		height: 18px;
		stroke: currentColor;
		fill: none;
		stroke-width: 1.7;
	}

	.ri-filter-toggle:hover {
		border-color: var(--ri-ink);
	}

	/* Sidebar becomes an off-canvas drawer */
	.ri-shop-sidebar {
		position: fixed;
		top: 0;
		left: 0;
		bottom: 0;
		width: 88%;
		max-width: 360px;
		z-index: 250;
		background: #fff;
		overflow-y: auto;
		padding: 24px 22px 40px;
		transform: translateX(-100%);
		transition: transform .28s ease;
		box-shadow: 0 0 40px rgba(0, 0, 0, .25);
	}

	.ri-shop-sidebar.is-open {
		transform: translateX(0);
	}

	.ri-filter-overlay {
		display: none;
		position: fixed;
		inset: 0;
		background: rgba(0, 0, 0, .5);
		z-index: 240;
	}

	.ri-filter-overlay.is-open {
		display: block;
	}

	.ri-filter-close {
		display: grid;
		place-items: center;
		position: absolute;
		top: 16px;
		right: 16px;
		width: 38px;
		height: 38px;
		border-radius: 999px;
		background: var(--ri-bg-alt);
		border: 0;
		color: var(--ri-ink);
		cursor: pointer;
	}

	.ri-filter-close svg {
		width: 20px;
		height: 20px;
		stroke: currentColor;
		fill: none;
		stroke-width: 1.8;
	}

	/* View switch on mobile: list + 2-col only */
	.ri-view-switch [data-cols="1"] {
		display: grid;
	}

	.ri-view-switch [data-cols="3"],
	.ri-view-switch [data-cols="4"] {
		display: none;
	}

	.ri-view-switch button {
		width: 36px;
		height: 36px;
	}
}

@media (max-width: 560px) {
	.ri-shop-main ul.products {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}

/* carousel dots */
.ri-dots {
	display: flex;
	gap: 10px;
	justify-content: center;
	margin-top: 26px;
}

.ri-dots span {
	width: 9px;
	height: 9px;
	border-radius: 999px;
	background: var(--ri-line-2);
}

.ri-dots span.is-active {
	background: var(--ri-ink);
	width: 22px;
}

/* ==========================================================================
   Trustpilot / reviews
   ========================================================================== */
.ri-trust {
	background: var(--ri-bg-alt);
}

.ri-trust-top {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin-bottom: 36px;
	flex-wrap: wrap;
}

.ri-stars {
	color: var(--ri-star);
	font-size: 20px;
	letter-spacing: 2px;
}

.ri-trust-top .ri-stars {
	font-size: 22px;
}

.ri-trust-top strong {
	font-size: 18px;
}

.ri-trust-top .muted {
	color: var(--ri-muted);
}

.ri-reviews {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}

.ri-review {
	position: relative;
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--ri-line);
	border-radius: var(--ri-radius);
	padding: 28px 26px;
	box-shadow: var(--ri-shadow);
	transition: transform .2s ease, box-shadow .2s ease;
	overflow: hidden;
}

.ri-review:hover {
	transform: translateY(-4px);
	box-shadow: var(--ri-shadow-hover);
}

/* Subtle decorative quote mark in the corner. */
.ri-review::before {
	content: "\201C";
	position: absolute;
	top: 6px;
	right: 20px;
	pointer-events: none;
	font-family: Georgia, 'Times New Roman', serif;
	font-size: 72px;
	line-height: 1;
	color: var(--ri-line);
}

.ri-review-head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 14px;
}

.ri-review .ri-stars {
	font-size: 15px;
}

.ri-review .badge-verified {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 3px 9px;
	color: var(--ri-star);
	background: var(--ri-stock-bg);
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .03em;
	text-transform: uppercase;
}

.ri-review h4 {
	font-size: 15.5px;
	margin: 0 0 8px;
	color: var(--ri-ink);
}

.ri-review .ri-review-quote {
	color: var(--ri-ink-2);
	font-size: 14.5px;
	line-height: 1.65;
	margin: 0 0 20px;
	flex: 1 1 auto;
}

.ri-review-author {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: auto;
	padding-top: 16px;
	border-top: 1px solid var(--ri-line);
}

.ri-review .ri-avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--ri-ink);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
}

.ri-review .who {
	color: var(--ri-ink);
	font-size: 13.5px;
	font-weight: 600;
	margin: 0;
}

/* ==========================================================================
   Inline category link lists (above footer)
   ========================================================================== */
.ri-linklists {
	padding: 40px 0;
	border-top: 1px solid var(--ri-line);
}

.ri-linklist {
	margin-bottom: 18px;
}

.ri-linklist h4 {
	font-size: 13px;
	letter-spacing: .04em;
	text-transform: uppercase;
	margin-bottom: 8px;
}

.ri-linklist .items {
	color: var(--ri-muted);
	font-size: 13.5px;
	line-height: 2;
}

.ri-linklist .items a {
	color: var(--ri-muted);
}

.ri-linklist .items a:hover {
	color: var(--ri-ink);
}

/* ==========================================================================
   Footer (dark)
   ========================================================================== */
.ri-footer {
	background: #0b0b0d;
	border-top: 1px solid #1c1c20;
	padding-top: 56px;
	color: #a1a1aa;
}

.ri-footer-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
	gap: 30px;
	padding-bottom: 44px;
}

/* Accordion headers & contents for columns */
.ri-footer-col-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
}

.ri-footer-col-header h4 {
	color: #fff;
	font-size: 14px;
	letter-spacing: .04em;
	text-transform: uppercase;
	margin: 0 !important;
}

.ri-footer-col-header h4 a {
	color: #fff !important;
	text-decoration: none;
	display: inline-block;
	padding: 0;
}

.ri-footer-col-toggle {
	display: none;
	font-size: 18px;
	font-weight: 500;
	color: #a1a1aa;
	cursor: pointer;
	user-select: none;
}

.ri-footer-col-content {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.ri-footer-col-content a {
	color: #a1a1aa;
	display: block;
	padding: 5px 0;
	font-size: 13.5px;
	transition: color 0.2s ease;
}

.ri-footer-col-content a:hover {
	color: #fff;
}

.ri-footer-bottom {
	border-top: 1px solid #1c1c20;
	padding: 22px 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	font-size: 13px;
}

.ri-footer-bottom .pay {
	display: flex;
	gap: 7px;
	flex-wrap: wrap;
	align-items: center;
}

.ri-footer-bottom .pay svg {
	height: 26px;
	width: 39px;
	display: block;
	border-radius: 4px;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, .08);
}

.ri-social {
	display: flex;
	gap: 12px;
}

.ri-social a {
	width: 36px;
	height: 36px;
	border-radius: 999px;
	border: 1px solid #2a2a30;
	display: grid;
	place-items: center;
	color: #a1a1aa;
	padding: 0;
}

.ri-social a svg {
	width: 17px;
	height: 17px;
}

.ri-social a:hover {
	border-color: #fff;
	color: #fff;
}

.ri-disclaimer {
	font-size: 12px;
	color: #6b6b73;
	line-height: 1.7;
	padding: 24px 0;
	border-top: 1px solid #1c1c20;
}

.ri-disclaimer strong {
	color: #c7c7cd;
	display: block;
	margin-bottom: 6px;
}

/* CTA newsletter band */
.ri-cta-band {
	background: var(--ri-ink);
	color: #fff;
}

.ri-cta-band .ri-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 26px;
	flex-wrap: wrap;
	padding: 42px 24px;
}

.ri-cta-band h2 {
	color: #fff;
	font-size: 28px;
	margin: 0;
}

.ri-cta-band p {
	color: #c7c7cd;
	margin: 6px 0 0;
}

.ri-newsletter-wrap {
	display: flex;
	flex-direction: column;
	gap: 6px;
	width: 100%;
	max-width: 420px;
}

.ri-newsletter {
	display: flex;
	gap: 10px;
	width: 100%;
}

.ri-newsletter input,
.ri-newsletter button {
	box-sizing: border-box;
}

.ri-newsletter input {
	background: #1a1a1f;
	border: 1px solid #2a2a30;
	border-radius: var(--ri-radius-btn);
	color: #fff;
	padding: 13px 18px;
	min-width: 280px;
	box-sizing: border-box;
}

.ri-nl-msg {
	margin: 0;
	font-size: 13px;
	min-height: 16px;
}

.ri-nl-msg.is-success {
	color: #7bdcb5;
}

.ri-nl-msg.is-error {
	color: #ff9b9b;
}

/* ==========================================================================
   WooCommerce page scaffolding
   ========================================================================== */
.ri-page {
	padding: 40px 0 72px;
}

.ri-page-head {
	padding: 36px 0;
	background: var(--ri-bg-alt);
	border-bottom: 1px solid var(--ri-line);
	margin-bottom: 40px;
}

.ri-page-head h1 {
	font-size: clamp(26px, 3.4vw, 40px);
	margin: 0;
}

.ri-breadcrumb,
.woocommerce-breadcrumb {
	color: var(--ri-muted);
	font-size: 13px;
	margin-bottom: 8px;
}

.ri-breadcrumb a,
.woocommerce-breadcrumb a {
	color: var(--ri-ink);
}

.entry-content a {
	color: var(--ri-ink);
	text-decoration: underline;
}

/* Buttons inside page content (e.g. the wishlist empty state) keep their own
   styling — the content link rule above must not repaint them. */
.entry-content a.ri-btn {
	text-decoration: none;
}

.entry-content a.ri-btn-dark {
	color: #fff;
}

.entry-content {
	line-height: 1.8;
}

/* Woo buttons / forms */
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
	background: var(--ri-ink) !important;
	color: #fff !important;
	border-radius: var(--ri-radius-btn) !important;
	font-weight: 600 !important;
	border: 0 !important;
	padding: 13px 26px !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover {
	background: #000 !important;
}

/* ---- WooCommerce blocks: Cart & Checkout ---- */
.wp-block-woocommerce-cart,
.wp-block-woocommerce-checkout {
	color: var(--ri-ink);
}

.wp-block-woocommerce-cart a,
.wp-block-woocommerce-checkout a,
.wc-block-components-product-name,
a.wc-block-components-product-name {
	text-decoration: none !important;
}

.wc-block-components-product-name {
	color: var(--ri-ink);
}

.wc-block-components-product-name:hover {
	color: #000;
}

/* Larger product names + prices in the cart (override block defaults) */
.wp-block-woocommerce-cart .wc-block-cart-item__product .wc-block-components-product-name,
.wp-block-woocommerce-cart a.wc-block-components-product-name {
	font-size: 15px !important;
	font-weight: 600 !important;
	line-height: 1.4 !important;
}

.wp-block-woocommerce-cart .wc-block-cart-item__prices,
.wp-block-woocommerce-cart .wc-block-cart-item__prices .wc-block-components-product-price,
.wp-block-woocommerce-cart .wc-block-components-product-price,
.wp-block-woocommerce-cart .wc-block-components-product-price .wc-block-components-formatted-money-amount {
	font-size: 13.5px !important;
}

.wp-block-woocommerce-cart .wc-block-cart-item__total .wc-block-components-formatted-money-amount,
.wp-block-woocommerce-cart .wc-block-cart-item__total .wc-block-components-product-price__value {
	font-size: 15px !important;
	font-weight: 700 !important;
	color: var(--ri-ink) !important;
}

/* Cart totals panel */
.wp-block-woocommerce-cart .wc-block-components-totals-item__label,
.wp-block-woocommerce-cart .wc-block-components-totals-item__value {
	font-size: 14px !important;
}

.wp-block-woocommerce-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	font-size: 18px !important;
	font-weight: 700 !important;
}

/* Primary buttons (Proceed to Checkout / Place Order) */
.wc-block-cart__submit-button,
.wc-block-cart__submit-container a,
.wp-block-woocommerce-cart .wc-block-components-button,
.wp-block-woocommerce-checkout .wc-block-components-button.contained,
.wc-block-components-checkout-place-order-button {
	background: var(--ri-ink) !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 0 !important;
	font-weight: 600 !important;
	text-decoration: none !important;
	padding: 15px 24px !important;
	width: 100%;
	display: flex !important;
	justify-content: center;
	box-shadow: none !important;
}

.wc-block-cart__submit-button:hover,
.wc-block-components-checkout-place-order-button:hover {
	background: #000 !important;
}

.wc-block-components-button__text {
	color: #fff !important;
}

/* Quantity stepper */
.wc-block-components-quantity-selector {
	border: 1px solid var(--ri-line-2) !important;
	border-radius: 0 !important;
}

.wc-block-components-quantity-selector__button {
	color: var(--ri-ink) !important;
}

.wc-block-components-quantity-selector__input {
	color: var(--ri-ink) !important;
}

/* Totals */
.wc-block-components-totals-item__value,
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	font-weight: 700;
	color: var(--ri-ink);
}

.wp-block-woocommerce-cart-order-summary-block,
.wc-block-cart__totals-title {
	color: var(--ri-ink);
}

.wc-block-cart-items__header {
	color: var(--ri-muted);
}

/* Coupon / form fields */
.wc-block-components-text-input input {
	border-radius: 0 !important;
}

.wc-block-components-totals-coupon__button,
.wc-block-components-totals-coupon button {
	background: var(--ri-ink) !important;
	color: #fff !important;
	border-radius: 0 !important;
}

.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info {
	border-top-color: var(--ri-ink) !important;
	background: var(--ri-bg-alt);
	color: var(--ri-ink);
}

.woocommerce-message::before,
.woocommerce-info::before {
	color: var(--ri-ink) !important;
}

/* Toast notifications — WooCommerce notices shown as pop-ups, not inline */
.ri-toasts {
	position: fixed;
	top: 20px;
	right: 20px;
	z-index: 100000;
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 340px;
	max-width: calc(100vw - 32px);
	pointer-events: none;
}

.ri-toast {
	pointer-events: auto;
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 16px;
	border-radius: var(--ri-radius);
	background: var(--ri-ink);
	color: #fff;
	box-shadow: 0 12px 34px rgba(0, 0, 0, .20);
	font-size: 14px;
	line-height: 1.45;
	border-left: 3px solid #16a34a;
	opacity: 0;
	transform: translateX(24px);
	transition: opacity .3s ease, transform .3s ease;
}

.ri-toast.is-in {
	opacity: 1;
	transform: translateX(0);
}

.ri-toast.is-out {
	opacity: 0;
	transform: translateX(24px);
}

.ri-toast-msg {
	flex: 1;
}

.ri-toast-msg a {
	color: #fff;
	text-decoration: underline;
}

.ri-toast-x {
	background: none;
	border: 0;
	color: rgba(255, 255, 255, .65);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	padding: 0 2px;
}

.ri-toast-x:hover {
	color: #fff;
}

.ri-toast-success {
	border-left-color: #16a34a;
}

.ri-toast-error {
	border-left-color: #dc2626;
}

.ri-toast-info {
	border-left-color: #d0a44c;
}

@media (max-width: 600px) {
	.ri-toasts {
		top: auto;
		bottom: 16px;
		left: 16px;
		right: 16px;
		width: auto;
	}

	.ri-toast {
		transform: translateY(24px);
	}

	.ri-toast.is-in {
		transform: translateY(0);
	}

	.ri-toast.is-out {
		transform: translateY(24px);
	}
}

.woocommerce .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price {
	color: var(--ri-ink);
}

.woocommerce .star-rating span {
	color: var(--ri-star);
}

.woocommerce-result-count,
.woocommerce-ordering {
	color: var(--ri-muted);
}

/* ==========================================================================
   Single product (PDP) — kloira-style
   ========================================================================== */
/* Detail page runs full-width (kloira-style); inner sections keep their own
   boxed containers. */
.single-product main.ri-single {
	max-width: none;
	padding-left: 24px;
	padding-right: 24px;
}

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

/* Explicit placement: gallery + summary share row 1, so the sticky summary is
   contained to that row and can never overlap the full-width sections below. */
.single-product div.product {
	position: relative;
}

.single-product div.product>.ri-pdp-gallery {
	grid-column: 1;
	grid-row: 1;
}

.single-product div.product>.summary {
	grid-column: 2;
	grid-row: 1;
}


/* Kloira-style 2-column media gallery */
.ri-pdp-gallery {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.ri-pdp-gallery-item {
	display: block;
	border-radius: 0;
	overflow: hidden;
	background: var(--ri-bg-alt);
}

/* Kloira-style: all images are uniform squares, two per row */

.ri-pdp-gallery-item img {
	width: 100%;
	height: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	display: block;
	transition: transform .4s ease;
}

.ri-pdp-gallery-item:hover img {
	transform: scale(1.04);
}

.ri-pdp-gallery-ph {
	display: flex;
	align-items: center;
	justify-content: center;
}

.ri-pdp-thumbs {
	display: none;
}

/* Summary column stays pinned (kloira-style) while the image grid scrolls. */
.single-product div.product .summary {
	float: none !important;
	width: 100% !important;
	margin: 0 !important;
	position: sticky;
	top: 148px;
	/* header (78) + sticky nav (~50) + breathing room */
}

/* Fullscreen image lightbox */
.ri-lightbox {
	position: fixed;
	inset: 0;
	z-index: 1100;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(17, 17, 20, .92);
	padding: 24px;
}

.ri-lightbox.is-open {
	display: flex;
}

.ri-lightbox img {
	max-width: 92vw;
	max-height: 90vh;
	border-radius: var(--ri-radius);
	box-shadow: var(--ri-shadow-hover);
}

.ri-lightbox-close {
	position: absolute;
	top: 18px;
	right: 22px;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .16);
	border: 1px solid rgba(255, 255, 255, .5);
	color: #fff;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ri-lightbox-close:hover {
	background: rgba(255, 255, 255, .3);
}

/* Order received (thank you) page */
.woocommerce-order {
	max-width: 820px;
	margin: 0 auto;
}

.ri-order-success {
	text-align: center;
	padding: 8px 0 30px;
}

.ri-order-ic {
	display: inline-flex;
	width: 74px;
	height: 74px;
	border-radius: 50%;
	background: var(--ri-stock-bg);
	color: var(--ri-stock);
	align-items: center;
	justify-content: center;
	margin-bottom: 16px;
}

.ri-order-ic svg {
	width: 38px;
	height: 38px;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.8;
}

.ri-order-success h1 {
	font-size: clamp(26px, 4vw, 34px);
	margin: 0 0 8px;
}

.ri-order-success p {
	color: var(--ri-muted);
	margin: 0;
	font-size: 15px;
}

.woocommerce-thankyou-order-received {
	display: none;
}

/* replaced by the banner above */
ul.woocommerce-order-overview {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	gap: 22px 48px;
	list-style: none;
	margin: 0 0 36px;
	padding: 24px 28px;
	border: 1px solid var(--ri-line);
	border-radius: var(--ri-radius);
}

ul.woocommerce-order-overview li {
	border: 0 !important;
	padding: 0;
	margin: 0;
	flex: 0 1 auto;
	min-width: 120px;
	max-width: 100%;
	display: flex;
	flex-direction: column;
	gap: 5px;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: .04em;
	font-weight: 600;
	color: var(--ri-muted);
}

ul.woocommerce-order-overview li strong {
	font-size: 15px;
	color: var(--ri-ink);
	text-transform: none;
	letter-spacing: 0;
	font-weight: 700;
	overflow-wrap: anywhere;
}

.woocommerce-order-details,
.woocommerce-customer-details {
	margin-bottom: 34px;
}

.woocommerce-order-details h2,
.woocommerce-customer-details h2 {
	font-size: 20px;
	margin: 0 0 16px;
}

.woocommerce-table--order-details {
	width: 100%;
	border-collapse: collapse;
	border: 1px solid var(--ri-line);
	border-radius: var(--ri-radius);
	overflow: hidden;
}

.woocommerce-table--order-details th,
.woocommerce-table--order-details td {
	padding: 14px 18px;
	border-bottom: 1px solid var(--ri-line);
	text-align: left;
	vertical-align: top;
}

.woocommerce-table--order-details tfoot tr:last-child th,
.woocommerce-table--order-details tfoot tr:last-child td {
	border-bottom: 0;
	font-size: 16px;
}

.woocommerce-table--order-details a {
	color: var(--ri-ink);
}

.woocommerce-table--order-details .wc-item-meta {
	margin: 6px 0 0;
	padding: 0;
	list-style: none;
	font-size: 13px;
	color: var(--ri-muted);
}

.woocommerce-customer-details address {
	border: 1px solid var(--ri-line);
	border-radius: var(--ri-radius);
	padding: 18px;
	font-style: normal;
	line-height: 1.7;
	color: var(--ri-ink-2);
}

.ri-order-cta {
	text-align: center;
	margin: 6px 0 10px;
}

.ri-order-cta .ri-btn {
	display: inline-flex;
	background: var(--ri-ink) !important;
	color: #fff !important;
	padding: 14px 34px;
	border-radius: var(--ri-radius-btn) !important;
	font-weight: 600;
	text-decoration: none;
}

.ri-order-cta .ri-btn:hover {
	background: #000 !important;
	color: #fff !important;
}

/* Empty cart (Cart block) — polished, centered with a CTA */
.wp-block-woocommerce-empty-cart-block {
	max-width: 640px;
	margin: 40px auto 60px;
	text-align: center;
}

.wc-block-cart__empty-cart__title {
	font-size: clamp(22px, 3vw, 28px);
	color: var(--ri-ink);
	margin: 0 0 10px;
}

.wc-block-cart__empty-cart__title.with-empty-cart-icon::before {
	display: none !important;
}

/* drop default sad-face */
.ri-empty-cart-icon {
	display: flex;
	justify-content: center;
	margin: 0 0 18px;
}

.ri-empty-cart-icon svg {
	width: 60px;
	height: 60px;
	color: var(--ri-ink);
	stroke: currentColor;
}

/* Remove the "New in store" suggestions on the empty cart */
.wp-block-woocommerce-empty-cart-block>.wp-block-heading:not(.wc-block-cart__empty-cart__title),
.wp-block-woocommerce-empty-cart-block .wp-block-woocommerce-product-new,
.wp-block-woocommerce-empty-cart-block .wc-block-grid {
	display: none !important;
}

.ri-empty-cart-sub {
	color: var(--ri-muted);
	font-size: 15px;
	line-height: 1.6;
	margin: 0 auto 22px;
	max-width: 420px;
}

.ri-empty-cart-cta {
	display: inline-flex;
	background: var(--ri-ink) !important;
	color: #fff !important;
	padding: 14px 34px;
	border-radius: var(--ri-radius-btn) !important;
	font-weight: 600;
	text-decoration: none;
}

.ri-empty-cart-cta:hover {
	background: #000 !important;
	color: #fff !important;
}

.wp-block-woocommerce-empty-cart-block .is-style-dots {
	display: none;
}

/* hide faint dots separator */
.wp-block-woocommerce-empty-cart-block>.wp-block-heading:not(.wc-block-cart__empty-cart__title) {
	margin: 52px 0 24px;
	font-size: clamp(20px, 2.4vw, 26px);
}

/* Sticky bottom add-to-cart bar */
.ri-stickybar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 200;
	background: #fff;
	border-top: 1px solid var(--ri-line);
	box-shadow: 0 -6px 24px rgba(17, 17, 20, .1);
	transform: translateY(110%);
	transition: transform .3s ease;
}

.ri-stickybar.is-visible {
	transform: translateY(0);
}

.ri-stickybar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 24px;
}

.ri-stickybar-info {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
}

.ri-stickybar-img {
	width: 50px;
	height: 50px;
	object-fit: cover;
	border-radius: 8px;
	flex: none;
	background: var(--ri-bg-alt);
}

.ri-stickybar-title {
	font-weight: 600;
	font-size: 16px;
	color: var(--ri-ink);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ri-stickybar-buy {
	display: flex;
	align-items: center;
	gap: 18px;
	flex: none;
}

.ri-stickybar-price {
	font-weight: 700;
	font-size: 18px;
	color: var(--ri-ink);
}

.ri-stickybar-price del {
	color: var(--ri-muted);
	font-weight: 400;
	font-size: 14px;
	margin-left: 6px;
}

.ri-stickybar .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--ri-ink);
	color: #fff;
	border: 0;
	border-radius: var(--ri-radius-btn);
	padding: 14px 32px;
	font-size: 15px;
	font-weight: 600;
	white-space: nowrap;
	position: relative;
}

.ri-stickybar .button:hover {
	background: #000;
	color: #fff;
}

.ri-stickybar .button.loading {
	color: transparent !important;
	opacity: 1 !important;
	pointer-events: none;
}

.ri-stickybar .button.loading::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 16px;
	height: 16px;
	margin: -8px 0 0 -8px;
	border: 2px solid rgba(255, 255, 255, .45);
	border-top-color: #fff;
	border-radius: 50%;
	box-sizing: border-box;
	animation: riSpin .6s linear infinite;
}

.ri-stickybar a.added_to_cart {
	display: none !important;
}

@media (max-width: 600px) {

	/* Mobile: drop the thumbnail, title and price — edge-to-edge full-bleed button */
	.ri-stickybar-inner {
		padding: 0 !important;
		max-width: none;
	}

	.ri-stickybar-info {
		display: none;
	}

	.ri-stickybar-price {
		display: none;
	}

	.ri-stickybar-buy {
		flex: 1;
		gap: 0;
		text-align: center;
	}

	.ri-stickybar .button {
		flex: 1;
		width: 100%;
		border-radius: 0;
		padding: 17px;
		padding-bottom: calc(17px + env(safe-area-inset-bottom));
		font-size: 16px;
		font-weight: 700;
		letter-spacing: .01em;
	}
}

.single-product div.product>.woocommerce-tabs,
.single-product div.product>.related,
/* These sections render AFTER the product grid (siblings of div.product) so
   the sticky summary can't overlap them. Keep grid-column for safety if any
   ever ends up inside the grid. */
.single-product div.product>.up-sells,
.single-product div.product>.ri-vtestimonials,
.single-product div.product>.ri-pdp-detail,
.single-product div.product>.ri-pdp-reviews,
.single-product div.product>.ri-pdp-faq {
	grid-column: 1 / -1;
}

/* Detail section sits inside the already-padded page wrapper — drop its own
   container padding so it lines up with the gallery/summary columns. */
.single-product .ri-pdp-detail>.ri-container {
	padding: 0;
	max-width: none;
}

/* Testimonials section sits inside the already-padded page wrapper. */
.single-product .ri-vtestimonials {
	margin-top: 8px;
}

/* Space between the product grid and the sections that follow it. */
.single-product main.ri-single>.ri-pdp-detail,
.single-product main.ri-single>.ri-vtestimonials,
.single-product main.ri-single>.ri-pdp-reviews {
	margin-top: 48px;
}

.single-product .ri-vtestimonials>.ri-container {
	padding: 0;
	max-width: none;
}

.ri-pdp-trust {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--ri-muted);
	margin-bottom: 12px;
}

.ri-pdp-trust .ri-stars {
	color: var(--ri-star);
	letter-spacing: 1px;
}

.ri-pdp-trust strong {
	color: var(--ri-ink);
}

.single-product div.product .product_title {
	font-size: clamp(26px, 3vw, 38px);
	font-weight: 700;
	line-height: 1.15;
	margin: 0 0 12px;
}

.single-product div.product p.price,
.single-product div.product .price {
	font-size: 26px !important;
	color: var(--ri-ink) !important;
	font-weight: 700;
	margin: 0 0 6px;
}

.ri-pdp-price-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 18px;
}

.ri-pdp-price-row p.price,
.ri-pdp-price-row .price {
	margin: 0 !important;
}

.single-product div.product p.price del,
.single-product div.product .price del {
	color: var(--ri-muted) !important;
	font-weight: 400;
	font-size: 18px;
	opacity: .8;
}

.single-product div.product p.price ins {
	text-decoration: none;
}

.ri-pdp-save {
	display: inline-block;
	background: var(--ri-ink);
	color: #fff;
	font-weight: 700;
	font-size: 13px;
	letter-spacing: .03em;
	padding: 5px 12px;
}

.ri-pdp-delivery {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13.5px;
	color: var(--ri-ink-2);
	margin-bottom: 18px;
}

.ri-pdp-delivery svg {
	width: 18px;
	height: 18px;
	flex: none;
	stroke: var(--ri-ink);
	fill: none;
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ri-pdp-delivery strong {
	color: var(--ri-ink);
	font-weight: 700;
}

.single-product .woocommerce-product-details__short-description {
	color: var(--ri-ink-2);
	font-size: 15px;
	line-height: 1.7;
	margin-bottom: 20px;
}

.single-product form.cart {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: stretch;
	margin: 0 0 8px;
}

/* Each selector spans its own full-width row so the Add-to-cart button sits alone below. */
.single-product form.cart .ri-metal-select,
.single-product form.cart .ri-size-select,
.single-product form.cart .ri-cfg {
	flex: 0 0 100%;
	margin: 0;
}

/* Quantity selector hidden on PDP — qty defaults to 1 and add-to-cart still posts it */
.single-product form.cart .quantity {
	display: none !important;
}

.single-product form.cart .single_add_to_cart_button {
	flex: 1;
	min-width: 200px;
	padding: 16px 24px !important;
	font-size: 15px !important;
	text-align: center;
}

.ri-pdp-buttons {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 12px;
	margin: 16px 0;
}

.ri-pdp-buttons .ri-btn-dark {
	justify-content: center;
	padding: 15px 20px;
}

.ri-pdp-buttons .ri-wholesale-open {
	display: flex;
	width: auto;
	margin: 0;
}

@media (max-width: 640px) {
	.ri-pdp-buttons {
		grid-template-columns: 1fr;
		gap: 8px;
	}

	.ri-pdp-buttons .ri-btn,
	.ri-pdp-buttons .ri-pdp-wa,
	.ri-pdp-buttons .ri-wholesale-open {
		width: 100%;
		justify-content: center;
		padding: 14px 16px;
		font-size: 13px;
	}

	.single-product form.cart .single_add_to_cart_button {
		flex: 1 1 100%;
		min-width: 0;
		width: 100%;
	}
}

/* SVG icons inside PDP action buttons — consistent sizing & alignment */
.ri-pdp-buttons .ri-btn svg,
.ri-wholesale-open svg {
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
	vertical-align: middle;
}

.ri-btn-ic svg {
	width: 18px;
	height: 18px;
}

.single-product form.cart .single_add_to_cart_button,
.ri-stickybar .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.ri-btn-ic {
	display: inline-flex;
	line-height: 0;
}

.ri-btn-ic svg {
	width: 18px;
	height: 18px;
}

.ri-pdp-wa {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: #25D366;
	color: #fff;
	font-weight: 600;
	font-size: 14px;
	letter-spacing: .03em;
	text-transform: uppercase;
	padding: 15px;
	border-radius: var(--ri-radius-btn);
	border: 1px solid #25D366;
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	cursor: pointer;
}

.ri-pdp-wa svg {
	transition: transform 0.25s ease;
}

.ri-pdp-wa:hover {
	background: #fff;
	color: #25D366;
	border-color: #25D366;
	box-shadow: 0 4px 12px rgba(37, 211, 102, 0.15);
}

.ri-pdp-wa:hover svg {
	transform: scale(1.15) rotate(10deg);
}

.ri-pdp-wa svg {
	width: 20px;
	height: 20px;
}

/* Specs box (Color / Clarity / Type / Shape) */
/* Metal selector (jewellery) */
.ri-metal-select {
	margin: 0 0 18px;
}

/* Space the Purity / Stone sub-groups away from the metal buttons above them. */
.ri-metal-select .ri-karat-select,
.ri-metal-select .ri-stone-select {
	margin: 16px 0 0;
}

.ri-metal-label {
	display: block;
	font-weight: 600;
	font-size: 14px;
	margin-bottom: 9px;
	color: var(--ri-ink);
}

.ri-metal-opts {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.ri-metal-opt {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 9px 15px;
	border: 1px solid var(--ri-line-2);
	border-radius: var(--ri-radius-sm);
	background: #fff;
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
	color: var(--ri-ink);
	transition: border-color .15s ease, box-shadow .15s ease;
}

.ri-metal-opt:hover {
	border-color: var(--ri-ink);
}

.ri-metal-opt.is-active {
	border-color: var(--ri-ink);
	box-shadow: inset 0 0 0 1px var(--ri-ink);
}

/* Karat (purity) sub-picker — shown only for gold metals */
.ri-karat-select {
	margin: 0 0 18px;
}

.ri-karat-select[hidden] {
	display: none;
}

.ri-karat-opts {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.ri-karat-opt {
	padding: 9px 18px;
	border: 1px solid var(--ri-line-2);
	border-radius: var(--ri-radius-sm);
	background: #fff;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	color: var(--ri-ink);
	transition: border-color .15s ease, box-shadow .15s ease;
}

.ri-karat-opt:hover {
	border-color: var(--ri-ink);
}

.ri-karat-opt.is-active {
	border-color: var(--ri-ink);
	box-shadow: inset 0 0 0 1px var(--ri-ink);
}

/* Stone (moissanite / lab / natural) picker */
.ri-stone-select {
	margin: 0 0 18px;
}

.ri-stone-opts {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.ri-stone-opt {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 9px 15px;
	border: 1px solid var(--ri-line-2);
	border-radius: var(--ri-radius-sm);
	background: #fff;
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
	color: var(--ri-ink);
	transition: border-color .15s ease, box-shadow .15s ease;
}

.ri-stone-opt:hover {
	border-color: var(--ri-ink);
}

.ri-stone-opt.is-active {
	border-color: var(--ri-ink);
	box-shadow: inset 0 0 0 1px var(--ri-ink);
}

.ri-stone-plus {
	font-size: 12px;
	font-weight: 600;
	color: var(--ri-muted);
}

.ri-stone-opt.is-active .ri-stone-plus {
	color: var(--ri-ink);
}

/* Size picker (chain length / ring size / wrist size) — dropdown */
.ri-size-select {
	margin: 0 0 18px;
}

.ri-size-dd {
	display: block;
	width: 100%;
	max-width: 260px;
	padding: 11px 40px 11px 14px;
	border: 1px solid var(--ri-line-2);
	border-radius: var(--ri-radius-sm);
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111114' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 12px center / 16px;
	font: inherit;
	font-size: 14.5px;
	font-weight: 600;
	color: var(--ri-ink);
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.ri-size-dd:hover {
	border-color: var(--ri-ink);
}

.ri-size-dd:focus {
	outline: none;
	border-color: var(--ri-ink);
	box-shadow: 0 0 0 3px rgba(0, 0, 0, .06);
}

.ri-metal-swatch {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12);
}

.ri-metal-silver {
	background: linear-gradient(135deg, #ececec, #b6b6b6);
}

.ri-metal-rose-gold {
	background: linear-gradient(135deg, #f4c4b0, #b76e79);
}

.ri-metal-yellow-gold {
	background: linear-gradient(135deg, #f3d77a, #d4af37);
}

.ri-metal-white-gold {
	background: linear-gradient(135deg, #f6f6f8, #cfcfd6);
}

/* Spec grid — columns set inline (up to 4); gap lines act as dividers for any count */
.ri-pdp-specs {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1px;
	background: var(--ri-line);
	border: 1px solid var(--ri-line);
	border-radius: var(--ri-radius);
	overflow: hidden;
	margin: 0 0 22px;
}

.ri-pdp-spec {
	text-align: center;
	padding: 16px 8px;
	background: #fff;
}

.ri-pdp-spec strong {
	display: block;
	font-size: 15px;
	font-weight: 600;
	color: var(--ri-ink);
	margin-bottom: 2px;
}

.ri-pdp-spec span {
	font-size: 12px;
	color: var(--ri-muted);
}

.ri-pdp-secure {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
	color: var(--ri-muted);
	font-size: 13px;
	border-top: 1px solid var(--ri-line);
	border-bottom: 1px solid var(--ri-line);
	padding: 14px 0;
	margin: 18px 0;
}

.ri-pdp-pay {
	display: flex;
	gap: 5px;
}

.ri-pdp-pay svg {
	height: 22px;
	width: 33px;
	border-radius: 3px;
	box-shadow: 0 0 0 1px var(--ri-line);
}

/* Product description under the title, with read more / read less */
.ri-pdp-desc {
	margin: 4px 0 18px;
}

.ri-desc-body {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	color: var(--ri-ink-2);
	font-size: 14.5px;
	line-height: 1.65;
}

.ri-desc-body p {
	margin: 0 0 10px;
}

.ri-desc-body p:last-child {
	margin-bottom: 0;
}

.ri-desc-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 10px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .01em;
	color: var(--ri-ink);
	cursor: pointer;
	border-bottom: 1px solid currentColor;
	padding-bottom: 1px;
	text-decoration: none;
	-webkit-user-select: none;
	user-select: none;
}

.ri-desc-btn::after {
	content: "\2193";
	font-weight: 700;
}

/* When the teaser already fits in two lines, the link adds nothing — hide it. */
.ri-pdp-desc.is-short .ri-desc-btn {
	display: none;
}

/* Smooth-scroll "Read more" to the detail section, clearing the sticky header. */
html {
	scroll-behavior: smooth;
}

.ri-pdp-detail {
	scroll-margin-top: 90px;
}

/* Live "viewing now" pill */
.ri-pdp-viewing {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 6px 0 18px;
	padding: 10px 16px;
	font-size: 13px;
	color: var(--ri-ink-2);
	background: var(--ri-surface);
	border: 1px solid var(--ri-line);
	border-radius: 999px;
}

.ri-pdp-viewing strong {
	color: var(--ri-ink);
}

.ri-viewing-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #16a34a;
	box-shadow: 0 0 0 0 rgba(22, 163, 74, .5);
	animation: ri-viewing-pulse 1.8s ease-out infinite;
}

@keyframes ri-viewing-pulse {
	0% {
		box-shadow: 0 0 0 0 rgba(22, 163, 74, .5);
	}

	70% {
		box-shadow: 0 0 0 7px rgba(22, 163, 74, 0);
	}

	100% {
		box-shadow: 0 0 0 0 rgba(22, 163, 74, 0);
	}
}

.ri-pdp-badges {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0;
	text-align: center;
	margin: 6px 0 10px;
	border: 1px solid var(--ri-line);
	border-radius: var(--ri-radius);
	overflow: hidden;
}

.ri-pdp-badge {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 10px;
	font-size: 11.5px;
	line-height: 1.35;
	color: var(--ri-ink-2);
	padding: 18px 10px;
	border-left: 1px solid var(--ri-line);
	transition: background .2s ease;
}

.ri-pdp-badge:first-child {
	border-left: 0;
}

.ri-pdp-badge:hover {
	background: var(--ri-surface);
}

.ri-pdp-badge svg {
	width: 26px;
	height: 26px;
	stroke: var(--ri-ink);
	fill: none;
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Video testimonials — "What Our Customers Say" */
.ri-vtestimonials .ri-section-head {
	margin-bottom: 36px;
}

.ri-vtestimonial-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 20px;
}

.ri-tvid {
	position: relative;
	aspect-ratio: 9 / 16;
	border-radius: var(--ri-radius);
	overflow: hidden;
	background: #000;
	cursor: pointer;
	box-shadow: var(--ri-shadow);
}

.ri-tvid-poster {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	pointer-events: none;
}

.ri-tvid-blank {
	background: linear-gradient(160deg, #1a1a1f, #000);
}

.ri-tvid-play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .18);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	border: 1.5px solid rgba(255, 255, 255, .6);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: transform .2s ease, background .2s ease;
}

.ri-tvid-play svg {
	width: 26px;
	height: 26px;
	margin-left: 3px;
}

.ri-tvid:hover .ri-tvid-play {
	transform: translate(-50%, -50%) scale(1.1);
	background: rgba(255, 255, 255, .32);
}

.ri-tvid.is-playing {
	cursor: default;
}

.ri-tvid video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	background: #000;
}

@media (max-width: 1200px) {
	.ri-vtestimonial-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

@media (max-width: 900px) {
	.ri-vtestimonial-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 600px) {
	.ri-vtestimonial-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 14px;
	}
}

/* FAQ accordion — card style */
.ri-pdp-faq {
	max-width: 880px;
	margin: 56px auto 0;
}

/* Reviews — full-width section below the product */
.ri-pdp-reviews {
	margin: 56px 0 0;
}

.ri-reviews-title {
	font-size: clamp(22px, 3vw, 30px);
	text-align: center;
	margin: 0 0 28px;
}

.ri-pdp-reviews #reviews {
	max-width: none;
	margin: 0 auto;
}

.ri-pdp-reviews .commentlist {
	margin: 0 0 28px;
	padding: 0;
	list-style: none;
}

/* Summary banner: score + stars on the left, write-a-review CTA on the right. */
#reviews #comments .ri-review-summary {
	display: flex;
	align-items: center;
	gap: 26px;
	padding: 24px 28px;
	margin: 0 0 20px;
	background: var(--ri-surface);
}

.ri-review-summary .ri-review-avg {
	font-size: 46px;
}

.ri-review-summary .ri-review-trigger {
	margin-left: auto;
}

@media (max-width: 640px) {
	#reviews #comments .ri-review-summary {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}

	.ri-review-summary .ri-review-trigger {
		margin-left: 0;
		width: 100%;
	}

	.ri-review-summary .ri-review-trigger .ri-btn {
		width: 100%;
		justify-content: center;
	}
}

/* Neutralize WooCommerce's default review styles (double border / floated
 * avatar gutter) with matching specificity. */
.woocommerce #reviews #comments ol.commentlist li .comment-text {
	border: 0;
	margin: 0;
	padding: 0;
	border-radius: 0;
	background: none;
}

.woocommerce #reviews #comments ol.commentlist li img.avatar {
	position: static;
	float: none;
	left: auto;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid var(--ri-line);
	border-radius: 50%;
	background: var(--ri-bg-alt);
}

.woocommerce #reviews #comments ol.commentlist li .comment_container {
	display: flex;
	gap: 16px;
	align-items: flex-start;
}

.ri-pdp-reviews .comment-form input[type="text"],
.ri-pdp-reviews .comment-form input[type="email"],
.ri-pdp-reviews .comment-form textarea {
	width: 100%;
}

/* Compact FAQ inside the product summary column */
.ri-pdp-faq-mini {
	max-width: none;
	margin: 20px 0 0;
}

.ri-faq-mini-title {
	font-size: 14px;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--ri-ink);
	margin: 0 0 12px;
}

.ri-pdp-faq-mini .ri-faq-list {
	gap: 8px;
}

.ri-pdp-faq-mini .ri-faq-item summary {
	padding: 13px 16px;
	font-size: 14.5px;
	gap: 12px;
}

.ri-pdp-faq-mini .ri-faq-icon {
	width: 20px;
	height: 20px;
}

.ri-pdp-faq-mini .ri-faq-a p {
	padding: 0 16px 15px 16px;
}

.ri-faq-head {
	text-align: center;
	margin-bottom: 32px;
}

.ri-faq-eyebrow {
	display: inline-block;
	letter-spacing: .08em;
	text-transform: uppercase;
	font-size: 12px;
	font-weight: 700;
	color: var(--ri-muted);
	margin-bottom: 8px;
}

.ri-pdp-faq h2 {
	font-size: clamp(24px, 3vw, 32px);
	margin: 0 0 10px;
}

.ri-faq-head p {
	color: var(--ri-muted);
	font-size: 15px;
	line-height: 1.6;
	max-width: 560px;
	margin: 0 auto;
}

.ri-faq-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ri-faq-item {
	border: 1px solid var(--ri-line);
	border-radius: var(--ri-radius);
	background: var(--ri-surface);
	overflow: hidden;
	transition: border-color .2s ease, box-shadow .2s ease;
}

.ri-faq-item:hover {
	border-color: var(--ri-line-2);
}

.ri-faq-item[open] {
	border-color: var(--ri-ink);
	box-shadow: var(--ri-shadow);
}

.ri-faq-item summary {
	cursor: pointer;
	list-style: none;
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 20px 22px;
	font-weight: 600;
	font-size: 16px;
	color: var(--ri-ink);
}

.ri-faq-item summary::-webkit-details-marker {
	display: none;
}

.ri-faq-num {
	flex: 0 0 auto;
	font-size: 13px;
	font-weight: 700;
	color: var(--ri-muted);
	font-variant-numeric: tabular-nums;
}

.ri-faq-item[open] .ri-faq-num {
	color: var(--ri-ink);
}

.ri-faq-q {
	flex: 1;
	line-height: 1.4;
}

.ri-faq-icon {
	flex: 0 0 auto;
	position: relative;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: 1.5px solid var(--ri-line-2);
	transition: background .2s ease, border-color .2s ease, transform .25s ease;
}

.ri-faq-icon::before,
.ri-faq-icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 9px;
	height: 1.5px;
	background: var(--ri-ink);
	transform: translate(-50%, -50%);
	transition: opacity .2s ease, background .2s ease;
}

.ri-faq-icon::after {
	transform: translate(-50%, -50%) rotate(90deg);
}

.ri-faq-item[open] .ri-faq-icon {
	background: var(--ri-ink);
	border-color: var(--ri-ink);
	transform: rotate(180deg);
}

.ri-faq-item[open] .ri-faq-icon::before,
.ri-faq-item[open] .ri-faq-icon::after {
	background: #fff;
}

.ri-faq-item[open] .ri-faq-icon::after {
	opacity: 0;
}

.ri-faq-a {
	padding: 0;
	color: var(--ri-muted);
	line-height: 1.7;
	overflow: hidden;
}

.ri-faq-a p {
	margin: 0;
	padding: 2px 22px 20px 56px;
}

/* Product tabs */
.woocommerce-tabs {
	margin-top: 40px;
}

.woocommerce-tabs ul.tabs {
	padding: 0 0 0 0;
	border-bottom: 1px solid var(--ri-line);
}

.woocommerce-tabs ul.tabs::before {
	border-color: var(--ri-line);
}

.woocommerce-tabs ul.tabs li {
	background: transparent;
	border: 0;
	border-radius: 0;
}

.woocommerce-tabs ul.tabs li.active {
	border-bottom: 2px solid var(--ri-ink);
}

.woocommerce-tabs ul.tabs li a {
	color: var(--ri-muted);
	font-weight: 600;
}

.woocommerce-tabs ul.tabs li.active a {
	color: var(--ri-ink);
}

.single-product .related>h2,
.single-product .up-sells>h2 {
	font-size: 26px;
	margin-bottom: 24px;
}

/* Smaller price/title in related & up-sell product cards */
.single-product .related ul.products li.product .price,
.single-product .up-sells ul.products li.product .price {
	font-size: 16px !important;
}

.single-product .related ul.products li.product .price del,
.single-product .up-sells ul.products li.product .price del {
	font-size: 13px;
}

.single-product .related ul.products li.product .woocommerce-loop-product__title,
.single-product .up-sells ul.products li.product .woocommerce-loop-product__title {
	font-size: 15px !important;
}

/* ==========================================================================
   Reviews tab — styled to match FAQ / theme
   ========================================================================== */
.single-product div.product>.woocommerce-tabs .panel {
	max-width: 880px;
	margin-left: auto;
	margin-right: auto;
}

#reviews #comments>h2 {
	font-size: clamp(22px, 3vw, 28px);
	margin-bottom: 24px;
}

.woocommerce-noreviews {
	color: var(--ri-muted);
	background: var(--ri-bg-alt);
	border: 1px dashed var(--ri-line-2);
	border-radius: var(--ri-radius);
	padding: 20px 22px;
	margin-bottom: 28px;
}

/* Review summary header (average + count) */
.ri-review-summary {
	display: flex;
	align-items: center;
	gap: 22px;
	flex-wrap: wrap;
	background: var(--ri-bg-alt);
	border: 1px solid var(--ri-line);
	border-radius: var(--ri-radius);
	padding: 22px 26px;
	margin: 0 0 24px;
}

.ri-review-summary-score {
	display: flex;
	align-items: baseline;
	gap: 4px;
}

.ri-review-avg {
	font-family: var(--ri-font-head);
	font-size: 44px;
	font-weight: 700;
	line-height: 1;
	color: var(--ri-ink);
}

.ri-review-avg-max {
	font-size: 16px;
	font-weight: 600;
	color: var(--ri-muted);
}

.ri-review-summary-meta {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.ri-review-summary-meta .star-rating {
	margin: 0;
	color: var(--ri-ink);
}

.ri-review-count {
	font-size: 14px;
	color: var(--ri-muted);
	font-weight: 500;
}

/* Existing review list */
#reviews ol.commentlist {
	margin: 0 0 32px;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

#reviews ol.commentlist li.review,
#reviews ol.commentlist li.comment {
	background: var(--ri-surface);
	border: 1px solid var(--ri-line);
	border-radius: var(--ri-radius);
	padding: 20px 22px;
	margin: 0;
}

#reviews ol.commentlist li .comment_container {
	display: flex;
	gap: 16px;
	align-items: flex-start;
}

#reviews ol.commentlist li img.avatar {
	position: static;
	float: none;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: 1px solid var(--ri-line);
	padding: 0;
	margin: 0;
	background: var(--ri-bg-alt);
}

#reviews ol.commentlist li .comment-text {
	margin: 0;
	border: 0;
	padding: 0;
	flex: 1;
}

#reviews .comment-text p.meta {
	font-size: 13px;
	color: var(--ri-muted);
	margin: 2px 0 8px;
}

#reviews .comment-text strong.woocommerce-review__author {
	color: var(--ri-ink);
	font-size: 15px;
}

#reviews .comment-text .woocommerce-review__published-date {
	color: var(--ri-muted);
}

#reviews .star-rating {
	color: var(--ri-ink);
	margin-bottom: 8px;
}

#reviews .comment-text .description {
	color: var(--ri-ink-2);
	font-size: 14.5px;
	line-height: 1.65;
}

/* Review form (scoped to the wrapper so it works inline OR inside the modal) */
#review_form_wrapper {
	background: var(--ri-bg-alt);
	border: 1px solid var(--ri-line);
	border-radius: var(--ri-radius);
	padding: 28px;
}

#review_form_wrapper #respond.comment-respond {
	margin: 0;
}

#review_form_wrapper #reply-title.comment-reply-title {
	font-family: var(--ri-font-head);
	font-weight: 600;
	font-size: 20px;
	display: block;
	margin: 0 0 6px;
	color: var(--ri-ink);
}

#review_form_wrapper .comment-notes,
#review_form_wrapper #review_form .comment-form>p:first-of-type {
	color: var(--ri-muted);
	font-size: 14px;
	margin-bottom: 18px;
}

#review_form_wrapper .comment-form label {
	display: block;
	font-weight: 600;
	font-size: 14px;
	color: var(--ri-ink);
	margin-bottom: 7px;
}

#review_form_wrapper .comment-form input[type="text"],
#review_form_wrapper .comment-form input[type="email"],
#review_form_wrapper .comment-form textarea {
	width: 100%;
	box-sizing: border-box;
	background: #fff;
	border: 1px solid var(--ri-line-2);
	border-radius: var(--ri-radius-sm);
	padding: 12px 14px;
	font-size: 15px;
	font-family: var(--ri-font);
	color: var(--ri-ink);
	transition: border-color .15s ease, box-shadow .15s ease;
}

#review_form_wrapper .comment-form input[type="text"]:focus,
#review_form_wrapper .comment-form input[type="email"]:focus,
#review_form_wrapper .comment-form textarea:focus {
	outline: none;
	border-color: var(--ri-ink);
	box-shadow: 0 0 0 3px rgba(17, 17, 20, .08);
}

#review_form_wrapper .comment-form textarea {
	min-height: 130px;
	resize: vertical;
}

#review_form_wrapper .comment-form-author,
#review_form_wrapper .comment-form-email,
#review_form_wrapper .comment-form-comment {
	margin-bottom: 16px;
}

@media (min-width: 600px) {

	#review_form_wrapper .comment-form-author,
	#review_form_wrapper .comment-form-email {
		float: none;
		display: inline-block;
		width: calc(50% - 8px);
		vertical-align: top;
	}

	#review_form_wrapper .comment-form-author {
		margin-right: 16px;
	}
}

#review_form_wrapper .comment-form-cookies-consent {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 4px 0 18px;
}

#review_form_wrapper .comment-form-cookies-consent label {
	margin: 0;
	font-weight: 400;
	color: var(--ri-muted);
	font-size: 13px;
}

#review_form_wrapper .comment-form-cookies-consent input {
	width: auto;
}

/* Star rating selector */
#review_form_wrapper .comment-form-rating {
	margin-bottom: 18px;
}

#review_form_wrapper p.stars {
	margin: 4px 0 0;
}

#review_form_wrapper p.stars a {
	color: var(--ri-line-2);
}

#review_form_wrapper p.stars a::before {
	color: var(--ri-line-2);
}

#review_form_wrapper p.stars:hover a::before,
#review_form_wrapper p.stars.selected a::before {
	color: var(--ri-ink);
}

#review_form_wrapper p.stars a:hover~a::before {
	color: var(--ri-line-2);
}

#review_form_wrapper .form-submit input[type="submit"],
#review_form_wrapper #respond input#submit {
	background: var(--ri-ink);
	color: #fff;
	border: 0;
	border-radius: var(--ri-radius-btn);
	padding: 14px 34px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: opacity .15s ease, transform .05s ease;
}

#review_form_wrapper .form-submit input[type="submit"]:hover {
	opacity: .88;
}

#review_form_wrapper .form-submit input[type="submit"]:active {
	transform: translateY(1px);
}

#review_form_wrapper input[type="submit"].is-loading,
#review_form_wrapper input[type="submit"]:disabled {
	opacity: .55;
	cursor: progress;
	pointer-events: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 3a9 9 0 1 0 9 9'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 16px;
	padding-right: 40px;
	animation: ri-submit-pulse 1s ease-in-out infinite;
}

@keyframes ri-submit-pulse {

	0%,
	100% {
		opacity: .55;
	}

	50% {
		opacity: .75;
	}
}

/* Empty state (no reviews yet) */
.ri-review-empty {
	text-align: center;
	max-width: 480px;
	margin: 8px auto 0;
	padding: 44px 24px;
	background: var(--ri-bg-alt);
	border: 1px solid var(--ri-line);
	border-radius: var(--ri-radius);
}

.ri-review-empty-ic {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	margin-bottom: 18px;
	border-radius: 50%;
	background: #fff;
	border: 1px solid var(--ri-line);
}

.ri-review-empty-ic svg {
	width: 30px;
	height: 30px;
	color: var(--ri-ink);
}

.ri-review-empty h3 {
	font-size: 20px;
	margin: 0 0 8px;
}

.ri-review-empty p {
	color: var(--ri-muted);
	margin: 0 auto 22px;
	line-height: 1.6;
	max-width: 360px;
}

.ri-review-empty .ri-btn {
	display: inline-flex;
}

/* "Write a review" trigger + modal */
.ri-review-trigger {
	margin: 8px 0 4px;
	text-align: center;
}

.ri-review-trigger .ri-btn {
	display: inline-flex;
}

.ri-review-modal {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: none;
}

.ri-review-modal.is-open {
	display: block;
}

.ri-review-modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba(17, 17, 20, .55);
	backdrop-filter: blur(2px);
	animation: riFadeIn .2s ease;
}

.ri-review-modal-box {
	position: relative;
	background: #fff;
	width: calc(100% - 32px);
	max-width: 560px;
	margin: 6vh auto;
	max-height: 88vh;
	overflow: auto;
	border-radius: var(--ri-radius);
	padding: 32px;
	box-shadow: var(--ri-shadow-hover);
	animation: riPopIn .22s ease;
}

.ri-review-modal-close {
	position: absolute;
	top: 12px;
	right: 14px;
	width: 34px;
	height: 34px;
	border: 0;
	background: var(--ri-bg-alt);
	border-radius: 50%;
	font-size: 22px;
	line-height: 1;
	color: var(--ri-ink);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .15s ease;
}

.ri-review-modal-close:hover {
	background: var(--ri-line);
}

/* Strip the inline card styling once the form lives inside the modal */
.ri-review-modal #review_form_wrapper {
	background: none;
	border: 0;
	border-radius: 0;
	padding: 0;
}

@keyframes riFadeIn {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

@keyframes riPopIn {
	from {
		opacity: 0;
		transform: translateY(12px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

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

	.single-product div.product>.ri-pdp-gallery {
		grid-column: 1;
		grid-row: auto;
	}

	.single-product div.product>.summary {
		grid-column: 1;
		grid-row: auto;
		position: static;
		padding: 0 4px;
	}

	.single-product div.product .product_title {
		font-size: 24px;
		margin-bottom: 8px;
	}

	.single-product div.product p.price,
	.single-product div.product .price {
		font-size: 22px !important;
		margin-bottom: 4px;
	}

	.ri-pdp-specs {
		grid-template-columns: repeat(2, 1fr);
	}

	.ri-pdp-secure {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
		padding: 12px 0;
	}

	.ri-pdp-badges {
		grid-template-columns: repeat(2, 1fr);
	}

	.ri-pdp-badge:nth-child(odd) {
		border-left: 0;
	}

	.ri-pdp-badge:nth-child(n+3) {
		border-top: 1px solid var(--ri-line);
	}

	.ri-pdp-badge svg {
		width: 24px;
		height: 24px;
	}

	.ri-pdp-faq {
		margin-top: 40px;
	}

	.ri-faq-item summary {
		padding: 16px 16px;
		gap: 12px;
		font-size: 15px;
	}

	.ri-faq-a p {
		padding: 2px 16px 18px 16px;
	}

	/* Mobile gallery: one big swipeable image + thumbnail strip (kloira-style) */
	.ri-pdp-gallery {
		grid-template-columns: none;
		display: flex;
		gap: 0;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		border-radius: var(--ri-radius);
	}

	.ri-pdp-gallery::-webkit-scrollbar {
		display: none;
	}

	.ri-pdp-gallery-item {
		flex: 0 0 100%;
		scroll-snap-align: start;
		border-radius: var(--ri-radius);
	}

	.ri-pdp-thumbs {
		display: flex;
		gap: 8px;
		overflow-x: auto;
		padding: 10px 0 0;
		scrollbar-width: none;
	}

	.ri-pdp-thumbs::-webkit-scrollbar {
		display: none;
	}

	.ri-pdp-thumb {
		flex: 0 0 62px;
		width: 62px;
		height: 62px;
		border: 2px solid transparent;
		border-radius: 8px;
		overflow: hidden;
		padding: 0;
		background: none;
		cursor: pointer;
	}

	.ri-pdp-thumb.is-active {
		border-color: var(--ri-ink);
	}

	.ri-pdp-thumb img {
		width: 100%;
		height: 100%;
		object-fit: cover;
		display: block;
	}
}

/* Sidebar/widgets */
.widget {
	margin-bottom: 28px;
}

.widget-title {
	font-size: 15px;
	text-transform: uppercase;
	letter-spacing: .04em;
	margin-bottom: 14px;
}

.widget a {
	color: var(--ri-muted);
}

.widget a:hover {
	color: var(--ri-ink);
}

/* Posts */
.ri-post {
	background: #fff;
	border: 1px solid var(--ri-line);
	border-radius: var(--ri-radius);
	overflow: hidden;
	margin-bottom: 28px;
}

.ri-post .pad {
	padding: 22px;
}

.ri-post h2 {
	font-size: 22px;
}

.ri-post .meta {
	color: var(--ri-muted);
	font-size: 13px;
	margin-bottom: 10px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {

	.ri-cats,
	.ri-products,
	ul.products,
	.ri-brandcards {
		grid-template-columns: repeat(2, 1fr);
	}

	ul.products.ri-rail {
		grid-template-columns: none;
	}

	.ri-rail {
		grid-auto-columns: calc((100% - 24px) / 2);
	}

	.ri-footer-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.ri-features .ri-container {
		grid-template-columns: repeat(2, 1fr);
	}

	.ri-reviews {
		grid-template-columns: 1fr;
	}

	.ri-slide-img {
		opacity: .35;
		width: 60%;
	}
}

@media (max-width: 860px) {
	.ri-header-main {
		grid-template-columns: auto 1fr auto;
		height: 62px;
		gap: 10px;
	}

	.ri-header-left {
		gap: 12px;
	}

	.ri-logo {
		font-size: 19px;
		letter-spacing: .06em;
	}

	.ri-logo img {
		max-height: 38px;
	}

	.ri-header-actions {
		gap: 14px;
	}

	.ri-iconbtn {
		width: 22px;
		height: 22px;
	}

	.ri-iconbtn svg {
		width: 21px;
		height: 21px;
	}

	.ri-cart-count {
		top: -7px;
		right: -8px;
		min-width: 15px;
		height: 15px;
		font-size: 9.5px;
	}

	.ri-burger {
		display: inline-flex;
	}

	.ri-burger svg {
		width: 24px;
		height: 24px;
	}

	/* Off-canvas accordion drawer */
	.ri-nav {
		position: fixed;
		top: 0;
		left: 0;
		bottom: 0;
		width: 88%;
		max-width: 360px;
		background: #fff;
		z-index: 260;
		overflow-y: auto;
		border: 0;
		transform: translateX(-100%);
		visibility: hidden;
		transition: transform .28s ease, visibility .28s ease;
		box-shadow: 0 0 44px rgba(0, 0, 0, .28);
	}

	.ri-nav.is-open {
		transform: translateX(0);
		visibility: visible;
	}

	.ri-nav .ri-container,
	.ri-nav>div {
		display: block;
		padding: 0;
		max-width: none;
	}

	.ri-nav .menu,
	.ri-nav ul,
	.ri-nav-fallback {
		display: block;
	}

	.ri-nav>.ri-nav-head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 18px 20px;
		border-bottom: 1px solid var(--ri-line);
		position: sticky;
		top: 0;
		background: #fff;
		z-index: 2;
	}

	.ri-nav-title {
		font-weight: 700;
		letter-spacing: .12em;
		text-transform: uppercase;
		font-size: 13px;
	}

	.ri-nav-close {
		background: var(--ri-bg-alt);
		border: 0;
		width: 38px;
		height: 38px;
		border-radius: 999px;
		display: grid;
		place-items: center;
		color: var(--ri-ink);
		cursor: pointer;
	}

	.ri-nav-close svg {
		width: 20px;
		height: 20px;
		stroke: currentColor;
		fill: none;
		stroke-width: 2;
	}

	.ri-nav .menu>li,
	.ri-nav-fallback li {
		border-bottom: 1px solid var(--ri-line);
	}

	.ri-nav .menu>li>a,
	.ri-nav-fallback a {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 15px 20px;
		font-size: 15px;
		font-weight: 500;
		text-transform: none;
		color: var(--ri-ink);
	}

	.ri-nav .menu>li>a::before {
		display: none;
	}

	/* chevron for parents */
	.ri-nav .menu>li.menu-item-has-children>a::after {
		content: "";
		width: 8px;
		height: 8px;
		border-right: 2px solid var(--ri-muted);
		border-bottom: 2px solid var(--ri-muted);
		transform: rotate(45deg);
		margin: 0;
		transition: transform .2s ease;
		flex: none;
	}

	.ri-nav .menu>li.menu-item-has-children.is-open>a::after {
		transform: rotate(-135deg);
		border-color: var(--ri-ink);
	}

	/* submenu collapsed by default */
	.ri-nav ul ul {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		border: 0;
		border-radius: 0;
		padding: 0;
		background: var(--ri-bg-alt);
		display: none;
	}

	.ri-nav li.is-open>ul {
		display: block;
	}

	.ri-nav ul ul li {
		border-bottom: 1px solid var(--ri-line);
	}

	.ri-nav ul ul li:last-child {
		border-bottom: 0;
	}

	.ri-nav ul ul li a {
		padding: 12px 20px 12px 36px;
		font-size: 14px;
		color: var(--ri-muted);
	}

	.ri-nav ul ul li a:hover {
		color: var(--ri-ink);
		background: #fff;
	}

	.ri-nav-overlay {
		display: none;
		position: fixed;
		inset: 0;
		background: rgba(0, 0, 0, .5);
		z-index: 250;
	}

	.ri-nav-overlay.is-open {
		display: block;
	}

	.ri-shead {
		flex-wrap: wrap;
		gap: 12px;
	}

	.ri-shead-icon {
		width: 48px;
		height: 48px;
	}

	.ri-shead-icon svg {
		width: 24px;
		height: 24px;
	}

	.ri-shead-title {
		font-size: 20px;
		padding: 11px 16px;
	}

	.ri-shead .ri-btn {
		order: 3;
		width: 100%;
		justify-content: center;
	}
}

@media (max-width: 640px) {
	.ri-container {
		padding: 0 16px;
	}

	.ri-section {
		padding: 40px 0;
	}

	/* Cleaner header: hide announcement bar, swipe carousels (no side arrows) */
	.ri-topbar {
		display: none;
	}

	.ri-car-arrow {
		display: none;
	}

	/* Header: smaller logo + tighter icons so all four fit */
	.ri-logo {
		font-size: 17px;
		letter-spacing: .03em;
	}

	.ri-header-actions {
		gap: 13px;
	}

	.ri-iconbtn {
		width: 20px;
		height: 20px;
	}

	.ri-iconbtn svg {
		width: 20px;
		height: 20px;
	}

	/* Typography — proportional sizes for small screens */
	.ri-slide .eyebrow {
		font-size: 11px;
	}

	.ri-slide h2 {
		font-size: 30px;
		line-height: 1.1;
	}

	.ri-slide p {
		font-size: 14.5px;
	}

	.ri-slide-cta .ri-btn {
		padding: 12px 20px;
		font-size: 13px;
	}

	.ri-section-head h2 {
		font-size: 24px;
	}

	.ri-section-head .eyebrow,
	.ri-section-head p {
		font-size: 13px;
	}

	.ri-shead-title {
		font-size: 18px;
	}

	.ri-archive-hero {
		padding: 36px 0;
	}

	.ri-archive-hero h1 {
		font-size: 28px;
	}

	.ri-archive-hero .ri-archive-hero-desc {
		font-size: 14px;
	}

	.ri-feature strong {
		font-size: 13px;
	}

	.ri-feature span {
		font-size: 11.5px;
	}

	.ri-feature .ic {
		width: 38px;
		height: 38px;
	}

	.ri-cta-band h2 {
		font-size: 22px;
	}

	.ri-review p {
		font-size: 13.5px;
	}

	.ri-filter-title {
		font-size: 20px;
	}

	/* Match kloira: 2-up cards on phones */
	.ri-cats,
	.ri-brandcards,
	.ri-features .ri-container {
		grid-template-columns: repeat(2, 1fr);
		gap: 14px;
	}

	.ri-shop-main ul.products {
		grid-template-columns: repeat(2, 1fr) !important;
		gap: 14px;
	}

	ul.products.ri-rail {
		grid-template-columns: none;
	}

	.ri-rail {
		grid-auto-columns: calc((100% - 14px) / 2);
		gap: 14px;
	}

	.ri-footer-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 22px;
	}

	/* Compact cards */
	ul.products li.product .woocommerce-loop-product__title,
	.ri-product-card .title {
		font-size: 15px;
	}

	ul.products li.product .price,
	.ri-product-card .price,
	ul.products li.product .price ins,
	.ri-product-card .price ins,
	ul.products li.product .price ins .woocommerce-Price-amount {
		font-size: 19px !important;
	}

	ul.products li.product .price del,
	ul.products li.product .price del .woocommerce-Price-amount {
		font-size: 14px !important;
	}

	.ri-badge-save {
		font-size: 9.5px;
		padding: 3px 7px;
	}

	.ri-spec {
		font-size: 9px;
		padding: 3px 6px;
	}

	ul.products li.product .button {
		padding: 9px 12px;
		font-size: 12px;
		margin: 0 12px 12px !important;
	}

	/* Brand pastel cards */
	.ri-brandcard {
		min-height: 220px;
		padding: 18px;
	}

	.ri-brandcard .name {
		font-size: 18px;
	}

	/* Hero: stack cleanly, no side arrows */
	.ri-slide {
		min-height: 360px;
	}

	.ri-slide-inner {
		padding: 44px 0;
	}

	.ri-slide-img {
		display: none;
	}

	.ri-hero-arrow {
		display: none;
	}

	.ri-hero-dots {
		right: 50%;
		top: auto;
		bottom: 16px;
		transform: translateX(50%);
		flex-direction: row;
	}

	.ri-slide-watermark {
		font-size: 64px;
		opacity: .5;
	}

	/* Bands / footer */
	.ri-cta-band .ri-container {
		flex-direction: column;
		align-items: center;
		text-align: center;
		padding: 48px 20px;
	}

	.ri-newsletter-wrap {
		width: 100%;
		max-width: 360px;
		margin: 0 auto;
	}

	.ri-newsletter {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
		width: 100%;
	}

	.ri-newsletter input {
		width: 100% !important;
		min-width: 0;
		text-align: center;
		padding: 14px 18px;
		height: 48px;
	}

	.ri-newsletter button {
		width: 100% !important;
		text-align: center;
		justify-content: center;
		height: 48px;
		padding: 0 !important;
	}

	/* Footer categories accordion list on mobile */
	.ri-footer-grid {
		grid-template-columns: 1fr;
		gap: 0;
		padding-bottom: 24px;
	}

	.ri-footer-col {
		border-bottom: 1px solid #1c1c20;
		padding: 0;
	}

	.ri-footer-col-header {
		padding: 16px 0;
		margin-bottom: 0;
		cursor: pointer;
	}

	.ri-footer-col-toggle {
		display: inline-block;
	}

	.ri-footer-col-content {
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.3s ease-out, padding 0.3s ease;
		padding-bottom: 0;
		gap: 4px;
	}

	.ri-footer-col.is-open .ri-footer-col-content {
		padding-bottom: 16px;
	}

	.ri-footer-bottom {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (max-width: 340px) {

	.ri-cats,
	.ri-brandcards {
		grid-template-columns: 1fr;
	}

	.ri-shop-main ul.products {
		grid-template-columns: 1fr !important;
	}

	.ri-rail {
		grid-auto-columns: 88%;
	}
}

/* -------------------------------------------------------------------------
 * Contact page (template-contact.php)
 * ---------------------------------------------------------------------- */
.ri-contact {
	padding-bottom: 64px;
}

.ri-contact-grid {
	display: grid;
	grid-template-columns: 1fr 1.4fr;
	gap: 48px;
	align-items: start;
}

.ri-contact-info h2 {
	font-size: clamp(22px, 2.6vw, 28px);
	margin: 0 0 12px;
}

.ri-contact-lead {
	color: var(--ri-muted);
	line-height: 1.7;
	margin: 0 0 26px;
}

.ri-contact-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.ri-contact-list li {
	display: flex;
	gap: 14px;
	align-items: flex-start;
}

.ri-contact-ic {
	flex: 0 0 42px;
	height: 42px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--ri-line);
	border-radius: 12px;
}

.ri-contact-ic svg {
	width: 20px;
	height: 20px;
	stroke: var(--ri-ink);
	fill: none;
	stroke-width: 1.6;
}

.ri-contact-list span strong {
	display: block;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--ri-ink);
	margin-bottom: 2px;
}

.ri-contact-list a {
	color: var(--ri-ink-2);
}

.ri-contact-list a:hover {
	color: var(--ri-ink);
}

.ri-contact-form-wrap {
	background: var(--ri-surface);
	border: 1px solid var(--ri-line);
	border-radius: var(--ri-radius);
	padding: 30px;
}

.ri-contact-form {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.ri-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
}

.ri-field {
	display: flex;
	flex-direction: column;
	gap: 7px;
}

.ri-field span {
	font-size: 13px;
	font-weight: 600;
	color: var(--ri-ink);
}

.ri-field input,
.ri-field textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--ri-line);
	border-radius: 10px;
	background: var(--ri-bg);
	color: var(--ri-ink);
	font: inherit;
	font-size: 14.5px;
	transition: border-color .2s ease, box-shadow .2s ease;
}

.ri-field input:focus,
.ri-field textarea:focus {
	outline: none;
	border-color: var(--ri-ink);
	box-shadow: 0 0 0 3px rgba(0, 0, 0, .06);
}

.ri-field textarea {
	resize: vertical;
	min-height: 130px;
}

.ri-contact-form .ri-btn-dark {
	align-self: flex-start;
	padding: 14px 32px;
}

.ri-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.ri-contact-alert {
	padding: 14px 16px;
	border-radius: 10px;
	margin-bottom: 22px;
	font-size: 14.5px;
	line-height: 1.5;
	border-left: 3px solid;
}

.ri-contact-alert.is-ok {
	background: rgba(22, 163, 74, .08);
	border-left-color: #16a34a;
	color: #14532d;
}

.ri-contact-alert.is-err {
	background: rgba(220, 38, 38, .07);
	border-left-color: #dc2626;
	color: #7f1d1d;
}

@media (max-width: 820px) {
	.ri-contact-grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.ri-form-row {
		grid-template-columns: 1fr;
	}

	.ri-contact-form-wrap {
		padding: 22px;
	}
}

/* Attribute filter facets (Color / Diamond Color) — checkbox-style toggles */
.ri-filter-checks li a {
	display: flex;
	align-items: center;
	gap: 10px;
}

.ri-filter-checks .ri-check {
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	border: 1.5px solid var(--ri-line-2, #c9c9c9);
	border-radius: 5px;
	position: relative;
	transition: border-color .15s ease, background .15s ease;
}

.ri-filter-checks li.is-on .ri-check {
	background: var(--ri-ink);
	border-color: var(--ri-ink);
}

.ri-filter-checks li.is-on .ri-check::after {
	content: "";
	position: absolute;
	left: 5px;
	top: 1.5px;
	width: 5px;
	height: 9px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.ri-filter-checks li.is-on>a {
	color: var(--ri-ink);
	font-weight: 600;
}

.ri-filter-checks .ri-c {
	margin-left: auto;
	color: var(--ri-muted);
	font-weight: 400;
}

/* -------------------------------------------------------------------------
 * "View Wholesale Price" button + modal
 * ---------------------------------------------------------------------- */
.ri-wholesale-open {
	display: block;
	width: 100%;
	justify-content: center;
	margin: 10px 0 4px;
}

.ri-ws-modal {
	position: fixed;
	inset: 0;
	z-index: 100001;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.ri-ws-modal.is-open {
	display: flex;
}

.ri-ws-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .55);
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
}

.ri-ws-dialog {
	position: relative;
	width: 100%;
	max-width: 460px;
	max-height: 90vh;
	overflow-y: auto;
	background: var(--ri-bg);
	border-radius: var(--ri-radius);
	padding: 30px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .3);
	animation: riPopIn .25s ease;
}

.ri-ws-close {
	position: absolute;
	top: 14px;
	right: 14px;
	background: none;
	border: 0;
	cursor: pointer;
	color: var(--ri-muted);
	padding: 4px;
	line-height: 0;
}

.ri-ws-close svg {
	width: 22px;
	height: 22px;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.8;
}

.ri-ws-close:hover {
	color: var(--ri-ink);
}

.ri-ws-title {
	font-size: 22px;
	margin: 0 0 6px;
}

.ri-ws-sub {
	color: var(--ri-muted);
	font-size: 14px;
	line-height: 1.55;
	margin: 0 0 20px;
}

.ri-ws-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.ri-ws-form .ri-field span {
	font-size: 13px;
	font-weight: 600;
	color: var(--ri-ink);
}

.ri-ws-form .ri-field input,
.ri-ws-form .ri-field textarea {
	width: 100%;
	padding: 11px 13px;
	border: 1px solid var(--ri-line);
	border-radius: 10px;
	background: var(--ri-surface);
	color: var(--ri-ink);
	font: inherit;
	font-size: 14.5px;
}

.ri-ws-form .ri-field input:focus,
.ri-ws-form .ri-field textarea:focus {
	outline: none;
	border-color: var(--ri-ink);
	box-shadow: 0 0 0 3px rgba(0, 0, 0, .06);
}

.ri-ws-form textarea {
	resize: vertical;
}

.ri-ws-submit {
	justify-content: center;
	margin-top: 4px;
}

.ri-ws-submit.is-loading {
	opacity: .6;
	pointer-events: none;
}

.ri-ws-msg {
	margin: 0;
	font-size: 13.5px;
	min-height: 0;
}

.ri-ws-msg.is-err {
	color: #dc2626;
}

@media (max-width: 480px) {
	.ri-ws-dialog {
		padding: 22px;
	}
}

/* -------------------------------------------------------------------------
 * Homepage — Custom Hip-Hop Pendant request section
 * ---------------------------------------------------------------------- */
.ri-cpendant {
	padding: 64px 0;
	background: #eef2f1;
	background-image: linear-gradient(135deg, rgba(0, 0, 0, .02) 25%, transparent 25%, transparent 50%, rgba(0, 0, 0, .02) 50%, rgba(0, 0, 0, .02) 75%, transparent 75%);
	background-size: 26px 26px;
}

.ri-cpendant-grid {
	display: grid;
	grid-template-columns: 1.1fr .9fr;
	gap: 48px;
	align-items: start;
}

.ri-cpendant-left {
	text-align: center;
}

.ri-cpendant-left h2 {
	font-size: clamp(24px, 3vw, 34px);
	margin: 0 0 12px;
}

.ri-cpendant-lead {
	color: var(--ri-muted);
	line-height: 1.6;
	max-width: 620px;
	margin: 0 auto 28px;
}

.ri-cpendant-gallery {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}

.ri-cpendant-tile {
	aspect-ratio: 1 / 1;
	border-radius: var(--ri-radius);
	overflow: hidden;
	background: #dfe6e4;
	box-shadow: var(--ri-shadow);
	display: flex;
	align-items: center;
	justify-content: center;
}

.ri-cpendant-tile img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ri-cpendant-ph {
	color: #9fb0ab;
}

.ri-cpendant-ph svg {
	width: 46px;
	height: 46px;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.2;
}

.ri-cpendant-card {
	background: var(--ri-bg);
	border-radius: var(--ri-radius);
	padding: 34px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, .10);
}

.ri-cpendant-card h3 {
	text-align: center;
	font-size: 22px;
	margin: 0 0 6px;
}

.ri-cpendant-sub {
	text-align: center;
	color: var(--ri-muted);
	font-size: 14px;
	line-height: 1.5;
	margin: 0 0 22px;
}

.ri-cpendant-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.ri-cp-input {
	width: 100%;
	padding: 13px 15px;
	border: 1px solid var(--ri-line);
	border-radius: 10px;
	background: var(--ri-bg);
	color: var(--ri-ink);
	font: inherit;
	font-size: 14.5px;
}

.ri-cp-input:focus {
	outline: none;
	border-color: var(--ri-ink);
	box-shadow: 0 0 0 3px rgba(0, 0, 0, .06);
}

textarea.ri-cp-input {
	resize: vertical;
	min-height: 92px;
}

.ri-cp-filelabel {
	font-size: 13px;
	color: var(--ri-ink-2);
	margin-top: 2px;
}

.ri-cp-file {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 74px;
	border: 1.5px dashed var(--ri-line-2);
	border-radius: 10px;
	cursor: pointer;
	transition: border-color .15s ease;
}

.ri-cp-file:hover {
	border-color: var(--ri-ink);
}

.ri-cp-file input[type="file"] {
	position: absolute;
	inset: 0;
	opacity: 0;
	cursor: pointer;
}

.ri-cp-file-btn {
	background: var(--ri-bg-alt);
	border: 1px solid var(--ri-line);
	border-radius: 8px;
	padding: 8px 16px;
	font-size: 13px;
	font-weight: 600;
	color: var(--ri-ink);
	max-width: 90%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ri-cp-submit {
	justify-content: center;
	padding: 15px;
	margin-top: 2px;
}

.ri-cp-submit.is-loading {
	opacity: .6;
	pointer-events: none;
}

.ri-cp-msg {
	margin: 0;
	font-size: 13.5px;
	text-align: center;
}

.ri-cp-msg.is-err {
	color: #dc2626;
}

.ri-cp-msg.is-ok {
	color: #16a34a;
}

.ri-cp-consent {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 12px;
	color: var(--ri-muted);
	line-height: 1.45;
	justify-content: center;
	text-align: center;
}

.ri-cp-consent input {
	margin-top: 2px;
}

@media (max-width: 900px) {
	.ri-cpendant-grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.ri-cpendant-card {
		padding: 26px;
	}
}

/* -------------------------------------------------------------------------
 * My Account — full design for all tabs (nav, dashboard, orders, addresses,
 * account details) plus the logged-out login/register forms.
 * ---------------------------------------------------------------------- */

/* ---- Logged out: login / register cards ---- */
.woocommerce-account .woocommerce>h2 {
	text-align: center;
	font-size: clamp(24px, 3vw, 32px);
	margin: 10px 0 24px;
}

.woocommerce-account form.woocommerce-form-login,
.woocommerce-account form.login,
.woocommerce-account form.woocommerce-form-register,
.woocommerce-account form.register {
	max-width: 440px;
	margin: 8px auto 56px;
	padding: 34px 32px;
	background: var(--ri-surface);
	border: 1px solid var(--ri-line);
	border-radius: var(--ri-radius);
}

.woocommerce-account .woocommerce-form-login .form-row,
.woocommerce-account .woocommerce-form-register .form-row {
	margin: 0 0 16px;
	padding: 0;
	display: block;
}

.woocommerce-account .woocommerce-form label {
	display: block;
	font-weight: 600;
	font-size: 14px;
	color: var(--ri-ink);
	margin-bottom: 7px;
}

.woocommerce-account .woocommerce-Input--text,
.woocommerce-account .woocommerce-form input.input-text {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--ri-line-2);
	border-radius: 10px;
	background: var(--ri-bg);
	color: var(--ri-ink);
	font: inherit;
	font-size: 14.5px;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.woocommerce-account .woocommerce-Input--text:focus,
.woocommerce-account .woocommerce-form input.input-text:focus {
	outline: none;
	border-color: var(--ri-ink);
	box-shadow: 0 0 0 3px rgba(0, 0, 0, .06);
}

.woocommerce-account .woocommerce-form-login__rememberme {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 500;
	font-size: 14px;
	margin: 0 0 14px;
}

.woocommerce-account .woocommerce-form-login__rememberme input {
	width: 16px;
	height: 16px;
	accent-color: var(--ri-ink);
}

.woocommerce-account .woocommerce-form-login__submit,
.woocommerce-account .woocommerce-form-register__submit {
	display: block;
	width: 100%;
	padding: 14px;
	background: var(--ri-ink);
	color: #fff;
	border: 0;
	border-radius: var(--ri-radius-btn);
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: opacity .15s ease;
}

.woocommerce-account .woocommerce-form-login__submit:hover {
	opacity: .88;
}

/* Lost / reset password — same centered card as the login form */
.woocommerce-account form.woocommerce-ResetPassword {
	max-width: 440px;
	margin: 8px auto 56px;
	padding: 34px 32px;
	background: var(--ri-surface);
	border: 1px solid var(--ri-line);
	border-radius: var(--ri-radius);
}

.woocommerce-account form.woocommerce-ResetPassword .form-row,
.woocommerce-account form.woocommerce-ResetPassword .form-row-first {
	float: none;
	width: 100%;
	margin: 0 0 16px;
	padding: 0;
	display: block;
}

.woocommerce-account form.woocommerce-ResetPassword .input-text {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--ri-line-2);
	border-radius: 10px;
	background: var(--ri-bg);
	color: var(--ri-ink);
	font: inherit;
	font-size: 14.5px;
}

.woocommerce-account form.woocommerce-ResetPassword .input-text:focus {
	outline: none;
	border-color: var(--ri-ink);
	box-shadow: 0 0 0 3px rgba(0, 0, 0, .06);
}

.woocommerce-account form.woocommerce-ResetPassword .woocommerce-Button {
	display: block;
	width: 100%;
	padding: 14px;
	background: var(--ri-ink);
	color: #fff;
	border: 0;
	border-radius: var(--ri-radius-btn);
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: opacity .15s ease;
}

.woocommerce-account form.woocommerce-ResetPassword .woocommerce-Button:hover {
	opacity: .88;
}

/* The intro text above the reset form */
.woocommerce-lost-password .woocommerce>p:first-of-type {
	max-width: 440px;
	margin: 0 auto 18px;
	text-align: center;
	color: var(--ri-ink-2);
	font-size: 14.5px;
}

.woocommerce-account .lost_password {
	margin: 14px 0 0;
	text-align: center;
	font-size: 13.5px;
}

.woocommerce-account .lost_password a {
	color: var(--ri-ink-2);
	text-decoration: underline;
}

.woocommerce-account .lost_password a:hover {
	color: var(--ri-ink);
}

/* ---- Passwordless email OTP login ---- */
.ri-otp {
	max-width: 420px;
	margin: 0 auto;
}

.ri-otp>h2 {
	text-align: center;
	font-size: clamp(24px, 3vw, 32px);
	margin: 10px 0 10px;
}

.ri-otp-intro {
	text-align: center;
	color: var(--ri-muted);
	font-size: 14.5px;
	line-height: 1.6;
	margin: 0 0 22px;
}

.ri-otp .form-row {
	margin: 0 0 16px;
	padding: 0;
	display: block;
}

.ri-otp label {
	display: block;
	font-weight: 600;
	font-size: 14px;
	color: var(--ri-ink);
	margin-bottom: 7px;
}

/* Four classes (0,4,0) so these beat WooCommerce core's .woocommerce form .form-row
   .input-text (0,3,1) on any page (account page AND the product-page login modal),
   matching the site's standard 46px / 10px-radius inputs. */
.ri-otp .ri-otp-form .form-row .input-text {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--ri-line-2);
	border-radius: 10px;
	background: var(--ri-bg);
	color: var(--ri-ink);
	font: inherit;
	font-size: 14.5px;
	line-height: 1.4;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.ri-otp .ri-otp-form .form-row .input-text:focus {
	outline: none;
	border-color: var(--ri-ink);
	box-shadow: 0 0 0 3px rgba(0, 0, 0, .06);
}

.ri-otp .ri-otp-form .form-row .ri-otp-code-input {
	text-align: center;
	letter-spacing: 10px;
	font-size: 22px;
	font-weight: 700;
	padding-left: 24px;
}

.ri-otp .ri-otp-submit {
	display: block;
	width: 100%;
	padding: 13px 22px;
	background: var(--ri-ink);
	color: #fff;
	border: 0;
	border-radius: var(--ri-radius-btn);
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: opacity .15s ease;
}

.ri-otp .ri-otp-submit:hover {
	opacity: .88;
}

.ri-otp .ri-otp-submit.is-loading {
	opacity: .6;
	cursor: default;
}

.ri-otp-meta {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin: 14px 0 0;
}

.ri-otp-link {
	background: none;
	border: 0;
	padding: 0;
	font: inherit;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--ri-ink-2);
	text-decoration: underline;
	cursor: pointer;
}

.ri-otp-link:hover:not(:disabled) {
	color: var(--ri-ink);
}

.ri-otp-link:disabled {
	color: var(--ri-muted);
	text-decoration: none;
	cursor: default;
}

.ri-otp-notice {
	font-size: 14px;
	line-height: 1.5;
	border-radius: 10px;
	padding: 12px 14px;
	margin: 0 0 18px;
}

.ri-otp-notice--info {
	background: var(--ri-pill);
	color: var(--ri-ink-2);
}

.ri-otp-notice--success {
	background: var(--ri-stock-bg);
	color: #157347;
}

.ri-otp-notice--error {
	background: #fdecea;
	color: #b42318;
}

/* ---- Login modal (product pages → "Write a review" for guests) ---- */
.ri-otp-modal {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: none;
}

.ri-otp-modal.is-open {
	display: block;
}

.ri-otp-modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba(17, 17, 20, .55);
	backdrop-filter: blur(2px);
	animation: riFadeIn .2s ease;
}

.ri-otp-modal-box {
	position: relative;
	background: #fff;
	width: calc(100% - 32px);
	max-width: 460px;
	margin: 8vh auto;
	max-height: 88vh;
	overflow: auto;
	border-radius: var(--ri-radius);
	padding: 34px 30px;
	box-shadow: var(--ri-shadow-hover);
	animation: riPopIn .22s ease;
}

.ri-otp-modal-close {
	position: absolute;
	top: 12px;
	right: 14px;
	width: 34px;
	height: 34px;
	border: 0;
	background: var(--ri-bg-alt);
	border-radius: 50%;
	font-size: 22px;
	line-height: 1;
	color: var(--ri-ink);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .15s ease;
}

.ri-otp-modal-close:hover {
	background: var(--ri-line);
}

.ri-otp-modal .ri-otp {
	max-width: none;
}

/* ---- Logged in: sidebar nav + content grid ---- */
.woocommerce-account .woocommerce:has(.woocommerce-MyAccount-navigation) {
	display: grid;
	grid-template-columns: 250px minmax(0, 1fr);
	gap: 36px;
	align-items: start;
	margin-bottom: 56px;
}

/* Neutralize WooCommerce core's default float/width so the grid tracks control layout. */
.woocommerce-account .woocommerce-MyAccount-navigation {
	grid-column: 1;
	float: none;
	width: auto;
}

.woocommerce-account .woocommerce-MyAccount-content {
	grid-column: 2;
	float: none;
	width: auto;
}

.woocommerce-MyAccount-navigation ul {
	list-style: none;
	margin: 0;
	padding: 8px;
	background: var(--ri-surface);
	border: 1px solid var(--ri-line);
	border-radius: var(--ri-radius);
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.woocommerce-MyAccount-navigation li a {
	display: block;
	padding: 12px 16px;
	border-radius: 10px;
	color: var(--ri-ink-2);
	font-weight: 600;
	font-size: 14.5px;
	text-decoration: none;
	transition: background .15s ease, color .15s ease;
}

.woocommerce-MyAccount-navigation li a:hover {
	background: var(--ri-pill);
	color: var(--ri-ink);
}

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

.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a {
	color: #b42318;
}

.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a:hover {
	background: rgba(220, 38, 38, .08);
	color: #b42318;
}

.woocommerce-MyAccount-content {
	min-width: 0;
	font-size: 15px;
	line-height: 1.65;
	color: var(--ri-ink-2);
}

.woocommerce-MyAccount-content>p:first-child {
	margin-top: 0;
}

.woocommerce-MyAccount-content a:not(.button) {
	color: var(--ri-ink);
	text-decoration: underline;
}

.woocommerce-MyAccount-content .button,
.woocommerce-MyAccount-content .woocommerce-Button {
	display: inline-block;
	padding: 11px 22px;
	background: var(--ri-ink);
	color: #fff !important;
	border: 0;
	border-radius: var(--ri-radius-btn);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none !important;
	transition: opacity .15s ease;
}

.woocommerce-MyAccount-content .button:hover {
	opacity: .88;
}

/* ---- Orders (and any account table) ---- */
.woocommerce-MyAccount-content table.shop_table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid var(--ri-line);
	border-radius: var(--ri-radius);
	overflow: hidden;
	font-size: 14px;
}

.woocommerce-MyAccount-content table.shop_table th,
.woocommerce-MyAccount-content table.shop_table td {
	padding: 14px 16px;
	text-align: left;
	border-bottom: 1px solid var(--ri-line);
}

.woocommerce-MyAccount-content table.shop_table thead th {
	background: var(--ri-surface);
	color: var(--ri-ink);
	font-size: 12.5px;
	text-transform: uppercase;
	letter-spacing: .04em;
}

.woocommerce-MyAccount-content table.shop_table tbody tr:last-child td {
	border-bottom: 0;
}

.woocommerce-MyAccount-content table.shop_table .button {
	padding: 8px 16px;
	font-size: 13px;
	margin-right: 6px;
}

/* ---- Addresses ---- */
.woocommerce-MyAccount-content .woocommerce-Addresses {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	width: 100%;
}

/* WooCommerce core adds clearfix ::before/::after on .u-columns; as grid children they
   become phantom cells that push the real cards into a diagonal stagger. Remove them. */
.woocommerce-MyAccount-content .woocommerce-Addresses::before,
.woocommerce-MyAccount-content .woocommerce-Addresses::after {
	content: none;
	display: none;
}

/* Reset core's float/width on the two address columns so the grid sizes them evenly. */
.woocommerce-MyAccount-content .woocommerce-Address,
.woocommerce-MyAccount-content .woocommerce-Addresses .col-1,
.woocommerce-MyAccount-content .woocommerce-Addresses .col-2 {
	float: none;
	width: auto;
	margin: 0;
}

.woocommerce-MyAccount-content .woocommerce-Address {
	background: var(--ri-surface);
	border: 1px solid var(--ri-line);
	border-radius: var(--ri-radius);
	padding: 24px;
}

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

.woocommerce-MyAccount-content .woocommerce-Address-title h3 {
	font-size: 17px;
	margin: 0;
}

.woocommerce-MyAccount-content .woocommerce-Address-title .edit {
	font-size: 13px;
	font-weight: 600;
}

.woocommerce-MyAccount-content .woocommerce-Address address {
	font-style: normal;
	color: var(--ri-ink-2);
	line-height: 1.7;
}

/* ---- Account details / address edit forms ---- */
.woocommerce-MyAccount-content form .form-row {
	margin: 0 0 16px;
	padding: 0;
}

.woocommerce-MyAccount-content form .form-row-first,
.woocommerce-MyAccount-content form .form-row-last {
	width: 100%;
	float: none;
}

@media (min-width: 641px) {
	.woocommerce-MyAccount-content form .form-row-first {
		float: left;
		width: 48.5%;
	}

	.woocommerce-MyAccount-content form .form-row-last {
		float: right;
		width: 48.5%;
	}

	.woocommerce-MyAccount-content form .clear {
		clear: both;
	}
}

.woocommerce-MyAccount-content form label {
	display: block;
	font-weight: 600;
	font-size: 14px;
	color: var(--ri-ink);
	margin-bottom: 7px;
}

/* Prefixed with .woocommerce-account and scoped to .form-row so these win over
   WooCommerce core's .woocommerce form .form-row .input-text (0,3,1), which would
   otherwise shrink these fields and make them inconsistent with the login form. */
.woocommerce-account .woocommerce-MyAccount-content form .input-text,
.woocommerce-account .woocommerce-MyAccount-content form .form-row .input-text,
.woocommerce-account .woocommerce-MyAccount-content form select,
.woocommerce-account .woocommerce-MyAccount-content form .form-row select {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--ri-line-2);
	border-radius: 10px;
	background: var(--ri-bg);
	color: var(--ri-ink);
	font: inherit;
	font-size: 14.5px;
	line-height: 1.4;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.woocommerce-account .woocommerce-MyAccount-content form .input-text:focus,
.woocommerce-account .woocommerce-MyAccount-content form .form-row .input-text:focus,
.woocommerce-account .woocommerce-MyAccount-content form select:focus,
.woocommerce-account .woocommerce-MyAccount-content form .form-row select:focus {
	outline: none;
	border-color: var(--ri-ink);
	box-shadow: 0 0 0 3px rgba(0, 0, 0, .06);
}

/* WooCommerce enhances the country/state <select> into a Select2 widget (the native
   select is hidden). Style the Select2 control to match the text inputs above so all
   fields on the form are visually consistent. */
.woocommerce-account .woocommerce-MyAccount-content form .select2-container .select2-selection--single {
	height: 46px;
	border: 1px solid var(--ri-line-2);
	border-radius: 10px;
	background: var(--ri-bg);
	transition: border-color .15s ease, box-shadow .15s ease;
}

.woocommerce-account .woocommerce-MyAccount-content form .select2-container .select2-selection--single .select2-selection__rendered {
	line-height: 44px;
	padding-left: 14px;
	padding-right: 34px;
	color: var(--ri-ink);
	font-size: 14.5px;
}

.woocommerce-account .woocommerce-MyAccount-content form .select2-container .select2-selection--single .select2-selection__arrow {
	height: 44px;
	right: 10px;
}

.woocommerce-account .woocommerce-MyAccount-content form .select2-container--open .select2-selection--single,
.woocommerce-account .woocommerce-MyAccount-content form .select2-container--focus .select2-selection--single {
	border-color: var(--ri-ink);
	box-shadow: 0 0 0 3px rgba(0, 0, 0, .06);
}

.woocommerce-MyAccount-content fieldset {
	border: 1px solid var(--ri-line);
	border-radius: var(--ri-radius);
	padding: 20px 22px;
	margin: 24px 0;
}

.woocommerce-MyAccount-content fieldset legend {
	font-weight: 700;
	font-size: 15px;
	color: var(--ri-ink);
	padding: 0 8px;
}

.woocommerce-MyAccount-content .show-password-input {
	display: none;
}

.woocommerce-MyAccount-content em {
	color: var(--ri-muted);
	font-size: 13px;
}

/* ---- Downloads / empty states ---- */
.woocommerce-MyAccount-content .woocommerce-Message,
.woocommerce-MyAccount-content .woocommerce-info {
	background: var(--ri-surface);
	border: 1px solid var(--ri-line);
	border-radius: var(--ri-radius);
	padding: 18px 20px;
}

/* ---- Mobile ---- */
@media (max-width: 820px) {
	.woocommerce-account .woocommerce:has(.woocommerce-MyAccount-navigation) {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.woocommerce-MyAccount-navigation ul {
		flex-direction: row;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.woocommerce-MyAccount-navigation li {
		flex: 0 0 auto;
	}

	.woocommerce-MyAccount-content .woocommerce-Addresses {
		grid-template-columns: 1fr;
	}

	.woocommerce-MyAccount-content table.shop_table {
		display: block;
		overflow-x: auto;
	}
}

/* =========================================================================
   PDP "Description & Details" + "{Category} Setting" section
   (see inc/ri-metal-pricing.php)
   ========================================================================= */
.ri-pdp-detail {
	padding: 48px 0 24px;
	border-top: 1px solid var(--ri-line);
	margin-top: 40px;
}

.ri-pdp-detail-grid {
	display: grid;
	grid-template-columns: 1.05fr 1fr;
	gap: 56px;
	align-items: start;
}

.ri-pdp-detail h2 {
	font-size: 26px;
	margin: 0 0 18px;
}

.ri-pdp-detail-body {
	color: var(--ri-ink-2);
	line-height: 1.85;
}

.ri-pdp-detail-body p {
	margin: 0 0 16px;
}

.ri-pdp-detail-setting h2 {
	text-align: center;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--ri-line);
}

.ri-setting-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 48px;
}

.ri-setting-cell {
	padding: 14px 0 12px;
	border-bottom: 1px solid var(--ri-line);
}

.ri-setting-cell span {
	display: block;
	color: var(--ri-muted);
	font-size: 13.5px;
	margin-bottom: 3px;
}

.ri-setting-cell strong {
	font-size: 16.5px;
	font-weight: 700;
	color: var(--ri-ink);
}

@media (max-width: 820px) {
	.ri-pdp-detail {
		padding: 36px 0 20px;
		margin-top: 32px;
	}

	.ri-pdp-detail-grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.ri-pdp-detail h2 {
		font-size: 22px;
		margin-bottom: 14px;
	}

	.ri-setting-grid {
		grid-template-columns: 1fr 1fr;
		column-gap: 20px;
	}

	.ri-setting-cell {
		padding: 10px 0 8px;
	}

	.ri-setting-cell strong {
		font-size: 15px;
	}

	.ri-setting-cell span {
		font-size: 12.5px;
	}
}

/* =========================================================================
   PDP configurator — purity + stone pills (see inc/ri-metal-pricing.php)
   ========================================================================= */
.ri-cfg {
	margin: 6px 0 16px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ri-cfg-row .ri-metal-label {
	display: block;
	margin-bottom: 7px;
}

.ri-cfg-opts {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ri-cfg-opt {
	padding: 8px 20px;
	border: 1.5px solid var(--ri-line, #e2e8f0);
	border-radius: 999px;
	background: var(--ri-surface, #fff);
	font-size: 13.5px;
	font-weight: 600;
	color: var(--ri-ink-2, #4a5568);
	cursor: pointer;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.ri-cfg-opt:hover {
	border-color: var(--ri-ink, #000);
	color: var(--ri-ink, #000);
	transform: translateY(-1px);
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.ri-cfg-opt.is-active {
	background: var(--ri-ink, #000);
	border-color: var(--ri-ink, #000);
	color: #fff;
	transform: scale(1.03);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Custom Gold highlights for active gold choices */
.ri-cfg-opt.is-active[data-val="gold"],
.ri-cfg-opt.is-active[data-val^="gold_"] {
	background: linear-gradient(135deg, #dfba48 0%, #c5a028 100%);
	border-color: #bfa03f;
	color: #fff;
	box-shadow: 0 4px 14px rgba(223, 186, 72, 0.35);
}

/* Custom Silver highlight for active silver choice */
.ri-cfg-opt.is-active[data-val="silver"] {
	background: linear-gradient(135deg, #f1f5f9 0%, #cbd5e1 100%);
	border-color: #94a3b8;
	color: #1e293b;
	box-shadow: 0 4px 14px rgba(148, 163, 184, 0.25);
}

/* Row wrapper highlight state for drawing attention if missed */
.ri-cfg-row.ri-highlight-required {
	animation: ri-row-shake 0.5s ease-in-out;
}

.ri-cfg-row.ri-highlight-required .ri-metal-label {
	color: #e53e3e;
	font-weight: 700;
	transition: color 0.3s ease;
}

.ri-cfg-row.ri-highlight-required .ri-cfg-opt {
	border-color: #feb2b2;
	box-shadow: 0 0 0 2px rgba(254, 178, 178, 0.4);
}

@keyframes ri-row-shake {
	0%, 100% { transform: translateX(0); }
	20%, 60% { transform: translateX(-6px); }
	40%, 80% { transform: translateX(6px); }
}

/* ==========================================================================
   Floating WhatsApp button (bottom-right, all pages)
   ========================================================================== */
.ri-whatsapp-fab {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 240;
	width: 56px;
	height: 56px;
	border-radius: 999px;
	display: grid;
	place-items: center;
	background: #25d366;
	color: #fff;
	box-shadow: 0 6px 20px rgba(0, 0, 0, .22);
	transition: transform .18s ease, box-shadow .18s ease;
}

.ri-whatsapp-fab:hover {
	color: #fff;
	transform: translateY(-3px) scale(1.05);
	box-shadow: 0 10px 26px rgba(0, 0, 0, .28);
}

.ri-whatsapp-fab svg {
	width: 28px;
	height: 28px;
	position: relative;
	z-index: 1;
}

/* Pulsing rings */
.ri-whatsapp-fab::before,
.ri-whatsapp-fab::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	border: 2px solid #25d366;
	opacity: 0;
	animation: ri-wa-pulse 2.4s ease-out infinite;
	pointer-events: none;
}

.ri-whatsapp-fab::after {
	animation-delay: 1.2s;
}

@keyframes ri-wa-pulse {
	0% {
		transform: scale(1);
		opacity: .8;
	}

	70% {
		transform: scale(1.65);
		opacity: 0;
	}

	100% {
		transform: scale(1.65);
		opacity: 0;
	}
}

@media (prefers-reduced-motion: reduce) {

	.ri-whatsapp-fab::before,
	.ri-whatsapp-fab::after {
		animation: none;
	}
}

@media (max-width: 640px) {
	.ri-whatsapp-fab {
		right: 14px;
		bottom: 14px;
		width: 50px;
		height: 50px;
	}

	.ri-whatsapp-fab svg {
		width: 25px;
		height: 25px;
	}
}

/* ==========================================================================
   Search modal (live product suggestions)
   ========================================================================== */
.ri-search-modal {
	position: fixed;
	inset: 0;
	z-index: 320;
	display: none;
}

.ri-search-modal.is-open {
	display: block;
}

.ri-search-overlay {
	position: absolute;
	inset: 0;
	background: rgba(17, 17, 20, .55);
	backdrop-filter: blur(3px);
	animation: riSearchFade .2s ease;
}

.ri-search-panel {
	position: relative;
	margin: 9vh auto 0;
	width: min(640px, calc(100vw - 32px));
	background: #fff;
	border-radius: var(--ri-radius);
	box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
	overflow: hidden;
	animation: riSearchPop .22s ease;
}

@keyframes riSearchFade {
	from {
		opacity: 0;
	}
}

@keyframes riSearchPop {
	from {
		opacity: 0;
		transform: translateY(-14px) scale(.98);
	}
}

.ri-search-form {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 6px 18px;
	border-bottom: 1px solid var(--ri-line);
}

.ri-search-icon {
	display: grid;
	place-items: center;
	color: var(--ri-muted);
	flex: none;
}

.ri-search-icon svg {
	width: 20px;
	height: 20px;
}

.ri-search-form input[type="search"] {
	flex: 1;
	border: 0;
	outline: none;
	background: none;
	font-family: var(--ri-font);
	font-size: 17px;
	color: var(--ri-ink);
	padding: 16px 0;
	min-width: 0;
}

.ri-search-form input[type="search"]::placeholder {
	color: var(--ri-muted);
}

.ri-search-form input[type="search"]::-webkit-search-cancel-button {
	display: none;
}

.ri-search-x {
	flex: none;
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 999px;
	background: var(--ri-bg-alt);
	color: var(--ri-ink);
	display: grid;
	place-items: center;
	cursor: pointer;
	transition: background .15s ease;
}

.ri-search-x:hover {
	background: var(--ri-line);
}

.ri-search-x svg {
	width: 16px;
	height: 16px;
}

.ri-search-results {
	max-height: min(56vh, 480px);
	overflow-y: auto;
	padding: 16px 18px;
}

.ri-search-label {
	display: block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--ri-muted);
	margin: 4px 0 10px;
}

.ri-search-label+.ri-search-label,
.ri-search-chips+.ri-search-label,
.ri-search-list+.ri-search-label {
	margin-top: 18px;
}

.ri-search-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ri-search-chip {
	display: inline-block;
	padding: 8px 15px;
	border-radius: 999px;
	background: var(--ri-bg-alt);
	border: 1px solid var(--ri-line);
	font-size: 13.5px;
	font-weight: 500;
	color: var(--ri-ink);
	transition: background .15s ease, border-color .15s ease;
}

.ri-search-chip:hover {
	background: var(--ri-ink);
	border-color: var(--ri-ink);
	color: #fff;
}

.ri-search-list {
	display: flex;
	flex-direction: column;
}

.ri-search-item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 9px 10px;
	margin: 0 -10px;
	border-radius: 10px;
	transition: background .12s ease;
}

.ri-search-item:hover {
	background: var(--ri-bg-alt);
}

.ri-search-thumb {
	flex: none;
	width: 52px;
	height: 52px;
	border-radius: 8px;
	background: var(--ri-bg-alt);
	border: 1px solid var(--ri-line);
	overflow: hidden;
	display: grid;
	place-items: center;
}

.ri-search-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ri-search-body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.ri-search-title {
	font-size: 14.5px;
	font-weight: 600;
	color: var(--ri-ink);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ri-search-cat {
	font-size: 12.5px;
	color: var(--ri-muted);
}

.ri-search-price {
	flex: none;
	font-size: 14px;
	font-weight: 600;
	color: var(--ri-ink);
}

.ri-search-price del {
	color: var(--ri-muted);
	font-weight: 400;
	margin-right: 6px;
}

.ri-search-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 26px 10px 20px;
	gap: 4px;
}

.ri-search-empty-title {
	font-weight: 600;
	font-size: 15px;
	color: var(--ri-ink);
}

.ri-search-empty-sub {
	font-size: 13.5px;
	color: var(--ri-muted);
	margin-bottom: 12px;
}

.ri-search-loading {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 30px 0;
	color: var(--ri-muted);
	font-size: 14px;
}

.ri-search-spinner {
	width: 18px;
	height: 18px;
	border-radius: 999px;
	border: 2px solid var(--ri-line);
	border-top-color: var(--ri-ink);
	animation: riSearchSpin .7s linear infinite;
}

@keyframes riSearchSpin {
	to {
		transform: rotate(360deg);
	}
}

.ri-search-foot {
	display: flex;
	justify-content: center;
	gap: 22px;
	padding: 12px 18px;
	border-top: 1px solid var(--ri-line);
	background: var(--ri-bg-alt);
	font-size: 12.5px;
	color: var(--ri-muted);
}

.ri-search-foot kbd {
	display: inline-block;
	padding: 2px 7px;
	border-radius: 5px;
	background: #fff;
	border: 1px solid var(--ri-line-2);
	font-family: inherit;
	font-size: 11.5px;
	color: var(--ri-ink);
	box-shadow: 0 1px 0 var(--ri-line-2);
}

@media (max-width: 560px) {
	.ri-search-panel {
		margin-top: 4vh;
	}

	.ri-search-results {
		max-height: 62vh;
	}

	.ri-search-foot {
		display: none;
	}
}

/* ==========================================================================
   404 (page not found)
   ========================================================================== */
/* Full-width container (no boxed max-width) — content stays centered inside. */
main.ri-404 {
	max-width: none;
}

.ri-404 {
	padding: 84px 0 100px;
	overflow: hidden;
}

.ri-404-inner {
	position: relative;
	max-width: 680px;
	margin: 0 auto;
	text-align: center;
}

/* Giant ghost "404" behind the content */
.ri-404-inner::before {
	content: "404";
	position: absolute;
	left: 50%;
	top: -40px;
	transform: translateX(-50%);
	font-family: var(--ri-font-head);
	font-weight: 800;
	font-size: clamp(180px, 30vw, 320px);
	line-height: 1;
	color: var(--ri-ink);
	opacity: .04;
	letter-spacing: -.04em;
	pointer-events: none;
	user-select: none;
	z-index: 0;
}

.ri-404-inner>* {
	position: relative;
	z-index: 1;
}

.ri-404-badge {
	display: inline-block;
	padding: 7px 16px;
	border-radius: 999px;
	border: 1px solid var(--ri-line-2);
	background: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--ri-muted);
	margin-bottom: 22px;
}

.ri-404 h1 {
	font-size: clamp(34px, 5.5vw, 56px);
	line-height: 1.05;
	letter-spacing: -.01em;
	margin: 0 0 16px;
}

.ri-404-inner>p {
	color: var(--ri-muted);
	font-size: 16.5px;
	max-width: 500px;
	margin: 0 auto 30px;
}

.ri-404-actions {
	display: flex;
	gap: 14px;
	justify-content: center;
	flex-wrap: wrap;
	margin-bottom: 44px;
}

.ri-btn-secondary {
	background: transparent;
	color: var(--ri-ink);
	border: 1px solid var(--ri-ink);
	transition: background .15s ease, color .15s ease;
}

.ri-btn-secondary:hover {
	background: var(--ri-ink);
	color: #fff;
}

/* Small uppercase labels above search + collections */
.ri-404-search h3,
.ri-404-cats h3 {
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--ri-muted);
	margin: 0 0 14px;
}

.ri-404-search {
	max-width: 460px;
	margin: 0 auto 42px;
}

.ri-404-search form {
	display: flex;
}

.ri-404-search input[type="search"],
.ri-404-search .search-field {
	flex: 1;
	min-width: 0;
	border: 1px solid var(--ri-line-2);
	border-right: 0;
	border-radius: 999px 0 0 999px;
	padding: 14px 22px;
	font-size: 15px;
	font-family: var(--ri-font);
	color: var(--ri-ink);
	background: #fff;
	outline: none;
}

.ri-404-search input[type="search"]:focus,
.ri-404-search .search-field:focus {
	border-color: var(--ri-ink);
}

.ri-404-search button[type="submit"],
.ri-404-search .search-submit,
.ri-404-search input[type="submit"] {
	border: 0;
	background: var(--ri-ink);
	color: #fff;
	font-weight: 600;
	font-family: var(--ri-font);
	font-size: 14px;
	padding: 0 26px;
	border-radius: 0 999px 999px 0;
	cursor: pointer;
}

.ri-404-search button[type="submit"]:hover,
.ri-404-search .search-submit:hover {
	background: #000;
}

.ri-404-cats-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
}

.ri-404-cat-pill {
	display: inline-block;
	padding: 10px 20px;
	border-radius: 999px;
	background: var(--ri-bg-alt);
	border: 1px solid var(--ri-line);
	font-size: 14px;
	font-weight: 500;
	color: var(--ri-ink);
	transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}

.ri-404-cat-pill:hover {
	background: var(--ri-ink);
	border-color: var(--ri-ink);
	color: #fff;
	transform: translateY(-2px);
}

@media (max-width: 560px) {
	.ri-404 {
		padding: 56px 0 72px;
	}

	.ri-404-inner::before {
		top: -20px;
	}
}

/* ==========================================================================
   Phone field: intl-tel-input integration
   ========================================================================== */
/* The library wraps the input in .iti — make it fill the form field width.
   (Flag sprite paths are handled by the library's own CSS, relative to it.) */
.iti {
	display: block;
	width: 100%;
}

/* Country dropdown panel styling to match the theme. */
.iti__country-list {
	border: 1px solid var(--ri-line);
	border-radius: var(--ri-radius-sm);
	box-shadow: var(--ri-shadow);
	font-family: var(--ri-font);
	font-size: 14px;
}

.iti__country.iti__highlight {
	background-color: var(--ri-bg-alt);
}

.iti--separate-dial-code .iti__selected-flag {
	background-color: transparent;
	border-radius: var(--ri-radius-sm) 0 0 var(--ri-radius-sm);
}

/* ==========================================================================
   Required-field markers + invalid-field highlighting (site-wide)
   ========================================================================== */
:root {
	--ri-error: #e02b2b;
}

/* Red required asterisk (theme forms use .ri-req; WooCommerce uses .required). */
.ri-req,
.required,
abbr.required,
.wc-block-components-validation-error {
	color: var(--ri-error);
}

abbr.required {
	border: 0;
	text-decoration: none;
	cursor: default;
}

/* Red border on required fields the visitor left empty / invalid.
   .ri-invalid is added by JS on a failed submit; :user-invalid is the native
   equivalent (only styles after the user has interacted, not on page load). */
.ri-invalid,
input.ri-invalid,
select.ri-invalid,
textarea.ri-invalid,
input:user-invalid,
select:user-invalid,
textarea:user-invalid {
	border-color: var(--ri-error) !important;
	box-shadow: 0 0 0 2px rgba(224, 43, 43, .12) !important;
}

/* intl-tel-input: highlight the whole control (flag + input) when invalid. */
.iti:has(.ri-phone-number.ri-invalid) .ri-phone-number,
.iti:has(.ri-phone-number:user-invalid) .ri-phone-number {
	border-color: var(--ri-error) !important;
}

/* =========================================================================
   Why Choose Rare Icedout Section (PDP)
   ========================================================================= */
.ri-pdp-why {
	background: #fcfcfd;
	padding: 80px 0 60px;
	border-top: 1px solid var(--ri-line);
	border-bottom: 1px solid var(--ri-line);
	margin-top: 40px;
}

.ri-pdp-why .ri-section-head {
	text-align: center;
	margin-bottom: 48px;
}

.ri-pdp-why .ri-section-head .eyebrow {
	display: block;
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #646970;
	margin-bottom: 8px;
}

.ri-pdp-why .ri-section-head h2 {
	font-size: clamp(28px, 3.5vw, 42px);
	font-weight: 700;
	color: #1d2327;
	margin: 0;
}

.ri-why-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}

.ri-why-card {
	background: #fff;
	border: 1px solid var(--ri-line);
	border-radius: 8px;
	padding: 30px 24px;
	text-align: center;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.ri-why-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
	border-color: #1d2327;
}

.ri-why-ic {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	background: #f6f6f7;
	border-radius: 50%;
	color: #1d2327;
	margin-bottom: 18px;
	transition: background-color 0.25s ease, color 0.25s ease;
}

.ri-why-card:hover .ri-why-ic {
	background: #1d2327;
	color: #fff;
}

.ri-why-ic svg {
	width: 24px;
	height: 24px;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.6;
}

.ri-why-card strong {
	display: block;
	font-size: 17px;
	font-weight: 700;
	color: #1d2327;
	margin-bottom: 10px;
}

.ri-why-card p {
	font-size: 13.5px;
	line-height: 1.5;
	color: #646970;
	margin: 0;
}

@media (max-width: 1024px) {
	.ri-why-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
	}
}

@media (max-width: 600px) {
	.ri-pdp-why {
		padding: 50px 0 40px;
	}

	.ri-why-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.ri-why-card {
		padding: 24px 20px;
	}
}

/* =========================================================================
   Redesigned 404 Page Styles
   ========================================================================= */
.ri-404 {
	padding: 120px 0 100px;
	background: #f6f6f7;
	text-align: center;
	border-bottom: 1px solid var(--ri-line);
}

.ri-404-inner {
	max-width: 600px;
	margin: 0 auto;
}

.ri-404-badge {
	display: inline-block;
	background: #111114;
	color: #fff;
	font-size: 11.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	padding: 6px 16px;
	border-radius: 999px;
	margin-bottom: 24px;
}

.ri-404 h1 {
	font-size: clamp(38px, 5.5vw, 68px);
	font-weight: 800;
	color: var(--ri-ink, #1d2327);
	margin: 0 0 16px;
	line-height: 1.05;
	letter-spacing: -0.02em;
}

.ri-404 p {
	font-size: 17px;
	line-height: 1.6;
	color: var(--ri-ink-2, #646970);
	margin: 0 0 36px;
}

.ri-404-actions {
	display: flex;
	justify-content: center;
	gap: 16px;
	margin-bottom: 48px;
	flex-wrap: wrap;
}

.ri-404-search {
	background: #fff;
	border: 1px solid var(--ri-line);
	padding: 32px;
	border-radius: 12px;
	margin-bottom: 48px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.ri-404-search h3 {
	margin: 0 0 16px;
	font-size: 15px;
	font-weight: 600;
	color: var(--ri-ink);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.ri-404-search form {
	display: flex;
	gap: 10px;
	max-width: 440px;
	margin: 0 auto;
}

.ri-404-search input[type="search"] {
	flex: 1;
	height: 48px;
	border-radius: 6px;
}

.ri-404-search button[type="submit"] {
	height: 48px;
	padding: 0 24px;
	border-radius: 6px;
}

.ri-404-cats h3 {
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #646970;
	margin: 0 0 20px;
}

.ri-404-cats-grid {
	display: flex;
	justify-content: center;
	gap: 12px;
	flex-wrap: wrap;
}

.ri-404-cat-pill {
	background: #fff;
	border: 1px solid var(--ri-line);
	border-radius: 999px;
	padding: 10px 24px;
	font-size: 14px;
	font-weight: 600;
	color: var(--ri-ink-2);
	text-decoration: none;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.ri-404-cat-pill:hover {
	background-color: var(--ri-ink);
	border-color: var(--ri-ink);
	color: #fff;
	text-decoration: none;
}

@media (max-width: 600px) {
	.ri-404 {
		padding: 80px 0 60px;
	}

	.ri-404-actions {
		flex-direction: column;
		gap: 12px;
	}

	.ri-404-actions .ri-btn {
		width: 100%;
	}

	.ri-404-search {
		padding: 24px 16px;
	}

	.ri-404-search form {
		flex-direction: column;
		gap: 8px;
	}

	.ri-404-search button[type="submit"] {
		width: 100%;
	}

	.ri-404-cats-grid {
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
	}

	.ri-404-cat-pill {
		text-align: center;
	}
}

/* Screen reader text helper (visually hidden) */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

/* ==========================================================================
   Minicart drawer
   ========================================================================== */
.ri-minicart {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 340;
	width: min(450px, 94vw);
	background: #fff;
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	visibility: hidden;
	transition: transform .32s cubic-bezier(0.16, 1, 0.3, 1), visibility .32s;
	box-shadow: -10px 0 40px rgba(0, 0, 0, .12);
}

.ri-minicart.is-open {
	transform: translateX(0);
	visibility: visible;
}

.ri-minicart-overlay {
	position: fixed;
	inset: 0;
	background: rgba(17, 17, 20, .4);
	z-index: 335;
	opacity: 0;
	visibility: hidden;
	transition: opacity .32s ease, visibility .32s;
	backdrop-filter: blur(2px);
}

.ri-minicart-overlay.is-open {
	opacity: 1;
	visibility: visible;
}

.ri-minicart-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 22px;
	border-bottom: 1px solid var(--ri-line);
	flex: none;
}

.ri-minicart-head h3 {
	margin: 0;
	font-size: 16px;
	letter-spacing: .06em;
	text-transform: uppercase;
	font-weight: 700;
}

.ri-minicart-count {
	display: inline-grid;
	place-items: center;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	margin-left: 8px;
	border-radius: 999px;
	background: var(--ri-ink);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
}

.ri-minicart-close {
	background: var(--ri-bg-alt);
	border: 0;
	width: 36px;
	height: 36px;
	border-radius: 999px;
	display: grid;
	place-items: center;
	color: var(--ri-ink);
	cursor: pointer;
	transition: transform 0.2s, background-color 0.2s;
}

.ri-minicart-close:hover {
	background-color: var(--ri-line);
	transform: rotate(90deg);
}

.ri-minicart-close svg {
	width: 14px;
	height: 14px;
}

.ri-minicart-body {
	flex: 1;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	padding: 0;
	position: relative;
}

/* Premium Shipping Trust Alert */
.ri-minicart-shipping-alert {
	display: flex;
	align-items: center;
	gap: 10px;
	background: var(--ri-mint);
	border-bottom: 1px solid var(--ri-line);
	padding: 12px 22px;
	color: var(--ri-stock);
	font-size: 13px;
	font-weight: 600;
	flex: none;
}

.ri-minicart-shipping-icon svg {
	width: 18px;
	height: 18px;
	display: block;
}

/* Scrollable items list wrapper */
.ri-minicart-items-wrapper {
	flex: 1;
	overflow-y: auto;
	padding: 0 22px;
}

.ri-minicart-items-wrapper::-webkit-scrollbar {
	width: 4px;
}

.ri-minicart-items-wrapper::-webkit-scrollbar-track {
	background: transparent;
}

.ri-minicart-items-wrapper::-webkit-scrollbar-thumb {
	background: var(--ri-line-2);
	border-radius: 99px;
}

/* WooCommerce mini-cart widget content */
.ri-minicart ul.woocommerce-mini-cart {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ri-minicart ul.woocommerce-mini-cart li.woocommerce-mini-cart-item {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 20px 0;
	border-bottom: 1px solid var(--ri-line);
	position: relative;
	transition: opacity 0.25s ease;
}

/* Thumbnail Image styling */
.ri-minicart-item-img {
	width: 72px;
	height: 72px;
	flex-shrink: 0;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid var(--ri-line);
	background: var(--ri-bg-alt);
	position: relative;
}

.ri-minicart-item-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.ri-minicart-item-img:hover img {
	transform: scale(1.06);
}

/* Item details styling */
.ri-minicart-item-details {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.ri-minicart-item-title {
	font-size: 14px;
	font-weight: 600;
	color: var(--ri-ink);
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin: 0;
	padding-right: 20px;
}

.ri-minicart-item-title:hover {
	color: var(--ri-muted);
}

.ri-minicart ul.woocommerce-mini-cart li.woocommerce-mini-cart-item .variation {
	display: flex;
	flex-wrap: wrap;
	gap: 2px 8px;
	margin: 2px 0 0;
	font-size: 11.5px;
	color: var(--ri-muted);
	border: 0;
	padding: 0;
}

.ri-minicart ul.woocommerce-mini-cart li.woocommerce-mini-cart-item .variation dt,
.ri-minicart ul.woocommerce-mini-cart li.woocommerce-mini-cart-item .variation dd {
	margin: 0;
	display: inline;
	font-weight: 500;
}

.ri-minicart ul.woocommerce-mini-cart li.woocommerce-mini-cart-item .variation dd p {
	display: inline;
	margin: 0;
}

/* Item bottom meta row: price + quantity adjusters */
.ri-minicart-item-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 8px;
	gap: 12px;
}

.ri-minicart-item-price {
	font-size: 14.5px;
	font-weight: 700;
	color: var(--ri-ink);
}

/* Quantity Adjusters inside item details */
.ri-minicart-qty {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--ri-line-2);
	border-radius: 4px;
	overflow: hidden;
	background: var(--ri-bg);
}

.ri-minicart-qty .ri-qty-btn {
	width: 24px;
	height: 24px;
	background: none;
	border: 0;
	font-size: 14px;
	font-weight: 500;
	color: var(--ri-ink);
	cursor: pointer;
	display: grid;
	place-items: center;
	transition: background 0.15s, color 0.15s;
	padding: 0;
}

.ri-minicart-qty .ri-qty-btn:hover {
	background: var(--ri-bg-alt);
}

.ri-minicart-qty .ri-qty-input {
	width: 28px;
	height: 24px;
	border: 0;
	border-left: 1px solid var(--ri-line-2);
	border-right: 1px solid var(--ri-line-2);
	text-align: center;
	font-size: 12px;
	font-weight: 600;
	color: var(--ri-ink);
	background: transparent;
	padding: 0;
	-moz-appearance: textfield;
}

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

/* Remove button */
.ri-minicart-remove {
	position: absolute;
	top: 18px;
	right: 0;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--ri-bg-alt);
	color: var(--ri-muted) !important;
	display: grid;
	place-items: center;
	transition: background 0.2s, color 0.2s;
	flex-shrink: 0;
	border: 0;
	cursor: pointer;
}

.ri-minicart-remove svg {
	width: 10px;
	height: 10px;
}

.ri-minicart-remove:hover {
	background: var(--ri-ink) !important;
	color: #fff !important;
}

/* Sticky Footer styling */
.ri-minicart-footer {
	flex: none;
	padding: 20px 22px 22px;
	border-top: 1px solid var(--ri-line);
	background: #fff;
	box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.03);
}

.ri-minicart .woocommerce-mini-cart__total {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0 0 16px;
	margin: 0;
	border: 0;
	font-size: 15px;
	font-weight: 700;
	color: var(--ri-ink);
}

/* Buttons Grid styling */
.ri-minicart .woocommerce-mini-cart__buttons {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin: 0;
}

.ri-minicart .woocommerce-mini-cart__buttons a.button {
	display: block;
	text-align: center;
	padding: 13px 14px;
	border-radius: var(--ri-radius-sm);
	font-weight: 600;
	font-size: 13px;
	text-decoration: none;
	transition: all 0.2s ease;
	cursor: pointer;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	box-sizing: border-box;
}

/* View Cart button style */
.ri-minicart .woocommerce-mini-cart__buttons a.button:not(.checkout) {
	background: #fff !important;
	color: var(--ri-ink) !important;
	border: 1.5px solid var(--ri-ink) !important;
}

.ri-minicart .woocommerce-mini-cart__buttons a.button:not(.checkout):hover {
	background: var(--ri-bg-alt) !important;
	color: #000 !important;
	border-color: #000 !important;
}

/* Checkout button style */
.ri-minicart .woocommerce-mini-cart__buttons a.button.checkout {
	background: var(--ri-ink) !important;
	color: #fff !important;
	border: 1.5px solid var(--ri-ink) !important;
}

.ri-minicart .woocommerce-mini-cart__buttons a.button.checkout:hover {
	background: #000 !important;
	border-color: #000 !important;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Empty cart state */
.ri-minicart-empty {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 40px 22px;
	text-align: center;
}

.ri-minicart-empty .ri-empty-icon {
	color: var(--ri-line-2);
	margin-bottom: 16px;
	display: block;
}

.ri-minicart-empty .ri-empty-icon svg {
	width: 56px;
	height: 56px;
}

.ri-minicart-empty .woocommerce-mini-cart__empty-message {
	font-size: 15px;
	font-weight: 500;
	color: var(--ri-muted);
	margin: 0 0 24px;
}

.ri-minicart-empty .ri-minicart-shop-btn {
	display: inline-block;
	padding: 12px 28px;
	border-radius: var(--ri-radius-sm);
	background: var(--ri-ink);
	color: #fff;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-size: 13px;
	transition: background 0.25s;
}

.ri-minicart-empty .ri-minicart-shop-btn:hover {
	background: #000;
}

/* ==========================================================================
   Blog — listing (home.php) + single article (single.php)
   ========================================================================== */
.ri-blog-hero {
	background: var(--ri-bg-alt);
	border-bottom: 1px solid var(--ri-line);
	padding: 58px 0 54px;
	text-align: center;
}

.ri-blog-hero h1 {
	font-size: clamp(32px, 4.6vw, 48px);
	margin: 10px 0 12px;
}

.ri-blog-hero p {
	color: var(--ri-muted);
	max-width: 520px;
	margin: 0 auto;
	font-size: 16px;
}

.ri-blog {
	padding-top: 44px;
}

.ri-blog-chip {
	display: inline-block;
	padding: 5px 12px;
	border-radius: 999px;
	background: var(--ri-pill);
	color: var(--ri-ink);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.ri-blog-chip:hover {
	background: var(--ri-ink);
	color: #fff;
}

.ri-blog-meta {
	display: flex;
	gap: 8px;
	align-items: center;
	color: var(--ri-muted);
	font-size: 13px;
}

/* Featured (latest) post */
.ri-blog-featured {
	display: grid;
	grid-template-columns: 1.25fr 1fr;
	gap: 40px;
	align-items: center;
	margin-bottom: 54px;
}

.ri-blog-featured-media {
	display: block;
	border-radius: var(--ri-radius);
	overflow: hidden;
	background: var(--ri-bg-alt);
}

.ri-blog-featured-media img {
	width: 100%;
	height: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	display: block;
	transition: transform .5s ease;
}

.ri-blog-featured:hover .ri-blog-featured-media img {
	transform: scale(1.03);
}

.ri-blog-featured-body h2 {
	font-size: clamp(24px, 2.8vw, 34px);
	line-height: 1.15;
	margin: 14px 0 12px;
}

.ri-blog-featured-body h2 a {
	color: var(--ri-ink);
}

.ri-blog-featured-body p {
	color: var(--ri-muted);
	margin: 0 0 14px;
}

.ri-blog-featured-body .ri-blog-meta {
	margin-bottom: 20px;
}

/* Card grid */
.ri-blog-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 26px;
}

.ri-blog-card {
	border: 1px solid var(--ri-line);
	border-radius: var(--ri-radius);
	overflow: hidden;
	background: #fff;
	display: flex;
	flex-direction: column;
	transition: box-shadow .2s ease, transform .2s ease;
}

.ri-blog-card:hover {
	box-shadow: var(--ri-shadow);
	transform: translateY(-3px);
}

.ri-blog-card-media {
	display: block;
	background: var(--ri-bg-alt);
	overflow: hidden;
}

.ri-blog-card-media img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	display: block;
	transition: transform .5s ease;
}

.ri-blog-card:hover .ri-blog-card-media img {
	transform: scale(1.04);
}

.ri-blog-card-body {
	padding: 18px 20px 20px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-items: flex-start;
}

.ri-blog-card-body h3 {
	font-size: 17px;
	line-height: 1.3;
	margin: 0;
}

.ri-blog-card-body h3 a {
	color: var(--ri-ink);
}

.ri-blog-card-body h3 a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ri-blog-card-body p {
	color: var(--ri-muted);
	font-size: 13.5px;
	margin: 0;
}

/* Single article */
.ri-article-hero {
	background: var(--ri-bg-alt);
	border-bottom: 1px solid var(--ri-line);
	padding: 54px 0 46px;
	text-align: center;
}

.ri-article-hero h1 {
	font-size: clamp(28px, 4vw, 44px);
	line-height: 1.12;
	max-width: 820px;
	margin: 14px auto 14px;
}

.ri-article-hero .ri-blog-meta {
	justify-content: center;
}

.ri-article-media {
	max-width: 980px;
	margin: -0px auto 0;
}

.ri-article-media img {
	width: 100%;
	max-height: 520px;
	object-fit: cover;
	display: block;
}

@media (min-width: 1024px) {
	.ri-article-media {
		margin-top: -34px;
	}

	.ri-article-media img {
		border-radius: var(--ri-radius);
		box-shadow: var(--ri-shadow);
	}
}

.ri-article-body {
	max-width: 760px;
	margin: 44px auto 0;
	padding: 0 24px;
	font-size: 17px;
	line-height: 1.75;
	color: var(--ri-ink-2);
}

.ri-article-body h2 {
	font-size: 26px;
	margin: 38px 0 14px;
}

.ri-article-body h3 {
	font-size: 20px;
	margin: 30px 0 12px;
}

.ri-article-body p {
	margin: 0 0 18px;
}

.ri-article-body ul,
.ri-article-body ol {
	margin: 0 0 18px 22px;
}

.ri-article-body li {
	margin-bottom: 8px;
}

.ri-article-body blockquote {
	margin: 30px 0;
	padding: 22px 28px;
	border-left: 3px solid var(--ri-ink);
	background: var(--ri-bg-alt);
	border-radius: 0 var(--ri-radius-sm) var(--ri-radius-sm) 0;
	font-size: 19px;
	font-weight: 500;
	color: var(--ri-ink);
}

.ri-article-body blockquote p {
	margin: 0;
}

.ri-article-body img {
	border-radius: var(--ri-radius-sm);
}

.ri-article-foot {
	max-width: 760px;
	margin: 40px auto 0;
	padding: 22px 24px 0;
	border-top: 1px solid var(--ri-line);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

.ri-article-share {
	display: flex;
	align-items: center;
	gap: 10px;
}

.ri-article-share>span {
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--ri-muted);
	margin-right: 4px;
}

.ri-article-share a {
	width: 38px;
	height: 38px;
	border-radius: 999px;
	display: grid;
	place-items: center;
	background: var(--ri-bg-alt);
	border: 1px solid var(--ri-line);
	color: var(--ri-ink);
	transition: background .15s ease, color .15s ease;
}

.ri-article-share a:hover {
	background: var(--ri-ink);
	color: #fff;
}

.ri-article-share a svg {
	width: 17px;
	height: 17px;
}

.ri-article-related {
	background: var(--ri-bg-alt);
	border-top: 1px solid var(--ri-line);
	margin-top: 64px;
	padding: 56px 0 72px;
}

/* Blog responsive */
@media (max-width: 1024px) {
	.ri-blog-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.ri-blog-featured {
		grid-template-columns: 1fr;
		gap: 22px;
	}
}

@media (max-width: 640px) {
	.ri-blog-grid {
		grid-template-columns: 1fr;
	}

	.ri-blog-hero {
		padding: 40px 0 36px;
	}
}

/* =========================================================================
   Traditional Login & Verification Link Signup Styles
   ========================================================================= */
.ri-auth-box {
	max-width: 440px;
	margin: 40px auto;
	background: #fff;
	border: 1px solid var(--ri-line);
	border-radius: 8px;
	padding: 40px 32px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.ri-auth-tabs {
	display: flex;
	border-bottom: 1px solid var(--ri-line);
	margin-bottom: 28px;
	gap: 16px;
}

.ri-auth-tab-btn {
	background: none;
	border: none;
	border-bottom: 2px solid transparent;
	padding: 10px 4px;
	font-family: var(--ri-font-head);
	font-size: 15px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #646970;
	cursor: pointer;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.ri-auth-tab-btn:hover {
	color: #1d2327;
}

.ri-auth-tab-btn.active {
	color: #1d2327;
	border-bottom-color: #1d2327;
}

.ri-auth-lost-password {
	margin-top: 16px;
	font-size: 13.5px;
	text-align: center;
}

.ri-auth-lost-password a {
	color: #646970;
	text-decoration: underline;
	transition: color 0.2s ease;
}

.ri-auth-lost-password a:hover {
	color: #1d2327;
}

@media (max-width: 480px) {
	.ri-auth-box {
		padding: 30px 20px;
		border: none;
		box-shadow: none;
		margin: 20px auto;
	}
}

/* =========================================================================
   Password Visibility Toggle Styling
   ========================================================================= */
.ri-password-wrapper {
	position: relative;
	display: block;
	width: 100%;
}

.ri-password-wrapper input[type="password"],
.ri-password-wrapper input[type="text"] {
	width: 100% !important;
	padding-right: 44px !important;
	box-sizing: border-box !important;
}

.ri-toggle-password {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	background: none !important;
	border: 0 !important;
	padding: 6px !important;
	color: var(--ri-muted) !important;
	cursor: pointer;
	display: grid;
	place-items: center;
	transition: color 0.2s ease;
	z-index: 5;
	box-shadow: none !important;
}

.ri-toggle-password:hover {
	color: var(--ri-ink) !important;
}

.ri-toggle-password svg {
	width: 18px;
	height: 18px;
	display: block;
	pointer-events: none;
}

/* Full Description Section Styling */
.ri-pdp-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}
.ri-pdp-section .ri-section-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    text-transform: uppercase;
}
.ri-pdp-full-desc-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.7;
    color: #444;
}

/* Proven Authenticity Section Styling */
.ri-authenticity-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    max-width: 1400px;
    margin: 40px auto 0;
    padding: 30px;
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
}
.ri-auth-image {
    flex: 1 1 300px;
    max-width: 400px;
    margin: 0 auto;
}
.ri-auth-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}
.ri-auth-content {
    flex: 1 1 400px;
}
.ri-auth-subtitle {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
    color: #888;
    display: block;
    margin-bottom: 8px;
}
.ri-auth-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #111;
    line-height: 1.3;
}
.ri-auth-feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}
.ri-auth-feature:last-child {
    margin-bottom: 0;
}
.ri-auth-icon {
    color: #555;
    flex-shrink: 0;
    padding-top: 4px;
}
.ri-auth-text strong {
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
    color: #222;
}
.ri-auth-text p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .ri-authenticity-section {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }
    .ri-auth-image {
        max-width: 100%;
    }
    .ri-auth-title {
        font-size: 22px;
    }
}


/* Newsletter & Features Dark Section */
.ri-bottom-cta-section {
    background-color: #111111;
    color: #ffffff;
    padding: 60px 20px;
    /*margin-top: 60px;*/
    margin: 60px -24px 0 -24px;
}

.ri-bottom-cta-section .ri-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Newsletter Form */
.ri-cta-newsletter {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.ri-cta-newsletter h3 {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ri-cta-newsletter p {
    color: #cccccc;
    font-size: 15px;
    margin-bottom: 25px;
}

.ri-cta-form {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.ri-cta-form input {
    flex: 1;
    max-width: 350px;
    padding: 14px 18px;
    background-color: #ffffff;
    border: 1px solid #333;
    border-radius: 4px;
    color: #111;
    font-size: 14px;
    outline: none;
}

.ri-cta-form button {
    padding: 14px 30px;
    background-color: #ffffff;
    color: #111111;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.ri-cta-form button:hover {
    background-color: #f0f0f0;
}

/* 3 Feature Columns */
.ri-cta-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    border-top: 1px solid #333333;
    padding-top: 50px;
}

.ri-cta-feature {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.ri-cta-icon {
    color: #ffffff;
    flex-shrink: 0;
}

.ri-cta-text h4 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ri-cta-text p {
    color: #aaaaaa;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .ri-cta-newsletter h3 {
        font-size: 24px;
    }
    
    .ri-cta-form {
        flex-direction: column;
        align-items: center;
    }
    
    .ri-cta-form input,
    .ri-cta-form button {
        width: 100%;
        max-width: 100%;
    }
    
    .ri-cta-features {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .ri-cta-feature {
        flex-direction: column;
        align-items: center;
    }
}