/* Tolo Shop — widgets styles.
   Colors default to the Elementor kit (Site Settings → Global Colors) and can be
   overridden per widget from Style → Couleurs & formes. Selectors are doubled up
   (.tolo .tolo-x) so the Hello Elementor theme's button/input rules don't leak in. */

.tolo {
	--tolo-primary: var(--e-global-color-primary, #9e0000);
	--tolo-accent: var(--e-global-color-accent, #007832);
	--tolo-heading: var(--e-global-color-secondary, #060f14);
	--tolo-text: var(--e-global-color-text, #444444);
	--tolo-muted: #787878;
	--tolo-surface: #ffffff;
	--tolo-soft: #f6f5f3;
	--tolo-border: #e7e4e0;
	--tolo-danger: #c30000;
	--tolo-radius: 14px;
	--tolo-btn-radius: 999px;
	--tolo-aside: 380px;
	--tolo-font: var(--e-global-typography-text-font-family, "Poppins"), system-ui, sans-serif;
	--tolo-font-heading: var(--e-global-typography-primary-font-family, "Marcellus"), Georgia, serif;

	color: var(--tolo-text);
	font-family: var(--tolo-font);
	font-size: 15px;
	line-height: 1.5;
	position: relative;
}

.tolo *,
.tolo *::before,
.tolo *::after { box-sizing: border-box; }

.tolo [hidden] { display: none !important; }

.tolo .tolo-ico {
	width: 1.15em;
	height: 1.15em;
	flex: none;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.tolo .tolo-title {
	font-family: var(--tolo-font-heading);
	color: var(--tolo-heading);
	font-weight: 500;
	line-height: 1.2;
	margin: 0;
}

/* ---------------------------------------------------------------- buttons */

.tolo .tolo-btn,
.tolo .tolo-btn:hover,
.tolo .tolo-btn:focus {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .45em;
	min-height: 44px;
	padding: .7em 1.35em;
	border: 1.5px solid transparent;
	border-radius: var(--tolo-btn-radius);
	font-family: var(--tolo-font);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.1;
	text-decoration: none;
	text-transform: none;
	letter-spacing: 0;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color .2s, border-color .2s, color .2s, transform .1s, opacity .2s;
}
.tolo .tolo-btn:active { transform: translateY(1px); }
.tolo .tolo-btn:focus-visible { outline: 2px solid var(--tolo-primary); outline-offset: 2px; }

.tolo .tolo-btn--primary { background: var(--tolo-primary); border-color: var(--tolo-primary); color: #fff; }
.tolo .tolo-btn--primary:hover,
.tolo .tolo-btn--primary:focus { background: color-mix(in srgb, var(--tolo-primary) 85%, #000); border-color: color-mix(in srgb, var(--tolo-primary) 85%, #000); color: #fff; }
.tolo .tolo-btn--primary.is-added,
.tolo .tolo-btn--primary.is-added:hover { background: var(--tolo-accent); border-color: var(--tolo-accent); }

.tolo .tolo-btn--dark,
.tolo .tolo-btn--dark:hover,
.tolo .tolo-btn--dark:focus { background: var(--tolo-heading); border-color: var(--tolo-heading); color: #fff; }

.tolo .tolo-btn--outline,
.tolo .tolo-btn--outline:focus { background: transparent; border-color: var(--tolo-border); color: var(--tolo-heading); }
.tolo .tolo-btn--outline:hover { background: transparent; border-color: var(--tolo-heading); color: var(--tolo-heading); }

.tolo .tolo-btn--disabled,
.tolo .tolo-btn--disabled:hover { background: var(--tolo-soft); border-color: var(--tolo-soft); color: var(--tolo-muted); cursor: not-allowed; }

.tolo .tolo-btn--block { width: 100%; }
.tolo .tolo-btn:disabled,
.tolo .tolo-btn.is-disabled { opacity: .5; pointer-events: none; }
.tolo .tolo-btn.is-busy { opacity: .7; cursor: progress; }
.tolo .tolo-btn.is-busy .tolo-ico { animation: tolo-spin .8s linear infinite; }

.tolo .tolo-link,
.tolo .tolo-link:hover,
.tolo .tolo-link:focus {
	background: none;
	border: 0;
	padding: 0;
	min-height: 0;
	font: inherit;
	font-size: 13px;
	color: var(--tolo-muted);
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}
.tolo .tolo-link:hover { color: var(--tolo-primary); }

/* ---------------------------------------------------------------- inputs */

/* Inputs use (0,4,0) selectors: the Elementor kit's form field style,
   .elementor-kit-N input:not([type="button"]):not([type="submit"]), weighs (0,3,1). */
.tolo.tolo .tolo-input.tolo-input,
.tolo .tolo-select {
	width: 100%;
	min-height: 46px;
	padding: .65em .9em;
	border: 1.5px solid var(--tolo-border);
	border-radius: calc(var(--tolo-radius) * .7);
	background: var(--tolo-surface);
	color: var(--tolo-heading);
	font-family: var(--tolo-font);
	font-size: 15px;
	line-height: 1.3;
	box-shadow: none;
	transition: border-color .15s, box-shadow .15s;
}
.tolo.tolo textarea.tolo-input.tolo-input { min-height: 90px; resize: vertical; }
.tolo.tolo .tolo-input.tolo-input:focus,
.tolo .tolo-select:focus {
	outline: none;
	border-color: var(--tolo-heading);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--tolo-heading) 12%, transparent);
}
.tolo .tolo-select {
	appearance: none;
	padding-right: 2.4em;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23787878' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right .8em center;
	background-size: 16px;
	cursor: pointer;
}

.tolo .tolo-stepper {
	display: inline-flex;
	align-items: center;
	height: 44px;
	border: 1.5px solid var(--tolo-border);
	border-radius: var(--tolo-btn-radius);
	background: var(--tolo-surface);
	overflow: hidden;
	flex: none;
}
.tolo .tolo-stepper__btn,
.tolo .tolo-stepper__btn:hover,
.tolo .tolo-stepper__btn:focus {
	width: 36px;
	height: 100%;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--tolo-heading);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}
.tolo .tolo-stepper__btn:hover { background: var(--tolo-soft); }
.tolo .tolo-stepper__btn:disabled { opacity: .3; cursor: default; }
.tolo.tolo .tolo-stepper__input.tolo-stepper__input,
.tolo.tolo .tolo-stepper__input.tolo-stepper__input:focus {
	width: 34px;
	height: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--tolo-heading);
	font: 600 15px/1 var(--tolo-font);
	text-align: center;
	box-shadow: none;
	outline: none;
	-moz-appearance: textfield;
}
.tolo .tolo-stepper__input::-webkit-inner-spin-button,
.tolo .tolo-stepper__input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* ---------------------------------------------------------------- shop */

.tolo-shop .tolo-toolbar {
	display: flex;
	gap: 12px;
	margin-bottom: 16px;
}
.tolo-shop .tolo-search {
	position: relative;
	flex: 1;
	margin: 0;
}
.tolo-shop .tolo-search .tolo-ico {
	position: absolute;
	left: 1em;
	top: 50%;
	transform: translateY(-50%);
	color: var(--tolo-muted);
	pointer-events: none;
}
.tolo.tolo-shop .tolo-search__input.tolo-input.tolo-input { padding-left: 2.8em; border-radius: var(--tolo-btn-radius); }
.tolo-shop .tolo-sort.tolo-select { width: auto; min-width: 200px; border-radius: var(--tolo-btn-radius); }

.tolo-shop .tolo-chips {
	display: flex;
	gap: 8px;
	margin-bottom: 24px;
	overflow-x: auto;
	scrollbar-width: none;
	padding-bottom: 2px;
}
.tolo-shop .tolo-chips::-webkit-scrollbar { display: none; }
.tolo .tolo-chip,
.tolo .tolo-chip:hover,
.tolo .tolo-chip:focus {
	flex: none;
	padding: .55em 1.1em;
	border: 1.5px solid var(--tolo-border);
	border-radius: var(--tolo-btn-radius);
	background: var(--tolo-surface);
	color: var(--tolo-heading);
	font: 500 14px/1.2 var(--tolo-font);
	cursor: pointer;
	transition: all .15s;
}
.tolo .tolo-chip:hover { border-color: var(--tolo-heading); }
.tolo .tolo-chip.is-active,
.tolo .tolo-chip.is-active:hover { background: var(--tolo-heading); border-color: var(--tolo-heading); color: #fff; }

.tolo-shop .tolo-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	transition: opacity .2s;
}
.tolo-shop.is-loading .tolo-grid { opacity: .45; pointer-events: none; }

.tolo .tolo-card {
	display: flex;
	flex-direction: column;
	background: var(--tolo-surface);
	border: 1px solid var(--tolo-border);
	border-radius: var(--tolo-radius);
	overflow: hidden;
	transition: box-shadow .2s, transform .2s;
}
.tolo .tolo-card:hover { box-shadow: 0 10px 30px -12px rgba(6, 15, 20, .18); }

.tolo .tolo-card__media {
	position: relative;
	aspect-ratio: 1 / 1;
	background: var(--tolo-soft);
	overflow: hidden;
}
.tolo .tolo-card__media a { display: block; height: 100%; }
.tolo .tolo-card__media img.tolo-card__img {
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: contain;
	padding: 8%;
	mix-blend-mode: multiply;
	transition: transform .35s;
}
.tolo .tolo-card:hover .tolo-card__img { transform: scale(1.04); }
.tolo .tolo-card.is-out .tolo-card__img { opacity: .5; }

.tolo .tolo-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	padding: .3em .7em;
	border-radius: var(--tolo-btn-radius);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
}
.tolo .tolo-badge--sale { background: var(--tolo-primary); color: #fff; }
.tolo .tolo-badge--out { background: var(--tolo-surface); color: var(--tolo-muted); border: 1px solid var(--tolo-border); }

.tolo .tolo-card__body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1;
	padding: 14px 16px 16px;
}
.tolo .tolo-card__cat {
	color: var(--tolo-muted);
	font-size: 12px;
	letter-spacing: .04em;
	text-transform: uppercase;
}
.tolo .tolo-card__title {
	margin: 0;
	color: var(--tolo-heading);
	font-family: var(--tolo-font);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.35;
}
.tolo .tolo-card__title a { color: inherit; text-decoration: none; }
.tolo .tolo-card__title a:hover { color: var(--tolo-primary); }
.tolo .tolo-card__desc { margin: 0; color: var(--tolo-muted); font-size: 13px; }
.tolo .tolo-card__price {
	margin-top: auto;
	padding-top: 4px;
	color: var(--tolo-heading);
	font-size: 17px;
	font-weight: 700;
}
.tolo .tolo-card__price del { color: var(--tolo-muted); font-size: .8em; font-weight: 400; margin-right: .3em; }
.tolo .tolo-card__price ins { text-decoration: none; color: var(--tolo-primary); }
.tolo .tolo-card__unit { color: var(--tolo-muted); font-size: 13px; font-weight: 400; }
.tolo .tolo-card__variation.tolo-select { min-height: 40px; font-size: 14px; }
.tolo .tolo-card__actions { display: flex; gap: 8px; margin-top: 6px; }
.tolo .tolo-card__actions .tolo-btn--primary { flex: 1; padding-left: .8em; padding-right: .8em; }
/* Narrow cards (many columns, sidebar layout): quantity above the button. */
.tolo .tolo-card__body { container-type: inline-size; }
@container (max-width: 250px) {
	.tolo .tolo-card__actions { flex-direction: column; }
	.tolo .tolo-card__actions .tolo-stepper { width: 100%; justify-content: space-between; }
	.tolo.tolo .tolo-card__actions .tolo-stepper__input.tolo-stepper__input { flex: 1; }
}

.tolo .tolo-empty { margin: 32px 0; color: var(--tolo-muted); text-align: center; }
.tolo-shop .tolo-more { display: flex; justify-content: center; margin-top: 32px; }

/* ---------------------------------------------------------------- shop sidebar */

.tolo-shop { --tolo-side: 260px; --tolo-side-top: 24px; }
.tolo-shop .tolo-found { margin: -4px 0 16px; color: var(--tolo-muted); font-size: 13px; }

.tolo-shop.has-side {
	display: grid;
	grid-template-columns: var(--tolo-side) minmax(0, 1fr);
	gap: 32px;
	align-items: start;
}
.tolo-shop.has-side.side-right { grid-template-columns: minmax(0, 1fr) var(--tolo-side); }
.tolo-shop.side-right .tolo-side { order: 2; }
.tolo-shop .tolo-shop__main { min-width: 0; }

.tolo .tolo-side {
	padding: 20px;
	border: 1px solid var(--tolo-border);
	border-radius: var(--tolo-radius);
	background: var(--tolo-surface);
}
.tolo-shop.side-sticky .tolo-side {
	position: sticky;
	top: var(--tolo-side-top);
	max-height: calc(100vh - var(--tolo-side-top) - 16px);
	overflow-y: auto;
	scrollbar-width: thin;
}
.tolo .tolo-side__head,
.tolo .tolo-side__foot,
.tolo .tolo-side__overlay,
.tolo .tolo-side__open { display: none; }

.tolo .tolo-side__block + .tolo-side__block { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--tolo-border); }
.tolo .tolo-side__title {
	margin: 0 0 10px;
	color: var(--tolo-heading);
	font-family: var(--tolo-font);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.tolo .tolo-cats,
.tolo .tolo-cats__sub { list-style: none; margin: 0; padding: 0; }
.tolo .tolo-cats li { margin: 0; }
.tolo .tolo-cat,
.tolo .tolo-cat:hover,
.tolo .tolo-cat:focus {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	width: 100%;
	min-height: 0;
	padding: 8px 10px;
	border: 0;
	border-radius: calc(var(--tolo-radius) * .6);
	background: transparent;
	color: var(--tolo-heading);
	font: 400 14px/1.3 var(--tolo-font);
	text-align: left;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
	transition: background-color .15s, color .15s;
}
.tolo .tolo-cat:hover { background: var(--tolo-soft); color: var(--tolo-heading); }
.tolo .tolo-cat:focus-visible { outline: 2px solid var(--tolo-primary); outline-offset: -2px; }
.tolo .tolo-cat.is-active,
.tolo .tolo-cat.is-active:hover,
.tolo .tolo-cat.is-active:focus {
	--tolo-cat-active: var(--tolo-primary);
	background: color-mix(in srgb, var(--tolo-cat-active) 9%, transparent);
	color: var(--tolo-cat-active);
	font-weight: 600;
}
.tolo .tolo-cat__name { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.tolo .has-children > .tolo-cat .tolo-cat__name::after {
	content: "";
	flex: none;
	width: 6px;
	height: 6px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	opacity: .5;
	transform: rotate(-45deg);
	transition: transform .2s;
}
.tolo .has-children.is-open > .tolo-cat .tolo-cat__name::after { transform: rotate(45deg) translate(-1px, -1px); }
.tolo .tolo-cat__count {
	flex: none;
	min-width: 26px;
	padding: 1px 7px;
	border-radius: 999px;
	background: var(--tolo-soft);
	color: var(--tolo-muted);
	font-size: 12px;
	font-weight: 500;
	text-align: center;
}
.tolo .tolo-cat.is-active .tolo-cat__count { background: var(--tolo-surface); color: inherit; }
.tolo .tolo-cats__sub { display: none; margin: 2px 0 6px 12px; padding-left: 8px; border-left: 1px solid var(--tolo-border); }
.tolo .tolo-cats__item.is-open > .tolo-cats__sub { display: block; }
.tolo .tolo-cats__sub .tolo-cat { font-size: 13px; padding-top: 6px; padding-bottom: 6px; }

.tolo .tolo-check {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 7px 2px;
	color: var(--tolo-heading);
	font-size: 14px;
	cursor: pointer;
}
.tolo .tolo-check input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.tolo .tolo-check__box {
	flex: none;
	width: 20px;
	height: 20px;
	border: 1.5px solid var(--tolo-border);
	border-radius: 6px;
	background: var(--tolo-surface) no-repeat center / 14px;
	transition: background-color .15s, border-color .15s;
}
.tolo .tolo-check:hover .tolo-check__box { border-color: var(--tolo-heading); }
.tolo .tolo-check input:checked + .tolo-check__box {
	border-color: var(--tolo-primary);
	background-color: var(--tolo-primary);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}
.tolo .tolo-check input:focus-visible + .tolo-check__box { outline: 2px solid var(--tolo-primary); outline-offset: 2px; }

.tolo .tolo-side__badge {
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 10px;
	background: var(--tolo-primary);
	color: #fff;
	font-size: 11px;
	line-height: 20px;
	text-align: center;
}

/* Tablet & mobile: the sidebar becomes a slide-out panel. */
@media (max-width: 1024px) {
	.tolo-shop.has-side { display: block; }
	.tolo .tolo-side__open { display: inline-flex; flex: none; }
	.tolo-shop.has-side .tolo-side,
	.tolo-shop.has-side.side-sticky .tolo-side {
		position: fixed;
		top: 0;
		bottom: 0;
		left: 0;
		z-index: 9999;
		display: flex;
		flex-direction: column;
		width: min(340px, 88vw);
		max-height: none;
		padding: 0;
		overflow: hidden;
		border: 0;
		border-radius: 0;
		box-shadow: 0 0 40px rgba(6, 15, 20, .2);
		visibility: hidden;
		transform: translateX(-100%);
		transition: transform .3s cubic-bezier(.2, .8, .2, 1), visibility .3s;
	}
	.tolo-shop.has-side.side-right .tolo-side { left: auto; right: 0; transform: translateX(100%); }
	.tolo-shop.has-side.side-open .tolo-side,
	.tolo-shop.has-side.side-open.side-sticky .tolo-side,
	.tolo-shop.has-side.side-open.side-right .tolo-side { visibility: visible; transform: none; }
	.tolo .tolo-side__head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 14px 16px;
		border-bottom: 1px solid var(--tolo-border);
	}
	.tolo .tolo-side__heading { font-size: 22px; }
	.tolo .tolo-side__close,
	.tolo .tolo-side__close:hover,
	.tolo .tolo-side__close:focus {
		display: grid;
		place-items: center;
		width: 40px;
		height: 40px;
		padding: 0;
		border: 0;
		border-radius: 50%;
		background: var(--tolo-soft);
		color: var(--tolo-heading);
		font-size: 18px;
		cursor: pointer;
	}
	.tolo .tolo-side__body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px; }
	.tolo .tolo-side__foot { display: block; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--tolo-border); }
	.tolo .tolo-side__overlay {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 9998;
		background: rgba(6, 15, 20, .45);
		opacity: 0;
		visibility: hidden;
		transition: opacity .3s, visibility .3s;
	}
	.tolo-shop.side-open .tolo-side__overlay { opacity: 1; visibility: visible; }
}

@media (prefers-reduced-motion: reduce) {
	.tolo-shop .tolo-side,
	.tolo .tolo-side__overlay { transition: none !important; }
}

/* ---------------------------------------------------------------- toast */

.tolo .tolo-toast {
	position: fixed;
	left: 50%;
	bottom: 24px;
	z-index: 9999;
	display: flex;
	align-items: center;
	gap: 16px;
	max-width: calc(100vw - 32px);
	padding: 12px 14px 12px 18px;
	border-radius: var(--tolo-radius);
	background: var(--tolo-heading);
	color: #fff;
	font-size: 14px;
	box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .4);
	opacity: 0;
	visibility: hidden;
	transform: translate(-50%, 16px);
	transition: all .25s ease;
}
.tolo .tolo-toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.tolo .tolo-toast.is-error { background: var(--tolo-danger); }
.tolo .tolo-toast a {
	flex: none;
	padding: .5em .9em;
	border-radius: var(--tolo-btn-radius);
	background: #fff;
	color: var(--tolo-heading);
	font-weight: 600;
	text-decoration: none;
}

/* ---------------------------------------------------------------- cart & checkout layout */

.tolo .tolo-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) var(--tolo-aside);
	gap: 32px;
	align-items: start;
}
.tolo .tolo-aside { position: sticky; top: 24px; }
.tolo .tolo-page-title { margin-bottom: 24px; font-size: 32px; }
.tolo .tolo-count { color: var(--tolo-muted); font-family: var(--tolo-font); font-size: .5em; vertical-align: middle; }

