/* Farmer-BlackNWhite WooCommerce presentation. Commerce behavior remains native. */

.woocommerce .woocommerce-breadcrumb,
.wp-block-woocommerce-breadcrumbs {
	color: #737373;
	font-size: 12px;
	letter-spacing: 0.2px;
}

.woocommerce .woocommerce-breadcrumb a,
.wp-block-woocommerce-breadcrumbs a {
	color: inherit;
	text-decoration: none;
}

.woocommerce .woocommerce-breadcrumb a:hover,
.wp-block-woocommerce-breadcrumbs a:hover {
	color: currentColor;
	text-decoration: underline;
}

/* Shop and collection banner */
.farmer-bnw-archive-hero {
	position: relative;
	display: flex;
	min-height: 52px;
	align-items: center;
	background-color: #0c0c0c;
	background-image: none;
}

.farmer-bnw-archive-hero-inner {
	width: 100%;
	text-shadow: 0 2px 14px rgba(0, 0, 0, 0.92);
}

.farmer-bnw-archive-hero .wp-block-woocommerce-breadcrumbs,
.farmer-bnw-archive-hero .woocommerce-breadcrumb,
.farmer-bnw-archive-hero .wp-block-woocommerce-breadcrumbs a {
	margin: 0;
	color: #ffffff;
}

.farmer-bnw-archive-hero .wp-block-query-title {
	display: none;
}

.farmersbar-collection-main {
	padding-top: 76px;
	padding-bottom: 104px;
}

.farmer-bnw-term-description {
	max-width: 760px;
	margin-bottom: 34px;
	color: #666666;
}

.farmer-bnw-term-description:empty {
	display: none;
}

.farmersbar-product-collection {
	margin-top: 0;
}

.farmersbar-collection-layout {
	align-items: flex-start !important;
	column-gap: 40px;
}

.farmersbar-filter-column {
	position: sticky;
	top: 118px;
}

.admin-bar .farmersbar-filter-column {
	top: 150px;
}

.post-type-archive-product .farmersbar-filter-column,
.tax-product_cat.term-glass .farmersbar-filter-column,
.tax-product_cat.term-accessories .farmersbar-filter-column,
.tax-product_cat.term-all-craft-spirits .farmersbar-filter-column,
.tax-product_cat.term-made-in-malaysia .farmersbar-filter-column {
	display: none;
}

.post-type-archive-product .farmersbar-products-column,
.tax-product_cat.term-glass .farmersbar-products-column,
.tax-product_cat.term-accessories .farmersbar-products-column,
.tax-product_cat.term-all-craft-spirits .farmersbar-products-column,
.tax-product_cat.term-made-in-malaysia .farmersbar-products-column {
	width: 100%;
	flex-basis: 100% !important;
}

@media (min-width: 901px) {
	.tax-product_cat.term-all-craft-beer .farmersbar-filter-column {
		position: static;
		align-self: stretch;
	}

	.tax-product_cat.term-all-craft-beer .farmersbar-product-filters {
		position: sticky;
		top: 118px;
		max-height: calc(100vh - 142px);
		padding-right: 12px;
		overflow-y: auto;
		overscroll-behavior: contain;
		scrollbar-color: #bfbfbf transparent;
		scrollbar-gutter: stable;
		scrollbar-width: thin;
	}

	.admin-bar.tax-product_cat.term-all-craft-beer .farmersbar-product-filters {
		top: 150px;
		max-height: calc(100vh - 174px);
	}
}

.farmersbar-product-filters,
.farmersbar-product-filters .wc-block-product-filters__overlay,
.farmersbar-product-filters .wc-block-product-filters__overlay-wrapper,
.farmersbar-product-filters .wc-block-product-filters__overlay-dialog,
.farmersbar-product-filters .wc-block-product-filters__overlay-content {
	width: 100%;
}

.farmersbar-product-filters .wc-block-product-filters__overlay-content {
	gap: 0;
}

.farmersbar-product-filters :where(.wp-block-woocommerce-product-filter-attribute, .wp-block-woocommerce-product-filter-taxonomy, .wp-block-woocommerce-product-filter-active) {
	padding: 20px 0;
	border-bottom: 1px solid #dedede;
}

.farmersbar-product-filters :where(.wp-block-woocommerce-product-filter-attribute, .wp-block-woocommerce-product-filter-taxonomy, .wp-block-woocommerce-product-filter-active):first-child {
	padding-top: 0;
}

