/*
 * Ecommoda Child Theme - Component Styles
 * Reusable UI component styles (product cards, buttons, etc.).
 */

/* Announcement bar */

.ecommoda-announcement-bar {
	background-color: var(--ecm-color-accent);
	color: var(--ecm-color-button-text);
}

.ecommoda-announcement-bar__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 45px;
	padding: 5px 10px;
	text-align: center;
}

.ecommoda-announcement-bar__text {
	margin: 0;
	font-size: 12px;
	letter-spacing: 0.02em;
}

.ecommoda-marquee {
	width: 100%;
	overflow: hidden;
}

.ecommoda-marquee:hover .ecommoda-marquee__track {
	animation-play-state: paused;
}

.ecommoda-marquee__track {
	display: flex;
	align-items: center;
	width: max-content;
	animation: ecommoda-marquee-scroll 120s linear infinite;
}

.ecommoda-marquee__item {
	display: inline-flex;
	align-items: center;
	white-space: nowrap;
	color: var(--ecm-color-button-text);
	font-size: 12px;
	letter-spacing: 0.02em;
}

.ecommoda-marquee__item strong {
	font-size: 14px;
	font-weight: 600;
}

.ecommoda-marquee__emoji {
	margin-left: 6px;
}

.ecommoda-marquee__sep {
	margin: 0 32px;
	color: var(--ecm-color-button-text);
	opacity: 0.6;
	font-size: 12px;
}

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

@media (prefers-reduced-motion: reduce) {
	.ecommoda-marquee__track {
		animation: none;
	}
}

/* Header */

.ecommoda-header {
	position: sticky;
	top: 0;
	z-index: var(--ecm-z-sticky-header);
	background-color: var(--ecm-color-body-bg);
	border-bottom: 1px solid var(--ecm-color-border);
}

.ecommoda-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--ecm-space-md);
	min-height: 90px;
}

/* Desktop-only: the header spans the full viewport (not the 1420px content
   container) with its own horizontal padding, and the nav is true-centered
   in the viewport via a 3-column grid rather than flex space-between, so it
   isn't skewed by unequal logo/actions widths. Scoped to min-width so the
   mobile header shell (built separately) is unaffected. */
@media (min-width: 1025px) {
	.ecommoda-header__inner {
		display: grid;
		grid-template-columns: 1fr auto 1fr;
		min-height: 70px;
		width: 100%;
		max-width: 100%;
		margin-left: 0;
		margin-right: 0;
		padding-left: 40px;
		padding-right: 40px;
	}
}

.ecommoda-header__menu-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	background: none;
	border: 0;
	padding: var(--ecm-space-xs);
	color: var(--ecm-color-heading);
	cursor: pointer;
}

.ecommoda-header__logo {
	line-height: 1;
	justify-self: start;
}

.ecommoda-header__logo img {
	display: block;
	width: 95px;
	height: auto;
	max-width: 100%;
}

.ecommoda-header__logo-text {
	display: inline-block;
	font-family: var(--ecm-font-heading);
	font-weight: 700;
	font-size: 22px;
	letter-spacing: 0.02em;
	color: var(--ecm-color-heading);
	text-decoration: none;
}

.ecommoda-header__nav {
	flex: 1;
	display: flex;
	justify-content: center;
	min-width: 0;
}

