/**
 * SNX Website Enhancements - front-end styles.
 * Colours are exposed as custom properties so they can be re-themed.
 */

:root {
	--snx-ink: #1A1A1A;
	--snx-ink-soft: #F7F1E3;
	--snx-gold: #E1BF70;
	--snx-gold-dark: #C9A752;
	--snx-pink: #D6208B;
	--snx-cream: #F7F1E3;
	--snx-surface: #1A1A1A;
	--snx-surface-alt: #242424;
	--snx-border: rgba(225, 191, 112, 0.22);
	--snx-radius: 10px;
}

/* -------------------------------------------------------------------------
 * Buttons
 * ---------------------------------------------------------------------- */
.snx-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4em;
	padding: 0.85em 1.6em;
	border-radius: 999px;
	font-weight: 600;
	line-height: 1.1;
	text-decoration: none;
	border: 2px solid transparent;
	cursor: pointer;
	transition: transform 0.15s ease, background-color 0.2s ease, color 0.2s ease;
}

.snx-btn:hover,
.snx-btn:focus {
	transform: translateY(-1px);
}

.snx-btn--primary {
	background: var(--snx-gold);
	color: var(--snx-ink);
}

.snx-btn--primary:hover,
.snx-btn--primary:focus {
	background: var(--snx-gold-dark);
	color: var(--snx-ink);
}

.snx-btn--ghost {
	background: transparent;
	color: #fff;
	border-color: rgba(255, 255, 255, 0.6);
}

.snx-btn--ghost:hover,
.snx-btn--ghost:focus {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
}

/* -------------------------------------------------------------------------
 * Homepage hero
 * ---------------------------------------------------------------------- */
.snx-hero {
	background: radial-gradient(120% 140% at 15% 0%, #242424 0%, var(--snx-ink) 55%);
	color: #fff;
	padding: clamp(2.5rem, 6vw, 5rem) 1.25rem;
	margin-bottom: 2rem;
}

.snx-hero__inner {
	max-width: 1080px;
	margin: 0 auto;
	text-align: center;
}

.snx-hero__heading {
	color: #fff;
	font-size: clamp(1.7rem, 4vw, 2.9rem);
	line-height: 1.15;
	margin: 0 0 0.75rem;
}

.snx-hero__sub {
	color: rgba(255, 255, 255, 0.82);
	font-size: clamp(1rem, 2vw, 1.15rem);
	max-width: 60ch;
	margin: 0 auto 1.75rem;
}

.snx-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem;
	justify-content: center;
}

/* -------------------------------------------------------------------------
 * Trust bar
 * ---------------------------------------------------------------------- */
.snx-trust-bar {
	background: var(--snx-surface-alt);
	border-bottom: 1px solid var(--snx-border);
}

.snx-trust-bar__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem 2rem;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0.7rem 1.25rem;
	list-style: none;
}

.snx-trust-bar__item {
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	color: var(--snx-ink-soft);
	position: relative;
	padding-left: 1.15rem;
}

.snx-trust-bar__item::before {
	content: "\2713";
	position: absolute;
	left: 0;
	color: var(--snx-gold-dark);
	font-weight: 700;
}

/* -------------------------------------------------------------------------
 * Footer trust
 * ---------------------------------------------------------------------- */
.snx-footer-trust {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1.5rem;
	max-width: 1200px;
	margin: 0 auto;
	padding: 2rem 1.25rem;
}

.snx-footer-trust h3 {
	font-size: 1rem;
	margin: 0 0 0.6rem;
}

.snx-footer-trust ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.snx-footer-trust li {
	margin-bottom: 0.35rem;
	font-size: 0.9rem;
}

/* -------------------------------------------------------------------------
 * Single product assurance
 * ---------------------------------------------------------------------- */
.snx-delivery {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	margin: 0.75rem 0;
	padding: 0.7rem 0.9rem;
	background: var(--snx-surface-alt);
	border-left: 3px solid var(--snx-gold);
	border-radius: 4px;
	font-size: 0.9rem;
}

.snx-assurance {
	list-style: none;
	margin: 1rem 0;
	padding: 0;
	display: grid;
	gap: 0.5rem;
}

.snx-assurance__item {
	position: relative;
	padding-left: 1.5rem;
	font-size: 0.9rem;
}

.snx-assurance__item::before {
	position: absolute;
	left: 0;
	top: 0;
	color: var(--snx-gold-dark);
}

.snx-assurance__item--shipping::before {
	content: "\1F69A";
}

.snx-assurance__item--returns::before {
	content: "\21BA";
}

.snx-assurance__item--payment::before {
	content: "\1F512";
}

.snx-assurance__item--whatsapp::before {
	content: "\1F4AC";
}

.snx-catalog-visibility .snx-assurance__item::before,
.single-product .snx-assurance__item::before {
	font-size: 0.95em;
}

/* -------------------------------------------------------------------------
 * Shop filter bar
 * ---------------------------------------------------------------------- */
