/* ==========================================================================
   Banana Bags — main stylesheet
   Brand tokens + base typography + fallback header/footer + WooCommerce.
   Elementor renders page layouts; these styles cover everything else.
   ========================================================================== */

:root {
	--bb-blue: #1B4B96;
	--bb-blue-dark: #133566;
	--bb-green: #33A035;
	--bb-yellow: #F5B301;
	--bb-grey: #58595B;
	--bb-light: #F4F7FC;
	--bb-white: #ffffff;
	--bb-text: #333a45;
	--bb-border: #e4e9f2;
	--bb-radius: 10px;
	--bb-shadow: 0 10px 30px rgba(27, 75, 150, 0.08);
	--bb-container: 1200px;
}

/* ---------- Base ---------- */
body { color: var(--bb-text); background: var(--bb-white); }
a { color: var(--bb-blue); text-decoration: none; }
a:hover { color: var(--bb-blue-dark); }
h1, h2, h3, h4, h5, h6 { font-family: "Poppins", sans-serif; color: var(--bb-blue-dark); line-height: 1.2; font-weight: 700; }
.container { width: 100%; max-width: var(--bb-container); margin: 0 auto; padding-inline: 20px; }

.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 10px; top: 10px; background: #fff; padding: 10px 16px; z-index: 9999; border-radius: 6px; }

