/* =========================================================
   TomatoCat Shop — Elementor widgets.
   Loaded only on pages that place one, through the widget's
   own get_style_depends().

   Colours come from the theme's variables with fallbacks, so
   the row still looks deliberate on somebody else's theme.
   ========================================================= */

.tc-pslider {
	--tc-ps-view: 4;
	--tc-ps-gap: 1.25rem;
	margin-block: var(--tc-space-lg, 2.5rem);
}

/* ---------- The words above the row ---------- */

.tc-pslider__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--tc-space-md, 1.5rem);
	margin-bottom: var(--tc-space-md, 1.5rem);
}

.tc-pslider__words { min-width: 0; flex: 1 1 min(100%, 34ch); }

.tc-pslider__title {
	margin: 0;
	font-size: var(--tc-fs-h2, clamp(1.4rem, 1.15rem + 1vw, 1.9rem));
	line-height: var(--tc-lh-heading, 1.25);
	color: var(--tc-text, #1c1b1a);
}

.tc-pslider__desc {
	margin: .6rem 0 0;
	max-width: 62ch;
	font-size: .95rem;
	line-height: 1.75;
	color: var(--tc-text-muted, #5a5754);
}

.tc-pslider__tools { display: flex; align-items: center; gap: .6rem; flex: 0 0 auto; }

.tc-pslider__arrows { display: flex; gap: .4rem; }
.tc-pslider__arrows[hidden] { display: none; }

.tc-pslider__arrow {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	cursor: pointer;
	border: 1px solid var(--tc-border, #e7e3df);
	border-radius: 50%;
	background: var(--tc-surface, #fff);
	color: var(--tc-text, #1c1b1a);
	transition: border-color .15s, background .15s, color .15s, opacity .15s;
}
.tc-pslider__arrow:hover:not(:disabled) {
	border-color: var(--tc-accent, #e0503c);
	color: var(--tc-accent, #e0503c);
}

/* Dimmed rather than removed. An arrow that disappears at the end of the row
   moves the one beside it, and the hand that was about to press it misses. */
.tc-pslider__arrow:disabled { opacity: .35; cursor: default; }

.tc-pslider__cta {
	display: inline-block;
	padding: .7rem 1.5rem;
	border: 1px solid var(--tc-border, #e7e3df);
	border-radius: 999px;
	background: var(--tc-bg-alt, #faf7f4);
	color: var(--tc-text, #1c1b1a);
	font-size: .92rem;
	text-decoration: none;
	white-space: nowrap;
	transition: background .15s, border-color .15s, color .15s;
}
.tc-pslider__cta:hover {
	background: var(--tc-accent, #e0503c);
	border-color: var(--tc-accent, #e0503c);
	color: #fff;
}

/* ---------- The row ---------- */

/*
 * A scroll container with snap points, not a transformed track.
 *
 * It costs no JavaScript to work: a touchscreen swipes it, a trackpad scrolls
 * it, a keyboard tabs through it and the browser brings each card into view by
 * itself. The arrows only call scrollBy(), so a blocked script leaves a row
 * that still does everything except have arrows.
 */
.tc-pslider__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - (var(--tc-ps-view) - 1) * var(--tc-ps-gap)) / var(--tc-ps-view));
	gap: var(--tc-ps-gap);
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-padding-left: 0;
	list-style: none;
	margin: 0;
	padding: 0 0 .5rem;
	scrollbar-width: thin;
}

.tc-pslider__item { scroll-snap-align: start; min-width: 0; }

.tc-pslider__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
	color: inherit;
}

.tc-pslider__media {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: var(--tc-radius, 10px);
	background: var(--tc-bg-alt, #faf7f4);
	margin-bottom: .7rem;
}

/* The ratio is declared here as well as in the crop, so the row has its height
   before any picture arrives and the page does not shuffle while they load. */
.tc-pslider__img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	transition: transform .35s ease;
}
.tc-pslider__link:hover .tc-pslider__img { transform: scale(1.04); }

.tc-pslider__img--none { background: var(--tc-bg-alt, #faf7f4); }

.tc-pslider__flag {
	position: absolute;
	top: .55rem;
	left: .55rem;
	padding: .2rem .55rem;
	border-radius: 999px;
	background: var(--tc-accent, #e0503c);
	color: #fff;
	font-size: .72rem;
	font-weight: 600;
	line-height: 1.5;
}

.tc-pslider__name {
	display: block;
	font-size: .95rem;
	font-weight: 600;
	line-height: 1.5;
	color: var(--tc-text, #1c1b1a);
}

.tc-pslider__price {
	display: block;
	margin-top: .3rem;
	font-size: .95rem;
	color: var(--tc-text-muted, #5a5754);
}
.tc-pslider__price del { opacity: .6; margin-right: .35rem; }
.tc-pslider__price ins { text-decoration: none; color: var(--tc-accent, #e0503c); font-weight: 600; }

.tc-pslider__empty { color: var(--tc-text-muted, #5a5754); font-size: .95rem; }

@media (prefers-reduced-motion: reduce) {
	.tc-pslider__track { scroll-behavior: auto; }
	.tc-pslider__img { transition: none; }
	.tc-pslider__link:hover .tc-pslider__img { transform: none; }
}

/* ---------- Hero banner ---------- */

.tc-hero2 {
	position: relative;
	display: grid;
	align-items: end;
	min-height: 60vh;
	overflow: hidden;
	isolation: isolate;
	background: #1c1b1a;
}

/*
 * The picture is taken out of the flow and the words are not.
 *
 * Left in the grid an <img> contributes its own natural height, and the banner
 * then takes the shape of whatever was uploaded instead of the height that was
 * asked for. Absolutely positioned, it is sized by the banner rather than
 * sizing it, and object-fit crops the overflow.
 */
.tc-hero2__img,
.tc-hero2__veil,
.tc-hero2__scrim {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.tc-hero2__img { object-fit: cover; }
.tc-hero2__veil { background: #000; opacity: .4; }

/* Not a setting. White type over an arbitrary photograph is unreadable about
   half the time — a pale sky, a concrete floor — and this is what guarantees
   the headline on every picture rather than on the ones that happened to be
   dark. */
.tc-hero2__scrim {
	background: linear-gradient(
		to bottom,
		rgba(0, 0, 0, .35) 0%,
		rgba(0, 0, 0, .05) 35%,
		rgba(0, 0, 0, .5) 75%,
		rgba(0, 0, 0, .78) 100%
	);
}

.tc-hero2__inner {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: var(--tc-space-xl, clamp(2.5rem, 7vw, 5rem)) var(--tc-gutter, clamp(1rem, 4vw, 2.25rem));
	color: #fff;
}

.tc-hero2__words { max-width: 620px; }

.tc-hero2__title {
	margin: 0;
	font-size: clamp(1.7rem, 1.1rem + 2.2vw, 2.9rem);
	line-height: var(--tc-lh-heading, 1.25);
	color: inherit;
	text-shadow: 0 2px 18px rgba(0, 0, 0, .4);
}

.tc-hero2__desc {
	margin: .75rem 0 0;
	font-size: 1.05rem;
	line-height: 1.75;
	color: inherit;
	opacity: .92;
}

.tc-hero2__cta {
	display: inline-block;
	margin-top: 1.25rem;
	padding: .8rem 1.9rem;
	border: 1px solid #fff;
	border-radius: 999px;
	background: #fff;
	color: #1c1b1a;
	font-weight: 600;
	text-decoration: none;
	transition: background .15s, border-color .15s, color .15s;
}
.tc-hero2__cta:hover {
	background: var(--tc-accent, #e0503c);
	border-color: var(--tc-accent, #e0503c);
	color: #fff;
}

/* ---------- Contact channels ---------- */

.tc-contact { margin-block: var(--tc-space-lg, 2.5rem); }
.tc-contact__head { margin-bottom: var(--tc-space-lg, 2.5rem); }

.tc-contact__title {
	margin: 0;
	font-size: var(--tc-fs-h2, clamp(1.4rem, 1.15rem + 1vw, 1.9rem));
	line-height: var(--tc-lh-heading, 1.25);
	color: var(--tc-text, #1c1b1a);
}

.tc-contact__desc {
	margin: .7rem 0 0;
	max-width: 62ch;
	font-size: .95rem;
	line-height: 1.75;
	color: var(--tc-text-muted, #5a5754);
}
.tc-contact__head[style*="center"] .tc-contact__desc { margin-inline: auto; }

.tc-contact__list {
	display: grid;
	gap: var(--tc-space-md, 1.5rem);
	list-style: none;
	margin: 0;
	padding: 0;
}

.tc-contact__link {
	display: flex;
	align-items: center;
	gap: .9rem;
	text-decoration: none;
	color: var(--tc-text, #1c1b1a);
	transition: border-color .15s, background .15s, color .15s;
}

.tc-contact__icon {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	color: var(--tc-accent, #e0503c);
	background: var(--tc-bg-alt, #faf7f4);
}

.tc-contact__body { min-width: 0; }
.tc-contact__name { display: block; font-weight: 600; line-height: 1.4; }

/* The address wraps rather than running off the side: an overflowing link is
   invisible on a phone and pushes the whole page sideways. */
.tc-contact__value {
	display: block;
	margin-top: .15rem;
	font-size: .84rem;
	line-height: 1.5;
	color: var(--tc-text-muted, #5a5754);
	overflow-wrap: anywhere;
}

.tc-contact--cards .tc-contact__link {
	height: 100%;
	padding: 1rem 1.15rem;
	border: 1px solid var(--tc-border, #e7e3df);
	border-radius: var(--tc-radius, 10px);
	background: var(--tc-surface, #fff);
}
.tc-contact--cards .tc-contact__link:hover {
	border-color: var(--tc-accent, #e0503c);
	color: var(--tc-accent, #e0503c);
}
.tc-contact--cards .tc-contact__link:hover .tc-contact__icon {
	background: var(--tc-accent, #e0503c);
	color: #fff;
}

.tc-contact--buttons .tc-contact__list { display: flex; flex-wrap: wrap; gap: .7rem; }
.tc-contact--buttons .tc-contact__link {
	gap: .55rem;
	padding: .7rem 1.3rem;
	border: 1px solid var(--tc-border, #e7e3df);
	border-radius: 999px;
	font-size: .95rem;
}
.tc-contact--buttons .tc-contact__link:hover {
	border-color: var(--tc-accent, #e0503c);
	color: var(--tc-accent, #e0503c);
}
.tc-contact--buttons .tc-contact__icon { width: 22px; height: 22px; background: none; border-radius: 0; }
.tc-contact--buttons .tc-contact__icon svg { width: 18px; height: 18px; }
