/* SeaTac Models — compiled custom styles (built up task by task) */

/* ==========================================================================
   Task 2 — Global styles: typography, buttons, links, base elements
   ========================================================================== */

body {
	color: #333333;
	background-color: var(--stm-white) !important;
}

.ast-container {
	max-width: 1200px;
}

/* Buttons */
.button,
button,
input[type="submit"],
input[type="button"],
.wp-block-button__link,
.elementor-button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce #respond input#submit,
.woocommerce a.added_to_cart,
.wc-block-product-search__button,
.search-submit {
	background-color: var(--stm-teal) !important;
	color: var(--stm-white) !important;
	border: 2px solid var(--stm-teal) !important;
	border-radius: 4px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: none;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.button:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.wp-block-button__link:hover,
.elementor-button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce #respond input#submit:hover,
.wc-block-product-search__button:hover,
.search-submit:hover {
	background-color: var(--stm-navy);
	border-color: var(--stm-navy);
	color: var(--stm-white) !important;
}

.button.button-outline,
.stm-btn-outline {
	background-color: transparent;
	color: var(--stm-white) !important;
	border: 2px solid var(--stm-white);
}

.button.button-outline:hover,
.stm-btn-outline:hover {
	background-color: var(--stm-white);
	color: var(--stm-navy) !important;
}

/* WooCommerce price / sale styling */
.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price {
	color: var(--stm-navy);
	font-weight: 700;
}

.woocommerce span.onsale {
	background-color: var(--stm-teal);
}

/* ==========================================================================
   Task 3 — Header & navigation
   ========================================================================== */

.site-header,
#ast-mobile-header,
.ast-primary-header-bar,
.ast-above-header-bar,
.ast-below-header-bar {
	background-color: var(--stm-navy) !important;
}

/* Astra's logo slot has no image configured; render the site name as text. */
.site-header .custom-mobile-logo-link {
	display: none;
}

.site-header .custom-logo-link {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	font-family: var(--stm-font);
	font-weight: 800;
	font-size: 1.35rem;
	color: var(--stm-white) !important;
	text-decoration: none;
}

.site-header .custom-logo-link::before {
	content: "SeaTac Models";
}

.ast-builder-menu-1 .menu-item > .menu-link,
.main-header-menu .menu-link,
.main-header-menu > .menu-item > a {
	color: var(--stm-white) !important;
}

.ast-builder-menu-1 .menu-item > .menu-link:hover,
.main-header-menu > .menu-item > a:hover,
.main-header-menu > .menu-item > a:focus,
.main-header-menu > .menu-item.current-menu-item > a {
	color: var(--stm-teal) !important;
}

/* Mobile off-canvas menu: Astra reuses this same nav markup for the slide-out
   popup (toggled via body.ast-header-break-point) but the popup panel has a
   white background, so the white text above becomes invisible. Force dark
   text + generous tap targets in that context specifically. */
body.ast-header-break-point .ast-builder-menu-1 .menu-item > .menu-link,
body.ast-header-break-point .main-header-menu .menu-link,
body.ast-header-break-point .main-header-menu > .menu-item > a {
	color: var(--stm-navy) !important;
	min-height: 44px;
	display: flex !important;
	align-items: center;
}

body.ast-header-break-point .ast-builder-menu-1 .menu-item > .menu-link:hover,
body.ast-header-break-point .main-header-menu > .menu-item > a:hover,
body.ast-header-break-point .main-header-menu > .menu-item > a:focus {
	color: var(--stm-teal) !important;
}

.ast-site-header-cart .astra-icon,
.ast-site-header-cart .ast-woo-header-cart-total,
.ast-header-account-link {
	color: var(--stm-white);
}

.ast-site-header-cart svg,
.ast-header-account-link svg {
	fill: var(--stm-white);
}

.main-header-menu-toggle .mobile-menu-toggle-icon svg {
	fill: var(--stm-white);
}


/* ==========================================================================
   Task 5 — Product categories grid (homepage)
   ========================================================================== */

/* 5 category tiles: force a responsive grid regardless of Elementor's own flex settings */
[data-id="9986b28"] {
	display: grid !important;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 20px;
}

[data-id="9986b28"] > div {
	min-height: 320px;
}

/* Legible white title/tagline over the tile photo (homepage category grid only —
   this widget is reused elsewhere on light backgrounds and must not be forced white there) */
[data-id="9986b28"] .hfe-infocard-title,
[data-id="9986b28"] .hfe-infocard-text {
	color: var(--stm-white) !important;
}

/* Category tile CTAs still carried Astra's default starter-template green
   palette (near-invisible pale mint-on-mint) instead of the brand teal. */
.elementor-element-6098594 .elementor-button,
.elementor-element-7ec82cf .elementor-button,
.elementor-element-52f0607 .elementor-button {
	background-color: var(--stm-teal) !important;
	border-color: var(--stm-teal) !important;
	color: var(--stm-white) !important;
}

.elementor-element-6098594 .elementor-button:hover,
.elementor-element-7ec82cf .elementor-button:hover,
.elementor-element-52f0607 .elementor-button:hover {
	background-color: var(--stm-navy) !important;
	border-color: var(--stm-navy) !important;
	color: var(--stm-white) !important;
}

/* Category tile photo scrims still used Astra's default starter-template
   near-black-green (#0C1406) instead of the brand navy. */
.elementor-element-3e0bc12::before,
.elementor-element-d6c86e9::before,
.elementor-element-857ac25::before {
	background-color: var(--stm-navy) !important;
}

/* "Featured Products" section still used Astra's default pale mint-green
   (#EDFBE2) background instead of the brand's light gray neutral. */
.elementor-element-1d45057 {
	background-color: var(--stm-gray) !important;
}

/* Section dividers still used Astra's default starter-template green. */
.elementor-element-bac1528 .elementor-divider-separator {
	border-color: var(--stm-teal) !important;
}

/* ==========================================================================
   Task 6 — Featured products
   ========================================================================== */

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
	background: var(--stm-white);
	border: 1px solid #e5e5e5;
	border-radius: 6px;
	padding: 20px 16px 24px;
	text-align: center;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.woocommerce ul.products li.product:hover,
.woocommerce-page ul.products li.product:hover {
	box-shadow: 0 8px 24px rgba(11, 30, 51, 0.1);
	transform: translateY(-2px);
}

.woocommerce ul.products li.product img {
	border-radius: 4px;
	margin-bottom: 12px;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--stm-navy);
}

