/* ==========================================================================
   Custom Theme for OpenCart 4.1.0.x — replaces core catalog/view/stylesheet/stylesheet.css
   Built on Bootstrap 5 (bundled with OpenCart). Colours, font, radius and
   width come from CSS variables set in Admin > Extensions > Themes > Custom Theme.
   The values below are fallbacks only.
   --------------------------------------------------------------------------
   1. Tokens + Bootstrap bridge   6. Menu              11. Product page
   2. Base                        7. Breadcrumb/alerts 12. Utilities
   3. Forms / buttons             8. Product cards     13. Footer
   4. Top bar                     9. Blog / lists      14. Cookie bar
   5. Header / search / cart     10. Modules           15. RTL / print
   ========================================================================== */

/* 1. Tokens --------------------------------------------------------------- */
:root {
	--c-primary: #1f6feb;
	--c-primary-text: #ffffff;
	--c-accent: #d9480f;
	--c-text: #1f2328;
	--c-muted: #59636e;
	--c-bg: #ffffff;
	--c-surface: #f6f8fa;
	--c-border: #d1d9e0;
	--c-header-bg: #ffffff;
	--c-footer-bg: #1f2328;
	--c-footer-text: #e6edf3;
	--c-success: #1a7f37;
	--c-danger: #cf222e;
	--c-warning: #9a6700;
	--font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--fs-base: 15px;
	--radius: 8px;
	--container: 1280px;
	--gap: 24px;
	--shadow-md: 0 6px 20px rgba(0, 0, 0, .08);
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* Bridge: make Bootstrap 5 components follow the theme tokens */
body.theme-custom {
	--bs-body-font-family: var(--font-body);
	--bs-body-font-size: var(--fs-base);
	--bs-body-color: var(--c-text);
	--bs-body-bg: var(--c-bg);
	--bs-secondary-color: var(--c-muted);
	--bs-tertiary-bg: var(--c-surface);
	--bs-border-color: var(--c-border);
	--bs-border-radius: var(--radius);
	--bs-border-radius-sm: calc(var(--radius) * .75);
	--bs-border-radius-lg: calc(var(--radius) * 1.25);
	--bs-link-color: var(--c-primary);
	--bs-link-hover-color: var(--c-primary);
	--bs-heading-color: var(--c-text);
	--bs-emphasis-color: var(--c-text);
	--bs-focus-ring-color: color-mix(in srgb, var(--c-primary) 25%, transparent);
}

/* 2. Base ----------------------------------------------------------------- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
	font-family: var(--font-body);
	font-size: var(--fs-base);
	line-height: 1.55;
	color: var(--c-text);
	background: var(--c-bg);
	-webkit-font-smoothing: antialiased;
}
#container { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1 0 auto; padding-bottom: 48px; }
h1, h2, h3, h4, h5, h6 { color: var(--c-text); font-weight: 650; line-height: 1.25; }
h1 { font-size: 1.9em; margin: .2em 0 .7em; }
h2 { font-size: 1.45em; }
h3 { font-size: 1.2em; }
h4 { font-size: 1.05em; }
a { color: var(--c-primary); text-decoration: none; }
a:hover { color: var(--c-primary); text-decoration: underline; text-underline-offset: 2px; }
:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; }
legend { font-size: 1.1em; padding: 7px 0; margin-bottom: 20px; border-bottom: 1px solid var(--c-border); }
label { font-size: .95em; }
img { max-width: 100%; height: auto; }
.container, .container-fluid { --bs-gutter-x: 2rem; }
.container { max-width: var(--container); }
#content, #column-left, #column-right { padding-bottom: 24px; }

.skip-link {
	position: absolute; left: 8px; top: -60px; z-index: 2000;
	background: var(--c-primary); color: var(--c-primary-text);
	padding: 10px 14px; border-radius: var(--radius); transition: top .15s;
}
.skip-link:focus { top: 8px; color: var(--c-primary-text); }

/* 3. Forms / buttons ------------------------------------------------------ */
.form-control, .form-select {
	border-color: var(--c-border);
	border-radius: var(--radius);
	color: var(--c-text);
	background-color: var(--c-bg);
}
.form-control:focus, .form-select:focus, .form-check-input:focus {
	border-color: var(--c-primary);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-primary) 20%, transparent);
}
.form-check-input:checked { background-color: var(--c-primary); border-color: var(--c-primary); }
.form-switch-lg { font-size: 20px; min-height: 30px; line-height: 30px; }
.form-check .form-check-input { margin-top: .25rem; }
div.required .col-form-label:before, div.required .form-label:before { content: "* "; color: var(--c-danger); font-weight: bold; }
@media (min-width: 768px) { .col-form-label { text-align: right; } }
.nav-tabs { margin-bottom: 18px; }
.nav-tabs .nav-link { color: var(--c-muted); }
.nav-tabs .nav-link.active { color: var(--c-text); }

