/**
 * Dates Store Homepage styles.
 *
 * Loaded only on the front page (see functions.php -> woostify_child_front_page_assets()).
 * All section rules are scoped under .dates-home so other Woostify templates are untouched.
 *
 * Section styles are added per task (hero, banners, tabs, countdown, etc.).
 */

/* ------------------------------------------------------------------ *
 * Dates palette + design tokens (replaces the Shopify #ee2761 accent).
 * Tweak these to re-skin the whole homepage.
 * ------------------------------------------------------------------ */
:root {
	--dh-primary: #C77D35;
	/* amber / caramel  (was #ee2761) */
	--dh-primary-hover: #A3611F;
	--dh-dark: #3E2A20;
	/* deep date brown  (was #131313) */
	--dh-text: #4A3B32;
	--dh-bg: #ffffff;
	--dh-bg-soft: #FBF5EC;
	/* cream            (was #f7f8fc) */
	--dh-accent-2: #6B4226;
	--dh-rating: #E8A33D;
	--dh-radius: 3px;

	/* Layout + breakpoints (preserve the Shopify values). */
	--dh-container: 1200px;
	--dh-container-wide: 1530px;
	--dh-gutter: 30px;
	--dh-bp-mobile: 750px;
	--dh-bp-tablet: 990px;
}

/* ------------------------------------------------------------------ *
 * Homepage wrapper base. Kept minimal here; sections bring their own.
 * ------------------------------------------------------------------ */
.dates-home {
	color: var(--dh-text);
	background-color: var(--dh-bg);
}

.dates-home .dh-container {
	max-width: var(--dh-container);
	margin-inline: auto;
	padding-inline: var(--dh-gutter);
}

/* Shared button used across sections. */
.dates-home .dh-btn {
	display: inline-block;
	padding: 12px 26px;
	border-radius: var(--dh-radius);
	background-color: var(--dh-primary);
	color: #fff;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	border: 0;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.dates-home .dh-btn:hover,
.dates-home .dh-btn:focus {
	background-color: var(--dh-primary-hover);
	color: #fff;
}

/* ================================================================== *
 * 1. Hero slideshow
 * ================================================================== */
.dates-home .dh-hero {
	position: relative;
	/* Break out of Woostify's .container so the slider runs edge to edge. */
	width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

.dates-home .dh-hero__slider {
	position: relative;
	overflow: hidden;
}

.dates-home .dh-hero__slide {
	position: relative;
}

.dates-home .dh-hero__media {
	position: relative;
	width: 100%;
	aspect-ratio: 1920 / 800;
	background-color: var(--dh-bg-soft);
	overflow: hidden;
}

.dates-home .dh-hero__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
	/* Subtle Ken-Burns: zoomed by default, settles on the active slide. */
	transform: scale(1.05);
}

.dates-home .swiper-slide-active .dh-hero__image {
	transform: scale(1);
	transition: transform 2.5s ease;
}

/* Overlaid content ------------------------------------------------ */
.dates-home .dh-hero__content {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
}

.dates-home .dh-hero__container {
	width: 100%;
}

.dates-home .dh-hero__text {
	max-width: 540px;
	color: #fff;
}

.dates-home .dh-hero__content--center {
	justify-content: center;
	text-align: center;
}

.dates-home .dh-hero__content--center .dh-hero__text {
	margin-inline: auto;
}

.dates-home .dh-hero__content--right {
	justify-content: flex-end;
	text-align: right;
}

.dates-home .dh-hero__content--right .dh-hero__text {
	margin-left: auto;
}

.dates-home .dh-hero__subheading {
	display: block;
	font-size: 1.25rem;
	letter-spacing: 0.05em;
	color: var(--dh-primary);
	margin-bottom: 0.75rem;
}

.dates-home .dh-hero__heading {
	font-size: clamp(2rem, 5vw, 4rem);
	line-height: 1.1;
	margin: 0 0 1rem;
	color: var(--dh-dark);
}

.dates-home .dh-hero__desc {
	font-size: 1.05rem;
	line-height: 1.6;
	margin: 0 0 1.75rem;
	color: rgba(51, 51, 51, 0.75);
}

.dates-home .dh-hero__btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.dates-home .dh-hero__btn-icon {
	display: inline-flex;
}

.dates-home .dh-hero__btn-icon svg {
	width: 18px;
	height: 18px;
}

/* Entrance animation on the active slide. */
.dates-home .dh-hero__slide .dh-hero__text>* {
	opacity: 0;
}

.dates-home .swiper-slide-active .dh-hero__text>* {
	animation: dhHeroFadeInDown 1.2s both;
}

.dates-home .swiper-slide-active .dh-hero__subheading {
	animation-delay: 0.3s;
}

.dates-home .swiper-slide-active .dh-hero__heading {
	animation-delay: 0.5s;
}

.dates-home .swiper-slide-active .dh-hero__desc {
	animation-delay: 0.7s;
}

.dates-home .swiper-slide-active .dh-hero__btn {
	animation-delay: 0.9s;
}

@keyframes dhHeroFadeInDown {
	from {
		opacity: 0;
		transform: translateY(-20px);
	}

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

/* Pagination ------------------------------------------------------ */
.dates-home .dh-hero__pagination.swiper-pagination {
	bottom: 20px;
}

.dates-home .dh-hero__pagination .swiper-pagination-bullet {
	width: 12px;
	height: 12px;
	background: transparent;
	border: 2px solid rgba(255, 255, 255, 0.7);
	opacity: 1;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.dates-home .dh-hero__pagination .swiper-pagination-bullet-active {
	background: var(--dh-primary);
	border-color: var(--dh-primary);
}

/* Navigation ------------------------------------------------------ */
.dates-home .dh-hero__nav {
	width: 46px;
	height: 46px;
	margin-top: -23px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.9);
	color: var(--dh-dark);
	border: 0;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, background-color 0.2s ease;
}

.dates-home .dh-hero__slider:hover .dh-hero__nav {
	opacity: 1;
	visibility: visible;
}

.dates-home .dh-hero__nav:hover {
	background: var(--dh-primary);
	color: #fff;
}

.dates-home .dh-hero__nav::after {
	display: none;
	/* Hide Swiper's default glyph; we use inline SVGs. */
}

.dates-home .dh-hero__nav svg {
	width: 22px;
	height: 22px;
}

/* Space the desktop overlay arrows away from the true edges. */
.dates-home .dh-hero__nav.swiper-button-prev {
	left: 20px;
}

.dates-home .dh-hero__nav.swiper-button-next {
	right: 20px;
}

@media only screen and (min-width: 990px) {
	.dates-home .dh-hero__nav.swiper-button-prev {
		left: 32px;
	}

	.dates-home .dh-hero__nav.swiper-button-next {
		right: 32px;
	}
}

/* Mobile ---------------------------------------------------------- *
 * Requires the hero to be full-width (width: 100vw) so the "top: calc(100vw..)"
 * offset below lines the arrows up right under the image. See the full-width
 * CSS added separately for .dh-hero.
 * ------------------------------------------------------------------ */
@media only screen and (max-width: 749px) {
	.dates-home .dh-hero {
		margin-bottom: 4rem;
	}

	.dates-home .dh-hero__slide {
		display: flex;
		flex-direction: column;
	}

	.dates-home .dh-hero__media {
		aspect-ratio: 2 / 1;
	}

	/* Content flows below the image instead of overlaying it. */
	.dates-home .dh-hero__content {
		position: static;
		inset: auto;
		background: var(--dh-bg);
		padding: 32px 24px 8px;
		text-align: center;
		justify-content: center;
	}

	.dates-home .dh-hero__subheading,
	.dates-home .dh-hero__heading {
		color: var(--dh-dark);
	}

	.dates-home .dh-hero__desc {
		color: var(--dh-text);
	}

	.dates-home .dh-hero__text {
		margin-inline: auto;
	}

	/* Re-show the (existing) arrows, moved to sit just below the image
	   instead of overlaid on it. Uses the real Swiper prev/next buttons. */
	.dates-home .dh-hero__nav {
		display: flex;
		opacity: 1;
		visibility: visible;
		top: calc(50vw + 16px);
		margin-top: 0;
		width: 40px;
		height: 40px;
	}

	.dates-home .dh-hero__nav.swiper-button-prev {
		left: 16px;
	}

	.dates-home .dh-hero__nav.swiper-button-next {
		right: 16px;
	}

	/* Pagination dots at the very bottom of the slide. */
	.dates-home .dh-hero__pagination.swiper-pagination {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {

	.dates-home .dh-hero__image,
	.dates-home .swiper-slide-active .dh-hero__image,
	.dates-home .swiper-slide-active .dh-hero__text>* {
		animation: none !important;
		transition: none !important;
		transform: none !important;
		opacity: 1 !important;
	}
}

/* ================================================================== *
 * 2. Category banners (masonry)
 * ================================================================== */
.dates-home .dh-banners {
	padding: 60px 0;
}

.dates-home .dh-banners__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--dh-gutter);
}

.dates-home .dh-banner {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: var(--dh-radius);
	min-height: 240px;
	text-decoration: none;
	color: #fff;
	background-color: var(--dh-bg-soft);
	overflow: hidden;
	border-radius: 13px;
}

.dates-home .dh-banner__media {
	position: absolute;
	inset: 0;
}

.dates-home .dh-banner__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
	transition: transform 0.6s ease;
	border-radius: 13px;
}

.dates-home .dh-banner:hover .dh-banner__image,
.dates-home .dh-banner:focus-visible .dh-banner__image {
	transform: scale(1.06);
}

/* Readability overlay. */
.dates-home .dh-banner::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(62, 42, 32, 0) 30%, rgba(62, 42, 32, 0.7) 100%);
}

