/* Shell: 01 Announcement bar, 02 Header, 03 Category bar, catalog drawer, 12 Footer. */

/* 01 Announcement bar */
.ac-announce { background: var(--ac-black); color: var(--ac-on-dark-2); font-size: 13px; line-height: 1.45; }
.ac-announce__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; height: 40px; }
.ac-announce__facts { display: flex; gap: 32px; list-style: none; padding: 0; white-space: nowrap; overflow: hidden; }
.ac-announce__facts li { display: flex; align-items: center; gap: 8px; }
.ac-announce .ac-icon { color: var(--ac-green); flex: none; }
.ac-announce__links { display: flex; align-items: center; gap: 28px; white-space: nowrap; }
.ac-announce__links a { transition: color var(--ac-fast) ease; }
.ac-announce__links a:hover { color: var(--ac-white); }
.ac-announce__phone { display: flex; align-items: center; gap: 8px; color: var(--ac-white); font-weight: 500; line-height: 1.4; }

/* 02 Header / Main */
.ac-header__main { background: var(--ac-dark); }
.ac-header__inner { display: flex; align-items: center; gap: 48px; height: 96px; }
.ac-header__logo { flex: none; width: 72px; height: 72px; }
.ac-header__logo img { width: 100%; height: 100%; object-fit: contain; }
.ac-header__catalog-btn { display: none; }

.ac-search { position: relative; flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 4px 0 16px; background: var(--ac-white); border-radius: 8px; transition: box-shadow var(--ac-fast) ease; }
.ac-search:focus-within { box-shadow: 0 0 0 3px rgba(128, 251, 0, .45); }
.ac-search__icon { flex: none; color: var(--ac-text-2); }
.ac-search__input { flex: 1 1 0; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font-size: 15px; line-height: 1.5; color: var(--ac-black); -webkit-appearance: none; appearance: none; }
.ac-search__input::placeholder { color: var(--ac-text-2); opacity: 1; }
.ac-search__input::-webkit-search-cancel-button { display: none; }
.ac-search__submit { flex: none; height: 44px; border-radius: 6px; }

