/* VG Eshop – světlý, klidný vzhled. Jedno písmo (systémové, nic se nestahuje),
   jedna výrazná barva a hodně bílého prostoru. */

.vge-product,
.vge-cart,
.vge-checkout,
.vge-thankyou {
	--vge-ink: #14181b;
	--vge-muted: #5e6a70;
	--vge-line: #e3e7e3;
	--vge-surface: #f5f7f4;
	--vge-accent: #14584a;
	--vge-accent-dark: #0e3f35;
	--vge-accent-soft: #e7f0eb;
	--vge-radius: 10px;

	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: var(--vge-ink);
	line-height: 1.55;
}

/* --- tlačítka ------------------------------------------------------- */

.vge-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 13px 24px;
	border: 1px solid transparent;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.vge-btn-primary {
	background: var(--vge-accent);
	color: #fff;
}

.vge-btn-primary:hover,
.vge-btn-primary:focus {
	background: var(--vge-accent-dark);
	color: #fff;
}

.vge-btn-ghost {
	background: #fff;
	border-color: var(--vge-line);
	color: var(--vge-ink);
}

.vge-btn-ghost:hover {
	border-color: var(--vge-ink);
}

.vge-btn:focus-visible,
.vge-thumb:focus-visible,
.vge-qty-btn:focus-visible,
.vge-slider-btn:focus-visible {
	outline: 2px solid var(--vge-accent);
	outline-offset: 2px;
}

/* --- horní část produktu -------------------------------------------- */

.vge-product-top {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
	gap: 48px;
	align-items: start;
}

.vge-media-main {
	margin: 0;
	background: var(--vge-surface);
	border-radius: var(--vge-radius);
	overflow: hidden;
}

.vge-media-main img {
	display: block;
	width: 100%;
	height: auto;
}

.vge-media-placeholder {
	display: block;
	aspect-ratio: 4 / 3;
	background: var(--vge-surface);
}

.vge-thumbs {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
	gap: 10px;
	margin: 10px 0 0;
	padding: 0;
	list-style: none;
}

.vge-thumb {
	display: block;
	width: 100%;
	padding: 0;
	border: 1px solid var(--vge-line);
	border-radius: 8px;
	background: #fff;
	overflow: hidden;
	cursor: pointer;
}

.vge-thumb img {
	display: block;
	width: 100%;
	height: auto;
}

.vge-thumb.is-active {
	border-color: var(--vge-accent);
	box-shadow: 0 0 0 1px var(--vge-accent);
}

/* --- pravý sloupec --------------------------------------------------- */

.vge-title {
	margin: 0 0 12px;
	font-size: clamp(28px, 3vw, 38px);
	line-height: 1.15;
	letter-spacing: -.02em;
	font-weight: 650;
}

.vge-short {
	color: var(--vge-muted);
	font-size: 17px;
}

.vge-short p {
	margin: 0 0 10px;
}

.vge-dimensions {
	display: flex;
	gap: 10px;
	align-items: baseline;
	margin: 18px 0;
	padding: 12px 14px;
	background: var(--vge-surface);
	border-radius: 8px;
	font-size: 15px;
}

.vge-dimensions-label {
	color: var(--vge-muted);
	font-size: 13px;
	letter-spacing: .02em;
}

.vge-price {
	margin: 20px 0 4px;
	display: flex;
	align-items: baseline;
	gap: 10px;
}

.vge-price-value {
	font-size: 30px;
	font-weight: 650;
	letter-spacing: -.01em;
}

.vge-price-note {
	color: var(--vge-muted);
	font-size: 14px;
}

/* --- množstevní slevy ------------------------------------------------ */

.vge-tiers {
	width: 100%;
	margin: 16px 0 22px;
	border-collapse: collapse;
	font-size: 14px;
}

.vge-tiers caption {
	text-align: left;
	color: var(--vge-muted);
	font-size: 13px;
	padding-bottom: 8px;
}

.vge-tiers th,
.vge-tiers td {
	padding: 8px 10px;
	border-bottom: 1px solid var(--vge-line);
	text-align: left;
	font-weight: 400;
}

.vge-tiers th {
	color: var(--vge-muted);
	width: 30%;
}

.vge-tiers tr.is-active {
	background: var(--vge-accent-soft);
}