.dates-home .dh-banner__content {
	position: relative;
	z-index: 1;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-end;
	padding: 24px;
}

.dates-home .dh-banner__subheading {
	font-size: 0.85rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--dh-rating);
	margin-bottom: 6px;
}

.dates-home .dh-banner__heading {
	font-size: 1.6rem;
	line-height: 1.15;
	margin: 0 0 12px;
	color: #fff;
}

.dates-home .dh-banner__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
	color: #fff;
}

.dates-home .dh-banner__link-icon {
	display: inline-flex;
	transition: transform 0.2s ease;
}

.dates-home .dh-banner__link-icon svg {
	width: 18px;
	height: 18px;
}

.dates-home .dh-banner:hover .dh-banner__link-icon {
	transform: translateX(4px);
}

/* Masonry layout from the tablet breakpoint up. */
@media only screen and (min-width: 750px) {

	.dates-home .dh-banners__grid--2,
	.dates-home .dh-banners__grid--3,
	.dates-home .dh-banners__grid--4 {
		grid-template-columns: 1fr 1fr;
		grid-auto-rows: 240px;
	}

	/* First banner is the tall feature card. */
	.dates-home .dh-banners__grid--3 .dh-banner:first-child,
	.dates-home .dh-banners__grid--4 .dh-banner:first-child {
		grid-row: span 2;
		height: 100%;
	}

	.dates-home .dh-banner {
		min-height: 0;
	}
}

/* ================================================================== *
 * 3. Feature-icons row
 * ================================================================== */
.dates-home .dh-features {
	padding: 40px 0;
	background-color: var(--dh-bg-soft);
}

.dates-home .dh-features__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--dh-gutter);
}

.dates-home .dh-feature {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px;
	position: relative;
}

.dates-home .dh-feature:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 20%;
	right: calc(var(--dh-gutter) / 2 * -1);
	width: 1px;
	height: 60%;
	background: var(--dh-primary);
}

.dates-home .dh-feature__icon {
	flex-shrink: 0;
	width: 56px;
	height: 56px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--dh-primary);
}

.dates-home .dh-feature__icon svg,
.dates-home .dh-feature__icon img {
	width: 44px;
	height: 44px;
}