.ecommoda-nav__list {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ecommoda-nav__list a {
	display: block;
	padding: 5px 17.5px;
	color: var(--ecm-color-heading);
	font-size: 17px;
	font-weight: 500;
}

.ecommoda-nav__list a:hover,
.ecommoda-nav__list a:focus {
	color: var(--ecm-color-accent);
}

.ecommoda-header__actions {
	display: flex;
	align-items: center;
	justify-self: end;
	gap: var(--ecm-space-sm);
}

.ecommoda-header__action {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	background: none;
	border: 0;
	color: var(--ecm-color-heading);
	cursor: pointer;
	transition: color var(--ecm-transition-fast);
}

.ecommoda-header__action:hover,
.ecommoda-header__action:focus {
	color: var(--ecm-color-accent);
}

.ecommoda-header__cart-count {
	position: absolute;
	top: 0;
	right: 0;
	min-width: 16px;
	height: 16px;
	padding: 0 3px;
	border-radius: var(--ecm-radius-full);
	background-color: var(--ecm-color-accent);
	color: var(--ecm-color-button-text);
	font-size: 10px;
	line-height: 16px;
	text-align: center;
}

.ecommoda-header__wishlist-count {
	position: absolute;
	top: 0;
	right: 0;
	min-width: 16px;
	height: 16px;
	padding: 0 3px;
	border-radius: var(--ecm-radius-full);
	background-color: var(--ecm-color-accent);
	color: var(--ecm-color-button-text);
	font-size: 10px;
	line-height: 16px;
	text-align: center;
}

/* Desktop-only action group tuning: Account moves to mobile-only (handled
   separately later), and the remaining Search/Wishlist/Cart icons are
   enlarged to match the reference. Scoped so mobile actions are untouched. */
@media (min-width: 1025px) {
	.ecommoda-header__action--account {
		display: none;
	}

	.ecommoda-header__search-toggle svg {
		width: 22px;
		height: 22px;
	}

	.ecommoda-header__action--wishlist svg {
		width: 22px;
		height: 22px;
	}

	.ecommoda-header__cart svg {
		width: 20px;
		height: 20px;
	}
}

/* Shop dropdown (desktop only — hidden along with the rest of the nav
   below 1024px in responsive.css) */

.ecommoda-nav__item--shop {
	position: relative;
	display: flex;
	align-items: center;
	align-self: stretch;
}

.ecommoda-nav__shop-trigger {
	display: flex;
	align-items: center;
}

.ecommoda-nav__shop-trigger svg {
	width: 8px;
	height: 8px;
	margin-inline-start: 4px;
	opacity: 0.8;
}

.ecommoda-shop-dropdown {
	position: absolute;
	top: 100%;
	left: 50%;
	width: 375px;
	background-color: var(--ecm-color-body-bg);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	border-radius: 0;
	opacity: 0;
	visibility: hidden;
	transform: translateX(-50%) translateY(4px);
	transition: opacity var(--ecm-transition-fast), transform var(--ecm-transition-fast), visibility var(--ecm-transition-fast);
	z-index: var(--ecm-z-dropdown);
}

.ecommoda-nav__item--shop:hover > .ecommoda-shop-dropdown,
.ecommoda-nav__item--shop:focus-within > .ecommoda-shop-dropdown {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(0);
}

.ecommoda-shop-dropdown__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ecommoda-shop-dropdown__item {
	position: relative;
}

.ecommoda-shop-dropdown__item > a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 63px;
	padding: 0 24px;
	color: var(--ecm-color-heading);
	font-family: var(--ecm-font-body);
	font-size: 21px;
	font-weight: 400;
}

.ecommoda-shop-dropdown__item > a:hover,
.ecommoda-shop-dropdown__item > a:focus,
.ecommoda-shop-dropdown__item.has-submenu:hover > a,
.ecommoda-shop-dropdown__item.has-submenu:focus-within > a {
	color: var(--ecm-color-link-hover);
}

.ecommoda-shop-dropdown__item svg {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
}

/* Optional product-count badge — absent from the markup entirely unless the
   "Ecommoda Header" widget's Show Product Count control is enabled. */
