/* ============================================================
   BEHARDOO.BA — Scandinavian Eco-Tech Design System (2026)
   Plugin: Behardoo Contact Icons
   ============================================================
   Palette:
     #F7F8F4 — primary background
     #FFFFFF — card surface
     #EEF3EA — soft section / icon bg
     #1F2A24 — primary text
     #5C6B63 — secondary text
     #7A857F — muted
     #2E5E4E — primary green (CTA, accents)
     #4D8B70 — accent green
     #DDE9E2 — soft green tint
     rgba(46,94,78,0.08) — subtle borders
     #3F735E — hover green
   ============================================================ */

/* ---------- PRODUCT CARDS — Premium Scandinavian Grid ---------- */
.wc-block-product-template__responsive {
	gap: 1.5rem !important;
}

.wc-block-product {
	background: #FFFFFF;
	border-radius: 16px;
	padding: 1.25rem 1rem 1rem !important;
	box-shadow:
		0 1px 3px rgba(46, 94, 78, 0.04),
		0 4px 16px rgba(46, 94, 78, 0.06);
	transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
	            box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1);
	display: flex;
	flex-direction: column;
	align-items: center;
	position: relative;
	overflow: hidden;
	border: 1px solid rgba(46, 94, 78, 0.06);
}

.wc-block-product::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, #2E5E4E, #4D8B70, #DDE9E2);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.wc-block-product:hover {
	transform: translateY(-4px);
	box-shadow:
		0 4px 12px rgba(46, 94, 78, 0.06),
		0 12px 40px rgba(46, 94, 78, 0.1);
	border-color: rgba(46, 94, 78, 0.12);
}

.wc-block-product:hover::before {
	opacity: 1;
}

/* ---------- PRODUCT IMAGES — Clean, Consistent ---------- */
.wc-block-components-product-image {
	border-radius: 12px;
	overflow: hidden;
	margin-bottom: 0.75rem;
	background: #F7F8F4;
	aspect-ratio: 1 / 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	position: relative;
}

.wc-block-components-product-image img {
	width: 100%;
	height: 100%;
	object-fit: contain !important;
	padding: 0.75rem;
	transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
	background: #F7F8F4;
	mix-blend-mode: multiply;
}

.wc-block-product:hover .wc-block-components-product-image img {
	transform: scale(1.06);
}

/* Image placeholder fallback */
.wc-block-components-product-image img[src$=".png" i],
.wc-block-components-product-image img[src$=".jpg" i],
.wc-block-components-product-image img[src$=".jpeg" i],
.wc-block-components-product-image img[src$=".webp" i] {
	background: #F7F8F4;
}

.wc-block-components-product-image__inner-container {
	display: none;
}

/* ---------- PRODUCT TITLES ---------- */
.wp-block-post-title {
	margin-top: 0.5rem !important;
	margin-bottom: 0.25rem !important;
	line-height: 1.3 !important;
}

.wp-block-post-title a {
	color: #1F2A24 !important;
	font-size: 0.9rem;
	font-weight: 500;
	letter-spacing: -0.01em;
	text-decoration: none !important;
	transition: color 0.2s ease;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	line-height: 1.35;
}

.wp-block-post-title a:hover {
	color: #2E5E4E !important;
}

/* ---------- PRODUCT PRICES ---------- */
.wc-block-components-product-price {
	margin-bottom: 0.75rem !important;
}

.wc-block-components-product-price .woocommerce-Price-amount {
	color: #2E5E4E;
	font-size: 1.05rem;
	font-weight: 600;
	letter-spacing: -0.01em;
}

.wc-block-components-product-price .woocommerce-Price-currencySymbol {
	font-weight: 500;
	font-size: 0.85em;
}

.price del .woocommerce-Price-amount {
	color: #7A857F;
	font-weight: 400;
	font-size: 0.85rem;
}

/* ---------- CONTACT ROW (Kontakt + Viber + WhatsApp) ---------- */
.behardoo-ci-row {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	justify-content: center;
	width: 100%;
	margin-top: auto;
	padding-top: 0.75rem;
}

/* Kontakt link — pill shaped, same green family as icons */
.behardoo-ci-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 42px;
	padding: 0 18px;
	border-radius: 50px;
	background: #EEF3EA;
	color: #2E5E4E !important;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-decoration: none !important;
	text-transform: uppercase;
	transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
	line-height: 1;
	border: none;
	white-space: nowrap;
}