.woocommerce ul.products li.product .button {
	margin-top: 14px;
	width: 100%;
}

/* ==========================================================================
   Task 7 — Trust badges
   ========================================================================== */

[data-id="957d0fb"] .elementor-icon-box-title,
[data-id="957d0fb"] .elementor-icon-box-title a,
[data-id="957d0fb"] .elementor-icon-box-description {
	color: var(--stm-white) !important;
}

[data-id="957d0fb"] .elementor-icon-box-icon i {
	color: var(--stm-teal);
}

[data-id="957d0fb"] .elementor-icon-box-wrapper {
	text-align: center;
}

/* ==========================================================================
   Task 8 — Footer
   ========================================================================== */

#colophon,
#colophon .elementor-widget-heading .elementor-heading-title,
#colophon p,
#colophon .elementor-icon-list-text,
#colophon .copyright-footer,
#colophon .elementor-widget-copyright {
	color: var(--stm-white);
}

#colophon a {
	color: var(--stm-white);
}

#colophon .elementor-icon-list-text {
	color: var(--stm-white);
}

#colophon a:hover,
#colophon .elementor-icon-list-item:hover .elementor-icon-list-text {
	color: var(--stm-teal);
}

#colophon .elementor-social-icon {
	background-color: transparent;
	border: 1.5px solid var(--stm-white);
}

#colophon .elementor-social-icon i,
#colophon .elementor-social-icon svg {
	color: var(--stm-white);
	fill: var(--stm-white);
}

#colophon .elementor-social-icon:hover {
	border-color: var(--stm-teal);
}

#colophon .elementor-social-icon:hover i,
#colophon .elementor-social-icon:hover svg {
	color: var(--stm-teal);
	fill: var(--stm-teal);
}

/* ==========================================================================
   Task 9 — Shop archive
   ========================================================================== */

