/*
Theme Name: Nový design e-shopu Víno Polehňa
Theme URI: https://vinopolehna.cz/
Author: CZNeo
Author URI: https://brazda.biz/
Description: Design optimalizovaný pro rychlost a specifickou funkčnost obchodu. Vhodný i pro mobilní zobrazení. 
Version: 2.0
Requires at least: 5.3
Requires PHP: 7.2
Tested up to: 6.7
WC requires at least: 3.0
WC tested up to: 9.6
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vino-theme
Tags: custom-menu, custom-logo, e-commerce, one-column, two-columns, right-sidebar, threaded-comments, translation-ready, blog

Design optimalizovaný pro rychlost a specifickou funkčnost obchodu. Vhodný i pro mobilní zobrazení. 
*/

/* -----------------------------------------------------------------------
   0. Design tokens
------------------------------------------------------------------------ */
:root {
	--vino-accent: #c00205;
	--vino-accent-dark: #8f0104;
	--vino-text: #000000;
	--vino-body-text: #000000;
	--vino-header-bg: #ffffff;
	--vino-footer-bg: #eeeeee;
	--vino-container-width: 1960px;
}

/* -----------------------------------------------------------------------
   0. Reset / base
------------------------------------------------------------------------ */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Oxygen-Sans", Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	font-size: 17px;
	line-height: 1.65;
	color: var(--vino-body-text);
	background: #fff;
}

img,
video,
iframe,
embed,
object {
	max-width: 100%;
}

img {
	height: auto;
}

a {
	color: var(--vino-accent);
	text-decoration: none;
}

a:hover,
a:focus {
	text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	outline: 2px solid var(--vino-accent);
	outline-offset: 2px;
}

ul,
ol {
	margin: 0 0 1.5em 1.5em;
	padding: 0;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 0.6em;
	font-weight: 600;
}

h1 { font-size: 40px; line-height: 1.4em; }
h2 { font-size: 32px; line-height: 1.3em; }
h3 { font-size: 26px; line-height: 1.3em; }
h4 { font-size: 24px; line-height: 1.2em; }
h5 { font-size: 20px; line-height: 1.2em; }
h6 { font-size: 16px; line-height: 1.25em; }

p {
	margin: 0 0 1.5em;
}

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

input,
textarea,
select,
button {
	font-family: inherit;
	font-size: 1em;
}

fieldset {
	border: 1px solid #e2e2e2;
	margin: 0 0 1.5em;
	padding: 0.75em 1em;
}

fieldset legend {
	padding: 0 0.5em;
	font-weight: 600;
}

/* -----------------------------------------------------------------------
   1. Layout / containers
------------------------------------------------------------------------ */
.ast-container {
	max-width: var(--vino-container-width);
	margin: 0 auto;
	padding: 0 24px;
}

.site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	overflow-x: clip;
}

.site-content {
	flex: 1 0 auto;
	padding: 40px 0;
}

.ast-separate-container {
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
}

#primary,
.site-main {
	flex: 1 1 0;
	min-width: 0;
}

.entry-content {
	min-width: 0;
	overflow-wrap: break-word;
}

#secondary.widget-area {
	flex: 0 0 300px;
	max-width: 300px;
}

@media (max-width: 768px) {
	.ast-container {
		padding: 0 16px;
	}

	.site-content {
		padding: 24px 0;
	}

	.ast-separate-container {
		flex-direction: column;
		gap: 24px;
	}

	#primary,
	.site-main {
		flex: 1 1 auto;
		width: 100%;
	}

	#secondary.widget-area {
		flex: 1 1 auto;
		max-width: 100%;
	}
}

/* Screen-reader-only text (skip link, form labels, WooCommerce a11y hints) */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.skip-link.screen-reader-text:focus {
	background: #000;
	color: #fff;
	clip: auto !important;
	display: block;
	height: auto;
	width: auto;
	padding: 10px 16px;
	top: 0;
	left: 10px;
	z-index: 999999;
}

/* -----------------------------------------------------------------------
   2. Header
------------------------------------------------------------------------ */
.site-header {
	background: var(--vino-header-bg);
	border-bottom: 1px solid #eaeaea;
	padding: 18px 0;
}

.site-header-inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 16px;
}

.site-header-center {
	grid-column: 2;
	justify-self: center;
	display: flex;
	align-items: center;
	gap: 24px;
}

.site-header-right {
	grid-column: 3;
	justify-self: end;
	display: flex;
	align-items: center;
	gap: 20px;
}

.site-branding {
	display: flex;
	align-items: center;
	gap: 14px;
}

.site-branding .custom-logo {
	width: 136px;
	max-width: 100%;
	height: auto;
}

.site-title {
	font-size: 35px;
	margin: 0;
	line-height: 1.2;
}

.site-title,
.site-title a {
	color: var(--vino-text);
	font-weight: 600;
	text-decoration: none;
}

.site-description {
	display: none;
}

/* Primary nav row */
.main-navigation {
	display: flex;
	align-items: center;
	gap: 24px;
}

/* The nav's own social icons only show inside the mobile toggle panel;
   desktop uses the separate copy in .site-header-right. */
.main-navigation .site-header-socials {
	display: none;
}

.main-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.main-navigation li {
	position: relative;
}

.main-navigation a {
	display: block;
	padding: 10px 14px;
	color: var(--vino-text);
	font-weight: 700;
	text-decoration: none;
	transition: transform 0.15s ease, color 0.15s ease;
}

