/**
 * Old Postcards — product card (single + catalog)
 */

:root {
	--op-navy: #202b5d;
	--op-burgundy: #722431;
	--op-cream: #faf8f5;
	--op-border: #e8e4de;
	--op-muted: #5a6579;
	--op-radius: 6px;
}

/* ── Price hidden ───────────────────────────────────────── */
.woocommerce div.product p.price,
.woocommerce div.product span.price,
.woocommerce ul.products li.product .price,
.woocommerce-grouped-product-list-item__price,
.woocommerce-Price-amount {
	display: none !important;
}

/* ── Reset WooCommerce floats (breaks grid / shrinks image) */
body.single-product .woocommerce div.product div.images,
body.single-product .woocommerce div.product .woocommerce-product-gallery,
body.single-product .woocommerce #content div.product div.images,
body.single-product .woocommerce div.product div.summary,
body.single-product .woocommerce div.product .summary.entry-summary {
	float: none !important;
	width: 100% !important;
	max-width: 100% !important;
	clear: none !important;
	margin-right: 0 !important;
	margin-left: 0 !important;
}

/* ── Single product grid ──────────────────────────────── */
body.single-product .woocommerce div.product {
	display: grid !important;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
	column-gap: 2rem;
	row-gap: 2.5rem;
	align-items: start;
	margin-bottom: 2rem;
	clear: both;
}

body.single-product .woocommerce div.product::before,
body.single-product .woocommerce div.product::after {
	display: none !important;
}

body.single-product .woocommerce div.product > .woocommerce-product-gallery {
	grid-column: 1;
	grid-row: 1;
}

body.single-product .woocommerce div.product > .summary.entry-summary {
	grid-column: 2;
	grid-row: 1;
}

body.single-product .woocommerce div.product > .woocommerce-tabs {
	grid-column: 1 / -1;
	grid-row: 2;
	margin-top: 0.5rem !important;
}

body.single-product .woocommerce div.product > .related.products,
body.single-product .woocommerce div.product > .upsells.products {
	grid-column: 1 / -1;
	margin-top: 1.5rem;
}

/* Gallery / postcard image */
body.single-product .woocommerce-product-gallery { 
	padding: 1rem 1.25rem;
	background: #fff;
	border: 1px solid var(--op-border);
	border-radius: var(--op-radius);
	box-shadow: 0 2px 12px rgba(32, 43, 93, 0.06);
}

body.single-product .woocommerce-product-gallery__wrapper {
	width: 100% !important;
	max-width: 100% !important;
}

body.single-product .woocommerce-product-gallery__image {
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
}

body.single-product .woocommerce-product-gallery__image a {
	display: block;
	line-height: 0;
}

body.single-product .woocommerce-product-gallery__image img {
	display: block;
	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;
	border-radius: 2px;
}

body.single-product .woocommerce-product-gallery .flex-control-thumbs {
	display: none;
}

/* Summary panel */
body.single-product .summary.entry-summary {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding: 1.25rem 1.5rem;
	background: var(--op-cream);
	border: 1px solid var(--op-border);
	border-radius: var(--op-radius);
	margin-top: 0 !important;
}

body.single-product .product_title.entry-title {
	order: 1;
	font-size: 1.25rem;
	line-height: 1.35;
	color: var(--op-navy);
	margin: 0;
	font-weight: 600;
}

body.single-product .summary .product_meta {
	order: 2;
}

body.single-product .summary form.cart {
	order: 3;
}

body.single-product div.product form.cart,
body.single-product .summary .product_meta {
	border: none;
	padding: 0;
	margin: 0;
}

body.single-product div.product form.cart {
	margin-top: 0.25rem;
	padding-top: 0.75rem;
	border-top: 1px solid var(--op-border);
}

body.single-product div.product form.cart .quantity {
	display: none;
}

body.single-product div.product form.cart .button.single_add_to_cart_button {
	background: var(--op-burgundy);
	color: #fff;
	border: none;
	border-radius: var(--op-radius);
	padding: 0.7rem 1.5rem;
	font-size: 0.95rem;
	font-weight: 600;
	width: 100%;
	text-align: center;
	transition: background 0.2s ease;
}

body.single-product div.product form.cart .button.single_add_to_cart_button:hover {
	background: var(--op-navy);
	color: #fff;
}

/* Meta chips */
.product_meta.product_meta--chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	font-size: 0.82rem;
	line-height: 1.3;
}

.product_meta--chips .meta-chip,
.product_meta--chips a.meta-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	padding: 0.35rem 0.7rem;
	background: #fff;
	border: 1px solid var(--op-border);
	border-radius: 999px;
	color: var(--op-muted);
	text-decoration: none;
}