.vge-tiers tr.is-active th,
.vge-tiers tr.is-active td {
	font-weight: 600;
	color: var(--vge-accent-dark);
}

.vge-saving {
	color: var(--vge-accent);
	font-size: 13px;
	font-weight: 600;
}

/* --- formulář koupě -------------------------------------------------- */

.vge-field {
	display: block;
	margin: 0 0 16px;
}

.vge-field label {
	display: block;
	margin-bottom: 6px;
	font-size: 14px;
	font-weight: 600;
}

.vge-field input[type="text"],
.vge-field input[type="email"],
.vge-field input[type="tel"],
.vge-field input[type="url"],
.vge-field input[type="number"],
.vge-field input[type="file"],
.vge-field textarea {
	width: 100%;
	padding: 11px 13px;
	border: 1px solid var(--vge-line);
	border-radius: 8px;
	background: #fff;
	font-size: 15px;
	font-family: inherit;
	color: inherit;
	box-sizing: border-box;
}

.vge-field input:focus,
.vge-field textarea:focus {
	border-color: var(--vge-accent);
	outline: none;
}

.vge-hint {
	display: block;
	margin-top: 6px;
	color: var(--vge-muted);
	font-size: 13px;
}

.vge-upload-status {
	display: block;
	margin-top: 6px;
	font-size: 13px;
	color: var(--vge-accent);
}

.vge-upload-status.is-error {
	color: #b23c2e;
}

.vge-buy {
	display: flex;
	gap: 12px;
	align-items: stretch;
	margin-top: 20px;
}

.vge-qty {
	display: flex;
	align-items: center;
	border: 1px solid var(--vge-line);
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
}

.vge-qty-btn {
	width: 42px;
	height: 100%;
	min-height: 46px;
	border: 0;
	background: transparent;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	color: var(--vge-ink);
}

.vge-qty-btn:hover {
	background: var(--vge-surface);
}

.vge-qty input {
	width: 56px;
	border: 0;
	text-align: center;
	font-size: 16px;
	font-weight: 600;
	font-family: inherit;
	-moz-appearance: textfield;
	background: transparent;
}

.vge-qty input::-webkit-outer-spin-button,
.vge-qty input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.vge-add {
	flex: 1;
}

.vge-line-total {
	margin: 14px 0 0;
	font-size: 15px;
	color: var(--vge-muted);
}

.vge-line-total strong {
	color: var(--vge-ink);
	font-size: 18px;
	margin-left: 6px;
}

.vge-form-message {
	margin: 12px 0 0;
	font-size: 14px;
	min-height: 20px;
	color: var(--vge-accent);
}

.vge-form-message.is-error {
	color: #b23c2e;
}

/* --- dlouhý popis ---------------------------------------------------- */

.vge-description {
	max-width: 68ch;
	margin: 56px 0 0;
	font-size: 17px;
}

.vge-description h2 {
	margin: 36px 0 12px;
	font-size: 24px;
	letter-spacing: -.01em;
}

.vge-description img {
	max-width: 100%;
	height: auto;
	border-radius: var(--vge-radius);
}

/* --- podobné produkty ------------------------------------------------ */

.vge-related {
	margin-top: 64px;
	padding-top: 32px;
	border-top: 1px solid var(--vge-line);
}

.vge-related-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 20px;
}

.vge-related-head h2 {
	margin: 0;
	font-size: 22px;
	letter-spacing: -.01em;
}

.vge-slider-nav {
	display: flex;
	gap: 8px;
}

.vge-slider-btn {
	width: 40px;
	height: 40px;
	border: 1px solid var(--vge-line);
	border-radius: 50%;
	background: #fff;
	cursor: pointer;
	font-size: 16px;
	color: var(--vge-ink);
}

.vge-slider-btn:hover {
	border-color: var(--vge-ink);
}

.vge-slider-btn[disabled] {
	opacity: .35;
	cursor: default;
}

.vge-slider {
	overflow: hidden;
}

.vge-slider-track {
	display: flex;
	gap: 20px;
	transition: transform .35s ease;
}

.vge-slide {
	flex: 0 0 calc((100% - 60px) / 4);
	min-width: 0;
}

/* --- karta produktu -------------------------------------------------- */