.snx-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 0.85rem;
	padding: 1rem 1.1rem;
	margin-bottom: 1.5rem;
	background: var(--snx-surface-alt);
	border: 1px solid var(--snx-border);
	border-radius: var(--snx-radius);
}

.snx-filters__field {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	min-width: 150px;
	flex: 1 1 150px;
}

.snx-filters__field label {
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--snx-ink-soft);
}

.snx-filters select,
.snx-filters input[type="number"] {
	width: 100%;
	padding: 0.5rem 0.6rem;
	border: 1px solid var(--snx-border);
	border-radius: 6px;
	background: #fff;
	min-height: 42px;
}

.snx-filters__price {
	display: flex;
	align-items: center;
	gap: 0.4rem;
}

.snx-filters__actions {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.snx-filters__reset {
	font-size: 0.85rem;
	color: var(--snx-ink-soft);
	text-decoration: underline;
}

/* Collapsible wrapper: summary button only shows on phones; desktop is always open. */
.snx-filters-toggle {
	display: none;
}

@media (max-width: 768px) {
	.snx-filters-toggle {
		display: block;
		cursor: pointer;
		list-style: none;
		padding: 0.7rem 1rem;
		margin-bottom: 0.75rem;
		border: 1px solid var(--snx-gold);
		border-radius: 999px;
		color: var(--snx-gold);
		font-weight: 700;
		text-align: center;
		min-height: 44px;
	}

	.snx-filters-toggle::-webkit-details-marker {
		display: none;
	}

	.snx-filters-wrap[open] .snx-filters-toggle {
		background: var(--snx-gold);
		color: #1A1A1A;
	}

	/* Fields were 150px tall in a column layout: let them size to content. */
	.snx-filters__field {
		flex: 0 0 auto;
		min-width: 0;
	}

	.snx-filters {
		gap: 0.6rem;
		padding: 0.8rem;
	}
}

/* -------------------------------------------------------------------------
 * Collections
 * ---------------------------------------------------------------------- */
.snx-collections {
	margin: 2rem 0;
}

.snx-collections__title {
	margin-bottom: 1rem;
}

.snx-collections__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 0.75rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.snx-collections__item a {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 84px;
	padding: 1rem;
	text-align: center;
	text-decoration: none;
	font-weight: 600;
	color: var(--snx-cream);
	background: var(--snx-surface-alt);
	border: 1px solid var(--snx-border);
	border-radius: var(--snx-radius);
	transition: border-color 0.2s ease, transform 0.15s ease;
}

.snx-collections__item a:hover,
.snx-collections__item a:focus {
	border-color: var(--snx-gold);
	transform: translateY(-2px);
}

/* -------------------------------------------------------------------------
 * Cart & checkout
 * ---------------------------------------------------------------------- */
.snx-cart-notes,
.snx-checkout-assurance {
	list-style: none;
	margin: 1rem 0;
	padding: 0.9rem 1.1rem;
	background: var(--snx-surface-alt);
	border-radius: var(--snx-radius);
	font-size: 0.9rem;
}

.snx-cart-notes__item,
.snx-checkout-assurance__item {
	margin-bottom: 0.35rem;
}

.snx-cart-notes__item:last-child,
.snx-checkout-assurance__item:last-child {
	margin-bottom: 0;
}

.snx-empty-cart {
	margin-top: 2rem;
}

/* -------------------------------------------------------------------------
 * Mobile
 * ---------------------------------------------------------------------- */
@media (max-width: 768px) {
	.snx-hero {
		padding: 2rem 1rem;
	}

	.snx-hero__actions {
		flex-direction: column;
	}

	.snx-hero__actions .snx-btn {
		width: 100%;
	}

	.snx-filters {
		flex-direction: column;
		align-items: stretch;
	}

	.snx-filters__actions {
		justify-content: space-between;
	}

	/* Comfortable tap targets */
	.snx-btn,
	.snx-collections__item a,
	.woocommerce a.button,
	.woocommerce button.button,
	.woocommerce input.button,
	.woocommerce #respond input#submit {
		min-height: 48px;
	}

	.single_add_to_cart_button {
		min-height: 52px;
		font-size: 1.02rem;
	}

	.woocommerce form .form-row input.input-text,
	.woocommerce form .form-row textarea,
	.woocommerce form .form-row select {
		min-height: 48px;
	}

	.snx-trust-bar__list {
		gap: 0.4rem 1.25rem;
	}
}

/* Keep floating chat widgets clear of checkout controls on small screens. */
body.snx-checkout-active .snx-whatsapp-float,
body.snx-checkout-active .whatsapp-float,
body.snx-checkout-active #whatsapp-button,
body.snx-checkout-active .ht-ctc-chat {
	bottom: 90px !important;
}

/* -------------------------------------------------------------------------
 * Storefront layout refinements
 * (moved here from the child theme so the parent theme's colours are kept)
 * ---------------------------------------------------------------------- */
