/* ==========================================================================
   NT Footwear - design system
   Palette: Cream + Forest Green (quiet-luxury, wholesale-appropriate)
   ========================================================================== */
:root {
	--ntf-cream:        #f7f5ee;
	--ntf-cream-alt:    #eceee0;
	--ntf-card-bg:      #fffefb;
	--ntf-green:        #4c6b45;
	--ntf-green-dark:   #395234;
	--ntf-green-light:  #7c9a72;
	--ntf-charcoal:     #2b2f23;
	--ntf-text:         #2f3a2a;
	--ntf-text-muted:   #6f7767;
	--ntf-border:       #ddded0;
	--ntf-radius:       10px;
	--ntf-radius-sm:    6px;
	--ntf-shadow:       0 6px 24px rgba(43, 47, 35, 0.08);
	--ntf-font-heading: 'Fraunces', Georgia, 'Times New Roman', serif;
	--ntf-font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
	font-family: var(--ntf-font-body);
	color: var(--ntf-text);
	background: var(--ntf-cream);
}

h1, h2, h3, h4,
.ntf-hero-title,
.ntf-section-heading {
	font-family: var(--ntf-font-heading);
}

a { color: var(--ntf-green); }
a:hover { color: var(--ntf-green-dark); }

/* Site title wordmark (used when no logo has been imported) */
.site-title,
.site-title a,
.kadence-title,
.site-branding .site-title a {
	font-family: var(--ntf-font-heading) !important;
	font-weight: 600 !important;
	letter-spacing: 0.01em;
	color: var(--ntf-charcoal) !important;
}

/* Hide the theme's own title/breadcrumb bar when the shop page is acting
   as the homepage - the hero replaces it. */
body.home .page-header,
body.home .entry-header,
body.home .woocommerce-breadcrumb,
body.home nav.woocommerce-breadcrumb {
	display: none !important;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.ntf-btn,
a.button,
button.button,
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
	font-family: var(--ntf-font-body);
	font-weight: 600;
	letter-spacing: 0.01em;
	border-radius: var(--ntf-radius-sm) !important;
	border: 1px solid transparent;
	padding: 0.85em 1.6em;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ntf-btn,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce #respond input#submit.alt {
	background: var(--ntf-green) !important;
	color: #fff !important;
	border-color: var(--ntf-green) !important;
}
.ntf-btn:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
	background: var(--ntf-green-dark) !important;
	border-color: var(--ntf-green-dark) !important;
	color: #fff !important;
}

.ntf-btn--ghost {
	background: transparent !important;
	color: #fff !important;
	border-color: rgba(255,255,255,0.65) !important;
}
.ntf-btn--ghost:hover {
	background: rgba(255,255,255,0.12) !important;
	border-color: #fff !important;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.ntf-hero {
	position: relative;
	min-height: 560px;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	margin: 0 0 3rem;
	background: var(--ntf-charcoal);
}

.ntf-hero-media {
	position: absolute;
	inset: 0;
}

.ntf-hero-video,
.ntf-hero-gif {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ntf-hero-slideshow {
	position: absolute;
	inset: 0;
}

.ntf-hero-slide {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	opacity: 0;
}

.ntf-hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, rgba(20,24,16,0.82) 0%, rgba(20,24,16,0.35) 55%, rgba(20,24,16,0.15) 100%);
}

.ntf-hero-content {
	position: relative;
	z-index: 2;
	max-width: 640px;
	padding: 3rem clamp(1.25rem, 5vw, 4rem);
	color: #fff;
}

.ntf-hero-eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--ntf-green-light);
	margin: 0 0 0.75rem;
}

.ntf-hero-title {
	font-size: clamp(2rem, 4vw, 3.1rem);
	line-height: 1.12;
	font-weight: 500;
	margin: 0 0 1rem;
	color: #fff;
}

.ntf-hero-sub {
	font-size: 1.05rem;
	line-height: 1.55;
	color: rgba(255,255,255,0.88);
	margin: 0 0 1.75rem;
	max-width: 52ch;
}