.main-navigation a:hover,
.main-navigation a:focus,
.main-navigation .current-menu-item > a {
	color: var(--vino-accent);
	text-decoration: none;
	transform: scale(1.08);
}

.main-navigation ul ul {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	background: #fff;
	border-top: 2px solid var(--vino-accent);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
	min-width: 200px;
	flex-direction: column;
	z-index: 100;
}

.main-navigation ul li:hover > ul,
.main-navigation ul li:focus-within > ul {
	display: flex;
}

.main-navigation ul ul a:hover {
	transform: none;
}

/* Social icons */
.site-header-socials {
	display: flex;
	align-items: center;
	gap: 14px;
}

.site-header-socials a {
	display: inline-flex;
	color: var(--vino-text);
	opacity: 0.8;
}

.site-header-socials a:hover {
	opacity: 1;
	color: var(--vino-accent);
}

.site-header-socials svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

/* Mini-cart */
.site-header-cart {
	display: flex;
	align-items: center;
}

.header-mobile-actions {
	display: none;
}

.site-header-cart .wc-block-mini-cart__button {
	color: var(--vino-text);
	background: transparent;
}

.site-header-cart .wc-block-mini-cart__button:hover,
.site-header-cart .wc-block-mini-cart__button:focus {
	color: var(--vino-accent);
	background: transparent;
}

.site-header-cart .wc-block-mini-cart__badge {
	background: var(--vino-accent);
	color: #fff;
}

button.menu-toggle {
	display: none;
	align-items: center;
	gap: 6px;
	background: #fff;
	color: var(--vino-text);
	border: 1px solid #ccc;
	padding: 8px 12px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
}

button.menu-toggle:hover,
button.menu-toggle:focus {
	background: #fff;
	color: var(--vino-accent);
	border-color: var(--vino-accent);
}

button.menu-toggle svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
	display: block;
}

@media (max-width: 768px) {
	.site-header-inner {
		display: flex;
		justify-content: space-between;
		flex-wrap: wrap;
		gap: 10px;
		position: relative;
	}

	.site-header-center {
		display: contents;
	}

	.site-header-right {
		display: none;
	}

	.site-branding .custom-logo {
		width: 88px;
	}

	.header-mobile-actions {
		display: flex;
		align-items: center;
		gap: 8px;
		margin-left: auto;
	}

	button.menu-toggle {
		display: inline-flex;
	}

	.main-navigation {
		width: 100%;
		display: none;
		flex-direction: column;
		align-items: flex-start;
		gap: 0;
	}

	.main-navigation.toggled {
		display: flex;
	}

	.main-navigation .site-header-socials {
		display: flex;
	}

	.main-navigation ul {
		flex-direction: column;
		width: 100%;
	}

	.main-navigation a:hover,
	.main-navigation a:focus,
	.main-navigation .current-menu-item > a {
		transform: none;
	}

	.main-navigation ul ul {
		position: static;
		box-shadow: none;
		display: flex;
	}

	.main-navigation .site-header-socials {
		padding: 14px;
	}
}

/* -----------------------------------------------------------------------
   3. Content / entries
------------------------------------------------------------------------ */
.entry-title a {
	color: inherit;
}

.entry-meta {
	color: #777;
	font-size: 0.85em;
	margin-bottom: 1em;
}

.entry-meta a {
	color: inherit;
}

article.hentry {
	margin-bottom: 40px;
	padding-bottom: 40px;
	border-bottom: 1px solid #eee;
}

article.hentry:last-child {
	border-bottom: none;
}

.entry-thumbnail {
	margin-bottom: 1em;
}

.entry-thumbnail img {
	width: 100%;
	object-fit: cover;
}

.page-links {
	clear: both;
	margin: 0 0 1.5em;
}

/* Pagination */
.pagination,
.navigation.pagination {
	margin: 30px 0;
}

.pagination .page-numbers {
	display: inline-block;
	padding: 8px 14px;
	margin-right: 4px;
	border: 1px solid #ddd;
	text-decoration: none;
	color: #333;
}

.pagination .page-numbers.current {
	background: var(--vino-accent);
	border-color: var(--vino-accent);
	color: #fff;
}

/* Comments */
.comment-list {
	list-style: none;
	margin: 0;
}

.comment-list .children {
	list-style: none;
	margin-left: 40px;
}

.comment-body {
	margin-bottom: 24px;
	padding-bottom: 24px;
	border-bottom: 1px solid #eee;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	max-width: 500px;
	padding: 10px;
	border: 1px solid #ccc;
	margin-bottom: 12px;
}

.comment-reply-title {
	margin-top: 0;
}

/* Widgets / sidebar */
.widget {
	margin-bottom: 2em;
}

.widget-title {
	font-size: 1.1em;
	border-bottom: 2px solid #eee;
	padding-bottom: 8px;
	margin-bottom: 1em;
}

.widget ul {
	list-style: none;
	margin-left: 0;
}

.widget ul li {
	padding: 6px 0;
	border-bottom: 1px solid #f2f2f2;
}

/* Search form */
.search-form {
	display: flex;
	gap: 8px;
}

.search-form .search-field {
	flex: 1;
	padding: 10px;
	border: 1px solid #ccc;
}