/* ---------- Buttons ---------- */
.bb-btn,
.bb-page .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce .button,
.woocommerce #respond input#submit {
	display: inline-block;
	background: var(--bb-blue);
	color: #fff;
	padding: 12px 26px;
	border-radius: 8px;
	font-weight: 600;
	border: none;
	cursor: pointer;
	transition: background .2s ease, transform .2s ease;
}
.bb-btn:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover { background: var(--bb-blue-dark); color: #fff; transform: translateY(-1px); }
.bb-btn--yellow,
.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt { background: var(--bb-yellow); color: var(--bb-blue-dark); }
.bb-btn--yellow:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover { background: #e0a500; color: var(--bb-blue-dark); }
.bb-btn--outline { background: transparent; border: 2px solid var(--bb-blue); color: var(--bb-blue); }

/* ---------- Fallback top bar ---------- */
.bb-topbar { background: var(--bb-blue); color: #fff; font-size: 13px; }
.bb-topbar__inner { display: flex; justify-content: center; padding: 8px 20px; }

/* ---------- Fallback header ---------- */
.bb-header { background: #fff; border-bottom: 1px solid var(--bb-border); position: sticky; top: 0; z-index: 100; }
.bb-header__inner { display: flex; align-items: center; gap: 28px; padding-block: 14px; }
.bb-header__branding img { max-height: 56px; width: auto; }
.bb-logo-text { font-weight: 800; font-size: 22px; color: var(--bb-blue); }
.bb-nav { margin-left: auto; }
.bb-nav__menu { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.bb-nav__menu a { color: var(--bb-blue-dark); font-weight: 600; padding: 6px 0; }
.bb-nav__menu a:hover { color: var(--bb-blue); }
.bb-nav__menu li { position: relative; }
.bb-nav__menu .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 210px; background: #fff; border: 1px solid var(--bb-border); border-radius: 10px; box-shadow: var(--bb-shadow); padding: 8px 0; list-style: none; margin: 0; z-index: 200; }
.bb-nav__menu .sub-menu li { padding: 0; }
.bb-nav__menu .sub-menu a { display: block; padding: 8px 18px; }
.bb-nav__menu li:hover > .sub-menu { display: block; }
.bb-nav__menu .menu-item-has-children > a::after { content: " ▾"; font-size: 11px; }
.bb-header__actions { display: flex; align-items: center; gap: 18px; }
.bb-account, .bb-cart { color: var(--bb-blue-dark); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.bb-cart { position: relative; }
.bb-cart-count { background: var(--bb-yellow); color: var(--bb-blue-dark); border-radius: 999px; font-size: 12px; font-weight: 700; padding: 1px 7px; }

/* ---------- Page + blog ---------- */
.bb-page, .bb-blog, .bb-single, .bb-404 { padding-block: 48px; }
.bb-page-header { margin-bottom: 28px; }
.bb-page-title { font-size: 34px; }
.bb-post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.bb-card { background: #fff; border: 1px solid var(--bb-border); border-radius: var(--bb-radius); overflow: hidden; box-shadow: var(--bb-shadow); display: flex; flex-direction: column; }
.bb-card__thumb img { width: 100%; height: 200px; object-fit: cover; display: block; }
.bb-card__body { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.bb-card__cat { color: var(--bb-blue); font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.bb-card__title { font-size: 19px; margin: 0; }
.bb-card__excerpt { color: var(--bb-grey); font-size: 15px; margin: 0; }
.bb-card__more { font-weight: 600; margin-top: auto; }

/* ---------- Single ---------- */
.bb-single__article { max-width: 820px; margin: 0 auto; }
.bb-single__title { font-size: 38px; margin: 8px 0; }
.bb-single__meta { display: flex; gap: 16px; color: var(--bb-grey); font-size: 14px; }
.bb-single__thumb { margin: 24px 0; border-radius: var(--bb-radius); overflow: hidden; }
.entry-content p { margin: 0 0 1.2em; }

/* ---------- 404 ---------- */
.bb-404__inner { text-align: center; max-width: 560px; margin: 0 auto; }
.bb-404__code { font-size: 110px; color: var(--bb-yellow); margin: 0; }

/* ---------- Search form ---------- */
.bb-search-form { display: flex; gap: 8px; margin: 20px 0; }
.bb-search-form__field { flex: 1; padding: 12px 16px; border: 1px solid var(--bb-border); border-radius: 8px; }

/* ---------- Fallback footer ---------- */
.bb-footer { background: var(--bb-blue-dark); color: #cdd7ea; margin-top: 60px; }
.bb-footer__inner { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; padding-block: 48px; }
.bb-footer__brand { max-width: 320px; }
.bb-footer__brand img { max-height: 54px; filter: brightness(0) invert(1); }
.bb-footer__list { list-style: none; display: flex; flex-wrap: wrap; gap: 20px; padding: 0; margin: 0; }
.bb-footer__list a { color: #cdd7ea; }
.bb-footer__list a:hover { color: #fff; }
.bb-footer__bar { border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; }
.bb-footer__bar .container { display: flex; justify-content: space-between; padding-block: 16px; flex-wrap: wrap; gap: 8px; }

/* ---------- Elementor header nav safety net ---------- */
.elementor-location-header .elementor-nav-menu { flex-wrap: nowrap !important; }
.elementor-location-header .elementor-nav-menu > li,
.elementor-location-header .elementor-nav-menu > li > a { white-space: nowrap; }
.elementor-location-header .elementor-nav-menu--main { flex-wrap: nowrap !important; }
.elementor-location-header .elementor-widget-nav-menu { width: auto !important; flex: 0 0 auto !important; }
.elementor-location-header .elementor-widget-menu-cart .elementor-menu-cart__toggle .elementor-button { padding: 0; background: transparent; }
/* Custom header cart: SVG icon + live yellow count badge (shortcode [bb_cart_count]). */
.bb-cartbox { position: relative; }
.bb-cartbox .bb-cartbadge { position: absolute; top: -4px; right: 8px; margin: 0; width: auto; }
.bb-cartbox .bb-cartbadge p { margin: 0; line-height: 1; }
.bb-cartbox .bb-cart-count { display: inline-block; background: var(--bb-yellow); color: var(--bb-blue-dark); font: 700 10px/1 "Poppins", sans-serif; padding: 3px 5px; border-radius: 999px; min-width: 16px; text-align: center; }
.elementor-location-header .elementor-icon-wrapper .elementor-icon svg path,
.elementor-location-header .elementor-icon-wrapper .elementor-icon svg circle { stroke: var(--bb-blue-dark); }

/* ---------- Homepage decorative treatments (applied via Elementor CSS classes) ---------- */
/* Hero: blue blob with yellow crescent behind the banner image (bottom-right). */
/* Hero: plain white; text column aligns to the 1200px grid, image column bleeds to the right edge. */
.bb-hero { position: relative; --overflow: visible; overflow: visible !important; }
.bb-hero-left { padding-left: max(20px, calc((100vw - 1200px) / 2)) !important; }
/* Hero artwork: complete self-contained graphic, centred in its column, aspect ratio preserved. */
.bb-hero { position: relative; }
.bb-hero .bb-hero-right { justify-content: center; }
.bb-hero .elementor-widget-image { width: 100%; }
.bb-hero .elementor-widget-image .elementor-widget-container { width: 100%; display: flex; align-items: center; justify-content: center; }
.bb-hero .elementor-widget-image img {
	width: auto !important; height: auto !important;
	max-width: 100%; max-height: clamp(480px, 32vw, 600px);
	object-fit: contain; display: block; margin: 0 auto;
}
@media (max-width: 1024px) { .bb-hero .elementor-widget-image img { max-height: 440px; } }
.bb-hero .elementor-icon-box-title { white-space: nowrap; }

/* Icon boxes (hero badges + feature strip): icon LEFT and vertically centred beside the text, as in the mockup. */
.bb-hero .elementor-icon-box-wrapper,
.bb-features .elementor-icon-box-wrapper { display: flex !important; align-items: center !important; text-align: left; }
.bb-hero .elementor-icon-box-icon,
.bb-features .elementor-icon-box-icon { margin: 0 14px 0 0 !important; flex: 0 0 auto; }
.bb-features .elementor-icon-box-icon svg { width: 34px; height: 34px; }
.bb-hero .elementor-icon-box-icon svg { width: 30px; height: 30px; }
.bb-hero .elementor-icon-box-title,
.bb-features .elementor-icon-box-title { margin-bottom: 2px; }
@media (max-width: 1024px) { .bb-hero .elementor-widget-image img { max-height: 420px; } }

/* Circular image with a thin blue ring (stage cards). */
.elementor-widget.bb-ring img { border: 2.5px solid var(--bb-blue) !important; border-radius: 50% !important; padding: 12px; background: #fff; box-sizing: border-box; }
.bb-ringwrap { margin-inline: auto; }
.bb-ringwrap img { border-radius: 50% !important; display: block; }

/* Section headings with decorative lines either side. */
.bb-lines .elementor-heading-title { display: flex; align-items: center; justify-content: center; gap: 18px; }
.bb-lines .elementor-heading-title::before,
.bb-lines .elementor-heading-title::after { content: ""; flex: 0 0 90px; height: 2px; background: var(--bb-blue); }

/* Feature strip with vertical dividers. */
.bb-features > .elementor-element + .elementor-element { border-left: 1px solid #cfd8e8; padding-left: 22px; }

/* Footer: yellow swoosh top-right + leaf bottom-right. */
/* Footer: navy block (rounded top-right corner on a yellow wrapper) + real leaf pinned bottom-right. */
.bb-footer { position: relative; --overflow: hidden; overflow: hidden !important; }
.bb-footer .bb-leaf { position: absolute !important; right: 0; bottom: -30px; width: 200px; z-index: 1; }
.bb-footer .bb-leaf img { width: 100%; height: auto; display: block; }
.bb-footer .elementor-icon-list-items .elementor-icon-list-icon { display: none; }
/* Footer payment chips — larger logos */
.bb-footer .bb-paychips .elementor-widget-icon .elementor-icon { font-size: 30px; }
.bb-footer .bb-paychips .elementor-widget-icon svg { width: 40px; height: 26px; }
.bb-footer .bb-paychips > .e-child, .bb-footer .bb-paychips .e-con { min-width: 58px; }

@media (max-width: 782px) {
	.bb-hero-left { padding-left: 20px !important; }
	.bb-footer .bb-leaf { display: none; }
	.bb-footer .bb-bottom { padding-right: 0 !important; }
	.bb-lines .elementor-heading-title::before, .bb-lines .elementor-heading-title::after { flex-basis: 30px; }
	.bb-features > .elementor-element + .elementor-element { border-left: 0; padding-left: 0; }
}

/* ---------- WooCommerce shop / archive ---------- */
.bb-shop { padding-block: 40px; }

/* Product grid cards */
.woocommerce ul.products,
.elementor-widget-woocommerce-archive-products ul.products { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 0; padding: 0; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product {
	width: auto !important; margin: 0 !important; float: none !important;
	background: #fff; border: 1px solid #E7ECF3; border-radius: 14px; box-shadow: none;
	padding: 16px !important; position: relative; display: flex; flex-direction: column;
	transition: border-color .2s;
}
.woocommerce ul.products li.product:hover { border-color: #cdd8e8; }
.woocommerce ul.products li.product a img { border-radius: 10px; margin-bottom: 12px; aspect-ratio: 1/1; object-fit: cover; background: #f6f8fb; }
.woocommerce ul.products li.product .bb-loop-cat { display: block; color: var(--bb-blue); font: 700 11px/1 "Poppins",sans-serif; letter-spacing: 1px; margin-bottom: 6px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font: 700 16px/1.3 "Poppins",sans-serif; color: var(--bb-blue-dark); padding: 0 0 6px !important; }
.woocommerce ul.products li.product .price { color: var(--bb-blue-dark) !important; font-weight: 700 !important; font-size: 17px; margin-bottom: 12px; }
.woocommerce ul.products li.product .price del { color: #9aa5b5; font-weight: 400; font-size: 14px; margin-right: 6px; }
.woocommerce ul.products li.product .price ins { text-decoration: none; }
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .added_to_cart {
	margin-top: auto !important; width: 100%; text-align: center; background: var(--bb-blue) !important; color: #fff !important;
	border-radius: var(--bb-radius,8px) !important; padding: 12px 16px !important; font: 600 14px "Poppins",sans-serif !important;
}
.woocommerce ul.products li.product .button:hover { background: var(--bb-blue-dark) !important; }
.woocommerce ul.products li.product .added_to_cart { margin-top: 8px !important; background: var(--bb-green) !important; }

/* Badges */
.woocommerce span.onsale { background: var(--bb-yellow); color: var(--bb-blue-dark); border-radius: 999px; padding: 4px 12px; font: 700 11px "Poppins"; min-height: 0; line-height: 1.4; top: 12px; left: 12px; margin: 0; }
.woocommerce span.onsale.onsale--dot { width: 12px; height: 12px; padding: 0; border-radius: 50%; }
.bb-badge-best { position: absolute; top: 12px; left: 12px; z-index: 3; background: var(--bb-yellow); color: var(--bb-blue-dark); border-radius: 999px; padding: 4px 12px; font: 700 11px "Poppins"; }

/* Result count + ordering */
.woocommerce .woocommerce-result-count { color: var(--bb-grey); font-size: 14px; margin: 0; }
.woocommerce .woocommerce-ordering select, .woocommerce-ordering .orderby { border: 1px solid var(--bb-border,#E3E9F3); border-radius: 8px; padding: 8px 12px; font-size: 13px; color: var(--bb-blue-dark); background: #fff; }

/* Pagination */
.woocommerce nav.woocommerce-pagination ul { border: 0; display: flex; gap: 8px; justify-content: center; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span {
	border: 1px solid var(--bb-border,#E3E9F3); border-radius: 8px; min-width: 40px; height: 40px; line-height: 40px; padding: 0 12px; color: var(--bb-blue-dark); font-weight: 600;
}
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--bb-blue); color: #fff; border-color: var(--bb-blue); }

/* Shop hero band — compact, image capped so the grid sits high on the page */
.bb-shop-hero .elementor-widget-image img { max-height: 260px; width: auto !important; }
.bb-shop-hero .elementor-widget-image .elementor-widget-container { display: flex; justify-content: center; }

/* Sidebar (Filter products) — ONE bordered box, no shadow, sections divided by hairlines */
.bb-shop-sidebar > .e-con-inner, .bb-shop-sidebar { border: 1px solid #E7ECF3; border-radius: 14px; background: #fff; }
.bb-shop-sidebar .elementor-widget-sidebar > .elementor-widget-container { padding: 4px 20px; }
.bb-shop-sidebar .widget, .elementor-widget-sidebar .widget { background: transparent; border: 0; border-radius: 0; box-shadow: none; padding: 20px 0; margin: 0; }
.bb-shop-sidebar .widget + .widget, .elementor-widget-sidebar .widget + .widget { border-top: 1px solid #EEF1F5; }
.bb-shop-sidebar .widget-title, .elementor-widget-sidebar .widget-title { color: var(--bb-blue-dark); font: 700 16px "Poppins"; margin: 0 0 14px; }
.bb-shop-sidebar ul { list-style: none; margin: 0; padding: 0; }
.bb-shop-sidebar ul li { margin: 0 0 8px; color: var(--bb-text); }
.bb-shop-sidebar a { color: var(--bb-text); text-decoration: none; }
.bb-shop-sidebar a:hover { color: var(--bb-blue); }
.woocommerce .widget_product_search input[type="search"] { width: 100%; border: 1px solid var(--bb-border,#E3E9F3); border-radius: 8px; padding: 10px 12px; }
.woocommerce .widget_product_search button { display: none; }
.woocommerce .price_slider_wrapper .ui-widget-content { background: #dfe6f1; border-radius: 999px; height: 5px; }
.woocommerce .ui-slider .ui-slider-range { background: var(--bb-blue); }
.woocommerce .ui-slider .ui-slider-handle { background: var(--bb-blue); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.2); border-radius: 50%; width: 16px; height: 16px; top: -6px; }
.woocommerce .widget_price_filter .price_label { color: var(--bb-grey); font-size: 13px; }
.woocommerce .widget_price_filter .button { background: var(--bb-blue) !important; color: #fff !important; border-radius: 8px !important; }

@media (max-width: 1024px) { .woocommerce ul.products, .elementor-widget-woocommerce-archive-products ul.products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .woocommerce ul.products, .elementor-widget-woocommerce-archive-products ul.products { grid-template-columns: 1fr; } }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.bb-post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 782px) {
	.bb-header__inner { flex-wrap: wrap; gap: 14px; }
	.bb-nav { margin-left: 0; width: 100%; }
	.bb-nav__menu { flex-wrap: wrap; gap: 14px; }
	.bb-post-grid { grid-template-columns: 1fr; }
	.bb-page-title { font-size: 28px; }
	.bb-single__title { font-size: 30px; }
}