.woocommerce ul.products {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.woocommerce ul.products li.product {
	width: 100% !important;
	margin: 0 !important;
	float: none !important;
}

.stm-shop-cat-filter {
	margin: 0 0 30px;
}

.stm-shop-cat-filter ul {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.stm-shop-cat-filter a {
	display: inline-block;
	padding: 8px 18px;
	border: 1.5px solid var(--stm-navy);
	border-radius: 999px;
	color: var(--stm-navy);
	font-weight: 600;
	font-size: 0.9rem;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.stm-shop-cat-filter a:hover,
.stm-shop-cat-filter .current a {
	background-color: var(--stm-navy);
	color: var(--stm-white);
}

/* ==========================================================================
   Task 10 — Single product page
   ========================================================================== */

.woocommerce div.product div.images,
.woocommerce div.product div.summary {
	width: 100%;
}

.woocommerce div.product .woocommerce-product-gallery {
	border-radius: 6px;
	overflow: hidden;
}

.woocommerce div.product .product_title {
	color: var(--stm-navy);
	margin-bottom: 8px;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
	font-size: 1.4rem;
}

.woocommerce div.product .woocommerce-product-details__short-description {
	color: #333333;
	line-height: 1.7;
}

.woocommerce div.product form.cart {
	margin-top: 20px;
}

.woocommerce div.product .related.products {
	margin-top: 60px;
	border-top: 1px solid #e5e5e5;
	padding-top: 40px;
}

.woocommerce div.product .related.products > h2 {
	color: var(--stm-navy);
	text-align: center;
	margin-bottom: 24px;
}

/* ==========================================================================
   Pre-order badge (2026-07-10) — teal ribbon for products flagged
   with the `_stm_preorder` postmeta flag.
   ========================================================================== */

.woocommerce ul.products li.product {
	position: relative;
}

.woocommerce ul.products li.product .stm-preorder-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	background-color: var(--stm-teal);
	color: var(--stm-white);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 5px 12px;
	border-radius: 999px;
	box-shadow: 0 2px 6px rgba(11, 30, 51, 0.25);
}

.woocommerce div.product .stm-preorder-badge--single {
	position: static;
	display: inline-block;
	background-color: var(--stm-teal);
	color: var(--stm-white);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 6px 16px;
	border-radius: 999px;
	margin-bottom: 14px;
	box-shadow: 0 2px 6px rgba(11, 30, 51, 0.25);
}

/* ==========================================================================
   Product page video embeds — "See It In Action" (2026-07-10)
   ========================================================================== */

.stm-product-video {
	max-width: 800px;
	margin: 40px auto 0;
	padding: 24px;
	background-color: #f4f4f4;
	border: 1px solid var(--stm-teal);
	border-radius: 8px;
}

.stm-product-video__heading {
	color: var(--stm-navy);
	font-weight: 700;
	text-align: center;
	margin: 0 0 20px;
}

.stm-product-video__frame {
	position: relative;
	width: 100%;
	padding-top: 56.25%;
	border-radius: 6px;
	overflow: hidden;
	border: 2px solid var(--stm-teal);
}

.stm-product-video__frame iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.stm-product-video__frame + .stm-product-video__frame {
	margin-top: 24px;
}

/* ==========================================================================
   Homepage "See Our Models In Action" video section (2026-07-10)
   ========================================================================== */

.stm-home-video__frame {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: 6px;
	overflow: hidden;
	border: 2px solid var(--stm-teal);
	background-color: var(--stm-white);
}

.stm-home-video__frame iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Elementor's --container-widget-height:100% (inherited from the desktop
   row layout) collapses these widget wrappers to near-zero height once the
   section switches to a stacked column on mobile, so the aspect-ratio video
   box overflows its own box and overlaps the next video / the Instagram
   link below it instead of pushing them down. */
[data-id="13513a3"],
[data-id="33ffb14"],
[data-id="d47a1e6"],
[data-id="13513a3"] .elementor-widget,
[data-id="33ffb14"] .elementor-widget,
[data-id="d47a1e6"] .elementor-widget,
[data-id="13513a3"] .elementor-widget-container,
[data-id="33ffb14"] .elementor-widget-container,
[data-id="d47a1e6"] .elementor-widget-container {
	height: auto !important;
	min-height: 200px !important;
}

@media (max-width: 767px) {
	[data-id="13513a3"],
	[data-id="33ffb14"],
	[data-id="d47a1e6"],
	[data-id="13513a3"] .elementor-widget,
	[data-id="33ffb14"] .elementor-widget,
	[data-id="d47a1e6"] .elementor-widget,
	[data-id="13513a3"] .elementor-widget-container,
	[data-id="33ffb14"] .elementor-widget-container,
	[data-id="d47a1e6"] .elementor-widget-container {
		min-height: 52vw !important;
	}
}

/* ==========================================================================
   Instagram links — About page + homepage CTA (2026-07-10)
   ========================================================================== */

.stm-instagram-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--stm-teal);
	font-weight: 600;
	text-decoration: none;
	margin-top: 20px;
	transition: color 0.2s ease;
}