.ecommoda-shop-dropdown__count {
	margin-left: 4px;
	color: var(--ecm-color-text-light, #767676);
	font-size: 0.75em;
	font-weight: 400;
}

.ecommoda-shop-submenu {
	position: absolute;
	top: 17px;
	right: 100%;
	width: 386px;
	background-color: var(--ecm-color-body-bg);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	border-radius: 0;
	opacity: 0;
	visibility: hidden;
	transform: translateX(4px);
	transition: opacity var(--ecm-transition-fast), transform var(--ecm-transition-fast), visibility var(--ecm-transition-fast);
}

.ecommoda-shop-dropdown__item.has-submenu:hover > .ecommoda-shop-submenu,
.ecommoda-shop-dropdown__item.has-submenu:focus-within > .ecommoda-shop-submenu {
	opacity: 1;
	visibility: visible;
	transform: translateX(0);
}

.ecommoda-shop-submenu__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ecommoda-shop-submenu__list a {
	display: flex;
	align-items: center;
	height: 52px;
	padding: 0 24px;
	color: var(--ecm-color-heading);
	font-family: var(--ecm-font-body);
	font-size: 21px;
}

.ecommoda-shop-submenu__list a:hover,
.ecommoda-shop-submenu__list a:focus {
	color: var(--ecm-color-link-hover);
}

.ecommoda-nav__item--shop > .ecommoda-nav__shop-trigger {
    display: flex;
    align-items: center;
}

/* Homepage hero slider */

.ecommoda-hero {
	position: relative;
	width: 100%;
	overflow: hidden;
	background-color: var(--ecm-color-heading);
}

.ecommoda-hero__track {
	position: relative;
	width: 100%;
	/* Exact reference value (inline --aspect-ratioapt:2.4 on the live
	   slideshow), confirmed by fetching the real desktop source files
	   directly (2000×833). Not derived from the mobile 1760×1200 crop. */
	aspect-ratio: 2.4 / 1;
	overflow: hidden;
}

.ecommoda-hero__slide {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.6s ease, visibility 0.6s ease;
}

.ecommoda-hero__slide.is-active {
	opacity: 1;
	visibility: visible;
	z-index: 1;
}

/* The desktop (2000×833, 2.4:1) and mobile (1760×1200, ~1.4667:1) sources
   are art-directed via <picture> to each exactly match their track's
   aspect-ratio at that breakpoint, so no object-fit cropping is needed —
   width/height:100% alone renders each source at its own correct scale. */
.ecommoda-hero__media {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

/* Optional overlay layer (Elementor-editable, transparent/inert by default —
   no rule here changes anything until a color is actually set via the
   "Ecommoda Hero Slider" widget's Overlay Color control). */
.ecommoda-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background-color: transparent;
	pointer-events: none;
}

.ecommoda-hero__content {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	color: #fff;
}

/* Position/alignment/color match each reference slide's own inline
   --p-left/--p-top/text-color values exactly, not a shared layout. */

/* Slide 3: left:5%; top:50%; transform:translate(-5%,-50%); text-align:left */
.ecommoda-hero__content--left {
	inset: auto;
	top: 50%;
	left: 5%;
	transform: translate(-5%, -50%);
	align-items: flex-start;
	max-width: 480px;
	padding: 15px;
	color: #000000;
	text-align: left;
}

/* Slide 2: left:50%; top:50%; transform:translate(-50%,-50%); text-align:center */
.ecommoda-hero__content--center {
	inset: auto;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	align-items: center;
	max-width: 520px;
	padding: 15px;
	color: #000000;
	text-align: center;
}

/* Slide 1: left/start aligned, ~4% from bottom, no heading (baked into image) */
.ecommoda-hero__content--bottom-left {
	align-items: flex-start;
	justify-content: flex-end;
	max-width: 480px;
	padding: 15px;
	padding-bottom: 4%;
	color: #fff;
	text-align: left;
}

.ecommoda-hero__heading {
	margin: 0 0 15px;
	color: inherit;
	font-size: 45px;
	font-weight: 700;
	line-height: 45px; /* slide 3's exact value; slide 2 overridden below */
}

.ecommoda-hero__content--center .ecommoda-hero__heading {
	line-height: 48px; /* slide 2's exact value */
}

.ecommoda-hero__description {
	margin: 0 0 15px;
	max-width: 420px;
	font-weight: 400;
	line-height: 25px;
	font-size: 18px; /* slide 3's exact value */
}

.ecommoda-hero__content--center .ecommoda-hero__description {
	font-size: 12px; /* slide 2's exact value */
	letter-spacing: 1px;
}

.ecommoda-hero__content--bottom-left .ecommoda-hero__description {
	font-size: 14px; /* slide 1's exact value */
	letter-spacing: 1px;
}

/* CTA text is white on all 3 slides (reference's own --pri-cl:#fff is
   constant); only the border/fill differs: slide 1 sits on its dark image
   as a transparent outline button, slides 2/3 sit on light backgrounds so
   the reference uses a dark #222222 filled button instead (--second-cl).
   Both hover to solid black (--pri-cl-hover:#000000, shared by both). */
.ecommoda-hero__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding-inline: 32px;
	border-radius: 8px;
	border: 1px solid #fff;
	background-color: transparent;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	transition: background-color var(--ecm-transition-base), border-color var(--ecm-transition-base);
}

.ecommoda-hero__cta:hover,
.ecommoda-hero__cta:focus {
	background-color: #000000;
	border-color: #000000;
	color: #fff;
}

.ecommoda-hero__content--center .ecommoda-hero__cta,
.ecommoda-hero__content--left .ecommoda-hero__cta {
	border-color: #222222;
	background-color: #222222;
}

.ecommoda-hero__arrow {
	position: absolute;
	top: 50%;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: var(--ecm-radius-full);
	background-color: rgba(255, 255, 255, 0.85);
	color: var(--ecm-color-heading);
	cursor: pointer;
	transform: translateY(-50%);
	transition: background-color var(--ecm-transition-fast);
}

.ecommoda-hero__arrow:hover,
.ecommoda-hero__arrow:focus {
	background-color: var(--ecm-color-body-bg);
}

.ecommoda-hero__arrow--prev {
	left: 20px;
}

.ecommoda-hero__arrow--next {
	right: 20px;
}

/* Dot pagination — off by default (matches current design, which has no
   dots); only rendered/visible when explicitly enabled via the "Ecommoda
   Hero Slider" widget's Show Dots control. */
