/* Bimek Menu – mega menu „Sklep” */
:root {
	--bm-green: #2eb82e;
	--bm-green-d: #1f8f22;
	--bm-green-l: #eaf8ea;
	--bm-green-xl: #f5fcf5;
	--bm-ink: #1d2a1f;
	--bm-mute: #6b776d;
	--bm-line: #e6ece6;
}

/* Strzałka przy „Sklep” obraca się przy otwartym panelu */
#header-menu-1 .bm-li > .ct-sub-menu-parent .ct-toggle-dropdown-mobile svg,
#header-menu-1 .bm-li .ct-menu-link .ct-toggle-dropdown-desktop svg { transition: transform .2s; }
#header-menu-1 .bm-li.bm-open .ct-toggle-dropdown-desktop svg { transform: rotate(180deg); }
#header-menu-1 .bm-li.bm-open > .ct-sub-menu-parent > a,
#header-menu-1 .bm-li.bm-open > a { color: var(--bm-green) !important; }

.bm-panel {
	position: fixed; left: 50%; top: 80px; z-index: 9990;
	width: min(1180px, calc(100vw - 32px));
	transform: translate(-50%, 8px); opacity: 0; visibility: hidden; pointer-events: none;
	transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
	background: #fff; color: var(--bm-ink);
	border: 1px solid var(--bm-line); border-radius: 0 0 20px 20px;
	box-shadow: 0 24px 60px -20px rgba(20, 60, 25, .28), 0 4px 14px rgba(0, 0, 0, .05);
	font-size: 14px; line-height: 1.4; overflow: hidden;
}
.bm-panel.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); transition-delay: 0s; }
.bm-panel * { box-sizing: border-box; }
.bm-panel a { color: inherit; text-decoration: none; }
.bm-panel button { font: inherit; color: inherit; background: none; border: 0; margin: 0; padding: 0; cursor: pointer; box-shadow: none; text-transform: none; letter-spacing: normal; min-height: 0; }

.bm-inner { display: grid; grid-template-columns: 250px 1fr; max-height: min(72vh, 640px); }