.btn { font-weight: 600; border-radius: var(--radius); }
.btn-primary {
	--bs-btn-bg: var(--c-primary);
	--bs-btn-border-color: var(--c-primary);
	--bs-btn-color: var(--c-primary-text);
	--bs-btn-hover-bg: color-mix(in srgb, var(--c-primary) 85%, #000);
	--bs-btn-hover-border-color: color-mix(in srgb, var(--c-primary) 85%, #000);
	--bs-btn-hover-color: var(--c-primary-text);
	--bs-btn-active-bg: color-mix(in srgb, var(--c-primary) 78%, #000);
	--bs-btn-active-border-color: color-mix(in srgb, var(--c-primary) 78%, #000);
	--bs-btn-active-color: var(--c-primary-text);
	--bs-btn-disabled-bg: var(--c-primary);
	--bs-btn-disabled-border-color: var(--c-primary);
	--bs-btn-disabled-color: var(--c-primary-text);
}
.btn-light {
	--bs-btn-bg: var(--c-surface);
	--bs-btn-border-color: var(--c-border);
	--bs-btn-color: var(--c-text);
	--bs-btn-hover-bg: color-mix(in srgb, var(--c-surface) 85%, var(--c-text));
	--bs-btn-hover-border-color: var(--c-border);
	--bs-btn-hover-color: var(--c-text);
}
.btn-dark {
	--bs-btn-bg: var(--c-text);
	--bs-btn-border-color: var(--c-text);
	--bs-btn-color: var(--c-bg);
	--bs-btn-hover-bg: color-mix(in srgb, var(--c-text) 85%, #fff);
	--bs-btn-hover-border-color: color-mix(in srgb, var(--c-text) 85%, #fff);
	--bs-btn-hover-color: var(--c-bg);
}
.bg-primary { background-color: var(--c-primary) !important; }
.text-primary { color: var(--c-primary) !important; }

.dropdown-menu {
	--bs-dropdown-border-color: var(--c-border);
	--bs-dropdown-border-radius: var(--radius);
	--bs-dropdown-link-color: var(--c-text);
	--bs-dropdown-link-hover-bg: var(--c-surface);
	--bs-dropdown-link-hover-color: var(--c-primary);
	--bs-dropdown-link-active-bg: var(--c-primary);
	--bs-dropdown-link-active-color: var(--c-primary-text);
	box-shadow: var(--shadow-md);
}

.pagination {
	--bs-pagination-color: var(--c-text);
	--bs-pagination-border-color: var(--c-border);
	--bs-pagination-hover-color: var(--c-primary);
	--bs-pagination-hover-bg: var(--c-surface);
	--bs-pagination-active-bg: var(--c-primary);
	--bs-pagination-active-border-color: var(--c-primary);
	--bs-pagination-active-color: var(--c-primary-text);
	--bs-pagination-focus-box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-primary) 20%, transparent);
}
.list-group {
	--bs-list-group-border-color: var(--c-border);
	--bs-list-group-action-hover-bg: var(--c-surface);
	--bs-list-group-active-bg: var(--c-surface);
	--bs-list-group-active-border-color: var(--c-border);
	--bs-list-group-active-color: var(--c-primary);
}
.list-group-item.active { font-weight: 600; box-shadow: inset 3px 0 0 var(--c-primary); }

/* 4. Top bar -------------------------------------------------------------- */
#top {
	background: var(--c-surface);
	border-bottom: 1px solid var(--c-border);
	font-size: .85em;
}
#top .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 38px; }
#top ul.list-inline { margin: 0; display: flex; align-items: center; gap: 14px; }
#top .list-inline-item { margin: 0; }
#top .list-inline-item > a,
#top .list-inline-item .dropdown > a,
#top .list-inline-item .dropdown > span,
#top .btn-link { color: var(--c-muted); text-decoration: none; padding: 0; font-size: 1em; }
#top .list-inline-item > a:hover, #top .btn-link:hover { color: var(--c-text); }
#top form { margin: 0; }

/* 5. Header / search / cart ---------------------------------------------- */
.site-header { background: var(--c-header-bg); border-bottom: 1px solid var(--c-border); z-index: 1020; margin-bottom: 20px; }
.has-sticky-header .site-header { position: sticky; top: 0; }
.site-header.is-scrolled { box-shadow: var(--shadow-md); }
.header-inner {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: var(--gap);
	min-height: 76px;
	padding-top: 10px;
	padding-bottom: 10px;
}
#logo { margin: 0; text-align: left; }
#logo img { max-height: 56px; max-width: 220px; width: auto; }
.logo-text { font-size: 1.5em; font-weight: 750; color: var(--c-text); letter-spacing: -.01em; }
.logo-text:hover { text-decoration: none; color: var(--c-primary); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-link {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; border-radius: 50%;
	color: var(--c-text); font-size: 1.2em;
}
.icon-link.dropdown-toggle::after { display: none; }
.icon-link:hover, .icon-link:focus, .icon-link.show { background: var(--c-surface); color: var(--c-primary); text-decoration: none; }

#search { margin: 0; flex-wrap: nowrap; }
#search .form-control-lg {
	height: 44px; font-size: 1em; padding: 0 18px;
	border-radius: 999px 0 0 999px; background: var(--c-surface);
}
#search .btn-lg {
	height: 44px; padding: 0 18px; font-size: 1em; line-height: 1;
	border-radius: 0 999px 999px 0; border-left: 0; color: var(--c-muted); text-shadow: none;
}
#search .btn-lg:hover { color: var(--c-primary); }

#cart { margin: 0; }
#cart .btn-lg {
	height: 44px; padding: 0 18px; font-size: .95em; line-height: 1;
	border-radius: 999px; white-space: nowrap;
	--bs-btn-bg: var(--c-primary); --bs-btn-border-color: var(--c-primary); --bs-btn-color: var(--c-primary-text);
	--bs-btn-hover-bg: color-mix(in srgb, var(--c-primary) 85%, #000); --bs-btn-hover-border-color: color-mix(in srgb, var(--c-primary) 85%, #000); --bs-btn-hover-color: var(--c-primary-text);
	--bs-btn-active-bg: color-mix(in srgb, var(--c-primary) 78%, #000); --bs-btn-active-color: var(--c-primary-text);
}
#cart .dropdown-menu { background: var(--c-bg); min-width: 380px; }
#cart .dropdown-menu li { min-width: 0; }
#cart .img-thumbnail { min-width: 72px; border-radius: var(--radius); }
#cart .table > :not(caption) > * > * { border-color: var(--c-border); vertical-align: middle; }

@media (max-width: 767.98px) {
	.header-inner { grid-template-columns: 1fr auto; gap: 10px 12px; }
	.header-search { grid-column: 1 / -1; grid-row: 2; }
	#logo img { max-height: 44px; }
	/* Icon-only cart button on phones (the item count/total stays in the dropdown and cart page). */
	#cart .btn-lg { padding: 0; width: 44px; font-size: 0; justify-content: center; }
	#cart .btn-lg i { font-size: 1.05rem; }
	#cart .btn-lg.dropdown-toggle::after { display: none; }
	#cart .dropdown-menu { min-width: 0; width: calc(100vw - 32px); }
}

/* 6. Menu ------------------------------------------------------------------ */
#menu {
	background: transparent;
	border: 0;
	border-radius: 0;
	min-height: 0;
	padding: 0;
	margin: 0;
}
#menu .navbar-nav > li > a, #menu .navbar-nav > li > .nav-link {
	color: var(--c-text);
	font-weight: 600;
	padding: 12px 14px;
	background: transparent;
	text-shadow: none;
	border-bottom: 2px solid transparent;
}
#menu .navbar-nav > li > a:hover, #menu .navbar-nav > li > a:focus, #menu .navbar-nav > li > a.show {
	color: var(--c-primary); background: transparent; border-bottom-color: var(--c-primary); text-decoration: none;
}
#menu .dropdown-menu { border-top-left-radius: 0; border-top-right-radius: 0; padding: 12px 6px 6px; margin-top: 0; }
#menu .dropdown-inner { display: flex; flex-direction: column; }
#menu .dropdown-inner ul { width: 100%; min-width: 200px; margin: 0; }
#menu .dropdown-item { border-radius: var(--radius); padding: 6px 14px; }
#menu .see-all {
	display: block; margin-top: 8px; padding: 10px 14px;
	border-top: 1px solid var(--c-border); font-size: .9em; font-weight: 600; color: var(--c-primary);
}
#menu .see-all:hover { background: var(--c-surface); text-decoration: none; }
#category { float: left; font-size: 1em; font-weight: 700; line-height: 44px; color: var(--c-text); text-shadow: none; }
#menu .navbar-toggler { margin-left: auto; border: 1px solid var(--c-border); border-radius: var(--radius); padding: 6px 12px; }
#menu .navbar-toggler i { color: var(--c-text); font-size: 1em; }
@media (min-width: 992px) {
	#menu .dropdown:hover .dropdown-menu { display: block; }
	#menu .dropdown-inner { flex-direction: row; }
	#menu .nav-item + .nav-item + .nav-item .dropdown-column-3 { left: -200px; }
	#menu .nav-item + .nav-item + .nav-item .dropdown-column-4 { left: -400px; }
	#menu .nav-item + .nav-item + .nav-item + .nav-item .dropdown-column-2 { left: -200px; }
	#menu .nav-item + .nav-item + .nav-item + .nav-item .dropdown-column-3 { left: -400px; }
	#menu .nav-item + .nav-item + .nav-item + .nav-item .dropdown-column-4 { left: -600px; }
}
@media (max-width: 991.98px) {
	#menu { border-top: 1px solid var(--c-border); flex-wrap: wrap; }
	#menu .navbar-collapse { flex-basis: 100%; }
	#menu .navbar-nav > li > a { border-bottom: 1px solid var(--c-border); }
	#menu .dropdown-menu { box-shadow: none; border: 0; background: var(--c-surface); }
}

