/* ==========================================================================
   avd-turbo theme — main.css
   INDUSTRIAL / FACTORY design concept (built from scratch for авд.москва,
   a high-pressure pump/washer manufacturer) — NOT a marketplace reskin.
   Visual language: graphite + machined steel + safety-amber, cut/sharp
   corners (machined plate, not soft app-card), condensed uppercase
   technical headings, corner-bracket "technical drawing" accents.
   Bootstrap 5.3.8 supplies grid/utilities only; everything visual is custom.
   Color tokens live in colors.css (loaded before this file) - edit the
   palette there, not here.
   ========================================================================== */

* { box-sizing: border-box; }
body {
	font-family: var(--at-font-body);
	color: var(--at-ink);
	background: var(--at-bg);
	margin: 0;
}
a { color: var(--at-graphite); text-decoration: none; }

/* ---------- form controls, site-wide (bootstrap's own .form-control /
   .form-select carry soft ~6px rounding and a generic gray focus ring by
   default - restyle them once here so every form on the site, not just
   the cart popup, matches the sharp industrial look and amber accent ---------- */
.form-control, .form-select {
	border: 1px solid var(--at-line);
	border-radius: var(--at-radius);
	padding: 10px 14px;
	font-size: 13.5px;
	color: var(--at-ink);
	background-color: #fff;
}
.form-control:focus, .form-select:focus {
	border-color: var(--at-amber);
	box-shadow: 0 0 0 3px var(--at-amber-soft);
	outline: none;
}
.form-control::placeholder { color: var(--at-muted); opacity: 1; }
.form-check-input:checked { background-color: var(--at-amber); border-color: var(--at-amber); }
.form-check-input:focus { border-color: var(--at-amber); box-shadow: 0 0 0 3px var(--at-amber-soft); }
a:hover { color: var(--at-amber-dark); }
img { max-width: 100%; }
h1, h2, h3, h4, h5, h6 { font-family: var(--at-font-head); }
.at-container { max-width: 1400px; margin: 0 auto; padding: 0 20px; }

/* ---------- shared industrial motifs ---------- */
.at-corner-frame { position: relative; }
.at-corner-frame::before,
.at-corner-frame::after {
	content: '';
	position: absolute;
	width: 22px; height: 22px;
	border: 2px solid var(--at-amber);
	pointer-events: none;
	z-index: 2;
}
.at-corner-frame::before { top: 10px; left: 10px; border-right: none; border-bottom: none; }
.at-corner-frame::after { bottom: 10px; right: 10px; border-left: none; border-top: none; }

.at-eyebrow {
	font-family: var(--at-font-head);
	text-transform: uppercase;
	letter-spacing: .08em;
	font-weight: 600;
	font-size: 11.5px;
	color: var(--at-steel);
}
.at-badge {
	display: inline-flex; align-items: center; gap: 6px;
	font-family: var(--at-font-head);
	text-transform: uppercase; letter-spacing: .04em;
	font-size: 10.5px; font-weight: 600;
	padding: 4px 9px; border-radius: var(--at-radius);
	background: var(--at-graphite); color: #fff;
}
.at-badge--amber { background: var(--at-amber-soft); color: var(--at-amber-dark); }
.at-badge--green { background: var(--at-safety-green-soft); color: var(--at-safety-green); }

.at-hazard_rule {
	height: 4px;
	background: repeating-linear-gradient(135deg, var(--at-amber) 0 12px, var(--at-graphite) 12px 24px);
}

/* ---------- header (light theme — white/light chrome is the dominant
   60% per the 60-30-10 rule; graphite/steel is text+borders, amber is the
   10% accent reserved for CTAs) ---------- */
.at-header { background: var(--at-card); border-bottom: 3px solid var(--at-amber); }
.at-header__row { display: flex; align-items: center; gap: 18px; padding: 14px 0; }
.at-header__logo { flex: none; display: flex; align-items: center; }
.at-header__logo img { max-height: 44px; display: block; filter: brightness(0); }
.at-header__logo a { display: block; font-family: var(--at-font-head); font-weight: 700; font-size: 20px; color: var(--at-graphite); text-transform: uppercase; letter-spacing: .03em; }