.home .site-content {
	margin-top: 0;
}

.snx-hero + .snx-trust-bar {
	margin-top: 0;
}

/* Tighter, more scannable product grid. */
ul.products li.product {
	margin-bottom: 1.75rem;
}

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

ul.products li.product .price {
	font-weight: 700;
}

/* Uniform square tiles, but fit the WHOLE photo inside (no cropping). */
ul.products li.product a img {
	aspect-ratio: 1 / 1;
	object-fit: contain;
	background: #fff;
	width: 100%;
	height: auto;
}

.single-product div.product .woocommerce-product-gallery__image img {
	aspect-ratio: 1 / 1;
	object-fit: contain;
	background: #fff;
}

/* Emphasise the single product summary. */
.single-product div.product .summary .product_title {
	font-size: clamp(1.6rem, 3vw, 2.2rem);
	line-height: 1.2;
}

.single-product div.product .summary .price {
	font-size: 1.5rem;
	font-weight: 700;
}

.woocommerce-products-header__title.page-title {
	margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
	.main-navigation ul li a,
	.main-navigation ul li button {
		min-height: 48px;
		display: flex;
		align-items: center;
	}

	ul.products[class*="columns-"] li.product {
		width: 48%;
		float: left;
		margin-right: 4%;
	}

	ul.products[class*="columns-"] li.product:nth-child(2n) {
		margin-right: 0;
	}
}

/* -------------------------------------------------------------------------
 * Stores shortcode and footer NAP
 * ---------------------------------------------------------------------- */
.snx-stores {
	margin: 2rem 0;
}

.snx-stores__title {
	margin-bottom: 1rem;
}

.snx-stores__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1.5rem;
}

.snx-store {
	background: var(--snx-surface-alt);
	border: 1px solid var(--snx-border);
	border-radius: var(--snx-radius);
	overflow: hidden;
}

.snx-store__map {
	display: block;
	width: 100%;
	height: 220px;
	border: 0;
}

.snx-store__body {
	padding: 1rem 1.1rem;
}

.snx-store__name {
	margin: 0 0 0.35rem;
	color: var(--snx-gold);
}

.snx-store__address,
.snx-store__phone {
	margin: 0 0 0.35rem;
	font-size: 0.92rem;
}

.snx-footer-trust__store {
	margin: 0 0 0.75rem;
	font-size: 0.9rem;
}

.snx-footer-trust__brand {
	margin-top: 0.5rem;
	font-weight: 700;
}

/* -------------------------------------------------------------------------
 * Homepage product rows
 * ---------------------------------------------------------------------- */
.snx-row {
	max-width: 1200px;
	margin: 0 auto;
	padding: 1.8rem 1.25rem;
}

.snx-row__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1rem;
	border-bottom: 1px solid var(--snx-border);
	padding-bottom: 0.6rem;
}

.snx-row__title {
	margin: 0;
	font-family: "Playfair Display", Georgia, "Times New Roman", serif;
	font-weight: 600;
	letter-spacing: 0.01em;
	font-size: clamp(1.35rem, 2.6vw, 1.9rem);
}

.snx-row__more {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	font-weight: 700;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--snx-pink);
	border: 2px solid var(--snx-pink);
	border-radius: 999px;
	padding: 0.45rem 1rem;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.snx-row__more:hover,
.snx-row__more:focus {
	background: var(--snx-pink);
	color: #fff;
}

.snx-row__grid ul.products {
	margin: 0;
}

/* -------------------------------------------------------------------------
 * Rolling trust-points bar
 * ---------------------------------------------------------------------- */
.snx-trust-roll {
	background: var(--snx-surface-alt);
	border-bottom: 1px solid var(--snx-border);
	overflow: hidden;
}

.snx-trust-roll__track {
	display: inline-flex;
	white-space: nowrap;
	animation: snxRoll 24s linear infinite;
	padding: 0.6rem 0;
}

.snx-trust-roll__track span {
	padding: 0 1.4rem;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--snx-ink-soft);
}

.snx-trust-roll__dot {
	color: var(--snx-gold);
}

@keyframes snxRoll {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(-50%);
	}
}

/* -------------------------------------------------------------------------
 * Sticky main menu
 * ---------------------------------------------------------------------- */
.snx-sticky-nav .main-navigation {
	position: sticky;
	top: 0;
	z-index: 999;
}

.admin-bar.snx-sticky-nav .main-navigation {
	top: 32px;
}

