/* ===============================================================
   StoreCore - main stylesheet
   ---------------------------------------------------------------
   Structure:
     1. Tokens (CSS variables)
     2. Reset & base
     3. Layout
     4. Header & navigation
     5. Content: cards, entry, meta
     6. Sidebar & widgets
     7. Footer
     8. Forms, buttons, comments
     9. Pagination & misc
    10. Elementor compatibility
    11. Responsive

   Change a token in section 1 and the whole theme follows.
   Values marked with fallbacks are overridden live by the Customizer.
   =============================================================== */

/* 1. Tokens ---------------------------------------------------- */
:root {
	--sc-color-primary: #d4362a;
	--sc-color-primary-dark: #b32a20;
	--sc-color-text: #1f2329;
	--sc-color-muted: #777f8a;
	--sc-color-bg: #ffffff;
	--sc-color-surface: #f6f7f9;
	--sc-color-border: #e4e6eb;

	--sc-color-sale: #1aa15b;

	--sc-header-bg: #ffffff;
	--sc-header-text: #1f2329;
	--sc-header-height: 84px;
	--sc-topbar-bg: #1f2329;
	--sc-topbar-text: #ffffff;
	--sc-footer-bg: #16191d;
	--sc-footer-text: #c7ccd2;
	--sc-footer-heading: #ffffff;
	--sc-logo-width: 150px;
	--sc-heading-weight: 700;
	--sc-shop-cols: 4;

	--sc-container: 1280px;
	--sc-content-width: 800px;
	--sc-gutter: 24px;

	--sc-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hind Siliguri", "Noto Sans Bengali", Helvetica, Arial, sans-serif;
	--sc-font-heading: var(--sc-font-body);
	--sc-font-size: 16px;
	--sc-line-height: 1.7;

	--sc-radius: 4px;
	--sc-space: 1rem;
	--sc-section-gap: 3rem;
	--sc-transition: 160ms ease;
}

/* 2. Reset & base ---------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--sc-color-bg);
	color: var(--sc-color-text);
	font-family: var(--sc-font-body);
	font-size: var(--sc-font-size);
	line-height: var(--sc-line-height);
	-webkit-font-smoothing: antialiased;
}

img,
svg,
video,
iframe {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--sc-color-primary);
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
	transition: color var(--sc-transition);
}

a:hover {
	color: var(--sc-color-primary-dark);
}

:focus-visible {
	outline: 2px solid var(--sc-color-primary);
	outline-offset: 2px;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--sc-font-heading);
	line-height: 1.25;
	margin: 0 0 0.6em;
	font-weight: var(--sc-heading-weight, 700);
	letter-spacing: -0.011em;
}

h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }

p, ul, ol, table, pre, blockquote, figure {
	margin: 0 0 1.25rem;
}

blockquote {
	border-left: 3px solid var(--sc-color-primary);
	padding: 0.25rem 0 0.25rem 1.25rem;
	color: var(--sc-color-muted);
	font-size: 1.05em;
}

code, pre {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.9em;
}

pre {
	background: var(--sc-color-surface);
	border: 1px solid var(--sc-color-border);
	border-radius: var(--sc-radius);
	padding: 1rem;
	overflow-x: auto;
}

table {
	width: 100%;
	border-collapse: collapse;
}

th, td {
	border: 1px solid var(--sc-color-border);
	padding: 0.6rem 0.75rem;
	text-align: left;
}

hr {
	border: 0;
	border-top: 1px solid var(--sc-color-border);
	margin: var(--sc-section-gap) 0;
}

/* 3. Layout ---------------------------------------------------- */
.sc-site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.sc-content {
	flex: 1 0 auto;
}

.sc-container {
	width: 100%;
	max-width: var(--sc-container);
	margin: 0 auto;
	padding-left: var(--sc-gutter);
	padding-right: var(--sc-gutter);
}

.sc-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 3rem;
	padding-top: var(--sc-section-gap);
	padding-bottom: var(--sc-section-gap);
}

.sc-no-sidebar .sc-layout,
.sc-sidebar-none .sc-layout,
.sc-layout--full {
	grid-template-columns: minmax(0, 1fr);
}