.search-form .search-submit {
	padding: 10px 18px;
	background: var(--vino-accent);
	color: #fff;
	border: none;
	cursor: pointer;
}

/* Buttons / inputs, general */
button,
input[type="submit"],
input[type="button"],
.button {
	background: var(--vino-accent);
	color: #fff;
	border: none;
	padding: 15px 30px;
	line-height: 1em;
	cursor: pointer;
	display: inline-block;
}

button:hover,
input[type="submit"]:hover,
.button:hover {
	background: var(--vino-accent-dark);
	color: #fff;
}

/* -----------------------------------------------------------------------
   4. Footer
------------------------------------------------------------------------ */
.site-footer {
	background: var(--vino-footer-bg);
	border-top: 1px solid #e2e2e2;
	padding: 30px 0;
	margin-top: 40px;
	color: #555;
	font-size: 0.9em;
	text-align: center;
	flex-shrink: 0;
}

.site-footer a {
	color: #555;
}

.footer-payment-credit {
	margin: 0 0 1.5em;
	color: #777;
}

.footer-payment-credit img {
	display: block;
	margin: 8px auto 0;
	max-height: 40px;
	width: auto;
}

/* -----------------------------------------------------------------------
   5. WooCommerce (standard support tweaks)
------------------------------------------------------------------------ */
.woocommerce-content-wrap {
	width: 100%;
}

/* Single product: image + summary side by side */
div.product {
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
}

div.product div.images,
div.product div.summary {
	flex: 1 1 400px;
	min-width: 0;
}

div.product > .woocommerce-tabs,
div.product > .related.products {
	flex: 1 1 100%;
}

div.product div.images img {
	width: 100%;
	height: auto;
	display: block;
}

.woocommerce-product-gallery {
	position: relative;
	max-width: 100%;
	overflow: hidden;
}

.woocommerce-product-gallery .flex-viewport {
	touch-action: pan-y pinch-zoom;
	transform-style: preserve-3d;
}

.woocommerce-product-gallery__wrapper {
	transition: all cubic-bezier(0.795, -0.035, 0, 1) 0.5s;
	margin: 0;
	padding: 0;
	list-style: none;
}

.woocommerce-product-gallery__wrapper .zoomImg {
	background-color: #fff;
	opacity: 0;
}

.woocommerce-product-gallery__image--placeholder {
	border: 1px solid #f2f2f2;
}

.woocommerce-product-gallery__image a {
	display: block;
	outline-offset: -2px;
}

.woocommerce-product-gallery__video .wp-post-video {
	display: block;
	width: 100%;
	height: auto;
}

/* Fallback layout before FlexSlider initializes (or when JS is disabled) */
.woocommerce-product-gallery__image:nth-child(n + 2) {
	width: 25%;
	display: inline-block;
}

.woocommerce-product-gallery__trigger {
	position: absolute;
	top: 0.5em;
	right: 0.5em;
	font-size: 2em;
	width: 36px;
	height: 36px;
	padding: 0;
	background: #fff;
	color: var(--vino-text);
	border: none;
	border-radius: 50%;
	box-sizing: content-box;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	text-indent: -9999px;
	text-decoration: none;
	cursor: pointer;
	z-index: 99;
}

.woocommerce-product-gallery__trigger:hover,
.woocommerce-product-gallery__trigger:focus {
	color: var(--vino-accent);
	text-decoration: none;
}

.woocommerce-product-gallery__trigger::before {
	content: "";
	display: block;
	width: 10px;
	height: 10px;
	border: 2px solid currentColor;
	border-radius: 100%;
	position: absolute;
	top: 9px;
	left: 9px;
	box-sizing: content-box;
}

.woocommerce-product-gallery__trigger::after {
	content: "";
	display: block;
	width: 2px;
	height: 8px;
	background: currentColor;
	border-radius: 6px;
	position: absolute;
	top: 19px;
	left: 22px;
	transform: rotate(-45deg);
	box-sizing: content-box;
}

.woocommerce-product-gallery__trigger span[aria-hidden="true"] {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	left: 50%;
	margin: -1px;
	overflow: hidden;
	position: absolute;
	top: 50%;
	width: 1px;
}

/* FlexSlider thumbnail strip below the main product image */
.woocommerce-product-gallery .flex-control-thumbs {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
	list-style: none;
	margin: 12px 0 0;
	padding: 0;
}

.woocommerce-product-gallery--columns-2 .flex-control-thumbs {
	grid-template-columns: repeat(2, 1fr);
}

.woocommerce-product-gallery--columns-3 .flex-control-thumbs {
	grid-template-columns: repeat(3, 1fr);
}

.woocommerce-product-gallery--columns-4 .flex-control-thumbs {
	grid-template-columns: repeat(4, 1fr);
}

.woocommerce-product-gallery--columns-5 .flex-control-thumbs {
	grid-template-columns: repeat(5, 1fr);
}

.woocommerce-product-gallery .flex-control-thumbs li {
	margin: 0;
	list-style: none;
	position: relative;
}

.woocommerce-product-gallery .flex-control-thumbs li img {
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	display: block;
	cursor: pointer;
	opacity: 0.55;
	margin: 0;
	transition: opacity 0.2s ease;
}

.woocommerce-product-gallery .flex-control-thumbs li img.flex-active,
.woocommerce-product-gallery .flex-control-thumbs li img:hover {
	opacity: 1;
}

