/*
 * AutoParts theme for OpenCart 3.0.x
 * Loaded after the default stylesheet and overrides it.
 * Colours: --ap-primary and --ap-dark are set from the theme settings (Extensions > Themes > AutoParts).
 */
:root {
	--ap-primary: #ff6600;
	--ap-dark: #24272c;
	--ap-dark-2: #33373e;
	--ap-bg: #f3f4f6;
	--ap-surface: #ffffff;
	--ap-border: #e3e5e8;
	--ap-text: #1f2328;
	--ap-muted: #6b7280;
	--ap-success: #1a9d4b;
	--ap-danger: #d93025;
	--ap-radius: 6px;
	--ap-shadow: 0 1px 3px rgba(16, 24, 40, .08), 0 1px 2px rgba(16, 24, 40, .04);
	--ap-shadow-lg: 0 10px 30px rgba(16, 24, 40, .14);
}

/* ---------- Base ---------- */
body {
	font-family: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
	font-size: 14px;
	line-height: 1.5;
	color: var(--ap-text);
	background: var(--ap-bg);
	-webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 { font-family: inherit; color: var(--ap-text); font-weight: 700; }
h1 { font-size: 28px; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
a { color: var(--ap-text); }
a:hover, a:focus { color: var(--ap-primary); text-decoration: none; }
legend { font-size: 18px; padding: 7px 0; }
img { max-width: 100%; height: auto; }
.container { max-width: 1320px; width: 100%; }
#content { min-height: 400px; }
#content > h1, #content > h2, .ap-page-title { margin: 10px 0 18px; }

/* Panels: page content on white */
#account-account #content, #account-login #content, #account-register #content, #checkout-cart #content,
#checkout-checkout #content, #information-information #content, #information-contact #content,
#information-sitemap #content, #product-manufacturer #content, #product-compare #content, #account-wishlist #content,
#account-order #content, #account-edit #content, #account-address #content, #account-password #content,
#account-forgotten #content, #account-return #content, #account-newsletter #content, #error-not-found #content,
#checkout-success #content {
	background: var(--ap-surface);
	border: 1px solid var(--ap-border);
	border-radius: var(--ap-radius);
	padding: 20px 24px 30px;
	margin-bottom: 30px;
}

/* Forms */
.form-control, select.form-control, textarea.form-control, input[type="text"].form-control, input[type="password"].form-control,
input[type="email"].form-control, input[type="tel"].form-control, input[type="number"].form-control {
	border: 1px solid #cfd3d8;
	border-radius: 4px;
	box-shadow: none;
	height: 40px;
	font-size: 14px;
}
textarea.form-control { height: auto; }
.form-control:focus { border-color: var(--ap-primary); box-shadow: 0 0 0 3px rgba(255, 102, 0, .15); }
label { font-weight: 500; }

/* Buttons */
.btn { border-radius: 4px; font-weight: 500; padding: 9px 16px; box-shadow: none; text-shadow: none; transition: background .15s, border-color .15s, color .15s; }
.btn-lg { padding: 12px 22px; font-size: 16px; }
.btn-sm { padding: 6px 12px; }
.btn-xs { padding: 2px 8px; }
.btn-primary, .btn-primary:focus {
	background: var(--ap-primary);
	background-image: none;
	border: 1px solid var(--ap-primary);
	color: #fff;
	text-shadow: none;
	font-weight: 700;
}
.btn-primary:hover, .btn-primary:active, .btn-primary.active, .btn-primary.disabled, .btn-primary[disabled],
.btn-primary:active:focus, .open > .dropdown-toggle.btn-primary {
	background: var(--ap-primary);
	background-image: none;
	border-color: var(--ap-primary);
	color: #fff;
	filter: brightness(.92);
}
.btn-default { background: #fff; background-image: none; border: 1px solid #cfd3d8; color: var(--ap-text); text-shadow: none; }
.btn-default:hover, .btn-default:focus, .btn-default:active { background: #f6f7f8; border-color: #b9bec5; color: var(--ap-text); }
.btn-inverse, .btn-info, .btn-success, .btn-warning, .btn-danger { background-image: none; text-shadow: none; }
.btn-success { background-color: var(--ap-success); border-color: var(--ap-success); }
.btn-danger { background-color: var(--ap-danger); border-color: var(--ap-danger); }
.btn-link { color: var(--ap-text); }
.btn-link:hover { color: var(--ap-primary); }

/* Alerts, breadcrumb, pagination, tabs */
.alert { border-radius: var(--ap-radius); border-width: 0 0 0 4px; }
.alert-success { border-color: var(--ap-success); }
.alert-danger { border-color: var(--ap-danger); }
.alert-info { border-color: #2f80ed; }
.breadcrumb {
	background: transparent;
	border: 0;
	margin: 14px 0 6px;
	padding: 0;
	font-size: 13px;
}
.breadcrumb > li { padding: 0 18px 0 0; text-shadow: none; white-space: nowrap; }
.breadcrumb > li:after { display: none; }
.breadcrumb > li + li:before { content: "\f105"; font-family: FontAwesome; color: #9aa0a6; padding: 0 10px 0 0; margin-left: -8px; }
.breadcrumb a { color: var(--ap-muted); }
.breadcrumb > li:last-child a { color: var(--ap-text); font-weight: 500; }
.pagination > li > a, .pagination > li > span { color: var(--ap-text); border-color: var(--ap-border); margin: 0 2px; border-radius: 4px !important; }
.pagination > .active > a, .pagination > .active > span, .pagination > .active > a:hover, .pagination > .active > span:hover {
	background: var(--ap-primary); border-color: var(--ap-primary); color: #fff;
}
.nav-tabs { border-bottom: 2px solid var(--ap-border); margin-bottom: 0; }
.nav-tabs > li { margin-bottom: -2px; }
.nav-tabs > li > a { border: 0; border-bottom: 2px solid transparent; border-radius: 0; color: var(--ap-muted); font-weight: 700; padding: 12px 18px; }
.nav-tabs > li > a:hover { background: transparent; color: var(--ap-text); border-bottom-color: #c5c9cf; }
.nav-tabs > li.active > a, .nav-tabs > li.active > a:hover, .nav-tabs > li.active > a:focus {
	border: 0; border-bottom: 2px solid var(--ap-primary); color: var(--ap-text); background: transparent;
}
.tab-content { background: var(--ap-surface); padding: 20px; border: 1px solid var(--ap-border); border-top: 0; border-radius: 0 0 var(--ap-radius) var(--ap-radius); }
.table > thead > tr > td, .table > thead > tr > th { background: #f7f8f9; font-weight: 700; }
.list-group a { border-color: var(--ap-border); color: var(--ap-text); }
.list-group a.active, .list-group a.active:hover, .list-group a:hover { background: #fff4ec; border-color: var(--ap-border); color: var(--ap-primary); text-shadow: none; }
.dropdown-menu { border-radius: var(--ap-radius); border-color: var(--ap-border); box-shadow: var(--ap-shadow-lg); }
.dropdown-menu li > a:hover { background: #fff4ec; color: var(--ap-primary); background-image: none; }

/* ---------- Header ---------- */
#ap-header { position: relative; z-index: 1000; background: var(--ap-surface); box-shadow: 0 1px 0 var(--ap-border); }
#ap-header #top {
	background: var(--ap-dark);
	border: 0;
	margin: 0;
	min-height: 0;
	padding: 0;
	color: #d6d8dc;
	font-size: 13px;
}
#ap-header #top .container { display: flex; align-items: center; justify-content: space-between; min-height: 36px; padding-top: 0; }
#ap-header .ap-top-promo { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#ap-header .ap-top-promo .fa { color: var(--ap-primary); margin-right: 6px; }
#ap-header .ap-top-links { margin: 0; display: flex; align-items: center; }
#ap-header .ap-top-links > li { padding: 0 0 0 18px; }
#ap-header .ap-top-links a, #ap-header #top .btn-link { color: #d6d8dc; text-shadow: none; font-size: 13px; padding: 0; }
#ap-header .ap-top-links a:hover, #ap-header #top .btn-link:hover { color: #fff; }
#ap-header .ap-top-select .pull-left, #ap-header .ap-top-select form { float: none !important; margin: 0; }
#ap-header .ap-top-select .dropdown-menu { right: 0; left: auto; }
#ap-header .ap-top-select .dropdown-menu .btn-link { color: var(--ap-text); padding: 4px 14px; display: block; width: 100%; text-align: left; }

#ap-header .ap-main { padding: 18px 0; }
#ap-header .ap-main .container { display: flex; align-items: center; gap: 28px; }
#ap-header #logo { margin: 0; flex: 0 0 auto; max-width: 220px; }
#ap-header #logo img { max-height: 54px; width: auto; }
#ap-header .ap-logo-text { font-size: 26px; font-weight: 900; color: var(--ap-dark); letter-spacing: -.5px; text-transform: uppercase; }
#ap-header .ap-logo-text:hover { color: var(--ap-primary); }
#ap-header .ap-search { flex: 1 1 auto; min-width: 0; }
#ap-header #search { margin: 0; display: flex; }
#ap-header #search .input-lg {
	height: 48px;
	border: 2px solid var(--ap-dark);
	border-right: 0;
	border-radius: var(--ap-radius) 0 0 var(--ap-radius);
	font-size: 15px;
	padding: 0 16px;
}
#ap-header #search .input-lg:focus { border-color: var(--ap-primary); box-shadow: none; }
#ap-header #search .input-group-btn { width: auto; }
#ap-header #search .btn-lg {
	height: 48px;
	padding: 0 22px;
	background: var(--ap-primary);
	border: 0;
	border-radius: 0 var(--ap-radius) var(--ap-radius) 0;
	color: #fff;
	font-size: 18px;
	text-shadow: none;
}
#ap-header #search .btn-lg:hover { filter: brightness(.92); }
#ap-header .ap-actions { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; flex: 0 0 auto; }
#ap-header .ap-actions > li > a {
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	min-width: 64px; padding: 4px 8px; color: var(--ap-text); font-size: 12px; font-weight: 500; line-height: 1.2;
}
#ap-header .ap-actions > li > a .fa { font-size: 22px; margin-bottom: 4px; }
#ap-header .ap-actions > li > a:hover { color: var(--ap-primary); }
#ap-header .ap-actions > li > a span { max-width: 90px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#ap-header #cart { margin: 0; }
#ap-header #cart > .btn {
	background: var(--ap-dark);
	background-image: none;
	border: 0;
	border-radius: var(--ap-radius);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	line-height: 20px;
	padding: 13px 18px;
	text-shadow: none;
	white-space: nowrap;
	box-shadow: none;
}
#ap-header #cart > .btn .fa { color: var(--ap-primary); font-size: 18px; margin-right: 6px; vertical-align: -2px; }
#ap-header #cart.open > .btn, #ap-header #cart > .btn:hover { background: var(--ap-dark-2); color: #fff; }
#ap-header #cart .dropdown-menu { min-width: 380px; padding: 10px; z-index: 1100; }
#ap-header #cart .dropdown-menu .table-striped > tbody > tr:nth-of-type(odd) { background: #fafafa; }
#ap-header .ap-burger, .ap-nav-close {
	background: transparent; border: 0; font-size: 24px; color: var(--ap-text); padding: 4px 6px; line-height: 1;
}

/* ---------- Main navigation / mega menu ---------- */
.ap-nav { background: var(--ap-dark); }
.ap-nav .container { position: relative; }
.ap-nav-list { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.ap-nav-item { position: static; }
.ap-nav-link {
	display: flex; align-items: center; gap: 8px;
	padding: 14px 16px;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .2px;
	white-space: nowrap;
}
.ap-nav-link .fa-angle-down { opacity: .6; }
.ap-nav-link:hover, .ap-nav-link:focus, .ap-nav-item:hover > .ap-nav-link { color: #fff; background: var(--ap-dark-2); }
.ap-nav-icon { display: none; width: 24px; height: 24px; object-fit: contain; }
.ap-nav-sale { margin-left: auto; }
.ap-nav-sale .ap-nav-link { background: var(--ap-primary); }
.ap-nav-sale .ap-nav-link:hover { background: var(--ap-primary); filter: brightness(.92); }
.ap-nav-expand { display: none; }
.ap-mega {
	display: none;
	position: absolute;
	left: 15px;
	right: 15px;
	top: 100%;
	background: var(--ap-surface);
	border-radius: 0 0 var(--ap-radius) var(--ap-radius);
	box-shadow: var(--ap-shadow-lg);
	border-top: 3px solid var(--ap-primary);
	z-index: 1050;
}
.ap-mega-inner { padding: 22px 24px 18px; max-height: 70vh; overflow-y: auto; }
.ap-mega-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px 26px; }
.ap-mega-title { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ap-text); margin-bottom: 6px; }
.ap-mega-title img { width: 36px; height: 36px; object-fit: contain; flex: 0 0 36px; }
.ap-mega-col ul { margin: 0 0 0 46px; }
.ap-mega-col ul li a { display: block; padding: 2px 0; color: var(--ap-muted); font-size: 13px; }
.ap-mega-col ul li a:hover { color: var(--ap-primary); }
.ap-mega-more a { font-weight: 500; color: var(--ap-primary) !important; }
.ap-mega-all { display: inline-block; margin-top: 18px; font-weight: 700; color: var(--ap-primary); }
@media (min-width: 992px) {
	.ap-has-mega:hover > .ap-mega, .ap-has-mega:focus-within > .ap-mega { display: block; }
	.ap-nav-head, .ap-overlay { display: none !important; }
}

/* "Your vehicle" bar from Vehicle Selector (inserted after the header) */
html body .vs-bar { background: #fff4ec; color: var(--ap-text); border-bottom: 1px solid #ffd9bf; padding: 9px 0; font-size: 14px; }
html body .vs-bar .fa-car { color: var(--ap-primary); margin-right: 4px; }
html body .vs-bar a { color: var(--ap-primary); font-weight: 500; margin-left: 14px; }
html body .vs-bar .vs-bar-actions { float: right; }

/* ---------- Home ---------- */
.ap-hero {
	position: relative;
	background-color: var(--ap-dark);
	background-image: linear-gradient(135deg, var(--ap-dark) 0%, var(--ap-dark-2) 100%);
	background-size: cover;
	background-position: center right;
	padding: 34px 0 38px;
	color: #fff;
}
.ap-hero:before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 22, 26, .92) 0%, rgba(20, 22, 26, .6) 55%, rgba(20, 22, 26, .2) 100%); }
.ap-hero .container { position: relative; }
.ap-hero-row { display: flex; align-items: center; gap: 40px; }
.ap-hero-selector { flex: 0 0 440px; max-width: 440px; }
.ap-hero-promo { flex: 1 1 auto; }
.ap-hero-promo h1 { color: #fff; font-size: 40px; font-weight: 900; line-height: 1.12; margin: 0 0 14px; max-width: 620px; }
.ap-hero-promo p { color: #d6d8dc; font-size: 17px; max-width: 560px; margin-bottom: 24px; }
.ap-hero-box, html body .ap-hero .vs-module {
	background: var(--ap-surface);
	color: var(--ap-text);
	border: 0;
	border-radius: 10px;
	padding: 22px;
	margin: 0;
	box-shadow: var(--ap-shadow-lg);
}
.ap-hero-box-title, html body .ap-hero .vs-module .vs-title { font-size: 20px; font-weight: 900; margin-bottom: 14px; color: var(--ap-text); }
.ap-hero-box-title .fa { color: var(--ap-primary); margin-right: 6px; }
html body .ap-hero .vs-module .vs-title:before { content: "\f1b9"; font-family: FontAwesome; color: var(--ap-primary); margin-right: 8px; font-weight: normal; }
html body .ap-hero .vs-module + .vs-module, html body .ap-hero .ap-hero-selector > * + * { margin-top: 14px; }
html body .vs-module label { color: var(--ap-muted); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .3px; }
html body .vs-module .form-control { height: 44px; font-size: 15px; }
html body .vs-module .form-control:disabled { background: #f3f4f6; }
html body .vs-module .vs-submit { height: 48px; font-size: 16px; text-transform: uppercase; letter-spacing: .3px; }
html body .vs-module .vs-current { border-left-color: var(--ap-success); background: #effaf3; border-radius: 4px; }
html body .vs-module .vs-current-actions a { color: var(--ap-primary); }
/* the module outside the hero (column, content) */
html body .vs-module { background: var(--ap-surface); border: 1px solid var(--ap-border); border-radius: var(--ap-radius); box-shadow: var(--ap-shadow); }
.ap-hero-search #search { display: flex; }
.ap-hero-search #search .input-lg { height: 48px; border-radius: var(--ap-radius) 0 0 var(--ap-radius); }
.ap-hero-search #search .btn-lg { height: 48px; background: var(--ap-primary); border-color: var(--ap-primary); color: #fff; border-radius: 0 var(--ap-radius) var(--ap-radius) 0; }

.ap-usps { background: var(--ap-surface); border-bottom: 1px solid var(--ap-border); }
.ap-usp-list { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; list-style: none; }
.ap-usp-list li { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 16px 10px; font-weight: 700; font-size: 14px; }
.ap-usp-list li + li { border-left: 1px solid var(--ap-border); }
.ap-usp-list .fa { color: var(--ap-primary); font-size: 24px; }

.ap-section { margin: 34px 0; }
.ap-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.ap-section-head h2 { margin: 0; font-size: 24px; font-weight: 900; }
.ap-section-head a { color: var(--ap-primary); font-weight: 700; white-space: nowrap; }

.ap-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.ap-cat-card {
	display: flex; flex-direction: column;
	background: var(--ap-surface);
	border: 1px solid var(--ap-border);
	border-radius: var(--ap-radius);
	padding: 16px;
	transition: box-shadow .15s, border-color .15s;
}
.ap-cat-card:hover { box-shadow: var(--ap-shadow-lg); border-color: transparent; }
.ap-cat-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.ap-cat-img { flex: 0 0 64px; width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; background: #f6f7f8; border-radius: var(--ap-radius); }
.ap-cat-img img { max-width: 56px; max-height: 56px; object-fit: contain; }
.ap-cat-img .fa { font-size: 28px; color: #b0b5bc; }
.ap-cat-name { font-weight: 900; font-size: 16px; line-height: 1.25; }
.ap-cat-card ul { margin: 0 0 8px; flex: 1 1 auto; }
.ap-cat-card ul li a { display: block; padding: 3px 0; color: var(--ap-muted); font-size: 13px; }
.ap-cat-card ul li a:hover { color: var(--ap-primary); }
.ap-cat-all { color: var(--ap-primary); font-weight: 700; font-size: 13px; }

.ap-brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.ap-brand {
	display: flex; align-items: center; justify-content: center;
	height: 80px; padding: 10px;
	background: var(--ap-surface); border: 1px solid var(--ap-border); border-radius: var(--ap-radius);
	font-weight: 900; color: var(--ap-text); text-align: center;
}
.ap-brand img { max-height: 54px; width: auto; filter: grayscale(1); opacity: .8; transition: filter .15s, opacity .15s; }
.ap-brand:hover { border-color: var(--ap-primary); }
.ap-brand:hover img { filter: none; opacity: 1; }
.ap-seo-text { background: var(--ap-surface); border: 1px solid var(--ap-border); border-radius: var(--ap-radius); padding: 24px 28px; color: #4b5563; }
.ap-seo-text h2, .ap-seo-text h3 { margin-top: 0; }

/* Module headings (featured, latest, bestseller, special...) */
#content > h3, .ap-product h3 {
	font-size: 24px; font-weight: 900; margin: 30px 0 16px;
}
#common-home #content > h3:first-child { margin-top: 0; }

/* ---------- Product cards ---------- */
.ap-grid-row, #content .row:has(> .product-layout) { display: flex; flex-wrap: wrap; }
.ap-grid-row > div, #content .row:has(> .product-layout) > .product-layout { display: flex; float: none; }
.ap-grid-row > .clearfix { display: none !important; }
.product-thumb {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	background: var(--ap-surface);
	border: 1px solid var(--ap-border);
	border-radius: var(--ap-radius);
	margin-bottom: 24px;
	overflow: hidden;
	transition: box-shadow .15s, border-color .15s;
}
.product-thumb:hover { box-shadow: var(--ap-shadow-lg); border-color: transparent; }
.product-thumb .image { padding: 14px; background: #fff; position: relative; }
.product-thumb .image a:hover { opacity: 1; }
.product-thumb .image img { aspect-ratio: 1 / 1; object-fit: contain; width: 100%; transition: transform .2s; }
.product-thumb:hover .image img { transform: scale(1.03); }
.product-thumb > div:not(.image):not(.caption):not(.button-group) { display: flex; flex-direction: column; flex: 1 1 auto; }
.product-thumb .caption { padding: 0 16px; min-height: 0 !important; flex: 1 1 auto; display: flex; flex-direction: column; }
.product-thumb h4 { font-size: 15px; font-weight: 700; line-height: 1.35; margin: 0 0 6px; }
.product-thumb h4 a { color: var(--ap-text); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.product-thumb h4 a:hover { color: var(--ap-primary); }
.product-thumb .caption > p:not(.price) { font-size: 12px; color: var(--ap-muted); margin-bottom: 8px; }
.product-grid .product-thumb .caption > p:not(.price), .ap-grid-row .product-thumb .caption > p:not(.price) { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.product-thumb .rating { padding-bottom: 6px; }
.product-thumb .price { margin: auto 0 12px; padding-top: 8px; font-size: 22px; font-weight: 900; color: var(--ap-text); line-height: 1.2; }
.product-thumb .price-new { color: var(--ap-danger); font-weight: 900; }
.product-thumb .price-old { font-size: 14px; font-weight: 400; color: var(--ap-muted); margin-left: 6px; }
.product-thumb .price-tax { font-size: 11px; font-weight: 400; color: var(--ap-muted); margin-top: 2px; }
.product-thumb .button-group {
	display: flex; gap: 6px;
	padding: 0 16px 16px;
	background: transparent;
	border: 0 !important;
	overflow: visible;
}
.product-thumb .button-group button, .product-thumb .button-group button + button {
	float: none;
	width: auto;
	border: 1px solid var(--ap-border);
	border-radius: 4px;
	background: #fff;
	color: var(--ap-muted);
	line-height: 40px;
	height: 42px;
	padding: 0 12px;
	text-transform: none;
	font-weight: 500;
}
.product-thumb .button-group button:hover { background: #f6f7f8; color: var(--ap-text); }
.product-thumb .button-group button:first-child {
	flex: 1 1 auto;
	background: var(--ap-primary);
	border-color: var(--ap-primary);
	color: #fff;
	font-weight: 700;
}
.product-thumb .button-group button:first-child:hover { background: var(--ap-primary); color: #fff; filter: brightness(.92); }
.product-thumb .button-group button:first-child .hidden-xs { display: inline !important; }
.ap-badge-sale {
	position: absolute; top: 12px; left: 12px; z-index: 2;
	background: var(--ap-danger); color: #fff;
	font-size: 13px; font-weight: 900; padding: 3px 8px; border-radius: 4px;
}
/* List view */
.product-list .product-thumb { flex-direction: row; }
.product-list .product-thumb .image { flex: 0 0 220px; float: none; padding: 16px; }
.product-list .product-thumb .caption { margin-left: 0; padding: 16px 16px 0; }
.product-list .product-thumb > div:not(.image):not(.caption):not(.button-group) { flex-direction: row; flex-wrap: nowrap; }
.product-list .product-thumb .button-group { flex: 0 0 220px; flex-direction: column; justify-content: flex-end; padding: 16px; border-left: 1px solid var(--ap-border) !important; }
.product-list .product-thumb .button-group button { width: 100%; }
.product-list .product-thumb .price { font-size: 24px; }
@media (max-width: 767px) {
	.product-list .product-thumb { flex-direction: column; }
	.product-list .product-thumb .image { flex-basis: auto; }
	.product-list .product-thumb .button-group { flex-basis: auto; flex-direction: row; border-left: 0 !important; }
}
/* Vehicle Selector badges in the cards */
html body .product-thumb .vs-badge { font-size: 12px; padding: 3px 8px; border-radius: 3px; margin-bottom: 6px; }
html body .vs-fit { background: #e6f6ec; color: var(--ap-success); }
html body .product-thumb .vs-terms { font-size: 12px; border-radius: 0 3px 3px 0; }

/* ---------- Category / listing ---------- */
.ap-cat-intro { display: flex; gap: 20px; align-items: flex-start; background: var(--ap-surface); border: 1px solid var(--ap-border); border-radius: var(--ap-radius); padding: 18px 20px; margin-bottom: 18px; color: #4b5563; }
.ap-cat-intro-img { flex: 0 0 100px; }
.ap-cat-intro-img img { max-width: 100px; }
.ap-cat-intro-text { flex: 1 1 auto; min-width: 0; }
.ap-cat-intro-text p:last-child { margin-bottom: 0; }
.ap-refine { margin-bottom: 18px; }
.ap-refine h3 { font-size: 15px; margin: 0 0 10px; color: var(--ap-muted); text-transform: uppercase; letter-spacing: .3px; }
.ap-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ap-chips a { display: inline-block; padding: 8px 14px; background: var(--ap-surface); border: 1px solid var(--ap-border); border-radius: 30px; font-weight: 500; font-size: 13px; }
.ap-chips a:hover { border-color: var(--ap-primary); color: var(--ap-primary); }
.ap-toolbar, #product-search #content > .row:first-of-type, #product-special #content > .row:first-of-type, #product-manufacturer #content > .row:first-of-type {
	background: var(--ap-surface); border: 1px solid var(--ap-border); border-radius: var(--ap-radius);
	margin: 0 0 18px; padding: 10px 0 0;
}
.ap-toolbar .form-group { margin-bottom: 10px; }
.ap-toolbar .input-group-addon { background: #f6f7f8; border-color: #cfd3d8; }
.ap-toolbar .btn-group .btn.active { background: var(--ap-dark); color: #fff; border-color: var(--ap-dark); }
html body .vs-filter-notice { border-radius: var(--ap-radius); font-size: 14px; }
html body .vs-filter-notice a { font-weight: 700; }

/* Left column (filter, category module) */
#column-left .list-group, #column-right .list-group { border-radius: var(--ap-radius); overflow: hidden; }
#column-left .panel, #column-right .panel { border-radius: var(--ap-radius); border-color: var(--ap-border); box-shadow: none; }
#column-left .panel-heading, #column-right .panel-heading { background: var(--ap-dark); color: #fff; font-weight: 700; border: 0; }

/* ---------- Product page ---------- */
.ap-product-top { margin-bottom: 26px; }
.ap-gallery, .ap-buybox { margin-bottom: 20px; }
.ap-gallery .thumbnails { margin: 0; background: var(--ap-surface); border: 1px solid var(--ap-border); border-radius: var(--ap-radius); padding: 18px; }
.ap-gallery .thumbnails > li { margin: 0; }
.ap-gallery .thumbnails > li:first-child { float: none; }
.ap-gallery .thumbnails > li:first-child .thumbnail { border: 0; padding: 0; margin: 0 0 14px; text-align: center; }
.ap-gallery .thumbnails > li:first-child img { max-height: 520px; width: auto; }
.ap-gallery .thumbnails .image-additional { margin: 0 10px 0 0; max-width: 84px; }
.ap-gallery .thumbnails .image-additional a { border-radius: 4px; border-color: var(--ap-border); padding: 4px; margin-bottom: 0; }
.ap-gallery .thumbnails .image-additional a:hover { border-color: var(--ap-primary); }
.ap-buybox {
	background: var(--ap-surface); border: 1px solid var(--ap-border); border-radius: var(--ap-radius);
	padding: 22px 24px;
}
.ap-pbrand { display: inline-block; font-weight: 900; text-transform: uppercase; color: var(--ap-muted); font-size: 13px; letter-spacing: .4px; }
.ap-buybox h1 { font-size: 26px; font-weight: 900; line-height: 1.2; margin: 4px 0 14px; }
.ap-pmeta ul { margin: 0 0 12px; font-size: 13px; }
.ap-pmeta li { padding: 3px 0; }
.ap-pmeta li span { color: var(--ap-muted); }
.ap-stock strong { display: inline-block; padding: 2px 10px; border-radius: 20px; background: #e6f6ec; color: var(--ap-success); font-size: 12px; }
.ap-stock.ap-out strong { background: #fdecea; color: var(--ap-danger); }
.ap-buybox .rating p { margin: 0 0 10px; font-size: 13px; }
.ap-price-box { border-top: 1px solid var(--ap-border); padding-top: 14px; margin-bottom: 6px; }
.ap-price-box ul { margin: 0; }
.ap-price-box h2 { font-size: 34px; font-weight: 900; margin: 0 0 4px; }
.ap-old-price + li h2 { color: var(--ap-danger); }
.ap-old-price span { text-decoration: line-through; color: var(--ap-muted); font-size: 16px; }
.ap-price-box li { color: var(--ap-muted); font-size: 13px; }
.ap-buybox #product hr { margin: 14px 0; border-color: var(--ap-border); }
.ap-buybox #product h3 { font-size: 16px; margin: 0 0 10px; }
.ap-buybox #product .ap-cart-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.ap-buybox #product .ap-cart-row > label { width: 100%; margin: 0; }
.ap-buybox #product .ap-cart-row > br { display: none; }
.ap-qty { display: inline-flex; align-items: stretch; border: 1px solid #cfd3d8; border-radius: 4px; overflow: hidden; height: 52px; }
.ap-qty button { width: 40px; border: 0; background: #f6f7f8; font-size: 18px; color: var(--ap-text); }
.ap-qty button:hover { background: #eceef1; }
.ap-qty input#input-quantity { width: 56px; height: 100%; border: 0; border-radius: 0; text-align: center; font-weight: 700; font-size: 16px; }
.ap-buybox #button-cart { flex: 1 1 200px; width: auto; height: 52px; font-size: 17px; text-transform: uppercase; letter-spacing: .3px; margin: 0; }
.ap-buybox #button-cart:before { content: "\f07a"; font-family: FontAwesome; margin-right: 10px; font-weight: normal; }
.ap-pactions { display: flex; gap: 6px; margin: 4px 0 8px; }
.ap-pactions .btn-link { padding-left: 0; color: var(--ap-muted); }
.ap-pactions .btn-link:hover { color: var(--ap-primary); }
.ap-pusps { border-top: 1px solid var(--ap-border); margin: 6px 0 0; padding-top: 12px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; font-size: 12px; font-weight: 500; }
.ap-pusps .fa { color: var(--ap-primary); font-size: 16px; margin-right: 4px; }
.ap-ptabs { margin-bottom: 30px; }
.ap-ptabs .nav-tabs { background: var(--ap-surface); border: 1px solid var(--ap-border); border-bottom: 2px solid var(--ap-border); border-radius: var(--ap-radius) var(--ap-radius) 0 0; padding: 0 8px; }
.ap-ptabs #tab-specification table td:first-child { width: 40%; color: var(--ap-muted); }
/* Vehicle Selector boxes on the product page */
html body .vs-product-status { border-radius: var(--ap-radius); margin: 4px 0 14px; padding: 12px 14px; }
html body .vs-status-select { background: #fff4ec; border-color: #ffd9bf; }
html body .vs-status-select a { color: var(--ap-primary); font-weight: 700; }
html body .vs-status-select .fa-car { color: var(--ap-primary); }

/* ---------- Footer ---------- */
.ap-help { background: var(--ap-primary); color: #fff; padding: 22px 0; margin-top: 40px; }
.ap-help .container { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.ap-help-icon { width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 255, 255, .18); display: flex; align-items: center; justify-content: center; font-size: 24px; }
.ap-help-text { flex: 1 1 300px; }
.ap-help-text strong { display: block; font-size: 19px; font-weight: 900; }
.ap-help-text span { opacity: .92; }
.ap-help-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.ap-help .btn-primary { background: var(--ap-dark); border-color: var(--ap-dark); }
.ap-help .btn-default { background: #fff; border-color: #fff; }
#ap-footer { background: var(--ap-dark); color: #b9bdc4; margin: 0; padding: 40px 0 0; border: 0; }
#ap-footer h5 { color: #fff; font-size: 15px; font-weight: 900; text-transform: uppercase; letter-spacing: .4px; margin: 0 0 14px; font-family: inherit; }
#ap-footer ul li { padding: 4px 0; }
#ap-footer a { color: #b9bdc4; }
#ap-footer a:hover { color: #fff; }
#ap-footer .ap-contact li { display: flex; gap: 10px; }
#ap-footer .ap-contact .fa { color: var(--ap-primary); width: 16px; margin-top: 3px; }
#ap-footer .ap-follow { margin-top: 20px; }
#ap-footer .ap-social li a { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--ap-dark-2); color: #fff; font-size: 17px; }
#ap-footer .ap-social li a:hover { background: var(--ap-primary); }
#ap-footer .col-sm-6 { margin-bottom: 26px; }
.ap-footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 16px 0; font-size: 13px; }
.ap-footer-bottom .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ap-payment .fa { color: var(--ap-primary); margin-right: 6px; }
.ap-to-top {
	position: fixed; right: 18px; bottom: 18px; z-index: 900;
	width: 44px; height: 44px; border-radius: 50%;
	background: var(--ap-primary); color: #fff; font-size: 24px;
	display: flex; align-items: center; justify-content: center;
	box-shadow: var(--ap-shadow-lg); opacity: 0; visibility: hidden; transition: opacity .2s;
}
.ap-to-top.ap-show { opacity: 1; visibility: visible; }
.ap-cart-count { display: none; }
@media (max-width: 767px) { #ap-header .ap-cart-count { display: block; } }
.ap-to-top:hover, .ap-to-top:focus { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
	.ap-hero-selector { flex-basis: 400px; max-width: 400px; }
	.ap-hero-promo h1 { font-size: 32px; }
	#ap-header .ap-actions > li.ap-wishlist { display: none; }
}
@media (max-width: 991px) {
	#ap-header .ap-main { padding: 12px 0; }
	#ap-header .ap-main .container { flex-wrap: wrap; gap: 10px 14px; }
	#ap-header #logo { flex: 1 1 auto; }
	#ap-header #logo img { max-height: 40px; }
	#ap-header .ap-search { order: 5; flex: 1 1 100%; }
	#ap-header #search .input-lg, #ap-header #search .btn-lg { height: 44px; }
	#ap-header .ap-actions > li > a span { display: none; }
	#ap-header .ap-actions > li > a { min-width: 44px; }
	#ap-header #cart > .btn { padding: 11px 14px; }
	#ap-header #cart > .btn #cart-total { font-size: 13px; }
	#ap-header #cart .dropdown-menu { min-width: 300px; max-width: calc(100vw - 30px); }

	.ap-nav {
		position: fixed; top: 0; left: 0; bottom: 0; width: 320px; max-width: 86vw;
		transform: translateX(-100%); transition: transform .25s ease;
		z-index: 1200; overflow-y: auto; background: var(--ap-surface);
	}
	.ap-nav .container { padding: 0; }
	body.ap-menu-open .ap-nav { transform: none; box-shadow: var(--ap-shadow-lg); }
	.ap-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 1150; display: none; }
	body.ap-menu-open .ap-overlay { display: block; }
	body.ap-menu-open { overflow: hidden; }
	.ap-nav-head { display: flex !important; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--ap-dark); color: #fff; font-weight: 900; text-transform: uppercase; }
	.ap-nav-head .ap-nav-close { color: #fff; }
	.ap-nav-list { display: block; }
	.ap-nav-item { position: relative; border-bottom: 1px solid var(--ap-border); }
	.ap-nav-link { color: var(--ap-text); padding: 14px 52px 14px 16px; white-space: normal; text-transform: none; font-size: 15px; }
	.ap-nav-link:hover, .ap-nav-link:focus, .ap-nav-item:hover > .ap-nav-link { background: #f6f7f8; color: var(--ap-text); }
	.ap-nav-link .fa-angle-down { display: none; }
	.ap-nav-icon { display: inline-block; }
	.ap-nav-expand { display: block !important; position: absolute; right: 0; top: 0; width: 50px; height: 50px; border: 0; background: transparent; color: var(--ap-muted); }
	.ap-nav-item.ap-open > .ap-nav-expand .fa:before { content: "\f068"; }
	.ap-mega { position: static; box-shadow: none; border: 0; border-radius: 0; background: #f9fafb; }
	.ap-nav-item.ap-open > .ap-mega { display: block; }
	.ap-mega-inner { padding: 8px 16px 14px; max-height: none; }
	.ap-mega-grid { grid-template-columns: 1fr; gap: 10px; }
	.ap-mega-title img { width: 28px; height: 28px; flex-basis: 28px; }
	.ap-mega-col ul { margin-left: 38px; }
	.ap-mega-all { margin-top: 10px; }
	.ap-nav-sale { margin: 0; }
	.ap-nav-sale .ap-nav-link { color: #fff; }

	.ap-hero { padding: 22px 0 26px; }
	.ap-hero-row { flex-direction: column; align-items: stretch; gap: 20px; }
	.ap-hero-selector { flex: 1 1 auto; max-width: none; order: 1; }
	.ap-hero-promo { order: 2; }
	.ap-hero-promo h1 { font-size: 26px; }
	.ap-hero-promo p { font-size: 15px; margin-bottom: 14px; }
	.ap-usp-list { grid-template-columns: repeat(2, 1fr); }
	.ap-usp-list li:nth-child(3) { border-left: 0; }
	.ap-usp-list li:nth-child(n+3) { border-top: 1px solid var(--ap-border); }
}
@media (max-width: 767px) {
	h1, .ap-buybox h1 { font-size: 22px; }
	#ap-header .ap-main .container { flex-wrap: wrap; }
	#ap-header #logo { flex: 1 1 0; min-width: 0; }
	#ap-header .ap-logo-text { font-size: 20px; }
	#ap-header .ap-actions { gap: 0; }
	#ap-header #cart > .btn { position: relative; padding: 10px 12px; }
	#ap-header #cart > .btn #cart-total { font-size: 0; }
	#ap-header #cart > .btn #cart-total .fa { font-size: 20px; margin: 0; }
	#ap-header .ap-cart-count { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--ap-primary); color: #fff; font-size: 11px; line-height: 20px; font-weight: 700; }
	.ap-hero-promo p, .ap-hero-promo .btn { display: none; }
	.ap-hero-promo h1 { font-size: 20px; margin: 0; }
	#ap-header #top .ap-top-promo { font-size: 12px; }
	#ap-header .ap-top-links > li { padding-left: 12px; }
	.ap-usp-list li { justify-content: flex-start; font-size: 13px; padding: 12px; }
	.ap-usp-list .fa { font-size: 20px; }
	.ap-section { margin: 24px 0; }
	.ap-section-head h2 { font-size: 20px; }
	.ap-cat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.ap-cat-card { padding: 12px; }
	.ap-cat-head { flex-direction: column; align-items: flex-start; gap: 8px; }
	.ap-cat-img { width: 52px; height: 52px; flex-basis: 52px; }
	.ap-cat-name { font-size: 14px; }
	.ap-cat-card ul { display: none; }
	.ap-brand-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
	.ap-brand { height: 64px; }
	.product-layout.col-xs-12.product-grid, .ap-grid-row > .product-layout.col-xs-12:not(.product-list), .ap-grid-row > .col-xs-6 { width: 50%; padding-left: 6px; padding-right: 6px; }
	.ap-grid-row { margin-left: -6px; margin-right: -6px; }
	.product-thumb { margin-bottom: 12px; }
	.product-thumb .image { padding: 8px; }
	.product-thumb .caption { padding: 0 10px; }
	.product-thumb h4 { font-size: 13px; }
	.product-thumb .price { font-size: 18px; }
	.product-thumb .button-group { padding: 0 10px 10px; }
	.product-thumb .button-group button + button { display: none; }
	.product-thumb .button-group button:first-child .hidden-xs { display: none !important; }
	.product-list .product-thumb .button-group button + button { display: inline-block; }
	.ap-buybox { padding: 16px; }
	.ap-price-box h2 { font-size: 28px; }
	.ap-pusps { grid-template-columns: 1fr; }
	.ap-cat-intro { flex-direction: column; }
	.tab-content { padding: 14px; }
	.ap-ptabs .nav-tabs { display: flex; overflow-x: auto; flex-wrap: nowrap; }
	.ap-ptabs .nav-tabs > li { float: none; flex: 0 0 auto; }
	.ap-footer-bottom .container { flex-direction: column; }
	html body .vs-bar .vs-bar-actions { float: none; display: block; margin-top: 4px; }
	html body .vs-bar .vs-bar-actions a:first-child { margin-left: 0; }
}
