/* Hero slider section, full-width */
.ps-hero-slider-section {
	width: 100vw;
	position: relative;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	padding: 20px 0 24px;
}
.ps-hero-slider {
	max-width: 1200px;
	margin: 0 auto;
	position: relative;
}
.ps-hero-slider .splide__slide {
	/* aspect-ratio: 16 / 5; */
	background: #f4f4f4;
	overflow: hidden;
}
.ps-hero-slider .splide__slide img,
.ps-hero-slider .splide__slide a {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
/* Bare chevrons, no button/circle behind them — matches the reference design.
   border-radius:0 kills Splide's own default circular shape (50%), which
   was otherwise invisible with no fill but still showed up as a ring via
   the focus-visible outline below. */
.ps-hero-slider .splide__arrow {
	background: none;
	border-radius: 0;
	opacity: 1;
	width: 44px;
	height: 44px;
}
/* Pulled outside the image edges, same treatment as .ps-product-carousel.
   direction:'rtl' (see assets/carousels.js) means Splide treats "prev" as
   the right side and "next" as the left — explicit left/right on both
   properties for the same over-constrained-under-rtl reason documented on
   the product carousel arrows below. */
.ps-hero-slider .splide__arrow--prev {
	right: -55px !important;
	left: auto !important;
}
.ps-hero-slider .splide__arrow--next {
	left: -55px !important;
	right: auto !important;
}
@media (max-width: 1310px) {
	.ps-hero-slider .splide__arrow--prev {
		right: 6px !important;
	}
	.ps-hero-slider .splide__arrow--next {
		left: 6px !important;
	}
}
.ps-hero-slider .splide__arrow svg {
	fill: var(--ps-color-text);
	width: 28px;
	height: 28px;
}
.ps-hero-slider .splide__arrow:hover svg {
	fill: var(--ps-color-primary);
}
.ps-hero-slider .splide__arrow:focus-visible,
.ps-product-carousel .splide__arrow:focus-visible {
	outline: 2px solid var(--ps-color-primary-dark);
	outline-offset: 2px;
}
.ps-hero-slider .splide__pagination__page.is-active {
	background: var(--ps-color-primary);
}

/* Features / trust-badges row under the hero slider */
.ps-features-row {
	background: #ffffff;
	padding: 20px 0 28px;
	border-bottom: 1px solid #f0f0f0;
}
.ps-features-row__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 15px;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	align-items: center;
}
.ps-feature {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	padding: 8px 16px;
	background: transparent !important;
	background-color: transparent !important;
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	cursor: pointer;
	text-align: right;
	direction: rtl;
	transition: transform 0.15s ease, opacity 0.15s ease;
}
.ps-feature:not(:last-child) {
	border-inline-end: 1px solid #e2e2e2 !important;
}
.ps-feature:hover {
	opacity: 0.85;
	transform: translateY(-1px);
}
.ps-feature__content {
	display: flex;
	flex-direction: column;
	text-align: right;
}
.ps-feature__title {
	font-size: 1.05em;
	font-weight: 700;
	color: #222222;
	line-height: 1.25;
	transition: color 0.15s ease;
}
.ps-feature__subtitle {
	font-size: 0.86em;
	color: #666666;
	margin-top: 3px;
	line-height: 1.25;
}
.ps-feature:hover .ps-feature__title {
	color: var(--ps-color-primary-dark);
}
.ps-feature__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--ps-color-primary);
	flex-shrink: 0;
	transition: transform 0.2s ease, color 0.15s ease;
}
.ps-feature:hover .ps-feature__icon {
	transform: scale(1.08);
	color: var(--ps-color-primary-dark);
}

/* Info Modals Lists */
.ps-info-modal-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.ps-info-item {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 14px 16px;
	background: #fbfbfb;
	border: 1px solid #eeeeee;
	border-radius: 6px;
}
.ps-info-item__icon {
	color: var(--ps-color-primary);
	margin-top: 2px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}