.ecommoda-hero__dots {
	position: absolute;
	left: 50%;
	bottom: 16px;
	z-index: 3;
	display: flex;
	gap: 8px;
	transform: translateX(-50%);
}

.ecommoda-hero__dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border: 0;
	border-radius: var(--ecm-radius-full);
	background-color: rgba(255, 255, 255, 0.5);
	cursor: pointer;
	transition: background-color var(--ecm-transition-fast);
}

.ecommoda-hero__dot.is-active {
	background-color: #ffffff;
}

@media (prefers-reduced-motion: reduce) {
	.ecommoda-hero__slide {
		transition: none;
	}
}

/* Post-hero black scrolling marquee */

.ecommoda-post-hero-marquee {
	background-color: #000000;
	color: #ffffff;
}

.ecommoda-post-hero-marquee__inner {
	width: 100%;
	overflow: hidden;
	padding-top: 10px;
	padding-bottom: 10px;
	margin-bottom: 30px;
}

@media (min-width: 768px) {
	.ecommoda-post-hero-marquee__inner {
		margin-bottom: 50px;
	}
}

.ecommoda-post-hero-marquee__track {
	display: flex;
	align-items: center;
	width: max-content;
	gap: 20px;
	animation: ecommoda-post-hero-marquee-scroll 120s linear infinite;
}

@media (min-width: 1025px) {
	.ecommoda-post-hero-marquee__track {
		gap: 30px;
	}
}

.ecommoda-post-hero-marquee__item {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	white-space: nowrap;
	line-height: 1.2;
}

.ecommoda-post-hero-marquee__dot {
	width: 6px;
	height: 6px;
	flex-shrink: 0;
	border-radius: 50%;
	background-color: currentColor;
}

.ecommoda-post-hero-marquee__image {
	width: 16px;
	height: 16px;
	object-fit: contain;
	display: inline-block;
}

@keyframes ecommoda-post-hero-marquee-scroll {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(-50%);
	}
}

/* No hover-pause here, unlike the announcement bar marquee — reference
   confirms this section does not pause on hover. */

@media (prefers-reduced-motion: reduce) {
	.ecommoda-post-hero-marquee__track {
		animation: none;
	}
}

/* Collection image carousel */

.ecommoda-collection-carousel-section {
	width: 100%;
}

.ecommoda-collection-carousel {
	position: relative;
	width: 100%;
}

/* Arrows — absent from the current design (dots-only); only rendered/visible
   when explicitly enabled via the "Ecommoda Collection Carousel" widget's
   Show Arrows control. */
.ecommoda-collection-carousel__arrow {
	position: absolute;
	top: 50%;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: var(--ecm-radius-full);
	background-color: rgba(255, 255, 255, 0.85);
	color: var(--ecm-color-heading);
	cursor: pointer;
	transform: translateY(-50%);
	transition: background-color var(--ecm-transition-fast);
}

.ecommoda-collection-carousel__arrow:hover,
.ecommoda-collection-carousel__arrow:focus {
	background-color: var(--ecm-color-body-bg);
}

.ecommoda-collection-carousel__arrow--prev {
	left: 10px;
}

.ecommoda-collection-carousel__arrow--next {
	right: 10px;
}

.ecommoda-collection-carousel__track {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	cursor: grab;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ecommoda-collection-carousel__track::-webkit-scrollbar {
	display: none;
}

.ecommoda-collection-carousel__track.is-dragging {
	cursor: grabbing;
	scroll-snap-type: none;
}

@media (min-width: 768px) {
	.ecommoda-collection-carousel__track {
		gap: 30px;
	}
}

.ecommoda-collection-carousel__item {
	flex: 0 0 calc((100% - 10px) / 2);
	scroll-snap-align: start;
}

@media (min-width: 768px) {
	.ecommoda-collection-carousel__item {
		flex: 0 0 calc((100% - 30px) / 2);
	}
}

@media (min-width: 1025px) {
	.ecommoda-collection-carousel__item {
		flex: 0 0 calc((100% - 90px) / 4);
	}
}

.ecommoda-collection-carousel__link {
	display: block;
}

.ecommoda-collection-carousel__ratio {
	display: block;
	position: relative;
	width: 100%;
	aspect-ratio: 1208 / 808;
	overflow: hidden;
}

.ecommoda-collection-carousel__ratio img {
	display: block;
	width: 100%;
	height: 100%;
}

.ecommoda-collection-carousel__dots {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-top: 20px;
}

.ecommoda-carousel__dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background-color: #d9d9d9;
	cursor: pointer;
}

.ecommoda-carousel__dot.is-active {
	background-color: #222222;
}

/* Why Ecommoda */