.tolo-cart.is-loading .tolo-lines,
.tolo-cart.is-loading .tolo-summary,
.tolo .tolo-summary.is-loading { opacity: .5; pointer-events: none; transition: opacity .2s; }

.tolo .tolo-loading { display: flex; justify-content: center; padding: 60px 0; }
.tolo .tolo-spinner {
	width: 28px;
	height: 28px;
	border: 3px solid var(--tolo-border);
	border-top-color: var(--tolo-primary);
	border-radius: 50%;
	animation: tolo-spin .8s linear infinite;
}
@keyframes tolo-spin { to { transform: rotate(360deg); } }

.tolo .tolo-lines {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--tolo-border);
}
.tolo .tolo-line {
	display: grid;
	grid-template-columns: 84px minmax(0, 1fr) auto auto;
	gap: 18px;
	align-items: center;
	padding: 18px 0;
	border-bottom: 1px solid var(--tolo-border);
	transition: opacity .2s;
}
.tolo .tolo-line.is-removing { opacity: .3; }
.tolo .tolo-line__img {
	width: 84px;
	height: 84px;
	object-fit: contain;
	padding: 6px;
	border-radius: calc(var(--tolo-radius) * .75);
	background: var(--tolo-soft);
	mix-blend-mode: multiply;
}
.tolo .tolo-line__info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tolo .tolo-line__name { color: var(--tolo-heading); font-weight: 500; }
.tolo .tolo-line__name a { color: inherit; text-decoration: none; }
.tolo .tolo-line__meta { color: var(--tolo-muted); font-size: 13px; white-space: pre-line; }
.tolo .tolo-line__price { color: var(--tolo-muted); font-size: 14px; }
.tolo .tolo-line__end { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; min-width: 90px; }
.tolo .tolo-line__subtotal { color: var(--tolo-heading); font-weight: 700; }
.tolo .tolo-back { display: inline-block; margin-top: 20px; }

