/* =========================================================================
   BAMBOO YEAH  ·  brand stylesheet (child of Botiga)
   Palette derived from the panda/bamboo logo.
   ========================================================================= */

:root,
body,
#page {
	--by-ink:       #20232B;   /* near-black text            */
	--by-ink-soft:  #464B57;   /* secondary text            */
	--by-green-900: #2E5216;   /* deepest green               */
	--by-green-700: #4E8A2B;   /* PRIMARY brand green         */
	--by-green-600: #437C25;   /* hover / pressed             */
	--by-green-500: #6BA43E;   /* accent green                */
	--by-green-300: #9BCa6E;   /* soft green                  */
	--by-cream:     #F3F6EE;   /* logo cream                  */
	--by-mist:      #E9F3DB;   /* logo light sage             */
	--by-mist-2:    #CFE7B5;   /* logo darker sage            */
	--by-paper:     #FBFDF9;   /* page background             */
	--by-border:    #D6E4C6;   /* hairline borders            */
	--by-shadow:    rgba(32,35,43,0.10);

	--by-font: "Inter", "Figtree", -apple-system, BlinkMacSystemFont,
	           "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--by-radius-sm: 6px;
	--by-radius:    12px;
	--by-radius-lg: 18px;
	--by-maxw: 1220px;
}

/* ---- Global ----------------------------------------------------------- */
body {
	background: var(--by-paper);
	color: var(--by-ink);
	font-family: var(--by-font);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	font-size: 16px;
	line-height: 1.65;
}

a {
	color: var(--by-green-700);
	text-decoration: none;
	transition: color .18s ease;
}
a:hover { color: var(--by-green-600); }

h1, h2, h3, h4, h5, h6, .page-title {
	font-family: var(--by-font);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.2;
	color: var(--by-ink);
}

::selection { background: var(--by-mist-2); color: var(--by-ink); }

/* ---- Container width -------------------------------------------------- */
.botiga-wrapper, .container, .container-fluid, #content, #primary,
.woocommerce, .woocommerce-page { max-width: var(--by-maxw); }

/* ---- Skip link ------------------------------------------------- */
.skip-link:focus { color: var(--by-ink); }

/* =========================================================================
   HEADER / NAV  ·  light, airy, leafy
   ========================================================================= */
.bhfb-header, .site-header, header.bhfb,
.bhfb-main-header-row .bhfb-row, .site-header-below .bhfb-row {
	background: var(--by-paper);
}
.bhfb-header.bhfb-desktop, header.bhfb { border-bottom: 1px solid var(--by-border); }

/* ---- Header: reflow the 3 builder columns into a true centered row ------
   The Botiga header builder emits:  .container-fluid > .bhfb-row >
     .bhfb-column-1 (menu) .bhfb-column-2 (logo) .bhfb-column-3 (icons)
   We lay those three columns out as one flex row: menu left, logo centered,
   icons right, all vertically centered on a single shared baseline. */
.bhfb-header .container-fluid {
	max-width: calc(var(--by-maxw) + 80px);
	margin: 0 auto;
}
.bhfb-main_header_row .bhfb-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	height: 84px;
}
.bhfb-main_header_row .bhfb-column-1 {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	align-items: center;
	justify-content: flex-start;
}
.bhfb-main_header_row .bhfb-column-2 {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
}
.bhfb-main_header_row .bhfb-column-3 {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	align-items: center;
	justify-content: flex-end;
}
.bhfb-main_header_row .bhfb-row > .bhfb-column { width: auto; }

/* Text wordmark: hide the logo image, show the brand name as styled text. */
.site-branding {
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1.15;
	text-align: center;
}
/* hide the logo image (wordmark PNG) so the text brand is the only mark */
.site-branding .custom-logo,
.site-branding img.custom-logo,
.bhfb-component-logo .custom-logo,
.bhfb-component-logo img {
	display: none !important;
}
/* brand name as the header identity */
.site-branding .site-title,
.site-branding .site-title a {
	display: inline-block !important;
	font-family: var(--by-font);
	font-size: 21px;
	font-weight: 800;
	letter-spacing: .01em;
	line-height: 1.05;
	color: var(--by-ink);
	text-decoration: none;
	white-space: nowrap;
	position: relative;
	padding-bottom: 3px;
}
.site-branding .site-title a { transition: color .18s ease; }
.site-branding .site-title a:hover { color: var(--by-green-700); }
.site-branding .site-title a::after {
	content: "";
	position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
	background: var(--by-green-700);
	border-radius: 2px; transform: scaleX(0); transform-origin: left center;
	transition: transform .22s ease;
}
.site-branding .site-title a:hover::after { transform: scaleX(1); }
.site-branding .site-title strong,
.site-branding .site-title a strong { color: var(--by-green-700); }
.site-branding .site-description {
	display: block;
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--by-ink-soft);
	margin: 2px 0 0;
	white-space: nowrap;
	max-width: 220px;
	overflow: hidden;
	text-overflow: ellipsis;
}
/* ensure the logo column doesn't collapse to zero width now the image is gone */
.bhfb-main_header_row .bhfb-column-2 { min-width: 40px; }