.vge-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 20px;
}

.vge-card-media {
	display: block;
	background: var(--vge-surface);
	border-radius: var(--vge-radius);
	overflow: hidden;
}

.vge-card-media img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	transition: transform .3s ease;
}

.vge-card:hover .vge-card-media img {
	transform: scale(1.03);
}

.vge-card-placeholder {
	display: block;
	aspect-ratio: 1 / 1;
}

.vge-card-body {
	padding: 12px 2px 0;
}

.vge-card-title {
	margin: 0 0 4px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
}

.vge-card-title a {
	color: inherit;
	text-decoration: none;
}

.vge-card-title a:hover {
	text-decoration: underline;
}

.vge-card-dim {
	margin: 0 0 4px;
	color: var(--vge-muted);
	font-size: 13px;
}

.vge-card-price {
	margin: 0;
	font-weight: 600;
}

/* --- košík ----------------------------------------------------------- */

.vge-cart-list {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--vge-line);
}

.vge-cart-item {
	display: grid;
	grid-template-columns: 80px 1fr auto auto 32px;
	gap: 16px;
	align-items: center;
	padding: 16px 0;
	border-bottom: 1px solid var(--vge-line);
}

.vge-cart-media img {
	width: 80px;
	height: 80px;
	object-fit: cover;
	border-radius: 8px;
	display: block;
}

.vge-cart-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.vge-cart-name {
	font-weight: 600;
	color: inherit;
	text-decoration: none;
}

.vge-cart-meta {
	color: var(--vge-muted);
	font-size: 13px;
	overflow-wrap: anywhere;
}

.vge-cart-qty {
	display: flex;
	align-items: center;
	border: 1px solid var(--vge-line);
	border-radius: 8px;
	overflow: hidden;
}

.vge-cart-input {
	width: 48px;
	border: 0;
	text-align: center;
	font-size: 15px;
	font-weight: 600;
	font-family: inherit;
	-moz-appearance: textfield;
	background: transparent;
}

.vge-cart-price {
	font-weight: 600;
	white-space: nowrap;
}

.vge-cart-remove {
	width: 32px;
	height: 32px;
	border: 0;
	background: transparent;
	color: var(--vge-muted);
	font-size: 20px;
	cursor: pointer;
	border-radius: 50%;
}

.vge-cart-remove:hover {
	background: var(--vge-surface);
	color: var(--vge-ink);
}

.vge-cart-foot {
	margin-top: 24px;
	text-align: right;
}

.vge-cart-total {
	display: flex;
	justify-content: flex-end;
	gap: 20px;
	font-size: 20px;
	margin: 0 0 4px;
}

.vge-cart-note {
	color: var(--vge-muted);
	font-size: 14px;
	margin: 0 0 16px;
}

.vge-empty {
	padding: 48px 0;
	text-align: center;
	color: var(--vge-muted);
}

/* --- pokladna -------------------------------------------------------- */

.vge-checkout-form {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 40px;
	align-items: start;
}

.vge-block {
	padding-bottom: 28px;
	margin-bottom: 28px;
	border-bottom: 1px solid var(--vge-line);
}

.vge-block:last-child {
	border-bottom: 0;
}

.vge-block h2 {
	margin: 0 0 16px;
	font-size: 19px;
	letter-spacing: -.01em;
}

.vge-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.vge-field-wide {
	grid-column: 1 / -1;
}

.vge-req {
	color: #b23c2e;
}

.vge-details {
	margin-top: 4px;
}

.vge-details summary {
	cursor: pointer;
	font-size: 14px;
	color: var(--vge-accent);
	margin-bottom: 12px;
}

