/**
 * MrGunStuff Premium Theme — dark full-width storefront
 * Hostinger / LiteSpeed optimized
 */

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */
:root {
	--mgp-bg: #0a0c0f;
	--mgp-surface: #12161c;
	--mgp-panel: #181d25;
	--mgp-border: #2a3140;
	--mgp-text: #e8ecf1;
	--mgp-muted: #9aa3b2;
	--mgp-red: #e11d2e;
	--mgp-red-dark: #b91422;
	--mgp-green: #12b76a;
	--mgp-orange: #f79009;
	--mgp-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--mgp-max: 1320px;
}

/* --------------------------------------------------------------------------
   FULL WIDTH — break Astra container clamps
   -------------------------------------------------------------------------- */
html body.mgp-theme,
html body.mgp-home {
	background: var(--mgp-bg) !important;
	color: var(--mgp-text);
	font-family: var(--mgp-font);
	width: 100% !important;
	max-width: 100% !important;
	overflow-x: hidden !important;
}

html body.mgp-theme #page,
html body.mgp-theme #content,
html body.mgp-theme #primary,
html body.mgp-theme #main,
html body.mgp-theme .site,
html body.mgp-theme .site-content,
html body.mgp-theme .ast-container,
html body.mgp-theme .content-area,
html body.mgp-theme .site-main,
html body.mgp-theme .ast-row,
html body.mgp-theme article.hentry,
html body.mgp-theme .ast-article-single,
html body.mgp-home #page,
html body.mgp-home #content,
html body.mgp-home #primary,
html body.mgp-home .site-content,
html body.mgp-home .ast-container {
	width: 100% !important;
	max-width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	float: none !important;
	box-sizing: border-box !important;
}

html body.mgp-theme #secondary,
html body.mgp-theme .widget-area,
html body.mgp-theme .sidebar-main,
html body.mgp-home #secondary {
	display: none !important;
	width: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
}

html body.mgp-theme.ast-left-sidebar #primary,
html body.mgp-theme.ast-right-sidebar #primary,
html body.mgp-theme.ast-both-sidebars #primary {
	width: 100% !important;
	max-width: 100% !important;
	float: none !important;
	padding: 0 !important;
	margin: 0 !important;
}

/* Hide default Astra page chrome on premium home */
body.mgp-home .entry-header,
body.mgp-home .ast-archive-description,
body.mgp-home .page-header,
body.mgp-home .ast-breadcrumbs-wrapper {
	display: none !important;
}

body.mgp-home.ast-separate-container .ast-article-single,
body.mgp-home .ast-article-single {
	background: transparent !important;
	box-shadow: none !important;
	border: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
}

/* --------------------------------------------------------------------------
   Shell
   -------------------------------------------------------------------------- */
.mgp-shell {
	background: var(--mgp-bg);
	color: var(--mgp-text);
	min-height: 100vh;
	width: 100% !important;
	max-width: 100% !important;
}

/* --------------------------------------------------------------------------
   Header / nav
   -------------------------------------------------------------------------- */
.mgp-header {
	background: var(--mgp-surface);
	border-bottom: 1px solid var(--mgp-border);
	position: sticky;
	top: 0;
	z-index: 1000;
	width: 100% !important;
	max-width: 100% !important;
	box-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}

body.admin-bar .mgp-header {
	top: 32px;
}

@media (max-width: 782px) {
	body.admin-bar .mgp-header {
		top: 46px;
	}
}

.mgp-header__inner {
	max-width: var(--mgp-max);
	margin: 0 auto;
	padding: 0.9rem 1.25rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
}

.mgp-logo {
	color: #fff !important;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none !important;
	font-size: 0.95rem;
}

.mgp-logo span {
	color: var(--mgp-red);
	margin-left: 0.2rem;
}

.mgp-nav__list {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	display: flex;
	flex-wrap: wrap;
	gap: 1.15rem;
}