.ecommoda-why-ecommoda {
	width: 100%;
	margin-bottom: 30px;
}

@media (min-width: 768px) {
	.ecommoda-why-ecommoda {
		margin-bottom: 50px;
	}
}

.ecommoda-why-ecommoda__heading {
	margin: 0 0 30px;
	text-align: center;
}

.ecommoda-why-ecommoda__list {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	cursor: grab;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ecommoda-why-ecommoda__list::-webkit-scrollbar {
	display: none;
}

.ecommoda-why-ecommoda__list.is-dragging {
	cursor: grabbing;
	scroll-snap-type: none;
}

.ecommoda-why-ecommoda__item {
	flex: 0 0 calc((100% - 10px) / 2);
	scroll-snap-align: start;
	text-align: center;
}

@media (min-width: 768px) {
	.ecommoda-why-ecommoda__list {
		flex-wrap: wrap;
		overflow-x: visible;
		scroll-snap-type: none;
		cursor: auto;
		gap: 30px;
	}

	.ecommoda-why-ecommoda__item {
		flex: 0 0 calc((100% - 30px) / 2);
	}
}

@media (min-width: 1025px) {
	.ecommoda-why-ecommoda__item {
		flex: 0 0 calc((100% - 120px) / 5);
	}
}

.ecommoda-why-ecommoda__icon {
	width: 50px;
	height: 50px;
	margin: 0 auto 10px;
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
}

.ecommoda-why-ecommoda__item:hover .ecommoda-why-ecommoda__icon {
	animation: ecommoda-why-ecommoda-bounce-in 0.5s ease;
}

@keyframes ecommoda-why-ecommoda-bounce-in {
	0% {
		transform: scale(0.3);
	}
	50% {
		transform: scale(1.05);
	}
	70% {
		transform: scale(0.9);
	}
	100% {
		transform: scale(1);
	}
}

@media (prefers-reduced-motion: reduce) {
	.ecommoda-why-ecommoda__item:hover .ecommoda-why-ecommoda__icon {
		animation: none;
	}
}

.ecommoda-why-ecommoda__title {
	margin: 0 0 4px;
	font-size: 12px;
	font-weight: 500;
	color: #222222;
	text-align: center;
}

/* Product card */

.ecommoda-product-card {
	position: relative;
	display: block;
}

.ecommoda-product-card__media {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background-color: var(--ecm-color-border);
}

.ecommoda-product-card__image-link,
.ecommoda-product-card__image-wrap {
	display: block;
	width: 100%;
	height: 100%;
}

.ecommoda-product-card__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: opacity var(--ecm-transition-base);
}

.ecommoda-product-card__image--primary {
	z-index: 1;
	opacity: 1;
}

.ecommoda-product-card__image--secondary {
	z-index: 2;
	opacity: 0;
}

.ecommoda-product-card:hover .ecommoda-product-card__image--secondary,
.ecommoda-product-card:focus-within .ecommoda-product-card__image--secondary {
	opacity: 1;
}