.tolo .tolo-summary {
	padding: 24px;
	border-radius: var(--tolo-radius);
	background: var(--tolo-soft);
}
.tolo .tolo-summary__title { font-size: 22px; margin-bottom: 16px; }
.tolo .tolo-summary__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.tolo .tolo-summary__head .tolo-summary__title { margin: 0; }

.tolo .tolo-totals { margin: 16px 0 20px; }
.tolo .tolo-totals__row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 6px 0;
	font-size: 14px;
}
.tolo .tolo-totals__row > span:last-child { color: var(--tolo-heading); font-weight: 500; text-align: right; }
.tolo .tolo-totals__row--discount > span:last-child { color: var(--tolo-accent); }
.tolo .tolo-totals__grand {
	margin-top: 8px;
	padding-top: 14px;
	border-top: 1px solid var(--tolo-border);
	color: var(--tolo-heading);
	font-size: 18px;
	font-weight: 700;
}
.tolo .tolo-totals__grand > span:last-child { font-weight: 700; }

.tolo .tolo-free { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; font-size: 13px; }
.tolo .tolo-free__bar { height: 6px; border-radius: 6px; background: var(--tolo-border); overflow: hidden; }
.tolo .tolo-free__bar > span { display: block; height: 100%; border-radius: inherit; background: var(--tolo-accent); transition: width .4s; }
.tolo .tolo-free.is-reached { color: var(--tolo-accent); font-weight: 600; }