.ac-header__utils { display: flex; align-items: center; gap: 32px; flex: none; }
.ac-util { display: flex; align-items: center; gap: 12px; color: var(--ac-white); white-space: nowrap; }
.ac-util__icon { position: relative; display: block; flex: none; }
.ac-util__icon .ac-icon { transition: transform var(--ac-fast) ease; }
.ac-util:hover .ac-util__icon .ac-icon { transform: translateY(-1px); }
.ac-util__text { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.ac-util__text strong { font-weight: 500; line-height: 1.4; }
.ac-util__text > span { color: var(--ac-on-dark-2); line-height: 1.45; }
.ac-util--call { display: none; }
.ac-util--cart .ac-badge { position: absolute; left: 14px; top: -8px; }

/* 03 Header / Category bar */
.ac-catbar { background: var(--ac-white); border-bottom: 1px solid var(--ac-grey-200); }
.ac-catbar__inner { display: flex; align-items: center; gap: 4px; height: 64px; }
.ac-catbar__trigger { flex: none; gap: 10px; padding: 0 20px 0 18px; margin-right: 20px; }
.ac-catbar__nav { display: flex; align-items: center; gap: 4px; list-style: none; padding: 0; min-width: 0; }
.ac-catbar__item { display: flex; align-items: center; gap: 4px; height: 44px; padding: 0 12px; border-radius: 6px; font-size: 15px; font-weight: 500; line-height: 1; color: var(--ac-dark); white-space: nowrap; transition: background-color var(--ac-fast) ease; }
.ac-catbar__item .ac-icon { color: var(--ac-mid); transition: transform var(--ac-fast) ease; }
.ac-catbar__item:hover, .ac-catbar__item[aria-expanded="true"] { background: var(--ac-light); }
.ac-catbar__item[aria-expanded="true"] .ac-icon { transform: rotate(180deg); }
.ac-catbar__service { margin-left: auto; flex: none; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: 6px; background: var(--ac-green-tint); color: var(--ac-green-text); font-size: 15px; font-weight: 500; line-height: 1; white-space: nowrap; transition: background-color var(--ac-fast) ease; }
.ac-catbar__service:hover { background: #e4ffc2; }

/* First nav item is shown "active" in the design (current family / first). */
.ac-catbar__nav li:first-child .ac-catbar__item { background: var(--ac-light); }

/* Narrow desktop: let the family list scroll rather than wrap. */
@media (max-width: 1599px) {
	.ac-catbar__nav { overflow-x: auto; scrollbar-width: none; }
	.ac-catbar__nav::-webkit-scrollbar { display: none; }
}
@media (max-width: 1279px) {
	.ac-announce__facts li:nth-child(3) { display: none; }
	.ac-header__inner { gap: 24px; }
	.ac-header__utils { gap: 20px; }
	.ac-util--stores { display: none; }
}

/* 02 Header / Mobile (< 1024) */
@media (max-width: 1023px) {
	.ac-announce__inner { justify-content: center; height: 36px; }
	.ac-announce__facts li:not(:first-child), .ac-announce__links { display: none; }

	.ac-header__main { padding: 10px 0 16px; }
	.ac-header__inner { flex-wrap: wrap; gap: 4px; height: auto; row-gap: 10px; }
	.ac-header__catalog-btn { display: flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; border-radius: 8px; background: var(--ac-green); color: var(--ac-black); }
	.ac-header__logo { width: 52px; height: 52px; order: 1; }
	.ac-header__catalog-btn { order: 0; }
	.ac-header__utils { order: 2; margin-left: auto; gap: 4px; }
	.ac-search { order: 3; flex: 1 0 100%; height: 48px; padding: 0 16px; }
	.ac-search__submit { display: none; }
	.ac-util { justify-content: center; width: 44px; height: 44px; border-radius: 8px; }
	.ac-util__text, .ac-util--stores { display: none; }
	.ac-util--call { display: flex; }
	.ac-util .ac-icon { width: 22px; height: 22px; }
	.ac-util--cart .ac-badge { left: 26px; top: 4px; position: absolute; }
	.ac-util--cart .ac-util__icon { position: static; }
	.ac-util--cart { position: relative; }
	.ac-catbar { display: none; }
}

/* Catalog drawer */
.ac-drawer { position: fixed; inset: var(--ac-adminbar) 0 0; z-index: 9990; }
.ac-drawer[hidden] { display: none; }
.ac-drawer__overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); opacity: 0; transition: opacity 200ms ease; }
.ac-drawer.is-open .ac-drawer__overlay { opacity: 1; }
.ac-drawer__sheet { position: absolute; left: 0; top: 0; bottom: 0; width: 400px; max-width: 100%; display: flex; flex-direction: column; background: var(--ac-white); box-shadow: var(--ac-shadow-lg); transform: translateX(-100%); transition: transform 200ms ease-in; }
.ac-drawer.is-open .ac-drawer__sheet { transform: none; transition: transform 280ms var(--ac-ease-out); }
.ac-drawer__head { flex: none; display: flex; align-items: center; gap: 12px; height: 72px; padding: 0 16px 0 20px; background: var(--ac-black); color: var(--ac-white); }
.ac-drawer__head > .ac-icon { color: var(--ac-green); }
.ac-drawer__title { flex: 1; font-size: 20px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
.ac-drawer__close { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 999px; background: var(--ac-grey-700); color: var(--ac-white); transition: background-color var(--ac-fast) ease; }
.ac-drawer__close:hover { background: #4a4a4e; }
.ac-drawer__scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 16px 12px; display: flex; flex-direction: column; gap: 2px; }
.ac-drawer__label { padding: 4px 0 8px 12px; font-size: 12px; font-weight: 600; line-height: 1.3; letter-spacing: .06em; text-transform: uppercase; color: var(--ac-mid); }
.ac-drawer__families { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.ac-drawer__family { display: flex; align-items: center; gap: 14px; height: 56px; padding: 0 12px; border-radius: 10px; font-size: 15px; font-weight: 500; line-height: 1.5; color: var(--ac-black); transition: background-color var(--ac-fast) ease; }
.ac-drawer__tile { flex: none; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 8px; background: var(--ac-light); color: var(--ac-dark); transition: background-color var(--ac-fast) ease, color var(--ac-fast) ease; }
.ac-drawer__family-name { flex: 1; min-width: 0; }
.ac-drawer__chevron { flex: none; color: var(--ac-mid); }
.ac-drawer__family:hover, .ac-drawer__family.is-active { background: var(--ac-light); }
.ac-drawer__family.is-active { font-weight: 600; }
.ac-drawer__family.is-active .ac-drawer__tile { background: var(--ac-black); color: var(--ac-green); }
.ac-drawer__family.is-active .ac-drawer__chevron { color: var(--ac-black); }
.ac-drawer__divider { margin: 14px 12px; height: 1px; background: var(--ac-grey-200); flex: none; }
.ac-drawer__service { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 12px; border-radius: 8px; background: var(--ac-green-tint); color: var(--ac-green-text); font-weight: 500; flex: none; }
.ac-drawer__link { display: flex; align-items: center; height: 40px; padding: 0 12px; color: var(--ac-dark); flex: none; border-radius: 8px; transition: background-color var(--ac-fast) ease; }
.ac-drawer__link:hover { background: var(--ac-light); }
.ac-drawer__foot { flex: none; display: flex; flex-direction: column; gap: 14px; padding: 16px 20px 20px; background: var(--ac-light); border-top: 1px solid var(--ac-grey-200); }
.ac-drawer__account { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.ac-drawer__account .ac-icon { color: var(--ac-dark); }
.ac-drawer__stores { display: flex; gap: 12px; }
.ac-drawer__store { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; background: var(--ac-white); border: 1px solid var(--ac-grey-200); border-radius: 8px; }
.ac-drawer__store-name, .ac-drawer__store-phone { display: flex; align-items: center; gap: 6px; font-size: 13px; white-space: nowrap; }
.ac-drawer__store-name { font-weight: 500; line-height: 1.4; }
.ac-drawer__store-name .ac-icon { color: var(--ac-green-text); }
.ac-drawer__store-phone { color: var(--ac-text-2); line-height: 1.45; }
.ac-drawer__store-phone .ac-icon { color: var(--ac-mid); }

/* Subcategory panel */
.ac-panel { position: absolute; top: 0; bottom: 0; left: 400px; width: 600px; display: flex; flex-direction: column; gap: 24px; padding: 28px 32px; overflow-y: auto; background: var(--ac-white); border-left: 1px solid var(--ac-grey-200); box-shadow: var(--ac-shadow-lg); }
.ac-panel[hidden] { display: none; }
.ac-panel__head { display: flex; align-items: center; gap: 12px; }
.ac-panel__back { display: none; }
.ac-panel__title { flex: 1; font-size: 22px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.ac-panel__all { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; line-height: 1.4; color: var(--ac-green-text); white-space: nowrap; }
.ac-panel__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ac-sub { display: flex; flex-direction: column; justify-content: center; gap: 10px; min-height: 64px; padding: 14px 16px; border: 1px solid var(--ac-grey-200); border-radius: 12px; background: var(--ac-white); transition: border-color var(--ac-fast) ease, background-color var(--ac-fast) ease; }
.ac-sub:hover { border-color: var(--ac-grey-300); background: var(--ac-light); }
.ac-sub--featured { justify-content: flex-start; height: 176px; }
.ac-sub__link { display: flex; flex-direction: column; gap: 10px; }
.ac-sub__img { width: 120px; height: 70px; object-fit: contain; }
.ac-sub__label { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 500; line-height: 1.5; }
.ac-sub__label .ac-icon { color: var(--ac-mid); flex: none; transition: transform var(--ac-fast) ease; }
.ac-sub:hover .ac-sub__label .ac-icon { transform: translateX(2px); }
.ac-sub__chips { display: flex; gap: 6px; flex-wrap: wrap; }
.ac-panel__brands { display: flex; flex-direction: column; gap: 10px; }
.ac-panel__brands .ac-drawer__label { padding: 0; }
.ac-panel__brand-list { display: flex; flex-wrap: wrap; gap: 8px; }
.ac-brand-chip { padding: 8px 14px; border-radius: 8px; background: var(--ac-light); color: var(--ac-dark); font-size: 13px; font-weight: 500; line-height: 1.4; transition: background-color var(--ac-fast) ease; }
.ac-brand-chip:hover { background: var(--ac-grey-200); }
.ac-panel__finder { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; background: var(--ac-black); color: var(--ac-white); }
.ac-panel__finder > .ac-icon { color: var(--ac-green); flex: none; }
.ac-panel__finder > span { flex: 1; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.ac-panel__finder strong { font-weight: 500; line-height: 1.4; }
.ac-panel__finder span span { color: var(--ac-on-dark-2); line-height: 1.45; }
.ac-panel__finder:hover > .ac-icon:last-child { transform: translateX(3px); }
.ac-panel__finder > .ac-icon:last-child { transition: transform var(--ac-fast) ease; }

/* Drill-down drawer below 1280: the panel replaces the family list inside the sheet. */
@media (max-width: 1279px) {
	.ac-drawer__sheet { width: 342px; }
	.ac-drawer__family { height: 56px; }
	.ac-panel { left: 0; width: 342px; max-width: 100%; border-left: 0; box-shadow: none; padding: 0 16px 20px; gap: 20px; top: 72px; animation: ac-slide-in 220ms var(--ac-ease-out); }
	.ac-panel__head { flex-wrap: wrap; position: sticky; top: 0; background: var(--ac-white); padding-top: 16px; z-index: 1; }
	.ac-panel__back { display: inline-flex; align-items: center; gap: 4px; flex: 1 0 100%; height: 32px; color: var(--ac-text-2); font-size: 13px; font-weight: 500; }
	.ac-panel__title { font-size: 20px; }
	.ac-panel__grid { grid-template-columns: 1fr; gap: 8px; }
	.ac-sub--featured { height: auto; }
}
@keyframes ac-slide-in { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
body.ac-scroll-lock { overflow: hidden; }

/* 12 Footer */
.ac-footer { background: var(--ac-black); color: var(--ac-on-dark-2); padding: 72px 0 32px; }
.ac-footer__top { display: flex; gap: 64px; }
.ac-footer__brand { flex: none; width: 340px; display: flex; flex-direction: column; gap: 20px; font-size: 15px; line-height: 1.5; }
.ac-footer__logo { width: 88px; height: 88px; }
.ac-footer__social { display: flex; gap: 8px; }
.ac-footer__social a { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 999px; background: var(--ac-grey-700); color: var(--ac-white); transition: background-color var(--ac-fast) ease, color var(--ac-fast) ease; }
.ac-footer__social a:hover { background: var(--ac-green); color: var(--ac-black); }
.ac-footer__col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; font-size: 15px; line-height: 1.5; }
.ac-footer__col > a { white-space: nowrap; transition: color var(--ac-fast) ease; }
.ac-footer__col > a:hover { color: var(--ac-white); }
.ac-footer__heading { color: var(--ac-white); font-size: 13px; font-weight: 500; line-height: 1.4; }
.ac-footer__store { display: flex; flex-direction: column; gap: 4px; }
.ac-footer__store strong { color: var(--ac-white); font-weight: 500; line-height: 1.5; }
.ac-footer__store span { font-size: 13px; line-height: 1.45; white-space: nowrap; }
.ac-footer__store a, .ac-footer__email { display: flex; align-items: center; gap: 8px; color: var(--ac-white); font-size: 13px; line-height: 1.45; white-space: nowrap; }
.ac-footer__contacts .ac-icon { color: var(--ac-green); }
.ac-footer__bottom { display: flex; gap: 48px; align-items: flex-start; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--ac-grey-700); font-size: 12px; line-height: 1.45; }
.ac-footer__eu { flex: 1 1 0; min-width: 0; display: flex; gap: 14px; align-items: flex-start; }
.ac-footer__eu-badge { flex: none; padding: 6px 10px; border-radius: 4px; background: var(--ac-grey-700); color: var(--ac-white); font-size: 13px; white-space: nowrap; }
.ac-footer__copy { flex: none; width: 320px; text-align: right; }

@media (max-width: 1279px) {
	.ac-footer__top { flex-wrap: wrap; gap: 40px 48px; }
	.ac-footer__brand { width: 100%; max-width: 420px; flex: 1 0 100%; }
}

/* Footer accordions (mobile); headings are plain labels on larger screens */
.ac-footer__toggle { display: block; color: var(--ac-white); font-size: 13px; font-weight: 500; line-height: 1.4; text-align: left; cursor: default; }
.ac-footer__toggle .ac-icon { display: none; }
.ac-footer__links { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.ac-footer__links a { white-space: nowrap; transition: color var(--ac-fast) ease; }
.ac-footer__links a:hover { color: var(--ac-white); }
@media (max-width: 767px) {
	.ac-footer { padding: 40px 0 28px; }
	.ac-footer__top { flex-direction: column; gap: 0; }
	.ac-footer__brand { flex-direction: row; align-items: center; gap: 16px; width: 100%; max-width: none; margin-bottom: 24px; }
	.ac-footer__logo { width: 64px; height: 64px; }
	.ac-footer__about { display: none; }
	.ac-footer__social { margin-left: auto; }
	.ac-footer__col { gap: 0; border-bottom: 1px solid var(--ac-grey-700); }
	.ac-footer__toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 16px 0; font-size: 15px; line-height: 1.5; cursor: pointer; }
	.ac-footer__toggle .ac-icon { display: block; color: var(--ac-white); transition: transform var(--ac-fast) ease; }
	.ac-footer__toggle[aria-expanded="true"] .ac-icon { transform: rotate(180deg); }
	.ac-footer__links { display: none; padding-bottom: 16px; }
	.ac-footer__toggle[aria-expanded="true"] + .ac-footer__links { display: flex; }
	.ac-footer__contacts { border-bottom: 0; gap: 14px; margin-top: 24px; }
	.ac-footer__contacts .ac-footer__heading { font-size: 15px; }
	.ac-footer__bottom { flex-direction: column; gap: 12px; margin-top: 24px; padding-top: 20px; }
	.ac-footer__eu-badge { display: none; }
	.ac-footer__eu p { font-size: 11px; }
	.ac-footer__copy { width: auto; text-align: left; }
}
@media (min-width: 768px) and (max-width: 1279px) {
	.ac-footer__top { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 32px; }
	.ac-footer__brand { grid-column: 1 / -1; }
	.ac-footer__store span, .ac-footer__email, .ac-footer__col > a, .ac-footer__links a { white-space: normal; }
	.ac-footer__bottom { flex-direction: column; gap: 16px; }
	.ac-footer__copy { width: auto; text-align: left; }
}
@media (max-width: 1599px) {
	.ac-announce__facts li:nth-child(3) { display: none; }
	.ac-catbar__nav { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); }
}
@media (max-width: 1439px) {
	/* The service link is also in the catalog drawer; give the families the room. */
	.ac-catbar__service { display: none; }
	.ac-catbar__item { padding: 0 10px; }
}

/* Drawer: desktop-only / drill-down-only pieces */
.ac-drawer__back { display: none; }
.ac-panel__mobile { display: none; }
@media (min-width: 1280px) {
	.ac-drawer .ac-dr-m { display: none !important; }
}
@media (max-width: 1279px) {
	.ac-drawer .ac-dr-d { display: none !important; }
	.ac-drawer__head { height: 64px; gap: 10px; padding: 0 12px 0 16px; }
	.ac-drawer__title { font-size: 17px; line-height: 1.5; letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
	.ac-drawer.is-drilled .ac-drawer__head { padding-left: 12px; }
	.ac-drawer.is-drilled .ac-drawer__grid { display: none; }
	.ac-drawer.is-drilled .ac-drawer__back { display: flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; border-radius: 999px; background: var(--ac-grey-700); color: var(--ac-white); }
	.ac-drawer__scroll { padding: 12px 8px; }
	.ac-drawer__label { padding-bottom: 6px; }
	.ac-drawer__divider { margin: 10px 12px; }
	.ac-drawer__service { height: 48px; }
	.ac-drawer__link { height: 44px; }
	.ac-drawer__foot { flex-direction: row; gap: 8px; padding: 12px 16px 16px; }
	.ac-drawer__stores { flex: 1; gap: 8px; }
	.ac-drawer__store { flex-direction: row; align-items: center; gap: 8px; padding: 10px; }
	.ac-drawer__store-call { display: flex; color: var(--ac-green-text); }
	.ac-drawer__store-text { display: flex; flex-direction: column; min-width: 0; }
	.ac-drawer__store-name { color: var(--ac-black); }

	/* Level 2 (drill-down) */
	.ac-panel { top: 64px; bottom: 81px; padding: 12px 8px; gap: 0; }
	.ac-panel__head { display: none; }
	.ac-panel__mobile { display: flex; flex-direction: column; gap: 2px; }
	.ac-panel__crumbs { display: flex; align-items: center; gap: 6px; padding: 2px 0 10px 8px; color: var(--ac-mid); }
	.ac-panel__crumb { padding: 5px 10px; border-radius: 6px; background: var(--ac-light); color: var(--ac-dark); font-size: 13px; line-height: 1.45; white-space: nowrap; }
	.ac-panel__crumb.is-current { background: var(--ac-black); color: var(--ac-white); }
	.ac-panel__viewall { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 12px; border-radius: 8px; background: var(--ac-light); font-weight: 500; }
	.ac-panel__viewall span, .ac-panel__viewall { justify-content: space-between; }
	.ac-panel__rows { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 2px; }
	.ac-panel__row-chips { display: flex; gap: 6px; padding: 0 0 8px 62px; }
	.ac-panel__row-chips .ac-chip { padding: 5px 10px; }
	.ac-panel__brands { padding: 12px 12px 0; gap: 8px; }
	.ac-brand-chip { padding: 7px 12px; }
}
