/*
	Theme Name: Manifesto Child
	Theme URI: http://manifesto.clapat-themes.com/
	Description: Responsive Wordpress Theme
	Template: manifesto
	Version: 1.0
	Author: You
	Author URI: http://your site
	License: Themeforest
	License: GNU General Public License version 3.0
	License URI: http://www.gnu.org/licenses/gpl-3.0.html
	Tags: agency, ajax, business, clapat, clean, creative, gallery, minimal, modern, photography, portfolio, premium, responsive, showcase
	Text Domain: manifesto-child
*/


/*------------------------------------------------------------------

Add here your own styles
-------------------------------------------------------------------*/


/*==================================================================
  SINGLE PRODUCT: kill horizontal scroll. The related/upsell grid
  (ul.products) has negative side margins (-60px) PLUS 30px padding
  with content-box, making it 1500px wide inside a 1440 viewport.
  border-box keeps the padding inside, so it fits edge-to-edge.
==================================================================*/
.single-product ul.products { box-sizing: border-box; }

/* Track Order form — prominent CTA button matching the checkout aesthetic */
.woocommerce form.track_order { max-width: 100%; }
.woocommerce form.track_order .button,
form.track_order button[name="track"] {
	display: inline-flex; align-items: center; justify-content: center;
	margin-top: 6px;
	padding: 15px 40px;
	background: #0c0c0c; color: #fff;
	border: 1px solid #0c0c0c; border-radius: 4px;
	font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
	cursor: pointer; transition: background 0.25s ease, color 0.25s ease;
}
.woocommerce form.track_order .button:hover,
form.track_order button[name="track"]:hover { background: #fff; color: #0c0c0c; }

/* Allow selecting text on the page (theme disables it on html/body/#main).
   Sliders/cursor keep their own user-select:none, so dragging still works. */
html, body, #main { -webkit-user-select: text; -moz-user-select: text; -ms-user-select: text; user-select: text; }

/* Order number shown BIG in the Thank-You hero, click to copy */
.np-hero-order {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	margin-top: 26px;
	/* revealed by JS (.np-in) AFTER the hero title/subtitle animation, so it never appears first */
	opacity: 0;
	transform: translateY(34px);
	will-change: opacity, transform;
}
.np-hero-order.np-in {
	opacity: 1;
	transform: none;
	transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}
.np-hero-order-label {
	font-size: 12px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	opacity: 0.5;
}
.np-hero-order-number {
	font-family: inherit;
	font-size: clamp(46px, 8vw, 104px);
	line-height: 1;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: inherit;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
	transition: opacity 0.2s ease;
}
.np-hero-order-number:hover { opacity: 0.6; }
.np-hero-order-copied {
	font-size: 13px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #1f7a3d;
	opacity: 0;
	transform: translateY(-4px);
	transition: opacity 0.25s ease, transform 0.25s ease;
}
.np-hero-order-copied.show { opacity: 1; transform: translateY(0); }

/* Clean inline order-item meta (e.g. "Size: L") on cart / order / received pages */
.np-item-meta { display: inline; font-size: 0.85em; opacity: 0.85; }
.np-item-meta strong { font-weight: 600; }
.wc-item-meta, .variation { margin: 6px 0 0; padding: 0; list-style: none; }
.wc-item-meta li, .variation dt, .variation dd { display: inline; margin: 0; }
.wc-item-meta li p, .variation dd p { display: inline; margin: 0; }


/*==================================================================
  HOMEPAGE: clipped-image on WHITE, but bottom gradient stays BLACK
  so the block bridges smoothly into the black sections below.
  (JS sets the gradient colour inline from data-bgcolor; !important wins.)
==================================================================*/
.np-clip-to-black .clipped-image-gradient { background-color: #0c0c0c !important; }
/* The clip block sits in a WHITE .light-section-wrapper; the next .dark-section-wrapper meets it at
   the same Y, but sub-pixel rounding leaves a ~1px white seam. Pull the dark block up (top:-20px)
   and compensate with padding so its content stays put while it covers the seam. */
.light-section-wrapper:has(.np-clip-to-black) + .dark-section-wrapper {
	position: relative;
	top: -20px;
	z-index: 1;
	padding-top: 20px;
}
/* White heading on this section (it overlays the dark image / black gradient). */
.np-clip-to-black .has-mask-fill > span {
	-webkit-text-fill-color: rgba(255,255,255,0.1) !important;
	background-image: linear-gradient(#fff, #fff) !important;
}


/*==================================================================
  NOPANIC SHOP GRID  (homepage product grid)
==================================================================*/

.np-shop { width: 100%; }
.np-shop *, .np-shop *::before, .np-shop *::after { box-sizing: border-box; }

/* Keep the shop grid inside a centered container (theme content width) instead of full-bleed. */
.np-shop { max-width: 1300px; margin-left: auto; margin-right: auto; }
.np-shop-section .wp-block-heading { max-width: 1300px; margin-left: auto; margin-right: auto; }

/* Shop archive uses our homepage grid (.np-products); hide WooCommerce's default loop.
   Sibling selector (not body-class) so it also works after the theme's AJAX page loads. */
.np-shop ~ ul.products { display: none !important; }
.np-shop ~ .woocommerce-pagination { display: none !important; }

/* The white section already comes from the container (.light-section + data-bgcolor #fff). */
.np-shop-section .np-shop { color: #0c0c0c; }

.np-products {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 50px 30px;
	align-items: start;
}
.np-products.columns-3 { grid-template-columns: repeat(3, 1fr); }
.np-products.columns-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 1024px) { .np-products { grid-template-columns: repeat(3, 1fr); gap: 40px 24px; } }
@media (max-width: 768px)  { .np-products { grid-template-columns: repeat(2, 1fr); gap: 32px 18px; } }
@media (max-width: 480px)  { .np-products { grid-template-columns: 1fr; } }

.np-product { position: relative; margin: 0; }

/* --- Image --- */
.np-product-media-wrap {
	position: relative;
	overflow: hidden;
	background: #f3f3f3;
	border-radius: 6px;
	aspect-ratio: 3 / 4;
}
.np-product-thumb {
	display: block;
	position: absolute;
	inset: 0;
	overflow: hidden;
}
.np-product-thumb .np-product-media,
.np-product-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.np-product-thumb .np-product-media { position: relative; }
.np-product-thumb img {
	position: absolute;
	inset: 0;
	transition: transform 0.7s cubic-bezier(0.2,0.7,0.2,1), opacity 0.5s ease;
}
.np-product-thumb img.np-img-hover { opacity: 0; }
.np-product:hover .np-product-thumb img { transform: scale(1.06); }
.np-product.has-hover-img:hover .np-product-thumb img:not(.np-img-hover) { opacity: 0; }
.np-product.has-hover-img:hover .np-product-thumb img.np-img-hover { opacity: 1; }

.np-badge {
	position: absolute;
	top: 12px; left: 12px;
	background: #0c0c0c; color: #fff;
	font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
	padding: 4px 10px; border-radius: 3px; z-index: 4;
	pointer-events: none;
}

/* "In cart" flag — shown only when the card has the .in-cart class */
.np-incart-badge {
	position: absolute;
	top: 12px; right: 12px;
	display: none;
	align-items: center;
	gap: 5px;
	background: #1f7a3d; color: #fff;
	font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
	padding: 4px 10px; border-radius: 3px; z-index: 4;
	pointer-events: none;
}
.np-product.in-cart .np-incart-badge { display: inline-flex; }
.np-product.in-cart .np-product-media-wrap { box-shadow: inset 0 0 0 2px #1f7a3d; }

/* --- Info --- */
.np-product-info { padding: 16px 2px 0; }
.np-product-title {
	display: block;
	color: inherit;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.3;
	text-decoration: none;
	margin-bottom: 4px;
}
.np-product-title:hover { opacity: 0.6; }
.np-product-price { font-size: 15px; color: #0c0c0c; font-weight: 600; }
/* Struck-through (old) price: same colour as the main price, just NOT bold */
.np-product-price del, .np-product-price del * { opacity: 1; font-weight: 400 !important; color: #0c0c0c; }
.np-product-price del { margin-right: 8px; }
/* New / current price: dark and bold */
.np-product-price ins, .np-product-price ins * { color: #0c0c0c !important; background: transparent; text-decoration: none; opacity: 1; font-weight: 600 !important; }

/* --- Actions: overlay on the image, slide up on hover (no layout shift) --- */
.np-product-actions {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	z-index: 3;
	padding: 14px;
	background: rgba(255,255,255,0.96);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	transform: translateY(101%);
	opacity: 0;
	transition: transform 0.4s cubic-bezier(0.2,0.7,0.2,1), opacity 0.3s ease;
}
.np-product-media-wrap:hover .np-product-actions,
.np-product:focus-within .np-product-actions {
	transform: translateY(0);
	opacity: 1;
}

/* --- Size buttons --- */
.np-sizes { display: flex; gap: 8px; margin-bottom: 10px; }
.np-size {
	min-width: 38px;
	padding: 7px 10px;
	border: 1px solid rgba(0,0,0,0.25);
	background: transparent;
	color: inherit;
	font-size: 13px;
	font-weight: 500;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.2s ease;
	line-height: 1;
}
.np-size:hover { border-color: #0c0c0c; }
.np-size.active { background: #0c0c0c; color: #fff; border-color: #0c0c0c; }

/* --- Add to cart button --- */
.np-add {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 12px 18px;
	background: #0c0c0c;
	color: #fff;
	border: 1px solid #0c0c0c;
	border-radius: 4px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.25s ease, color 0.25s ease, opacity 0.25s ease;
}
.np-add:hover { background: #fff; color: #0c0c0c; }
.np-add[disabled] { opacity: 0.4; cursor: not-allowed; }
.np-add[disabled]:hover { background: #0c0c0c; color: #fff; }
.np-add.loading { opacity: 0.6; pointer-events: none; }
.np-add.added { background: #1f7a3d; border-color: #1f7a3d; color: #fff; }
.np-add.np-select-options { background: transparent; color: #0c0c0c; }
.np-add.np-select-options:hover { background: #0c0c0c; color: #fff; }

/* On touch / no-hover devices, always show the actions overlay. */
@media (hover: none), (max-width: 768px) {
	.np-product-actions { transform: translateY(0); opacity: 1; }
}

/*==================================================================
  HEADER CART — ONE custom cart (.np-cart) on every page.
  It uses .np-cart-link (NOT .widgettitle) so the theme's Shop()/parallax/
  magnetic NEVER touch it => identical structure & position on direct load
  AND after AJAX navigation. Fully styled here, independent of shop.css.
==================================================================*/

/* The burger's .button-wrap is shifted right (-30px) and its parallax-wrap is 80px wide, so it
   extends rightward and OVERLAPS the cart. Remove that shift so the burger sits in its layout slot,
   cleanly to the LEFT of the cart. */
#header-container .button-wrap.right.menu { right: 0 !important; }

.site-header-cart.menu.np-cart {
	display: flex;
	align-items: center;
	height: 80px;
	position: relative;
	float: right;
	margin: 0 0 0 2px;   /* gap between the burger and the cart */
	padding: 0;
}
.np-cart .np-cart-link {
	position: relative;
	z-index: 60; /* stay above the fullscreen menu overlay (nav) so the basket shows when menu is open */
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 80px;
	margin: 0;
	padding: 0;
	text-decoration: none;
	cursor: pointer;
}
.np-cart .np-cart-icon {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
}
.np-cart .np-cart-icon::before {
	content: "\f291";
	font-family: "FontAwesome";
	font-size: 18px;
	line-height: 1;
	text-align: center;
	display: block;
	color: #000;
}
/* Icon colour follows the header state EXACTLY like the menu burger does (incl. menu open). */
.light-content .np-cart .np-cart-icon::before { color: #fff; }
.white-header .np-cart .np-cart-icon::before { color: #fff; }
.light-content .white-header .np-cart .np-cart-icon::before { color: #000; }
.light-content .white-header.over-white-section .np-cart .np-cart-icon::before,
.show-loader1 .light-content .white-header .np-cart .np-cart-icon::before { color: #fff; }
.dark-content-header .np-cart .np-cart-icon::before { color: #000 !important; }
.light-content-header .np-cart .np-cart-icon::before { color: #fff !important; }

/* Live count bubble, anchored to the top-right of the icon. */
.np-cart .np-cart-count {
	position: absolute;
	top: 16px; right: -5px;
	min-width: 16px; height: 16px;
	padding: 0 3px; box-sizing: border-box;
	background: #e23b3b; color: #fff !important;
	font-size: 10px; font-weight: 700; line-height: 16px;
	border-radius: 8px; text-align: center; white-space: nowrap;
	border: 1px solid rgba(255,255,255,0.25);
	z-index: 6; pointer-events: none;
}
.np-cart .np-cart-count:not(.has-items) { display: none; }

/* Mini-cart dropdown, anchored under the icon and revealed on hover. */
.np-cart .widget_shopping_cart_content {
	position: absolute;
	top: calc(100% - 8px);
	right: 0; left: auto;
	width: 300px; max-width: 86vw;
	background: #000;
	padding: 20px; box-sizing: border-box;
	border-radius: 3px;
	font-size: 14px;
	opacity: 0; visibility: hidden;
	transform: translateY(10px);
	transition: opacity .22s ease, visibility .22s ease, transform .22s ease;
	z-index: 40;
}
.np-cart:hover .widget_shopping_cart_content { opacity: 1; visibility: visible; transform: none; }

/* Dropdown contents — items / total / buttons. */
.np-cart ul.cart_list { margin: 0 0 14px; padding: 0; max-height: 320px; overflow-y: auto; list-style: none; }
.np-cart ul.cart_list li { padding: 0 2em 0 0; position: relative; color: #fff; list-style: none; margin: 0 0 14px; overflow: hidden; }
.np-cart ul.cart_list li a.remove { position: absolute; top: 0; right: 0; left: auto; color: #777 !important; }
.np-cart ul.cart_list li a.remove:hover { color: #f33a3a !important; background: transparent; }
.np-cart ul.cart_list li img { float: left; margin: 0 16px 0 0; width: 50px; height: auto; box-shadow: none; }
.np-cart ul.cart_list li a { display: block; font-weight: 400; color: #fff; text-decoration: none; }
.np-cart ul.cart_list li a::before { display: none; }
.np-cart ul.cart_list li .quantity { font-size: 12px; opacity: 0.6; color: #fff; }
.np-cart ul.cart_list li dl { display: none; }
.np-cart .woocommerce-mini-cart__total,
.np-cart .total { border-top: 1px solid #333; padding: 14px 0 0; margin: 0 0 14px; color: #fff; }
.np-cart .woocommerce-mini-cart__total strong,
.np-cart .total strong { color: #fff; }
.np-cart .woocommerce-mini-cart__total .woocommerce-Price-amount.amount,
.np-cart .total .woocommerce-Price-amount.amount { float: right; color: #fff; }
.np-cart .woocommerce-mini-cart__empty-message { margin: 0; font-size: 14px; text-align: center; color: #fff; }
.np-cart .woocommerce-mini-cart__buttons,
.np-cart .buttons { margin: 0; overflow: hidden; }
.np-cart .woocommerce-mini-cart__buttons a,
.np-cart .buttons a { display: inline-block; padding: 0 20px; line-height: 30px; font-size: 12px; color: #fff; border: 2px solid #fff; border-radius: 3px; text-decoration: none; }
.np-cart .woocommerce-mini-cart__buttons a:hover,
.np-cart .buttons a:hover { background-color: #fff; color: #000; }
.np-cart .woocommerce-mini-cart__buttons .button.checkout.wc-forward { float: right; margin-right: 0; }


/* On-brand "added to cart" toast (single product + grid) */
#np-toast {
	position: fixed;
	left: 50%; bottom: 28px;
	transform: translate(-50%, 20px);
	background: #0c0c0c; color: #fff;
	padding: 14px 24px; border-radius: 999px;
	font-size: 14px; font-weight: 500; line-height: 1.2;
	box-shadow: 0 12px 34px rgba(0,0,0,0.32);
	z-index: 99999;
	opacity: 0; visibility: hidden;
	transition: opacity .3s ease, transform .3s ease, visibility .3s;
	max-width: calc(100vw - 28px);
	display: inline-flex; align-items: center; gap: 8px;
}
#np-toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
#np-toast a { color: #fff !important; text-decoration: underline; margin-left: 8px; font-weight: 700; white-space: nowrap; }
#np-toast .np-toast-tick { display: inline-flex; width: 20px; height: 20px; border-radius: 50%; background: #1f7a3d; color: #fff; align-items: center; justify-content: center; font-size: 12px; flex: 0 0 auto; }
#np-toast.np-toast-error { background: #e23b3b; }
#np-toast.np-toast-error .np-toast-tick { display: none; }


/*==================================================================
  WooCommerce notices / errors — match the site (clean, on-brand)
==================================================================*/
.woocommerce-info,
.woocommerce-message,
.woocommerce-noreviews,
.woocommerce-error {
	box-sizing: border-box;
	border: 1px solid #ededed !important;
	border-left: 3px solid #0c0c0c !important;
	border-top: 1px solid #ededed !important;
	background-color: #f7f7f7 !important;
	color: #0c0c0c !important;
	border-radius: 8px !important;
	padding: 18px 22px !important;
	font-size: 15px !important;
	line-height: 1.5 !important;
	list-style: none !important;
	margin: 0 0 24px !important;
}
/* The default WC notice glyphs render as broken boxes here — hide them. */
.woocommerce-info::before,
.woocommerce-message::before,
.woocommerce-noreviews::before,
.woocommerce-error::before { display: none !important; content: none !important; }
/* Force readable dark text everywhere inside the notices (field names were white). */
.woocommerce-info, .woocommerce-info *,
.woocommerce-message, .woocommerce-message *,
.woocommerce-error, .woocommerce-error * { color: #0c0c0c !important; }
.woocommerce-error a { text-decoration: none !important; }
.woocommerce-info a, .woocommerce-message a { text-decoration: underline !important; font-weight: 700 !important; }

/* We show our own toast — hide WooCommerce's appended "View cart" link + button ✓ state. */
.added_to_cart.wc-forward { display: none !important; }
.single_add_to_cart_button.added::after,
.np-add.added::after { display: none !important; content: none !important; }
.woocommerce-message { border-left-color: #1f7a3d !important; }
.woocommerce-message::before { color: #1f7a3d !important; }
.woocommerce-error { border-left-color: #e23b3b !important; background-color: #fdf1f1 !important; }
.woocommerce-error::before { color: #e23b3b !important; }
.woocommerce-error li { margin: 0 0 6px !important; padding: 0 !important; list-style: none !important; }
.woocommerce-error li:last-child { margin-bottom: 0 !important; }
.woocommerce-info a,
.woocommerce-message a,
.woocommerce-error a,
.woocommerce-info a.button,
.woocommerce-message a.button {
	color: #0c0c0c !important;
	font-weight: 600 !important;
	background: none !important;
	padding: 0 !important;
	border: 0 !important;
	text-decoration: underline !important;
	box-shadow: none !important;
}

/*==================================================================
  Single product page — custom size selector (simple apparel)
==================================================================*/
.np-single-sizes { margin: 0 0 22px; }
.np-single-sizes-label {
	display: block;
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	opacity: 0.6;
	margin-bottom: 10px;
}


/*==================================================================
  FIXES: spinner, reviews, mobile header/grid/product, track form
==================================================================*/

/* Hide WooCommerce's off-centre ".loading::after" gear on our own buttons (we use a toast). */
.np-add.loading::after, .np-add.loading::before { display: none !important; content: none !important; }

/* Product reviews — align avatar with the author/date line */
.woocommerce #reviews #comments ol.commentlist li .comment_container {
	display: flex; align-items: flex-start; gap: 16px; border: 0; padding: 0; background: none;
}
.woocommerce #reviews #comments ol.commentlist li img.avatar {
	position: static; float: none; width: 52px; height: 52px; border-radius: 50%;
	margin: 0; border: 0; padding: 0; background: none;
}
.woocommerce #reviews #comments ol.commentlist li .comment-text {
	margin: 0 !important; padding: 0 !important; border: 0 !important; flex: 1; min-width: 0;
}
.woocommerce #reviews .comment-text .meta { margin: 0 0 8px !important; }
.woocommerce-review__author { font-weight: 700; }

/* Single product — more breathing room at the top */
.single-product div.product { padding-top: 40px; }

/* Track Order form — stack fields and centre the button */
.woocommerce form.track_order .form-row-first,
.woocommerce form.track_order .form-row-last {
	width: 100% !important; float: none !important; margin-right: 0 !important; margin-left: 0 !important;
}
.woocommerce form.track_order .form-row { text-align: center; }
.woocommerce form.track_order .form-row label { text-align: left; display: block; }
.woocommerce form.track_order .button { display: inline-block !important; margin: 8px auto 0 !important; float: none !important; }

/* ---------- Mobile / tablet ---------- */
@media (max-width: 1024px) {
	/* Vertically center the logo in the header so it lines up with the burger/cart on the right —
	   absolute centering works at ANY header height (80px phone, 100px tablet). */
	#header-container { position: relative; }
	#logo {
		position: absolute !important;
		left: 18px;
		top: 50% !important;
		transform: translateY(-50%) !important;
		margin: 0 !important;
		height: auto !important;
		display: block !important;
	}
	#logo img { height: 36px !important; }
}
@media (max-width: 768px) {
	#logo img { height: 30px !important; }
	.np-shop { padding-left: 18px; padding-right: 18px; }
	.single-product div.product { padding-top: 20px; }
}


/*==================================================================
  Shipping method selector (cart + checkout) — the theme stretches all
  inputs full-width, turning the radios into giant ovals. Reset them.
==================================================================*/
#shipping_method, .woocommerce-shipping-methods { list-style: none !important; margin: 0 !important; padding: 0 !important; }
#shipping_method li, .woocommerce-shipping-methods li {
	display: flex !important; align-items: center; gap: 9px;
	text-align: left; margin: 0 0 10px; padding: 0;
}
#shipping_method li:last-child, .woocommerce-shipping-methods li:last-child { margin-bottom: 0; }
#shipping_method input[type="radio"], .woocommerce-shipping-methods input[type="radio"] {
	-webkit-appearance: radio !important; appearance: radio !important;
	width: 18px !important; height: 18px !important;
	min-width: 18px !important; max-width: 18px !important;
	margin: 0 !important; padding: 0 !important;
	accent-color: #0c0c0c;
	flex: 0 0 auto; vertical-align: middle; position: static;
}
#shipping_method label, .woocommerce-shipping-methods label {
	display: inline !important; margin: 0 !important; font-weight: 400;
}
/* In the cart/checkout totals, keep the shipping block left-aligned */
.cart_totals .woocommerce-shipping-methods,
.woocommerce-checkout-review-order-table .woocommerce-shipping-totals td { text-align: left !important; }

/* ---- Thank-you page: receipt + track-order block ---- */
.np-ty-block {
	max-width: 640px;
	margin: 38px auto 0;
	text-align: center;
}
.np-ty-block .np-ty-email {
	font-size: 15px;
	line-height: 1.6;
	color: #0c0c0c;
	margin: 0 0 22px;
}
.np-ty-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
	margin-bottom: 16px;
}
.np-btn {
	display: inline-block;
	padding: 14px 30px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	border: 1px solid #0c0c0c;
	background: #0c0c0c;
	color: #fff !important;
	cursor: pointer;
	border-radius: 0;
	text-decoration: none !important;
	transition: background .25s ease, color .25s ease;
}
.np-btn:hover { background: #fff; color: #0c0c0c !important; }
.np-btn-ghost { background: transparent; color: #0c0c0c !important; }
.np-btn-ghost:hover { background: #0c0c0c; color: #fff !important; }
.np-ty-note {
	font-size: 13px;
	color: #6b6b6b;
	margin: 0;
}
.np-ty-note a { color: #0c0c0c; font-weight: 600; text-decoration: underline; }

/* ---- FAQ accordion (shop style) ---- */
.np-faq { max-width: 820px; margin: 0 auto; }
.np-faq-item { border-bottom: 1px solid rgba(12,12,12,0.14); }
.np-faq-item:first-child { border-top: 1px solid rgba(12,12,12,0.14); }
.np-faq-q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	width: 100%;
	margin: 0;
	padding: 26px 4px;
	background: none;
	border: 0;
	cursor: pointer;
	text-align: left;
	color: #0c0c0c;
	font-size: 19px;
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: -0.01em;
	transition: opacity .25s ease;
}
.np-faq-q:hover { opacity: 0.62; }
.np-faq-q-text { flex: 1 1 auto; }
.np-faq-icon { position: relative; flex: 0 0 auto; width: 16px; height: 16px; }
.np-faq-icon::before,
.np-faq-icon::after {
	content: "";
	position: absolute;
	top: 50%; left: 50%;
	background: #0c0c0c;
	transform: translate(-50%, -50%);
	transition: transform .3s ease, opacity .3s ease;
}
.np-faq-icon::before { width: 16px; height: 2px; }
.np-faq-icon::after  { width: 2px; height: 16px; }
.np-faq-q[aria-expanded="true"] .np-faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.np-faq-a {
	overflow: hidden;
	max-height: 0;
	transition: max-height .4s ease;
}
.np-faq-a-inner { padding: 0 4px 28px; }
.np-faq-a p {
	margin: 0;
	max-width: 680px;
	font-size: 15px;
	line-height: 1.7;
	color: #4a4a4a;
}
.np-faq-a a { color: #0c0c0c; font-weight: 600; text-decoration: underline; }
@media (max-width: 600px) {
	.np-faq-q { font-size: 16px; padding: 20px 2px; gap: 16px; }
	.np-faq-a p { font-size: 14px; }
}

/* Tighten the big hero -> content gap on the FAQ, legal (Privacy/Terms) and order-received pages. */
body:has(.np-faq) #hero-caption.enable-padding-bottom,
body:has(.np-legal) #hero-caption.enable-padding-bottom,
body.woocommerce-order-received #hero-caption.enable-padding-bottom { padding-bottom: 48px !important; }
body:has(.np-faq) .content-row.row_padding_top,
body:has(.np-legal) .content-row.row_padding_top { padding-top: 36px !important; }
body.woocommerce-order-received .woocommerce { padding-top: 0 !important; }

/* ---- Premium printable receipt (a dedicated document, rendered only for print/PDF) ---- */
#np-receipt-doc { display: none; }

@media print {
	/* show ONLY our dedicated receipt document; collapse everything else */
	body > *:not(#np-receipt-doc) { display: none !important; }
	html, body { background: #fff !important; height: auto !important; min-height: 0 !important; overflow: visible !important; margin: 0 !important; padding: 0 !important; }
	#np-receipt-doc { display: block !important; }
	#np-receipt-doc, #np-receipt-doc * {
		-webkit-print-color-adjust: exact !important; print-color-adjust: exact !important;
		box-sizing: border-box;
	}

	.rcpt { max-width: 660px; margin: 0 auto; padding: 0; color: #111; font-size: 13px; line-height: 1.6; }
	/* keep all receipt links black & clickable (Chrome keeps real <a href> as PDF link annotations) */
	#np-receipt-doc a { color: #111 !important; -webkit-text-fill-color: #111 !important; text-decoration: none; }
	#np-receipt-doc .rcpt-foot a { text-decoration: underline; text-underline-offset: 2px; }

	/* masthead: real black logo + order number */
	.rcpt-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 16px; }
	.rcpt-logo { width: 150px; height: auto; max-height: 38px; display: block; flex: 0 0 auto; }
	.rcpt-logo-text { font-size: 24px; font-weight: 800; letter-spacing: -.02em; color: #111; flex: 0 0 auto; }
	.rcpt-head-meta { text-align: right; flex: 0 0 auto; }
	.rcpt-doc-label { font-size: 9px; letter-spacing: .24em; text-transform: uppercase; color: #9a9a9a; margin-bottom: 5px; }
	.rcpt-order-no { font-size: 22px; font-weight: 700; letter-spacing: -.01em; color: #111; }
	.rcpt-rule { height: 2px; background: #111; }

	/* meta row */
	.rcpt-meta { display: flex; flex-wrap: wrap; gap: 14px 48px; padding: 18px 0 20px; border-bottom: 1px solid #ededed; }
	.rcpt-meta > div { display: flex; flex-direction: column; }
	.rcpt-meta span { font-size: 8.5px; letter-spacing: .18em; text-transform: uppercase; color: #9a9a9a; margin-bottom: 4px; }
	.rcpt-meta strong { font-size: 13px; font-weight: 600; color: #111; }

	/* items */
	table.rcpt-items { width: 100%; border-collapse: collapse; margin: 22px 0 0; }
	table.rcpt-items th { background: #111 !important; color: #fff !important; -webkit-text-fill-color: #fff !important; font-size: 8.5px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; text-align: left; padding: 9px 12px; }
	table.rcpt-items th.r, table.rcpt-items td.r { text-align: right; white-space: nowrap; }
	table.rcpt-items tbody tr, table.rcpt-items td { background: transparent !important; }
	table.rcpt-items td { padding: 14px 12px; border-bottom: 1px solid #f0f0f0; vertical-align: top; font-size: 13px; }
	.it-name { display: block; font-size: 14px; font-weight: 600; color: #111; }
	.it-meta { display: block; font-size: 11px; color: #9a9a9a; margin-top: 3px; }

	/* totals */
	.rcpt-totals { margin: 18px 0 0 auto; width: 58%; padding: 0 12px; }
	.rcpt-totals .row { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 0; }
	.rcpt-totals .row .lbl { color: #9a9a9a; text-transform: uppercase; letter-spacing: .1em; font-size: 9.5px; }
	.rcpt-totals .row .val { color: #333; font-size: 13px; }
	.rcpt-totals .row.total { margin-top: 8px; padding-top: 12px; border-top: 1px solid #111; }
	.rcpt-totals .row.total .lbl { color: #111; font-size: 11px; letter-spacing: .12em; }
	.rcpt-totals .row.total .val { color: #111; font-size: 18px; font-weight: 700; }

	/* addresses */
	.rcpt-addr { display: flex; gap: 48px; margin: 36px 0 0; }
	.rcpt-addr > div { flex: 1; }
	.rcpt-addr h4 { font-size: 8.5px; letter-spacing: .2em; text-transform: uppercase; color: #9a9a9a; margin: 0 0 9px; font-weight: 600; }
	.rcpt-addr address { font-style: normal; font-size: 12.5px; line-height: 1.75; color: #333; }

	/* footer */
	.rcpt-foot { margin: 40px 0 0; padding-top: 18px; border-top: 1px solid #ededed; text-align: center; }
	.rcpt-foot .thanks { font-size: 14px; font-weight: 600; color: #111; margin: 0 0 6px; letter-spacing: .01em; }
	.rcpt-foot .sub { font-size: 11px; color: #9a9a9a; margin: 0 0 4px; line-height: 1.6; }
	.rcpt-foot .contact { font-size: 10.5px; color: #9a9a9a; margin: 6px 0 0; letter-spacing: .06em; text-transform: uppercase; }

	tr { page-break-inside: avoid; }
	/* margin:0 removes the browser's auto header/footer ("Order received – NOPANIC", date, URL);
	   we provide our own page padding on the document instead. */
	@page { margin: 0; }
	#np-receipt-doc { padding: 16mm 15mm; }
}

/* ---- Contact form (CF7) submit state ----
   Hide CF7's default spinner entirely — instead, pulse the Submit button while the form is sending
   (CF7 adds .submitting to the form during the AJAX request). Cleaner + clearly visible. */
.wpcf7 .wpcf7-spinner { display: none !important; }

@keyframes np-submit-pulse {
	0%, 100% { opacity: 1; }
	50%      { opacity: 0.4; }
}
.wpcf7-form.submitting .wpcf7-submit {
	animation: np-submit-pulse 0.85s ease-in-out infinite;
	cursor: progress;
}

/* ---- All inputs at least 16px text ----
   Every text field / textarea / select renders at 16px (also stops iOS Safari from zooming the page
   when a field is focused, which happens for any input under 16px). */
input:not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
textarea,
select,
.wpcf7 input,
.wpcf7 textarea,
.wpcf7 select,
.wpcf7-form-control-wrap input,
.wpcf7-form-control-wrap textarea,
.wpcf7-form-control-wrap select,
.woocommerce input.input-text,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce .quantity input.qty,
.woocommerce-cart input,
.woocommerce-checkout input,
form.track_order input,
.select2-container .select2-search__field,
.select2-container--default .select2-selection--single .select2-selection__rendered {
	font-size: 16px !important;
}

/* ---- Contact form (CF7) response & validation messages ----
   No boxes/borders — just centered text (overrides the theme's bordered/inline-flex pill). */
.wpcf7 form .wpcf7-response-output,
.wpcf7 form.init .wpcf7-response-output,
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output,
.wpcf7 form.sent .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output {
	border: 0 !important;
	border-radius: 0 !important;
	background: none !important;
	display: block !important;
	width: 100% !important;
	margin: 1.6em auto 0 !important;
	padding: 6px 12px !important;
	text-align: center !important;
	font-size: 13px !important;
	line-height: 1.6;
}
/* Field-level validation tips: plain centered red text, no box. */
.wpcf7 .wpcf7-not-valid-tip,
#contact-formular .wpcf7-not-valid-tip {
	border: 0 !important;
	background: none !important;
	text-align: center;
}

/* ---- Accessibility: skip-to-content link (visible only on keyboard focus) ---- */
.np-skip-link {
	position: fixed;
	top: -60px;
	left: 12px;
	z-index: 100000;
	background: #0c0c0c;
	color: #fff !important;
	padding: 12px 20px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-decoration: none;
	border-radius: 0 0 4px 4px;
	transition: top 0.2s ease;
}
.np-skip-link:focus { top: 0; outline: 2px solid #fff; outline-offset: -4px; }

/*==================================================================
  MOBILE FIXES (header, shop overflow, info block, footer spacing)
==================================================================*/

/* Our shop uses the custom .np-products grid, NOT the theme's WooCommerce sidebar — hide the
   off-canvas shop sidebar + its toggle: they caused horizontal scroll on mobile and the toggle
   (#open-sidebar-nav) sat right on top of the burger ("broken menu"). */
body.woocommerce #sidebar,
#open-sidebar-nav { display: none !important; }

/* No page should scroll horizontally. */
html, body { max-width: 100%; overflow-x: hidden; }

/* Touch devices can't hover, so the mini-cart dropdown is unusable there — hide it and let the
   basket simply link to /cart/ on tap. */
@media (hover: none), (max-width: 768px) {
	.np-cart .widget_shopping_cart_content { display: none !important; }
}

@media (max-width: 768px) {
	/* Keep the cart off the screen edge — match the logo's gutter. */
	.site-header-cart.menu.np-cart { margin-right: 18px; }

	/* Footer copyright — smaller on mobile. */
	.copyright, .footer-middle .copyright { font-size: 12px !important; line-height: 1.5; }

	/* "Added to cart" toast — compact near-full-width bar instead of a huge wrapping pill. */
	#np-toast {
		left: 14px; right: 14px; bottom: 16px;
		transform: translateY(24px);
		max-width: none;
		padding: 12px 16px; font-size: 13px; border-radius: 12px;
	}
	#np-toast.show { transform: translateY(0); }
	#np-toast a { margin-left: auto; }

	/* WooCommerce order-details / address tables (thank-you, checkout review): align cells to the top
	   and tighten so the price doesn't float below a wrapped product name. */
	.woocommerce-order .shop_table th, .woocommerce-order .shop_table td,
	.woocommerce-table--order-details th, .woocommerce-table--order-details td,
	.woocommerce-checkout-review-order-table th, .woocommerce-checkout-review-order-table td {
		vertical-align: top !important;
		padding: 12px 10px !important;
		font-size: 14px; line-height: 1.4;
	}

	/* Clamp all WooCommerce tables (cart, checkout review, order details) to the viewport — some had a
	   fixed/over-wide box (~470px) that poked past the screen. */
	.woocommerce table.cart, .woocommerce-cart-form, .woocommerce-cart-form table,
	.woocommerce table.shop_table, .woocommerce table.shop_table_responsive,
	.woocommerce .cart-collaterals, .woocommerce .cart_totals {
		width: 100% !important;
		max-width: 100% !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
		box-sizing: border-box;
	}
	.woocommerce table.shop_table th, .woocommerce table.shop_table td { box-sizing: border-box; max-width: 100%; word-break: break-word; }
	/* The theme lays out each cart row as display:flex with a negative side margin + a 140px image
	   pad, which made the row ~470px (poked off-screen). Clamp every cart row/cell to the box. */
	.woocommerce table.cart tr,
	.woocommerce table.cart tr td,
	.woocommerce-cart-form__cart-item {
		margin-left: 0 !important;
		margin-right: 0 !important;
		max-width: 100% !important;
		box-sizing: border-box !important;
	}
	/* Cart product thumbnail a touch smaller so the row fits comfortably. */
	.woocommerce table.cart td.product-thumbnail img { width: 64px; height: auto; }

	/* The homepage info block (2023 | Portfolio Website | description) squashed into tiny columns —
	   stack it full width on mobile. */
	.wp-block-columns { display: block !important; }
	.wp-block-columns .wp-block-column { width: 100% !important; flex-basis: 100% !important; margin: 0 0 22px !important; }

	/* Shop grid overflowed ~18px because the theme gives the archive container a negative right
	   margin and an over-wide box — clamp it to the viewport with even gutters. */
	.np-shop {
		max-width: 100% !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
		padding-left: 18px !important;
		padding-right: 18px !important;
		box-sizing: border-box !important;
	}

	/* Breathing room before the (reveal) footer so content doesn't butt against it. */
	.dark-section-wrapper:last-of-type,
	.light-section-wrapper:last-of-type { padding-bottom: 60px; }
	.woocommerce .site-main, .woocommerce-page .site-main,
	.np-shop-section { padding-bottom: 60px !important; }
	#content-scroll { padding-bottom: 40px; }
}

/* ---- Legal pages (Privacy Policy / Terms) ---- */
.np-legal { max-width: 760px; }
.np-legal h3 { margin: 34px 0 12px; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.np-legal p { margin: 0 0 16px; font-size: 15px; line-height: 1.75; color: #2b2b2b; }
.np-legal ul { margin: 0 0 18px; padding-left: 20px; }
.np-legal li { margin: 0 0 9px; font-size: 15px; line-height: 1.7; color: #2b2b2b; }
.np-legal a { color: #0c0c0c; text-decoration: underline; font-weight: 600; }
.np-legal strong { color: #0c0c0c; }
.np-legal .np-legal-updated { margin: 0 0 26px; color: #9a9a9a; font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; }

/* ---- Footer: legal links on their own line, below the copyright ---- */
.copyright .np-foot-links {
	display: block;
	margin-top: 9px;
	font-size: 0.82em;
	opacity: 0.78;
}
.copyright .np-foot-links a { text-decoration: none; }
.copyright .np-foot-links a:hover { text-decoration: underline; }
.copyright .np-foot-sep { margin: 0 9px; opacity: 0.5; }

/* Homepage hero title ("a state of mind") — small, tagline-style (24px) per owner.
   Scoped to the homepage's autoscroll video hero (NOT body.home) so it survives the theme's AJAX
   page transitions, which don't update the <body> class but DO reload #main (and the hero with it). */
#hero.autoscroll .hero-title,
#hero.autoscroll .hero-title span {
	font-size: 24px !important;
	line-height: 1.3 !important;
	letter-spacing: 0.02em;
}

/* WordPress sets .wp-block-columns to flex-wrap:nowrap (≥782px) + a block gap, but those layout
   styles are lost after the theme's AJAX page transitions (only #main reloads) — columns then wrap
   and the gap collapses, breaking the homepage info block. Restore the intended desktop layout. */
@media (min-width: 769px) {
	.wp-block-columns { flex-wrap: nowrap !important; gap: 32px !important; align-items: flex-start !important; }
}

/* Telegram-bot help lines (thank-you hero block + track order page) */
.np-ty-help { margin-top: 8px !important; }
.np-track-help { max-width: 820px; margin: 22px auto 0; font-size: 14px; line-height: 1.7; color: #6b6b6b; }
.np-track-help a { color: #0c0c0c; font-weight: 600; text-decoration: underline; }

/* ------------------------------------------------------------------
   Mobile fullscreen-menu fixes
   ------------------------------------------------------------------ */

/* The fullscreen menu overlay must always cover the WHOLE visible screen. The overlay is
   position:fixed, so 100dvh (which tracks the live viewport) means the black overlay always
   fully covers it — even as the mobile URL bar shows/hides and even if the page scrolls behind.
   (We deliberately do NOT lock body scroll: forcing overflow:hidden on <html> jumped the page
   to the top on open and could get stuck after AJAX navigation. The fixed full-screen overlay
   already hides whatever is behind it, so no lock is needed.) */
@media (max-width: 1024px) {
	header.fullscreen-menu nav {
		height: 100dvh !important;
		min-height: 100dvh;
	}
	/* Keep navigation items (e.g. "Track Order") on a single line. */
	header .flexnav li > a,
	header nav .flexnav a {
		white-space: nowrap;
	}

	/* Clipped-image statement ("STAND OUT FROM THE CROWD…"): disable the IMAGE scroll-reveal
	   animation on mobile (the pin + clip-path/scale reveal). The image is shown immediately,
	   fully un-clipped, at natural size — no pinned scroll section. The TEXT mask-fill animation
	   is intentionally left ON (childscript also kills the image's ScrollTrigger on mobile). */
	.clipped-image-wrapper {
		height: auto !important;
	}
	.clipped-image-content {
		padding-top: 0 !important;
	}
	.clipped-image {
		height: auto !important;
		clip-path: inset(0 0 0 0) !important;
		-webkit-clip-path: inset(0 0 0 0) !important;
		transform: none !important;
		-webkit-transform: none !important;
	}
	.clipped-image img {
		height: auto !important;
	}
	.clipped-image-gradient {
		display: none !important;
	}
}