.mgp-nav__list a {
	color: var(--mgp-text) !important;
	text-decoration: none !important;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.mgp-nav__list a:hover {
	color: var(--mgp-red) !important;
}

.mgp-header__actions {
	display: flex;
	align-items: center;
}

.mgp-cart {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 6px;
	background: var(--mgp-panel);
	border: 1px solid var(--mgp-border);
	color: #fff !important;
	text-decoration: none !important;
}

.mgp-cart:hover {
	background: var(--mgp-red);
	border-color: var(--mgp-red);
}

.mgp-cart__count {
	position: absolute;
	top: -6px;
	right: -6px;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	border-radius: 999px;
	background: var(--mgp-red);
	color: #fff;
	font-size: 0.65rem;
	font-weight: 800;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* --------------------------------------------------------------------------
   Hero + CTAs
   -------------------------------------------------------------------------- */
.mgp-hero {
	width: 100% !important;
	max-width: 100% !important;
	min-height: 64vh;
	display: flex;
	align-items: center;
	background-color: var(--mgp-bg);
	background-size: cover;
	background-position: center;
	border-bottom: 1px solid var(--mgp-border);
}

.mgp-hero:not([style*="background-image"]) {
	background-image:
		linear-gradient(115deg, rgba(10, 12, 15, 0.97) 0%, rgba(18, 22, 28, 0.9) 45%, rgba(120, 16, 28, 0.5) 100%),
		repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0 2px, transparent 2px 12px);
}

.mgp-hero__content {
	max-width: 760px;
	margin: 0 auto;
	padding: 4.5rem 1.5rem;
}

.mgp-hero__eyebrow {
	margin: 0 0 1rem;
	color: var(--mgp-red);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.mgp-hero__title {
	margin: 0 0 1rem !important;
	color: #fff !important;
	font-size: clamp(2.2rem, 5.5vw, 3.75rem) !important;
	font-weight: 900 !important;
	line-height: 1.05 !important;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.mgp-hero__text {
	margin: 0 0 1.75rem;
	color: var(--mgp-muted);
	font-size: 1.05rem;
	line-height: 1.65;
	max-width: 36rem;
}

.mgp-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem;
}

.mgp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.95rem 1.65rem;
	font-size: 0.8rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-decoration: none !important;
	border-radius: 4px;
	border: 2px solid transparent;
	transition: 0.15s ease;
}

.mgp-btn--red {
	background: var(--mgp-red) !important;
	border-color: var(--mgp-red) !important;
	color: #fff !important;
}

.mgp-btn--red:hover {
	background: var(--mgp-red-dark) !important;
	border-color: var(--mgp-red-dark) !important;
	color: #fff !important;
}

.mgp-btn--dark {
	background: #000 !important;
	border-color: #e8ecf1 !important;
	color: #fff !important;
}

.mgp-btn--dark:hover {
	background: #fff !important;
	color: #000 !important;
}

/* --------------------------------------------------------------------------
   Main / featured products
   -------------------------------------------------------------------------- */
.mgp-main {
	/* Transparent on dark storefront — was #f3f5f7 (white shop column). */
	background: transparent !important;
	color: #e0e0e0;
	width: 100% !important;
	padding: 2.75rem 0 3rem;
}

.mgp-main__inner {
	max-width: var(--mgp-max);
	margin: 0 auto;
	padding: 0 1.25rem;
	box-sizing: border-box;
}

.mgp-featured__head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
	margin: 0 0 1.25rem;
}