.woocommerce-product-gallery .flex-control-thumbs li.woocommerce-product-gallery__video-thumbnail::before {
	content: "\25B6";
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	z-index: 1;
	color: #fff;
	font-size: 1.4em;
	text-shadow: 0 0 0.25em rgba(0, 0, 0, 0.8);
	pointer-events: none;
}

.woocommerce-product-gallery .flex-control-thumbs li.woocommerce-product-gallery__video-thumbnail .woocommerce-product-gallery__video-thumbnail-preview {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	pointer-events: none;
}

div.product .product_title {
	font-size: 2rem;
	line-height: 1.25;
	margin: 0 0 0.4em;
	text-align: left;
}

div.product p.price {
	color: var(--vino-text);
	font-size: 1.5rem;
	font-weight: 700;
	margin: 0 0 0.2em;
}

div.product p.price ins {
	background: inherit;
	font-weight: 700;
	text-decoration: inherit;
}

div.product p.price del {
	opacity: 0.5;
	font-weight: 400;
}

.woocommerce div.product form.cart {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 1.5em;
}

.woocommerce div.product form.cart .quantity {
	margin: 0;
}

button.single_add_to_cart_button {
	padding: 10px 20px;
}

.product_meta {
	border-top: 1px solid #eaeaea;
	padding-top: 0.5em;
	margin: 0 0 0.8em;
	font-size: 0.9em;
}

.product_meta > span {
	display: inline-block;
	margin-right: 15px;
	font-weight: 500;
}

.product_meta > span > * {
	font-weight: 400;
}

.stock {
	display: block;
	font-size: 0.9em;
	line-height: 1.3;
	margin-bottom: 0.8em;
	color: #77a464;
}

.out-of-stock {
	color: red;
}

.woocommerce-message,
.woocommerce-error,
.woocommerce-info,
.woocommerce-notice {
	list-style: none;
	margin: 0 0 1.5em;
	padding: 1em 1.5em;
	background: #f7f7f7;
	border-left: 4px solid var(--vino-accent);
}

.woocommerce-error,
.woocommerce-notice--error {
	background: #fdecea;
	border-left: 5px solid #c0392b;
	color: #7a1f1f;
	font-weight: 600;
}

.woocommerce-error li::before {
	content: "⚠ ";
}

.woocommerce-message a.button,
.woocommerce-notice a.button {
	float: none;
	display: inline-block;
	margin-left: 1em;
}

.woocommerce ul.products {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (min-width: 768px) and (max-width: 976px) {
	.woocommerce ul.products.columns-4 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 977px) {
	.woocommerce ul.products {
		grid-template-columns: repeat(6, 1fr);
	}

	.woocommerce ul.products.columns-4 {
		grid-template-columns: repeat(4, 1fr);
	}
}

.woocommerce ul.products li.product {
	display: flex;
	flex-direction: column;
	position: relative;
	min-width: 0;
	padding-bottom: 1em;
	text-align: left;
}

.woocommerce ul.products li.product > a.add_to_cart_button {
	position: relative;
	margin-top: auto;
}

.woocommerce ul.products li.product > .quantity {
	align-self: center;
	margin-top: auto;
	margin-bottom: 10px;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-size: 1em;
	margin: 0 0 0.5em;
	padding: 0;
	text-align: center;
}

.woocommerce ul.products li.product .price {
	display: block;
	color: var(--vino-text);
	font-weight: 700;
	font-size: 0.9em;
	line-height: 1.3;
	text-align: center;
	margin-bottom: 0.5em;
}

.woocommerce ul.products li.product .price del {
	color: inherit;
	opacity: 0.5;
	display: inline-block;
}

.woocommerce ul.products li.product .price ins {
	background: none;
	font-weight: 700;
	text-decoration: inherit;
}

.vino-quick-add {
	position: absolute;
	top: 12px;
	right: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: #fff;
	border-radius: 50%;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	color: var(--vino-text);
	opacity: 0;
	transform: translateY(-6px);
	transition: opacity 0.15s ease, transform 0.15s ease;
}

.woocommerce ul.products li.product:hover .vino-quick-add,
.woocommerce ul.products li.product:focus-within .vino-quick-add {
	opacity: 1;
	transform: translateY(0);
}

.vino-quick-add:hover {
	color: var(--vino-accent);
}

.vino-quick-add svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

.vino-quick-add.vino-added {
	opacity: 1;
	transform: translateY(0);
	background: #3a7d44;
	color: #fff;
}

.woocommerce ul.products li.product a.button.add_to_cart_button.vino-added {
	background: #3a7d44;
	color: transparent;
}

.woocommerce ul.products li.product a.button.add_to_cart_button.vino-added::after {
	content: "✓ Přidáno";
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 1rem;
}

/* WooCommerce's own auto-inserted "Zobrazit košík" link: the .vino-added
   state above already gives clear feedback, so this stray, unstyled link
   (which can also land in an awkward spot when it's the floating quick-add
   icon that was clicked) is just hidden outright rather than depending on
   JS timing to remove it. */
.woocommerce ul.products li.product .added_to_cart {
	display: none !important;
}

.woocommerce ul.products li.product img {
	width: 100%;
	display: block;
}

.woocommerce div.product .woocommerce-tabs {
	padding-top: 2em;
	margin-bottom: 4em;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
	list-style: none;
	margin: 0 0 1em;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75em 1.5em;
	border-bottom: 1px solid #eaeaea;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
	padding: 0;
	margin-bottom: -1px;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
	display: inline-block;
	padding: 0.5em 0;
	font-weight: 700;
	color: #515151;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
	color: var(--vino-accent);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
	border-bottom: 2px solid var(--vino-accent);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
	color: var(--vino-accent);
}

.woocommerce div.product .woocommerce-tabs .panel {
	margin: 0 0 1.2em;
	padding: 0;
}

.woocommerce div.product .woocommerce-tabs .shop_attributes {
	border-collapse: collapse;
	width: 100%;
}

.woocommerce div.product .woocommerce-tabs .shop_attributes th,
.woocommerce div.product .woocommerce-tabs .shop_attributes td {
	padding: 0.67em 1.34em;
	border: 1px solid #eaeaea;
}

.woocommerce div.product .woocommerce-tabs .shop_attributes th {
	text-align: left;
	font-weight: 700;
}

.woocommerce span.onsale {
	background: var(--vino-accent);
	color: #fff;
	border-radius: 0;
	min-height: auto;
	min-width: auto;
	padding: 4px 10px;
	line-height: 1.4;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
	background: var(--vino-accent);
	color: #fff;
	border-radius: 0;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
	background: var(--vino-accent-dark);
	color: #fff;
}

.woocommerce table.shop_table {
	border-collapse: collapse;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
	padding: 10px;
	border: 1px solid #eee;
}

@media (max-width: 767px) {
	.woocommerce ul.products {
		grid-template-columns: 1fr;
	}
}

/* Quantity stepper */
.quantity {
	display: inline-flex;
	align-items: stretch;
}

.quantity .qty {
	width: 50px;
	text-align: center;
	border: 1px solid #ddd;
	border-left: 0;
	border-right: 0;
	padding: 10px 4px;
	-moz-appearance: textfield;
}

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

.quantity .qty-button {
	background: #f2f2f2;
	color: var(--vino-text);
	border: 1px solid #ddd;
	padding: 0 14px;
	cursor: pointer;
	line-height: 1;
}

.quantity .qty-button:hover {
	background: #e6e6e6;
}

/* -----------------------------------------------------------------------
   5b. Cart
------------------------------------------------------------------------ */
.woocommerce-cart-form {
	width: 100%;
}

.woocommerce-cart-form table.cart {
	margin-bottom: 2em;
}

.woocommerce-cart-form table.cart td {
	vertical-align: middle;
}

.woocommerce-cart-form table.cart td.product-thumbnail img {
	width: 80px;
	display: block;
}

.woocommerce-cart-form table.cart td.product-remove a.remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	color: var(--vino-text);
	text-decoration: none;
	font-size: 1.2em;
	line-height: 1;
}