.sc-sidebar-left .sc-layout {
	grid-template-columns: 320px minmax(0, 1fr);
}

.sc-sidebar-left .sc-sidebar {
	order: -1;
}

.sc-layout--stretch {
	max-width: none;
	padding: 0;
	display: block;
}

/* Readable measure for prose inside pages/posts */
.sc-layout--full .sc-entry__content > *:not(.alignwide):not(.alignfull):not([class*="wp-block-"]) {
	max-width: var(--sc-content-width);
}

/* 4. Header & navigation --------------------------------------- */
.sc-header {
	background: var(--sc-header-bg);
	border-bottom: 1px solid var(--sc-color-border);
}

.sc-header-sticky .sc-header {
	position: sticky;
	top: 0;
	z-index: 100;
}

.sc-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	min-height: 72px;
	padding-top: 0.75rem;
	padding-bottom: 0.75rem;
}

.sc-header-center .sc-header__inner {
	flex-direction: column;
	text-align: center;
	gap: 0.75rem;
}

.sc-branding__title {
	margin: 0;
	font-size: 1.3rem;
	font-weight: 700;
	line-height: 1.2;
}

.sc-branding__title a {
	color: inherit;
	text-decoration: none;
}

.sc-branding__desc {
	margin: 0.15rem 0 0;
	font-size: 0.85rem;
	color: var(--sc-color-muted);
}

.custom-logo {
	max-height: 52px;
	width: auto;
}

.sc-menu,
.sc-submenu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sc-menu {
	display: flex;
	align-items: center;
	gap: 1.75rem;
}

.sc-menu a {
	color: var(--sc-color-text);
	text-decoration: none;
	font-size: 0.97rem;
	font-weight: 500;
	padding: 0.35rem 0;
	display: inline-block;
	border-bottom: 2px solid transparent;
}

.sc-menu a:hover,
.sc-menu .current-menu-item > a {
	color: var(--sc-color-primary);
	border-bottom-color: var(--sc-color-primary);
}

.sc-menu li {
	position: relative;
}

.sc-submenu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 210px;
	background: var(--sc-color-bg);
	border: 1px solid var(--sc-color-border);
	border-radius: var(--sc-radius);
	padding: 0.4rem 0;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity var(--sc-transition), transform var(--sc-transition), visibility var(--sc-transition);
	z-index: 50;
}

.sc-menu li:hover > .sc-submenu,
.sc-menu li:focus-within > .sc-submenu,
.sc-menu li.is-open > .sc-submenu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.sc-submenu a {
	display: block;
	padding: 0.5rem 1rem;
	border-bottom: 0;
	width: 100%;
}

.sc-submenu .sc-submenu {
	top: 0;
	left: 100%;
}

.sc-submenu-toggle {
	display: none;
	background: none;
	border: 0;
	color: inherit;
	cursor: pointer;
	padding: 0.5rem;
}

.sc-nav-toggle {
	display: none;
	width: 44px;
	height: 44px;
	border: 1px solid var(--sc-color-border);
	border-radius: var(--sc-radius);
	background: transparent;
	cursor: pointer;
	position: relative;
}

.sc-nav-toggle__bar,
.sc-nav-toggle__bar::before,
.sc-nav-toggle__bar::after {
	position: absolute;
	left: 50%;
	width: 20px;
	height: 2px;
	background: var(--sc-color-text);
	transform: translateX(-50%);
	transition: transform var(--sc-transition), opacity var(--sc-transition);
}

.sc-nav-toggle__bar { top: 50%; margin-top: -1px; }
.sc-nav-toggle__bar::before { content: ""; top: -6px; }
.sc-nav-toggle__bar::after { content: ""; top: 6px; }

.sc-nav-toggle[aria-expanded="true"] .sc-nav-toggle__bar { background: transparent; }
.sc-nav-toggle[aria-expanded="true"] .sc-nav-toggle__bar::before { transform: translateX(-50%) translateY(6px) rotate(45deg); }
.sc-nav-toggle[aria-expanded="true"] .sc-nav-toggle__bar::after { transform: translateX(-50%) translateY(-6px) rotate(-45deg); }