.ecommoda-product-card__badge {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 3;
	padding: 4px 10px;
	background-color: var(--ecm-color-sale);
	color: var(--ecm-color-button-text);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

.ecommoda-product-card__info {
	padding-top: 15px;
	text-align: center;
}

.ecommoda-product-card__title {
	margin: 0 0 4px;
	font-size: 14px;
	font-weight: 500;
	line-height: 20px;
	letter-spacing: 0;
}

.ecommoda-product-card__title a {
	color: #222222;
}

.ecommoda-product-card__title a:hover,
.ecommoda-product-card__title a:focus {
	color: #7a2731;
}

.ecommoda-product-card__price {
	margin-bottom: 8px;
	font-size: 14px;
	font-weight: 400;
}

.ecommoda-product-card__price ins {
	margin-left: 6px;
	color: #ec0101;
	text-decoration: none;
}

.ecommoda-product-card__price del {
	color: #696969;
	text-decoration: line-through;
}

.ecommoda-product-card__rating {
	margin-bottom: 8px;
}

.ecommoda-product-card__sizes {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 10px;
	font-size: 13px;
	color: var(--ecm-color-heading);
}

.ecommoda-product-card__size--sold-out {
	opacity: 0.4;
	text-decoration: line-through;
}

.ecommoda-product-card__quick-shop {
	display: grid;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-width: 0;
	height: 40px;
	padding: 0 25px;
	box-sizing: border-box;
	overflow: hidden;
	border: 0;
	background-color: var(--ecm-color-button-bg);
	color: var(--ecm-color-button-text);
	font-family: inherit;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: background-color var(--ecm-transition-base);
}

.ecommoda-product-card__quick-shop-label,
.ecommoda-product-card__quick-shop-icon {
	grid-area: 1 / 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.ecommoda-product-card__quick-shop-label {
	opacity: 1;
	transform: translateY(0);
}

.ecommoda-product-card__quick-shop-icon {
	opacity: 0;
	transform: translateY(6px);
}

.ecommoda-product-card__quick-shop-icon svg {
	display: block;
	width: 20px;
	height: 20px;
}

@media (hover: hover) and (pointer: fine) {
	.ecommoda-product-card__quick-shop:hover .ecommoda-product-card__quick-shop-label {
		opacity: 0;
		transform: translateY(-6px);
	}

	.ecommoda-product-card__quick-shop:hover .ecommoda-product-card__quick-shop-icon {
		opacity: 1;
		transform: translateY(0);
	}
}

.ecommoda-product-card__quick-shop:focus-visible .ecommoda-product-card__quick-shop-label {
	opacity: 0;
	transform: translateY(-6px);
}

.ecommoda-product-card__quick-shop:focus-visible .ecommoda-product-card__quick-shop-icon {
	opacity: 1;
	transform: translateY(0);
}

.ecommoda-product-card__quick-shop:hover,
.ecommoda-product-card__quick-shop:focus {
	background-color: var(--ecm-color-button-bg-hover);
	color: var(--ecm-color-button-text);
}

@media (prefers-reduced-motion: reduce) {
	.ecommoda-product-card__image,
	.ecommoda-product-card__quick-shop-label,
	.ecommoda-product-card__quick-shop-icon {
		transition: none;
	}
}

/* ==========================================================================
   Cart drawer, mobile nav drawer, search panel
   Shared shell pattern: fixed overlay + fixed side panel, both toggled via
   the [hidden] attribute + a deferred .is-open class (see ecommodaCreatePanel
   in assets/js/ecommoda.js) so the slide-in/fade can transition instead of
   snapping instantly.
   ========================================================================== */

html.ecommoda-scroll-locked {
	overflow: hidden;
}

/* --- Cart drawer --- */

.ecommoda-cart-drawer {
	position: fixed;
	inset: 0;
	z-index: var(--ecm-z-modal);
}

.ecommoda-cart-drawer__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	opacity: 0;
	transition: opacity var(--ecm-transition-base);
}

.ecommoda-cart-drawer.is-open .ecommoda-cart-drawer__overlay {
	opacity: 1;
}

.ecommoda-cart-drawer__panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(420px, 100vw);
	background: var(--ecm-color-body-bg);
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform var(--ecm-transition-base);
	outline: none;
}

.ecommoda-cart-drawer.is-open .ecommoda-cart-drawer__panel {
	transform: translateX(0);
}

.ecommoda-cart-drawer__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: var(--ecm-space-lg);
	border-bottom: 1px solid var(--ecm-color-border);
}

.ecommoda-cart-drawer__heading {
	margin: 0;
	font-size: var(--ecm-font-size-h5);
	font-weight: var(--ecm-font-weight-heading);
	color: var(--ecm-color-heading);
}

.ecommoda-cart-drawer__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--ecm-color-heading);
	cursor: pointer;
}

.ecommoda-cart-drawer__body {
	flex: 1;
	display: flex;
	flex-direction: column;
	overflow-y: auto;
}

.ecommoda-cart-drawer__items {
	flex: 1;
	padding: 0 var(--ecm-space-lg);
}

.ecommoda-cart-drawer__item {
	display: flex;
	gap: var(--ecm-space-md);
	padding: var(--ecm-space-lg) 0;
	border-bottom: 1px solid var(--ecm-color-border);
}

.ecommoda-cart-drawer__item-img {
	flex-shrink: 0;
	width: 80px;
	height: 80px;
	display: block;
}

.ecommoda-cart-drawer__item-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: var(--ecm-radius-sm);
}

.ecommoda-cart-drawer__item-meta {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.ecommoda-cart-drawer__item-title {
	font-size: 14px;
	font-weight: 500;
	color: var(--ecm-color-heading);
	text-decoration: none;
}

.ecommoda-cart-drawer__item-title:hover {
	text-decoration: underline;
}

.ecommoda-cart-drawer__item-variant {
	font-size: 12px;
	color: var(--ecm-color-muted);
}

.ecommoda-cart-drawer__item-variant p {
	margin: 0;
}

.ecommoda-cart-drawer__item-price {
	font-size: 13px;
	color: var(--ecm-color-text);
}

.ecommoda-cart-drawer__item-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--ecm-space-sm);
	margin-top: 4px;
}

.ecommoda-cart-drawer__qty-control {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--ecm-color-border);
	border-radius: var(--ecm-radius-sm);
}