.woocommerce-cart-form table.cart td.product-remove a.remove:hover {
	color: var(--vino-accent);
}

.woocommerce-cart-form table.cart td.actions {
	text-align: right;
}

.cart-collaterals {
	display: flex;
	justify-content: flex-end;
}

.cart-collaterals .cart_totals {
	width: 100%;
	max-width: 420px;
	padding: 24px;
	background: #f7f7f7;
}

.cart_totals h2 {
	font-size: 20px;
	margin: 0 0 0.75em;
}

.cart_totals table.shop_table {
	width: 100%;
}

.cart_totals table.shop_table th {
	text-align: left;
	font-weight: 700;
}

.cart_totals table.shop_table th,
.cart_totals table.shop_table td {
	border: none;
	border-bottom: 1px solid #e2e2e2;
	padding: 10px 0;
}

.cart_totals table.shop_table tr:last-child th,
.cart_totals table.shop_table tr:last-child td {
	border-bottom: none;
}

.cart_totals .order-total .amount {
	font-weight: 700;
	font-size: 1.15em;
}

.woocommerce-shipping-methods {
	list-style: none;
	margin: 0;
	padding: 0;
}

.shipping-calculator-button {
	display: inline-block;
	margin-top: 0.5em;
	font-size: 0.9em;
}

.wc-proceed-to-checkout {
	margin-top: 1.5em;
}

.wc-proceed-to-checkout a.checkout-button {
	display: block;
	text-align: center;
}

/* Free-shipping progress bar (custom "mod-free-shipping" plugin markup):
   a friendly nudge, not an alert — kept visually low-key so it never
   competes with a real error like the minimum-order-quantity notice. */
.fs-progress-bar-wrapper {
	border-left: none !important;
	background: #fbf6ec !important;
	border: 1px solid #ecdfc0;
	color: var(--vino-text);
	font-weight: 400;
	text-align: center;
}

.fs-progress-bar-message::before {
	content: "🚚 ";
}

.fs-progress-bar {
	background: #e2e2e2;
	height: 8px;
	margin-top: 10px;
	overflow: hidden;
}

.fs-progress-bar-fill {
	height: 100%;
	background: var(--vino-accent);
	color: transparent;
	font-size: 0;
}