@media screen and (max-width: 782px) {
	.admin-bar.snx-sticky-nav .main-navigation {
		top: 46px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.snx-trust-roll__track {
		animation: none !important;
	}
}

/* -------------------------------------------------------------------------
 * Scroll reveal
 * Content is visible by default; JS only *adds* the animation when an
 * element scrolls into view, so nothing can stay hidden if JS fails.
 * ---------------------------------------------------------------------- */
:root {
	--snx-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

.snx-enter {
	animation: snxFadeUp 0.9s var(--snx-ease) both;
}

/* Stagger cards within a product grid */
ul.products li.product.snx-enter:nth-child(4n + 2) {
	animation-delay: 0.08s;
}
ul.products li.product.snx-enter:nth-child(4n + 3) {
	animation-delay: 0.16s;
}
ul.products li.product.snx-enter:nth-child(4n + 4) {
	animation-delay: 0.24s;
}

@keyframes snxFadeUp {
	from {
		opacity: 0;
		transform: translateY(38px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.snx-enter {
		animation: none !important;
	}
}

/* -------------------------------------------------------------------------
 * Hero background photo
 * ---------------------------------------------------------------------- */
.snx-hero--image {
	position: relative;
	overflow: hidden;
	background: none;
	min-height: min(78vh, 620px);
	display: flex;
	align-items: center;
}

.snx-hero--image::before {
	content: "";
	position: absolute;
	inset: -1px;
	background-image: var(--snx-hero-img);
	background-size: cover;
	background-position: center;
	z-index: 0;
	animation: snxHeroZoom 16s var(--snx-ease) both;
}

@keyframes snxHeroZoom {
	from {
		transform: scale(1.1);
	}
	to {
		transform: scale(1);
	}
}

.snx-hero--image .snx-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.2));
	z-index: 1;
}

.snx-hero--image .snx-hero__inner {
	position: relative;
	z-index: 2;
}

.snx-hero__eyebrow {
	display: inline-block;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	font-size: 0.74rem;
	font-weight: 700;
	color: var(--snx-gold);
	margin-bottom: 0.8rem;
}

@media (prefers-reduced-motion: reduce) {
	.snx-hero--image::before {
		animation: none !important;
	}
}

/* -------------------------------------------------------------------------
 * Homepage row carousels (swipe / horizontal scroll)
 * ---------------------------------------------------------------------- */
.snx-row__grid ul.products {
	display: flex;
	flex-wrap: nowrap;
	overflow-x: auto;
	gap: 1rem;
	margin: 0;
	padding: 0 0 0.7rem;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
}

.snx-row__grid ul.products::before,
.snx-row__grid ul.products::after {
	content: none;
}

.snx-row__grid ul.products li.product {
	flex: 0 0 auto;
	width: 220px !important;
	margin: 0 !important;
	scroll-snap-align: start;
}

@media (max-width: 768px) {
	.snx-row__grid ul.products li.product {
		width: 150px !important;
	}
}

/* -------------------------------------------------------------------------
 * "Shop by category" tiles
 * ---------------------------------------------------------------------- */
.snx-cats {
	max-width: 1200px;
	margin: 0 auto;
	padding: 1.8rem 1.25rem;
}

.snx-cats__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 1rem;
}

.snx-cat-tile {
	position: relative;
	display: block;
	border-radius: 12px;
	overflow: hidden;
	text-decoration: none;
	color: #fff;
	background: #111;
}

.snx-cat-tile img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	display: block;
	transition: transform 0.6s var(--snx-ease);
}

.snx-cat-tile:hover img {
	transform: scale(1.06);
}

.snx-cat-tile::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.6));
	z-index: 1;
}

.snx-cat-tile__num,
.snx-cat-tile__name,
.snx-cat-tile__count {
	position: absolute;
	z-index: 2;
	left: 0.8rem;
	right: 0.8rem;
}

.snx-cat-tile__num {
	top: 0.7rem;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	opacity: 0.9;
}

.snx-cat-tile__name {
	bottom: 1.5rem;
	font-weight: 700;
	font-size: 1.05rem;
}

.snx-cat-tile__count {
	bottom: 0.6rem;
	font-size: 0.76rem;
	opacity: 0.85;
}

/* -------------------------------------------------------------------------
 * Sticky add-to-cart bar (single product)
 * ---------------------------------------------------------------------- */
.snx-sticky-atc {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 900;
	background: #fff;
	border-top: 1px solid #ececec;
	box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.12);
	transform: translateY(110%);
	transition: transform 0.35s var(--snx-ease);
}

.snx-sticky-atc.is-visible {
	transform: translateY(0);
}

.snx-sticky-atc__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0.55rem 1rem;
	display: flex;
	align-items: center;
	gap: 0.7rem;
}

.snx-sticky-atc__media img {
	width: 44px;
	height: 44px;
	object-fit: contain;
	border-radius: 8px;
	background: #fff;
	display: block;
}

.snx-sticky-atc__info {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
	min-width: 0;
}

.snx-sticky-atc__name {
	font-weight: 700;
	font-size: 0.9rem;
	color: var(--snx-ink);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 46vw;
}

.snx-sticky-atc__price {
	font-size: 0.82rem;
	color: var(--snx-ink);
	opacity: 0.8;
}

.snx-sticky-atc__btn {
	margin-left: auto;
	white-space: nowrap;
}