.behardoo-ci-link:hover,
.behardoo-ci-link:focus {
	background: #2E5E4E;
	color: #FFFFFF !important;
	transform: scale(1.04);
	outline: none;
}

.behardoo-ci-link:focus-visible {
	outline: 2px solid #2E5E4E;
	outline-offset: 2px;
}

/* Icon circles */
.behardoo-ci-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: #EEF3EA;
	color: #2E5E4E;
	transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
	text-decoration: none !important;
	flex-shrink: 0;
}

.behardoo-ci-icon:hover,
.behardoo-ci-icon:focus {
	background: #2E5E4E;
	color: #FFFFFF;
	transform: scale(1.08);
	outline: none;
}

.behardoo-ci-icon:focus-visible {
	outline: 2px solid #2E5E4E;
	outline-offset: 2px;
}

.behardoo-ci-icon svg {
	display: block;
	width: 20px;
	height: 20px;
}

/* Reset WooCommerce button defaults inside product cards */
.wp-block-button.wc-block-components-product-button {
	background: none !important;
	padding: 0 !important;
	margin-bottom: 0 !important;
}

.wp-block-button.wc-block-components-product-button .wp-block-button__link {
	background: none !important;
	padding: 0 !important;
	color: inherit !important;
	border-radius: 0 !important;
	min-height: auto !important;
}

/* ---------- SHOP PAGE LOGO (replaces query title) ---------- */
.behardoo-ci-shop-logo {
	text-align: center;
	margin: 1rem auto;
}

.behardoo-ci-shop-logo .custom-logo-link {
	display: inline-block;
}

.behardoo-ci-shop-logo img {
	max-width: 120px;
	height: auto;
	transition: transform 0.3s ease;
}

.behardoo-ci-shop-logo img:hover {
	transform: scale(1.05);
}

/* ---------- HEADER REFINEMENTS ---------- */
.wp-block-navigation-item__label {
	font-size: 0.85rem;
	font-weight: 450;
	letter-spacing: 0.01em;
}

/* ---------- FOOTER REFINEMENTS ---------- */
.wp-block-group:has(.wp-block-site-title) {
	margin-top: 3rem;
}

/* ---------- SHOP TOOLBAR (count + sort) ---------- */
.wc-block-product-results-count .woocommerce-result-count {
	font-size: 0.8rem;
	color: #5C6B63;
	margin-bottom: 0;
}

/* ---------- PAGINATION ---------- */
.wp-block-query-pagination {
	margin-top: 2rem !important;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(46, 94, 78, 0.08);
}

.wp-block-query-pagination a,
.wp-block-query-pagination span {
	padding: 0.4rem 0.8rem;
	border-radius: 8px;
	transition: all 0.2s ease;
	color: #5C6B63;
}

.wp-block-query-pagination a:hover {
	background: #EEF3EA;
	color: #2E5E4E;
}

.wp-block-query-pagination .page-numbers.current {
	background: #2E5E4E;
	color: #FFFFFF !important;
}

/* ---------- RESPONSIVE — MOBILE FIRST ---------- */

/* Tablet */
@media (max-width: 1024px) {
	.wc-block-product-template__responsive.columns-3 {
		grid-template-columns: repeat(auto-fill, minmax(max(160px, calc(50% - 0.75rem)), 1fr)) !important;
	}

	.wc-block-product {
		padding: 1rem 0.75rem 0.85rem !important;
		border-radius: 14px;
	}

	.wp-block-post-title a {
		font-size: 0.82rem;
	}
}