@media (max-width: 768px) {
	.woocommerce table.shop_table_responsive thead,
	.woocommerce table.shop_table_responsive tbody th {
		display: none;
	}

	.woocommerce table.shop_table_responsive tr {
		display: block;
		border: 1px solid #eee;
		margin-bottom: 16px;
	}

	.woocommerce table.shop_table_responsive tr:last-child {
		margin-bottom: 0;
	}

	.woocommerce table.shop_table_responsive td {
		display: flex;
		justify-content: space-between;
		align-items: center;
		flex-wrap: wrap;
		gap: 8px 12px;
		text-align: right;
		border: none;
		border-bottom: 1px solid #f0f0f0;
		padding: 10px 12px;
	}

	.woocommerce table.shop_table_responsive td:last-child {
		border-bottom: none;
	}

	.woocommerce table.shop_table_responsive td::before {
		content: attr(data-title);
		font-weight: 700;
		text-align: left;
		flex-shrink: 0;
	}

	.woocommerce table.shop_table_responsive td.product-remove::before,
	.woocommerce table.shop_table_responsive td.product-thumbnail::before,
	.woocommerce table.shop_table_responsive td.actions::before,
	.woocommerce table.shop_table_responsive td.order-actions::before {
		display: none;
	}

	.woocommerce table.shop_table_responsive td.product-remove {
		justify-content: flex-end;
	}

	.woocommerce-cart-form table.cart td.product-thumbnail {
		display: none;
	}

	.woocommerce-cart-form table.cart td.actions {
		display: block;
		text-align: left;
	}

	.woocommerce-cart-form table.cart td.actions .coupon {
		display: flex;
		flex-wrap: wrap;
		gap: 8px;
		margin-bottom: 12px;
	}

	.woocommerce-cart-form table.cart td.actions .coupon .input-text {
		flex: 1 1 140px;
		min-width: 0;
		padding: 10px;
		border: 1px solid #ccc;
	}

	.woocommerce-cart-form table.cart td.actions > .button {
		width: 100%;
	}

	.cart-collaterals {
		justify-content: stretch;
	}

	.cart-collaterals .cart_totals {
		max-width: 100%;
		padding: 16px;
	}

	.cart_totals table.shop_table_responsive tr {
		border: none;
		margin-bottom: 0;
	}

	.cart_totals table.shop_table_responsive td {
		padding: 10px 0;
	}
}

/* -----------------------------------------------------------------------
   5c. Checkout
------------------------------------------------------------------------ */
.woocommerce-checkout .col2-set {
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
}

.woocommerce-checkout .col2-set .col-1,
.woocommerce-checkout .col2-set .col-2 {
	flex: 1 1 400px;
	min-width: 0;
}

.woocommerce-checkout h3 {
	font-size: 20px;
	margin-bottom: 0.75em;
}

.woocommerce-checkout .form-row {
	margin-bottom: 1em;
}

.woocommerce-checkout .form-row label {
	display: block;
	margin-bottom: 0.35em;
	font-size: 0.9em;
}

.woocommerce-checkout .form-row .required {
	color: var(--vino-accent);
	text-decoration: none;
}

.woocommerce-checkout .input-text,
.woocommerce-checkout select {
	width: 100%;
	padding: 10px;
	border: 1px solid #ccc;
}

.woocommerce-checkout .form-row-first,
.woocommerce-checkout .form-row-last {
	display: inline-block;
	width: 48%;
	vertical-align: top;
}

.woocommerce-checkout .form-row-first {
	margin-right: 3%;
}

@media (max-width: 768px) {
	.woocommerce-checkout .col2-set {
		flex-direction: column;
		gap: 24px;
	}

	.woocommerce-checkout .col2-set .col-1,
	.woocommerce-checkout .col2-set .col-2 {
		flex: 1 1 auto;
		width: 100%;
	}

	#order_review {
		padding: 16px;
	}

	#order_review table.shop_table th,
	#order_review table.shop_table td {
		word-break: break-word;
	}

	.wc_payment_methods .wc_payment_method {
		padding: 10px 12px;
	}
}

@media (max-width: 600px) {
	.woocommerce-checkout .form-row-first,
	.woocommerce-checkout .form-row-last {
		display: block;
		width: 100%;
		margin-right: 0;
	}
}

#order_review {
	margin-top: 24px;
	padding: 24px;
	background: #f7f7f7;
}

#order_review table.shop_table {
	width: 100%;
	margin-bottom: 1.5em;
}

#order_review table.shop_table th,
#order_review table.shop_table td {
	border: none;
	border-bottom: 1px solid #e2e2e2;
	padding: 10px 0;
}

#order_review table.shop_table tr:last-child th,
#order_review table.shop_table tr:last-child td {
	border-bottom: none;
}

.wc_payment_methods {
	list-style: none;
	margin: 0 0 1.5em;
	padding: 0;
}

.wc_payment_methods .wc_payment_method {
	border: 1px solid #e2e2e2;
	margin-bottom: 8px;
	padding: 12px 16px;
}

.wc_payment_methods .wc_payment_method label {
	font-weight: 700;
	cursor: pointer;
}

.wc_payment_methods .wc_payment_method label img {
	height: 20px;
	vertical-align: middle;
	margin-left: 8px;
}

.wc_payment_methods .payment_box {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid #eee;
	font-size: 0.9em;
	color: #555;
}

.wc_payment_methods .wc_payment_method #toret-comgate-payment-methods {
	border: 1px solid #e2e2e2;
	margin: 12px 0 0;
	padding: 12px;
}

.wc_payment_methods .wc_payment_method .comgate_bank_select {
	font-weight: 400;
}

.woocommerce-terms-and-conditions-wrapper {
	margin: 1.5em 0;
	font-size: 0.9em;
}

