/*
 * MJ Fashion — component styles
 * Ported from the original HTML mockup and scoped to theme (mj-*) classes,
 * plus WooCommerce product-loop styling to match the mockup's product cards.
 * Design tokens (colors, fonts) come from theme.json; this file references the
 * generated CSS custom properties (var(--wp--preset--color--*)).
 */

:root {
	--mj-ink: var(--wp--preset--color--ink, #0D0D0D);
	--mj-cream: var(--wp--preset--color--cream, #FAF8F4);
	--mj-gold: var(--wp--preset--color--gold, #C8993A);
	--mj-gold-light: var(--wp--preset--color--gold-light, #F5E8C8);
	--mj-muted: var(--wp--preset--color--muted, #6B6560);
	--mj-border: var(--wp--preset--color--border, #E8E2D9);
	--mj-white: var(--wp--preset--color--white, #FFFFFF);
	--mj-red: var(--wp--preset--color--red, #C0392B);
}

/* ---------------------------------------------------------------- TOPBAR */
.mj-topbar {
	padding: 6px 28px;
}
.mj-topbar-text {
	letter-spacing: 0.1em;
	text-transform: uppercase;
	font-weight: 600;
	margin: 0;
}

/* ------------------------------------------------------------------- NAV */
.mj-nav {
	position: sticky;
	top: 0;
	z-index: 100;
	min-height: 56px;
	gap: 16px;
}
.mj-nav-brand a,
.mj-nav-brand {
	color: var(--mj-white) !important;
	text-decoration: none;
	letter-spacing: 0.04em;
}
.mj-nav-links a {
	color: #C8C4BC;
	font-weight: 500;
	text-decoration: none;
	transition: color 0.2s;
}
.mj-nav-links a:hover {
	color: var(--mj-gold);
}
.mj-nav-actions {
	gap: 16px;
}
/* WooCommerce nav icons (mini-cart + account) tinted for the dark bar */
.mj-nav-actions .wc-block-mini-cart__button,
.mj-nav-actions .wc-block-customer-account,
.mj-nav-actions .wc-block-customer-account a {
	color: #C8C4BC;
	transition: color 0.2s;
}
.mj-nav-actions .wc-block-mini-cart__button:hover,
.mj-nav-actions .wc-block-customer-account:hover {
	color: var(--mj-gold);
}
.mj-nav-actions .wc-block-mini-cart__badge {
	background: var(--mj-gold);
	color: var(--mj-ink);
}

/* ------------------------------------------------------------------ HERO */
.mj-hero { overflow: hidden; }
.mj-hero .mj-hero-inner { margin: 0 auto; gap: 0; }
.mj-eyebrow {
	font-size: 10px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	font-weight: 600;
	margin: 0 0 14px;
}
.mj-hero-title {
	font-size: clamp(38px, 5vw, 52px);
	line-height: 1.08;
	font-weight: 900;
	margin: 0 0 20px;
}
.mj-hero-title em { color: var(--mj-gold); font-style: normal; }
.mj-hero-sub {
	font-size: 13px;
	max-width: 340px;
	line-height: 1.8;
	font-weight: 300;
	margin: 0 0 28px;
}
.mj-hero-right { position: relative; min-height: 320px; }
.mj-hero-stage {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 360px;
}
.mj-tshirt-circle {
	position: absolute;
	width: 340px;
	height: 340px;
	border-radius: 50%;
	background: rgba(200, 153, 58, 0.08);
	top: 50%; left: 50%;
	transform: translate(-50%, -50%);
}
.mj-tshirt-svg { position: relative; z-index: 2; }
.mj-hero-badge {
	position: absolute;
	bottom: 24px; right: 24px;
	background: var(--mj-gold);
	color: var(--mj-ink);
	width: 72px; height: 72px;
	border-radius: 50%;
	display: flex; flex-direction: column;
	align-items: center; justify-content: center;
	font-size: 10px; font-weight: 700;
	text-transform: uppercase; text-align: center;
	line-height: 1.2; z-index: 3;
}

/* --------------------------------------------------------------- BUTTONS */
.mj-btn-primary .wp-block-button__link {
	background: var(--mj-gold);
	color: var(--mj-ink);
	border: none;
	transition: opacity 0.2s;
}
.mj-btn-primary .wp-block-button__link:hover { opacity: 0.85; }
.mj-btn-ghost .wp-block-button__link {
	background: transparent;
	color: var(--mj-white);
	border: 1px solid rgba(255, 255, 255, 0.3);
	transition: border-color 0.2s, color 0.2s;
}
.mj-btn-ghost .wp-block-button__link:hover {
	border-color: var(--mj-gold);
	color: var(--mj-gold);
}
.mj-btn-ghost-dark .wp-block-button__link {
	background: transparent;
	color: var(--mj-ink);
	border: 1px solid var(--mj-ink);
	transition: background 0.2s, color 0.2s;
}
.mj-btn-ghost-dark .wp-block-button__link:hover {
	background: var(--mj-ink);
	color: var(--mj-white);
}

/* -------------------------------------------------------- SECTION HEADER */
.mj-section-header { text-align: center; margin: 0 auto 36px; }
.mj-section-title {
	font-size: clamp(24px, 3vw, 30px);
	font-weight: 700;
	margin: 0;
}
.mj-section-divider {
	width: 48px; height: 2px;
	background: var(--mj-gold);
	margin: 14px auto 0;
}

/* ------------------------------------------------------------- TRUST BAR */
.mj-trust-bar .mj-trust-inner {
	max-width: 900px;
	margin: 0 auto;
	gap: 0;
}
.mj-trust-item {
	display: flex !important;
	align-items: center;
	gap: 10px;
	padding: 16px 20px;
	border-right: 1px solid var(--mj-border);
	flex-basis: 0;
	flex-grow: 1;
}
.mj-trust-item:last-child { border-right: none; }
.mj-trust-icon { font-size: 20px; margin: 0; line-height: 1; }
.mj-trust-strong { font-size: 12px; font-weight: 600; margin: 0; }
.mj-trust-strong strong { font-weight: 600; }
.mj-trust-span { font-size: 11px; margin: 0; }

/* ------------------------------------------------------------ CATEGORIES */
.mj-cat-grid { gap: 12px; }
.mj-cat-card {
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	cursor: pointer;
	text-decoration: none;
}
.mj-cat-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(13,13,13,0.85) 0%, rgba(13,13,13,0) 50%);
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 18px 16px;
}
.mj-cat-label {
	font-family: var(--wp--preset--font-family--heading, 'Playfair Display', serif);
	font-size: 16px;
	color: var(--mj-white);
	font-weight: 700;
	margin-bottom: 4px;
}
.mj-cat-count {
	font-size: 11px;
	color: var(--mj-gold);
	letter-spacing: 0.08em;
	font-weight: 500;
}
.mj-cat-card svg { transition: transform 0.3s ease; }
.mj-cat-card:hover svg { transform: scale(1.06); }

/* ---------------------------------------- WOOCOMMERCE PRODUCT GRID/CARDS */
.woocommerce ul.products,
.mj-products-section ul.products {
	display: grid !important;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.woocommerce ul.products li.product,
.mj-products-section ul.products li.product {
	width: auto !important;
	margin: 0 !important;
	float: none !important;
	background: var(--mj-white);
	border: 1px solid var(--mj-border);
	padding: 0 0 16px;
	transition: transform 0.2s, box-shadow 0.2s;
	position: relative;
}
.woocommerce ul.products li.product:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.woocommerce ul.products li.product a img {
	margin: 0 0 12px;
	background: #F5F3EF;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-family: var(--wp--preset--font-family--body, 'Inter', sans-serif);
	font-size: 13px;
	font-weight: 500;
	color: var(--mj-ink);
	padding: 0 14px;
	margin: 0 0 5px;
}
.woocommerce ul.products li.product .price {
	color: var(--mj-ink);
	font-size: 14px;
	font-weight: 600;
	padding: 0 14px;
	display: block;
}
.woocommerce ul.products li.product .price del {
	color: var(--mj-muted);
	font-weight: 400;
	margin-right: 6px;
}
.woocommerce ul.products li.product .price ins { text-decoration: none; color: var(--mj-red); }
.woocommerce ul.products li.product .star-rating { color: var(--mj-gold); margin: 0 14px 6px; font-size: 12px; }
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .added_to_cart {
	margin: 10px 14px 0;
	background: var(--mj-ink);
	color: var(--mj-white);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 8px 14px;
	border-radius: 0;
	transition: background 0.2s, color 0.2s;
}
.woocommerce ul.products li.product .button:hover {
	background: var(--mj-gold);
	color: var(--mj-ink);
}
.woocommerce span.onsale {
	background: var(--mj-red);
	color: var(--mj-white);
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	border-radius: 0;
	min-height: auto;
	min-width: auto;
	line-height: 1;
	padding: 4px 8px;
	top: 10px;
	left: 10px;
	margin: 0;
}

/* --------------------------------------------------------- CUSTOM BANNER */
.mj-custom-banner { position: relative; }
.mj-custom-banner::before,
.mj-custom-banner::after {
	content: '';
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
}
.mj-custom-banner::before {
	right: -80px; top: -80px;
	width: 400px; height: 400px;
	border: 1px solid rgba(200, 153, 58, 0.15);
}
.mj-custom-banner::after {
	right: -40px; top: -40px;
	width: 300px; height: 300px;
	border: 1px solid rgba(200, 153, 58, 0.1);
}
.mj-custom-left { position: relative; z-index: 1; max-width: 560px; }
.mj-custom-title {
	font-size: clamp(26px, 4vw, 34px);
	font-weight: 900;
	line-height: 1.15;
	margin: 12px 0 16px;
}
.mj-custom-title .mj-gold { color: var(--mj-gold); }
.mj-custom-sub { font-size: 13px; max-width: 380px; line-height: 1.8; font-weight: 300; margin: 0 0 28px; }
.mj-custom-steps { display: flex; flex-wrap: wrap; gap: 24px; margin-bottom: 28px; }
.mj-custom-step { display: flex; align-items: center; gap: 8px; }
.mj-step-num {
	width: 28px; height: 28px;
	border-radius: 50%;
	background: var(--mj-gold);
	color: var(--mj-ink);
	font-size: 11px; font-weight: 700;
	display: flex; align-items: center; justify-content: center;
	flex-shrink: 0;
}
.mj-step-text { font-size: 12px; color: #B0AAA2; }

/* ---------------------------------------------------------- TESTIMONIALS */
.mj-testi-grid { gap: 16px; }
.mj-testi-card {
	background: var(--mj-cream);
	border: 1px solid var(--mj-border);
	padding: 22px 20px;
}
.mj-testi-stars { font-size: 12px; margin: 0 0 10px; }
.mj-testi-text { font-size: 13px; line-height: 1.75; margin: 0 0 16px; font-style: italic; }
.mj-testi-author { display: flex; align-items: center; gap: 10px; }
.mj-testi-avatar {
	width: 36px; height: 36px;
	border-radius: 50%;
	background: var(--mj-gold);
	color: var(--mj-ink);
	display: flex; align-items: center; justify-content: center;
	font-size: 12px; font-weight: 700;
	flex-shrink: 0;
}
.mj-testi-meta { display: flex; flex-direction: column; }
.mj-testi-name { font-size: 12px; font-weight: 600; }
.mj-testi-loc { font-size: 11px; color: var(--mj-muted); }

/* ------------------------------------------------------------ NEWSLETTER */
.mj-newsletter-title { font-size: clamp(22px, 3vw, 26px); font-weight: 700; margin: 0 0 8px; }
.mj-newsletter-sub { font-size: 13px; margin: 0 0 24px; }
.mj-newsletter-form { display: flex; max-width: 420px; margin: 0 auto; }
.mj-newsletter-input {
	flex: 1;
	padding: 12px 16px;
	border: 1px solid var(--mj-border);
	background: var(--mj-white);
	font-size: 13px;
	font-family: inherit;
	outline: none;
}
.mj-newsletter-input:focus { border-color: var(--mj-gold); }
.mj-newsletter-btn {
	background: var(--mj-ink);
	color: var(--mj-white);
	border: none;
	padding: 12px 24px;
	font-size: 12px; font-weight: 600;
	letter-spacing: 0.08em; text-transform: uppercase;
	cursor: pointer;
	transition: background 0.2s;
}
.mj-newsletter-btn:hover { background: var(--mj-gold); color: var(--mj-ink); }

/* ---------------------------------------------------------------- FOOTER */
.mj-footer-grid { gap: 32px; }
.mj-footer-brand a,
.mj-footer-brand {
	font-size: 20px;
	color: var(--mj-white) !important;
	text-decoration: none;
	display: inline-block;
	margin-bottom: 12px;
}
.mj-footer-desc { font-size: 12px; line-height: 1.8; max-width: 220px; }
.mj-footer-h {
	font-size: 11px; font-weight: 600;
	letter-spacing: 0.12em; text-transform: uppercase;
	margin: 0 0 14px;
}
.mj-footer-links { list-style: none; margin: 0; padding: 0; }
.mj-footer-links li { margin-bottom: 8px; }
.mj-footer-links a {
	font-size: 12px;
	color: #B0AAA2;
	text-decoration: none;
	transition: color 0.2s;
}
.mj-footer-links a:hover { color: var(--mj-gold); }
.mj-footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding-top: 20px;
	margin-top: 12px;
	gap: 12px;
}
.mj-footer-copy { font-size: 11px; color: #6B6560; margin: 0; }
.mj-footer-pay { gap: 8px; }
.mj-pay-badge {
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.12);
	padding: 4px 8px;
	font-size: 10px; font-weight: 600;
	color: #B0AAA2;
	border-radius: 3px;
	margin: 0;
}

/* ----------------------------------------------------------- WC GENERAL */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce #respond input#submit,
.woocommerce .single_add_to_cart_button {
	background: var(--mj-ink) !important;
	color: var(--mj-white) !important;
	border-radius: 0 !important;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-weight: 600;
	transition: background 0.2s, color 0.2s;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce .single_add_to_cart_button:hover {
	background: var(--mj-gold) !important;
	color: var(--mj-ink) !important;
}
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info { border-top-color: var(--mj-gold); }
.woocommerce-breadcrumb { font-size: 12px; color: var(--mj-muted); }

/* -------------------------------------------------------- RESPONSIVENESS */
@media (max-width: 781px) {
	.mj-nav { flex-wrap: wrap; gap: 10px; }
	.mj-trust-bar .mj-trust-inner { flex-wrap: wrap; }
	.mj-trust-item { flex-basis: 50%; border-right: none; border-bottom: 1px solid var(--mj-border); }
	.woocommerce ul.products,
	.mj-products-section ul.products { grid-template-columns: repeat(2, 1fr); }
	.mj-custom-steps { flex-direction: column; gap: 14px; }
}
@media (max-width: 480px) {
	.mj-trust-item { flex-basis: 100%; }
	.woocommerce ul.products,
	.mj-products-section ul.products { grid-template-columns: 1fr; }
	.mj-newsletter-form { flex-direction: column; }
}
