/* Kauppa – layout-tyylit, värit ja fontit periytyvät teemasta */

.uv-item,
.uv-product-card,
.uv-bestsellers,
.uv-recommended,
.uv-cart,
.uv-menu,
.uv-item-list,
.uv-single-item,
.tl-calendar {
	/* font/color: teeman oletukset */
}

.uv-item {
	border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
	padding: 12px;
	margin-bottom: 12px;
	border-radius: 4px;
	display: flex;
	gap: 12px;
	align-items: flex-start;
}

.uv-item img,
.uv-product-card img {
	border-radius: 4px;
	object-fit: cover;
}

.uv-item-body {
	flex: 1;
	min-width: 0;
}

.uv-item-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 8px;
	gap: 12px;
}

.uv-item-title {
	font-size: 1.1em;
}

.uv-item-title a,
.uv-card-link {
	text-decoration: none;
	color: inherit;
}

.uv-item-price {
	text-align: right;
	white-space: nowrap;
}

.uv-item-stock {
	font-size: 0.95em;
	margin-bottom: 8px;
	opacity: 0.9;
}

.uv-add-form {
	display: flex;
	gap: 10px;
	align-items: center;
	flex-wrap: wrap;
}

.uv-qty {
	width: 60px;
}

.uv-qty-lg {
	width: 70px;
}

.uv-price-sale {
	font-weight: bold;
}

.uv-price-original {
	text-decoration: line-through;
	opacity: 0.6;
}

.uv-price-lg {
	font-weight: bold;
	font-size: 1.4em;
}

.uv-service-info {
	background: color-mix(in srgb, currentColor 6%, transparent);
	border: 1px solid color-mix(in srgb, currentColor 15%, transparent);
	padding: 10px;
	border-radius: 4px;
	margin: 8px 0;
}

.uv-service-option {
	margin: 0;
}

.uv-muted {
	opacity: 0.75;
}

.uv-notice {
	margin: 8px 0;
}

.uv-search-form {
	display: flex;
	gap: 8px;
	align-items: center;
	margin: 10px 0 15px;
	flex-wrap: wrap;
}

.uv-search-input {
	padding: 6px 10px;
	width: 250px;
	max-width: 100%;
}

.uv-search-input-flex {
	padding: 8px 12px;
	flex: 1;
	max-width: 300px;
}

.uv-product-layout {
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
}

.uv-product-main {
	flex: 1;
	min-width: 250px;
}

.uv-product-card {
	max-width: 800px;
}

.uv-thumb-sm {
	width: 80px;
	height: 80px;
	object-fit: cover;
	border-radius: 4px;
}

.uv-thumb-md {
	width: 120px;
	height: 120px;
	object-fit: cover;
	border-radius: 6px;
}

.uv-thumb-lg {
	width: 200px;
	height: 200px;
	object-fit: cover;
	border-radius: 4px;
}

.uv-thumb-full {
	width: 100%;
	height: 140px;
	object-fit: cover;
}

.uv-no-image {
	width: 100%;
	height: 140px;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0.55;
	border: 1px dashed color-mix(in srgb, currentColor 25%, transparent);
	border-radius: 4px;
}

.uv-grid-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 16px;
}

.uv-card {
	display: block;
	text-decoration: none;
	color: inherit;
	border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
	border-radius: 8px;
	overflow: hidden;
}

.uv-card-body {
	padding: 12px;
}

.uv-card-title {
	display: block;
	font-size: 0.95em;
	margin-bottom: 6px;
	line-height: 1.3;
}

.uv-stack {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.uv-rec-row {
	display: flex;
	gap: 16px;
	border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
	border-radius: 8px;
	padding: 16px;
	align-items: flex-start;
}

.uv-rec-thumb {
	flex-shrink: 0;
}

.uv-table {
	width: 100%;
	border-collapse: collapse;
}

.uv-table th,
.uv-table td {
	padding: 8px;
}

.uv-table thead th {
	text-align: left;
	border-bottom: 2px solid color-mix(in srgb, currentColor 25%, transparent);
}

.uv-table tbody tr {
	border-bottom: 1px solid color-mix(in srgb, currentColor 12%, transparent);
}

.uv-table .num {
	text-align: center;
}

.uv-single-item {
	border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
	padding: 15px;
	margin: 15px 0;
	border-radius: 4px;
}

.uv-categories-list ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.uv-categories-list li {
	margin: 6px 0;
}

.uv-menu {
	display: flex;
	justify-content: space-between;
	align-items: stretch;
	margin: 0 0 20px;
	border-bottom: 1px solid color-mix(in srgb, currentColor 22%, transparent);
}

.uv-menu > ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
}