.farmersbar-product-filters h3 {
	margin: 0 0 12px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.farmersbar-product-filters .wc-block-checkbox-list__checkbox,
.farmersbar-product-filters .wc-block-product-filter-checkbox-list__item {
	font-size: 13px;
}

.farmersbar-product-filters input[type="checkbox"] {
	accent-color: #0c0c0c;
}

.tax-product_cat.term-all-craft-beer .wp-block-woocommerce-product-filter-taxonomy .wc-block-product-filter-checkbox-list__show-more-button {
	display: none;
}

.farmersbar-product-filters .wc-block-product-filter-removable-chips__clear-all,
.farmersbar-product-filters .wc-block-product-filter-clear-button {
	color: #0c0c0c;
	font-size: 12px;
}

/* Results and sort toolbar */
.farmersbar-results-toolbar {
	min-height: 44px;
	margin-bottom: 34px;
}

.farmersbar-results-toolbar .woocommerce-result-count,
.farmersbar-results-toolbar .wp-block-woocommerce-product-results-count {
	margin: 0;
	color: #666666;
	font-size: 13px;
}

.farmersbar-results-toolbar select,
.farmersbar-results-toolbar .woocommerce-ordering select {
	min-width: 220px;
	min-height: 42px;
	padding: 0 38px 0 13px;
	border: 1px solid #cdcdcd;
	border-radius: 2px;
	background: #ffffff;
	color: #0c0c0c;
	font-size: 13px;
}

/* Product cards */
.farmersbar-product-grid {
	gap: 48px 40px !important;
}

@media (min-width: 901px) {
	.farmersbar-product-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	}
}

.farmersbar-product-grid > li,
.farmersbar-product-grid .wc-block-product {
	position: relative;
	display: flex;
	min-width: 0;
	flex-direction: column;
	text-align: center;
}

.farmersbar-product-grid .wc-block-components-product-image,
.farmersbar-product-grid .wp-block-woocommerce-product-image {
	position: relative;
	margin: 0 0 19px;
	overflow: hidden;
	border-radius: 2px;
	background: #f6f6f7;
}

.farmersbar-product-grid .wc-block-components-product-image img,
.farmersbar-product-grid .wp-block-woocommerce-product-image img {
	display: block;
	width: 100%;
	aspect-ratio: 27 / 35;
	object-fit: contain;
	transition: transform 450ms cubic-bezier(0.22, 1, 0.36, 1);
}

.farmersbar-product-grid > li:hover .wc-block-components-product-image img,
.farmersbar-product-grid .wc-block-product:hover .wp-block-woocommerce-product-image img {
	transform: scale(1.035);
}

.farmersbar-product-grid .wp-block-post-title,
.farmersbar-product-grid .wc-block-components-product-title {
	margin: 0;
	font-size: 16.8px !important;
	font-weight: 700;
	line-height: 1.35;
	text-transform: none;
}

.farmersbar-product-grid .wp-block-post-title a,
.farmersbar-product-grid .wc-block-components-product-title a {
	color: #0c0c0c;
	text-decoration: none;
}

.farmersbar-product-grid .wp-block-post-title a:hover,
.farmersbar-product-grid .wc-block-components-product-title a:hover {
	color: #4d4d4d;
}

.farmersbar-product-grid .wc-block-components-product-price,
.farmersbar-product-grid .wp-block-woocommerce-product-price {
	margin-top: 8px;
	font-size: 14.4px !important;
	font-weight: 500;
}

.farmersbar-product-grid .wc-block-components-product-button,
.farmersbar-product-grid .wp-block-woocommerce-product-button {
	min-height: 48px;
	margin-top: 16px;
}

.farmersbar-product-grid .wp-block-button__link,
.farmersbar-product-grid .wc-block-components-product-button__button {
	width: min(100%, 171px);
	min-height: 48px;
	justify-content: center;
	border: 1px solid #cccccc;
	border-radius: 2px;
	background: transparent;
	color: #0c0c0c;
	font-size: 14px;
}

.farmersbar-product-grid .wp-block-button__link:hover,
.farmersbar-product-grid .wc-block-components-product-button__button:hover {
	border-color: #0c0c0c;
	background: #0c0c0c;
	color: #ffffff;
}

@media (hover: hover) and (pointer: fine) {
	.farmersbar-product-grid .wp-block-woocommerce-product-button,
	.farmersbar-product-grid .wc-block-components-product-button {
		visibility: hidden;
		opacity: 0;
		pointer-events: none;
		transform: translateY(7px);
		transition: visibility 180ms ease, opacity 180ms ease, transform 180ms ease;
	}

	.farmersbar-product-grid > li:hover .wp-block-woocommerce-product-button,
	.farmersbar-product-grid > li:hover .wc-block-components-product-button,
	.farmersbar-product-grid > li:focus-within .wp-block-woocommerce-product-button,
	.farmersbar-product-grid > li:focus-within .wc-block-components-product-button {
		visibility: visible;
		opacity: 1;
		pointer-events: auto;
		transform: translateY(0);
	}
}