.ps-info-item__text strong {
	display: block;
	font-size: 1em;
	font-weight: 700;
	color: #222222;
	margin-bottom: 4px;
}
.ps-info-item__text p {
	margin: 0;
	font-size: 0.88em;
	color: #666666;
	line-height: 1.45;
}

/* ==========================================================================
   Circular Category Grid (Blissful Reference: Choose from Category)
   ========================================================================== */
.ps-categories-section {
	padding: 45px 0 35px;
	background: #ffffff;
}
.ps-categories-section__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 15px;
}
.ps-section-header {
	margin-bottom: 32px;
	text-align: center;
}
.ps-section-title {
	font-family: var(--ps-font-heading, inherit);
	font-size: 1.8em;
	font-weight: 700;
	color: #222222;
	margin: 0 0 6px;
	letter-spacing: -0.5px;
}
.ps-section-subtitle {
	font-size: 0.95em;
	color: #777777;
	margin: 0;
}
.ps-categories-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 24px;
}
.ps-category-card,
.ps-categories-grid--cols-4 .ps-category-card {
	flex: 0 0 calc((100% - 72px) / 4);
	max-width: calc((100% - 72px) / 4);
	width: calc((100% - 72px) / 4);
	display: flex;
	flex-direction: column;
	text-decoration: none !important;
	color: inherit;
	transition: transform 0.2s ease;
}
/* 3 per row on desktop when multiple of 3 (e.g. 6 cards -> 3 + 3) */
.ps-categories-grid--cols-3 .ps-category-card {
	flex: 0 0 calc((100% - 48px) / 3);
	max-width: calc((100% - 48px) / 3);
	width: calc((100% - 48px) / 3);
}
.ps-category-card__image {
	width: 100%;
	aspect-ratio: 4 / 3;
	border-radius: 10px;
	overflow: hidden;
	position: relative;
	background: #f7f7f7;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
	border: 3px solid transparent;
	transition: all 0.25s ease;
}
.ps-category-card:hover .ps-category-card__image {
	border-color: var(--ps-color-primary);
	transform: translateY(-4px);
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}
.ps-category-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}
.ps-category-card:hover .ps-category-card__image img {
	transform: scale(1.08);
}
.ps-category-card__name {
	margin-top: 12px;
	font-size: 1em;
	font-weight: 700;
	color: #333333;
	transition: color 0.15s ease;
	line-height: 1.3;
	text-align: center;
}
.ps-category-card:hover .ps-category-card__name {
	color: var(--ps-color-primary-dark);
}

@media (max-width: 992px) {
	.ps-categories-grid {
		gap: 20px;
	}
	.ps-category-card,
	.ps-categories-grid--cols-4 .ps-category-card,
	.ps-categories-grid--cols-3 .ps-category-card {
		flex: 0 0 calc((100% - 40px) / 3) !important;
		max-width: calc((100% - 40px) / 3) !important;
		width: calc((100% - 40px) / 3) !important;
	}
}

@media (max-width: 768px) {
	.ps-categories-grid {
		display: grid !important;
		grid-template-columns: repeat(2, 1fr) !important;
		gap: 16px !important;
	}
	.ps-categories-row {
		display: contents !important;
	}
	.ps-category-card,
	.ps-categories-grid--cols-4 .ps-category-card,
	.ps-categories-grid--cols-3 .ps-category-card {
		flex: none !important;
		max-width: 100% !important;
		width: 100% !important;
	}
	/* If an odd number of cards exists, center the last card */
	.ps-category-card:last-child:nth-child(odd) {
		grid-column: 1 / -1 !important;
		max-width: calc(50% - 8px) !important;
		margin-inline: auto !important;
	}
	.ps-category-card__name {
		margin-top: 8px;
		font-size: 0.95em;
	}
}

/* ==========================================================================
   Homepage Promo Banners & Welcome Header
   ========================================================================== */