.at-cat_wrap { position: relative; flex: none; }
.at-cat_btn {
	display: flex; align-items: center; gap: 8px;
	height: 46px; padding: 0 18px;
	background: var(--at-amber); color: #fff;
	border: none; border-radius: var(--at-radius);
	font-family: var(--at-font-head);
	font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .05em;
	white-space: nowrap; cursor: pointer;
	transition: background .15s ease;
}
.at-cat_btn:hover { background: var(--at-amber-dark); color: #fff; }
.at-cat_btn i { font-size: 15px; }
.at-cat_panel {
	position: absolute; top: calc(100% + 10px); left: 0;
	width: 340px; max-height: 72vh; overflow-y: auto;
	background: var(--at-card); border-radius: var(--at-radius-lg);
	border-top: 3px solid var(--at-amber);
	box-shadow: var(--at-shadow-lg);
	opacity: 0; visibility: hidden; transform: translateY(-6px);
	transition: opacity .15s ease, transform .15s ease, visibility .15s;
	z-index: 500;
}
.at-cat_panel.at-cat_panel--open { opacity: 1; visibility: visible; transform: translateY(0); }
.at-cat_panel__inner { padding: 8px; }
.at-cat_panel__item {
	display: block; padding: 11px 14px; border-radius: var(--at-radius);
	color: var(--at-ink); font-size: 13.5px; font-weight: 600; line-height: 1.3;
}
.at-cat_panel__item:hover { background: var(--at-amber-soft); color: var(--at-amber-dark); }

.at-header__search { flex: 1; min-width: 0; }
.at-header__search form { display: flex; height: 46px; border: 2px solid var(--at-amber); border-radius: var(--at-radius); overflow: hidden; }
.at-header__search input {
	flex: 1; border: none; box-shadow: none; height: 100%; padding: 0 16px; font-size: 14px; min-width: 0; background: #fff;
}
.at-header__search input:focus { outline: none; box-shadow: none; }
.at-header__search button {
	border: none; background: var(--at-amber); color: #fff; width: 52px; height: 100%;
	display: flex; align-items: center; justify-content: center; font-size: 16px; cursor: pointer;
}
.at-header__search button:hover { background: var(--at-amber-dark); color: #fff; }

.at-header__contact { display: flex; flex-direction: column; gap: 2px; padding: 4px 10px; flex: none; }
.at-header__contact_row { display: flex; align-items: center; gap: 7px; color: var(--at-muted); line-height: 1.2; }
.at-header__contact_row:hover { color: var(--at-amber-dark); }
.at-header__contact_row i { font-size: 14px; color: var(--at-steel); width: 15px; text-align: center; flex: none; }
.at-header__contact_row:first-child span { font-size: 13.5px; font-weight: 700; color: var(--at-ink); }
.at-header__contact_row span { font-size: 12px; font-weight: 600; white-space: nowrap; }

.at-header__icons { flex: none; display: flex; align-items: center; gap: 4px; }
.at-icon_stack {
	display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 8px;
	padding: 8px 14px; min-width: 64px; border-radius: var(--at-radius); color: var(--at-ink); position: relative;
	background: none; border: none; font-family: inherit; cursor: pointer;
}
.at-icon_stack:hover { background: #f2f3f4; color: var(--at-ink); }
.at-icon_stack i { font-size: 22px; color: var(--at-steel); }
.at-icon_stack:hover i { color: var(--at-amber-dark); }
.at-icon_stack span { font-size: 12px; font-weight: 600; color: var(--at-muted); white-space: nowrap; }
.at-icon_stack .dropdown-toggle::after { display: none; }
.at-icon_stack .dropdown-menu { border-radius: var(--at-radius); border: none; border-top: 3px solid var(--at-amber); box-shadow: var(--at-shadow-lg); margin-top: 8px; }
/* the account trigger is a nested <a class="dropdown-toggle"> inside the
   .at-icon_stack div - it never inherits the icon-stack's own flex/color
   rules on its own, so it falls back to bootstrap's default blue
   underlined link unless styled explicitly here */
.at-icon_stack.dropdown > a.dropdown-toggle {
	display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 8px;
	width: 100%; height: 100%; color: var(--at-ink); text-decoration: none;
}
.at-icon_stack.dropdown > a.dropdown-toggle:hover,
.at-icon_stack.dropdown > a.dropdown-toggle:focus { color: var(--at-ink); text-decoration: none; }
.at-icon_stack.dropdown > a.dropdown-toggle span { font-size: 12px; font-weight: 600; color: var(--at-muted); }
.at-icon_stack.dropdown:hover > a.dropdown-toggle i { color: var(--at-amber-dark); }
.dropdown-item:active, .dropdown-item.active { background: var(--at-amber); color: #fff; }
.dropdown-item:hover, .dropdown-item:focus { background: var(--at-amber-soft); color: var(--at-amber-dark); }
.at-icon_stack__badge {
	position: absolute; top: 2px; right: 2px; background: var(--at-amber); color: #fff;
	font-size: 10px; font-weight: 700; min-width: 16px; height: 16px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center; padding: 0 4px;
}

/* the cart widget's own <button> nested inside .at-icon_stack - style
   explicitly. The <ul> is repurposed as a slide-over drawer via .at-drawer
   (shared generic drawer chrome, also used by the wishlist drawer) rather
   than a bootstrap dropdown. */
.at-cart_btn {
	display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 8px;
	background: none; border: none; padding: 8px 14px; min-width: 64px;
	color: var(--at-ink); font-size: 12px; font-weight: 600; cursor: pointer;
}
.at-cart_btn i { font-size: 22px; color: var(--at-steel); }
.at-cart_btn:hover i { color: var(--at-amber-dark); }
/* $text_items is a shared language string built for bootstrap3 hidden-*
   classes ("hidden-sm hidden-xs" etc.) that no longer hide anything under
   bootstrap 5, so both the item-count span AND the price span show at
   once ("0 0 ₽" - unreadable). Hide the count span structurally (its
   classes are unreliable, one even has a typo - "idden-md") and surface
   the count instead as a clean numeric badge, same pattern as wishlist. */
#cart-total span:first-of-type { display: none; }
.at-cart_table img { width: 44px; height: 44px; object-fit: contain; }
.at-cart_table td, .at-cart_totals td { font-size: 13px; }

/* ---------- generic slide-over drawer (wishlist only - cart is now a
   centered modal, see .at-cart_modal below) ---------- */
.at-drawer {
	position: fixed; top: 0; right: 0; bottom: 0; width: 380px; max-width: 90vw;
	background: var(--at-card); z-index: 2100; box-shadow: var(--at-shadow-lg);
	border-left: 3px solid var(--at-amber);
	transform: translateX(100%); transition: transform .25s ease; overflow-y: auto;
	display: block; list-style: none; margin: 0; padding: 0;
}
.at-drawer--open { transform: translateX(0) !important; }
.at-drawer__head {
	display: flex; align-items: center; justify-content: space-between;
	padding: 16px; border-bottom: 1px solid var(--at-line); position: sticky; top: 0; background: var(--at-card); z-index: 1;
}
.at-drawer__head h4 { margin: 0; font-family: var(--at-font-head); font-size: 16px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: var(--at-ink); display: flex; align-items: center; gap: 8px; }
.at-drawer__close { border: none; background: none; font-size: 24px; color: var(--at-muted); cursor: pointer; line-height: 1; }
.at-drawer__close:hover { color: var(--at-amber-dark); }
.at-drawer__back { border: none; background: none; font-size: 16px; color: var(--at-muted); cursor: pointer; margin-right: 4px; }
.at-drawer__back:hover { color: var(--at-amber-dark); }
.at-drawer__body { padding: 16px; }
.at-drawer__empty { text-align: center; color: var(--at-muted); padding: 30px 10px; }

/* ---------- cart: centered popup modal (not a side drawer), with a
   swipe-style view transition between cart items -> quick-order form ->
   success confirmation, all inside the same popup ---------- */
.at-cart_modal {
	position: fixed; top: 50%; left: 50%; transform: translate(-50%, -48%) scale(.95);
	width: 440px; max-width: 92vw; max-height: 86vh;
	background: var(--at-card); z-index: 2100; box-shadow: var(--at-shadow-lg);
	border-top: 4px solid var(--at-amber); border-radius: var(--at-radius-lg);
	opacity: 0; visibility: hidden; transition: opacity .22s ease, transform .22s ease, visibility .22s;
	display: flex; flex-direction: column; overflow: hidden;
	list-style: none; margin: 0; padding: 0;
}
.at-cart_modal.at-drawer--open { opacity: 1 !important; visibility: visible !important; transform: translate(-50%, -50%) scale(1) !important; }
.at-cart_modal__view { display: none; flex-direction: column; min-height: 0; }
.at-cart_modal__view--active { display: flex; animation: atCartSlideIn .28s ease; }
@keyframes atCartSlideIn { from { transform: translateX(24px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.at-cart_modal__scroll { overflow-y: auto; flex: 1; min-height: 0; }
.at-cart_modal__footer { padding: 14px 16px; border-top: 1px solid var(--at-line); }

.at-cart_form__hint { font-size: 12.5px; color: var(--at-muted); margin-bottom: 16px; }
.at-cart_form .form-control { height: 46px; }
.at-cart_form .form-control.at-input_error { border-color: #dc3545 !important; background: #fdeaea; }
.at-cart_form__error { background: #fdeaea; color: #b02a37; border-radius: var(--at-radius); padding: 10px 12px; font-size: 12.5px; margin-top: 4px; }

.at-cart_success { text-align: center; padding: 40px 24px; }
.at-cart_success__check {
	width: 64px; height: 64px; border-radius: 50%; background: var(--at-safety-green-soft); color: var(--at-safety-green);
	display: flex; align-items: center; justify-content: center; font-size: 28px; margin: 0 auto 18px;
	animation: atCheckPop .4s cubic-bezier(.34,1.56,.64,1);
}
@keyframes atCheckPop { 0% { transform: scale(0); opacity: 0; } 70% { transform: scale(1.15); } 100% { transform: scale(1); opacity: 1; } }
.at-cart_success h4 { font-family: var(--at-font-head); font-size: 18px; margin: 0 0 8px; text-transform: uppercase; letter-spacing: .02em; }
.at-cart_success p { color: var(--at-muted); font-size: 13.5px; margin: 0 0 22px; }
.at-cart_success__msgs { border-top: 1px solid var(--at-line); padding-top: 18px; }
.at-cart_success__msgs > span { display: block; font-size: 12px; color: var(--at-muted); margin-bottom: 10px; }
.at-cart_success__msgs_row { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }

@media (max-width: 575px) {
	.at-cart_modal { width: 94vw; max-height: 90vh; }
}

.at-wishlist_item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--at-line); }
.at-wishlist_item img { width: 56px; height: 56px; object-fit: contain; background: #f2f3f4; border-radius: var(--at-radius); }
.at-wishlist_item__body { flex: 1; min-width: 0; }
.at-wishlist_item__name { display: block; font-size: 13px; font-weight: 600; color: var(--at-ink); line-height: 1.3; }
.at-wishlist_item__price { font-weight: 700; font-size: 13px; margin-top: 3px; }
.at-wishlist_item__remove { border: none; background: none; color: var(--at-muted); cursor: pointer; }
.at-wishlist_item__remove:hover { color: var(--at-amber-dark); }

/* heart button pulse when added to wishlist */
.at-mini_btn--active { color: var(--at-amber-dark); border-color: var(--at-amber); }
.at-mini_btn--active i { color: var(--at-amber-dark); }
@keyframes atPulse { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
.at-mini_btn--pulse { animation: atPulse .4s ease; }

/* ---------- live AJAX search dropdown ---------- */
.at-livesearch { position: relative; }
.at-livesearch__panel {
	display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0;
	background: var(--at-card); border-radius: var(--at-radius-lg); border-top: 3px solid var(--at-amber);
	box-shadow: var(--at-shadow-lg); max-height: 70vh; overflow-y: auto; z-index: 600; text-align: left;
}
.at-livesearch__panel--open { display: block; }
.at-livesearch__group_title { font-family: var(--at-font-head); text-transform: uppercase; letter-spacing: .05em; font-size: 10.5px; font-weight: 600; color: var(--at-muted); padding: 10px 14px 4px; }
.at-livesearch__cat { display: flex; align-items: center; gap: 8px; padding: 8px 14px; font-size: 13px; color: var(--at-ink); }
.at-livesearch__cat:hover { background: #f2f3f4; color: var(--at-amber-dark); }
.at-livesearch__product { display: flex; align-items: center; gap: 10px; padding: 8px 14px; }
.at-livesearch__product:hover { background: #f2f3f4; }
.at-livesearch__product img { width: 40px; height: 40px; object-fit: contain; background: #f2f3f4; border-radius: var(--at-radius); flex: none; }
.at-livesearch__product_name { flex: 1; font-size: 13px; color: var(--at-ink); font-weight: 600; }
.at-livesearch__product_price { font-size: 13px; font-weight: 700; color: var(--at-ink); white-space: nowrap; }
.at-livesearch__more { display: block; text-align: center; padding: 12px; font-family: var(--at-font-head); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: var(--at-amber-dark); border-top: 1px solid var(--at-line); }
.at-livesearch__empty { padding: 20px; text-align: center; color: var(--at-muted); font-size: 13px; }

/* ---------- secondary nav row ---------- */
.at-subnav { background: #f2f3f4; border-bottom: 1px solid var(--at-line); }
.at-subnav .container-xxl { display: flex; gap: 2px; flex-wrap: wrap; }
.at-subnav a { font-family: var(--at-font-head); color: var(--at-steel); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; padding: 12px 14px; display: block; }
.at-subnav a:hover { background: rgba(0,0,0,.03); color: var(--at-amber-dark); }
.at-subnav__cat { color: var(--at-amber-dark) !important; }
.at-subnav__divider { width: 1px; align-self: center; height: 16px; background: var(--at-line); margin: 0 6px; }

/* ---------- mobile header bar (<992px) ---------- */
.at-header_mobile {
	align-items: center; justify-content: space-between; gap: 10px;
	background: var(--at-card); border-bottom: 3px solid var(--at-amber);
	padding: 10px 14px;
}
.at-header_mobile__hamburger {
	flex: none; display: flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; background: #f2f3f4; border: none; border-radius: var(--at-radius);
	color: var(--at-ink); font-size: 17px; cursor: pointer;
}
.at-header_mobile__logo { flex: 1; min-width: 0; display: flex; justify-content: center; }
.at-header_mobile__logo img { max-height: 32px; filter: brightness(0); }
.at-header_mobile__actions { flex: none; display: flex; align-items: center; gap: 4px; }
.at-header_mobile__icon {
	display: flex; align-items: center; justify-content: center; width: 40px; height: 40px;
	border-radius: var(--at-radius); color: var(--at-ink); font-size: 17px; position: relative;
}
.at-header_mobile__icon:hover { background: #f2f3f4; color: var(--at-amber-dark); }

.at-mobile_panel {
	position: fixed; top: 0; left: 0; bottom: 0; width: 320px; max-width: 86vw;
	background: var(--at-card); z-index: 2000; box-shadow: var(--at-shadow-lg);
	border-right: 3px solid var(--at-amber);
	transform: translateX(-100%); transition: transform .25s ease; overflow-y: auto;
}
.at-mobile_panel.at-mobile_panel--open { transform: translateX(0); }
.at-mobile_panel__head { display: flex; align-items: center; justify-content: space-between; padding: 16px; border-bottom: 1px solid var(--at-line); }
.at-mobile_panel__head h4 { margin: 0; font-family: var(--at-font-head); font-size: 16px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: var(--at-ink); }
.at-mobile_panel__close { border: none; background: none; font-size: 22px; color: var(--at-muted); cursor: pointer; }
.at-mobile_panel__search { padding: 14px 16px; }
.at-mobile_panel__search form { display: flex; height: 44px; border: 2px solid var(--at-amber); border-radius: var(--at-radius); overflow: hidden; }
.at-mobile_panel__search input { flex: 1; border: none; padding: 0 14px; min-width: 0; }
.at-mobile_panel__search button { border: none; background: var(--at-amber); color: #fff; width: 48px; }
.at-mobile_panel__list { list-style: none; margin: 0; padding: 0 8px 16px; }
.at-mobile_panel__list a { display: block; padding: 12px 8px; color: var(--at-ink); font-weight: 600; font-size: 14px; border-bottom: 1px solid var(--at-line); }
.at-overlay { position: fixed; inset: 0; background: rgba(15,17,20,.6); z-index: 1999; opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s; }
.at-overlay.at-overlay--open { opacity: 1; visibility: visible; }

/* ---------- footer ---------- */
.at-footer {
	position: relative;
	background: var(--at-graphite);
	color: #aab2bd;
	padding: 44px 0 0;
	overflow: hidden;
	margin-top: 40px;
}
.at-footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--at-amber); }
.at-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; position: relative; }
.at-footer__col h5 { font-family: var(--at-font-head); color: #fff; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 14px; border-left: 3px solid var(--at-amber); padding-left: 10px; }
.at-footer__col ul { list-style: none; margin: 0; padding: 0; }
.at-footer__col ul li { margin-bottom: 8px; }
.at-footer__col a { color: #aab2bd; }
.at-footer__col a:hover { color: var(--at-amber); }
.at-footer__social { display: flex; gap: 10px; margin-top: 16px; }
.at-footer__social a {
	width: 40px; height: 40px; border-radius: var(--at-radius); display: flex; align-items: center; justify-content: center;
	background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.15); color: #fff; font-size: 16px;
	transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.at-footer__social a:hover { background: var(--at-amber); border-color: var(--at-amber); color: var(--at-graphite); transform: translateY(-2px); }
.at-footer__bottom {
	position: relative; margin-top: 34px; border-top: 1px solid rgba(255,255,255,.08);
	padding: 16px 20px; text-align: center; font-size: 12.5px; color: #7c8797;
}

/* ---------- breadcrumbs ---------- */
.at-breadcrumb {
	display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0;
	list-style: none; margin: 0 0 16px; padding: 0; font-size: 13px;
}
.at-breadcrumb li { color: var(--at-muted); white-space: normal; }
.at-breadcrumb li:not(:last-child)::after { content: '/'; margin: 0 8px; color: var(--at-line-strong); }
.at-breadcrumb li a { color: var(--at-muted); font-weight: 500; }
.at-breadcrumb li a:hover { color: var(--at-amber-dark); }
.at-breadcrumb li:last-child { color: var(--at-ink); font-weight: 600; }

/* ---------- category page ---------- */
.at-page_heading {
	font-family: var(--at-font-head);
	font-size: 24px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em;
	margin: 0 0 16px; padding-left: 14px; border-left: 4px solid var(--at-amber);
	line-height: 1.3;
}
/* .at-cat_toolbar itself is laid out via bootstrap's d-flex/flex-wrap/gap-*
   utility classes in the markup - this only supplies the card chrome */
.at-cat_toolbar {
	background: var(--at-card); border: 1px solid var(--at-line); border-radius: var(--at-radius);
	padding: 12px 16px; margin-bottom: 20px;
}
.at-cat_toolbar select { border: 1px solid var(--at-line); border-radius: var(--at-radius); padding: 6px 10px; font-size: 13px; }
.at-refine_tile {
	display: block; background: var(--at-card); border: 1px solid var(--at-line); border-radius: var(--at-radius);
	padding: 10px 14px; font-weight: 600; font-size: 13.5px; color: var(--at-ink); border-left: 3px solid transparent;
}
.at-refine_tile:hover { border-left-color: var(--at-amber); color: var(--at-amber-dark); }

.at-search_panel {
	background: var(--at-card); border: 1px solid var(--at-line); border-radius: var(--at-radius-lg);
	padding: 20px; margin-bottom: 24px; box-shadow: var(--at-shadow);
}

/* generic white content card - info pages, contact form, static content blocks */
.at-content_card {
	background: var(--at-card); border: 1px solid var(--at-line); border-radius: var(--at-radius-lg);
	padding: 28px; box-shadow: var(--at-shadow);
}
.at-content_card img { max-width: 100%; height: auto; }
.at-form_error { color: #b02a37; font-size: 12.5px; margin-top: 4px; }
.at-search_panel__check {
	display: flex; align-items: center; gap: 7px;
	font-size: 13px; color: var(--at-ink); cursor: pointer; margin: 0;
}
.at-search_panel__check input { width: 16px; height: 16px; accent-color: var(--at-amber); cursor: pointer; }
.at-search_empty {
	background: var(--at-card); border: 1px dashed var(--at-line-strong); border-radius: var(--at-radius-lg);
	padding: 48px 20px; text-align: center; color: var(--at-muted);
}
.at-search_empty i { font-size: 32px; color: var(--at-line-strong); display: block; margin-bottom: 12px; }
.at-search_empty p { font-size: 14.5px; margin: 0; }

/* ---------- product card (component/prd_cart.tpl) — grid columns come from
   bootstrap's row/col-6 col-md-4 col-lg-3 classes set via $class_prd in the
   including page (category.tpl etc), not a custom CSS grid ---------- */
.at-prd_wrap { height: 100%; display: flex; }
.at-prd_wrap .at-prd_card { height: 100%; width: 100%; }
.at-prd_card {
	background: var(--at-card);
	border: 1px solid var(--at-line);
	border-radius: var(--at-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: var(--at-shadow);
	transition: box-shadow .15s ease, border-color .15s ease;
}
.at-prd_card:hover { box-shadow: var(--at-shadow-lg); border-color: var(--at-amber); }
.at-prd_card__media { position: relative; }
.at-prd_card__media_link {
	display: block; aspect-ratio: 1/1; padding: 0; position: relative; overflow: hidden;
	background: #f2f3f4; box-sizing: border-box;
}
.at-prd_card__media_link img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .25s ease; }
.at-prd_card:hover .at-prd_card__media_link img { transform: scale(1.05); }
.at-prd_card__badge { position: absolute; top: 10px; left: 10px; z-index: 2; }
.at-prd_card__hover_actions {
	position: absolute; top: 10px; right: 10px; z-index: 2;
	display: flex; gap: 6px; opacity: 0; transform: translateY(-4px);
	transition: opacity .18s ease, transform .18s ease;
}
.at-prd_card:hover .at-prd_card__hover_actions { opacity: 1; transform: translateY(0); }
.at-mini_btn {
	width: 32px; height: 32px; border-radius: var(--at-radius);
	background: rgba(255,255,255,.96); border: 1px solid var(--at-line);
	box-shadow: 0 2px 8px rgba(15,18,22,.18);
	display: flex; align-items: center; justify-content: center; cursor: pointer;
	font-size: 13px; color: var(--at-ink);
	transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.at-mini_btn:hover { border-color: var(--at-amber); background: var(--at-amber-soft); color: var(--at-amber-dark); }
.at-prd_card__body { padding: 0 14px; flex: 1; }
.at-prd_card__title_wrap { min-height: 36.5px; display: flex; align-items: center; }
.at-prd_card__title {
	font-size: 13.5px; line-height: 1.35; font-weight: 700; color: var(--at-ink);
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.at-prd_card__title:hover { color: var(--at-amber-dark); }
.at-prd_card__attrs { padding: 10px 0 0; margin: 8px 0 0; list-style: none; min-height: 105px; border-top: 1px solid var(--at-line); }
.at-prd_card__attrs li { display: flex; justify-content: space-between; gap: 6px; font-size: 11.5px; color: var(--at-muted); padding: 5px 0; }
.at-prd_card__attrs li span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.at-prd_card__attrs li span:last-child { font-weight: 700; color: var(--at-ink); text-align: right; white-space: nowrap; flex: none; }
.at-prd_card__attrs_fallback { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; font-size: 11.5px; line-height: 1.5; }
.at-prd_card__price { font-family: var(--at-font-head); font-weight: 600; font-size: 17px; padding: 8px 14px 4px; }
.at-prd_card__actions { padding: 10px 14px 14px; }
.at-prd_card__cart_btn {
	width: 100%; height: 40px; background: var(--at-graphite); color: #fff; border: none;
	border-radius: var(--at-radius); font-family: var(--at-font-head);
	font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .03em;
	display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
	transition: background .15s ease;
}
.at-prd_card__cart_btn:hover { background: var(--at-amber); color: var(--at-graphite); }

/* ---------- product page ---------- */
.at-badge i { font-size: 10px; }

.at-gallery { padding: 20px; border: 1px solid var(--at-line); border-radius: var(--at-radius-lg); background: var(--at-card); }
.at-gallery__main { display: block; aspect-ratio: 1/1; }
.at-gallery__main img { width: 100%; height: 100%; object-fit: contain; transition: transform .25s ease; }
.at-gallery__main:hover img { transform: scale(1.04); }
.at-gallery__thumbs { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.at-gallery__thumb {
	width: 64px; height: 64px; border: 2px solid var(--at-line); border-radius: var(--at-radius);
	overflow: hidden; cursor: pointer; padding: 4px;
}
.at-gallery__thumb img { width: 100%; height: 100%; object-fit: contain; }
.at-gallery__thumb--active, .at-gallery__thumb:hover { border-color: var(--at-amber); }

.at-buybox { background: var(--at-card); border: 1px solid var(--at-line); border-radius: var(--at-radius-lg); padding: 20px; }
.at-buybox__meta { font-size: 12.5px; color: var(--at-muted); margin-bottom: 8px; }
.at-buybox__meta_stock { color: var(--at-safety-green); font-weight: 700; }
.at-buybox__price { font-family: var(--at-font-head); font-size: 30px; font-weight: 600; margin-bottom: 16px; }
.at-buybox__price_old { text-decoration: line-through; color: var(--at-muted); font-size: 18px; margin-right: 10px; }
.at-buybox__price_special { color: var(--at-amber-dark); }
.at-buybox__row { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; margin-top: 16px; }

.at-qty_stepper { display: flex; align-items: stretch; border: 1px solid var(--at-line); border-radius: var(--at-radius); overflow: hidden; }
.at-qty_stepper__btn { width: 40px; background: #f2f3f4; border: none; font-size: 18px; font-weight: 700; color: var(--at-ink); cursor: pointer; }
.at-qty_stepper__btn:hover { background: var(--at-amber-soft); color: var(--at-amber-dark); }
.at-qty_stepper__input { width: 46px; border: none; border-left: 1px solid var(--at-line); border-right: 1px solid var(--at-line); text-align: center; font-weight: 700; }

.at-btn {
	height: 46px; padding: 0 20px; border: none; border-radius: var(--at-radius);
	font-family: var(--at-font-head); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .03em;
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
	transition: background .15s ease, color .15s ease;
}
.at-btn--amber { background: var(--at-amber); color: #fff; }
.at-btn--amber:hover { background: var(--at-amber-dark); }
.at-btn--graphite { background: var(--at-graphite); color: #fff; }
.at-btn--graphite:hover { background: var(--at-steel); }

.at-tabs { margin-top: 30px; }
.at-tabs__nav { display: flex; gap: 4px; border-bottom: 2px solid var(--at-line); flex-wrap: wrap; }
.at-tabs__tab {
	background: none; border: none; padding: 12px 18px; cursor: pointer;
	font-family: var(--at-font-head); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .03em;
	color: var(--at-muted); border-bottom: 3px solid transparent; margin-bottom: -2px;
}
.at-tabs__tab--active { color: var(--at-ink); border-bottom-color: var(--at-amber); }
.at-tabs__panel { display: none; padding: 20px 0; }
.at-tabs__panel--active { display: block; }
.at-spec_table { width: 100%; border-collapse: collapse; }
.at-spec_table tr { border-bottom: 1px solid var(--at-line); }
.at-spec_table td { padding: 10px 8px; font-size: 13.5px; }
.at-spec_table td:first-child { color: var(--at-muted); width: 40%; }
.at-spec_table td:last-child { font-weight: 600; color: var(--at-ink); }

.at-mini_btn--lg { width: 46px; height: 46px; font-size: 16px; }

/* trust/USP strip inside buybox */
.at-usp_row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 18px; }
.at-usp_item { display: flex; align-items: center; gap: 10px; padding: 10px; background: #f9f9fa; border-radius: var(--at-radius); }
.at-usp_item i { font-size: 20px; color: var(--at-amber); flex: none; }
.at-usp_item strong { display: block; font-size: 12px; }
.at-usp_item span { display: block; font-size: 11px; color: var(--at-muted); }

.at-b2b_panel {
	display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 14px 16px;
	background: var(--at-amber-soft); border-radius: var(--at-radius); font-size: 13px; color: var(--at-ink);
}
.at-b2b_panel i { color: var(--at-amber-dark); font-size: 18px; flex: none; }

/* manufacturer block */
.at-manufacturer_panel {
	display: flex; align-items: center; gap: 20px; margin-top: 30px; padding: 20px;
	background: var(--at-graphite); border-radius: var(--at-radius-lg); color: #fff;
}
.at-manufacturer_panel__icon { font-size: 34px; color: var(--at-amber); flex: none; }
.at-manufacturer_panel__body h4 { font-family: var(--at-font-head); margin: 4px 0 12px; font-size: 20px; text-transform: uppercase; }

/* info grid: delivery/leasing/warranty/consultation */
.at-info_grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 30px; }
.at-info_card { background: var(--at-card); border: 1px solid var(--at-line); border-radius: var(--at-radius-lg); padding: 20px; }
.at-info_card__icon {
	width: 46px; height: 46px; border-radius: var(--at-radius); background: var(--at-amber-soft);
	color: var(--at-amber-dark); display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 12px;
}
.at-info_card h4 { font-family: var(--at-font-head); font-size: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; margin: 0 0 8px; }
.at-info_card p { font-size: 13px; color: var(--at-muted); line-height: 1.5; margin: 0 0 10px; }
.at-link_more { font-size: 12.5px; font-weight: 700; color: var(--at-amber-dark); }
.at-link_more:hover { color: var(--at-graphite); }

/* category description: clamp to 3 lines with a "show more" toggle */
.at-cat_description {
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
	overflow: hidden; font-size: 14px; line-height: 1.6; color: var(--at-ink);
}
.at-cat_description--expanded { display: block; -webkit-line-clamp: unset; overflow: visible; }
.at-cat_description__toggle {
	background: none; border: none; padding: 8px 0 0; cursor: pointer;
	font-family: var(--at-font-head); text-transform: uppercase; letter-spacing: .03em;
}
.at-cat_description__toggle[hidden] { display: none; }

.at-payments_row { margin-top: 30px; padding: 16px 20px; background: #f9f9fa; border-radius: var(--at-radius-lg); }

/* FAQ accordion */
.at-faq { margin-top: 36px; }
.at-faq_item { border-bottom: 1px solid var(--at-line); }
.at-faq_item__q {
	width: 100%; text-align: left; background: none; border: none; padding: 16px 4px;
	display: flex; align-items: center; justify-content: space-between;
	font-size: 14px; font-weight: 600; color: var(--at-ink); cursor: pointer;
}
.at-faq_item__q i { transition: transform .2s ease; color: var(--at-muted); }
.at-faq_item--open .at-faq_item__q i { transform: rotate(180deg); color: var(--at-amber-dark); }
.at-faq_item__a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.at-faq_item--open .at-faq_item__a { max-height: 200px; }
.at-faq_item__a p { padding: 0 4px 16px; font-size: 13.5px; color: var(--at-muted); margin: 0; }

/* ---------- toast notifications ----------
   common.js (shared across themes, not touched) inserts add-to-cart /
   wishlist / compare success messages as `.alert.alert-success` right
   before #content, next to the page heading. Instead of moving that DOM
   insertion (would require editing shared JS), intercept it purely with
   CSS: pull it out of the document flow into a fixed bottom-right toast. */
/* NOTE: display:block (not flex) is deliberate - common.js injects the
   icon, a run of free-flowing text with embedded <a> links, and the close
   button all as loose siblings with no wrapper. Flexing the container
   directly turns each text run / link into its own flex item and shatters
   the sentence across the row (exactly the broken look reported). Block
   layout + an absolutely-positioned icon lets the text wrap normally. */
.alert.alert-success, .alert.alert-danger {
	position: fixed !important;
	bottom: 24px; right: 24px; left: auto; top: auto;
	z-index: 5000;
	width: 340px; max-width: calc(100vw - 32px);
	margin: 0 !important;
	background: var(--at-graphite); color: #fff;
	border: none; border-left: 4px solid var(--at-safety-green);
	border-radius: var(--at-radius-lg);
	box-shadow: var(--at-shadow-lg);
	padding: 14px 40px 14px 44px;
	font-size: 13.5px; font-weight: 600; line-height: 1.5;
	display: block;
	animation: atToastIn .25s ease;
	word-wrap: break-word; overflow-wrap: break-word;
}
.alert.alert-danger { border-left-color: #dc3545; }
.alert.alert-success i:first-child, .alert.alert-danger i:first-child {
	position: absolute; left: 16px; top: 15px; font-size: 16px; color: var(--at-safety-green);
}
.alert.alert-danger i:first-child { color: #dc3545; }
.alert.alert-success a, .alert.alert-danger a { color: var(--at-amber); text-decoration: underline; }
.alert.alert-success a:hover, .alert.alert-danger a:hover { color: #fff; }
.alert.alert-success .close, .alert.alert-danger .close {
	position: absolute; top: 10px; right: 12px; background: none; border: none;
	color: rgba(255,255,255,.6); font-size: 18px; line-height: 1; padding: 0; cursor: pointer;
}
.alert.alert-success .close:hover, .alert.alert-danger .close:hover { color: #fff; }
@keyframes atToastIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 991px) {
	.alert.alert-success, .alert.alert-danger { bottom: 76px; }
}
@media (max-width: 575px) {
	.alert.alert-success, .alert.alert-danger { right: 12px; left: 12px; max-width: none; }
}

/* ---------- floating chat widget (desktop) ---------- */
.chat-widget { position: fixed; bottom: 24px; right: 24px; z-index: 1800; display: flex; align-items: center; gap: 10px; }
.chat-label {
	background: var(--at-graphite); color: #fff; padding: 8px 14px; border-radius: var(--at-radius-lg);
	font-size: 12px; line-height: 1.4; box-shadow: var(--at-shadow-lg); opacity: 0; transform: translateX(8px);
	transition: opacity .2s ease, transform .2s ease; pointer-events: none; white-space: nowrap;
}
.chat-widget:hover .chat-label { opacity: 1; transform: translateX(0); }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--at-safety-green); margin-right: 5px; }
.chat-toggle {
	width: 56px; height: 56px; border-radius: 50%; background: var(--at-amber); color: #fff;
	display: flex; align-items: center; justify-content: center; font-size: 22px; cursor: pointer;
	box-shadow: var(--at-shadow-lg); transition: transform .2s ease;
}
.chat-toggle:hover { transform: scale(1.06); }
.chat-list {
	position: absolute; bottom: 68px; right: 0; display: flex; flex-direction: column; gap: 8px;
	opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.chat-widget.open .chat-list { opacity: 1; visibility: visible; transform: translateY(0); }
.chat-item {
	display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 24px;
	background: #fff; color: var(--at-ink); font-size: 13px; font-weight: 600; box-shadow: var(--at-shadow-lg); white-space: nowrap;
}
.chat-item i { font-size: 17px; }
.chat-item.wa i { color: #25D366; }
.chat-item.tg i { color: #229ED9; }
.chat-item.max i { color: var(--at-amber-dark); }
.chat-item:hover { background: var(--at-amber-soft); color: var(--at-amber-dark); }

/* ---------- mobile bottom tab bar ---------- */
.at-mobtabbar {
	position: fixed; bottom: 0; left: 0; right: 0; z-index: 1700;
	background: var(--at-card); border-top: 1px solid var(--at-line); box-shadow: 0 -4px 16px rgba(15,18,22,.08);
	justify-content: space-around; align-items: center; padding: 6px 2px;
}
.at-mobtabbar a, .at-mobtabbar button {
	display: flex; flex-direction: column; align-items: center; gap: 2px;
	background: none; border: none; color: var(--at-muted); font-size: 10px; font-weight: 600; padding: 4px;
}
.at-mobtabbar i { font-size: 18px; }
.at-mobtabbar__call { color: var(--at-amber-dark) !important; }
.at-mobtabbar__wa i { color: #25D366; }
body { padding-bottom: 62px; }
@media (min-width: 992px) { body { padding-bottom: 0; } }

/* ---------- home page ---------- */
.home-section { max-width: 1400px; margin: 0 auto 36px; padding: 0 20px; }

/* full-viewport-width hero with a looping muted video background -
   deliberately NOT inside .at-container so it bleeds edge to edge */
.at-hero {
	position: relative; overflow: hidden;
	width: 100%; min-height: 520px;
	display: flex; align-items: center;
	background: var(--at-graphite);
}
.at-hero::before {
	content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--at-amber); z-index: 3;
}
.at-hero__video {
	position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
}
.at-hero__overlay {
	position: absolute; inset: 0; z-index: 1;
	background: linear-gradient(90deg, rgba(20,23,28,.88) 0%, rgba(20,23,28,.72) 55%, rgba(20,23,28,.45) 100%);
}
.at-hero__inner { position: relative; z-index: 2; max-width: 860px; padding: 80px 20px; }
.at-hero__eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	color: var(--at-amber); font-size: 12.5px; font-weight: 700;
	text-transform: uppercase; letter-spacing: .05em; margin: 0 0 18px;
}
.at-hero__title {
	font-family: var(--at-font-head); color: #fff; font-size: 46px; font-weight: 600;
	text-transform: uppercase; letter-spacing: .01em; line-height: 1.15; margin: 0 0 14px;
}
.at-hero__subtitle_h2 {
	font-family: var(--at-font-head); color: #d8dce1; font-size: 16px; font-weight: 500;
	text-transform: none; letter-spacing: normal; margin: 0;
}
.at-hero__divider { width: 64px; height: 3px; background: var(--at-amber); margin: 28px 0 32px; }
.at-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.at-btn--lg { height: 52px; padding: 0 26px; font-size: 14px; }
.at-btn--outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.35); }
.at-btn--outline:hover { border-color: var(--at-amber); color: var(--at-amber); }
.at-hero__usp { display: flex; flex-wrap: wrap; gap: 12px; }
.at-hero__usp div {
	display: flex; align-items: center; gap: 10px; color: #fff; font-size: 12.5px; font-weight: 600;
	background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
	border-radius: 999px; padding: 10px 18px;
}
.at-hero__usp i {
	color: var(--at-graphite); background: var(--at-amber); font-size: 12px;
	width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none;
}

.at-usp_row--home { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* home page category tiles - hand-picked list with real photos (see
   $home_cat_tiles in home.tpl), 3-per-row / 3 rows grid */
.at-home_cat_tile {
	display: block; background: var(--at-card); border: 1px solid var(--at-line); border-radius: var(--at-radius-lg);
	overflow: hidden; color: var(--at-ink); font-weight: 600; font-size: 14px; height: 100%;
	transition: box-shadow .15s ease, border-color .15s ease;
}
.at-home_cat_tile:hover { box-shadow: var(--at-shadow-lg); border-color: var(--at-amber); color: var(--at-amber-dark); }
.at-home_cat_tile__media { aspect-ratio: 16/10; background: #f2f3f4; overflow: hidden; }
.at-home_cat_tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.at-home_cat_tile:hover .at-home_cat_tile__media img { transform: scale(1.05); }
.at-home_cat_tile span { display: block; padding: 14px 16px; }

@media (max-width: 767px) {
	.at-hero { min-height: 420px; }
	.at-hero__title { font-size: 28px; }
	.at-hero__subtitle_h2 { font-size: 14px; }
}