@media (hover: none), (pointer: coarse) {
	.farmersbar-product-grid .wp-block-woocommerce-product-button,
	.farmersbar-product-grid .wc-block-components-product-button {
		visibility: visible;
		opacity: 1;
		pointer-events: auto;
		transform: none;
	}
}

.farmersbar-product-grid .wc-block-components-product-sale-badge,
.farmersbar-product-grid .wc-block-grid__product-onsale {
	top: 11px;
	right: 11px;
	left: auto;
	padding: 5px 9px;
	border: 0;
	border-radius: 2px;
	background: #0c0c0c;
	color: #ffffff;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.7px;
	text-transform: uppercase;
}

.farmersbar-product-pagination {
	margin-top: 70px;
}

.farmersbar-product-pagination .page-numbers {
	display: inline-flex;
	min-width: 40px;
	min-height: 40px;
	align-items: center;
	justify-content: center;
	border: 1px solid #d4d4d4;
	border-radius: 2px;
	color: #0c0c0c;
	text-decoration: none;
}

.farmersbar-product-pagination .page-numbers.current,
.farmersbar-product-pagination a.page-numbers:hover {
	border-color: #0c0c0c;
	background: #0c0c0c;
	color: #ffffff;
}

/* Compact product title divider */
.farmer-bnw-product-hero {
	min-height: 84px;
	background: #0c0c0c !important;
}

.farmer-bnw-product-hero-inner {
	min-height: 84px;
	gap: 18px;
	justify-content: flex-start !important;
}

.farmer-bnw-product-hero .wp-block-woocommerce-breadcrumbs,
.farmer-bnw-product-hero .woocommerce-breadcrumb,
.farmer-bnw-product-hero .wp-block-woocommerce-breadcrumbs a {
	margin: 0;
	color: #ffffff;
	font-size: 11px;
}

/* Single product */
.farmersbar-single-product {
	padding-top: 64px;
	padding-bottom: 104px;
}

.farmer-bnw-product-layout {
	align-items: flex-start !important;
	gap: 40px;
	margin: 0;
}

.farmer-bnw-product-gallery .wp-block-woocommerce-product-image-gallery {
	border-radius: 2px;
	background: #f6f6f7;
}

.farmer-bnw-product-gallery .woocommerce-product-gallery__image img {
	width: 100%;
	object-fit: contain;
}

.farmersbar-product-summary {
	padding-top: 0;
}

.farmersbar-product-summary > * + * {
	margin-block-start: 19px;
}

.farmersbar-product-summary .wp-block-post-title {
	max-width: 19ch;
	margin-top: 0;
	font-size: 32px !important;
	font-weight: 700;
	line-height: 1.2;
}

.farmersbar-product-summary .wp-block-woocommerce-product-price {
	margin: 19px 0;
	font-size: 20px !important;
	font-weight: 600;
}

.farmersbar-product-summary .farmer-bnw-product-description {
	max-width: 62ch;
	color: #666666;
	font-size: 15px;
	line-height: 1.68;
}

.farmersbar-product-summary .farmer-bnw-product-description > * {
	margin-block: 0 1.15em;
}

.farmersbar-product-summary .farmer-bnw-product-description > p:first-child {
	padding: 14px 16px;
	border-left: 3px solid #0c0c0c;
	background: #f6f6f7;
	color: #272524;
}

.farmersbar-product-summary .farmer-bnw-product-description > :last-child {
	margin-bottom: 0;
}

.farmersbar-product-summary .farmer-bnw-product-description .beer-comment-list:has(> h1:empty),
.farmersbar-product-summary .farmer-bnw-product-description h1:empty {
	display: none;
}

.farmersbar-product-summary .stock {
	color: #666666;
	font-size: 13px;
}

.farmersbar-product-summary .wp-block-woocommerce-add-to-cart-form {
	margin-top: 28px;
}

.farmersbar-product-summary form.cart {
	display: flex;
	align-items: stretch;
	gap: 10px;
}

.farmersbar-product-summary .quantity .qty {
	min-height: 53px;
	border: 1px solid #cfcfcf;
	border-radius: 2px;
}

.farmersbar-product-summary .single_add_to_cart_button {
	min-height: 53px;
	padding-inline: 34px;
	border-radius: 2px;
	background: #32373c;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.farmersbar-product-summary .single_add_to_cart_button:hover {
	background: #0c0c0c;
}

.farmer-bnw-product-meta {
	gap: 7px;
	padding-top: 18px;
	border-top: 1px solid #dedede;
}

.farmer-bnw-product-meta p,
.farmer-bnw-product-meta .wp-block-post-terms {
	margin: 0;
	color: #666666;
	font-size: 12px;
}

.farmer-bnw-product-meta a {
	color: #0c0c0c;
}

.farmer-bnw-product-details,
.wp-block-woocommerce-product-details,
.woocommerce-tabs {
	margin-top: 74px !important;
}