/* Primary navigation */
.main-navigation { max-width: none; }
.main-navigation .menu,
#primary-menu,
.main-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.main-navigation .menu > li,
#primary-menu > li {
	display: inline-flex;
	align-items: center;
}
.main-navigation a,
#primary-menu a {
	display: inline-block;
	padding: 14px 16px;
	color: var(--by-ink);
	font-weight: 600;
	font-size: 14.5px;
	letter-spacing: .01em;
	position: relative;
	border-radius: var(--by-radius-sm);
}
.main-navigation a::after {
	content:"";
	position:absolute; left:16px; right:16px; bottom:8px; height:2px;
	background: var(--by-green-500);
	transform: scaleX(0); transform-origin:left center;
	transition: transform .22s ease; border-radius:2px;
}
.main-navigation a:hover,
.main-navigation .current_page_item > a { color: var(--by-green-700); }
.main-navigation a:hover::after,
.main-navigation .current_page_item > a::after { transform: scaleX(1); }

/* hide utility menu items from primary nav (mini-cart keeps cart access) */
.menu .page-item-2,   /* Sample Page   */
.menu .page-item-6,   /* Cart          */
.menu .page-item-7,   /* Checkout      */
.menu .page-item-8    /* My account    */ { display: none; }

/* Cart link + count in header */
.site-header-cart, .site-header-cart a, .cart-contents { color: var(--by-ink); }
.site-header-cart .cart-count, .cart-count {
	background: var(--by-green-700);
	color: #fff;
	border-radius: 999px;
	min-width: 22px; height: 22px; line-height: 22px;
	text-align: center;
	font-size: 12px; font-weight: 700;
	display: inline-block; padding: 0 6px;
	box-shadow: 0 2px 8px rgba(78,138,43,.25);
}
.site-header-cart:hover .cart-count { background: var(--by-green-600); }

/* ---- Search / header widgets ---------------------------------------- */
.widget_search .search-field,
.searchform input[type="search"] {
	border: 1px solid var(--by-border);
	border-radius: 999px;
	background: #fff;
	padding: 9px 16px;
}
.widget_search .search-field:focus,
.searchform input[type="search"]:focus {
	outline: none;
	border-color: var(--by-green-500);
	box-shadow: 0 0 0 3px rgba(107,164,62,.18);
}

/* =========================================================================
   PAGE HEADERS  ·  (Shop, single product, cart, checkout)
   ========================================================================= */
.woocommerce-page-header,
.woocommerce-page-header* { background: transparent; }

.woocommerce-products-header {
	padding: 46px 0 26px;
	background:
		radial-gradient(1200px 220px at 85% -30%, rgba(207,231,181,.55), transparent 60%),
		radial-gradient(760px 200px at 0% -40%, rgba(155,202,110,.28), transparent 60%);
	border-bottom: 1px solid var(--by-border);
}
.woocommerce-products-header__title.page-title,
.page-title {
	font-size: clamp(30px, 5vw, 44px);
	font-weight: 800;
	letter-spacing: -0.03em;
	margin: 0 0 6px;
	background: linear-gradient(90deg, var(--by-ink) 0%, var(--by-green-900) 130%);
	-webkit-background-clip: text; background-clip: text;
}
.woocommerce-products-header__text,
.woocommerce-notices-wrapper .woocommerce-message {
	color: var(--by-ink-soft);
	max-width: 640px;
	font-size: 16.5px;
}
.woocommerce-result-count {
	color: var(--by-ink-soft);
	font-size: 13.5px;
	letter-spacing: .03em;
	font-weight: 600;
	text-transform: uppercase;
}

/* =========================================================================
   PRODUCT GRID / CARDS  ·  clean white cards, green accents
   ========================================================================= */