.ecommoda-cart-drawer__qty-control .ecommoda-cart__qty-btn {
	width: 28px;
	height: 28px;
	border: 0;
	background: none;
	cursor: pointer;
	font-size: 14px;
}

.ecommoda-cart-drawer__qty-control .ecommoda-cart__qty-input {
	width: 32px;
	border: 0;
	text-align: center;
	font-size: 13px;
	appearance: textfield;
	-moz-appearance: textfield;
}

.ecommoda-cart-drawer__item-total {
	font-size: 13px;
	font-weight: 600;
	color: var(--ecm-color-heading);
}

.ecommoda-cart-drawer__item-remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--ecm-color-muted);
	cursor: pointer;
}

.ecommoda-cart-drawer__item-remove:hover {
	color: var(--ecm-color-error);
}

.ecommoda-cart__item.is-updating {
	opacity: 0.5;
	pointer-events: none;
}

.ecommoda-cart-drawer__footer {
	padding: var(--ecm-space-lg);
	border-top: 1px solid var(--ecm-color-border);
}

.ecommoda-cart-drawer__subtotal {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 15px;
	color: var(--ecm-color-heading);
	margin-bottom: var(--ecm-space-sm);
}

.ecommoda-cart-drawer__note {
	margin: 0 0 var(--ecm-space-md);
	font-size: 12px;
	color: var(--ecm-color-muted);
}

.ecommoda-cart-drawer__checkout {
	display: block;
	width: 100%;
	padding: 14px;
	text-align: center;
	background: var(--ecm-color-button-bg);
	color: var(--ecm-color-button-text);
	text-decoration: none;
	border-radius: var(--ecm-radius-sm);
	font-weight: 600;
	transition: background-color var(--ecm-transition-fast);
}

.ecommoda-cart-drawer__checkout:hover {
	background: var(--ecm-color-button-bg-hover);
}

.ecommoda-cart-drawer__view-cart {
	display: block;
	text-align: center;
	margin-top: var(--ecm-space-sm);
	font-size: 13px;
	color: var(--ecm-color-text);
	text-decoration: underline;
}

.ecommoda-cart-drawer__empty {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: var(--ecm-space-sm);
	padding: var(--ecm-space-2xl) var(--ecm-space-lg);
}

.ecommoda-cart-drawer__empty-icon {
	width: 48px;
	height: 48px;
	color: var(--ecm-color-muted);
}

.ecommoda-cart-drawer__empty-text {
	margin: 0;
	color: var(--ecm-color-heading);
}

.ecommoda-cart-drawer__empty-btn {
	display: inline-block;
	margin-top: var(--ecm-space-sm);
	padding: 10px 24px;
	background: var(--ecm-color-button-bg);
	color: var(--ecm-color-button-text);
	text-decoration: none;
	border-radius: var(--ecm-radius-sm);
	font-weight: 600;
}

/* --- Mobile nav drawer --- */

.ecommoda-mobile-nav {
	position: fixed;
	inset: 0;
	z-index: var(--ecm-z-modal);
}

.ecommoda-mobile-nav__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	opacity: 0;
	transition: opacity var(--ecm-transition-base);
}

.ecommoda-mobile-nav.is-open .ecommoda-mobile-nav__overlay {
	opacity: 1;
}

.ecommoda-mobile-nav__panel {
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	width: min(320px, 85vw);
	background: var(--ecm-color-body-bg);
	display: flex;
	flex-direction: column;
	overflow-y: auto;
	transform: translateX(-100%);
	transition: transform var(--ecm-transition-base);
	outline: none;
}

.ecommoda-mobile-nav.is-open .ecommoda-mobile-nav__panel {
	transform: translateX(0);
}

.ecommoda-mobile-nav__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: var(--ecm-space-lg);
	border-bottom: 1px solid var(--ecm-color-border);
}

.ecommoda-mobile-nav__logo {
	font-family: var(--ecm-font-heading);
	font-weight: 700;
	font-size: 20px;
	color: var(--ecm-color-heading);
	text-decoration: none;
}

.ecommoda-mobile-nav__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--ecm-color-heading);
	cursor: pointer;
	flex-shrink: 0;
}

.ecommoda-mobile-nav__section {
	padding: var(--ecm-space-md) var(--ecm-space-lg);
	border-bottom: 1px solid var(--ecm-color-border);
}

.ecommoda-mobile-nav__section-heading {
	margin: 0 0 var(--ecm-space-sm);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--ecm-color-muted);
}

.ecommoda-mobile-nav__list,
.ecommoda-mobile-nav__category-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ecommoda-mobile-nav__list li,
.ecommoda-mobile-nav__category-list li {
	border-bottom: 1px solid var(--ecm-color-border);
}