.tolo .tolo-coupon { margin-bottom: 4px; }
.tolo .tolo-coupon__form { display: flex; gap: 8px; margin-top: 10px; }
.tolo.tolo .tolo-coupon__form .tolo-input.tolo-input { min-height: 44px; }

.tolo .tolo-notice {
	margin: 0 0 14px;
	padding: 10px 12px;
	border-radius: calc(var(--tolo-radius) * .6);
	background: color-mix(in srgb, var(--tolo-primary) 8%, transparent);
	color: var(--tolo-primary);
	font-size: 13px;
}
.tolo .tolo-cash {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 14px 0 0;
	color: var(--tolo-muted);
	font-size: 13px;
	text-align: center;
}

.tolo .tolo-empty-view { display: flex; flex-direction: column; align-items: center; padding: 48px 16px; text-align: center; }
.tolo .tolo-empty-view__ico { width: 48px; height: 48px; color: var(--tolo-border); stroke-width: 1.5; }
.tolo .tolo-empty-view .tolo-empty { margin: 12px 0 20px; font-size: 17px; }

/* ---------------------------------------------------------------- checkout */

.tolo-checkout .tolo-main { display: flex; flex-direction: column; gap: 20px; }
.tolo .tolo-panel {
	padding: 24px;
	border: 1px solid var(--tolo-border);
	border-radius: var(--tolo-radius);
	background: var(--tolo-surface);
}
.tolo .tolo-panel__title { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; font-size: 22px; }
.tolo .tolo-step {
	display: inline-grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--tolo-heading);
	color: #fff;
	font: 600 13px/1 var(--tolo-font);
}