ul.products {
	margin: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	padding-top: 26px;
	list-style: none;
}
ul.products::before, ul.products::after { display: none; }
/* equal-height tiles: every cell stretches to the row height */
ul.products li.product {
	float: none;
	width: auto; margin: 0;
	background: #fff;
	border: 1px solid var(--by-border);
	border-radius: var(--by-radius-lg);
	overflow: hidden;
	padding: 0;
	box-shadow: 0 1px 2px rgba(32,35,43,.04);
	transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 0;
}
ul.products li.product:hover {
	transform: translateY(-6px);
	border-color: var(--by-mist-2);
	box-shadow: 0 18px 40px -18px rgba(46,82,22,.35),
	           0 6px 16px -8px rgba(32,35,43,.12);
}

/* ---- image: fixed square so every tile has the same top section -------- */
ul.products li.product .woocommerce-loop-product__link,
ul.products li.product a.woocommerce-loop-product__link {
	display: block;
	text-decoration: none;
	color: inherit;
}
.loop-image-wrap,
ul.products li.product .loop-image-wrap {
	position: relative;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: var(--by-cream);
	height: auto;
}
ul.products li.product img,
.loop-image-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: 0;
	background: var(--by-cream);
	transition: transform .5s ease;
}
ul.products li.product:hover img { transform: scale(1.05); }

/* in-image add-to-cart: docked to the bottom edge of the square image */
.loop-image-wrap .loop-button-wrap,
ul.products li.product .loop-image-wrap .loop-button-wrap {
	position: absolute;
	left: 10px;
	right: 10px;
	bottom: 10px;
	padding: 0;
	height: auto;
	overflow: visible;
	text-align: center;
}

/* the empty trailing button wrapper that Botiga emits after the link */
ul.products li.product > .loop-button-wrap {
	height: 0;
	overflow: hidden;
	padding: 0;
	margin: 0;
}