.ecommoda-mobile-nav__list li:last-child,
.ecommoda-mobile-nav__category-list li:last-child {
	border-bottom: 0;
}

.ecommoda-mobile-nav__list a,
.ecommoda-mobile-nav__category-list a {
	display: block;
	padding: 14px 0;
	color: var(--ecm-color-heading);
	text-decoration: none;
	font-size: 15px;
	min-height: 44px;
	line-height: 16px;
}

.ecommoda-mobile-nav__list a:hover,
.ecommoda-mobile-nav__category-list a:hover {
	color: var(--ecm-color-link-hover);
}

/* Only appears when a category's "Show Child Categories" control is
   enabled (off by default — the current design has no nested items here). */
.ecommoda-mobile-nav__category-list-child a {
	padding-left: 16px;
	font-size: 14px;
	opacity: 0.85;
}

.ecommoda-mobile-nav__footer {
	padding: var(--ecm-space-lg);
	margin-top: auto;
}

.ecommoda-mobile-nav__account-link {
	display: flex;
	align-items: center;
	gap: var(--ecm-space-sm);
	color: var(--ecm-color-heading);
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
}

.ecommoda-mobile-nav__account-link svg {
	width: 18px;
	height: 18px;
}

/* --- Search panel --- */

.ecommoda-search-panel {
	position: fixed;
	inset: 0;
	z-index: var(--ecm-z-modal);
}

.ecommoda-search-panel__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	opacity: 0;
	transition: opacity var(--ecm-transition-base);
}

.ecommoda-search-panel.is-open .ecommoda-search-panel__overlay {
	opacity: 1;
}

.ecommoda-search-panel__box {
	position: relative;
	width: min(680px, 92vw);
	margin: 90px auto 0;
	background: var(--ecm-color-body-bg);
	border-radius: var(--ecm-radius-md);
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
	opacity: 0;
	transform: translateY(-16px);
	transition: opacity var(--ecm-transition-base), transform var(--ecm-transition-base);
	outline: none;
	max-height: calc(100vh - 130px);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.ecommoda-search-panel.is-open .ecommoda-search-panel__box {
	opacity: 1;
	transform: translateY(0);
}

.ecommoda-search-panel__form {
	display: flex;
	align-items: center;
	gap: var(--ecm-space-sm);
	padding: var(--ecm-space-md) var(--ecm-space-lg);
	border-bottom: 1px solid var(--ecm-color-border);
	flex-shrink: 0;
}

.ecommoda-search-panel__form svg {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	color: var(--ecm-color-muted);
}

.ecommoda-search-panel__input {
	flex: 1;
	border: 0;
	outline: none;
	font-size: 16px;
	font-family: var(--ecm-font-body);
	color: var(--ecm-color-text);
	background: none;
}

.ecommoda-search-panel__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--ecm-color-heading);
	cursor: pointer;
	flex-shrink: 0;
}

.ecommoda-search-panel__results {
	padding: var(--ecm-space-lg);
	overflow-y: auto;
}

.ecommoda-search-panel__hint {
	margin: 0;
	text-align: center;
	color: var(--ecm-color-muted);
	font-size: 14px;
	padding: var(--ecm-space-lg) 0;
}

.ecommoda-search-panel__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ecommoda-search-panel__item + .ecommoda-search-panel__item {
	border-top: 1px solid var(--ecm-color-border);
}

.ecommoda-search-panel__item-link {
	display: flex;
	align-items: center;
	gap: var(--ecm-space-md);
	padding: var(--ecm-space-sm) 0;
	text-decoration: none;
	color: inherit;
}

.ecommoda-search-panel__item-img {
	width: 56px;
	height: 56px;
	object-fit: cover;
	border-radius: var(--ecm-radius-sm);
	flex-shrink: 0;
}

.ecommoda-search-panel__item-meta {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.ecommoda-search-panel__item-title {
	font-size: 14px;
	font-weight: 500;
	color: var(--ecm-color-heading);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ecommoda-search-panel__item-price {
	font-size: 13px;
	color: var(--ecm-color-muted);
}

@media (max-width: 600px) {
	.ecommoda-search-panel__box {
		margin-top: 0;
		width: 100%;
		max-height: 100vh;
		border-radius: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ecommoda-cart-drawer__overlay,
	.ecommoda-cart-drawer__panel,
	.ecommoda-mobile-nav__overlay,
	.ecommoda-mobile-nav__panel,
	.ecommoda-search-panel__overlay,
	.ecommoda-search-panel__box {
		transition: none;
	}
}