@media (max-width: 768px) {
	.snx-sticky-atc__inner {
		padding-right: 74px;
	}

	/* Keep the sticky bar above Storefront's handheld footer bar */
	.snx-sticky-atc {
		bottom: 56px;
	}
}

/* -------------------------------------------------------------------------
 * Store extras: badges, prepaid note, recently viewed, reviews
 * ---------------------------------------------------------------------- */
ul.products li.product {
	position: relative;
}

.snx-badges {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 6px;
	pointer-events: none;
}

.snx-badge {
	display: inline-block;
	font-size: 0.68rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	padding: 3px 8px;
	border-radius: 999px;
	color: #fff;
	background: #1a1a1a;
}

.snx-badge--sale {
	background: var(--snx-pink);
}
.snx-badge--new {
	background: #128a52;
}
.snx-badge--best {
	background: var(--snx-gold-dark);
	color: #1a1a1a;
}
.snx-badge--low {
	background: #b45309;
}

.snx-prepaid-note {
	margin: 0.7rem 0 0.2rem;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--snx-ink);
	background: var(--snx-cream);
	border-left: 3px solid var(--snx-gold-dark);
	padding: 0.5rem 0.7rem;
}

.snx-rv,
.snx-upsells {
	max-width: 1200px;
	margin: 0 auto;
	padding: 1.5rem 1.25rem;
}

.snx-rv h2,
.snx-upsells h2 {
	font-size: clamp(1.2rem, 2.4vw, 1.6rem);
	margin: 0 0 1rem;
}

.snx-reviews {
	max-width: 1200px;
	margin: 0 auto;
	padding: 2rem 1.25rem;
}

.snx-reviews__title {
	font-size: clamp(1.2rem, 2.4vw, 1.6rem);
	margin: 0 0 1rem;
}

.snx-reviews__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 1rem;
}

.snx-review {
	margin: 0;
	background: #fff;
	border: 1px solid var(--snx-border);
	border-radius: 12px;
	padding: 1rem;
}

.snx-review__stars {
	color: var(--snx-gold-dark);
	letter-spacing: 0.1em;
	margin-bottom: 0.4rem;
}

.snx-review blockquote {
	margin: 0 0 0.6rem;
	font-style: italic;
}

.snx-review figcaption {
	font-size: 0.85rem;
	opacity: 0.85;
}

.snx-reviews__google {
	margin-top: 1rem;
}

/* Hide the Shiprocket product-page pincode checker (broken/unnecessary) */
#shiprocket_pincode_check,
#check_pincode,
#pincode_response,
div:has(> #shiprocket_pincode_check) {
	display: none !important;
}

/* Ensure the Variation Swatches plugin shows every option (no height cap) */
.variable-items-wrapper {
	flex-wrap: wrap !important;
	max-height: none !important;
	overflow: visible !important;
}

/* Variation shade buttons (fallback when the swatch plugin is not active) */
.snx-swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0.25rem 0 0.9rem;
}

.snx-swatch {
	min-width: 2.6rem;
	padding: 0.45rem 0.6rem;
	border: 1px solid var(--snx-border);
	background: #fff;
	color: var(--snx-ink);
	border-radius: 8px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.snx-swatch:hover {
	border-color: var(--snx-ink);
}

.snx-swatch.is-active {
	background: var(--snx-ink);
	color: #fff;
	border-color: var(--snx-ink);
}

/* Photo swatches (long shade / design lists): small photo tiles with the shade number */
ul.snx-photo-swatches {
	display: flex !important;
	flex-wrap: wrap !important;
	gap: 6px !important;
}

ul.snx-photo-swatches li.snx-photo-swatch {
	position: relative;
	width: 56px !important;
	height: 56px !important;
	min-width: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	border-radius: 8px !important;
	overflow: hidden;
	box-shadow: none !important;
	border: 2px solid transparent !important;
	background: #222 !important;
}

ul.snx-photo-swatches li.snx-photo-swatch .variable-item-contents,
ul.snx-photo-swatches li.snx-photo-swatch img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

ul.snx-photo-swatches li.snx-photo-swatch .snx-shade-no {
	position: absolute;
	left: 2px;
	bottom: 2px;
	padding: 1px 5px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.72);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.3;
}