/* Mobile */
@media (max-width: 768px) {
	.wc-block-product-template__responsive {
		gap: 1rem !important;
	}

	.wc-block-product-template__responsive.columns-3 {
		grid-template-columns: repeat(auto-fill, minmax(max(140px, calc(50% - 0.5rem)), 1fr)) !important;
	}

	.wc-block-product {
		padding: 0.75rem 0.6rem 0.75rem !important;
		border-radius: 12px;
	}

	.wc-block-components-product-image {
		border-radius: 10px;
		margin-bottom: 0.5rem;
	}

	.wc-block-components-product-image img {
		padding: 0.5rem;
	}

	.wp-block-post-title a {
		font-size: 0.78rem;
	}

	.wc-block-components-product-price .woocommerce-Price-amount {
		font-size: 0.95rem;
	}

	/* Contact row */
	.behardoo-ci-link {
		height: 36px;
		padding: 0 12px;
		font-size: 0.7rem;
		min-width: 36px;
	}

	.behardoo-ci-icon {
		width: 36px;
		height: 36px;
	}

	.behardoo-ci-icon svg {
		width: 16px;
		height: 16px;
	}

	.behardoo-ci-row {
		gap: 6px;
		padding-top: 0.5rem;
	}
}

/* Small phones — 2 columns always */
@media (max-width: 480px) {
	.wc-block-product-template__responsive.columns-3 {
		grid-template-columns: repeat(2, 1fr) !important;
		gap: 0.75rem !important;
	}

	.wc-block-product {
		padding: 0.6rem 0.45rem 0.6rem !important;
		border-radius: 10px;
	}

	.wc-block-components-product-image {
		border-radius: 8px;
		margin-bottom: 0.4rem;
	}

	.wc-block-components-product-image img {
		padding: 0.3rem;
	}

	.wp-block-post-title {
		margin-top: 0.3rem !important;
		margin-bottom: 0.15rem !important;
	}

	.wp-block-post-title a {
		font-size: 0.7rem;
		-webkit-line-clamp: 2;
	}

	.wc-block-components-product-price {
		margin-bottom: 0.4rem !important;
	}

	.wc-block-components-product-price .woocommerce-Price-amount {
		font-size: 0.8rem;
	}

	/* Contact row */
	.behardoo-ci-link {
		height: 30px;
		padding: 0 10px;
		font-size: 0.65rem;
		min-width: 30px;
	}

	.behardoo-ci-icon {
		width: 30px;
		height: 30px;
	}

	.behardoo-ci-icon svg {
		width: 14px;
		height: 14px;
	}

	.behardoo-ci-row {
		gap: 5px;
		padding-top: 0.3rem;
	}
}

/* ---------- SMOOTH SCROLL & SELECTION ---------- */
html {
	scroll-behavior: smooth;
}

::selection {
	background: #DDE9E2;
	color: #1F2A24;
}

/* ---------- UTILITY: Remove default WooCommerce button styles ---------- */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce .button {
	border-radius: 50px !important;
}

/* ============================================================
   SINGLE PRODUCT PAGE — Scandinavian Green Design
   ============================================================ */

/* Product wrapper */
.woocommerce .wp-block-group.woocommerce.product {
	padding: 0 var(--wp--preset--spacing--50);
	max-width: var(--wp--style--global--wide-size);
	margin: 0 auto;
}

/* Breadcrumbs */
.wp-block-breadcrumbs {
	margin-bottom: 1rem !important;
	font-size: 0.75rem !important;
	color: #7A857F !important;
}

.wp-block-breadcrumbs a {
	color: #5C6B63 !important;
	text-decoration: none !important;
}

.wp-block-breadcrumbs a:hover {
	color: #2E5E4E !important;
}

/* Product image gallery */
.wp-block-woocommerce-product-image-gallery {
	border-radius: 16px;
	overflow: hidden;
	background: #F7F8F4;
}

.woocommerce-product-gallery {
	border-radius: 16px !important;
	background: #F7F8F4 !important;
}

.woocommerce-product-gallery img {
	border-radius: 12px !important;
	background: #F7F8F4;
	mix-blend-mode: multiply;
}

/* Product title */
.single-product .wp-block-post-title {
	font-size: clamp(1.4rem, 3.5vw, 2rem) !important;
	font-weight: 500 !important;
	color: #1F2A24 !important;
	line-height: 1.2 !important;
	letter-spacing: -0.02em !important;
	margin-bottom: 0.5rem !important;
}

/* Product price (single page) */
.single-product .wp-block-woocommerce-product-price .wc-block-components-product-price .woocommerce-Price-amount {
	color: #2E5E4E;
	font-size: 1.5rem !important;
	font-weight: 700;
}

/* Add-to-cart form */
.wp-block-add-to-cart-form {
	margin: 1.5rem 0 !important;
}

.wp-block-add-to-cart-form .cart {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
}