.ntf-hero-actions {
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
}

/* ==========================================================================
   Section shell
   ========================================================================== */
.ntf-section {
	max-width: 1200px;
	margin: 0 auto 3.5rem;
	padding: 0 clamp(1rem, 4vw, 2rem);
}

.ntf-section-heading,
.ntf-catalog-heading {
	font-size: 1.5rem;
	font-weight: 500;
	margin: 0 0 1.25rem;
	color: var(--ntf-charcoal);
}

.ntf-catalog-heading {
	max-width: 1200px;
	margin: 0 auto 1.25rem;
	padding: 0 clamp(1rem, 4vw, 2rem);
}

/* ==========================================================================
   Category tiles
   ========================================================================== */
.ntf-category-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1rem;
}

.ntf-category-tile {
	position: relative;
	display: block;
	border-radius: var(--ntf-radius);
	overflow: hidden;
	aspect-ratio: 3 / 4;
	text-decoration: none;
	box-shadow: var(--ntf-shadow);
}

.ntf-category-tile-image {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	transition: transform 0.4s ease;
}
.ntf-category-tile:hover .ntf-category-tile-image {
	transform: scale(1.06);
}

.ntf-category-tile::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, rgba(20,24,16,0.75) 0%, rgba(20,24,16,0.05) 60%);
}

.ntf-category-tile-label {
	position: relative;
	z-index: 1;
	display: block;
	color: #fff;
	font-weight: 600;
	font-size: 1.05rem;
	padding: 1rem;
	align-self: flex-end;
}
.ntf-category-tile {
	display: flex;
	align-items: flex-end;
}

/* ==========================================================================
   Bestsellers
   ========================================================================== */
.ntf-bestseller-row {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.25rem;
}