.product_meta--chips a.meta-chip:hover {
	border-color: var(--op-navy);
	color: var(--op-navy);
}

.product_meta--chips .meta-chip__label {
	font-weight: 600;
	color: var(--op-navy);
}

/* Tabs: open panels, hide tab bar */
body.single-product .woocommerce-tabs.wc-tabs-wrapper {
	clear: both;
	margin-top: 0 !important;
	padding-top: 0;
}

body.single-product .woocommerce-tabs ul.tabs.wc-tabs {
	display: none !important;
}

body.single-product .woocommerce-Tabs-panel {
	display: block !important;
	padding: 2rem 2.75rem;
	margin-bottom: 1.5rem;
	background: var(--op-cream);
	border: 1px solid var(--op-border);
	border-radius: var(--op-radius);
}

body.single-product .woocommerce-Tabs-panel--description {
	margin-top: 0;
	padding-left: 2.75rem;
	padding-right: 2.75rem;
}

body.single-product .woocommerce-Tabs-panel--description .postcard-location {
	padding-left: 0.25rem;
	padding-right: 0.25rem;
}

body.single-product .woocommerce-Tabs-panel--reviews {
	background: var(--op-cream);
	padding: 2rem 2.75rem;
	margin-top: 0;
}

/* Hide duplicate "Описание" — postcard-location has its own headings */
body.single-product .woocommerce-Tabs-panel--description > h2:first-child {
	display: none;
}

body.single-product .woocommerce-Tabs-panel--reviews > h2 {
	font-size: 1.08rem;
	font-weight: 600;
	color: var(--op-navy);
	border-left: 3px solid var(--op-navy);
	padding: 0.15rem 0 0.15rem 0.85rem;
	margin: 0 0 1.5rem;
	line-height: 1.4;
}

/* Reviews: inner spacing like description */
body.single-product #reviews,
body.single-product .woocommerce-Reviews {
	padding: 0.25rem;
}

body.single-product #reviews .woocommerce-noreviews {
	margin: 0 0 1.5rem;
	line-height: 1.7;
	color: #333;
}

body.single-product #reviews #comments {
	margin-bottom: 2rem;
}

body.single-product #reviews .commentlist {
	margin: 0;
	padding: 0;
	list-style: none;
}

body.single-product #reviews .commentlist .comment {
	margin: 0 0 1.25rem;
	padding: 1rem 1.25rem;
	background: #fff;
	border: 1px solid var(--op-border);
	border-radius: var(--op-radius);
}

body.single-product #reviews .commentlist .comment .comment-text {
	margin-top: 0.75rem;
	line-height: 1.7;
}

body.single-product #reviews .commentlist .meta {
	margin-bottom: 0.35rem;
	font-size: 0.88rem;
	color: var(--op-muted);
}

body.single-product #review_form #respond {
	margin: 0;
	padding: 1.25rem 1.5rem;
	background: #fff;
	border: 1px solid var(--op-border);
	border-radius: var(--op-radius);
}

body.single-product #review_form #respond .comment-reply-title {
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--op-navy);
	border-left: 3px solid var(--op-navy);
	padding: 0.15rem 0 0.15rem 0.85rem;
	margin: 0 0 1.25rem;
	line-height: 1.4;
}

body.single-product #review_form .comment-form {
	margin: 0;
}

body.single-product #review_form .comment-form p {
	margin-bottom: 1rem;
}

body.single-product #review_form .comment-form label {
	display: block;
	margin-bottom: 0.35rem;
	color: var(--op-navy);
	font-weight: 600;
	font-size: 0.9rem;
}

body.single-product #review_form .comment-form input[type="text"],
body.single-product #review_form .comment-form input[type="email"],
body.single-product #review_form .comment-form textarea {
	width: 100%;
	max-width: 100%;
	padding: 0.55rem 0.75rem;
	border: 1px solid var(--op-border);
	border-radius: var(--op-radius);
}

body.single-product #review_form .comment-form .form-submit {
	margin-top: 1.25rem;
	margin-bottom: 0;
}

body.single-product #review_form #submit {
	background: var(--op-burgundy);
	color: #fff;
	border: none;
	border-radius: var(--op-radius);
	padding: 0.65rem 1.5rem;
	font-weight: 600;
	cursor: pointer;
}

body.single-product #review_form #submit:hover {
	background: var(--op-navy);
}

/* Postcard SEO article */
.postcard-location {
	margin: 0;
	line-height: 1.65;
	color: #333;
	font-size: 1rem;
}