/* 7. Breadcrumb / alerts --------------------------------------------------- */
.breadcrumb { margin: 0 0 20px; padding: 0; border: 0; background: transparent; font-size: .875em; --bs-breadcrumb-divider-color: var(--c-border); }
.breadcrumb i { font-size: 1em; }
.breadcrumb > li.breadcrumb-item { padding: 0; text-shadow: none; white-space: nowrap; }
.breadcrumb > li.breadcrumb-item:after { display: none; }
.breadcrumb > li.breadcrumb-item + li:before { content: "/"; padding: 0 8px; color: var(--c-border); }
.breadcrumb > li.breadcrumb-item > a { color: var(--c-muted); }
.breadcrumb > li.breadcrumb-item > a:hover { color: var(--c-primary); }

#alert {
	position: fixed; z-index: 9999;
	top: 16px; right: 16px; left: 16px;
	max-width: 520px; margin-left: auto;
	pointer-events: none;
}
#alert .alert { pointer-events: auto; margin-bottom: 12px; box-shadow: var(--shadow-md); border-radius: var(--radius); }
.alert-success { --bs-alert-bg: color-mix(in srgb, var(--c-success) 10%, var(--c-bg)); --bs-alert-border-color: color-mix(in srgb, var(--c-success) 35%, var(--c-bg)); --bs-alert-color: var(--c-success); }
.alert-danger { --bs-alert-bg: color-mix(in srgb, var(--c-danger) 10%, var(--c-bg)); --bs-alert-border-color: color-mix(in srgb, var(--c-danger) 35%, var(--c-bg)); --bs-alert-color: var(--c-danger); }
.alert-warning { --bs-alert-bg: color-mix(in srgb, var(--c-warning) 10%, var(--c-bg)); --bs-alert-border-color: color-mix(in srgb, var(--c-warning) 35%, var(--c-bg)); --bs-alert-color: var(--c-warning); }
.alert-info { --bs-alert-bg: color-mix(in srgb, var(--c-primary) 8%, var(--c-bg)); --bs-alert-border-color: color-mix(in srgb, var(--c-primary) 25%, var(--c-bg)); --bs-alert-color: var(--c-text); }