#place_order {
	width: 100%;
	padding: 15px 30px;
}

#place_order:disabled,
.wc-proceed-to-checkout .checkout-button.vino-disabled {
	background: #ccc;
	color: #888;
	cursor: not-allowed;
}

.wc-proceed-to-checkout .checkout-button.vino-disabled:hover {
	background: #ccc;
}

/* -----------------------------------------------------------------------
   5d. Order received / thank-you
------------------------------------------------------------------------ */
.woocommerce ul.order_details {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 0;
	list-style: none;
	margin: 0 0 2em;
	padding: 0;
}

.woocommerce ul.order_details li {
	margin: 0 2em 0 0;
	padding: 0 2em 0 0;
	border-right: 1px dashed #d5d5d5;
	text-transform: uppercase;
	font-size: 0.75em;
	line-height: 1.2;
	list-style: none;
}

.woocommerce ul.order_details li:last-of-type {
	border-right: none;
	margin-right: 0;
	padding-right: 0;
}

.woocommerce ul.order_details li strong {
	display: block;
	font-size: 1.35em;
	text-transform: none;
	line-height: 1.5;
	color: var(--vino-text);
}

.woocommerce .woocommerce-order-details,
.woocommerce .woocommerce-customer-details,
.woocommerce .woocommerce-order-downloads {
	margin-bottom: 2em;
}

.woocommerce .woocommerce-order-details :last-child,
.woocommerce .woocommerce-customer-details :last-child,
.woocommerce .woocommerce-order-downloads :last-child {
	margin-bottom: 0;
}

.woocommerce .woocommerce-order h2.woocommerce-order-details__title,
.woocommerce .woocommerce-order h2.woocommerce-column__title,
.woocommerce .woocommerce-customer-details .woocommerce-column__title {
	background: #f7f7f7;
	padding: 0.75em 1em;
	margin-bottom: 0;
	font-size: 1.25rem;
	border: 1px solid #e2e2e2;
	border-bottom: none;
}

.woocommerce .woocommerce-order h2.wc-bacs-bank-details-heading {
	font-size: 1.4rem;
	border-top: 2px solid #e2e2e2;
	padding-top: 0.75em;
}

.woocommerce .wc-bacs-bank-details-account-name {
	font-weight: 700;
}

.woocommerce .woocommerce-order-details table.order_details {
	border: 1px solid #e2e2e2;
}

.woocommerce .woocommerce-order-details table.order_details th,
.woocommerce .woocommerce-order-details table.order_details td {
	text-align: left;
	padding: 12px 16px;
	border-color: #e2e2e2;
}

.woocommerce .woocommerce-order-details table.order_details th.product-total,
.woocommerce .woocommerce-order-details table.order_details td.product-total,
.woocommerce .woocommerce-order-details table.order_details tfoot td {
	text-align: right;
}

.woocommerce .woocommerce-columns--addresses {
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
}

.woocommerce .woocommerce-columns--addresses .woocommerce-column {
	flex: 1 1 320px;
	min-width: 0;
}

.woocommerce .woocommerce-customer-details address {
	font-style: normal;
	margin: 0;
	padding: 1em;
	border: 1px solid #e2e2e2;
	text-align: left;
	line-height: 1.65;
}

.woocommerce .woocommerce-customer-details .woocommerce-customer-details--phone,
.woocommerce .woocommerce-customer-details .woocommerce-customer-details--email {
	margin: 0.5em 0 0;
}

@media (max-width: 600px) {
	.woocommerce ul.order_details {
		flex-direction: column;
		gap: 12px;
	}

	.woocommerce ul.order_details li {
		margin-right: 0;
		padding-right: 0;
		padding-bottom: 12px;
		border-right: none;
		border-bottom: 1px dashed #d5d5d5;
	}

	.woocommerce ul.order_details li:last-of-type {
		padding-bottom: 0;
		border-bottom: none;
	}
}

/* -----------------------------------------------------------------------
   6. Site-specific content
------------------------------------------------------------------------ */

/* Page/post entry titles (except single-product titles) and WooCommerce breadcrumbs are hidden site-wide. */
.entry-title:not(.product_title) {
	display: none;
}

.woocommerce-breadcrumb {
	display: none;
}

.site-main {
	margin: 0 auto;
	width: 99%;
	text-align: justify;
}

.jumbotron {
	padding: 0 !important;
	margin: 0 !important;
}

/* Lightweight grid, visibility & carousel utilities (replaces Bootstrap 4) */
.container-fluid {
	width: 100%;
	padding-left: 15px;
	padding-right: 15px;
	margin-left: auto;
	margin-right: auto;
}

.row {
	display: flex;
	flex-wrap: wrap;
	margin-left: -15px;
	margin-right: -15px;
}

.col-sm {
	position: relative;
	width: 100%;
	min-width: 0;
	padding-left: 15px;
	padding-right: 15px;
}

@media (min-width: 576px) {
	.col-sm {
		flex-basis: 0;
		flex-grow: 1;
		max-width: 100%;
	}
}

.flex-column-reverse {
	flex-direction: column-reverse;
}

@media (min-width: 576px) {
	.flex-sm-row {
		flex-direction: row;
	}
}

.img-fluid {
	max-width: 100%;
	height: auto;
	display: block;
}

.bg-white {
	background-color: #fff;
}

.d-none {
	display: none !important;
}

