/* MickydCommerce — bridge styles over Wicca main.css inside WordPress themes */
.mc-toast {
	position: fixed;
	right: 1.25rem;
	bottom: 1.25rem;
	z-index: 99999;
	padding: 0.85rem 1.15rem;
	background: #1a1a1a;
	color: #fff;
	font-family: Outfit, sans-serif;
	font-size: 0.9rem;
	border-radius: 4px;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 0.2s ease, transform 0.2s ease;
	pointer-events: none;
}
.mc-toast.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.mc-notice {
	padding: 0.9rem 1.1rem;
	border-radius: 4px;
	font-family: Outfit, sans-serif;
}
.mc-notice-error {
	background: #fde8e8;
	color: #8a1f1f;
}
.mc-notice-success {
	background: #e8f5e9;
	color: #1b5e20;
}

.mc-shop-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	justify-content: center;
	margin-bottom: 1.5rem;
}

.mc-shop-filters .btn {
	padding: 0.35rem 0.75rem;
	font-size: 0.72rem;
	letter-spacing: 0.03em;
	gap: 0.25rem;
}

.mc-shop-filters .btn.is-active {
	background: var(--accent, #6b4f3a);
	color: #fff;
	border-color: var(--accent, #6b4f3a);
}

.mc-block-categories {
	margin: 1rem 0 0.5rem;
}

.mc-block-products.section {
	padding-top: 0;
}

.account-nav a.account-nav__logout {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	width: 100%;
	padding: 0.75rem 1rem;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
}

.mc-orders-table {
	width: 100%;
	border-collapse: collapse;
	font-family: Outfit, sans-serif;
}
.mc-orders-table th,
.mc-orders-table td {
	padding: 0.75rem 0.5rem;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
	text-align: left;
}

/* Soften WP theme wrappers around shortcode content */
.entry-content > .section:first-child,
.wp-block-post-content > .section:first-child {
	margin-top: 0;
}

.mc-shipping-status {
	margin: 0 0 0.85rem;
	font-family: Outfit, sans-serif;
	font-size: 0.9rem;
	color: inherit;
	opacity: 0.8;
}


.stock-badge.is-out-of-stock {
	color: #b91c1c;
}

.stock-badge.is-backorder {
	color: #c2410c;
}

.product-card__stock-banner {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	display: block;
	padding: 0.55rem 0.75rem;
	text-align: center;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #fff;
	pointer-events: none;
	font-family: Outfit, sans-serif;
}

.product-card__stock-banner--outofstock {
	background: rgba(153, 27, 27, 0.92);
}

.product-card__stock-banner--backorder {
	background: rgba(146, 64, 14, 0.92);
}

/* Cart block: keep mockup layout inside WP content wrappers */
.entry-content .cart-layout,
.wp-block-post-content .cart-layout,
.wp-block-mickydcommerce-cart .cart-layout {
	max-width: none;
}

.entry-content .cart-layout > *,
.wp-block-post-content .cart-layout > * {
	margin: 0;
}

.coupon-form input:disabled,
.coupon-form button:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

.checkout-step__num i {
	font-size: 0.65rem;
}

.payment-option:has(input:disabled) {
	opacity: 0.55;
	cursor: not-allowed;
}

.payment-option small {
	color: var(--text-muted, #a89f92);
	font-weight: 400;
}

.mc-square-fields {
	margin-top: 1rem;
}

.mc-square-fields__label {
	display: block;
	margin-bottom: 0.5rem;
	font-size: 0.9rem;
	font-weight: 500;
}

.mc-square-card {
	background: #f7f4ef;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 8px;
	padding: 0.85rem 1rem;
	min-height: 56px;
}

.mc-square-status {
	margin: 0.5rem 0 0;
	font-size: 0.85rem;
	color: var(--text-muted, #a89f92);
	min-height: 1.25em;
}

.mc-square-status.is-error {
	color: #c45c4a;
}

.mc-direct-transfer {
	margin-top: 1rem;
	padding: 1rem 1.15rem;
	border: 1px solid rgba(232, 196, 138, 0.28);
	background: rgba(17, 13, 9, 0.45);
	border-radius: 8px;
}

.mc-direct-transfer__intro,
.mc-direct-transfer__note {
	margin: 0 0 0.75rem;
	font-size: 0.92rem;
	color: var(--text-muted, #a89f92);
}

.mc-direct-transfer__note {
	margin-bottom: 0;
}

.mc-direct-transfer__details {
	margin: 0;
	display: grid;
	gap: 0.55rem;
}

.mc-direct-transfer__details > div {
	display: grid;
	grid-template-columns: 8.5rem 1fr;
	gap: 0.5rem;
	align-items: baseline;
}

.mc-direct-transfer__details dt {
	margin: 0;
	font-size: 0.85rem;
	color: var(--text-muted, #a89f92);
	font-weight: 500;
}

.mc-direct-transfer__details dd {
	margin: 0;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.mc-direct-transfer--received {
	margin: 1.5rem 0;
}

.mc-direct-transfer--received h3 {
	margin: 0 0 0.75rem;
}

.checkout-form .form-group small {
	color: var(--text-muted, #a89f92);
	font-weight: 400;
}

.checkout-form h3 small {
	font-weight: 400;
	color: var(--text-muted, #a89f92);
}

/* Product page title — slightly smaller than default page heroes */
.hero--product .hero__text h1 {
	font-size: clamp(1.85rem, 3.5vw, 2.75rem);
	margin-bottom: 0.5rem;
}

/* Product gallery — fixed 280×280 main + thumbs */
.mc-product-gallery {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	width: 280px;
	max-width: 100%;
}

.mc-product-gallery__main {
	width: 280px;
	height: 280px;
	max-width: 100%;
	border-radius: var(--radius-lg, 20px);
	overflow: hidden;
	border: 1px solid var(--border, rgba(212, 168, 106, 0.1));
	background: var(--bg-card, #211c17);
	position: relative;
}

.mc-product-gallery__main--zoomable {
	cursor: zoom-in;
}

.mc-product-gallery__main--zoomable:focus-visible {
	outline: 2px solid var(--gold, #c9a96e);
	outline-offset: 2px;
}

.mc-product-gallery__image {
	width: 280px;
	height: 280px;
	max-width: 100%;
	object-fit: cover;
	display: block;
}

/* Gallery zoom modal */
.mc-gallery-zoom {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.25rem;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.22s ease, visibility 0.22s ease;
}

.mc-gallery-zoom.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.mc-gallery-zoom__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(8, 6, 4, 0.88);
	backdrop-filter: blur(4px);
	cursor: zoom-out;
}

.mc-gallery-zoom__dialog {
	position: relative;
	z-index: 1;
	max-width: min(92vw, 960px);
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	animation: mc-gallery-zoom-in 0.22s ease;
}

.mc-gallery-zoom__image {
	display: block;
	max-width: min(92vw, 960px);
	max-height: calc(90vh - 2.5rem);
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 12px;
	border: 1px solid rgba(201, 169, 110, 0.28);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
	background: #14110e;
}

.mc-gallery-zoom__counter {
	margin: 0.75rem 0 0;
	font-size: 0.9rem;
	color: rgba(232, 201, 138, 0.85);
	letter-spacing: 0.04em;
}

.mc-gallery-zoom__nav {
	position: absolute;
	top: 50%;
	z-index: 2;
	transform: translateY(-50%);
	width: 2.75rem;
	height: 2.75rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(201, 169, 110, 0.35);
	border-radius: 999px;
	background: rgba(28, 23, 18, 0.92);
	color: var(--gold-light, #e8c98a);
	cursor: pointer;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.mc-gallery-zoom__nav:hover {
	background: #2a221a;
	color: #fff;
}

.mc-gallery-zoom__nav:focus-visible {
	outline: 2px solid var(--gold, #c9a96e);
	outline-offset: 2px;
}

.mc-gallery-zoom__nav--prev {
	left: max(0.75rem, calc(50% - min(46vw, 520px) - 3.5rem));
}

.mc-gallery-zoom__nav--next {
	right: max(0.75rem, calc(50% - min(46vw, 520px) - 3.5rem));
}

.mc-gallery-zoom__close {
	position: absolute;
	top: -0.75rem;
	right: -0.75rem;
	z-index: 2;
	width: 2.5rem;
	height: 2.5rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(201, 169, 110, 0.35);
	border-radius: 999px;
	background: #1c1712;
	color: var(--gold-light, #e8c98a);
	cursor: pointer;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.mc-gallery-zoom__close:hover {
	background: #2a221a;
	color: #fff;
}

.mc-gallery-zoom__close:focus-visible {
	outline: 2px solid var(--gold, #c9a96e);
	outline-offset: 2px;
}

body.mc-gallery-zoom-open {
	overflow: hidden;
}

@keyframes mc-gallery-zoom-in {
	from {
		opacity: 0;
		transform: scale(0.94);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

@media (prefers-reduced-motion: reduce) {
	.mc-gallery-zoom,
	.mc-gallery-zoom__dialog {
		transition: none;
		animation: none;
	}
}

@media (max-width: 900px) {
	.mc-gallery-zoom__nav--prev {
		left: 0.5rem;
	}

	.mc-gallery-zoom__nav--next {
		right: 0.5rem;
	}
}

@media (max-width: 640px) {
	.mc-gallery-zoom__close {
		top: 0.25rem;
		right: 0.25rem;
	}

	.mc-gallery-zoom__nav {
		width: 2.35rem;
		height: 2.35rem;
	}

	.mc-gallery-zoom__image {
		max-width: 88vw;
		max-height: calc(85vh - 2.5rem);
	}
}

.mc-product-gallery__thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.mc-product-gallery__thumb {
	width: 64px;
	height: 64px;
	padding: 0;
	border: 2px solid var(--border, rgba(212, 168, 106, 0.1));
	border-radius: 8px;
	overflow: hidden;
	background: var(--bg-elevated, #181410);
	cursor: pointer;
}

.mc-product-gallery__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.mc-product-gallery__thumb.is-active,
.mc-product-gallery__thumb:hover {
	border-color: var(--gold, #c9a96e);
}

.mc-variation-form .form-group {
	margin: 1rem 0;
}

/* Product tabs: no scrollbar artifact on the tab row */
.tabs .tab-list,
.tab-container .tab-list {
	overflow: hidden;
	scrollbar-width: none;
}

.tabs .tab-list::-webkit-scrollbar,
.tab-container .tab-list::-webkit-scrollbar {
	display: none;
	width: 0;
	height: 0;
}

/* Product description — match Cost CRM TinyMCE output */
.mc-product-description {
	font-family: var(--font-body, Outfit, system-ui, sans-serif);
	font-size: 0.95rem;
	line-height: 1.7;
	color: var(--text-muted, #a89f92);
}

.mc-product-description > *:first-child {
	margin-top: 0;
}

.mc-product-description > *:last-child {
	margin-bottom: 0;
}

.mc-product-description p {
	margin: 0 0 1.1rem;
	color: var(--text-muted, #a89f92);
	font-size: 0.95rem;
	line-height: 1.7;
}

.mc-product-description h2,
.mc-product-description h3,
.mc-product-description h4 {
	font-family: var(--font-display, "Cormorant Garamond", Georgia, serif);
	color: var(--text, #f5efe6);
	font-weight: 600;
	line-height: 1.3;
	margin: 1.5rem 0 0.75rem;
}

.mc-product-description h2 { font-size: 1.75rem; }
.mc-product-description h3 { font-size: 1.4rem; }
.mc-product-description h4 { font-size: 1.15rem; }

.mc-product-description strong,
.mc-product-description b {
	color: var(--text, #f5efe6);
	font-weight: 600;
}

.mc-product-description a {
	color: var(--gold, #c9a96e);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.mc-product-description a:hover {
	color: var(--gold-light, #e8c98a);
}

.mc-product-description ul,
.mc-product-description ol {
	margin: 0 0 1.1rem;
	padding-left: 1.35rem;
	color: var(--text-muted, #a89f92);
}

.mc-product-description li {
	margin-bottom: 0.4rem;
	line-height: 1.65;
}

.mc-product-description ul {
	list-style: disc;
}

.mc-product-description ol {
	list-style: decimal;
}

.mc-product-description blockquote {
	margin: 1.25rem 0;
	padding: 0.85rem 1.15rem;
	border-left: 3px solid var(--gold, #c9a96e);
	background: var(--bg-elevated, #181410);
	border-radius: 0 8px 8px 0;
	color: var(--text, #f5efe6);
	font-style: italic;
}

.mc-product-description blockquote p:last-child {
	margin-bottom: 0;
}

.mc-product-description hr {
	border: 0;
	border-top: 1px solid var(--border, rgba(212, 168, 106, 0.1));
	margin: 1.5rem 0;
}

.mc-product-description img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	margin: 0.75rem 0;
}

.mc-product-details-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.mc-product-details-list li {
	padding: 0.65rem 0;
	border-bottom: 1px solid var(--border, rgba(212, 168, 106, 0.1));
}

.mc-product-details-list li:last-child {
	border-bottom: 0;
}

.mc-product-details-list strong {
	color: var(--text, #f5efe6);
	margin-right: 0.35rem;
}

/* Storefront pages: content uses ~80% of the viewport (not the front page) */
body.mc-storefront:not(.home):not(.front-page) main .container,
body.mc-storefront:not(.home):not(.front-page) .entry-content .container,
body.mc-storefront:not(.home):not(.front-page) .wp-block-post-content .container,
body.mc-storefront:not(.home):not(.front-page) .mc-block > .container,
body.mc-storefront:not(.home):not(.front-page) .section > .container,
body.mc-storefront:not(.home):not(.front-page) .hero--page .container {
	width: 80%;
	max-width: 80%;
}

/* Front page with shop blocks: fixed 1540px column, centered */
body.home.mc-storefront main .container,
body.home.mc-storefront .entry-content .container,
body.home.mc-storefront .wp-block-post-content .container,
body.home.mc-storefront .mc-block > .container,
body.home.mc-storefront .section > .container,
body.front-page.mc-storefront main .container,
body.front-page.mc-storefront .entry-content .container,
body.front-page.mc-storefront .wp-block-post-content .container,
body.front-page.mc-storefront .mc-block > .container,
body.front-page.mc-storefront .section > .container {
	width: 100%;
	max-width: 1540px;
	margin-left: auto;
	margin-right: auto;
}

/* Product page: tighter content width */
body.mc-storefront.mc-product-page main .container,
body.mc-storefront.mc-product-page .entry-content .container,
body.mc-storefront.mc-product-page .wp-block-post-content .container,
body.mc-storefront.mc-product-page .mc-block > .container,
body.mc-storefront.mc-product-page .section > .container,
body.mc-storefront.mc-product-page .hero--page .container,
body.mc-storefront.mc-product-page .page-general__storefront-content .container {
	width: min(92%, 980px);
	max-width: 980px;
}

/* Tighter top spacing on Shop / Cart / Checkout heroes & first section */
body.mc-storefront .hero.hero--page {
	padding-top: 1.25rem;
	padding-bottom: 2.5rem;
}

body.mc-storefront main > .section:first-of-type,
body.mc-storefront .entry-content > .section:first-of-type,
body.mc-storefront .wp-block-post-content > .section:first-of-type,
body.mc-storefront .entry-content > *:first-child .section:first-of-type {
	padding-top: 1.5rem;
}

body.mc-storefront .section__header {
	margin-bottom: 2rem;
}

@media (max-width: 768px) {
	body.mc-storefront:not(.home):not(.front-page) main .container,
	body.mc-storefront:not(.home):not(.front-page) .entry-content .container,
	body.mc-storefront:not(.home):not(.front-page) .wp-block-post-content .container,
	body.mc-storefront:not(.home):not(.front-page) .mc-block > .container,
	body.mc-storefront:not(.home):not(.front-page) .section > .container,
	body.mc-storefront:not(.home):not(.front-page) .hero--page .container {
		width: 100%;
		max-width: 100%;
	}
}