/* 8. Product cards --------------------------------------------------------- */
.product-thumb {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--c-bg);
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	overflow: hidden;
	transition: box-shadow .2s var(--ease), border-color .2s;
}
.product-thumb:hover { box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--c-border) 60%, var(--c-primary)); }
.product-thumb .image { text-align: center; padding: 12px; }
.product-thumb .image a:hover { opacity: 1; }
.product-thumb .image img { transition: transform .35s var(--ease); }
.product-thumb:hover .image img { transform: scale(1.03); }
.product-thumb .content { display: flex; flex-direction: column; flex: 1 1 auto; }
.product-thumb form { display: flex; flex-direction: column; flex: 1 1 auto; }
.product-thumb .description { padding: 4px 16px 14px; margin-bottom: 0; flex: 1 1 auto; }
.product-thumb .description h4 { font-size: 1em; font-weight: 600; margin: 4px 0 6px; line-height: 1.35; }
.product-thumb .description h4 a { color: var(--c-text); }
.product-thumb .description h4 a:hover { color: var(--c-primary); }
.product-thumb .description > p { color: var(--c-muted); font-size: .9em; }
.product-thumb .button {
	position: static;
	display: flex;
	width: 100%;
	margin-top: auto;
	border-top: 1px solid var(--c-border);
}
.product-thumb .button button {
	flex: 1 1 0;
	width: auto;
	border: 0;
	background: var(--c-bg);
	color: var(--c-muted);
	line-height: 44px;
	text-align: center;
}
.product-thumb .button button:first-child { flex: 2 1 0; background: var(--c-primary); color: var(--c-primary-text); }
.product-thumb .button button:first-child:hover { background: color-mix(in srgb, var(--c-primary) 85%, #000); color: var(--c-primary-text); }
.product-thumb .button button + button { border-left: 1px solid var(--c-border); }
.product-thumb .button button:hover { color: var(--c-primary); background: var(--c-surface); cursor: pointer; }
@media (min-width: 960px) {
	.product-list .product-thumb { flex-direction: row; }
	.product-list .product-thumb .image { flex: 0 0 260px; padding: 16px; }
	.product-list .product-thumb .content { flex: 1 1 0; position: relative; }
	.product-list .product-thumb .button { width: 100%; margin-left: 0; border-left: 0; }
}

.rating .fa-stack { width: 18px; }
.rating .fa-star { color: var(--c-border); font-size: 14px; }
.rating .fa-solid.fa-star { color: #f5a524; }
.rating .fa-solid.fa-star + .fa-regular.fa-star { color: #e69500; }

.price { color: var(--c-text); font-weight: 700; font-size: 1.1em; }
.price-new { color: var(--c-text); font-weight: 700; }
.price-old + .price-new, .price-new:has(+ .price-old) { color: var(--c-accent); }
.price-old { color: var(--c-muted); text-decoration: line-through; font-weight: 400; font-size: .85em; margin-left: 6px; }
.price-tax { color: var(--c-muted); font-size: .75em; font-weight: 400; display: block; }

/* 9. Blog / lists ---------------------------------------------------------- */
.blog-thumb { border: 1px solid var(--c-border); border-radius: var(--radius); margin-bottom: 16px; overflow: hidden; }
.blog-thumb h4 { font-weight: 650; }
.blog-thumb .image { text-align: center; margin-bottom: 12px; }
.blog-thumb .image a:hover { opacity: .9; }
.blog-thumb .description { padding: 16px; }
.card { --bs-card-border-color: var(--c-border); --bs-card-border-radius: var(--radius); --bs-card-cap-bg: var(--c-surface); }
.table { --bs-table-border-color: var(--c-border); }
.img-thumbnail { border-color: var(--c-border); border-radius: var(--radius); }

/* 10. Modules -------------------------------------------------------------- */
.carousel { border-radius: var(--radius); overflow: hidden; margin-bottom: var(--gap); }
.carousel-indicators [data-bs-target] { background-color: var(--c-primary); }
#list-view.active, #grid-view.active { background: var(--c-surface); color: var(--c-primary); }

/* 11. Product page --------------------------------------------------------- */
#product-info h1 { font-size: 1.7em; margin-top: 0; }
#product-info .price-new { font-size: 1.6em; }
#product-info #button-cart { padding: 12px 20px; font-size: 1.05em; }
.image.magnific-popup .img-thumbnail { padding: 8px; }
.image.magnific-popup a:hover .img-thumbnail { border-color: var(--c-primary); }

/* 12. Utilities ------------------------------------------------------------ */
.back-to-top {
	position: fixed; right: 18px; bottom: 18px; z-index: 1030;
	width: 44px; height: 44px; border-radius: 50%;
	border: 1px solid var(--c-border); background: var(--c-bg); color: var(--c-text);
	box-shadow: var(--shadow-md); cursor: pointer;
}
.back-to-top:hover { color: var(--c-primary); }
.back-to-top[hidden] { display: none; }

/* 13. Footer --------------------------------------------------------------- */
.site-footer {
	position: static;
	background: var(--c-footer-bg);
	color: var(--c-footer-text);
	border: 0;
	padding: 48px 0 24px;
}
.site-footer a { color: var(--c-footer-text); opacity: .8; text-decoration: none; }
.site-footer a:hover, .site-footer a:focus { opacity: 1; color: var(--c-footer-text); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--gap); }
.footer-title { font-size: .8em; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--c-footer-text); margin: 0 0 14px; }
.site-footer li { padding: 3px 0; }
.footer-note { margin-top: 32px; font-size: .9em; opacity: .85; }
.footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid color-mix(in srgb, var(--c-footer-text) 15%, transparent); font-size: .85em; opacity: .7; }

/* 14. Cookie bar ----------------------------------------------------------- */
#cookie {
	position: fixed; bottom: 0; left: 0; width: 100%; z-index: 9999;
	color: var(--c-footer-text); background: var(--c-footer-bg);
	box-shadow: 0 -6px 20px rgba(0, 0, 0, .15);
}
#cookie div { font-size: .95em; color: var(--c-footer-text); }