/* 5. Content --------------------------------------------------- */
.sc-page-header {
	margin-bottom: 2.5rem;
}

.sc-page-header__title {
	margin-bottom: 0.4rem;
}

.sc-page-header__desc {
	color: var(--sc-color-muted);
}

.sc-posts {
	display: grid;
	gap: 2.5rem;
}

.sc-card {
	display: grid;
	grid-template-columns: 300px minmax(0, 1fr);
	gap: 1.75rem;
	align-items: start;
}

.sc-card:only-child,
.sc-card.sticky {
	grid-template-columns: minmax(0, 1fr);
}

.sc-thumb {
	display: block;
	margin: 0;
	overflow: hidden;
	border-radius: var(--sc-radius);
}

.sc-thumb img {
	display: block;
	width: 100%;
	object-fit: cover;
	transition: transform 320ms ease;
}

.sc-card:hover .sc-thumb img {
	transform: scale(1.03);
}

.sc-thumb--single {
	margin-bottom: 2rem;
	border-radius: var(--sc-radius);
}

.sc-card__title {
	font-size: 1.4rem;
	margin-bottom: 0.4rem;
}

.sc-card__title a {
	color: inherit;
	text-decoration: none;
}

.sc-card__title a:hover {
	color: var(--sc-color-primary);
}

.sc-card__excerpt {
	color: var(--sc-color-muted);
}

.sc-meta {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	font-size: 0.85rem;
	color: var(--sc-color-muted);
	margin-bottom: 0.85rem;
}

.sc-meta a {
	color: inherit;
}

.sc-meta__sep {
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: currentColor;
	opacity: 0.5;
}

.sc-entry__header {
	margin-bottom: 2rem;
}

.sc-entry__title {
	margin-bottom: 0.75rem;
}

.sc-entry__content > * {
	margin-bottom: 1.35rem;
}

.sc-entry-footer {
	margin-top: 2.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--sc-color-border);
	font-size: 0.9rem;
	color: var(--sc-color-muted);
}

.sc-entry-footer p {
	margin: 0 0 0.35rem;
}

.sc-breadcrumb {
	font-size: 0.85rem;
	color: var(--sc-color-muted);
	margin-bottom: 1rem;
}

.sc-breadcrumb__sep {
	margin: 0 0.45rem;
	opacity: 0.6;
}

.sc-postnav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem;
	margin-top: 3rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--sc-color-border);
}

.sc-postnav .nav-next {
	text-align: right;
}

.sc-postnav a {
	text-decoration: none;
	display: block;
}

.sc-postnav__label {
	display: block;
	font-size: 0.8rem;
	color: var(--sc-color-muted);
	margin-bottom: 0.2rem;
}

.sc-postnav__title {
	font-weight: 600;
}

.sc-404 {
	text-align: center;
	padding: 4rem 0;
}

.sc-404__code {
	font-size: clamp(4rem, 12vw, 7rem);
	line-height: 1;
	margin-bottom: 0.5rem;
	color: var(--sc-color-primary);
}

.sc-404 .sc-searchform {
	max-width: 420px;
	margin: 1.5rem auto;
}

.sc-none {
	padding: 2rem 0;
}

/* 6. Sidebar & widgets ----------------------------------------- */
.sc-sidebar {
	align-self: start;
	position: sticky;
	top: 96px;
}

.sc-widget {
	margin-bottom: 2.25rem;
}

.sc-widget:last-child {
	margin-bottom: 0;
}

.sc-widget__title {
	font-size: 1rem;
	font-weight: 650;
	margin-bottom: 0.85rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid var(--sc-color-border);
}

.sc-widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sc-widget li {
	padding: 0.35rem 0;
	font-size: 0.95rem;
}

.sc-widget a {
	text-decoration: none;
	color: var(--sc-color-text);
}

.sc-widget a:hover {
	color: var(--sc-color-primary);
}

/* 7. Footer ---------------------------------------------------- */
.sc-footer {
	background: var(--sc-footer-bg);
	color: var(--sc-footer-text);
	margin-top: auto;
}

.sc-footer a {
	color: inherit;
}

.sc-footer a:hover {
	color: #fff;
}

