/**
 * Mishtam — layout overrides (full-width, zero gaps)
 */

html, body {
	scroll-behavior: smooth !important;
}

/* Eliminate dotted outline box on clicks for links, buttons & logo */
a, button, input, textarea, select, [role="button"] {
	outline: none !important;
	-webkit-tap-highlight-color: transparent;
}

a:focus, button:focus, input:focus, textarea:focus, select:focus,
a:focus-visible, button:focus-visible, input:focus-visible,
a:active, button:active {
	outline: none !important;
	box-shadow: none !important;
}

.mishtam-theme.home .site-content > .ast-container {
	max-width: none;
	width: 100%;
	padding: 0;
	margin: 0;
}

.mishtam-theme.home .site-content,
.mishtam-theme.home #content {
	padding: 0 !important;
	margin: 0 !important;
}

.mishtam-theme.home .ms-front-page {
	width: 100%;
	overflow-x: hidden;
	margin: 0;
	padding: 0;
}

.mishtam-theme.home .ms-hero--banner {
	margin-top: 0 !important;
}

/* Astra plain-container adds 60px top margin on #primary at 1200px+ — kills hero flush layout */
.mishtam-theme.home.ast-plain-container.ast-no-sidebar #primary,
.mishtam-theme.home #primary.site-main,
.mishtam-theme.home .site-main.ms-front-page {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

/* PDP — remove Astra 60px top gap; ms-container handles horizontal inset */
.mishtam-theme.single-product.ast-plain-container.ast-no-sidebar #primary,
.mishtam-theme.single-product #primary.site-main {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

/* Astra sticky-footer flex stretches content — kills huge gap before trust strip on PDP */
.mishtam-theme.single-product #page {
	display: block !important;
	min-height: 0 !important;
}

.mishtam-theme.single-product #page .site-content,
.mishtam-theme.single-product #content {
	flex-grow: 0 !important;
	flex: none !important;
	min-height: 0 !important;
}

.mishtam-theme.single-product .site-content > .ast-container {
	max-width: none;
	width: 100%;
	padding: 0 !important;
	margin: 0;
}

.mishtam-theme.single-product .ast-woocommerce-container {
	padding: 0 !important;
	margin: 0 !important;
}

.mishtam-theme.single-product div.product.ms-pdp.ast-article-single,
.mishtam-theme.single-product div.product.ms-pdp.ast-grid-common-col {
	padding: 0 !important;
	margin: 0 !important;
}

.mishtam-theme.single-product .woocommerce-notices-wrapper:empty {
	display: none;
	margin: 0;
	padding: 0;
	min-height: 0;
}

/* Cart — see assets/css/cart.css */
.mishtam-theme.ms-cart-page.ast-plain-container.ast-no-sidebar #primary,
.mishtam-theme.ms-cart-page #primary.site-main {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

.mishtam-theme.ms-cart-page .site-content > .ast-container {
	max-width: none !important;
	width: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
}

.mishtam-theme.ms-cart-page .ast-woocommerce-container {
	padding: 0 !important;
	margin: 0 !important;
}

/* Checkout — see assets/css/checkout.css */
.mishtam-theme.ms-checkout-page.ast-plain-container.ast-no-sidebar #primary,
.mishtam-theme.ms-checkout-page #primary.site-main {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

.mishtam-theme.ms-checkout-page .site-content > .ast-container {
	max-width: none !important;
	width: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
}

.mishtam-theme.ms-checkout-page .ast-woocommerce-container {
	padding: 0 !important;
	margin: 0 !important;
}

.mishtam-theme #masthead,
.mishtam-theme #masthead.site-header,
.mishtam-theme .main-header-bar-wrap,
.mishtam-theme .ast-main-header-wrap,
.mishtam-theme .ast-header-wrap,
.mishtam-theme header.site-header:not(.ms-header) {
	display: none !important;
	height: 0 !important;
	min-height: 0 !important;
	max-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
	overflow: hidden !important;
	visibility: hidden !important;
}

.mishtam-theme .ms-header-stack + #masthead,
.mishtam-theme .ms-header-stack ~ #content {
	margin-top: 0 !important;
}

.mishtam-theme .ast-primary-header-bar,
.mishtam-theme .main-header-bar,
.mishtam-theme .site-header-primary-section-left,
.mishtam-theme .site-header-primary-section-right {
	display: none !important;
	height: 0 !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* Kill Astra hidden header ghost space */
.mishtam-theme #ast-desktop-header,
.mishtam-theme #ast-mobile-header {
	display: none !important;
	height: 0 !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden !important;
}