.ps-promo-banners-section {
	width: 100vw;
	position: relative;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	margin-top: 40px;
	margin-bottom: 50px;
	padding: 60px 0 65px;
	background-image: url('../img/packed-with-love.png');
	background-repeat: no-repeat;
	background-position: center center;
	background-size: cover;
	direction: rtl;
	text-align: right;
}
.ps-promo-banners-section__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}
.ps-welcome-header {
	text-align: center;
	margin-bottom: 36px;
}
.ps-welcome-title {
	font-family: var(--ps-font-heading, inherit);
	font-size: 1.85em;
	font-weight: 700;
	color: #222222;
	margin: 0 0 8px;
	line-height: 1.35;
}
.ps-welcome-title .ps-accent-text {
	color: var(--ps-color-primary);
	font-weight: 800;
}
.ps-welcome-subtitle {
	font-size: 1.05em;
	color: #555555;
	margin: 0;
}
.ps-promo-banners-grid {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	gap: 24px;
	align-items: center;
	width: 100%;
}
.ps-promo-col--1-1 { grid-column: span 12; }
.ps-promo-col--2-3 { grid-column: span 8; }
.ps-promo-col--1-2 { grid-column: span 6; }
.ps-promo-col--1-3 { grid-column: span 4; }
.ps-promo-col--1-4 { grid-column: span 3; }

.ps-promo-banner-card {
	border-radius: 8px;
	overflow: hidden;
	background: transparent;
	transition: all 0.25s ease;
	display: flex;
}
.ps-promo-banner-card:hover {
	transform: translateY(-3px);
	filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.08));
}
.ps-promo-banner-link {
	display: block;
	width: 100%;
	text-decoration: none !important;
}
.ps-promo-banner-link img {
	width: 100%;
	height: auto;
	object-fit: contain;
	display: block;
	border-radius: 8px;
	transition: transform 0.3s ease;
}
.ps-promo-banner-card:hover .ps-promo-banner-link img {
	transform: scale(1.015);
}

@media (max-width: 768px) {
	.ps-hero-slider-section {
		width: 100vw !important;
		position: relative !important;
		left: 50% !important;
		right: 50% !important;
		margin-left: -50vw !important;
		margin-right: -50vw !important;
		padding: 20px 0 20px !important;
	}
	/* Features trust badges 2x2 grid with pure internal cross divider (no outer frame) */
	.ps-features-row {
		padding: 20px 15px !important;
		background: #ffffff !important;
		border-bottom: 1px solid #f0f0f0 !important;
	}
	.ps-features-row__inner {
		grid-template-columns: 1fr 1fr !important;
		gap: 0 !important;
		border: none !important;
		border-radius: 0 !important;
		padding: 0 !important;
		background: transparent !important;
	}
	.ps-feature {
		display: flex !important;
		flex-direction: column-reverse !important;
		align-items: center !important;
		justify-content: center !important;
		text-align: center !important;
		gap: 8px !important;
		padding: 16px 10px !important;
		border: none !important;
		background: transparent !important;
		box-sizing: border-box !important;
	}
	/* Top row items: bottom divider line */
	.ps-feature:nth-child(1),
	.ps-feature:nth-child(2) {
		border-bottom: 1px solid #eee8e4 !important;
	}
	/* First column items in RTL: vertical divider line */
	.ps-feature:nth-child(1),
	.ps-feature:nth-child(3) {
		border-inline-end: 1px solid #eee8e4 !important;
	}
	/* Second column items: no vertical border */
	.ps-feature:nth-child(2),
	.ps-feature:nth-child(4) {
		border-inline-end: none !important;
	}
	/* Bottom row items: no bottom border */
	.ps-feature:nth-child(3),
	.ps-feature:nth-child(4) {
		border-bottom: none !important;
	}
	.ps-feature__content {
		text-align: center !important;
		align-items: center !important;
		display: flex !important;
		flex-direction: column !important;
	}
	.ps-feature__title {
		font-size: 0.95em !important;
		font-weight: 700 !important;
		line-height: 1.3 !important;
		text-align: center !important;
		color: #1e293b !important;
	}
	.ps-feature__subtitle {
		font-size: 0.82em !important;
		line-height: 1.3 !important;
		text-align: center !important;
		margin-top: 3px !important;
		color: #64748b !important;
	}
	.ps-feature__icon {
		margin-bottom: 2px !important;
	}
	.ps-feature__icon svg {
		width: 32px !important;
		height: 32px !important;
	}

	.ps-promo-banners-grid {
		grid-template-columns: 1fr !important;
		gap: 20px;
	}
	.ps-promo-col--1-1,
	.ps-promo-col--2-3,
	.ps-promo-col--1-2,
	.ps-promo-col--1-3,
	.ps-promo-col--1-4 {
		grid-column: span 1 !important;
	}
	.ps-welcome-title {
		font-size: 1.45em;
	}
}