.dates-home .dh-feature__title {
	font-size: 1.05rem;
	margin: 0 0 4px;
	color: var(--dh-dark);
}

.dates-home .dh-feature__text {
	font-size: 0.9rem;
	line-height: 1.5;
	margin: 0;
	color: var(--dh-text);
}

/* Stack + center each feature on mobile. */
@media (max-width: 749px) {
	.dates-home .dh-features__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
	}

	.dates-home .dh-feature::after {
		display: none;
	}

	.dates-home .dh-feature:last-child {
		grid-column: 1 / -1;
	}
}

@media (max-width: 640px) {
	.dates-home .dh-features__grid {
		grid-template-columns: 1fr;
	}

	.dates-home .dh-feature:last-child {
		grid-column: auto;
	}
}

@media (prefers-reduced-motion: reduce) {

	.dates-home .dh-banner__image,
	.dates-home .dh-banner__link-icon {
		transition: none !important;
	}
}

/* ================================================================== *
 * 4. Scrolling-text marquee
 * ================================================================== */
.dates-home .dh-marquee {
	background-color: var(--dh-dark);
	color: var(--dh-bg-soft);
	padding: 22px 0;
}

.dates-home .dh-marquee__viewport {
	display: flex;
	align-items: center;
	overflow: hidden;
	width: 100%;
}

.dates-home .dh-marquee__track {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	width: max-content;
	will-change: transform;
}

/* Animation only runs once JS has built the seamless (doubled) track. */
.dates-home .dh-marquee__viewport.is-ready .dh-marquee__track {
	animation: dhMarqueeLeft var(--duration, 20s) linear infinite;
}

.dates-home .dh-marquee--right.is-ready .dh-marquee__track {
	animation-direction: reverse;
}

/* Pause on hover (pointer devices only). */
@media (hover: hover) {
	.dates-home .dh-marquee__viewport:hover .dh-marquee__track {
		animation-play-state: paused;
	}
}

.dates-home .dh-marquee__item {
	position: relative;
	flex: 0 0 auto;
	margin: 0 1.5rem;
	display: inline-flex;
	align-items: center;
}

@media only screen and (min-width: 750px) {
	.dates-home .dh-marquee__item {
		margin: 0 2.5rem;
	}
}

.dates-home .dh-marquee__text {
	white-space: nowrap;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: 0.01em;
	text-transform: uppercase;
}

/* Size steps. */
.dates-home .dh-marquee--sm .dh-marquee__text {
	font-size: 1.1rem;
}

.dates-home .dh-marquee--md .dh-marquee__text {
	font-size: 1.6rem;
}

.dates-home .dh-marquee--lg .dh-marquee__text {
	font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.dates-home .dh-marquee--xl .dh-marquee__text {
	font-size: clamp(2.4rem, 4.5vw, 3.6rem);
}

/* Bullet separator between items. */
.dates-home .dh-marquee__item--bullet::after {
	content: "";
	position: absolute;
	right: -1.5rem;
	top: 50%;
	transform: translateY(-50%);
	width: 0.6rem;
	height: 0.6rem;
	border-radius: 50%;
	background: currentColor;
	opacity: 0.7;
}

@media only screen and (min-width: 750px) {
	.dates-home .dh-marquee__item--bullet::after {
		right: -2.5rem;
	}
}

/* Outlined (stroke) text variant. */
@supports (-webkit-text-stroke: 1px currentColor) {
	.dates-home .dh-marquee__item--stroke .dh-marquee__text {
		color: transparent;
		-webkit-text-stroke-color: var(--dh-bg-soft);
		-webkit-text-stroke-width: 1px;
	}
}

@keyframes dhMarqueeLeft {
	from {
		transform: translate3d(0, 0, 0);
	}

	to {
		transform: translate3d(-50%, 0, 0);
	}
}

/* Reduced motion: no scrolling; show a centered, static row. */
@media (prefers-reduced-motion: reduce) {
	.dates-home .dh-marquee__viewport {
		justify-content: center;
	}

	.dates-home .dh-marquee__track {
		animation: none !important;
		width: auto;
		flex-wrap: wrap;
		justify-content: center;
	}
}

/* ================================================================== *
 * Shared: section heading + outline button
 * ================================================================== */
.dates-home .dh-section-heading {
	text-align: center;
	margin-bottom: 36px;
}

.dates-home .dh-section-heading__title {
	font-size: clamp(1.6rem, 3vw, 2.4rem);
	margin: 0 0 8px;
	color: var(--dh-dark);
}

.dates-home .dh-section-heading__title span {
	position: relative;
	display: inline-block;
	padding-bottom: 12px;
}

.dates-home .dh-section-heading__title span::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0;
	transform: translateX(-50%);
	width: 60px;
	height: 3px;
	border-radius: 3px;
	background: var(--dh-primary);
}

.dates-home .dh-section-heading__subtitle {
	margin: 0;
	color: var(--dh-text);
	font-size: 1rem;
}

.dates-home .dh-btn--outline {
	background: transparent;
	border: 1px solid var(--dh-primary);
	color: var(--dh-primary);
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.dates-home .dh-btn--outline:hover,
.dates-home .dh-btn--outline:focus {
	background: var(--dh-primary);
	color: #fff;
}

.dates-home .dh-btn__icon {
	display: inline-flex;
}

.dates-home .dh-btn__icon svg {
	width: 18px;
	height: 18px;
}

/* ================================================================== *
 * 5. Product tabs
 * ================================================================== */
.dates-home .dh-tabs {
	padding: 60px 0;
}

.dates-home .dh-tabs__nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 28px;
	margin-bottom: 32px;
}

.dates-home .dh-tabs__tab {
	background: none;
	border: 0;
	padding: 6px 4px;
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--dh-text);
	cursor: pointer;
	position: relative;
	transition: color 0.2s ease;
}

.dates-home .dh-tabs__tab::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 2px;
	background: var(--dh-primary);
	transform: scaleX(0);
	transition: transform 0.2s ease;
}

.dates-home .dh-tabs__tab:hover,
.dates-home .dh-tabs__tab.is-active {
	color: var(--dh-primary);
}