@media (min-width: 576px) {
	.d-sm-block {
		display: block !important;
	}
}

@media (min-width: 768px) {
	.d-md-none {
		display: none !important;
	}
}

@media (min-width: 992px) {
	.d-lg-none {
		display: none !important;
	}
}

@media (min-width: 1200px) {
	.d-xl-none {
		display: none !important;
	}
}

.carousel {
	display: grid;
	position: relative;
	overflow: hidden;
}

.carousel-item {
	grid-area: 1 / 1;
	opacity: 0;
	transition: opacity 0.6s ease-in-out;
	pointer-events: none;
}

.carousel-item.active {
	opacity: 1;
	z-index: 1;
	pointer-events: auto;
}

.carousel-item img {
	width: 100%;
	height: auto;
	display: block;
}

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

.archive .quantity {
	display: inline-block;
}

/* Front page (page-2.php) */
.uvodni-strana * {
	margin: 0 !important;
	padding: 0 !important;
}

.uvodni-strana p,
.uvodni-strana h2 {
	margin: 20px !important;
	text-align: justify;
}

.uvodni-strana h2,
.kontaktmini p {
	text-align: center;
}

.uvodni-strana p {
	line-height: 1.5em;
	font-size: 1em;
}

.uvodni-strana p a,
.kontakt p a {
	color: #073a66;
	font-weight: bold;
	font-size: 1.3em;
	display: block;
	text-align: center;
	line-height: 4em;
	background-image: url("img/zobak.png") !important;
	background-repeat: no-repeat;
	background-position-y: top;
	background-position-x: center;
	text-decoration: none;
}

.uvodni-strana p a:hover,
.kontakt p a:hover {
	text-decoration: none;
	color: #466180;
}

.pozadi-hlavni {
	background-image: url("img/pozadi-hlavni.png");
	background-repeat: no-repeat;
	background-position-y: 115%;
	background-position-x: 108%;
}

.pozadi-vinice {
	background-image: url("img/pozadi-vinice.png");
	background-repeat: no-repeat;
	background-position-y: 110%;
	background-position-x: -7%;
}

.pozadi-vina {
	background-image: url("img/pozadi-vina.png");
	background-repeat: no-repeat;
	background-position-y: 115%;
	background-position-x: 105%;
}

.degustace {
	background-image: url("img/pozadi-degustace.png");
	background-repeat: no-repeat;
	background-position-y: 109%;
	background-position-x: -70px;
}

.onas {
	background-image: url("img/pozadi-onas-1.png"), url("img/pozadi-onas-2.png"), url("img/pozadi-onas-3.png");
	background-repeat: no-repeat;
	background-position-y: 15%, 50%, 85%;
	background-position-x: -40px, 50%, -300px;
}

.onas p {
	margin-bottom: 150px !important;
}

.default-view * {
	margin: 0 !important;
	padding: 0 !important;
}

@media (max-width: 768px) {
	.site-main {
		width: 100%;
		text-align: left;
	}

	div.product {
		flex-direction: column;
		gap: 24px;
	}

	div.product div.images,
	div.product div.summary {
		flex: 1 1 auto;
		width: 100%;
	}

	div.product .product_title {
		font-size: 1.6rem;
	}

	.woocommerce div.product .woocommerce-tabs .shop_attributes tr,
	.woocommerce div.product .woocommerce-tabs .shop_attributes th,
	.woocommerce div.product .woocommerce-tabs .shop_attributes td {
		display: block;
		width: 100%;
	}

	.woocommerce div.product .woocommerce-tabs .shop_attributes th {
		border-bottom: none;
		padding-bottom: 0.25em;
		background: #fafafa;
	}

	.woocommerce div.product .woocommerce-tabs .shop_attributes td {
		padding-top: 0.25em;
	}

	.woocommerce-message a.button,
	.woocommerce-notice a.button {
		display: block;
		margin: 10px 0 0;
		text-align: center;
	}

	.comment-list .children {
		margin-left: 16px;
	}

	/* Keep Bootstrap .row negative margins inside the mobile viewport */
	.entry-content .container-fluid {
		padding-left: 0;
		padding-right: 0;
	}

	.entry-content .container-fluid .row {
		margin-left: 0;
		margin-right: 0;
	}

	.entry-content .container-fluid .row > * {
		max-width: 100%;
		padding-left: 0;
		padding-right: 0;
	}

	.onas p {
		margin-bottom: 1.5em !important;
	}

	.uvodni-strana p,
	.uvodni-strana h2 {
		margin: 16px !important;
	}
}

@media only screen and (max-device-width: 600px) {
	.onas {
		background-position-y: 230px, 920px, 1550px;
		background-position-x: -40px, 50%, -300px;
	}

	.site-header-socials svg {
		height: 40px;
		width: 40px;
	}
}

@media screen and (min-width: 1400px) {
	.container-fluid * {
		padding-top: 0 !important;
	}

	.container-fluid p {
		display: block;
		width: 75%;
		margin: 0 auto;
		padding-top: 50px !important;
		line-height: 2;
	}

	.uvodni-strana p {
		display: block;
		width: 90%;
		margin: 0 auto;
		padding-top: 50px !important;
		line-height: 2;
	}

	.container-fluid.ast-container *,
	.container-fluid .ast-container {
		margin-top: 0 !important;
		padding-top: 0 !important;
	}
}