/* Homepage product sections — break out of Storefront's centered .col-full so the background spans the full viewport width */
.ps-home-products {
	width: 100vw;
	position: relative;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	padding: 40px 0;
	/* Plain by default. Position-based odd/even alternation used to set this
	   instead, which silently changed meaning depending on how many sections
	   happened to precede a given one on any given page (e.g. the same
	   "recently viewed" section got a different color on the homepage vs the
	   product page). Every call to template-parts/product-grid.php now
	   states its own background explicitly via the no_bg/colored_bg args
	   instead. */
	background: #ffffff;
}
.ps-home-products.ps-home-products--colored-bg {
	background: var(--ps-color-section-bg);
}
.ps-home-products__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}
.ps-home-products__title {
	font-family: var(--ps-font-heading, inherit);
	text-align: center;
	margin-bottom: 32px;
	font-size: 1.8em;
	font-weight: 700;
	color: #222222;
}
/* Pull the carousel nav arrows out into the section's own background instead
   of floating on top of the product cards/images. */
.ps-home-products__inner {
	position: relative;
}
/* Bare chevrons, no button/circle behind them — matches the reference design */
.ps-product-carousel .splide__track {
	overflow: hidden;
}
.ps-product-carousel:not(.is-initialized) .splide__list {
	display: flex;
	flex-wrap: nowrap;
	overflow: hidden;
	gap: 16px;
	padding: 0;
	margin: 0;
	list-style: none;
}
.ps-product-carousel:not(.is-initialized) .splide__slide {
	flex: 0 0 calc((100% - 48px) / 4);
	min-width: 220px;
	max-width: 280px;
	box-sizing: border-box;
}
.ps-product-carousel .splide__slide {
	box-sizing: border-box;
}
.ps-product-carousel .splide__arrow {
	background: none;
	border-radius: 0;
	box-shadow: none;
	opacity: 1;
	width: 44px;
	height: 44px;
}
.ps-product-carousel .splide__arrow svg {
	width: 28px;
	height: 28px;
}
/* With direction:'rtl' now correctly set in the JS config (see
   assets/carousels.js), Splide considers "prev" the right side and "next"
   the left (content flows right-to-left) — its own bundled CSS maps them
   that way. These pull them further out past the container's edge instead
   of Splide's default 1em inset; !important + explicit left/right on both
   properties because a fixed-width absolutely-positioned element under
   direction:rtl resolves an over-constrained left+right pair using right,
   not left, which was silently cancelling a left-only override. */
.ps-product-carousel .splide__arrow--prev {
	right: -55px !important;
	left: auto !important;
}
.ps-product-carousel .splide__arrow--next {
	left: -55px !important;
	right: auto !important;
}
@media (max-width: 1310px) {
	.ps-product-carousel .splide__arrow--prev {
		right: 6px !important;
	}
	.ps-product-carousel .splide__arrow--next {
		left: 6px !important;
	}
}
.ps-product-carousel .splide__arrow svg {
	fill: var(--ps-color-text);
}
.ps-product-carousel .splide__arrow:hover svg {
	fill: var(--ps-color-primary);
}
.ps-product-carousel:not(.is-overflow) .splide__arrows,
.ps-product-carousel .splide__arrow:disabled {
	display: none !important;
}