.mgp-featured__head h2 {
	margin: 0 !important;
	font-size: 1.1rem !important;
	font-weight: 800 !important;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.mgp-featured__head a {
	color: var(--mgp-red) !important;
	font-weight: 700;
	text-decoration: none !important;
	font-size: 0.9rem;
}

/* Product grid */
body.mgp-theme ul.products {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	gap: 1rem !important;
	margin: 0 !important;
	padding: 0 !important;
	width: 100% !important;
	max-width: 100% !important;
	list-style: none !important;
}

body.mgp-theme ul.products::before,
body.mgp-theme ul.products::after {
	display: none !important;
}

body.mgp-theme ul.products li.product {
	float: none !important;
	width: 100% !important;
	margin: 0 !important;
	/* Dark card panels — never white on shop/home */
	background: #1e1e1e !important;
	border: 1px solid #2e2e2e !important;
	border-radius: 8px;
	overflow: visible;
	box-shadow: none;
}

body.mgp-theme ul.products li.product .woocommerce-loop-product__title,
body.mgp-theme ul.products li.product h2 {
	color: #e0e0e0 !important;
	font-size: 0.84rem !important;
	font-weight: 700 !important;
	padding: 0 !important;
	margin: 0 !important;
	display: block !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	max-height: none !important;
	min-height: 0 !important;
	white-space: nowrap !important;
	word-break: normal !important;
	overflow-wrap: normal !important;
	line-height: 1.3 !important;
}

body.mgp-theme ul.products li.product .price {
	color: #0f7a35 !important;
	font-size: 1.15rem !important;
	font-weight: 800 !important;
	padding: 0 0.85rem 0.5rem;
	margin: 0 !important;
	display: block;
}

body.mgp-theme ul.products li.product .button {
	display: block !important;
	margin: 0.5rem 0.85rem 0.9rem !important;
	width: calc(100% - 1.7rem) !important;
	text-align: center;
	background: #12161c !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 4px !important;
	font-weight: 700 !important;
	font-size: 0.75rem !important;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 0.7rem !important;
}

body.mgp-theme ul.products li.product .button:hover {
	background: var(--mgp-red) !important;
}

body.mgp-theme ul.products li.product img {
	width: 100% !important;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	background: #141414 !important;
	padding: 0.75rem;
	margin: 0 !important;
	border-bottom: 1px solid #2e2e2e !important;
}

@media (max-width: 1024px) {
	body.mgp-theme ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 720px) {
	body.mgp-theme ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 420px) {
	body.mgp-theme ul.products {
		grid-template-columns: 1fr !important;
	}
}

/* Badges */
.mgp-badge-row {
	display: flex;
	gap: 0.35rem;
	padding: 0.55rem 0.85rem 0;
}

.mgp-badge {
	display: inline-flex;
	font-size: 0.62rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 0.28rem 0.5rem;
	border-radius: 3px;
}

.mgp-badge--ffl {
	background: #6b1219;
	color: #ffe8ea;
	border: 1px solid #8f1a24;
}

.mgp-badge--home {
	background: #1a3d2b;
	color: #e3f5ea;
	border: 1px solid #2a5c40;
}

.mgp-stock {
	display: inline-flex;
	margin: 0.25rem 0.85rem 0.35rem;
	padding: 0.25rem 0.55rem;
	border-radius: 999px;
	font-size: 0.65rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.mgp-stock--in {
	background: #d1fadf;
	color: #05603a;
}

.mgp-stock--low {
	background: #fef0c7;
	color: #93370d;
}

.mgp-stock--out {
	background: #fee4e2;
	color: #912018;
}

/* Footer */
.mgp-footer {
	background: var(--mgp-bg);
	color: var(--mgp-muted);
	border-top: 1px solid var(--mgp-border);
	padding: 1.5rem;
	text-align: center;
	font-size: 0.85rem;
	width: 100% !important;
}

.mgp-footer__inner {
	max-width: var(--mgp-max);
	margin: 0 auto;
}

/* Shop page dark chrome */
body.mgp-theme.woocommerce-shop .site-header,
body.mgp-theme.woocommerce .site-header,
body.mgp-theme .ast-primary-header-bar,
body.mgp-theme #masthead {
	background: var(--mgp-surface) !important;
	border-bottom: 1px solid var(--mgp-border) !important;
}

body.mgp-theme.woocommerce-shop,
body.mgp-theme.archive.woocommerce,
body.mgp-theme.tax-product_cat,
body.mgp-theme.mgp-shop-shell {
	/* Shared side red fade — was #f3f5f7 (white shop column under FILTER GEAR). */
	background: var(--mgp-page-fade, #121212) !important;
	background-attachment: fixed !important;
	color: #e0e0e0 !important;
}

@media (max-width: 900px) {
	body.mgp-theme.woocommerce-shop,
	body.mgp-theme.archive.woocommerce,
	body.mgp-theme.tax-product_cat,
	body.mgp-theme.mgp-shop-shell,
	body.mgp-theme.woocommerce,
	body.mgp-theme.woocommerce-page {
		background: linear-gradient(
				105deg,
				rgba(12, 12, 12, 0.98) 0%,
				rgba(18, 18, 18, 0.94) 40%,
				rgba(90, 10, 18, 0.55) 100%
			),
			#121212 !important;
		background-attachment: scroll !important;
	}
}