.tolo .tolo-fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px 16px;
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}
.tolo .tolo-fields + .tolo-fields { margin-top: 14px; }
.tolo .tolo-field { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.tolo .tolo-field--wide { grid-column: 1 / -1; }
.tolo .tolo-field__label { color: var(--tolo-heading); font-size: 13px; font-weight: 500; }
.tolo .tolo-field__label abbr { color: var(--tolo-primary); text-decoration: none; border: 0; }
.tolo .tolo-field__error { display: none; color: var(--tolo-danger); font-size: 12px; }
.tolo.tolo .tolo-field.has-error .tolo-input.tolo-input { border-color: var(--tolo-danger); }
.tolo .tolo-field.has-error .tolo-field__error { display: block; }

.tolo .tolo-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.tolo .tolo-mode {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 14px 16px;
	border: 1.5px solid var(--tolo-border);
	border-radius: calc(var(--tolo-radius) * .8);
	cursor: pointer;
	transition: border-color .15s, background-color .15s;
}
.tolo .tolo-mode input { position: absolute; opacity: 0; pointer-events: none; }
.tolo .tolo-mode__ico { width: 26px; height: 26px; color: var(--tolo-muted); }
.tolo .tolo-mode strong { display: block; color: var(--tolo-heading); font-weight: 600; font-size: 14px; }
.tolo .tolo-mode small { display: block; color: var(--tolo-muted); font-size: 12px; }
.tolo .tolo-mode:has(input:checked) { border-color: var(--tolo-heading); background: var(--tolo-soft); }
.tolo .tolo-mode:has(input:checked) .tolo-mode__ico { color: var(--tolo-primary); }
.tolo .tolo-mode:has(input:focus-visible) { outline: 2px solid var(--tolo-primary); outline-offset: 2px; }

.tolo .tolo-pay {
	display: flex;
	gap: 14px;
	padding: 16px;
	border: 1.5px solid var(--tolo-accent);
	border-radius: calc(var(--tolo-radius) * .8);
	background: color-mix(in srgb, var(--tolo-accent) 6%, transparent);
}
.tolo .tolo-pay__ico { width: 28px; height: 28px; color: var(--tolo-accent); }
.tolo .tolo-pay strong { color: var(--tolo-heading); }
.tolo .tolo-pay p { margin: 2px 0 0; font-size: 14px; }

.tolo .tolo-alert {
	padding: 12px 16px;
	border-radius: calc(var(--tolo-radius) * .7);
	background: color-mix(in srgb, var(--tolo-danger) 8%, transparent);
	color: var(--tolo-danger);
	font-size: 14px;
	font-weight: 500;
}

.tolo .tolo-minis { list-style: none; margin: 0; padding: 0; max-height: 320px; overflow-y: auto; }
.tolo .tolo-mini { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.tolo .tolo-mini__img { position: relative; flex: none; }
.tolo .tolo-mini__img img {
	width: 52px;
	height: 52px;
	object-fit: contain;
	padding: 4px;
	border-radius: 10px;
	background: var(--tolo-surface);
}
.tolo .tolo-mini__qty {
	position: absolute;
	top: -6px;
	right: -6px;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	border-radius: 10px;
	background: var(--tolo-heading);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	line-height: 20px;
	text-align: center;
}
.tolo .tolo-mini__name { flex: 1; min-width: 0; color: var(--tolo-heading); font-size: 14px; }
.tolo .tolo-mini__name small { display: block; color: var(--tolo-muted); }
.tolo .tolo-mini__price { color: var(--tolo-heading); font-size: 14px; font-weight: 500; }

.tolo .tolo-submit { min-height: 54px; font-size: 15px; justify-content: space-between; padding-left: 1.5em; padding-right: 1.5em; }
.tolo .tolo-submit__total { opacity: .9; }

/* Confirmation */
.tolo .tolo-confirm { max-width: 640px; margin: 0 auto; text-align: center; }
.tolo .tolo-confirm__icon {
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	margin: var(--tolo-confirm-icon-margin, 0 auto 20px);
	border-radius: 50%;
	background: var(--tolo-accent);
}
.tolo .tolo-confirm__icon svg { width: 32px; height: 32px; fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.tolo .tolo-confirm__title { font-size: 32px; }
.tolo .tolo-confirm__text { margin: 12px auto 28px; max-width: 480px; }
.tolo .tolo-confirm__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1px;
	overflow: hidden;
	border: 1px solid var(--tolo-border);
	border-radius: var(--tolo-radius);
	background: var(--tolo-border);
	text-align: left;
}
.tolo .tolo-confirm__grid > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.tolo .tolo-confirm__grid > div { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; background: var(--tolo-surface); }
.tolo .tolo-confirm__grid > div > span { color: var(--tolo-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.tolo .tolo-confirm__grid strong { color: var(--tolo-heading); font-weight: 600; }
.tolo .tolo-confirm__items { list-style: none; margin: 20px 0 28px; padding: 0; text-align: left; }
.tolo .tolo-confirm__items li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--tolo-border); font-size: 14px; }

.tolo-thanks .tolo-confirm > :last-child { margin-bottom: 0; }
.tolo-thanks .tolo-confirm__grid + .tolo-btn { margin-top: 28px; }

/* ---------------------------------------------------------------- cart button */

.tolo-cartbtn-wrap { display: flex; }
.tolo .tolo-cartbtn {
	--tolo-cartbtn-icon: 24px;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--tolo-heading);
	text-decoration: none;
	transition: color .15s, background-color .15s;
}
.tolo .tolo-cartbtn:hover { color: var(--tolo-primary); }
.tolo .tolo-cartbtn__icon { position: relative; display: inline-flex; font-size: var(--tolo-cartbtn-icon); }
.tolo .tolo-cartbtn__icon .tolo-ico,
.tolo .tolo-cartbtn__icon svg { width: 1em; height: 1em; }
.tolo .tolo-cartbtn__badge {
	position: absolute;
	top: -8px;
	right: -10px;
	min-width: 19px;
	height: 19px;
	padding: 0 5px;
	border-radius: 10px;
	background: var(--tolo-primary);
	color: #fff;
	font: 600 11px/19px var(--tolo-font);
	text-align: center;
}
.tolo .tolo-cartbtn.hide-empty.is-empty .tolo-cartbtn__badge { display: none; }
.tolo .tolo-cartbtn.is-bump .tolo-cartbtn__badge { animation: tolo-bump .4s ease; }
.tolo .tolo-cartbtn__total { font-weight: 600; }
@keyframes tolo-bump { 50% { transform: scale(1.35); } }

/* ---------------------------------------------------------------- floating cart */

html.tolo-locked { overflow: hidden; }

.tolo-fcart {
	--tolo-fab-x: 24px;
	--tolo-fab-y: 24px;
	--tolo-fab-size: 60px;
	--tolo-drawer: 420px;
}

.tolo .tolo-fcart__placeholder {
	padding: 10px 14px;
	border: 1px dashed var(--tolo-border);
	border-radius: 8px;
	color: var(--tolo-muted);
	font-size: 12px;
	text-align: center;
}

.tolo .tolo-fcart__fab,
.tolo .tolo-fcart__fab:hover,
.tolo .tolo-fcart__fab:focus {
	position: fixed;
	bottom: var(--tolo-fab-y);
	z-index: 9990;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-width: var(--tolo-fab-size);
	height: var(--tolo-fab-size);
	padding: 0 calc(var(--tolo-fab-size) * .3);
	border: 0;
	border-radius: 999px;
	background-color: var(--tolo-primary);
	color: #fff;
	font: 600 15px/1 var(--tolo-font);
	box-shadow: 0 12px 30px -8px rgba(6, 15, 20, .45);
	cursor: pointer;
	transition: transform .2s, opacity .2s, visibility .2s;
}
.tolo-fcart.is-right .tolo-fcart__fab { right: var(--tolo-fab-x); }
.tolo-fcart.is-left .tolo-fcart__fab { left: var(--tolo-fab-x); }
.tolo .tolo-fcart__fab:hover { transform: translateY(-2px); }
.tolo .tolo-fcart__fab:focus-visible { outline: 3px solid var(--tolo-heading); outline-offset: 3px; }
.tolo .tolo-fcart__fab.is-bump { animation: tolo-fab-bump .45s ease; }
.tolo-fcart.hide-empty.is-empty .tolo-fcart__fab { opacity: 0; visibility: hidden; transform: scale(.6); }

.tolo .tolo-fcart__icon { position: relative; display: inline-flex; font-size: calc(var(--tolo-fab-size) * .42); }
.tolo .tolo-fcart__icon .tolo-ico,
.tolo .tolo-fcart__icon svg { width: 1em; height: 1em; }
.tolo .tolo-fcart__icon i { font-size: 1em; }
.tolo .tolo-fcart__badge {
	position: absolute;
	top: -9px;
	right: -11px;
	min-width: 21px;
	height: 21px;
	padding: 0 5px;
	border: 2px solid currentColor;
	border-radius: 11px;
	background: var(--tolo-heading);
	color: #fff;
	font: 700 11px/17px var(--tolo-font);
	text-align: center;
}
.tolo-fcart.is-empty .tolo-fcart__badge { display: none; }
@keyframes tolo-fab-bump { 30% { transform: scale(1.15); } 60% { transform: scale(.95); } }

.tolo .tolo-fcart__overlay {
	position: fixed;
	inset: 0;
	z-index: 9998;
	background-color: rgba(6, 15, 20, .45);
	opacity: 0;
	visibility: hidden;
	transition: opacity .3s, visibility .3s;
}

.tolo .tolo-fcart__drawer {
	position: fixed;
	top: 0;
	bottom: 0;
	z-index: 9999;
	display: flex;
	flex-direction: column;
	width: min(var(--tolo-drawer), 100vw);
	background: var(--tolo-surface);
	box-shadow: 0 0 40px rgba(6, 15, 20, .2);
	visibility: hidden;
	transition: transform .35s cubic-bezier(.2, .8, .2, 1), visibility .35s;
}
.tolo-fcart.is-right .tolo-fcart__drawer { right: 0; transform: translateX(100%); }
.tolo-fcart.is-left .tolo-fcart__drawer { left: 0; transform: translateX(-100%); }

.tolo-fcart.is-open .tolo-fcart__overlay { opacity: 1; visibility: visible; }
.tolo-fcart.is-open .tolo-fcart__drawer { visibility: visible; transform: none; }

.tolo .tolo-fcart__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 20px;
	border-bottom: 1px solid var(--tolo-border);
}
.tolo .tolo-fcart__title { font-size: 22px; }
.tolo .tolo-fcart__close,
.tolo .tolo-fcart__close:hover,
.tolo .tolo-fcart__close:focus {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--tolo-soft);
	color: var(--tolo-heading);
	font-size: 18px;
	cursor: pointer;
}
.tolo .tolo-fcart__close:hover { background: var(--tolo-border); }