.uv-menu > ul > li {
	margin: 0;
	position: relative;
}

.uv-menu a {
	display: block;
	padding: 12px 18px;
	text-decoration: none;
	color: inherit;
	font-weight: 500;
}

.uv-menu a:hover,
.uv-menu a:focus {
	background: color-mix(in srgb, currentColor 8%, transparent);
}

.uv-menu .uv-cart-wrap {
	margin-left: auto;
}

.uv-menu .uv-cart-link {
	border-left: 1px solid color-mix(in srgb, currentColor 22%, transparent);
	font-weight: 600;
}

.uv-menu ul ul {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 180px;
	z-index: 100;
	list-style: none;
	margin: 0;
	padding: 0;
	/* Canvas/CanvasText = järjestelmän kontrastivarmat värit */
	background-color: Canvas;
	color: CanvasText;
	border: 1px solid color-mix(in srgb, currentColor 20%, transparent);
	border-radius: 0 0 4px 4px;
	box-shadow: 0 4px 12px color-mix(in srgb, currentColor 18%, transparent);
}

.uv-menu ul ul a {
	padding: 10px 14px;
	color: inherit;
	border-bottom: 1px solid color-mix(in srgb, currentColor 12%, transparent);
	font-weight: 400;
}

.uv-breadcrumb {
	margin: 10px 0;
	font-size: 0.95em;
	opacity: 0.85;
}

.uv-section {
	margin: 20px 0;
}

.uv-section-title {
	margin-bottom: 16px;
	font-size: 1.4em;
}

.uv-terms {
	font-size: 0.85em;
	margin-top: 10px;
	opacity: 0.85;
}

.uv-mt {
	margin-top: 15px;
}

.uv-mt-lg {
	margin-top: 25px;
}

.uv-ml {
	margin-left: 6px;
}

.uv-ml-md {
	margin-left: 12px;
}

/* Varauskalenteri – erottuu ilman teeman ylikirjoittavia värejä */
.tl-calendar {
	margin: 20px 0;
}

.tl-slots {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 8px;
	margin-top: 10px;
}

.tl-slot {
	padding: 8px;
	text-align: center;
	border-radius: 4px;
	border: 1px solid color-mix(in srgb, currentColor 28%, transparent);
	color: inherit;
	background: transparent;
	user-select: none;
}

.tl-slot.available {
	cursor: pointer;
}

.tl-slot.available:hover {
	background: color-mix(in srgb, currentColor 10%, transparent);
}

.tl-slot.reserved,
.tl-slot.past {
	opacity: 0.45;
	text-decoration: line-through;
	cursor: not-allowed;
}

.tl-slot.selected {
	outline: 3px solid currentColor;
	outline-offset: 2px;
	font-weight: bold;
	background: color-mix(in srgb, currentColor 12%, transparent);
}

.tl-cal-note {
	font-size: 0.9em;
	opacity: 0.8;
}

.tl-cal-closed {
	font-weight: 600;
}

.uv-cart-form .uv-qty {
	width: 70px;
	text-align: center;
}

.uv-cart-actions {
	margin: 12px 0;
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	align-items: center;
}

.uv-cart-totals-list {
	list-style: none;
	padding: 0;
	margin: 0 0 12px;
}

.uv-cart-totals p {
	margin: 4px 0;
}

.uv-cart-grand-total {
	font-size: 1.1em;
	margin-top: 8px;
}

.uv-order-summary {
	white-space: pre-wrap;
	font-family: inherit;
	border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
	padding: 12px;
	border-radius: 4px;
	overflow-x: auto;
}