.farmer-bnw-product-details .reviews_tab,
.woocommerce-tabs .reviews_tab,
.farmer-bnw-product-details #tab-reviews,
.woocommerce-tabs #tab-reviews {
	display: none !important;
}

.wp-block-woocommerce-product-details .wc-tabs,
.woocommerce-tabs .tabs {
	margin-bottom: 32px;
	border-bottom: 1px solid #dedede;
}

.wp-block-woocommerce-product-details .wc-tabs li a,
.woocommerce-tabs .tabs li a {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.8px;
	text-transform: uppercase;
}

.wp-block-woocommerce-product-details .wc-tab,
.woocommerce-tabs .panel {
	max-width: 900px;
	margin-inline: auto;
	color: #454545;
	font-size: 15px;
	line-height: 1.72;
}

.farmer-bnw-single-product .wp-block-woocommerce-related-products,
.farmer-bnw-single-product .related.products {
	margin-top: 90px;
}

.farmer-bnw-single-product .related.products > h2 {
	margin-bottom: 42px;
	font-size: clamp(28px, 3vw, 42px);
}

/* Cart, checkout, account and notices */
.wp-block-woocommerce-cart,
.wp-block-woocommerce-checkout,
.woocommerce-account .woocommerce {
	margin-bottom: 104px;
}

.wc-block-components-notice-banner,
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	border: 0;
	border-left: 4px solid #0c0c0c;
	border-radius: 2px;
	background: #f6f6f7;
	color: #0c0c0c;
}

@media (max-width: 900px) {
	.farmer-bnw-archive-hero {
		min-height: 48px;
	}

	.farmersbar-collection-main {
		padding-top: 62px;
		padding-bottom: 82px;
	}

	.farmersbar-collection-layout {
		flex-wrap: wrap !important;
	}

	.farmersbar-filter-column,
	.farmersbar-products-column {
		flex-basis: 100% !important;
	}

	.farmersbar-filter-column {
		position: static;
	}

	.farmersbar-product-filters .wc-block-product-filters__overlay-content {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 34px;
	}

	.farmersbar-product-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 42px 24px !important;
	}

	.farmer-bnw-product-layout {
		flex-direction: column;
		gap: 48px;
	}

	.farmer-bnw-product-layout > .wp-block-column {
		width: 100%;
		flex-basis: auto !important;
	}

	.farmersbar-product-summary .wp-block-post-title {
		max-width: none;
	}
}

@media (max-width: 600px) {
	.farmer-bnw-archive-hero {
		min-height: 48px;
	}

	.farmersbar-product-filters .wc-block-product-filters__open-overlay {
		width: 100%;
		min-height: 46px;
		justify-content: center;
		border: 1px solid #cfcfcf;
		border-radius: 2px;
		font-size: 13px;
		font-weight: 700;
		letter-spacing: 0.8px;
		text-transform: uppercase;
	}

	.farmersbar-product-filters .wc-block-product-filters__overlay-content {
		display: flex;
	}

	.farmersbar-results-toolbar {
		align-items: flex-start !important;
		flex-direction: column;
		gap: 12px;
	}

	.farmersbar-results-toolbar select,
	.farmersbar-results-toolbar .woocommerce-ordering select {
		width: 100%;
	}

	.farmersbar-product-grid {
		gap: 36px 14px !important;
	}

	.farmersbar-product-grid .wp-block-post-title,
	.farmersbar-product-grid .wc-block-components-product-title {
		font-size: 14px !important;
	}

	.farmersbar-product-grid .wp-block-button__link,
	.farmersbar-product-grid .wc-block-components-product-button__button {
		min-height: 44px;
		padding: 9px 10px;
		font-size: 11px;
	}

	.farmersbar-product-grid .wp-block-woocommerce-product-button,
	.farmersbar-product-grid .wc-block-components-product-button {
		visibility: visible !important;
		opacity: 1 !important;
		pointer-events: auto !important;
		transform: none !important;
	}

	.farmer-bnw-product-hero,
	.farmer-bnw-product-hero-inner {
		min-height: 72px;
	}

	.farmer-bnw-product-hero-title {
		display: none;
	}

	.farmer-bnw-product-hero-inner {
		justify-content: flex-start !important;
	}

	.farmersbar-single-product {
		padding-top: 44px;
		padding-bottom: 76px;
	}

	.farmer-bnw-product-layout {
		gap: 36px;
	}

	.farmersbar-product-summary .wp-block-post-title {
		font-size: 28px !important;
	}

	.farmersbar-product-summary form.cart {
		align-items: stretch;
		flex-wrap: wrap;
	}

	.farmersbar-product-summary .single_add_to_cart_button {
		flex: 1 1 210px;
	}
}