.wp-block-add-to-cart-form .single_add_to_cart_button {
	background: #2E5E4E !important;
	color: #FFFFFF !important;
	border: none !important;
	border-radius: 50px !important;
	padding: 0.7rem 1.8rem !important;
	font-size: 0.85rem !important;
	font-weight: 600 !important;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	cursor: pointer !important;
	transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1) !important;
	box-shadow: 0 2px 8px rgba(46, 94, 78, 0.15) !important;
}

.wp-block-add-to-cart-form .single_add_to_cart_button:hover {
	background: #3F735E !important;
	transform: translateY(-1px);
	box-shadow: 0 4px 16px rgba(46, 94, 78, 0.2) !important;
}

/* Larger contact icons on single product page */
.single-product .wp-block-add-to-cart-form .behardoo-ci-link {
	height: 44px;
	padding: 0 20px;
	font-size: 0.9rem;
	min-width: 44px;
}

.single-product .wp-block-add-to-cart-form .behardoo-ci-icon {
	width: 44px;
	height: 44px;
}

.single-product .wp-block-add-to-cart-form .behardoo-ci-icon svg {
	width: 22px;
	height: 22px;
}

.single-product .wp-block-add-to-cart-form .behardoo-ci-row {
	gap: 10px;
	padding-top: 0;
}

/* Remove old add-to-cart form structure when replaced by contact row */
.wp-block-add-to-cart-form form.cart {
	border: none;
	background: none;
	padding: 0;
	margin: 0;
	box-shadow: none;
}

.wp-block-add-to-cart-form form.cart > *:not(.behardoo-ci-row) {
	display: none;
}

/* Kontakt icons inside add-to-cart form */
.wp-block-add-to-cart-form .behardoo-ci-row {
	width: auto;
	margin-top: 0;
	padding-top: 0;
}

/* Product details / tabs */
.wp-block-woocommerce-product-details {
	margin-top: 2rem !important;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(46, 94, 78, 0.08);
}

.woocommerce-tabs {
	border-radius: 12px;
	overflow: hidden;
}

.woocommerce-tabs ul.tabs {
	border-bottom: 1px solid rgba(46, 94, 78, 0.08) !important;
	padding: 0 !important;
	margin: 0 !important;
}

.woocommerce-tabs ul.tabs li {
	border: none !important;
	background: transparent !important;
	margin: 0 !important;
	padding: 0 !important;
}

.woocommerce-tabs ul.tabs li a {
	color: #5C6B63 !important;
	font-size: 0.85rem !important;
	font-weight: 500 !important;
	padding: 0.75rem 1.25rem !important;
	transition: all 0.2s ease !important;
}

.woocommerce-tabs ul.tabs li.active a {
	color: #2E5E4E !important;
	font-weight: 600 !important;
}

.woocommerce-tabs .panel {
	padding: 1.5rem 0 !important;
	color: #5C6B63 !important;
	font-size: 0.9rem !important;
	line-height: 1.7 !important;
}

/* Product meta (SKU, categories) */
.product_meta {
	font-size: 0.8rem;
	color: #7A857F;
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid rgba(46, 94, 78, 0.06);
}

.product_meta a {
	color: #2E5E4E !important;
	text-decoration: none !important;
}

.product_meta a:hover {
	color: #3F735E !important;
}

/* Related products section */
.wp-block-woocommerce-product-collection:has(.wc-block-product-template) {
	margin-top: 3rem !important;
	padding-top: 2rem;
	border-top: 1px solid rgba(46, 94, 78, 0.08);
}

.wp-block-woocommerce-product-collection h2.wp-block-heading {
	font-size: 1.3rem !important;
	color: #1F2A24 !important;
	margin-bottom: 1.5rem !important;
}

/* ============================================================
   CLASSIC WOOCOMMERCE BUTTONS — Green restyle
   Handles any legacy button that doesn't use block templates.
   ============================================================ */

/* Style classic external product buttons with green design */
.woocommerce a.button.product_type_external {
	background: #EEF3EA !important;
	color: #2E5E4E !important;
	border-radius: 50px !important;
	padding: 0.5rem 1.2rem !important;
	font-size: 0.75rem !important;
	font-weight: 600 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.02em !important;
	border: none !important;
	transition: all 0.25s ease !important;
	display: inline-flex !important;
	align-items: center !important;
	gap: 6px !important;
}