/* ---- title + price in a fixed body: title top, price pinned bottom ------ */
ul.products li.product .woocommerce-loop-product__title {
	margin: 18px 18px 10px !important;
	font-size: 15.5px !important;
	font-weight: 700 !important;
	letter-spacing: -0.01em;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
ul.products li.product .woocommerce-loop-product__title a { color: var(--by-ink); }
ul.products li.product .woocommerce-loop-product__title a:hover { color: var(--by-green-700); }

ul.products li.product .price {
	margin: 0 18px 18px;
	margin-top: auto;   /* push price down so the baseline matches every tile */
	font-size: 15px;
	color: var(--by-ink-soft);
	font-weight: 600;
}
ul.products li.product .price .amount,
ul.products li.product .price .woocommerce-Price-amount {
	font-size: 20px;
	font-weight: 800;
	color: var(--by-green-700);
	letter-spacing: -0.01em;
}

/* add-to-cart button (in loop) — full width, docked on the image */
.add_to_cart_button,
.woocommerce-loop-product__add-to-cart,
.button.product_type_simple {
	display: inline-flex;
	align-items: center; justify-content: center;
	background: var(--by-ink) !important;
	color: #fff !important;
	border: 1px solid var(--by-ink) !important;
	border-radius: 999px !important;
	padding: 11px 20px !important;
	margin: 0 !important;
	font-family: var(--by-font);
	font-size: 13.5px !important;
	font-weight: 700;
	letter-spacing: .02em;
	text-transform: none !important;
	box-shadow: 0 4px 12px -6px rgba(32,35,43,.5);
	transition: background .18s ease, color .18s ease, box-shadow .18s ease;
	cursor: pointer;
}
/* inside a product tile -> full width */
ul.products li.product .add_to_cart_button,
ul.products li.product .button.product_type_simple {
	width: 100%;
}
.add_to_cart_button:hover,
.button.product_type_simple:hover {
	background: var(--by-green-700) !important;
	border-color: var(--by-green-700) !important;
	color: #fff !important;
	box-shadow: 0 10px 22px -10px rgba(78,138,43,.6);
}
.add_to_cart_button:focus-visible, .button:focus-visible {
	outline: 3px solid rgba(107,164,62,.4);
	outline-offset: 2px;
}
.added_to_cart {
	background: var(--by-green-300) !important;
	color: var(--by-green-900) !important;
	border-color: var(--by-green-300) !important;
}

/* on-sale / badges */
ul.products li.product .onsale,
.product .onsale {
	background: var(--by-green-700) !important;
	color: #fff !important;
	border-radius: 999px !important;
	font-size: 12px !important;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	min-height: 26px !important; min-width: 26px !important;
	line-height: 26px !important;
	box-shadow: 0 4px 12px -4px rgba(78,138,43,.5);
	top: 18px !important;
}

/* out of stock */
.outofstock {
	background: #6b6f78 !important; color:#fff !important;
	border-radius: 999px !important; font-size:12px !important; font-weight:700;
	padding:4px 10px !important; line-height:20px !important; text-transform:uppercase;
}

/* product rating */
.star-rating, .woocommerce-reviewers { color:#8a8f99; }
.star-rating::before, .star-rating span::before {
	color: var(--by-green-500);
	text-shadow: 0 1px 0 rgba(0,0,0,.05);
}

/* =========================================================================
   BUTTONS (primary)  ·  site-wide
   ========================================================================= */
.btn, a.button, a.button.woocommerce, input.button, input[type=submit],
.button.woocommerce-add-to-cart, .woocommerce #respond input#submit,
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
	font-family: var(--by-font);
	font-weight: 700;
	background: var(--by-green-700);
	color: #fff;
	border-color: var(--by-green-700);
	border-radius: 999px;
	padding: 12px 22px;
	letter-spacing: .02em;
	transition: background .18s ease, box-shadow .18s ease, transform .12s ease;
	box-shadow: 0 8px 20px -12px rgba(78,138,43,.6);
}
.btn:hover, a.button:hover, input.button:hover,
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover {
	background: var(--by-green-600);
	border-color: var(--by-green-600);
	color:#fff;
	box-shadow: 0 12px 26px -12px rgba(78,138,43,.7);
}
a.button.alt, input.button.alt, .button.alt {
	background: #fff; color: var(--by-ink); border-color: var(--by-border);
	box-shadow: none;
}
a.button.alt:hover { color: var(--by-green-700); border-color: var(--by-mist-2); }

/* =========================================================================
   FORMS
   ========================================================================= */
input[type=text], input[type=email], input[type=password], input[type=search],
input[type=tel], input[type=url], select, textarea {
	border: 1px solid var(--by-border);
	border-radius: var(--by-radius-sm);
	background:#fff;
	padding: 11px 14px;
	font-family: var(--by-font);
	font-size: 15px;
	color: var(--by-ink);
}
input[type=text]:focus, input[type=email]:focus, select:focus, textarea:focus,
input[type=password]:focus, input[type=search]:focus, input[type=tel]:focus, input[type=url]:focus {
	outline: none;
	border-color: var(--by-green-500);
	box-shadow: 0 0 0 3px rgba(107,164,62,.18);
}
fieldset { border: none; padding: 0; margin: 0 0 18px; }
legend, .woocommerce-info, .label { font-weight: 700; color: var(--by-ink); }

/* =========================================================================
   CARDS / LISTS used by WooCommerce notices
   ========================================================================= */
.woocommerce-message, .woocommerce-info {
	background: var(--by-mist);
	border: 1px solid var(--by-mist-2);
	border-left: 4px solid var(--by-green-500);
	border-radius: 0 var(--by-radius-sm) var(--by-radius-sm) 0;
	color: var(--by-ink);
	padding: 14px 18px;
}
.woocommerce-error {
	background: #fff2f0;
	border-left: 4px solid #E4572E;
	color: #7a2b16;
	border-radius: 0 var(--by-radius-sm) var(--by-radius-sm) 0;
}

/* =========================================================================
   FOOTER  ·  deep ink / green, light text
   ========================================================================= */
.bhfb-footer, footer.bhfb,
.bhfb-footer .bhfb-row, .site-footer, #colophon {
	background: var(--by-ink) !important;
}
.bhfb-footer, footer.bhfb, .site-footer, #colophon {
	color: var(--by-mist);
	font-size: 14px;
	padding: 40px 0 28px;
	border-top: 3px solid var(--by-green-700);
}
.bhfb-footer a, footer.bhfb a, .site-footer a, #colophon a {
	color: var(--by-mist);
	text-decoration: none;
}
.bhfb-footer a:hover, footer.bhfb a:hover, .site-footer a:hover, #colophon a:hover {
	color: var(--by-green-300);
	text-decoration: underline;
}
.bhfb-footer .widget-title, footer.bhfb .widget-title, .site-footer .widget-title,
#colophon .widget-title {
	color: var(--by-green-300);
	font-size: 13px;
	letter-spacing: .14em;
	text-transform: uppercase;
	font-weight: 700;
	margin-bottom: 16px;
}
.bhfb-footer .copyright, .site-footer .copyright, #colophon .copyright,
.bhfb-below-footer, .copyright-bar {
	border-top: 1px solid rgba(233,243,219,.18);
	padding-top: 26px;
	margin-top: 18px;
	font-size: 13px;
	color: #b7c3a8;
}
.bhfb-footer .copyright a, .copyright-bar a { color:#b7c3a8; }

/* =========================================================================
   SIDEBAR / WIDGETS
   ========================================================================= */
.sidebar .widget, .widget {
	background: #fff;
	border: 1px solid var(--by-border);
	border-radius: var(--by-radius);
	padding: 18px;
	margin-bottom: 18px;
}
.sidebar .widget-title, .widget-title {
	font-size: 13px;
	letter-spacing: .16em;
	text-transform: uppercase;
	font-weight: 700;
	color: var(--by-green-700);
	margin-bottom: 14px;
}
.sidebar ul, .widget ul { list-style: none; padding: 0; margin: 0; }
.sidebar ul li, .widget ul li {
	padding: 8px 0;
	border-bottom: 1px dashed var(--by-border);
}
.sidebar ul li:last-child, .widget ul li:last-child { border-bottom: none; }

/* product meta / attributes on single product */
.product_meta, .product_meta a { color: var(--by-ink-soft); }
.product_meta a:hover { color: var(--by-green-700); }

/* =========================================================================
   PAGINATION
   ========================================================================= */
.woocommerce-pagination a, .woocommerce-pagination span {
	border: 1px solid var(--by-border);
	color: var(--by-ink);
	border-radius: 999px !important;
	padding: 8px 14px !important;
	font-weight: 600;
}
.woocommerce-pagination .current {
	background: var(--by-green-700);
	color:#fff;
	border-color: var(--by-green-700);
}
.woocommerce-pagination a:hover {
	background: var(--by-green-700);
	color:#fff;
	border-color: var(--by-green-700);
}

/* =========================================================================
   SINGLE PRODUCT
   ========================================================================= */
.woocommerce div.product h1 { font-size: 30px; font-weight: 800; margin-bottom: 8px; }
.woocommerce div.product .product_title { font-size: 30px; font-weight: 800; }
.woocommerce div.product .price { font-size: 28px; font-weight: 800; color: var(--by-green-700); }
.woocommerce div.product .woocommerce-Price-amount { font-size: 28px; }
.woocommerce div.product .woocommerce-Tabs-panel, .woocommerce-tab-panel {
	padding: 8px 4px 0;
}
.woocommerce-tabs .wc-tab { color: var(--by-ink-soft); }
.woocommerce-tabs .active .wc-tab { color: var(--by-green-700); }
.woocommerce div.product .woocommerce-tabs ul.tabs::before { border-color: var(--by-border); }

/* =========================================================================
   TABLES (cart, checkout, orders)
   ========================================================================= */
.shop-table, .woocommerce table.shop_table, .woocommerce table.shop_table_responsive {
	border-collapse: separate;
	border-spacing: 0 6px;
}
.woocommerce table.shop_table td, .woocommerce table.shop_table th {
	border: none;
	border-bottom: 1px solid var(--by-border);
	padding: 14px 10px;
	color: var(--by-ink);
}
.woocommerce table.shop_table th {
	background: var(--by-mist);
	border-radius: var(--by-radius-sm);
	font-weight: 700;
	font-size: 13px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--by-green-900);
}

/* =========================================================================
   MISC POLISH
   ========================================================================= */
img { max-width: 100%; height: auto; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
	outline: 3px solid rgba(107,164,62,.4);
	outline-offset: 2px;
}

/* ---- Responsive ------------------------------------------------------- */
@media (max-width: 991px) {
	ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
	.woocommerce-products-header { padding: 32px 0 20px; }
	.woocommerce-products-header__title.page-title, .page-title { font-size: 32px; }
	.main-navigation a, #primary-menu a { padding: 12px 12px; font-size: 14px; }
	.menu .page-item-2, .menu .page-item-6, .menu .page-item-7, .menu .page-item-8
	    { display: inline-flex; }  /* on mobile, bring utility links back */
}
@media (max-width: 600px) {
	ul.products { grid-template-columns: 1fr; }
}
