/* Niwtin Mobile Tweaks 1.0.4 */

/* ---------- All screen sizes: contrast, notices, tap targets ---------- */

/* "LIT ART" label on the black Lit Art section: lighter orange so it passes contrast */
.elementor-element-692a00c,
.elementor-element-692a00c p { color: #F29A57 !important; }

/* Bottom call-to-action: dark fallback behind white text while the photo loads */
.elementor-element-faec0c7 { background-color: #2a211b; }

/* Info notices (e.g. empty cart): white icon instead of light blue on orange */
.woocommerce-info::before { color: #fff !important; }

/* Footer legal links: bigger tap area */
.elementor-element-72a6c28 .elementor-icon-list-item > a { display: inline-block; padding: 12px 6px; }


/* Product card titles are now h2 (was h3): keep the h3 size so nothing moves */
.elementor-287 .elementor-element-dd7e68c h2.elementor-icon-box-title { font-size: 1.75rem; }

/* Links inside running text: underline so they don't rely on colour alone */
.elementor-widget-text-editor p a:not(.elementor-button),
.elementor-widget-text-editor li a:not(.elementor-button) { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Phones only ---------- */
@media (max-width: 767px) {

	/* Home hero pattern: light 32 KB copy on phones (same look, background-size: cover) */
	.elementor-element-db6a62b > .elementor-motion-effects-container > .elementor-motion-effects-layer::before,
	.elementor-element-db6a62b::before {
		background-image: url(/wp-content/uploads/2026/11/niwtin-lattice-pattern-mobile.webp) !important;
	}

	/* Product page: full-size buy buttons */
	.single-product form.cart .woocommerce-variation-add-to-cart,
	.single-product form.cart:not(.variations_form) {
		display: flex !important;
		flex-wrap: wrap !important;
		align-items: stretch !important;
		gap: 10px !important;
	}
	.single-product form.cart .quantity { margin: 0 !important; flex: 0 0 auto; }
	.single-product form.cart .quantity .qty { height: 52px !important; min-height: 52px; width: 64px !important; font-size: 16px; }
	.single-product form.cart .single_add_to_cart_button {
		height: 52px !important;
		min-height: 52px !important;
		font-size: 16px !important;
		line-height: 1.2 !important;
		padding: 0 18px !important;
		margin: 0 !important;
		border-radius: 999px !important;
		display: inline-flex !important;
		align-items: center;
		justify-content: center;
	}
	.single-product form.cart .single_add_to_cart_button:not(.wc-buy-now-btn) { flex: 1 1 calc(100% - 74px) !important; width: auto !important; max-width: none !important; }
	.single-product form.cart .wc-buy-now-btn { flex: 1 1 100% !important; width: 100% !important; max-width: none !important; }
	.single-product form.cart .tinv-wraper { flex: 1 1 100% !important; width: 100% !important; margin: 0 !important; }
	.single-product form.cart .tinv-wraper a { display: inline-flex; align-items: center; min-height: 44px; }
	.single-product form.cart .reset_variations { display: inline-block; padding: 8px 0; }
	.single-product form.cart.nwt-pulse { animation: nwtPulse 1.6s ease; border-radius: 12px; }
	@keyframes nwtPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(196, 76, 4, 0); } 30% { box-shadow: 0 0 0 6px rgba(196, 76, 4, .35); } }

	/* Product page: sticky Add to cart bar */
	.nwt-sticky-atc {
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990;
		display: flex; align-items: center; gap: 12px;
		padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
		background: #fffbea; border-top: 1px solid rgba(0, 0, 0, .12);
		box-shadow: 0 -4px 16px rgba(0, 0, 0, .08);
		transform: translateY(110%); transition: transform .25s ease;
	}
	.nwt-sticky-atc.is-visible { transform: none; }
	.nwt-sa-info { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
	.nwt-sa-title { font-size: 14px; font-weight: 600; color: #111; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.nwt-sa-price, .nwt-sa-price .price { font-size: 14px; color: #111; margin: 0; }
	.nwt-sa-price del { opacity: .6; }
	.nwt-sa-btn {
		flex: none; min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px;
		background: #c44c04; color: #fff; font-size: 16px; font-weight: 600; cursor: pointer;
	}
	body.nwt-has-sticky-atc { padding-bottom: 78px; }

	/* Product grids (shop, categories, home): two per row, short cards */
	.elementor-loop-container.elementor-grid:has(> .e-loop-item.elementor-287) {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 14px 10px !important;
	}
	.elementor-grid > .elementor-287 .e-con {
		--padding-top: 8px; --padding-bottom: 8px; --padding-left: 8px; --padding-right: 8px;
		--gap: 6px; --row-gap: 6px;
	}
	.elementor-grid > .elementor-287 .elementor-element-2cc41bd img {
		width: 100% !important; height: auto !important; aspect-ratio: 1 / 1; object-fit: cover;
	}
	.elementor-grid > .elementor-287 .elementor-element-86f479d,
	.elementor-grid > .elementor-287 .elementor-element-86f479d * { font-size: 10px !important; letter-spacing: .04em; line-height: 1.3 !important; }
	.elementor-grid > .elementor-287 .elementor-element-dd7e68c .elementor-icon-box-description,
	.elementor-grid > .elementor-287 .elementor-element-dd7e68c .elementor-icon-box-content > p { display: none !important; }
	.elementor-grid > .elementor-287 .elementor-element-dd7e68c .elementor-icon-box-title,
	.elementor-grid > .elementor-287 .elementor-element-dd7e68c .elementor-icon-box-title * { font-size: 15px !important; line-height: 1.3 !important; margin: 0 !important; }
	.elementor-grid > .elementor-287 .elementor-element-8496353 .elementor-heading-title,
	.elementor-grid > .elementor-287 .elementor-element-8496353 .price { font-size: 13px !important; line-height: 1.3 !important; }
	.elementor-grid > .elementor-287 .elementor-element-4a7c45c a,
	.elementor-grid > .elementor-287 .elementor-element-4a7c45c button { width: 100%; justify-content: center; min-height: 44px; }

	/* Shop: filters behind a button */
	.nwt-filter-toggle {
		display: flex; width: 100%; justify-content: space-between; align-items: center;
		min-height: 48px; padding: 0 16px; margin: 0 0 12px;
		border: 1px solid rgba(0, 0, 0, .15); border-radius: 12px; background: #fff;
		font-size: 16px; font-weight: 600; color: #111; cursor: pointer;
	}
	.nwt-filter-toggle .nwt-chev { transition: transform .2s ease; }
	.nwt-filter-toggle[aria-expanded="true"] .nwt-chev { transform: rotate(180deg); }
	.nwt-filter-panel.nwt-collapsed { display: none !important; }

	/* Home: swipe rows instead of long stacks */
	.elementor-75 .elementor-element-c07af8f > .e-con-inner,
	.elementor-75 .elementor-element-604bf0e,
	.elementor-75 .elementor-element-ebf037e,
	.elementor-75 .elementor-element-de61ba6 .elementor-posts-container {
		display: flex !important;
		flex-direction: row !important;
		flex-wrap: nowrap !important;
		grid-template-columns: none !important;
		overflow-x: auto;
		overflow-y: hidden;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		gap: 12px !important;
		padding-bottom: 10px;
		scrollbar-width: none;
	}
	.elementor-75 .elementor-element-c07af8f > .e-con-inner::-webkit-scrollbar,
	.elementor-75 .elementor-element-604bf0e::-webkit-scrollbar,
	.elementor-75 .elementor-element-ebf037e::-webkit-scrollbar,
	.elementor-75 .elementor-element-de61ba6 .elementor-posts-container::-webkit-scrollbar { display: none; }
	.elementor-75 .elementor-element-c07af8f > .e-con-inner > *,
	.elementor-75 .elementor-element-604bf0e > *,
	.elementor-75 .elementor-element-ebf037e > *,
	.elementor-75 .elementor-element-de61ba6 .elementor-posts-container > * {
		flex: 0 0 80% !important;
		width: 80% !important;
		max-width: 80% !important;
		margin: 0 !important;
		scroll-snap-align: start;
	}

	/* Home: themes as a two-column grid */
	.elementor-75 .elementor-element-9c5456f > .e-con-inner {
		display: grid !important;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px !important;
	}
	.elementor-75 .elementor-element-9c5456f > .e-con-inner > * { width: auto !important; max-width: none !important; margin: 0 !important; }
}