.dates-home .dh-tabs__tab.is-active::after {
	transform: scaleX(1);
}

.dates-home .dh-tabs__panel {
	display: none;
}

.dates-home .dh-tabs__panel.is-active {
	display: block;
	animation: dhFadeIn 0.4s ease;
}

@keyframes dhFadeIn {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

.dates-home .dh-tabs__viewall {
	text-align: center;
	margin-top: 48px;
}

.dates-home .dh-tabs__empty {
	text-align: center;
	color: var(--dh-text);
	padding: 30px 0;
}

/* ------------------------------------------------------------------ *
 * Responsive product grid: 2 / 3 / 4 / 5 columns
 * (mobile / tablet 750 / laptop 990 / desktop 1200)
 * ------------------------------------------------------------------ */
.dates-home .dh-product-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 14px;
}

@media only screen and (min-width: 750px) {
	.dates-home .dh-product-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 20px;
	}
}

@media only screen and (min-width: 990px) {
	.dates-home .dh-product-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

@media only screen and (min-width: 1200px) {
	.dates-home .dh-product-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

/* ================================================================== *
 * Product card
 * ================================================================== */
.dates-home .dh-product {
	border-radius: var(--dh-radius);
	height: 100%;
	display: flex;
	flex-direction: column;
}

.dates-home .dh-product-grid__item {
	border-radius: 10px;
	
	background: rgb(247,247,247,1);
	border: 1px solid rgb(230,230,230,1);
}

@media only screen and (min-width: 750px) {
	.dates-home .dh-product-grid__item {
		padding: 12px;
	}
}

.dates-home .dh-product__media {
	position: relative;
	overflow: hidden;
	border-radius: var(--dh-radius);
	background: var(--dh-bg-soft);
	aspect-ratio: 2 / 3;
}

.dates-home .dh-product__image-link {
	display: block;
	width: 100%;
	height: 100%;
}

.dates-home .dh-product__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: 10px;
}

.dates-home .dh-product__img--secondary {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 0.4s ease;
}

.dates-home .dh-product__media:hover .dh-product__img--secondary {
	opacity: 1;
}

/* Badges */
.dates-home .dh-product__badges {
	position: absolute;
	top: 10px;
	left: 10px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	z-index: 2;
}

.dates-home .dh-product__badge {
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #fff;
	padding: 4px 8px;
	border-radius: var(--dh-radius);
	background: var(--dh-primary);
	line-height: 1;
}

.dates-home .dh-product__badge--sale {
	background: var(--dh-primary);
}

.dates-home .dh-product__badge--featured {
	background: var(--dh-accent-2);
}

.dates-home .dh-product__badge--out {
	background: #8a8a8a;
}

/* Hover action icons */
.dates-home .dh-product__actions {
	position: absolute;
	top: 10px;
	right: 10px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	z-index: 2;
}

.dates-home .dh-product__action {
	width: 38px;
	height: 38px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: var(--dh-dark);
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
	opacity: 0;
	transform: translateX(12px);
	transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.2s ease, color 0.2s ease;
}

.dates-home .dh-product__action:nth-child(2) {
	transition-delay: 0.05s;
}

.dates-home .dh-product__action:nth-child(3) {
	transition-delay: 0.1s;
}

.dates-home .dh-product:hover .dh-product__action {
	opacity: 1;
	transform: translateX(0);
}

.dates-home .dh-product__action:hover {
	background: var(--dh-primary);
	color: #fff;
}

.dates-home .dh-product__action svg {
	width: 18px;
	height: 18px;
}

/* Info */
.dates-home .dh-product__info {
	padding: 14px 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}

@media only screen and (min-width: 750px) {
	.dates-home .dh-product__info {
		padding: 18px 8px 4px;
	}
}

.dates-home .dh-product__title {
	font-size: 1.1rem;
	line-height: 1.35;
	margin: 0;
	font-weight: 700;
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.dates-home .dh-product__title a {
	color: var(--dh-dark);
	text-decoration: none;
}

.dates-home .dh-product__title a:hover {
	color: var(--dh-primary);
}

.dates-home .dh-product__price {
	color: var(--dh-primary);
	font-weight: 700;
	font-size: 1rem;
}

.dates-home .dh-product__price del {
	color: var(--dh-text);
	font-weight: 400;
	opacity: 0.7;
	margin-right: 6px;
}

.dates-home .dh-product__price ins {
	text-decoration: none;
}

/* Add-to-cart (wraps the WooCommerce loop button as a pill). */
.dates-home .dh-product__cart {
	margin-top: auto;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: 1px solid var(--dh-primary);
	border-radius: var(--dh-radius);
	color: var(--dh-primary);
	transition: background-color 0.2s ease, color 0.2s ease;
}

.dates-home .dh-product__cart:hover {
	background: var(--dh-primary);
	color: #fff;
}

.dates-home .dh-product__cart-icon {
	display: inline-flex;
	padding-left: 12px;
}

.dates-home .dh-product__cart-icon svg {
	width: 18px;
	height: 18px;
}

.dates-home .dh-product__cart .button,
.dates-home .dh-product__cart a.button {
	background: transparent !important;
	color: inherit !important;
	border: 0 !important;
	box-shadow: none !important;
	padding: 10px 12px 10px 4px !important;
	margin: 0 !important;
	font-weight: 500;
	font-size: 0.9rem;
	text-decoration: none;
	cursor: pointer;
	min-width: 0;
	width: auto;
}

/* "View cart" link WooCommerce adds after an AJAX add. */
.dates-home .dh-product__cart .added_to_cart {
	padding: 0 12px 8px;
	font-size: 0.8rem;
	text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {

	.dates-home .dh-product__img--secondary,
	.dates-home .dh-product__action {
		transition: none !important;
	}
}

/* ================================================================== *
 * Star rating (CSS --dh-rating-value technique). Reused by testimonials.
 * ================================================================== */
.dates-home .dh-rating {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	line-height: 1;
}

.dates-home .dh-rating__stars {
	--dh-rating-value: 0;
	display: inline-block;
	font-size: 1.1rem;
	letter-spacing: 2px;
	line-height: 1;
	font-family: Times, serif;
}

.dates-home .dh-rating__stars::before {
	content: "\2605\2605\2605\2605\2605";
	background: linear-gradient(90deg,
			var(--dh-rating) calc(var(--dh-rating-value) / 5 * 100%),
			rgba(62, 42, 32, 0.18) calc(var(--dh-rating-value) / 5 * 100%));
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}

.dates-home .dh-rating__count {
	font-size: 0.8rem;
	color: var(--dh-text);
}

/* ================================================================== *
 * 6. "Deals Of The Day" countdown banner
 * ================================================================== */
.dates-home .dh-deals {
	position: relative;
	display: flex;
	align-items: center;
	overflow: hidden;
	min-height: 440px;
	padding: 60px 0;
	color: #fff;
}

.dates-home .dh-deals__media {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.dates-home .dh-deals__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

.dates-home .dh-deals__overlay {
	position: absolute;
	inset: 0;
	background: #1f140d;
}

.dates-home .dh-deals__container {
	position: relative;
	z-index: 1;
	width: 100%;
}

.dates-home .dh-deals__content {
	max-width: 560px;
}

/* Alignment variants. */
.dates-home .dh-deals--center .dh-deals__content {
	max-width: 640px;
	margin-inline: auto;
	text-align: center;
}

.dates-home .dh-deals--right .dh-deals__content {
	margin-left: auto;
	text-align: right;
}

.dates-home .dh-deals__subheading {
	display: block;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--dh-rating);
	font-weight: 600;
	margin-bottom: 10px;
}

.dates-home .dh-deals__heading {
	font-size: clamp(2rem, 4.5vw, 3.4rem);
	line-height: 1.1;
	margin: 0 0 14px;
	color: #fff;
}

.dates-home .dh-deals__text {
	color: rgba(255, 255, 255, 0.9);
	line-height: 1.6;
	margin-bottom: 24px;
}

.dates-home .dh-deals__text p {
	margin: 0;
}

/* Countdown boxes (shared .dh-countdown markup). */
.dates-home .dh-deals__timer {
	display: flex;
	gap: 12px;
	margin-bottom: 28px;
}

.dates-home .dh-deals--center .dh-deals__timer {
	justify-content: center;
}

.dates-home .dh-deals--right .dh-deals__timer {
	justify-content: flex-end;
}

.dates-home .dh-deals__timer .dh-countdown__item {
	min-width: 74px;
	padding: 12px 8px;
	text-align: center;
	background: var(--dh-bg-soft);
	color: var(--dh-dark);
	border-radius: var(--dh-radius);
	line-height: 1.1;
}

.dates-home .dh-deals__timer .dh-countdown__number {
	display: block;
	font-size: 1.9rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: var(--dh-primary);
}

.dates-home .dh-deals__timer .dh-countdown__text {
	display: block;
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-top: 4px;
}

.dates-home .dh-deals__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

/* Mobile: center + condense. */
@media only screen and (max-width: 749px) {
	.dates-home .dh-deals {
		min-height: 0;
		text-align: center;
	}

	.dates-home .dh-deals__content {
		margin-inline: auto;
		text-align: center;
	}

	.dates-home .dh-deals__timer {
		justify-content: center;
		flex-wrap: wrap;
	}

	.dates-home .dh-deals__timer .dh-countdown__item {
		min-width: 62px;
		padding: 10px 6px;
	}

	.dates-home .dh-deals__timer .dh-countdown__number {
		font-size: 1.5rem;
	}
}

/* ================================================================== *
 * 7. Top Categories (circular slider)
 * ================================================================== */
.dates-home .dh-cats {
	padding: 60px 0;
	background-color: var(--dh-bg-soft);
}

.dates-home .dh-cats__slider {
	position: relative;
	padding: 0 10px 40px;
}

.dates-home .dh-cats__slide {
	height: auto;
}

.dates-home .dh-cat {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	text-decoration: none;
	color: var(--dh-dark);
	gap: 10px;
}

.dates-home .dh-cat__media {
	display: block;
	width: 100%;
	max-width: 190px;
	aspect-ratio: 1 / 1;
	border-radius: 50%;
	overflow: hidden;
	background: var(--dh-bg);
	border: 4px solid var(--dh-bg);
	box-shadow: 0 4px 16px rgba(62, 42, 32, 0.12);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dates-home .dh-cat__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.dates-home .dh-cat:hover .dh-cat__media,
.dates-home .dh-cat:focus-visible .dh-cat__media {
	transform: translateY(-4px);
	box-shadow: 0 10px 24px rgba(62, 42, 32, 0.2);
}

.dates-home .dh-cat__name {
	font-weight: 600;
	font-size: 1.05rem;
	color: var(--dh-dark);
	transition: color 0.2s ease;
}

.dates-home .dh-cat:hover .dh-cat__name {
	color: var(--dh-primary);
}

.dates-home .dh-cat__count {
	font-size: 0.85rem;
	color: var(--dh-text);
}

/* Pagination + nav (reuse hero-style circular buttons). */
.dates-home .dh-cats__pagination.swiper-pagination {
	bottom: 0;
}

.dates-home .dh-cats__pagination .swiper-pagination-bullet {
	background: rgba(62, 42, 32, 0.25);
	opacity: 1;
}

.dates-home .dh-cats__pagination .swiper-pagination-bullet-active {
	background: var(--dh-primary);
}

.dates-home .dh-cats__nav {
	width: 42px;
	height: 42px;
	margin-top: -30px;
	border-radius: 50%;
	background: var(--dh-bg);
	color: var(--dh-dark);
	border: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
	transition: background-color 0.2s ease, color 0.2s ease;
}

.dates-home .dh-cats__nav::after {
	display: none;
}

.dates-home .dh-cats__nav:hover {
	background: var(--dh-primary);
	color: #fff;
}

.dates-home .dh-cats__nav svg {
	width: 20px;
	height: 20px;
}

@media only screen and (max-width: 749px) {
	.dates-home .dh-cats__nav {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dates-home .dh-cat__media {
		transition: none !important;
	}
}

/* ================================================================== *
 * 8. Recent Products (static grid, reuses .dh-product-grid + card)
 * ================================================================== */
.dates-home .dh-recent {
	padding: 60px 0;
}

.dates-home .dh-recent__viewall {
	text-align: center;
	margin-top: 32px;
}

/* ================================================================== *
 * 9. Customer Feedback (testimonials slider)
 * ================================================================== */
.dates-home .dh-testimonials {
	padding: 60px 0;
	background-color: var(--dh-bg-soft);
}

.dates-home .dh-testimonials__slider {
	padding-bottom: 44px;
}

.dates-home .dh-testimonials__slide {
	height: auto;
}

.dates-home .dh-testimonial {
	position: relative;
	height: 100%;
	margin: 0;
	padding: 28px 24px 24px;
	background: var(--dh-bg);
	border-radius: var(--dh-radius);
	box-shadow: 0 4px 18px rgba(62, 42, 32, 0.08);
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.dates-home .dh-testimonial__chat {
	position: absolute;
	top: 20px;
	right: 20px;
	color: var(--dh-primary);
	opacity: 0.25;
}

.dates-home .dh-testimonial__chat svg {
	width: 40px;
	height: 40px;
}

.dates-home .dh-testimonial .dh-rating__stars {
	font-size: 1.05rem;
}

.dates-home .dh-testimonial__quote {
	margin: 0;
	font-size: 1rem;
	line-height: 1.7;
	color: var(--dh-text);
	quotes: none;
	flex: 1;
}

.dates-home .dh-testimonial__author {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 4px;
}

.dates-home .dh-testimonial__avatar {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	background: var(--dh-bg-soft);
}

.dates-home .dh-testimonial__meta {
	display: flex;
	flex-direction: column;
	line-height: 1.3;
}

.dates-home .dh-testimonial__name {
	font-weight: 700;
	color: var(--dh-dark);
}

.dates-home .dh-testimonial__role {
	font-size: 0.85rem;
	color: var(--dh-text);
}

.dates-home .dh-testimonials__pagination.swiper-pagination {
	bottom: 0;
}

.dates-home .dh-testimonials__pagination .swiper-pagination-bullet {
	background: rgba(62, 42, 32, 0.25);
	opacity: 1;
}

.dates-home .dh-testimonials__pagination .swiper-pagination-bullet-active {
	background: var(--dh-primary);
}

/* ================================================================== *
 * 10. Latest Blog (post slider)
 * ================================================================== */
.dates-home .dh-blog {
	padding: 60px 0;
}

.dates-home .dh-blog__slider {
	padding-bottom: 44px;
}

.dates-home .dh-blog__slide {
	height: auto;
}

.dates-home .dh-article {
	height: 100%;
	display: flex;
	flex-direction: column;
	background: var(--dh-bg);
	border-radius: var(--dh-radius);
	overflow: hidden;
	box-shadow: 0 4px 18px rgba(62, 42, 32, 0.08);
}

.dates-home .dh-article__media {
	display: block;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: var(--dh-bg-soft);
}

.dates-home .dh-article__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.5s ease;
}

.dates-home .dh-article__media:hover .dh-article__img {
	transform: scale(1.05);
}

.dates-home .dh-article__body {
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
}

.dates-home .dh-article__date {
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--dh-primary);
	font-weight: 600;
}

.dates-home .dh-article__title {
	font-size: 1.15rem;
	line-height: 1.35;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.dates-home .dh-article__title a {
	color: var(--dh-dark);
	text-decoration: none;
}

.dates-home .dh-article__title a:hover {
	color: var(--dh-primary);
}

.dates-home .dh-article__more {
	margin-top: auto;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--dh-primary);
	font-weight: 600;
	text-decoration: none;
}

.dates-home .dh-article__more:hover {
	color: var(--dh-primary-hover);
}

.dates-home .dh-article__more .dh-btn__icon svg {
	width: 16px;
	height: 16px;
	transition: transform 0.2s ease;
}

.dates-home .dh-article__more:hover .dh-btn__icon svg {
	transform: translateX(4px);
}

.dates-home .dh-blog__viewall {
	text-align: center;
	margin-top: 32px;
}

.dates-home .dh-blog__pagination.swiper-pagination {
	bottom: 0;
}

.dates-home .dh-blog__pagination .swiper-pagination-bullet {
	background: rgba(62, 42, 32, 0.25);
	opacity: 1;
}

.dates-home .dh-blog__pagination .swiper-pagination-bullet-active {
	background: var(--dh-primary);
}

@media (prefers-reduced-motion: reduce) {

	.dates-home .dh-article__img,
	.dates-home .dh-article__more .dh-btn__icon svg {
		transition: none !important;
	}
}

.site-header-inner {
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
}

.site-header-inner .woostify-container {
	min-height: 80px !important;
	margin-top: 2px !important;
	margin-bottom: 4px !important;
}

.site-content {
	margin-top: 0 !important;
}

.dates-home .dh-banners,
.dates-home .dh-features,
.dates-home .dh-tabs,
.dates-home .dh-deals,
.dates-home .dh-cats,
.dates-home .dh-testimonials,
.dates-home .dh-blog,
.dates-home .dh-recent,
.dates-home .dh-marquee {
	width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	margin-bottom: 2rem;
}

.dates-home .dh-btn,
.dates-home .dh-btn--outline {
	border-radius: 999px;
	padding: 14px 30px;
}

/* .dates-home .dh-product__cart {
	border-radius: 999px;
} */

.dates-home .dh-product__cart .added_to_cart {
	display: none !important;
}

.dates-home .dh-product__cart .button::before,
.dates-home .dh-product__cart .button::after {
	display: none !important;
}

.dates-home .dh-product__media {
	position: relative;
	overflow: hidden;
	border-radius: 2px;
	background: var(--dh-bg-soft);
	aspect-ratio: 1 / 1;
}

.dates-home .dh-product__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.dates-home .dh-product__img--secondary {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity .4s;
}

.dates-home .dh-product__media:hover .dh-product__img--secondary {
	opacity: 1;
}

/* Green % badge, top-left */
.dates-home .dh-product__badges {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.dates-home .dh-product__badge--sale {
	background: #039950;
	color: #fff;
	font-weight: 500;
	font-size: .8rem;
	padding: 4px 10px;
	border-radius: 0 6px;
	border: 1px solid transparent;
	border-color: rgba(255, 255, 255, 0.1);
}

.dates-home .dh-product__badge--out {
	background: #8a8a8a;
	color: #fff;
	padding: 5px 10px;
	border-radius: 6px;
}

/* Square action icons, top-right, appear on hover */
.dates-home .dh-product__actions {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.dates-home .dh-product__action {
	width: 40px;
	height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	color: var(--dh-dark);
	border: 1px solid #eee;
	border-radius: 50%;
	cursor: pointer;
	opacity: 0;
	transform: translateX(12px);
	transition: opacity .25s, transform .25s, background-color .2s, color .2s;
}

.dates-home .dh-product__action:nth-child(2) {
	transition-delay: .05s;
}

.dates-home .dh-product__action:nth-child(3) {
	transition-delay: .1s;
}

.dates-home .dh-product:hover .dh-product__action {
	opacity: 1;
	transform: translateX(0);
}

.dates-home .dh-product__action:hover {
	background: var(--dh-primary);
	color: #fff;
	border-color: var(--dh-primary);
}

.dates-home .dh-product__action svg {
	width: 18px;
	height: 18px;
}

/* Add-to-cart bar sliding up from bottom of image on hover */
.dates-home .dh-product__cart {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	background: var(--dh-primary);
	text-align: center;
	transform: translateY(100%);
	transition: transform .3s ease;
}

.dates-home .dh-product__media:hover .dh-product__cart {
	transform: translateY(0);
}

.dates-home .dh-product__cart .button,
.dates-home .dh-product__cart a.button {
	display: flex !important;
	justify-content: center !important;
	gap: 8px !important;
	width: 100% !important;
	margin: 0 !important;
	background: transparent !important;
	color: #fff !important;
	border: 0 !important;
	box-shadow: none !important;
	padding: 8px !important;
	font-weight: 400 !important;
	font-size: 0.9rem !important;
	border-radius: 0 !important;
}

.dates-home .dh-product__cart .button:hover {
	background: var(--dh-primary-hover) !important;
}

/* When item is added: hide the "Add to cart" button, show the "View cart" link
   in its place — same design, no layout change, no double-adding. */
.dates-home .dh-product__cart .button.added {
	display: none !important;
}

.dates-home .dh-product__cart .added_to_cart {
	display: flex !important;
	justify-content: center !important;
	gap: 8px !important;
	width: 100% !important;
	margin: 0 !important;
	background: transparent !important;
	color: #fff !important;
	border: 0 !important;
	box-shadow: none !important;
	padding: 8px !important;
	font-weight: 400 !important;
	font-size: 0.9rem !important;
	border-radius: 0 !important;
	text-decoration: none !important;
}

.dates-home .dh-product__cart .added_to_cart:hover {
	background: var(--dh-primary-hover) !important;
}

.dates-home .dh-product__price {
	font-weight: 700;
	color: var(--dh-dark);
}

.dates-home .dh-product__price del {
	color: #999;
	font-weight: 400;
	margin-right: 6px;
}

.dates-home .dh-product__price ins {
	text-decoration: none;
	color: var(--dh-dark);
}


/* ------------------------------------------------------------------ *
 * TI WooCommerce Wishlist integration — make plugin button match the
 * custom .dh-product__action icon style (icon-only, hidden until hover).
 * ------------------------------------------------------------------ */

/* Reset the plugin's outer wrapper div so it doesn't break the flex column. */
.dates-home .dh-product__actions .tinv-wraper {
	all: unset;
	display: contents;
	/* transparent to flex layout — acts as if it isn't there */
}

/* Style the plugin's <a> anchor exactly like .dh-product__action — square, 40×40. */
.dates-home .dh-product__actions .tinv-wishlist a.tinvwl_add_to_wishlist_button {
	width: 40px !important;
	height: 40px !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	text-align: center !important;
	border: 1px solid #eee !important;
	border-radius: 50% !important;
	background: #fff !important;
	color: var(--dh-dark) !important;
	cursor: pointer;
	box-shadow: none !important;
	opacity: 0;
	transform: translateX(12px);
	transition: opacity .25s, transform .25s, background-color .2s, color .2s;
	text-decoration: none !important;
	padding: 0 !important;
	margin: 0 !important;
	line-height: 1 !important;
	box-sizing: border-box !important;
}

/* Reveal on parent card hover — same as .dh-product__action. */
.dates-home .dh-product:hover .dh-product__actions .tinv-wishlist a.tinvwl_add_to_wishlist_button {
	opacity: 1;
	transform: translateX(0);
}

/* Hover colour — matches .dh-product__action:hover. */
.dates-home .dh-product__actions .tinv-wishlist a.tinvwl_add_to_wishlist_button:hover {
	background: var(--dh-primary) !important;
	color: #fff !important;
	border-color: var(--dh-primary) !important;
}

/* Strip default plugin margins/paddings from pseudo elements that cause off-center icons */
.dates-home .dh-product__actions .tinv-wishlist a.tinvwl_add_to_wishlist_button,
.dates-home .dh-product__actions .tinv-wishlist a.tinvwl_add_to_wishlist_button i,
.dates-home .dh-product__actions .tinv-wishlist a.tinvwl_add_to_wishlist_button i::before,
.dates-home .dh-product__actions .tinv-wishlist a.tinvwl_add_to_wishlist_button::before,
.dates-home .dh-product__actions .tinv-wishlist a.tinvwl_add_to_wishlist_button i::after,
.dates-home .dh-product__actions .tinv-wishlist a.tinvwl_add_to_wishlist_button::after {
	margin: 0 !important;
	padding: 0 !important;
	letter-spacing: normal !important;
	word-spacing: normal !important;
}

/* Perfectly center the plugin's webfont glyph inside the square button. */
.dates-home .dh-product__actions .tinv-wishlist a.tinvwl_add_to_wishlist_button i.ftinvwl,
.dates-home .dh-product__actions .tinv-wishlist a.tinvwl_add_to_wishlist_button::before,
.dates-home .dh-product__actions .tinv-wishlist a.tinvwl_add_to_wishlist_button i::before {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	font-size: 18px !important;
	line-height: 1 !important;
	vertical-align: middle !important;
	width: auto !important;
	height: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	position: static !important;
}

/* Hide the "Add to wishlist" text label — icon only. */
.dates-home .dh-product__actions .tinv-wishlist a.tinvwl_add_to_wishlist_button .tinvwl_add_to_wishlist-text,
.dates-home .dh-product__actions .tinv-wishlist a.tinvwl_add_to_wishlist_button .tinvwl_remove_from_wishlist-text,
.dates-home .dh-product__actions .tinv-wishlist a.tinvwl_add_to_wishlist_button span:not(.tinvwl-icon) {
	display: none !important;
}

/* Hide the plugin's own tooltip div (we rely on the icon + aria-label). */
.dates-home .dh-product__actions .tinvwl-tooltip {
	display: none !important;
}

/* Hide the "added to wishlist" dialog popup inside the actions panel. */
.dates-home .dh-product__actions .tinv-wishlist-clear,
.dates-home .dh-product__actions .tinv-wishlists-dialog-wraper {
	display: none !important;
}

/* ------------------------------------------------------------------ *
 * Mobile cart icon button
 *
 * Desktop: hidden — the image slide-up bar handles add-to-cart.
 * Mobile (<750px): an outline-style icon button appears below the price.
 *   - Normal state:  transparent bg, primary-colour border + icon.
 *   - Pressed state: fills to primary bg (tactile feedback).
 *   - Added state:   CSS :has(.added) fills the icon permanently until
 *                   the page refreshes — no "View cart" text shown.
 *   - The WC AJAX button is invisible on top; the "View cart" link it
 *     injects (.added_to_cart) is also hidden.
 * ------------------------------------------------------------------ */

/* Hidden on desktop — image cart bar is used there. */
.dates-home .dh-product__mobile-cart {
	display: none;
}

/* ---- Mobile layout (<750px) ---- */
@media only screen and (max-width: 749px) {

	/* Hide the image hover cart bar (no reliable hover on touch). */
	.dates-home .dh-product__cart {
		display: none !important;
	}

	/* ---- Mobile cart icon button ---- */
	.dates-home .dh-product__mobile-cart {
		display: block;
		position: relative;
		width: 32px;
		height: 32px;
		margin-top: 4px auto 0;
		transition: background 0.18s ease, color 0.18s ease, transform 0.12s ease;
	}
		
	.dates-home .dh-product__mobile-cart:hover {
		background: #444;
		color: #fff!important;
		border: none;
		border-radius: 4px;
		overflow: hidden;
	}

	/* Visible outline face of the button. */
	.dates-home .dh-product__mobile-cart-icon {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 32px;
		height: 32px;
		border-radius: 4px;
		border: 1px solid rgb(220,200,220,1);
		transition: background 0.18s ease, color 0.18s ease, transform 0.12s ease;
		pointer-events: none;
		/* clicks pass through to the WC button above */
		box-sizing: border-box;
	}

	.dates-home .dh-product__mobile-cart-icon svg {
		width: 14px;
		height: 14px;
		flex-shrink: 0;
	}

	/* Press feedback — fills the icon momentarily on tap. */
	.dates-home .dh-product__mobile-cart:active .dh-product__mobile-cart-icon {
		transform: scale(0.88);
		background: var(--dh-primary);
		color: #ffffff;
	}

	/* "Added" state — icon fills with primary colour once item is in cart.
	   Uses CSS :has() (supported in all modern mobile browsers). */
	.dates-home .dh-product__mobile-cart:has(.added) .dh-product__mobile-cart-icon {
		background: var(--dh-primary);
		color: #ffffff;
		border-color: var(--dh-primary);
	}

	/* Invisible WC AJAX button — sits over the icon, captures the tap. */
	.dates-home .dh-product__mobile-cart .button,
	.dates-home .dh-product__mobile-cart a.button {
		position: absolute !important;
		inset: 0 !important;
		width: 100% !important;
		height: 100% !important;
		margin: 0 !important;
		padding: 0 !important;
		opacity: 0 !important;
		font-size: 0 !important;
		border: 0 !important;
		border-radius: 8px !important;
		background: transparent !important;
		box-shadow: none !important;
		cursor: pointer !important;
		z-index: 1 !important;
	}

	/* Hide the "View cart" link WooCommerce injects after AJAX add-to-cart.
	   The :has(.added) icon fill above already confirms the item was added. */
	.dates-home .dh-product__mobile-cart .added_to_cart {
		display: none !important;
	}

	/* Wishlist circular button — always visible on mobile (no hover needed). */
	.dates-home .dh-product__actions {
		top: 10px !important;
		right: 10px !important;
	}

	.dates-home .dh-product__actions .tinv-wishlist a.tinvwl_add_to_wishlist_button,
	.dates-home .dh-product__action--wishlist {
		opacity: 1 !important;
		transform: none !important;
		width: 40px !important;
		height: 40px !important;
		border-radius: 50% !important;
		background: #ffffff !important;
		border: 0 !important;
		box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12) !important;
		color: var(--dh-dark) !important;
	}

	.dates-home .dh-product__actions .tinv-wishlist a.tinvwl_add_to_wishlist_button:hover,
	.dates-home .dh-product__action--wishlist:hover {
		background: var(--dh-primary) !important;
		color: #ffffff !important;
	}
}

/* Ends here */