.postcard-location .postcard-lead {
	font-size: 1.05rem;
	margin: 0 0 1.75rem;
	padding-bottom: 0.25rem;
	color: #222;
	line-height: 1.7;
}

.postcard-location h2 {
	font-size: 1.08rem;
	font-weight: 600;
	color: var(--op-navy);
	border-left: 3px solid var(--op-navy);
	padding: 0.15rem 0 0.15rem 0.85rem;
	margin: 2.25rem 0 1rem;
	text-align: left;
	line-height: 1.4;
}

.postcard-location h2:first-of-type {
	margin-top: 0.5rem;
}

.postcard-location p {
	margin: 0 0 1.1rem;
	line-height: 1.7;
}

.postcard-location h2 + p {
	margin-top: 0.25rem;
}

.postcard-location .coords {
	font-family: ui-monospace, Consolas, monospace;
	font-size: 0.9em;
}

.postcard-location .map-wrap {
	margin: 1.25rem 0 1.5rem;
	max-width: 100%;
	border-radius: var(--op-radius);
	overflow: hidden;
	border: 1px solid var(--op-border);
	background: #fff;
}

.postcard-location .map-wrap iframe {
	display: block;
	width: 100%;
	height: 400px;
	border: 0;
}

.postcard-location .coord-note {
	color: var(--op-muted);
	font-size: 0.85rem;
}

.postcard-location .postcard-faq {
	list-style: none;
	margin: 1rem 0 1.5rem;
	padding: 0;
}

.postcard-location .postcard-faq li {
	padding: 0.65rem 0;
	border-bottom: 1px solid var(--op-border);
}

.postcard-location .postcard-faq li:last-child {
	border-bottom: none;
}

.postcard-location .postcard-faq strong {
	display: block;
	color: var(--op-navy);
	margin-bottom: 0.2rem;
}

.postcard-location .postcard-related {
	list-style: none;
	margin: 0.75rem 0 1rem;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.postcard-location .postcard-related a {
	display: inline-block;
	padding: 0.4rem 0.85rem;
	background: #fff;
	border: 1px solid var(--op-border);
	border-radius: 999px;
	color: var(--op-burgundy);
	font-size: 0.88rem;
	text-decoration: none;
}

.postcard-location .postcard-related a:hover {
	background: var(--op-navy);
	border-color: var(--op-navy);
	color: #fff;
}

.postcard-location .postcard-collection-note {
	margin-top: 1rem;
	padding-top: 0.85rem;
	border-top: 1px solid var(--op-border);
	font-size: 0.92rem;
	color: var(--op-muted);
	font-style: italic;
}

/* Catalog cards */
.woocommerce ul.products li.product {
	background: #fff;
	border: 1px solid var(--op-border);
	border-radius: var(--op-radius);
	padding-bottom: 0.75rem;
	overflow: hidden;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h3 {
	font-size: 0.92rem;
	padding: 0 0.75rem;
	color: var(--op-navy);
}

body.single-product .related.products > h2 {
	color: var(--op-navy);
	font-size: 1.15rem;
	border-bottom: 2px solid var(--op-border);
	padding-bottom: 0.5rem;
}

/* ── Tablet ───────────────────────────────────────────── */
@media screen and (max-width: 991px) {
	body.single-product .woocommerce div.product {
		grid-template-columns: 1fr;
		gap: 1.25rem;
	}

	body.single-product .woocommerce div.product > .woocommerce-product-gallery,
	body.single-product .woocommerce div.product > .summary.entry-summary {
		grid-column: 1;
	}

	body.single-product .woocommerce div.product > .summary.entry-summary {
		grid-row: auto;
	}

	body.single-product .woocommerce-product-gallery {
		max-width: 520px;
		margin-left: auto !important;
		margin-right: auto !important;
	}
}

/* ── Mobile ───────────────────────────────────────────── */
@media screen and (max-width: 767px) {
	body.single-product .product_title.entry-title {
		font-size: 1.1rem;
	}

	body.single-product .woocommerce-Tabs-panel,
	body.single-product .woocommerce-Tabs-panel--description,
	body.single-product .woocommerce-Tabs-panel--reviews {
		padding: 1.25rem 1.5rem;
	}

	body.single-product #review_form #respond {
		padding: 1rem 1.1rem;
	}

	.postcard-location .map-wrap iframe {
		height: 260px;
	}

	body.single-product {
		padding-bottom: 4.25rem;
	}

	body.single-product div.product form.cart {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 999;
		padding: 0.7rem 1rem;
		background: #fff;
		border-top: 1px solid var(--op-border);
		box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
	}

	body.single-product .summary form.cart {
		border-top: none;
		padding-top: 0;
	}
}