.stm-instagram-link:hover {
	color: var(--stm-navy);
}

.stm-instagram-link--home {
	margin-top: 36px;
	font-size: 1.1rem;
	justify-content: center;
	width: 100%;
}

/* ==========================================================================
   Task 15 — Mobile responsiveness
   ========================================================================== */

@media (max-width: 921px) {
	.woocommerce ul.products,
	.woocommerce-page ul.products {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}

@media (max-width: 600px) {
	/* WooCommerce/Astra emit their own ul.products.columns-N rule with higher
	   specificity (two classes vs. our class+type selector), which silently
	   wins over the rule above at this same breakpoint without !important. */
	.woocommerce ul.products,
	.woocommerce-page ul.products {
		grid-template-columns: 1fr !important;
	}

	[data-id="9986b28"] {
		grid-template-columns: 1fr;
	}

	/* Homepage "Featured Products" widget renders its own ul.products grid
	   scoped by widget ID with higher specificity than the shop-archive rule
	   above, so it stays stuck at 2 cramped 218px columns on narrow phones. */
	.elementor-element-f628c74 ul.products {
		grid-template-columns: 1fr !important;
	}

	.site-header .custom-logo-link {
		font-size: 1.1rem;
	}

	.stm-shop-cat-filter ul {
		gap: 8px;
	}

	.stm-shop-cat-filter a {
		padding: 6px 14px;
		font-size: 0.8rem;
	}

	/* Quick "add to cart" bag icon on product card thumbnails: sticks visible
	   after the first tap on touch devices (no real hover state), so its
	   29x32px default is a genuine sub-44px tap target here. */
	.woocommerce ul.products li.product .ast-on-card-button {
		width: 44px !important;
		height: 44px !important;
		display: flex !important;
		align-items: center;
		justify-content: center;
	}

	/* Hero heading: keep readable and prevent overflow on small phones */
	.elementor-element-5e370e0 .elementor-heading-title {
		font-size: 2rem !important;
		line-height: 1.25 !important;
	}

	.elementor-element-1f905f6 .elementor-heading-title {
		font-size: 1.1rem !important;
	}

	/* Button rows (hero, About CTA): wrap instead of overflowing narrow screens */
	.elementor-element-dcec449,
	[data-id="5f5c774"] {
		flex-wrap: wrap !important;
	}
}

/* ==========================================================================
   Task 16 — Header logo: image only, no generated site-title text
   ========================================================================== */

.custom-logo-link::before {
	content: none !important;
}

/* ==========================================================================
   Task 17 — Worldwide shipping notice (About page banner, checkout line,
   footer mention). Shared look: teal (--stm-teal) left border + tint.
   ========================================================================== */

.stm-shipping-notice {
	background-color: rgba(45, 97, 53, 0.08);
	border-left: 5px solid var(--stm-teal);
	padding: 18px 24px;
	border-radius: 4px;
	font-size: 1.05rem;
	color: var(--stm-navy);
}

.stm-shipping-notice strong {
	color: var(--stm-teal);
}

.stm-shipping-notice--checkout {
	margin-top: 12px;
	font-size: 0.9rem;
	padding: 10px 16px;
}

.stm-shipping-notice--footer {
	background-color: transparent;
	border-left: none;
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	padding: 14px 0 0;
	margin-top: 14px;
	font-size: 0.78rem;
	color: rgba(255, 255, 255, 0.75);
	text-align: left;
	max-width: 260px;
}

/* ==========================================================================
   Task 18 — Sitewide UX audit (2026-07-18)
   ========================================================================== */

/* Cart/Checkout page-title heading widgets were left at Elementor's default
   gray instead of the brand color every other page heading uses. */
.elementor-element-49083bd .elementor-heading-title,
.elementor-element-ec7306e .elementor-heading-title {
	color: var(--stm-navy) !important;
}

.stm-shipping-notice--footer strong {
	/* --stm-teal is a dark green accent, fine on the light banner/checkout
	   backgrounds above but nearly unreadable against the dark green footer. */
	color: var(--stm-white);
}