/* Lewa kolumna */
.bm-side {
	position: relative; display: flex; flex-direction: column; gap: 8px;
	padding: 22px 16px; background: var(--bm-green-xl); border-right: 1px solid var(--bm-line); overflow: hidden;
}
.bm-pet {
	display: flex !important; align-items: center; gap: 12px; width: 100%; text-align: left;
	padding: 12px 14px !important; border-radius: 14px !important; border: 1px solid transparent !important;
	transition: background .15s, border-color .15s, box-shadow .15s;
}
.bm-pet { background: transparent !important; color: var(--bm-ink) !important; }
.bm-pet:hover { background: rgba(255, 255, 255, .7) !important; }
.bm-pet.is-active { background: #fff !important; border-color: #cfeccf !important; box-shadow: 0 6px 18px -10px rgba(30, 110, 35, .45); }
.bm-pet .bm-ico-dog, .bm-pet .bm-ico-cat {
	flex: 0 0 46px; height: 46px; border-radius: 50%; background: #fff; display: grid; place-items: center;
	border: 1px solid var(--bm-line);
}
.bm-pet.is-active .bm-ico-dog, .bm-pet.is-active .bm-ico-cat { background: var(--bm-green-l); border-color: #cfeccf; }
.bm-pet .bm-ico-dog svg, .bm-pet .bm-ico-cat svg { width: 30px; height: 30px; }
.bm-pet-txt { display: flex; flex-direction: column; flex: 1; }
.bm-pet-txt strong { font-size: 16px; font-weight: 700; }
.bm-pet-txt small { color: var(--bm-mute); font-size: 12px; }
.bm-pet .bm-ico-arrow { opacity: 0; transform: translateX(-4px); transition: .15s; color: var(--bm-green); }
.bm-pet.is-active .bm-ico-arrow, .bm-pet:hover .bm-ico-arrow { opacity: 1; transform: none; }

.bm-side-links { margin-top: auto; display: flex; flex-direction: column; gap: 2px; padding-top: 14px; border-top: 1px dashed #d5e8d5; }
.bm-side-links a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; font-weight: 600; font-size: 13px; }
.bm-side-links a:hover { background: #fff; color: var(--bm-green-d); }
.bm-side-links .bm-ico svg { width: 20px; height: 20px; }

/* Prawa część */
.bm-main { overflow-y: auto; padding: 22px 26px 24px; overscroll-behavior: contain; }
.bm-pane-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.bm-pane-head h3 { margin: 0 !important; font-size: 20px !important; font-weight: 800 !important; color: var(--bm-ink) !important; }
.bm-all { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; color: var(--bm-green-d) !important; padding: 7px 12px; border-radius: 999px; background: var(--bm-green-l); transition: background .15s; }
.bm-all:hover { background: #d9f2d9; }

.bm-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: start; }
.bm-card { background: #fff; border: 1px solid var(--bm-line); border-radius: 16px; padding: 12px; transition: border-color .15s, box-shadow .15s; }
.bm-card:hover { border-color: #cfeccf; box-shadow: 0 10px 24px -16px rgba(30, 110, 35, .45); }
.bm-card-head { display: flex; align-items: center; gap: 10px; padding: 4px 4px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--bm-line); }
.bm-card-head .bm-ico { flex: 0 0 40px; height: 40px; border-radius: 12px; background: var(--bm-green-l); color: var(--bm-green-d); display: grid; place-items: center; transition: background .15s, color .15s; }
.bm-card-head:hover .bm-ico { background: var(--bm-green); color: #fff; }
.bm-card-head .bm-ico svg { width: 24px; height: 24px; }
.bm-card-head span { display: flex; flex-direction: column; }
.bm-card-head strong { font-size: 15px; font-weight: 700; }
.bm-card-head small { font-size: 12px; color: var(--bm-mute); }
.bm-card-head:hover strong { color: var(--bm-green-d); }
.bm-card-more { display: inline-flex; align-items: center; gap: 6px; margin: 6px 4px 2px; font-weight: 600; font-size: 13px; color: var(--bm-green-d) !important; }

.bm-list { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.bm-list li { margin: 0 !important; padding: 0 !important; list-style: none !important; }
.bm-list a, .bm-list .bm-lbl { display: flex; align-items: center; gap: 6px; flex: 1; padding: 7px 8px; border-radius: 9px; font-size: 13.5px; font-weight: 500; transition: background .12s, color .12s; }
.bm-list .bm-lbl { font-weight: 600; cursor: default; }
.bm-list a:hover { background: var(--bm-green-xl); color: var(--bm-green-d); }
.bm-list small { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--bm-mute); background: #f2f4f2; border-radius: 999px; padding: 1px 7px; }
.bm-list a:hover small { background: #dff3df; color: var(--bm-green-d); }
.bm-row { display: flex; align-items: center; gap: 2px; }
.bm-tog { background: transparent !important; border: 0 !important; padding: 0 !important; flex: 0 0 30px; height: 30px; display: grid !important; place-items: center; border-radius: 8px !important; color: var(--bm-mute) !important; }
.bm-tog:hover { background: var(--bm-green-xl) !important; color: var(--bm-green-d) !important; }
.bm-tog svg { width: 14px; height: 14px; transition: transform .2s; }
.bm-tog[aria-expanded="true"] svg { transform: rotate(180deg); }
.bm-has > .bm-row > .bm-lbl + .bm-tog { margin-left: auto; }
.bm-sub { margin: 0 0 4px 10px; padding-left: 8px; border-left: 2px solid var(--bm-green-l); }
.bm-sub[hidden] { display: none !important; }

.bm-foot { display: flex; justify-content: center; padding: 12px; border-top: 1px solid var(--bm-line); background: #fcfdfc; }
.bm-foot a { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: #fff !important; background: var(--bm-green); padding: 10px 22px; border-radius: 999px; transition: background .15s, transform .15s; }
.bm-foot a:hover { background: var(--bm-green-d); transform: translateY(-1px); }

.bm-ico { display: inline-flex; }
.bm-ico svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bm-ico-dog svg, .bm-ico-cat svg { stroke-width: 2.6; color: var(--bm-ink); }
.bm-ico svg .f { fill: currentColor; stroke: none; }
.bm-ico-arrow svg, .bm-ico-chev svg { width: 14px; height: 14px; }

@media (max-width: 1180px) { .bm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Mobile: akordeon w offcanvas ---------- */
#offcanvas .bm-m-li > .bm-m { margin: 6px 0 10px; }
.bm-m { display: flex; flex-direction: column; gap: 8px; }
.bm-m button, .bm-m .bm-tog { background: transparent !important; }
.bm-m button { font: inherit; background: none; border: 0; padding: 0; margin: 0; color: inherit; box-shadow: none; text-transform: none; letter-spacing: normal; min-height: 0; }
.bm-m-pet { background: #fff; border: 1px solid var(--bm-line); border-radius: 14px; overflow: hidden; color: var(--bm-ink); }
.bm-m-tog, .bm-m-link { display: flex !important; align-items: center; gap: 12px; width: 100%; text-align: left; cursor: pointer; }
.bm-m-l1 { padding: 12px 14px !important; font-size: 16px !important; font-weight: 700 !important; line-height: 1.3 !important; color: var(--bm-ink) !important; }
.bm-m-l1 .bm-ico-dog, .bm-m-l1 .bm-ico-cat { flex: 0 0 40px; height: 40px; border-radius: 50%; background: var(--bm-green-l); display: grid; place-items: center; }
.bm-m-l1 .bm-ico-dog svg, .bm-m-l1 .bm-ico-cat svg { width: 26px; height: 26px; }
.bm-m-tog > span:not(.bm-ico), .bm-m-link > span:not(.bm-ico) { flex: 1; }
.bm-m-tog > .bm-ico-chev svg { width: 16px; height: 16px; transition: transform .2s; }
.bm-m-tog[aria-expanded="true"] > .bm-ico-chev svg { transform: rotate(180deg); }
.bm-m-tog[aria-expanded="true"].bm-m-l1 { background: var(--bm-green-xl); }
.bm-m-body { padding: 4px 10px 10px; }
.bm-m-body[hidden] { display: none !important; }
.bm-m-group { border-top: 1px solid var(--bm-line); }
.bm-m-group:first-child { border-top: 0; }
.bm-m-l2 { padding: 11px 4px !important; font-size: 15px !important; font-weight: 600 !important; line-height: 1.3 !important; color: var(--bm-ink) !important; }
.bm-m-l2 > .bm-ico:first-child { flex: 0 0 32px; height: 32px; border-radius: 10px; background: var(--bm-green-l); color: var(--bm-green-d); display: grid; place-items: center; }
.bm-m-l2 > .bm-ico:first-child svg { width: 20px; height: 20px; }
.bm-m-link small, .bm-m-all small { font-size: 12px; color: var(--bm-mute); }
.bm-m-all { display: block; padding: 8px; font-weight: 700 !important; font-size: 14px !important; line-height: 1.3 !important; color: var(--bm-green-d) !important; }
.bm-m-pet-all { margin-top: 6px; text-align: center; background: var(--bm-green-l); border-radius: 10px; }
.bm-m .bm-list a, .bm-m .bm-list .bm-lbl { font-size: 14.5px !important; font-weight: 500 !important; line-height: 1.3 !important; padding: 9px 8px; color: var(--bm-ink) !important; }
.bm-m .bm-list .bm-lbl { font-weight: 600 !important; }
.bm-m .bm-tog { flex-basis: 40px; height: 40px; }

/* ---------- Marki ---------- */
.bm-brands .bm-inner { grid-template-columns: 280px 1fr; }
.bm-side-title { margin: 0 4px 4px !important; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--bm-mute); }
.bm-top { display: flex; flex-direction: column; gap: 4px; }
.bm-top-item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; border: 1px solid transparent; transition: background .15s, border-color .15s; }
.bm-top-item:hover { background: #fff; border-color: #cfeccf; }
.bm-top-item span { display: flex; flex-direction: column; min-width: 0; }
.bm-top-item strong { font-size: 14px; font-weight: 700; }
.bm-top-item small { font-size: 12px; color: var(--bm-mute); }
.bm-top-item:hover strong { color: var(--bm-green-d); }
.bm-logo { flex: 0 0 40px; height: 40px; border-radius: 12px; background: #fff; border: 1px solid var(--bm-line); display: grid; place-items: center; overflow: hidden; }
.bm-logo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.bm-logo-txt { background: var(--bm-green-l); border-color: #cfeccf; color: var(--bm-green-d); font-weight: 800; font-size: 17px; }
.bm-pane-head h3 small { font-size: 13px; font-weight: 700; color: var(--bm-green-d); background: var(--bm-green-l); border-radius: 999px; padding: 2px 9px; vertical-align: middle; margin-left: 6px; }
.bm-search { position: relative; display: flex; align-items: center; flex: 0 1 300px; margin: 0; }
.bm-search .bm-ico { position: absolute; left: 12px; color: var(--bm-mute); pointer-events: none; }
.bm-search .bm-ico svg { width: 18px; height: 18px; }
.bm-search input { width: 100%; height: 42px !important; padding: 0 14px 0 38px !important; border: 1px solid var(--bm-line) !important; border-radius: 999px !important; background: #f7f9f7 !important; font-size: 14px !important; color: var(--bm-ink) !important; box-shadow: none !important; outline: none; transition: border-color .15s, background .15s, box-shadow .15s; }
.bm-search input:focus { border-color: var(--bm-green) !important; background: #fff !important; box-shadow: 0 0 0 3px rgba(46, 184, 46, .15) !important; }
.bm-az { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 14px; }
.bm-az[hidden] { display: none; }
.bm-az button { width: 30px; height: 30px; border-radius: 8px !important; background: #f2f4f2 !important; font-size: 12.5px !important; font-weight: 700 !important; color: var(--bm-ink) !important; display: grid !important; place-items: center; transition: background .12s, color .12s; }
.bm-az button:hover { background: var(--bm-green) !important; color: #fff !important; }
.bm-brand-cols { column-count: 4; column-gap: 18px; }
.bm-letter { break-inside: avoid; margin-bottom: 10px; }
.bm-letter[hidden], .bm-letter li[hidden], .bm-empty[hidden], .bm-chips[hidden] { display: none !important; }
.bm-letter-h { display: block; margin: 0 8px 2px; font-size: 13px; font-weight: 800; color: var(--bm-green-d); }
.bm-empty { margin: 12px 0 0 !important; color: var(--bm-mute); font-size: 14px; }
@media (max-width: 1180px) { .bm-brand-cols { column-count: 3; } }

/* Marki – mobile */
.bm-m-brands .bm-m-body { padding: 12px; }
.bm-m-brands .bm-search { flex: none; width: 100%; margin-bottom: 10px; }
.bm-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.bm-chips a { padding: 6px 12px; border-radius: 999px; background: var(--bm-green-l); color: var(--bm-green-d) !important; font-size: 13px !important; font-weight: 600 !important; line-height: 1.3 !important; }
.bm-m-brands .bm-brand-cols { column-count: 1; padding: 4px 0 0; }
.bm-m-brands .bm-m-tog { border-top: 1px solid var(--bm-line); margin-top: 6px; }

/* ---------- Jasne menu boczne (offcanvas) ---------- */
#offcanvas .ct-panel-inner { background: #f5faf5 !important; }
#offcanvas .mobile-menu > ul > li > a,
#offcanvas .mobile-menu > ul > li > .ct-sub-menu-parent > a,
#offcanvas .mobile-menu .sub-menu a { color: var(--bm-ink) !important; }
#offcanvas .mobile-menu > ul > li > a:hover { color: var(--bm-green-d) !important; }
#offcanvas .mobile-menu .ct-toggle-dropdown-mobile { color: var(--bm-ink) !important; }
#offcanvas .ct-toggle-close { color: var(--bm-ink) !important; --theme-icon-color: var(--bm-ink); }
#offcanvas .ct-toggle-close svg { fill: currentColor; }
#offcanvas .mobile-menu > ul > li { border-color: var(--bm-line) !important; }
.bm-inner > * { min-height: 0; }
.bm-side { overflow-y: auto; }