.sc-footer__widgets {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 2.5rem;
	padding-top: 3.5rem;
	padding-bottom: 2.5rem;
}

.sc-footer .sc-widget__title {
	color: #fff;
	border-bottom-color: rgba(255, 255, 255, 0.15);
}

.sc-footer__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-top: 1.5rem;
	padding-bottom: 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	font-size: 0.9rem;
}

.sc-footer__widgets + .sc-footer__bar {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.sc-footer__text {
	margin: 0;
}

.sc-footer__menu {
	display: flex;
	list-style: none;
	gap: 1.25rem;
	margin: 0;
	padding: 0;
}

.sc-footer__menu a {
	text-decoration: none;
}

/* 8. Forms, buttons, comments ---------------------------------- */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="date"],
select,
textarea {
	width: 100%;
	padding: 0.65rem 0.85rem;
	font: inherit;
	font-size: 0.95rem;
	color: var(--sc-color-text);
	background: var(--sc-color-bg);
	border: 1px solid var(--sc-color-border);
	border-radius: var(--sc-radius);
	transition: border-color var(--sc-transition), box-shadow var(--sc-transition);
}

input:focus,
select:focus,
textarea:focus {
	border-color: var(--sc-color-primary);
	box-shadow: 0 0 0 3px rgba(31, 78, 216, 0.12);
	outline: none;
}

.sc-btn,
button,
input[type="submit"],
.wp-block-button__link {
	display: inline-block;
	padding: 0.7rem 1.35rem;
	font: inherit;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.2;
	color: #fff;
	background: var(--sc-color-primary);
	border: 0;
	border-radius: var(--sc-radius);
	cursor: pointer;
	text-decoration: none;
	transition: background var(--sc-transition);
}

.sc-btn:hover,
button:hover,
input[type="submit"]:hover {
	background: var(--sc-color-primary-dark);
	color: #fff;
}

.sc-btn--text {
	background: none;
	color: var(--sc-color-primary);
	padding: 0;
	font-size: 0.92rem;
}

.sc-btn--text:hover {
	background: none;
	color: var(--sc-color-primary-dark);
	text-decoration: underline;
}

.sc-searchform {
	display: flex;
	gap: 0.5rem;
}

.sc-searchform__submit {
	flex-shrink: 0;
}

.sc-comments {
	margin-top: 3.5rem;
	padding-top: 2rem;
	border-top: 1px solid var(--sc-color-border);
}

.sc-comments__list,
.sc-comments__list .children {
	list-style: none;
	padding: 0;
}

.sc-comments__list .children {
	margin-left: 1.5rem;
	padding-left: 1.5rem;
	border-left: 1px solid var(--sc-color-border);
}

.sc-comments__list .comment-body {
	padding: 1.25rem 0;
	border-bottom: 1px solid var(--sc-color-border);
}

.sc-comments__list .avatar {
	border-radius: 50%;
	margin-right: 0.75rem;
	vertical-align: middle;
}

.comment-meta {
	font-size: 0.85rem;
	color: var(--sc-color-muted);
	margin-bottom: 0.5rem;
}

.comment-form label {
	display: block;
	font-size: 0.9rem;
	font-weight: 500;
	margin-bottom: 0.3rem;
}

.comment-form p {
	margin-bottom: 1rem;
}

/* 9. Pagination & misc ----------------------------------------- */
.pagination,
.navigation.pagination {
	margin-top: 3rem;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 0.6rem;
	border: 1px solid var(--sc-color-border);
	border-radius: var(--sc-radius);
	text-decoration: none;
	color: var(--sc-color-text);
	font-size: 0.9rem;
}

.page-numbers:hover,
.page-numbers.current {
	background: var(--sc-color-primary);
	border-color: var(--sc-color-primary);
	color: #fff;
}

.sc-page-links {
	margin-top: 1.5rem;
	font-size: 0.9rem;
}

/* 10. Elementor compatibility ---------------------------------- */
/* Elementor pages should not inherit the theme's inner padding. */
.sc-elementor-page .sc-layout--full,
.sc-elementor-page .sc-layout {
	padding-top: 0;
	padding-bottom: 0;
	max-width: none;
	padding-left: 0;
	padding-right: 0;
	display: block;
}