.tolo .tolo-fcart__view { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.tolo .tolo-fcart__body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px 20px; }
.tolo .tolo-fcart__body .tolo-free { padding: 12px 14px; border-radius: calc(var(--tolo-radius) * .7); background: var(--tolo-soft); }
.tolo .tolo-fcart__foot { padding: 4px 20px 20px; border-top: 1px solid var(--tolo-border); background: var(--tolo-surface); }
.tolo .tolo-fcart__foot .tolo-totals { margin: 12px 0 16px; }
.tolo .tolo-fcart__actions { display: flex; flex-direction: column; gap: 8px; }
.tolo-fcart.is-loading .tolo-flines,
.tolo-fcart.is-loading .tolo-fcart__foot { opacity: .5; pointer-events: none; transition: opacity .2s; }
.tolo .tolo-fcart__view .tolo-empty-view { margin: auto 0; }

.tolo .tolo-flines { list-style: none; margin: 0; padding: 0; }
.tolo .tolo-fline {
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr) auto;
	gap: 14px;
	padding: 14px 0;
	border-bottom: 1px solid var(--tolo-border);
	transition: opacity .2s;
}
.tolo .tolo-fline:last-child { border-bottom: 0; }
.tolo .tolo-fline.is-removing { opacity: .3; }
.tolo .tolo-fline__img {
	width: 72px;
	height: 72px;
	object-fit: contain;
	padding: 6px;
	border-radius: calc(var(--tolo-radius) * .7);
	background: var(--tolo-soft);
	mix-blend-mode: multiply;
}
.tolo .tolo-fline__info { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; }
.tolo .tolo-fline__name { color: var(--tolo-heading); font-size: 14px; font-weight: 500; line-height: 1.35; }
.tolo .tolo-fline__name a { color: inherit; text-decoration: none; }
.tolo .tolo-fline__name a:hover { color: var(--tolo-primary); }
.tolo .tolo-fline__info .tolo-line__price { font-size: 13px; }
.tolo .tolo-fline__info .tolo-stepper { height: 36px; margin-top: 6px; }
.tolo .tolo-fline__info .tolo-stepper__btn { width: 32px; }
.tolo .tolo-fline__end { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 8px; }
.tolo .tolo-fline__end .tolo-line__subtotal { font-size: 14px; }
.tolo .tolo-fline__remove,
.tolo .tolo-fline__remove:hover,
.tolo .tolo-fline__remove:focus {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--tolo-muted);
	font-size: 16px;
	cursor: pointer;
}
.tolo .tolo-fline__remove:hover { background: var(--tolo-soft); color: var(--tolo-danger); }