.ntf-bestseller-card {
	display: block;
	text-decoration: none;
	color: var(--ntf-text);
	background: var(--ntf-card-bg);
	border: 1px solid var(--ntf-border);
	border-radius: var(--ntf-radius);
	overflow: hidden;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.ntf-bestseller-card:hover {
	box-shadow: var(--ntf-shadow);
	transform: translateY(-2px);
}

.ntf-bestseller-image {
	aspect-ratio: 4 / 5;
	background-size: cover;
	background-position: center;
	background-color: var(--ntf-cream-alt);
}

.ntf-bestseller-name {
	display: block;
	font-weight: 600;
	font-size: 0.95rem;
	padding: 0.9rem 0.9rem 0.15rem;
}

.ntf-bestseller-price {
	display: block;
	font-size: 0.85rem;
	color: var(--ntf-text-muted);
	padding: 0 0.9rem 0.9rem;
}

/* ==========================================================================
   Trust bar
   ========================================================================== */
.ntf-trust-bar {
	background: var(--ntf-cream-alt);
	padding: 2.5rem 0;
	margin-bottom: 3.5rem;
}

.ntf-trust-grid {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 clamp(1rem, 4vw, 2rem);
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.5rem;
}

.ntf-trust-item {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.ntf-trust-icon {
	width: 28px;
	height: 28px;
	margin-bottom: 0.4rem;
	background-color: var(--ntf-green);
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
}
.ntf-trust-icon--box {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M21 8l-9-5-9 5 9 5 9-5z'/%3E%3Cpath d='M3 8v8l9 5 9-5V8'/%3E%3Cpath d='M12 13v8'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M21 8l-9-5-9 5 9 5 9-5z'/%3E%3Cpath d='M3 8v8l9 5 9-5V8'/%3E%3Cpath d='M12 13v8'/%3E%3C/svg%3E");
}
.ntf-trust-icon--check {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8 12.5l2.5 2.5L16 9'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8 12.5l2.5 2.5L16 9'/%3E%3C/svg%3E");
}
.ntf-trust-icon--doc {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M6 2h9l5 5v15H6z'/%3E%3Cpath d='M9 13h6M9 17h6M9 9h2'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M6 2h9l5 5v15H6z'/%3E%3Cpath d='M9 13h6M9 17h6M9 9h2'/%3E%3C/svg%3E");
}
.ntf-trust-icon--truck {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M1 3h13v13H1z'/%3E%3Cpath d='M14 8h4l4 4v4h-8V8z'/%3E%3Ccircle cx='6' cy='18' r='2'/%3E%3Ccircle cx='18' cy='18' r='2'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M1 3h13v13H1z'/%3E%3Cpath d='M14 8h4l4 4v4h-8V8z'/%3E%3Ccircle cx='6' cy='18' r='2'/%3E%3Ccircle cx='18' cy='18' r='2'/%3E%3C/svg%3E");
}

.ntf-trust-title {
	font-weight: 600;
	font-size: 0.95rem;
	color: var(--ntf-charcoal);
}

.ntf-trust-desc {
	font-size: 0.85rem;
	color: var(--ntf-text-muted);
	line-height: 1.45;
}

/* ==========================================================================
   Product grid / cards (WooCommerce overrides)
   ========================================================================== */
ul.products li.product {
	background: var(--ntf-card-bg);
	border: 1px solid var(--ntf-border);
	border-radius: var(--ntf-radius);
	padding: 0.75rem 0.75rem 1rem !important;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}
ul.products li.product:hover {
	box-shadow: var(--ntf-shadow);
	transform: translateY(-2px);
}
ul.products li.product img {
	border-radius: var(--ntf-radius-sm);
}
ul.products li.product .woocommerce-loop-product__title {
	font-weight: 600;
	color: var(--ntf-text);
}
ul.products li.product .price {
	color: var(--ntf-green-dark);
	font-weight: 600;
}

/* ==========================================================================
   Existing wholesale UI (approval / grid ordering) - restyled to match
   ========================================================================== */
.ntf-login-for-price {
	font-style: italic;
	color: var(--ntf-text-muted);
}

.ntf-login-prompt {
	background: var(--ntf-cream-alt);
	border-left: 3px solid var(--ntf-green);
	padding: 12px 16px;
	margin: 14px 0;
	border-radius: 0 var(--ntf-radius-sm) var(--ntf-radius-sm) 0;
}
.ntf-login-prompt a { font-weight: 600; }

.ntf-grid-order-form {
	margin-top: 1.5em;
}

.ntf-grid-table {
	border-collapse: collapse;
	margin-bottom: 1em;
	width: 100%;
}

.ntf-grid-table th,
.ntf-grid-table td {
	border: 1px solid var(--ntf-border);
	padding: 8px 12px;
	text-align: center;
}

.ntf-grid-table thead th {
	background: var(--ntf-cream-alt);
	font-weight: 600;
	color: var(--ntf-charcoal);
}

.ntf-grid-qty {
	width: 60px;
	text-align: center;
	border-radius: 4px;
	border: 1px solid var(--ntf-border);
}

.ntf-grid-na {
	color: #ccc;
}

.ntf-grid-price {
	font-weight: 600;
	margin: 0.5em 0;
	color: var(--ntf-green-dark);
}

.ntf-grid-message {
	display: inline-block;
	margin-left: 10px;
	font-weight: 600;
	color: var(--ntf-green-dark);
}

.ntf-grid-message.ntf-error {
	color: #a3352b;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer.site-footer,
.site-footer {
	background: var(--ntf-charcoal) !important;
	color: rgba(255,255,255,0.75) !important;
}
.site-footer a { color: #fff !important; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
	.ntf-category-grid,
	.ntf-bestseller-row,
	.ntf-trust-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.ntf-hero {
		min-height: 460px;
	}
}

@media (max-width: 520px) {
	.ntf-category-grid,
	.ntf-bestseller-row,
	.ntf-trust-grid {
		grid-template-columns: 1fr 1fr;
	}
	.ntf-hero-actions {
		flex-direction: column;
		align-items: stretch;
	}
}