.sc-elementor-page .sc-entry__content > * {
	margin-bottom: 0;
	max-width: none;
}

/* Elementor Canvas template: hide theme chrome if it ever leaks in. */
.elementor-template-canvas .sc-header,
.elementor-template-canvas .sc-footer {
	display: none;
}

/* Let Elementor's own container widths win. */
.elementor-section.elementor-section-boxed > .elementor-container,
.e-con {
	max-width: var(--sc-container);
}

/* 11. Responsive ----------------------------------------------- */
@media (max-width: 1024px) {
	.sc-layout,
	.sc-sidebar-left .sc-layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 2.5rem;
	}

	.sc-sidebar {
		position: static;
	}

	.sc-sidebar-left .sc-sidebar {
		order: 0;
	}
}

@media (max-width: 782px) {
	:root {
		--sc-section-gap: 2.25rem;
	}

	.sc-nav-toggle {
		display: block;
	}

	.sc-header-center .sc-header__inner {
		flex-direction: row;
		text-align: left;
	}

	.sc-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--sc-header-bg);
		border-bottom: 1px solid var(--sc-color-border);
		box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
		padding: 0.5rem var(--sc-gutter) 1rem;
		max-height: calc(100vh - 72px);
		overflow-y: auto;
	}

	.sc-nav.is-open {
		display: block;
	}

	.sc-header {
		position: relative;
	}

	.sc-menu {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.sc-menu > li {
		border-bottom: 1px solid var(--sc-color-border);
	}

	.sc-menu > li:last-child {
		border-bottom: 0;
	}

	.sc-menu a {
		padding: 0.85rem 0;
		border-bottom: 0;
	}

	.sc-submenu-toggle {
		display: block;
		position: absolute;
		top: 0.4rem;
		right: 0;
	}

	.sc-submenu-toggle[aria-expanded="true"] .sc-caret {
		transform: rotate(180deg);
	}

	.sc-submenu {
		position: static;
		display: none;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		border: 0;
		border-left: 2px solid var(--sc-color-border);
		border-radius: 0;
		padding: 0 0 0.5rem 1rem;
		margin-bottom: 0.5rem;
	}

	.sc-menu li.is-open > .sc-submenu {
		display: block;
	}

	.sc-card {
		grid-template-columns: minmax(0, 1fr);
		gap: 1rem;
	}

	.sc-postnav {
		grid-template-columns: 1fr;
	}

	.sc-postnav .nav-next {
		text-align: left;
	}

	.sc-footer__bar {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ===============================================================
   12. StoreCore additions - topbar, header presets, chrome
   =============================================================== */

/* Boxed layout */
.sc-boxed .sc-site {
	max-width: calc(var(--sc-container) + 120px);
	margin: 0 auto;
	background: var(--sc-color-bg);
	box-shadow: 0 0 40px rgba(15, 23, 42, 0.07);
}

/* --- Top bar --- */
.sc-topbar {
	background: var(--sc-topbar-bg);
	color: var(--sc-topbar-text);
	font-size: 0.82rem;
}

.sc-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 38px;
	padding-top: 0.35rem;
	padding-bottom: 0.35rem;
}

.sc-topbar a {
	color: inherit;
	text-decoration: none;
	opacity: 0.85;
}

.sc-topbar a:hover {
	opacity: 1;
	color: inherit;
}

.sc-topbar__menu {
	display: flex;
	list-style: none;
	gap: 1.25rem;
	margin: 0;
	padding: 0;
}

/* --- Header shell --- */
.sc-header {
	background: var(--sc-header-bg);
	color: var(--sc-header-text);
	border-bottom: 1px solid var(--sc-color-border);
	position: relative;
	z-index: 90;
}

.sc-header__inner {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	min-height: var(--sc-header-height);
}

.sc-header__right {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-left: auto;
}

.sc-header__phone {
	font-size: 0.88rem;
	font-weight: 600;
	white-space: nowrap;
	margin-right: 0.5rem;
}

.sc-header__row--nav {
	border-top: 1px solid var(--sc-color-border);
}

.sc-header__row--nav > .sc-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	min-height: 52px;
}