/* Elementor editor: keep the drawer inside the preview so it can be styled. */
.elementor-editor-active .tolo-fcart.is-open .tolo-fcart__overlay { pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
	.tolo .tolo-fcart__drawer,
	.tolo .tolo-fcart__overlay,
	.tolo .tolo-fcart__fab { transition: none; }
	.tolo .tolo-fcart__fab.is-bump { animation: none; }
}

/* ---------------------------------------------------------------- responsive */

@media (max-width: 1024px) {
	.tolo-shop .tolo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.tolo .tolo-layout { grid-template-columns: minmax(0, 1fr); }
	.tolo .tolo-aside { position: static; }
}

@media (max-width: 767px) {
	.tolo-shop .tolo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.tolo-shop .tolo-toolbar { flex-wrap: wrap; }
	.tolo-shop .tolo-search { flex: 1 1 100%; order: -1; }
	.tolo-shop .tolo-sort.tolo-select { flex: 1 1 0; width: auto; min-width: 0; }
	.tolo-shop .tolo-side__open { flex: 1 1 0; }
	.tolo .tolo-card__body { padding: 12px; }
	.tolo .tolo-card__title { font-size: 14px; }
	.tolo .tolo-card__actions { flex-direction: column; }
	.tolo .tolo-card__actions .tolo-stepper { width: 100%; justify-content: space-between; }
	.tolo.tolo .tolo-card__actions .tolo-stepper__input.tolo-stepper__input { flex: 1; }

	.tolo .tolo-page-title { font-size: 26px; }
	.tolo .tolo-line { grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; }
	.tolo .tolo-line__img { width: 64px; height: 64px; }
	.tolo .tolo-line__qty { grid-column: 2; grid-row: 2; }
	.tolo .tolo-line__end { grid-column: 3; grid-row: 1 / 3; min-width: 0; }

	.tolo .tolo-panel,
	.tolo .tolo-summary { padding: 18px; }
	.tolo .tolo-fields,
	.tolo .tolo-modes,
	.tolo .tolo-confirm__grid { grid-template-columns: minmax(0, 1fr); }
	.tolo .tolo-toast { flex-direction: column; align-items: stretch; text-align: center; gap: 10px; width: calc(100vw - 32px); }

	.tolo-fcart { --tolo-fab-x: 16px; --tolo-fab-y: 16px; --tolo-fab-size: 56px; }
	.tolo .tolo-fcart__head { padding: 14px 16px; }
	.tolo .tolo-fcart__body { padding: 12px 16px; }
	.tolo .tolo-fcart__foot { padding: 4px 16px calc(16px + env(safe-area-inset-bottom)); }
}