ul.snx-photo-swatches li.snx-photo-swatch.selected,
ul.snx-photo-swatches li.snx-photo-swatch:hover {
	border-color: var(--snx-gold, #E1BF70) !important;
}

ul.snx-photo-swatches li.snx-photo-swatch.disabled {
	opacity: 0.35;
}

/* -------------------------------------------------------------------------
 * Mobile bottom bar: colour + keep WhatsApp above it (no overlap with cart)
 * ---------------------------------------------------------------------- */
.storefront-handheld-footer-bar {
	background-color: #1a1a1a;
	border-color: rgba(225, 191, 112, 0.25);
}

.storefront-handheld-footer-bar a,
.storefront-handheld-footer-bar a::before,
.storefront-handheld-footer-bar ul li > a {
	color: #e1bf70;
}

.storefront-handheld-footer-bar a:hover,
.storefront-handheld-footer-bar a:hover::before,
.storefront-handheld-footer-bar ul li > a:hover {
	color: #ffffff;
}

.storefront-handheld-footer-bar ul li.cart .count {
	background-color: #e1bf70;
	color: #1a1a1a;
}

@media (max-width: 768px) {
	#ht-ctc-chat,
	.ht-ctc-chat {
		bottom: 74px !important;
	}
}

/* ---------- Cart and checkout: hide long product descriptions in the order summary ---------- */
.wp-block-woocommerce-checkout .wc-block-components-product-metadata__description,
.wp-block-woocommerce-cart .wc-block-components-product-metadata__description {
	display: none;
}

/* ---------- Header fixes (search box, cart amount, centred logo and menu) ---------- */

/* 1) The white box around the search field becomes black like the header */
.site-header .dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp,
.site-header .site-search .dgwt-wcas-sf-wrapp {
	background: var(--snx-darker, #141414) !important;
	box-shadow: none !important;
}

/* 2) The cart amount no longer disappears into the pink bar */
.site-header-cart .cart-contents,
.site-header-cart .cart-contents .amount,
.site-header-cart .cart-contents .woocommerce-Price-amount,
.site-header-cart .cart-contents .woocommerce-Price-currencySymbol,
.site-header-cart .cart-contents .count {
	color: #111 !important;
	opacity: 1 !important;
	font-weight: 800 !important;
}

/* 3) Desktop: logo in the centre, menu in the centre, cart on the right, search on the right */
@media (min-width: 768px) {
	.site-header > .col-full {
		display: grid !important;
		grid-template-columns: 1fr auto 1fr;
		align-items: center;
	}

	.site-header > .col-full::before,
	.site-header > .col-full::after {
		content: none !important;
		display: none !important;
	}

	.woocommerce-active .site-header .site-branding,
	.site-header .site-branding {
		grid-column: 2;
		grid-row: 1;
		float: none !important;
		width: auto !important;
		margin: 0 auto 16px !important;
		text-align: center !important;
	}

	.site-header .site-branding img,
	.site-header .custom-logo {
		max-width: 190px !important;
		height: auto !important;
		margin: 0 auto !important;
	}

	.woocommerce-active .site-header .site-search,
	.site-header .site-search {
		grid-column: 3;
		grid-row: 1;
		float: none !important;
		display: block !important;
		width: auto !important;
		min-width: 260px;
		max-width: 340px;
		margin: 0 0 0 auto !important;
		clear: none !important;
	}

	.storefront-primary-navigation > .col-full {
		display: flex !important;
		justify-content: center;
		align-items: center;
		position: relative;
	}

	.storefront-primary-navigation > .col-full::before,
	.storefront-primary-navigation > .col-full::after {
		content: none !important;
		display: none !important;
	}

	.storefront-primary-navigation .main-navigation {
		float: none !important;
		width: auto !important;
		margin: 0 auto !important;
	}

	.storefront-primary-navigation .main-navigation .primary-navigation {
		display: flex;
		justify-content: center;
	}

	.woocommerce-active .site-header .site-header-cart,
	.storefront-primary-navigation .site-header-cart {
		position: absolute !important;
		right: 1.2em;
		top: 50%;
		transform: translateY(-50%);
		float: none !important;
		width: auto !important;
		margin: 0 !important;
	}

	.site-header-cart .cart-contents {
		padding: 0.4em 0 !important;
	}

	.site-header {
		padding-bottom: 0.9em !important;
	}
}

/* ---------- Review fixes: checkout button, brand-colour links, review text, checkout WhatsApp ---------- */
a.wc-block-cart__submit-button,
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button {
	background: #e1bf70 !important;
	color: #1a1409 !important;
	font-weight: 800 !important;
	text-decoration: none !important;
	border: 0 !important;
}

a.wc-block-cart__submit-button:hover,
.wc-block-components-checkout-place-order-button:hover {
	background: #f2cf7f !important;
	color: #1a1409 !important;
}

.woocommerce-tabs ul.tabs li a,
.wc-tabs li a,
a.wc-block-components-product-name,
.wc-block-components-product-name {
	color: #e1bf70 !important;
}

.woocommerce-tabs ul.tabs li.active a,
.wc-tabs li.active a {
	color: #fff !important;
}

.ti-widget .ti-name,
.ti-widget .ti-review-text,
.ti-widget .ti-review-content,
.ti-widget .ti-date {
	color: #222 !important;
}

@media (max-width: 768px) {
	.woocommerce-checkout #ht-ctc-chat,
	.woocommerce-cart #ht-ctc-chat {
		display: none !important;
	}
}

/* Shade-card helper line (product pages): dark card with gold accent, matches the site theme */
.snx-shade-card-note {
	margin: 0 0 14px;
	padding: 12px 16px;
	background: var(--snx-surface-alt, #242424);
	border: 1px solid var(--snx-border, rgba(225, 191, 112, 0.22));
	border-left: 3px solid var(--snx-gold, #E1BF70);
	border-radius: var(--snx-radius, 10px);
	color: var(--snx-cream, #F7F1E3);
	font-size: 14px;
	line-height: 1.5;
}
.snx-shade-card-note strong {
	color: var(--snx-gold, #E1BF70);
	font-weight: 600;
	letter-spacing: 0.02em;
}

/* Shade-card products: numbers coloured with their shade, card zooms to the chosen shade */
body.snx-shade-zoom li.variable-item.snx-shade-coloured {
	border: 1px solid rgba(255, 255, 255, 0.35) !important;
	text-shadow: none;
	font-weight: 600;
}
body.snx-shade-zoom li.variable-item.snx-shade-coloured.selected,
body.snx-shade-zoom li.variable-item.snx-shade-coloured:hover {
	outline: 2px solid var(--snx-gold, #E1BF70);
	outline-offset: 1px;
}
body.snx-shade-zoom .woocommerce-product-gallery__image {
	overflow: hidden;
	position: relative;
}
.snx-shade-layer {
	position: absolute;
	inset: 0;
	z-index: 6;
	pointer-events: none;
	background-repeat: no-repeat;
	background-color: #1A1A1A;
	opacity: 0;
	transition: opacity .3s ease;
}
.snx-shade-layer.is-on {
	opacity: 1;
}
body.snx-shade-zoom .woocommerce-product-gallery__image img.zoomImg {
	display: none !important;
}

/* ---------- Google reviews widget (Trustindex): readable text on the white cards, readable caption on the dark page ---------- */
.ti-widget .ti-name,
.ti-widget .ti-review-content,
.ti-widget .ti-review-text-container,
.ti-widget .ti-review-content * {
	color: #1A1A1A !important;
}
.ti-widget .ti-date,
.ti-widget .ti-profile-details .ti-date {
	color: #6b6b6b !important;
}
.ti-widget .ti-read-more,
.ti-widget .ti-read-more span {
	color: #8a6d1d !important;
}
.ti-widget .ti-footer-filter-text,
.ti-widget .ti-footer-filter-text * {
	color: #F7F1E3 !important;
	opacity: 0.8;
}

/* ---------- Mobile bottom bar (account / search / cart): slimmer ---------- */
@media (max-width: 768px) {
	.storefront-handheld-footer-bar ul li > a {
		height: 48px !important;
	}
	.storefront-handheld-footer-bar ul li > a::before {
		font-size: 19px !important;
		line-height: 48px !important;
	}
	.storefront-handheld-footer-bar ul li.cart .count {
		width: 17px !important;
		height: 17px !important;
		font-size: 10px !important;
		line-height: 17px !important;
		top: 6px !important;
		bottom: auto !important;
		margin-left: 8px !important;
	}
	.snx-ai-float #snx-ai-btn {
		bottom: 62px !important;
		padding: 10px 16px !important;
	}
	.snx-ai-float #snx-ai-panel {
		bottom: 112px !important;
	}
	.ht-ctc-chat,
	#ht-ctc-chat {
		bottom: 58px !important;
	}
	.snx-sticky-atc {
		bottom: 48px !important;
	}
}

/* ---------- Search suggestions: dark/gold theme, price and add-to-cart on each product ---------- */
.dgwt-wcas-suggestions-wrapp {
	background: #1A1A1A !important;
	border: 1px solid rgba(225, 191, 112, 0.35) !important;
	border-radius: 12px !important;
	box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55) !important;
	overflow: hidden;
}
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion,
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion * {
	color: #F7F1E3;
}
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion {
	border-bottom: 1px solid rgba(225, 191, 112, 0.12) !important;
	padding: 10px 12px !important;
}
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion.dgwt-wcas-suggestion-selected,
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion:hover {
	background: #242424 !important;
}
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-headline {
	background: #111 !important;
}
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-headline .dgwt-wcas-st {
	color: #E1BF70 !important;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-size: 12px;
}
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-st strong {
	color: #E1BF70 !important;
}
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-si img {
	border-radius: 8px;
	background: #fff;
	object-fit: contain;
}
.snx-sx-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: 6px;
}
.snx-sx-price {
	color: #D6208B;
	font-weight: 700;
	font-size: 15px;
}
.snx-sx-price del {
	color: #8c8c8c;
	font-weight: 400;
	margin-right: 4px;
	font-size: 12px;
}
.snx-sx-btn {
	display: inline-block;
	border-radius: 999px;
	padding: 7px 14px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	background: #E1BF70;
	color: #1A1A1A !important;
	white-space: nowrap;
	cursor: pointer;
}
.snx-sx-btn.snx-sx-opts {
	background: transparent;
	border: 1px solid #E1BF70;
	color: #E1BF70 !important;
}
.snx-sx-btn.is-off {
	background: #3a3a3a;
	color: #aaa !important;
	cursor: default;
}
.snx-sx-btn.is-busy {
	opacity: 0.6;
}
.snx-sx-btn.is-done {
	background: #2e8b57;
	color: #fff !important;
}
.dgwt-wcas-search-input {
	border-radius: 999px !important;
}

.dgwt-wcas-suggestions-wrapp .snx-sx-row .snx-sx-price,
.dgwt-wcas-suggestions-wrapp .snx-sx-row .snx-sx-price * {
	color: #E83E9E;
}
.dgwt-wcas-suggestions-wrapp .snx-sx-row .snx-sx-price del,
.dgwt-wcas-suggestions-wrapp .snx-sx-row .snx-sx-price del * {
	color: #8c8c8c;
}

/* Search: colour shade block */
.snx-sx-colours {
	padding: 10px 12px 6px;
	background: #151515;
	border-bottom: 1px solid rgba(225, 191, 112, 0.25);
}
.snx-sx-colhead {
	color: #E1BF70;
	font-weight: 700;
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-bottom: 8px;
}
.snx-sx-colrow {
	margin-bottom: 10px;
}
.snx-sx-colname {
	display: block;
	color: #F7F1E3 !important;
	font-weight: 600;
	font-size: 14px;
	margin-bottom: 6px;
	text-decoration: none;
}
.snx-sx-colname span {
	color: #9a9a9a;
	font-weight: 400;
	font-size: 12px;
	margin-left: 4px;
}
.snx-sx-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.snx-sx-chip {
	display: inline-block;
	min-width: 34px;
	text-align: center;
	padding: 6px 8px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	border: 1px solid rgba(255, 255, 255, 0.28);
	text-decoration: none !important;
}
.snx-sx-chip.snx-sx-more {
	background: transparent;
	color: #E1BF70 !important;
	border-color: #E1BF70;
}

/* Search: related products from category groups */
.snx-sx-group {
	padding: 10px 12px 4px;
	background: #151515;
	border-top: 1px solid rgba(225, 191, 112, 0.25);
}
.snx-sx-grow {
	display: flex;
	gap: 10px;
	align-items: center;
	padding: 8px 0;
	border-bottom: 1px solid rgba(225, 191, 112, 0.1);
}
.snx-sx-gimg {
	flex: 0 0 52px;
}
.snx-sx-gimg img {
	width: 52px;
	height: 52px;
	object-fit: contain;
	background: #fff;
	border-radius: 8px;
	display: block;
}
.snx-sx-ginfo {
	flex: 1 1 auto;
	min-width: 0;
}
.snx-sx-gname {
	display: block;
	color: #F7F1E3 !important;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.25;
	text-decoration: none;
}
.snx-sx-seeall-row {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
	padding: 10px 0 8px;
}
.snx-sx-seeall {
	display: inline-block;
	color: #E1BF70 !important;
	font-weight: 700;
	font-size: 14px;
	text-decoration: none;
}

/* 1.75.0: category pills, same-price line, store photos in hero */
.snx-cat-pills{display:flex;flex-wrap:wrap;gap:8px;margin:6px 0 18px}
.snx-sameprice{margin:0 0 12px;padding:10px 14px;text-align:center;font-size:15px;line-height:1.35;color:#111;background:#e8c77a;border-radius:10px}
.snx-sameprice strong{font-weight:700}
.snx-hero__stores{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
.snx-hero__stores figure{margin:0;flex:1 1 140px;max-width:220px}
.snx-hero__stores img{display:block;width:100%;height:110px;object-fit:cover;border-radius:10px;border:1px solid #b8914a}
.snx-hero__stores figcaption{margin-top:4px;font-size:12px;color:#e8c77a;text-align:center}

/* 1.75.1: category row = same clean swipe row as Offers */
.snx-cat-nav{margin:14px 0 6px}
.snx-cat-nav .snx-price-nav__list{display:flex;flex-wrap:nowrap;align-items:center;gap:8px;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;padding-bottom:2px}
.snx-cat-nav .snx-price-nav__list::-webkit-scrollbar{display:none}
.snx-cat-nav .snx-price-nav__btn,.snx-cat-nav .snx-price-nav__offers{flex:0 0 auto}
.snx-cat-nav .snx-price-nav__btn{padding:7px 14px;font-size:13px}
.snx-sameprice{margin:0;border-radius:0;padding:9px 14px;font-size:14px}

/* 1.77.2: phone in 'desktop site' mode / small tablets (768-1279 px): keep the menu clear of the cart (tested live at 768, 800, 980, 1100, 1250). */
@media (min-width: 768px) and (max-width: 1279px) {
	.site-header .main-navigation,
	.storefront-primary-navigation .main-navigation { width: calc(100% - 9.5em) !important; max-width: calc(100% - 9.5em) !important; margin: 0 !important; float: none !important; }
	.main-navigation .primary-navigation,
	.main-navigation ul.menu { justify-content: center; flex-wrap: wrap; }
}