.woocommerce a.button.product_type_external:hover {
	background: #2E5E4E !important;
	color: #FFFFFF !important;
	transform: translateY(-1px);
}

/* Related product cards (reuse shop styles) */
.wp-block-woocommerce-product-collection .wc-block-product {
	padding: 0.85rem 0.65rem 0.75rem !important;
	border-radius: 12px;
}

.wp-block-woocommerce-product-collection .wc-block-product-template {
	gap: 1.25rem !important;
}

/* ============================================================
   MOBILE NAVIGATION FIX — Hamburger menu clickability
   ============================================================ */

/* Ensure the hamburger button is on top and clickable */
.wp-block-navigation__responsive-container-open {
	display: flex !important;
	align-items: center;
	justify-content: center;
	z-index: 99999 !important;
	position: relative !important;
	cursor: pointer !important;
	pointer-events: auto !important;
	background: none !important;
	border: none !important;
	padding: 8px !important;
}

.wp-block-navigation__responsive-container-open svg {
	pointer-events: none;
}

/* Ensure the close button inside overlay is also clickable */
.wp-block-navigation__responsive-container-close {
	z-index: 99999 !important;
	cursor: pointer !important;
	pointer-events: auto !important;
}

/* Fix overlay not appearing on click — ensure proper stacking */
.wp-block-navigation__responsive-container.is-menu-open {
	z-index: 99998 !important;
	pointer-events: auto !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-close,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog {
	pointer-events: auto !important;
}

/* Ensure menu links are clickable when open */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item a {
	pointer-events: auto !important;
	cursor: pointer !important;
}

/* Mobile: Ensure nav container does not clip the button */
@media (max-width: 768px) {
	.wp-block-navigation {
		position: relative !important;
	}

	.wp-block-navigation__responsive-container-open {
		position: relative !important;
		right: auto !important;
		top: auto !important;
	}

	/* Fix for body scroll lock issue */
	body.is-menu-open {
		overflow: hidden !important;
	}
}

/* ============================================================
	  MOBILE MENU OVERLAY — Semi-transparent (60% opacity)
	  ============================================================ */
.wp-block-navigation__responsive-container.is-menu-open {
	background: rgba(247, 248, 244, 0.92) !important;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-close {
	background: transparent !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	background: transparent !important;
}

/* Menu items styling inside overlay */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item a {
	font-size: 1.1rem;
	font-weight: 500;
	color: #1F2A24 !important;
	padding: 0.5rem 1rem;
	border-radius: 8px;
	transition: all 0.2s ease;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item a:hover {
	background: #EEF3EA;
	color: #2E5E4E !important;
}

/* Close button */
.wp-block-navigation__responsive-container-close svg {
	width: 28px;
	height: 28px;
	color: #2E5E4E;
}

/* ============================================================
	  SEARCH BOX — Scandinavian Green Design
	  ============================================================ */
.wp-block-search {
	margin: 1.5rem auto !important;
	max-width: 400px !important;
}

.wp-block-search__inside-wrapper {
	border-radius: 50px !important;
	border: 2px solid rgba(46, 94, 78, 0.12) !important;
	background: #FFFFFF !important;
	overflow: hidden;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wp-block-search__inside-wrapper:focus-within {
	border-color: #2E5E4E !important;
	box-shadow: 0 0 0 3px rgba(46, 94, 78, 0.08);
}

.wp-block-search__input {
	border: none !important;
	padding: 0.6rem 1.2rem !important;
	font-size: 0.85rem !important;
	color: #1F2A24 !important;
	background: transparent !important;
}

.wp-block-search__input::placeholder {
	color: #7A857F !important;
	opacity: 1;
}

.wp-block-search__button {
	border-radius: 50px !important;
	background: #2E5E4E !important;
	color: #FFFFFF !important;
	border: none !important;
	padding: 0.5rem 1rem !important;
	margin: 4px !important;
	cursor: pointer !important;
	transition: all 0.2s ease;
}

.wp-block-search__button:hover {
	background: #3F735E !important;
	transform: scale(1.04);
}

.wp-block-search__button svg {
	fill: currentColor;
	width: 18px;
	height: 18px;
}

/* ============================================================
	  SITE TITLE "BEHAR doo" — Green Design
	  ============================================================ */
.wp-block-site-title {
	font-weight: 700 !important;
	letter-spacing: -0.02em !important;
}

.wp-block-site-title a {
	color: #1F2A24 !important;
	text-decoration: none !important;
	transition: color 0.2s ease;
	font-size: clamp(1.2rem, 3vw, 1.6rem);
}

.wp-block-site-title a:hover {
	color: #2E5E4E !important;
}

/* Footer site title */
.wp-block-group:has(.wp-block-site-title) .wp-block-site-title a {
	color: #2E5E4E !important;
}

.wp-block-group:has(.wp-block-site-title) .wp-block-site-title a:hover {
	color: #3F735E !important;
}

/* ============================================================
   SITE LOGO — Left aligned flush to edge
   ============================================================ */
.wp-block-site-logo {
	margin-left: 0 !important;
	padding-left: 0 !important;
}

.wp-block-site-logo img {
	transition: transform 0.3s ease;
	width: auto !important;
}

.wp-block-site-logo img:hover {
	transform: scale(1.03);
}

/* Increase logo size globally */
.wp-block-site-logo.is-default-size img,
.wp-block-site-logo img.custom-logo {
	max-width: 160px;
	height: auto;
}

/* 3x bigger logo on single product page only */
.single-product .wp-block-site-logo.is-default-size img,
.single-product .wp-block-site-logo img.custom-logo {
	max-width: 280px;
}

/* Header container: remove global padding on left side */
header.wp-block-template-part > .wp-block-group.has-global-padding {
	padding-left: 0 !important;
}

/* Adjust the inner flex container to account for the removed padding */
header.wp-block-template-part .wp-block-group.alignwide {
	padding-left: var(--wp--preset--spacing--50) !important;
}

/* But keep the logo flush left by giving it negative margin */
header.wp-block-template-part .wp-block-site-logo {
	margin-left: calc(-1 * var(--wp--preset--spacing--50)) !important;
}

/* ============================================================
   CART PAGE — Scandinavian Premium
   ============================================================ */

.woocommerce-cart .wp-site-blocks {
	max-width: var(--wp--style--global--wide-size);
	margin: 0 auto;
	padding: 0 var(--wp--preset--spacing--50);
}

.woocommerce-cart .entry-content .wp-block-woocommerce-cart {
	padding: 0 !important;
}

.wc-block-cart .wc-block-cart-items {
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid rgba(46, 94, 78, 0.08);
}

.wc-block-cart .wc-block-cart-items thead th {
	background: #F7F8F4;
	color: #1F2A24;
	font-size: 0.8rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 1rem 1.25rem;
	border: none;
	border-bottom: 1px solid rgba(46, 94, 78, 0.08);
}

.wc-block-cart .wc-block-cart-items tbody tr {
	border-bottom: 1px solid rgba(46, 94, 78, 0.04);
}

.wc-block-cart .wc-block-cart-items tbody td {
	padding: 1.25rem;
	vertical-align: middle;
}

.wc-block-cart .wc-block-cart-item__product {
	font-size: 0.9rem;
	font-weight: 500;
}

.wc-block-cart .wc-block-cart-item__product a {
	color: #1F2A24 !important;
	text-decoration: none !important;
}

.wc-block-cart .wc-block-cart-item__product a:hover {
	color: #2E5E4E !important;
}

.wc-block-cart .wc-block-cart-item__price .woocommerce-Price-amount {
	color: #2E5E4E;
	font-weight: 600;
	font-size: 0.95rem;
}

.wc-block-cart .wc-block-cart-item__quantity .wc-block-components-quantity-selector {
	border-radius: 8px;
	border: 1px solid rgba(46, 94, 78, 0.12);
	overflow: hidden;
}

.wc-block-cart .wc-block-cart-item__quantity .wc-block-components-quantity-selector button {
	color: #2E5E4E;
	background: #F7F8F4;
	border: none;
	width: 32px;
	height: 32px;
	transition: background 0.2s;
}

.wc-block-cart .wc-block-cart-item__quantity .wc-block-components-quantity-selector button:hover {
	background: #EEF3EA;
}

.wc-block-cart .wc-block-cart-item__quantity .wc-block-components-quantity-selector input {
	border: none;
	font-weight: 600;
	color: #1F2A24;
}

/* Cart totals */
.wc-block-cart .wc-block-cart__totals {
	border-radius: 12px;
	border: 1px solid rgba(46, 94, 78, 0.08);
	padding: 1.5rem;
	background: #F7F8F4;
}

.wc-block-cart .wc-block-cart__totals .wc-block-cart__totals-title {
	font-size: 1rem;
	font-weight: 600;
	color: #1F2A24;
	margin-bottom: 1rem;
}

.wc-block-cart .wc-block-cart__totals .wc-block-components-totals-item {
	padding: 0.5rem 0;
}

.wc-block-cart .wc-block-cart__totals .wc-block-components-totals-item__label {
	color: #5C6B63;
	font-size: 0.85rem;
}

.wc-block-cart .wc-block-cart__totals .wc-block-components-totals-item__value {
	font-weight: 600;
	color: #1F2A24;
}

.wc-block-cart .wc-block-cart__totals .wc-block-components-totals-footer-item {
	border-top: 1px solid rgba(46, 94, 78, 0.12);
	padding-top: 1rem;
	margin-top: 0.5rem;
}

.wc-block-cart .wc-block-cart__totals .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	color: #2E5E4E;
	font-size: 1.1rem;
	font-weight: 700;
}

/* Cart buttons */
.wc-block-cart .wc-block-cart__totals .wc-block-components-button:not(.wp-block-button) {
	background: #2E5E4E !important;
	color: #FFFFFF !important;
	border-radius: 50px !important;
	padding: 0.75rem 2rem !important;
	font-weight: 600 !important;
	font-size: 0.85rem !important;
	text-transform: uppercase !important;
	letter-spacing: 0.03em !important;
	border: none !important;
	transition: all 0.25s ease !important;
}

.wc-block-cart .wc-block-cart__totals .wc-block-components-button:hover {
	background: #3F735E !important;
	transform: translateY(-1px);
}

/* Coupon form */
.wc-block-cart .wc-block-components-coupon-form {
	border-radius: 12px;
	border: 1px solid rgba(46, 94, 78, 0.08);
	padding: 1.25rem;
	margin-bottom: 1rem;
}

.wc-block-cart .wc-block-components-coupon-form input {
	border-radius: 50px;
	border: 1px solid rgba(46, 94, 78, 0.12);
	padding: 0.6rem 1rem;
	font-size: 0.85rem;
}

/* ============================================================
   CHECKOUT PAGE — Premium Green
   ============================================================ */

.woocommerce-checkout .wp-site-blocks {
	max-width: var(--wp--style--global--wide-size);
	margin: 0 auto;
	padding: 0 var(--wp--preset--spacing--50);
}

.wc-block-checkout .wc-block-components-main {
	border-radius: 12px;
	border: 1px solid rgba(46, 94, 78, 0.08);
	padding: 1.5rem;
	background: #FFFFFF;
}

.wc-block-checkout .wc-block-components-panel {
	border-radius: 8px;
	border: 1px solid rgba(46, 94, 78, 0.06);
	margin-bottom: 1rem;
	overflow: hidden;
}

.wc-block-checkout .wc-block-components-panel .wc-block-components-panel__button {
	color: #1F2A24;
	font-weight: 500;
	font-size: 0.9rem;
	padding: 1rem;
}

.wc-block-checkout .wc-block-components-panel .wc-block-components-panel__button:hover {
	color: #2E5E4E;
}

.wc-block-checkout .wc-block-components-text-input input,
.wc-block-checkout .wc-block-components-select input,
.wc-block-checkout .wc-block-components-combobox input {
	border-radius: 8px;
	border: 1px solid rgba(46, 94, 78, 0.12);
	padding: 0.75rem 1rem;
	font-size: 0.85rem;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.wc-block-checkout .wc-block-components-text-input input:focus,
.wc-block-checkout .wc-block-components-select input:focus {
	border-color: #2E5E4E;
	box-shadow: 0 0 0 3px rgba(46, 94, 78, 0.08);
	outline: none;
}

.wc-block-checkout .wc-block-components-label {
	color: #5C6B63;
	font-size: 0.8rem;
	font-weight: 500;
}

.wc-block-checkout .wc-block-checkout__sidebar {
	border-radius: 12px;
	border: 1px solid rgba(46, 94, 78, 0.08);
	padding: 1.5rem;
	background: #F7F8F4;
}

.wc-block-checkout .wc-block-checkout__sidebar .wc-block-components-totals-item__label {
	color: #5C6B63;
	font-size: 0.85rem;
}

.wc-block-checkout .wc-block-checkout__sidebar .wc-block-components-totals-item__value {
	font-weight: 600;
	color: #1F2A24;
}

.wc-block-checkout .wc-block-checkout__sidebar .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	color: #2E5E4E;
	font-size: 1.1rem;
	font-weight: 700;
}

/* Checkout place order button */
.wc-block-checkout .wc-block-components-checkout-place-order-button,
.wc-block-checkout .wc-block-components-button.wc-block-components-checkout-place-order-button {
	background: #2E5E4E !important;
	color: #FFFFFF !important;
	border-radius: 50px !important;
	padding: 0.85rem 2.5rem !important;
	font-weight: 600 !important;
	font-size: 0.9rem !important;
	text-transform: uppercase !important;
	letter-spacing: 0.03em !important;
	border: none !important;
	transition: all 0.25s ease !important;
	width: 100%;
}

.wc-block-checkout .wc-block-components-checkout-place-order-button:hover {
	background: #3F735E !important;
	transform: translateY(-1px);
}

/* ============================================================
   WOOCOMMERCE NOTICES — Green styling
   ============================================================ */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	border-radius: 10px !important;
	border-top: 3px solid #2E5E4E !important;
	background: #F7F8F4 !important;
	color: #1F2A24 !important;
	font-size: 0.85rem !important;
	padding: 1rem 1.5rem !important;
	margin: 1rem 0 !important;
}

.woocommerce-message {
	border-top-color: #2E5E4E !important;
}

.woocommerce-info {
	border-top-color: #4D8B70 !important;
}

.woocommerce-error {
	border-top-color: #c44 !important;
}

.woocommerce-message .button,
.woocommerce-info .button {
	background: #2E5E4E !important;
	color: #FFFFFF !important;
	border-radius: 50px !important;
	padding: 0.4rem 1.2rem !important;
	font-size: 0.8rem !important;
	font-weight: 500 !important;
}

.woocommerce-message .button:hover {
	background: #3F735E !important;
}

/* ============================================================
   WOOCOMMERCE FORMS
   ============================================================ */
.woocommerce form .form-row input,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
	border-radius: 8px;
	border: 1px solid rgba(46, 94, 78, 0.12);
	padding: 0.7rem 1rem;
	font-size: 0.85rem;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.woocommerce form .form-row input:focus,
.woocommerce form .form-row textarea:focus {
	border-color: #2E5E4E;
	box-shadow: 0 0 0 3px rgba(46, 94, 78, 0.08);
	outline: none;
}

.woocommerce form .form-row label {
	color: #5C6B63;
	font-size: 0.8rem;
	font-weight: 500;
}

/* ============================================================
   RESPONSIVE — All pages
   ============================================================ */

/* Cart responsive */
@media (max-width: 768px) {
	.wc-block-cart .wc-block-cart-items thead {
		display: none;
	}

	.wc-block-cart .wc-block-cart-items tbody td {
		padding: 0.75rem;
	}

	.wc-block-cart .wc-block-cart__totals {
		padding: 1rem;
	}

	.wc-block-checkout .wc-block-components-main,
	.wc-block-checkout .wc-block-checkout__sidebar {
		padding: 1rem;
	}
}

@media (max-width: 480px) {
	.woocommerce-cart .wp-site-blocks,
	.woocommerce-checkout .wp-site-blocks {
		padding: 0 1rem;
	}

	.wc-block-cart .wc-block-cart__totals .wc-block-components-button:not(.wp-block-button) {
		width: 100%;
		justify-content: center;
	}
}

/* ============================================================
   DISABLE PRODUCT IMAGE LIGHTBOX (PhotoSwipe)
   ============================================================ */
.pswp {
	display: none !important;
}

/* Remove zoom cursor and trigger button on product images */
.woocommerce-product-gallery__trigger {
	display: none !important;
}

.woocommerce-product-gallery img {
	cursor: default !important;
}