.sc-logo {
	display: block;
	width: var(--sc-logo-width);
	height: auto;
}

.sc-logo--mobile {
	display: none;
}

.sc-branding__logo {
	display: inline-block;
	line-height: 0;
}

.sc-branding__title a {
	color: inherit;
}

/* sticky */
.sc-sticky-header .sc-header {
	position: sticky;
	top: 0;
}

.sc-sticky-header.sc-scrolled .sc-header {
	box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
}

.sc-sticky-header.sc-scrolled .sc-header__row--main {
	padding-top: 0;
}

/* transparent on front page */
.sc-transparent-header .sc-header {
	position: absolute;
	inset: auto 0 auto 0;
	background: transparent;
	border-bottom-color: rgba(255, 255, 255, 0.2);
}

.sc-transparent-header.sc-scrolled .sc-header {
	position: fixed;
	background: var(--sc-header-bg);
}

/* --- Header presets --- */
.sc-header--centered .sc-header__inner,
.sc-header--split .sc-header__inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
}

.sc-header--centered .sc-header__side--right,
.sc-header--split .sc-header__right {
	justify-content: flex-end;
}

.sc-header--centered .sc-branding,
.sc-header--split .sc-branding {
	text-align: center;
}

.sc-nav--center .sc-menu {
	justify-content: center;
}

.sc-header--shop .sc-header__search {
	flex: 1 1 auto;
	max-width: 620px;
}

.sc-header--shop .sc-header__inner {
	gap: 2rem;
}

.sc-header--minimal .sc-nav--drawer {
	display: none;
}

.sc-header--minimal .sc-nav--drawer.is-open {
	display: block;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: var(--sc-header-bg);
	border-bottom: 1px solid var(--sc-color-border);
	padding: 0.5rem var(--sc-gutter) 1rem;
}

.sc-header--minimal .sc-nav-toggle,
.sc-header--minimal .sc-menu {
	display: block;
}

.sc-header--minimal .sc-nav--drawer .sc-menu {
	flex-direction: column;
	gap: 0;
}

/* --- Icon buttons --- */
.sc-header__icons {
	display: flex;
	align-items: center;
	gap: 0.25rem;
}

.sc-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border: 0;
	background: none;
	color: inherit;
	border-radius: var(--sc-radius);
	cursor: pointer;
	position: relative;
	padding: 0;
	text-decoration: none;
}

.sc-icon-btn:hover {
	background: rgba(0, 0, 0, 0.05);
	color: var(--sc-color-primary);
}

.sc-cart-link__count {
	position: absolute;
	top: 4px;
	right: 2px;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	border-radius: 999px;
	background: var(--sc-color-primary);
	color: #fff;
	font-size: 0.68rem;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
}

/* --- Search panel --- */
.sc-search-panel {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: var(--sc-header-bg);
	border-bottom: 1px solid var(--sc-color-border);
	padding: 1.25rem 0;
	box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
	z-index: 95;
}

.sc-searchform--big .sc-searchform__input {
	height: 48px;
	font-size: 1rem;
}

.sc-searchform--big .sc-searchform__submit {
	height: 48px;
	padding-left: 1.75rem;
	padding-right: 1.75rem;
}

/* --- Page title bar --- */
.sc-page-title {
	background: var(--sc-color-surface);
	padding: 2.25rem 0;
	margin-bottom: var(--sc-section-gap);
	border-bottom: 1px solid var(--sc-color-border);
}

.sc-page-title__heading {
	margin: 0 0 0.35rem;
	font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
}

.sc-page-title .sc-breadcrumb,
.sc-page-title .woocommerce-breadcrumb {
	margin: 0;
	font-size: 0.85rem;
	color: var(--sc-color-muted);
}

.sc-page-title .woocommerce-breadcrumb a {
	color: inherit;
}

/* --- Overlay, modal, to-top --- */
.sc-overlay {
	position: fixed;
	inset: 0;
	background: rgba(12, 16, 22, 0.5);
	z-index: 190;
}

.sc-modal {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
	background: rgba(12, 16, 22, 0.55);
}