.mishtam-theme .site-content {
	padding-top: 0;
}

.ms-container {
	width: 100%;
	max-width: var(--ms-container-wide);
	margin-inline: auto;
	padding-inline: var(--ms-container-x);
	box-sizing: border-box;
}

.ms-container--narrow {
	max-width: var(--ms-container);
}

.ms-container.ms-container--wide,
.ms-container--wide {
	max-width: var(--ms-container-wide);
}

.mishtam-theme:not(.home):not(.single-product):not(.ms-cart-page):not(.ms-checkout-page):not(.ms-order-received-page):not(.ms-shop-archive-page):not(.ms-contact-page):not(.ms-account-page) .site-content > .ast-container {
	max-width: var(--ms-container);
	padding-left: var(--ms-container-x);
	padding-right: var(--ms-container-x);
}

/* Shop / category archive — full-bleed like cart & checkout so the hero and
   product grid align with the header logo (via inner .ms-container--wide) */
.mishtam-theme.ms-shop-archive-page.ast-plain-container.ast-no-sidebar #primary,
.mishtam-theme.ms-shop-archive-page #primary.site-main {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

.mishtam-theme.ms-shop-archive-page .site-content > .ast-container {
	max-width: none !important;
	width: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
}

.mishtam-theme.ms-shop-archive-page .ast-woocommerce-container {
	padding: 0 !important;
	margin: 0 !important;
	width: 100%;
	max-width: 100%;
}

/* Contact page — full-bleed hero, container-aligned body (see assets/css/contact.css) */
.mishtam-theme.ms-contact-page.ast-plain-container.ast-no-sidebar #primary,
.mishtam-theme.ms-contact-page #primary.site-main {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

.mishtam-theme.ms-contact-page .site-content > .ast-container {
	max-width: none !important;
	width: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
}

.mishtam-theme.ms-contact-page .ast-woocommerce-container {
	padding: 0 !important;
	margin: 0 !important;
	width: 100%;
	max-width: 100%;
}

/* My Account — full-bleed hero, container-aligned body (see assets/css/account.css) */
.mishtam-theme.ms-account-page.ast-plain-container.ast-no-sidebar #primary,
.mishtam-theme.ms-account-page #primary.site-main {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

.mishtam-theme.ms-account-page .site-content > .ast-container {
	max-width: none !important;
	width: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
}

.mishtam-theme.ms-account-page .ast-woocommerce-container {
	padding: 0 !important;
	margin: 0 !important;
	width: 100%;
	max-width: 100%;
}

/* The account content lives inside Astra's .entry-content (page loop), which
   applies its own content-width constraint. Break it out to the full viewport
   so the hero and content align with the header container like other pages. */
.mishtam-theme.ms-account-page .entry-content {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	padding: 0 !important;
}

.mishtam-theme.ms-account-page .entry-content > * {
	max-width: none;
}

/* Remove the gap between the header and the hero (Astra page-loop wrappers).
   Structure: #content.site-content > .ast-container > #primary.content-area
   > main#main.site-main > article.page > .entry-content > .ms-account-hero */
.mishtam-theme.ms-account-page #content.site-content,
.mishtam-theme.ms-account-page #primary,
.mishtam-theme.ms-account-page #main,
.mishtam-theme.ms-account-page .site-main,
.mishtam-theme.ms-account-page .ast-article-single,
.mishtam-theme.ms-account-page .ast-article-post,
.mishtam-theme.ms-account-page article,
.mishtam-theme.ms-account-page .entry-header {
	margin-top: 0 !important;
	padding-top: 0 !important;
}

.mishtam-theme.ms-account-page .ms-account-hero {
	margin-top: 0 !important;
}

/* Astra scroll-to-top — default uses link blue; match Mishtam pink. */
.mishtam-theme #ast-scroll-top {
	background: var(--ms-gradient-primary);
	color: #fff;
	border-radius: var(--ms-radius-pill);
	box-shadow: 0 4px 16px var(--ms-primary-glow);
	transition: background-color var(--ms-duration) var(--ms-ease), box-shadow var(--ms-duration) var(--ms-ease);
}

.mishtam-theme #ast-scroll-top:hover,
.mishtam-theme #ast-scroll-top:focus {
	background: var(--ms-primary-hover);
	color: #fff;
	box-shadow: 0 6px 18px var(--ms-primary-glow);
}

.mishtam-theme #ast-scroll-top .ast-icon.icon-arrow svg {
	fill: currentColor;
}