.vge-options {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.vge-option {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 16px;
	border: 1px solid var(--vge-line);
	border-radius: var(--vge-radius);
	cursor: pointer;
	background: #fff;
}

.vge-option:hover {
	border-color: var(--vge-muted);
}

.vge-option:has(input:checked) {
	border-color: var(--vge-accent);
	background: var(--vge-accent-soft);
}

.vge-option input {
	margin-top: 4px;
	accent-color: var(--vge-accent);
}

.vge-option-body {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.vge-option-label {
	font-weight: 600;
}

.vge-option-desc {
	color: var(--vge-muted);
	font-size: 13px;
}

.vge-option-price {
	font-weight: 600;
	white-space: nowrap;
}

/* [hidden] musí přebít display:flex, jinak se skryté bloky pořád zobrazují */
.vge-pickup[hidden],
.vge-address[hidden],
.vge-line-total[hidden] {
	display: none;
}

.vge-pickup {
	margin: 8px 0 0 32px;
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.vge-pickup .vge-btn {
	padding: 9px 16px;
	font-size: 14px;
}

.vge-pickup-selected {
	font-size: 14px;
	color: var(--vge-accent-dark);
	font-weight: 600;
}

.vge-address {
	margin-top: 20px;
}

.vge-note {
	color: var(--vge-muted);
	font-size: 14px;
	margin: 0 0 12px;
}

.vge-errors {
	padding: 14px 18px;
	margin-bottom: 24px;
	border-radius: var(--vge-radius);
	background: #fdf0ee;
	border: 1px solid #f0cdc7;
	color: #8f2f22;
}

.vge-errors ul {
	margin: 0;
	padding-left: 18px;
}

/* --- souhrn objednávky ------------------------------------------------ */

.vge-summary-box {
	position: sticky;
	top: 24px;
	padding: 24px;
	background: var(--vge-surface);
	border-radius: var(--vge-radius);
}

.vge-summary-box h2 {
	margin: 0 0 16px;
	font-size: 17px;
}

.vge-summary-items {
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
	font-size: 14px;
}

.vge-summary-items li {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 6px 0;
	border-bottom: 1px solid var(--vge-line);
}

.vge-summary-name {
	min-width: 0;
}

.vge-summary-totals {
	margin: 0 0 18px;
	font-size: 15px;
}

.vge-summary-totals div {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 5px 0;
}

.vge-summary-totals dt,
.vge-summary-totals dd {
	margin: 0;
}

.vge-summary-grand {
	margin-top: 8px;
	padding-top: 12px !important;
	border-top: 2px solid var(--vge-ink);
	font-size: 19px;
	font-weight: 650;
}

.vge-terms {
	font-size: 14px;
}

.vge-terms label {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	font-weight: 400;
}

.vge-submit {
	width: 100%;
}

/* --- poděkování ------------------------------------------------------- */

.vge-thankyou h1 {
	font-size: clamp(26px, 3vw, 34px);
	letter-spacing: -.02em;
	margin-bottom: 8px;
}

.vge-thankyou-lead {
	font-size: 18px;
	color: var(--vge-muted);
}

.vge-payinfo,
.vge-recap {
	margin-top: 32px;
	padding: 24px;
	background: var(--vge-surface);
	border-radius: var(--vge-radius);
}

.vge-payinfo h2,
.vge-recap h2 {
	margin: 0 0 14px;
	font-size: 18px;
}

.vge-payinfo dl div {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 6px 0;
	border-bottom: 1px solid var(--vge-line);
}

.vge-payinfo dt,
.vge-payinfo dd {
	margin: 0;
}

.vge-payinfo dd {
	font-weight: 600;
}

/* --- responzivita ----------------------------------------------------- */

@media (max-width: 980px) {
	.vge-product-top,
	.vge-checkout-form {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.vge-summary-box {
		position: static;
	}

	.vge-slide {
		flex: 0 0 calc((100% - 20px) / 2);
	}
}

@media (max-width: 600px) {
	.vge-row {
		grid-template-columns: 1fr;
	}

	.vge-slide {
		flex: 0 0 100%;
	}

	.vge-cart-item {
		grid-template-columns: 64px 1fr 32px;
		grid-template-areas:
			"media info remove"
			"qty qty price";
		row-gap: 12px;
	}

	.vge-cart-media { grid-area: media; }
	.vge-cart-info { grid-area: info; }
	.vge-cart-qty { grid-area: qty; justify-self: start; }
	.vge-cart-price { grid-area: price; justify-self: end; }
	.vge-cart-remove { grid-area: remove; }

	.vge-cart-media img {
		width: 64px;
		height: 64px;
	}

	.vge-buy {
		flex-direction: column;
	}
}

@media (prefers-reduced-motion: reduce) {
	.vge-slider-track,
	.vge-card-media img,
	.vge-btn {
		transition: none;
	}
}