.sc-modal__inner {
	position: relative;
	background: var(--sc-color-bg);
	border-radius: var(--sc-radius);
	max-width: 880px;
	width: 100%;
	max-height: 88vh;
	overflow-y: auto;
	padding: 2rem;
}

.sc-modal__close {
	position: absolute;
	top: 8px;
	right: 12px;
	background: none;
	border: 0;
	font-size: 1.8rem;
	line-height: 1;
	cursor: pointer;
	color: var(--sc-color-muted);
	padding: 0.25rem 0.5rem;
}

.sc-modal__close:hover {
	background: none;
	color: var(--sc-color-text);
}

.sc-modal__loading {
	text-align: center;
	color: var(--sc-color-muted);
	padding: 3rem 0;
}

.sc-to-top {
	position: fixed;
	right: 18px;
	bottom: 18px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--sc-color-text);
	color: #fff;
	border: 0;
	display: none;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 120;
	padding: 0;
}

.sc-to-top.is-visible {
	display: flex;
}

.sc-to-top:hover {
	background: var(--sc-color-primary);
}

/* --- Footer extras --- */
.sc-footer .sc-widget__title {
	color: var(--sc-footer-heading);
}

.sc-footer__widgets {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 2.5rem;
	padding-top: 3.5rem;
	padding-bottom: 2.5rem;
}

.sc-footer__logo {
	max-width: 160px;
	height: auto;
	margin-bottom: 1rem;
}

.sc-footer__about {
	font-size: 0.92rem;
	opacity: 0.85;
}

.sc-footer__center {
	text-align: center;
	padding: 3rem 0 2.5rem;
}

.sc-footer__center .sc-footer__menu {
	justify-content: center;
	margin: 1.25rem 0;
}

.sc-footer__payment {
	max-height: 26px;
	width: auto;
}

.sc-footer--minimal .sc-footer__bar {
	border-top: 0;
}

/* --- Nav open state (mobile) --- */
.sc-nav-open {
	overflow: hidden;
}

@media (max-width: 991px) {
	.sc-header--shop .sc-header__search {
		order: 3;
		flex-basis: 100%;
		max-width: none;
		padding-bottom: 0.9rem;
	}

	.sc-header--shop .sc-header__inner {
		flex-wrap: wrap;
		gap: 1rem;
	}

	.sc-header__row--nav {
		display: none;
	}

	.sc-header--centered .sc-header__inner,
	.sc-header--split .sc-header__inner {
		grid-template-columns: auto 1fr auto;
	}

	.sc-nav--split {
		display: none;
	}

	.sc-header__phone {
		display: none;
	}

	.sc-logo--mobile {
		display: block;
	}

	.sc-logo--mobile + .sc-logo--main,
	.sc-branding__logo .sc-logo--mobile ~ .sc-logo--main {
		display: none;
	}
}

@media (max-width: 782px) {
	.sc-topbar__menu {
		display: none;
	}

	.sc-page-title {
		padding: 1.5rem 0;
	}

	.sc-modal__inner {
		padding: 1.5rem 1rem;
	}
}

/* Blog grid layouts (Theme Options > Blog) */
.sc-blog-grid-2 .sc-posts {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sc-blog-grid-3 .sc-posts {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sc-blog-grid-2 .sc-card,
.sc-blog-grid-3 .sc-card {
	grid-template-columns: minmax(0, 1fr);
	gap: 1rem;
}

.sc-archive-desc {
	margin-bottom: 1.5rem;
	color: var(--sc-color-muted);
}

@media (max-width: 782px) {
	.sc-blog-grid-2 .sc-posts,
	.sc-blog-grid-3 .sc-posts {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ===============================================================
   13. hidden attribute
   ---------------------------------------------------------------
   Author rules like `.sc-modal { display: flex }` beat the browser's
   own `[hidden] { display: none }`, so anything toggled with the
   hidden attribute needs this to actually disappear.
   =============================================================== */
[hidden] {
	display: none !important;
}

/* Padding for plain content on the Full Width template */
.sc-layout--pad {
	padding-top: var(--sc-section-gap);
	padding-bottom: var(--sc-section-gap);
}