/* 15. RTL / print ---------------------------------------------------------- */
html[dir=rtl] #search .form-control-lg { border-radius: 0 999px 999px 0; }
html[dir=rtl] #search .btn-lg { border-radius: 999px 0 0 999px; border-left: 1px solid var(--c-border); border-right: 0; }
html[dir=rtl] #logo { text-align: right; }
html[dir=rtl] .back-to-top { right: auto; left: 18px; }
html[dir=rtl] #alert { margin-left: 0; margin-right: auto; }
@media print {
	#top, .site-header, .site-footer, .back-to-top, .breadcrumb, .product-thumb .button, #cookie { display: none !important; }
	body { font-size: 12pt; color: #000; background: #fff; }
}

/* ==========================================================================
   16. Admin-controlled options (body classes + variables set by the theme)
   ========================================================================== */

/* Headings font */
h1, h2, h3, h4, h5, h6, .logo-text, .hero-title, .footer-title { font-family: var(--font-heading, var(--font-body)); }

/* Button shape */
.btn-pill .btn, .btn-pill #cart .btn-lg { border-radius: 999px; }
.btn-square .btn, .btn-square #cart .btn-lg, .btn-square #search .form-control-lg, .btn-square #search .btn-lg { border-radius: 0; }
.btn-rounded #cart .btn-lg { border-radius: var(--radius); }

/* Announcement bar */
.announce-bar { background: var(--c-announce-bg); color: var(--c-announce-text); text-align: center; font-size: .9em; font-weight: 600; padding: 8px 0; }
.announce-bar a { color: var(--c-announce-text); text-decoration: underline; text-underline-offset: 3px; }

/* Header: centred logo */
@media (min-width: 768px) {
	.header-center .header-inner { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
	.header-center .header-logo { grid-column: 2; grid-row: 1; text-align: center; }
	.header-center .header-search { grid-column: 1; grid-row: 1; max-width: 360px; }
	.header-center .header-actions { grid-column: 3; justify-self: end; }
}

/* Menu alignment */
@media (min-width: 992px) {
	.menu-center #menu .navbar-collapse { justify-content: center; }
}

/* Products per row (desktop) — applies to category, search and module grids */
@media (min-width: 1200px) {
	.row[class*="row-cols-"]:has(> .col > .product-thumb) > * { flex: 0 0 auto; width: calc(100% / var(--cards, 4)); }
	#column-left ~ #content .row[class*="row-cols-"]:has(> .col > .product-thumb) > *,
	#content:has(~ #column-right) .row[class*="row-cols-"]:has(> .col > .product-thumb) > * { width: calc(100% / max(2, var(--cards, 4) - 1)); }
}
.row[class*="row-cols-"]:has(> .col > .product-thumb) > * { margin-bottom: var(--gap); }

/* Card photo fit */
.img-cover .product-thumb .image { padding: 0; aspect-ratio: 1 / 1; overflow: hidden; }
.img-cover .product-thumb .image a, .img-cover .product-thumb .image img { display: block; width: 100%; height: 100%; }
.img-cover .product-thumb .image img { object-fit: cover; }

/* Card hover lift */
.card-lift .product-thumb:hover { transform: translateY(-3px); }

/* Sale badge */
.product-thumb .image { position: relative; }
.badge-sale {
	position: absolute; top: 10px; left: 10px; z-index: 2;
	background: var(--c-accent); color: #fff;
	font-size: .75em; font-weight: 700; letter-spacing: .02em;
	padding: 4px 10px; border-radius: 999px;
}
html[dir=rtl] .badge-sale { left: auto; right: 10px; }
.price-sale { color: var(--c-accent); }

/* Card button with label */
.product-thumb .button .btn-cart span { font-weight: 600; margin-left: 4px; }

/* Hero banner */
.hero { position: relative; overflow: hidden; background: var(--c-surface); margin: -20px 0 var(--gap); display: flex; align-items: center; }
.hero-small { min-height: 260px; }
.hero-medium { min-height: 420px; }
.hero-large { min-height: 600px; }
@media (max-width: 767.98px) { .hero-medium, .hero-large { min-height: 340px; } }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero.has-image.hero-light::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,.15)); }
.hero.has-image.hero-dark::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,.7), rgba(255,255,255,.1)); }
.hero-align-center.has-image::after { background: rgba(0,0,0,.4) !important; }
.hero-align-center.hero-dark.has-image::after { background: rgba(255,255,255,.55) !important; }
.hero-inner { position: relative; z-index: 1; padding-top: 48px; padding-bottom: 48px; }
.hero-content { max-width: 620px; }
.hero-align-center .hero-content { margin: 0 auto; text-align: center; }
.hero-title { font-size: clamp(1.8em, 4vw, 3em); font-weight: 750; line-height: 1.1; margin: 0 0 .4em; }
.hero-text { font-size: 1.15em; margin: 0 0 1.4em; }
.hero.has-image.hero-light .hero-title, .hero.has-image.hero-light .hero-text { color: #fff; }
.hero.has-image.hero-dark .hero-title, .hero.has-image.hero-dark .hero-text { color: #111; }
.hero:not(.has-image) .hero-title { color: var(--c-text); }
.hero:not(.has-image) .hero-text { color: var(--c-muted); }

/* Benefits strip */
.features { border-bottom: 1px solid var(--c-border); margin: -4px 0 var(--gap); }
.features-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px var(--gap); margin: 0; padding: 18px 0; }
.feature { display: flex; align-items: center; gap: 14px; }
.feature-icon {
	flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
	width: 46px; height: 46px; border-radius: 50%;
	background: color-mix(in srgb, var(--c-primary) 12%, var(--c-bg)); color: var(--c-primary); font-size: 1.15em;
}
.feature-title { display: block; font-weight: 700; }
.feature-text { display: block; color: var(--c-muted); font-size: .9em; }

/* Social links */
.social-links { margin: 14px 0 0; display: flex; gap: 10px; }
.social-links .list-inline-item { margin: 0; }
.social-links a {
	display: inline-flex; align-items: center; justify-content: center;
	width: 38px; height: 38px; border-radius: 50%;
	border: 1px solid color-mix(in srgb, var(--c-footer-text) 30%, transparent); font-size: 1em; opacity: .85;
}
.social-links a:hover { opacity: 1; text-decoration: none; background: color-mix(in srgb, var(--c-footer-text) 12%, transparent); }
