/* ==========================================================================
   Crystal Shop - theme styles (Shopify Dawn-inspired)
   Colours/width come from Theme Settings via the CSS variables below.
   ========================================================================== */

:root {
	--ocs-primary: #121212;
	--ocs-secondary: #121212;
	--ocs-accent-bg: #f4f1ec;
	--ocs-topbar-bg: #121212;
	--ocs-topbar-color: #ffffff;
	--ocs-container: 1200px;
	--ocs-text: rgba(18, 18, 18, .75);
	--ocs-muted: rgba(18, 18, 18, .6);
	--ocs-border: rgba(18, 18, 18, .1);
	--ocs-radius: 0;
	--ocs-radius-sm: 4px;
	--ocs-font-head: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
	--ocs-font-body: 'Assistant', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	--ocs-section-space: clamp(3rem, 6vw, 5.5rem);
	--ocs-shadow-md: 0 8px 24px rgba(18, 18, 18, .08);
}

/* ------------------------------------------------------------------ base */
html { scroll-behavior: smooth; }
body {
	font-family: var(--ocs-font-body);
	color: var(--ocs-text);
	font-size: 1rem;
	line-height: 1.7;
	letter-spacing: .02em;
	background: #fff;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	-webkit-font-smoothing: antialiased;
}
main.site-main { flex: 1 0 auto; }
.container { max-width: var(--ocs-container); padding-left: 1.25rem; padding-right: 1.25rem; }
.ocs-narrow { max-width: 760px; }

h1, h2, h3, h4, h5, h6 { color: var(--ocs-secondary); }
h1, h2, .ocs-section-title, .ocs-banner-title, .ocs-page-title, .ocs-logo-text {
	font-family: var(--ocs-font-head);
	font-weight: 500;
	letter-spacing: .01em;
	line-height: 1.15;
}
h3, h4, h5, h6 { font-family: var(--ocs-font-body); font-weight: 600; letter-spacing: .02em; }

a { color: var(--ocs-secondary); text-decoration: none; }
a:hover { color: var(--ocs-secondary); text-decoration: underline; text-underline-offset: .3rem; }
img { max-width: 100%; height: auto; }

:focus-visible { outline: 2px solid var(--ocs-secondary); outline-offset: 3px; box-shadow: none; }

.screen-reader-text, .ocs-skip-link {
	position: absolute; width: 1px; height: 1px;
	padding: 0; margin: -1px; overflow: hidden;
	clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.ocs-skip-link:focus {
	width: auto; height: auto; clip: auto; z-index: 9999;
	background: var(--ocs-secondary); color: #fff; padding: .75rem 1.25rem;
}

/* ------------------------------------------------------------- buttons */
.btn-ocs-primary, .btn-ocs-outline, .btn-ocs-light, .btn-ocs-outline-light {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	min-height: 3rem;
	padding: .75rem 2rem;
	border-radius: var(--ocs-radius);
	font-size: .95rem;
	font-weight: 500;
	letter-spacing: .06em;
	line-height: 1.2;
	text-decoration: none;
	transition: box-shadow .1s ease, background-color .15s ease, color .15s ease;
}
.btn-sm.btn-ocs-primary, .btn-sm.btn-ocs-outline { min-height: 2.5rem; padding: .5rem 1.25rem; font-size: .88rem; }
.btn-ocs-primary { background: var(--ocs-primary); border: 1px solid var(--ocs-primary); color: var(--ocs-primary-text, #fff); }
.btn-ocs-primary:hover, .btn-ocs-primary:focus { background: var(--ocs-primary); border-color: var(--ocs-primary); color: var(--ocs-primary-text, #fff); text-decoration: none; box-shadow: 0 0 0 1px var(--ocs-primary); }
.btn-ocs-outline { background: transparent; border: 1px solid var(--ocs-secondary); color: var(--ocs-secondary); }
.btn-ocs-outline:hover, .btn-ocs-outline:focus { color: var(--ocs-secondary); border-color: var(--ocs-secondary); text-decoration: none; box-shadow: inset 0 0 0 1px var(--ocs-secondary); }
.btn-ocs-light { background: #fff; border: 1px solid #fff; color: #121212; }
.btn-ocs-light:hover, .btn-ocs-light:focus { background: #fff; color: #121212; text-decoration: none; box-shadow: 0 0 0 1px #fff; }
.btn-ocs-outline-light { background: transparent; border: 1px solid #fff; color: #fff; }
.btn-ocs-outline-light:hover, .btn-ocs-outline-light:focus { color: #fff; text-decoration: none; box-shadow: inset 0 0 0 1px #fff; }

.ocs-link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-size: .95rem; white-space: nowrap; }
.ocs-link-arrow .ocs-icon { transition: transform .2s ease; }
.ocs-link-arrow:hover .ocs-icon { transform: translateX(3px); }

/* ---------------------------------------------------------- announcement */
.ocs-announcement {
	background: var(--ocs-topbar-bg);
	color: var(--ocs-topbar-color);
	font-size: .8rem;
	letter-spacing: .1em;
	text-align: center;
	padding: .55rem 0;
}
.ocs-announcement a { color: var(--ocs-topbar-color); }
.ocs-announcement a:hover { color: var(--ocs-topbar-color); }

/* ---------------------------------------------------------------- header */
.ocs-header {
	background: #fff;
	border-bottom: 1px solid var(--ocs-border);
	z-index: 1030;
}
.ocs-sticky-enabled .ocs-header { position: sticky; top: 0; }
body.admin-bar.ocs-sticky-enabled .ocs-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar.ocs-sticky-enabled .ocs-header { top: 46px; } }

.ocs-navbar { padding: 1.1rem 0; gap: 1rem; }
.ocs-brand { flex: 0 0 auto; }
.ocs-brand a:hover { text-decoration: none; }
.ocs-logo-img { display: block; }
.ocs-logo-text { font-size: 1.6rem; color: var(--ocs-secondary); }
.ocs-toggler { border: 0; padding: .35rem; color: var(--ocs-secondary); box-shadow: none !important; }

.ocs-desktop-nav .nav-link {
	color: var(--ocs-text);
	padding: .5rem 1rem;
	font-size: .95rem;
}
.ocs-desktop-nav .nav-link:hover,
.ocs-desktop-nav .nav-link.active,
.ocs-desktop-nav .nav-link.show { color: var(--ocs-secondary); text-decoration: underline; text-underline-offset: .3rem; }
.ocs-desktop-nav .dropdown-toggle::after { border-top-width: .28em; border-right-width: .28em; border-left-width: .28em; vertical-align: .15em; }
.ocs-desktop-nav .dropdown-menu { border: 1px solid var(--ocs-border); border-radius: 0; box-shadow: none; padding: .75rem 0; min-width: 13rem; }
.ocs-desktop-nav .dropdown-item { font-size: .92rem; padding: .45rem 1.5rem; color: var(--ocs-text); }
.ocs-desktop-nav .dropdown-item:hover, .ocs-desktop-nav .dropdown-item:focus { background: transparent; color: var(--ocs-secondary); text-decoration: underline; text-underline-offset: .3rem; }

/* Desktop: hover / keyboard focus opens dropdowns (no click needed). */
@media (min-width: 992px) {
	.ocs-header { position: relative; }
	.ocs-desktop-nav .dropdown-menu {
		display: block; top: 100%; left: 0; margin-top: 1.05rem;
		opacity: 0; visibility: hidden; transform: translateY(6px);
		transition: opacity .16s ease, transform .16s ease, visibility 0s linear .3s;
		pointer-events: none;
	}
	/* Invisible bridge covering the margin gap AND the navbar's bottom
	   padding, so the menu doesn't hide while the pointer travels from the
	   nav item down into the panel. */
	.ocs-desktop-nav .dropdown-menu::before {
		content: ''; position: absolute; top: -2.75rem; left: 0; right: 0;
		height: 2.75rem;
	}
	.ocs-desktop-nav .nav-item.dropdown:hover > .dropdown-menu,
	.ocs-desktop-nav .nav-item.dropdown:focus-within > .dropdown-menu,
	.ocs-desktop-nav .nav-item.dropdown.is-open > .dropdown-menu {
		opacity: 1; visibility: visible; transform: none;
		transition-delay: 0s; pointer-events: auto;
	}
	/* Mega menu: full viewport-width panel; columns align to the container.
	   .navbar is position:relative in Bootstrap, which would anchor the
	   panel to the container width - neutralise it so the panel anchors
	   to .ocs-header (full viewport width) instead. */
	.ocs-navbar { position: static; }
	.ocs-desktop-nav .nav-item.ocs-mega { position: static; }
	.ocs-desktop-nav .ocs-mega-panel {
		left: 0; right: 0; width: auto; min-width: 0; margin-top: 0;
		display: flex; gap: 2.5rem;
		padding: 2rem max(calc((100% - var(--ocs-container)) / 2 + 1.25rem), 1.25rem);
		border: 0; border-top: 1px solid var(--ocs-border);
		box-shadow: 0 12px 24px rgba(0, 0, 0, .06);
	}
	.ocs-mega-col { flex: 1 1 0; min-width: 9rem; max-width: 18rem; list-style: none; }
	.ocs-mega-heading { display: block; font-size: .95rem; font-weight: 600; color: var(--ocs-secondary); padding: 0 0 .6rem; }
	.ocs-mega-heading:hover { color: var(--ocs-secondary); text-decoration: underline; text-underline-offset: .3rem; }
	.ocs-mega-desc { font-size: .8rem; color: var(--ocs-muted); margin: 0 0 .5rem; }
	.ocs-mega-list { list-style: none; margin: 0; padding: 0; }
	.ocs-mega-item { list-style: none; }
	.ocs-mega-link { display: block; padding: .3rem 0; font-size: .92rem; color: var(--ocs-text); }
	.ocs-mega-link:hover, .ocs-mega-link:focus { color: var(--ocs-secondary); text-decoration: underline; text-underline-offset: .3rem; }
	/* Nested sub-submenus open to the side. */
	.ocs-desktop-nav .dropdown-menu .dropdown-menu { top: 0; left: 100%; margin-top: -.75rem; }
}

.ocs-header-actions { display: flex; align-items: center; gap: .15rem; margin-left: auto; }
.ocs-icon-link {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px;
	color: var(--ocs-secondary); background: transparent; border: 0; padding: 0;
	transition: transform .15s ease;
}
.ocs-icon-link:hover { color: var(--ocs-secondary); transform: scale(1.07); text-decoration: none; }

@media (max-width: 991.98px) {
	.ocs-navbar { display: grid; grid-template-columns: 1fr auto 1fr; padding: .75rem 0; }
	.ocs-brand { justify-self: center; }
	.ocs-header-actions { justify-self: end; }
	.ocs-toggler { justify-self: start; }
}

/* --------------------------------------------------- header mini cart */
.ocs-cart-wrap { position: relative; }
.ocs-cart-btn { position: relative; }
.ocs-cart-count {
	position: absolute; bottom: 6px; right: 4px;
	min-width: 17px; height: 17px; padding: 0 4px;
	border-radius: 999px;
	background: var(--ocs-primary); color: var(--ocs-primary-text, #fff);
	font-size: .65rem; font-weight: 600; line-height: 17px;
	text-align: center; letter-spacing: 0;
}
.ocs-quick-cart {
	position: absolute; top: calc(100% + 14px); right: 0; z-index: 1040;
	width: 360px; max-width: calc(100vw - 2rem);
	background: #fff; border: 1px solid var(--ocs-border);
	box-shadow: var(--ocs-shadow-md);
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.ocs-cart-wrap.qc-open .ocs-quick-cart { opacity: 1; visibility: visible; transform: none; }
.ocs-qc-empty { text-align: center; padding: 2.25rem 1.5rem; }
.ocs-qc-empty .ocs-icon { color: var(--ocs-muted); }
.ocs-qc-empty p { margin: .75rem 0 1.25rem; font-family: var(--ocs-font-head); font-size: 1.5rem; color: var(--ocs-secondary); }
.ocs-qc-items { list-style: none; margin: 0; padding: .5rem 1.25rem; max-height: 340px; overflow-y: auto; }
.ocs-qc-item { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--ocs-border); }
.ocs-qc-item:last-child { border-bottom: 0; }
.ocs-qc-thumb { flex: 0 0 64px; width: 64px; height: 64px; overflow: hidden; background: var(--ocs-accent-bg); display: flex; align-items: center; justify-content: center; }
.ocs-qc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ocs-qc-thumb-empty { color: var(--ocs-muted); }
.ocs-qc-info { min-width: 0; display: flex; flex-direction: column; justify-content: center; line-height: 1.45; }
.ocs-qc-title { font-size: .95rem; color: var(--ocs-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ocs-qc-variant, .ocs-qc-line { font-size: .82rem; color: var(--ocs-muted); }
.ocs-qc-more { padding: .75rem 0; font-size: .82rem; color: var(--ocs-muted); text-align: center; }
.ocs-qc-footer { border-top: 1px solid var(--ocs-border); padding: 1.25rem; }
.ocs-qc-subtotal { display: flex; justify-content: space-between; font-size: 1rem; margin-bottom: 1rem; color: var(--ocs-secondary); }
.ocs-qc-subtotal strong { font-weight: 600; }
.ocs-qc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
@media (max-width: 575.98px) {
	.ocs-quick-cart { position: fixed; top: auto; right: .75rem; left: .75rem; width: auto; }
}

/* Mobile offcanvas nav */
.ocs-offcanvas { max-width: 360px; }
.ocs-offcanvas .offcanvas-header { border-bottom: 1px solid var(--ocs-border); }
.ocs-mobile-menu .nav-link { padding: .9rem 0; font-size: 1.1rem; color: var(--ocs-secondary); }
.ocs-mobile-menu .dropdown-menu { border: 0; box-shadow: none; padding: 0 0 .5rem 1rem; position: static; }
.ocs-mobile-menu .dropdown-menu .dropdown-menu { padding-left: 1rem; }
.ocs-mobile-menu .dropdown-item { padding: .45rem 0; color: var(--ocs-text); }
.ocs-mobile-menu .dropdown-item.dropdown-toggle { display: flex; align-items: center; justify-content: space-between; font-weight: 600; color: var(--ocs-secondary); }

/* Search modal */
.ocs-search-modal .modal-content { border: 0; border-radius: 0; }
.ocs-search-close { position: absolute; top: 1rem; right: 1rem; }
.ocs-search-form .form-control { border-radius: 0; border-color: var(--ocs-secondary); }
.ocs-search-form .btn { border-radius: 0; }

/* ----------------------------------------------------------------- USP */
.ocs-usp-bar { border-bottom: 1px solid var(--ocs-border); }
.ocs-usp-row { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 2.5rem; padding: .55rem 0; }
.ocs-usp { display: inline-flex; align-items: center; gap: .5rem; font-size: .82rem; color: var(--ocs-text); }

/* -------------------------------------------------------------- sections */
.ocs-section { padding: var(--ocs-section-space) 0; }
.ocs-section + .ocs-section:not(.ocs-trust):not(.ocs-testimonials) { padding-top: 0; }
.ocs-banner-promo + .ocs-section { padding-top: 0; }
.ocs-banner-promo:last-child { margin-bottom: 0; }
.ocs-section-head { margin-bottom: 2rem; }
.ocs-section-head-split { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.ocs-section-title { font-size: clamp(1.9rem, 3.2vw, 2.6rem); margin: 0; }
.ocs-section-sub { color: var(--ocs-muted); margin: .5rem 0 0; }
.ocs-eyebrow { font-size: .8rem; letter-spacing: .15em; text-transform: uppercase; margin-bottom: .75rem; }
.ocs-empty-note { color: var(--ocs-muted); border: 1px dashed var(--ocs-border); padding: 2.5rem 1rem; text-align: center; margin: 0; }
.ocs-rte p { margin-bottom: 1rem; }

/* Only hidden once JS is confirmed running (html.ocs-js), so content never stays invisible */
.ocs-js .ocs-reveal {
	opacity: 0; transform: translateY(1.25rem);
	transition: opacity .6s ease, transform .6s ease;
	/* fallback: show anyway after 2.5s if the reveal script never runs */
	animation: ocs-reveal-fallback 0s 2.5s forwards;
}
.ocs-js .ocs-reveal.in-view { opacity: 1; transform: none; animation: none; }
@keyframes ocs-reveal-fallback { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
	.ocs-reveal { opacity: 1; transform: none; transition: none; }
	html { scroll-behavior: auto; }
}

/* --------------------------------------------------------- image banner */
.ocs-banner { position: relative; display: flex; align-items: center; overflow: hidden; color: #fff; }
.ocs-banner-hero { min-height: clamp(30rem, 78vh, 46rem); }
.ocs-banner-promo { min-height: clamp(24rem, 55vh, 34rem); margin: 0 0 var(--ocs-section-space); }
.ocs-banner-media { position: absolute; inset: 0; }
.ocs-banner-media img { width: 100%; height: 100%; object-fit: cover; }
.ocs-banner-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, .3), rgba(0, 0, 0, .5)); }
.ocs-banner-title, .ocs-banner-text { text-shadow: 0 1px 16px rgba(0, 0, 0, .25); }
.ocs-banner-content { position: relative; z-index: 1; width: 100%; padding: 4rem 0; }
.ocs-banner-box { max-width: 40rem; margin: 0 auto; text-align: center; }
.ocs-banner-title { color: #fff; font-size: clamp(2.6rem, 6vw, 4.5rem); margin-bottom: 1rem; }
.ocs-banner-promo .ocs-banner-title { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
.ocs-banner-text { font-size: 1.1rem; margin-bottom: 2rem; color: rgba(255, 255, 255, .92); }
.ocs-banner .ocs-eyebrow { color: #fff; }
.ocs-banner-buttons { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* -------------------------------------------------------- collection list */
.ocs-collection-card { display: block; color: var(--ocs-secondary); }
.ocs-collection-card:hover { text-decoration: none; color: var(--ocs-secondary); }
.ocs-collection-media { display: block; overflow: hidden; background: var(--ocs-accent-bg); aspect-ratio: 4 / 5; }
.ocs-collection-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.ocs-collection-card:hover .ocs-collection-media img { transform: scale(1.04); }
.ocs-collection-title { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1rem; font-size: 1.1rem; }
.ocs-collection-title .ocs-icon { transition: transform .2s ease; }
.ocs-collection-card:hover .ocs-collection-title { text-decoration: underline; text-underline-offset: .3rem; }
.ocs-collection-card:hover .ocs-collection-title .ocs-icon { transform: translateX(3px); }

/* ---------------------------------------------------------- product card */
.ocs-product-card { position: relative; display: flex; flex-direction: column; height: 100%; }
.ocs-product-media { position: relative; display: block; overflow: hidden; background: var(--ocs-accent-bg); aspect-ratio: 1; }
.ocs-product-img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; display: block; transition: transform .6s ease; }
.ocs-product-card:hover .ocs-product-img { transform: scale(1.04); }
.ocs-img-placeholder { display: flex; align-items: center; justify-content: center; color: rgba(18, 18, 18, .2); }
.ocs-badge {
	position: absolute; bottom: .75rem; left: .75rem;
	font-size: .75rem; letter-spacing: .05em;
	padding: .3rem .8rem; border-radius: 999px;
	background: #fff; color: var(--ocs-secondary);
	border: 1px solid var(--ocs-border);
}
.ocs-badge-sale { background: var(--ocs-secondary); color: #fff; border-color: var(--ocs-secondary); }
.ocs-badge-oos { background: #fff; color: var(--ocs-secondary); }
.ocs-badge-oneoff { background: var(--ocs-secondary); color: #fff; border-color: var(--ocs-secondary); }
.ocs-product-info { padding: 1rem 0 0; }
.ocs-product-title { font-size: 1rem; font-weight: 400; letter-spacing: .04em; line-height: 1.4; margin: 0 0 .35rem; }
.ocs-product-title a { color: var(--ocs-secondary); }
/* whole card clickable */
.ocs-product-title a::after { content: ''; position: absolute; inset: 0; }
.ocs-product-card:hover .ocs-product-title a { text-decoration: underline; text-underline-offset: .3rem; }
.ocs-card-stars { color: var(--ocs-secondary); display: flex; gap: 1px; margin-bottom: .35rem; }
.ocs-card-stars .ocs-icon { fill: currentColor; }
.ocs-product-price { font-size: 1rem; color: var(--ocs-secondary); letter-spacing: .06em; }
.ocs-product-price del { color: var(--ocs-muted); margin-right: .5rem; font-size: .92rem; }
.ocs-product-price ins { text-decoration: none; }

/* ------------------------------------------------------- image with text */
.ocs-image-text-row { background: var(--ocs-accent-bg); }
.ocs-image-text-media { height: 100%; min-height: 22rem; }
.ocs-image-text-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ocs-image-text-content { align-self: center; padding: clamp(2.5rem, 5vw, 5rem); }
.ocs-image-text-content .ocs-section-title { margin-bottom: 1.25rem; }
.ocs-image-text-content .btn { margin-top: .75rem; }

/* ---------------------------------------------------------- trust columns */
.ocs-trust { border-top: 1px solid var(--ocs-border); border-bottom: 1px solid var(--ocs-border); padding: 3.5rem 0; }
.ocs-trust-col { text-align: center; max-width: 20rem; margin: 0 auto; }
.ocs-trust-col .ocs-icon { color: var(--ocs-secondary); margin-bottom: 1rem; stroke-width: 1.3; }
.ocs-trust-title { font-size: 1.05rem; margin-bottom: .4rem; }
.ocs-trust-col p { margin: 0; font-size: .95rem; }

/* ----------------------------------------------------------- testimonial */
.ocs-testimonial { margin: 0; text-align: center; }
.ocs-stars { color: var(--ocs-secondary); display: inline-flex; gap: 2px; margin-bottom: 1rem; }
.ocs-stars .ocs-icon { fill: currentColor; }
.ocs-testimonial blockquote { font-family: var(--ocs-font-head); font-size: 1.35rem; line-height: 1.45; color: var(--ocs-secondary); margin: 0 0 1rem; }
.ocs-testimonial figcaption { font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ocs-muted); }

/* ------------------------------------------------------------- newsletter */
.ocs-newsletter-inner { max-width: 34rem; margin: 0 auto; text-align: center; }
.ocs-newsletter-inner .ocs-section-sub { margin-bottom: 2rem; }

.ocs-newsletter-form { width: 100%; }
.ocs-field { position: relative; display: flex; }
.ocs-field input {
	width: 100%; height: 3.25rem;
	padding: 1.35rem 3.5rem .4rem 1.1rem;
	border: 1px solid var(--ocs-secondary); border-radius: 0;
	background: transparent; color: var(--ocs-secondary);
	font-size: 1rem; letter-spacing: .04em;
}
.ocs-field input:focus { outline: none; box-shadow: inset 0 0 0 1px var(--ocs-secondary); }
.ocs-field label {
	position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%);
	font-size: 1rem; color: var(--ocs-muted); pointer-events: none;
	transition: top .1s ease, font-size .1s ease;
}
.ocs-field input:focus + label,
.ocs-field input:not(:placeholder-shown) + label { top: .95rem; font-size: .75rem; }
.ocs-field button {
	position: absolute; right: 0; top: 0; bottom: 0; width: 3.25rem;
	border: 0; background: transparent; color: var(--ocs-secondary);
	display: flex; align-items: center; justify-content: center;
}
.ocs-field button:hover .ocs-icon { transform: scale(1.1); }

/* ---------------------------------------------------------------- footer */
.ocs-footer { background: #fff; border-top: 1px solid var(--ocs-border); color: var(--ocs-text); font-size: .95rem; }
.ocs-footer a { color: var(--ocs-text); }
.ocs-footer a:hover { color: var(--ocs-secondary); }
.ocs-footer .row { padding-top: 3.5rem !important; padding-bottom: 3rem !important; }
.ocs-footer-heading { font-family: var(--ocs-font-body); font-size: 1rem; font-weight: 500; letter-spacing: .04em; color: var(--ocs-secondary); margin-bottom: 1.25rem; }
.ocs-footer-about { margin-bottom: 1.25rem; }
.ocs-footer-menu { list-style: none; padding: 0; margin: 0; }
.ocs-footer-menu li { margin-bottom: .6rem; }
.ocs-footer-menu ul { list-style: none; padding: 0; }
.ocs-social { list-style: none; display: flex; gap: .25rem; padding: 0; margin: 0 0 1rem -.6rem; }
.ocs-social a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; color: var(--ocs-secondary); }
.ocs-social a:hover { transform: scale(1.08); }
.ocs-footer-contact { margin-bottom: .4rem; display: flex; align-items: center; gap: .5rem; }
.ocs-footer-bottom { border-top: 1px solid var(--ocs-border); padding: 1.5rem 0; font-size: .8rem; color: var(--ocs-muted); }
.ocs-payment-badges { display: flex; flex-wrap: wrap; gap: .4rem; }
.ocs-pay-badge {
	border: 1px solid var(--ocs-border); border-radius: 4px;
	padding: .2rem .55rem; font-size: .72rem; font-weight: 600; letter-spacing: .03em;
	color: var(--ocs-secondary); background: #fff;
}

/* Back to top */
.ocs-back-top {
	position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 1020;
	width: 44px; height: 44px;
	background: #fff; color: var(--ocs-secondary); border: 1px solid var(--ocs-border);
	opacity: 0; pointer-events: none; transform: translateY(10px);
	transition: opacity .25s ease, transform .25s ease;
}
.ocs-back-top.visible { opacity: 1; pointer-events: auto; transform: none; }

/* ---------------------------------------------------------------- pages */
.ocs-page-header { padding: 3.5rem 0 1rem; text-align: center; }
.ocs-page-header.has-banner { position: relative; padding: 6rem 0; background-size: cover; background-position: center; margin-bottom: 1rem; }
.ocs-page-header.has-banner .ocs-page-title, .ocs-page-header.has-banner .ocs-page-subtitle,
.ocs-page-header.has-banner .ocs-breadcrumbs, .ocs-page-header.has-banner .ocs-breadcrumbs a { color: #fff; }
.ocs-page-title { font-size: clamp(2.2rem, 4.5vw, 3.2rem); margin: .5rem 0 0; }
.ocs-page-subtitle { color: var(--ocs-muted); font-size: 1.05rem; margin: .75rem auto 0; max-width: 40rem; }
.ocs-breadcrumbs { font-size: .82rem; color: var(--ocs-muted); letter-spacing: .04em; }
.ocs-breadcrumbs a { color: var(--ocs-muted); }
.ocs-breadcrumbs .sep { margin: 0 .5rem; }
.page-header .page-title { font-family: var(--ocs-font-head); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 500; }

.ocs-entry-content > p, .ocs-entry-content > ul, .ocs-entry-content > ol { margin-bottom: 1.25rem; }
.ocs-entry-content h2 { font-size: 2rem; margin: 2.5rem 0 1rem; }
.ocs-entry-content h3 { font-size: 1.2rem; margin: 2rem 0 .75rem; }

/* Blog cards */
.ocs-post-card { position: relative; }
.ocs-post-media { display: block; overflow: hidden; background: var(--ocs-accent-bg); }
.ocs-post-img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .6s ease; }
.ocs-post-card:hover .ocs-post-img { transform: scale(1.04); }
.ocs-post-body { padding: 1.1rem 0 0; }
.ocs-post-meta { font-size: .78rem; color: var(--ocs-muted); letter-spacing: .08em; text-transform: uppercase; margin-bottom: .4rem; }
.ocs-post-meta a { color: var(--ocs-muted); }
.ocs-post-title { font-family: var(--ocs-font-head); font-size: 1.5rem; font-weight: 500; }
.ocs-post-title a { color: var(--ocs-secondary); }
.ocs-post-excerpt { font-size: .95rem; }
.ocs-readmore { font-size: .9rem; text-decoration: underline; text-underline-offset: .3rem; }
.ocs-single-thumb img { border-radius: 0 !important; }

/* Pagination */
.pagination .page-link { border: 0; color: var(--ocs-text); background: transparent; border-radius: 0 !important; }
.pagination .page-item.active .page-link, .pagination .page-link.current { color: var(--ocs-secondary); background: transparent; text-decoration: underline; text-underline-offset: .3rem; }

/* Forms (search etc.) */
.ocs-search-inline .form-control { border-radius: 0; border-color: var(--ocs-secondary); }
.ocs-search-inline .btn { border-radius: 0; }

/* ------------------------------------------------------- FluentCart bits */
.ocs-trust-box { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--ocs-border); display: flex; flex-direction: column; gap: .6rem; }
.ocs-trust-item { display: flex; align-items: center; gap: .65rem; font-size: .92rem; color: var(--ocs-text); }
.ocs-trust-item .ocs-icon { color: var(--ocs-secondary); flex: 0 0 auto; }

.ocs-stock-nudge { display: inline-flex; align-items: center; gap: .55rem; font-size: .9rem; color: var(--ocs-secondary); margin: .75rem 0 0; }

/* Product item notice: "item may differ from photos" / "one-off piece" */
.ocs-item-notice { font-size: .88rem; color: var(--ocs-muted); margin: .6rem 0 0; }
.ocs-item-notice.ocs-one-off { display: inline-flex; align-items: center; gap: .45rem; color: var(--ocs-secondary); font-weight: 500; }
.ocs-one-off .ocs-icon { color: var(--ocs-secondary); flex: 0 0 auto; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #d97706; animation: ocs-pulse 2s infinite; }
@keyframes ocs-pulse {
	0% { box-shadow: 0 0 0 0 rgba(217, 119, 6, .5); }
	70% { box-shadow: 0 0 0 8px rgba(217, 119, 6, 0); }
	100% { box-shadow: 0 0 0 0 rgba(217, 119, 6, 0); }
}

/* Match FluentCart buttons to theme buttons */
[class*="fluent-cart"] button[type="submit"],
[class*="fct"] .fct_add_to_cart_button,
.fluent-cart-add-to-cart-btn {
	border-radius: 0 !important;
	letter-spacing: .06em;
}

/* ------------------------------------------- single product (/item/...)
   All FluentCart overrides are scoped under .ocs-product-page so they beat
   the plugin's single-class rules regardless of stylesheet load order. */
.ocs-product-page { padding-bottom: var(--ocs-section-space, 4rem); }
.ocs-product-page .ocs-breadcrumbs { padding: 1.5rem 0 .25rem; }
.ocs-product-content { padding-top: 1rem; }

/* Two-column layout: gallery | summary */
.ocs-product-page .fct-single-product-page-row {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	grid-template-areas: none;
	gap: 3.5rem;
	align-items: start;
}
@media (max-width: 991.98px) {
	.ocs-product-page .fct-single-product-page-row { grid-template-columns: 1fr; grid-template-areas: none; gap: 1.75rem; }
}

/* Gallery */
.ocs-product-page .fct-product-gallery-wrapper { min-width: 0; }
.ocs-product-page .fct-product-gallery-thumb {
	background: var(--ocs-accent-bg);
	border-radius: 4px; overflow: hidden;
	aspect-ratio: 1 / 1;
	display: flex; align-items: center; justify-content: center;
}
.ocs-product-page .fct-product-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ocs-product-page .fct-product-gallery-wrapper [class*="thumb"] img { border-radius: 4px; }

/* Summary column */
.ocs-product-page .fct-product-summary { min-width: 0; }
.ocs-product-page .fct-product-title h1,
.ocs-product-page #fct-product-summary-title {
	font-family: var(--ocs-font-head);
	font-size: clamp(1.9rem, 3.5vw, 2.6rem);
	font-weight: 500; line-height: 1.15;
	color: var(--ocs-secondary);
	margin: 0 0 .75rem;
}
.ocs-product-page .fct-product-meta { font-size: .82rem; color: var(--ocs-muted); margin-bottom: 1rem; }
.ocs-product-page .fct-product-meta:empty { display: none; }
.ocs-product-page .fct-product-prices,
.ocs-product-page .fct-price-range { margin-bottom: 1.5rem; }
.ocs-product-page .fct-item-price { font-size: 1.35rem; font-weight: 500; color: var(--ocs-secondary); letter-spacing: .01em; }
.ocs-product-page .fct-item-price s,
.ocs-product-page .fct-product-variant-compare-price { color: var(--ocs-muted); font-weight: 400; font-size: .95em; }

/* Variants */
.ocs-product-page .fct-product-variants { margin-bottom: 1.25rem; display: flex; flex-direction: column; gap: .75rem; }
.ocs-product-page .fct-product-variant-title { font-size: .82rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ocs-secondary); }
.ocs-product-page .fct-product-variant-item { display: flex; align-items: center; gap: .5rem; }
.ocs-product-page .fct-product-variant-price,
.ocs-product-page .fct-product-variant-item-price { font-size: .85rem; color: var(--ocs-muted); }

/* Quantity stepper */
.ocs-product-page .fct-product-quantity-container { margin: 0 0 1.25rem; }
.ocs-product-page .fct-product-quantity-container .quantity-title {
	display: block; font-size: .82rem; font-weight: 600;
	letter-spacing: .05em; text-transform: uppercase;
	color: var(--ocs-secondary); margin-bottom: .5rem;
}
.ocs-product-page .fct-product-quantity {
	display: inline-flex; align-items: center;
	border: 1px solid var(--ocs-secondary); border-radius: 0;
	min-height: 2.9rem; background: transparent; overflow: hidden;
}
.ocs-product-page .fct-product-quantity button {
	border: 0; background: transparent; color: var(--ocs-secondary);
	width: 2.6rem; height: auto; align-self: stretch;
	display: inline-flex; align-items: center; justify-content: center;
}
.ocs-product-page .fct-product-quantity button:hover { background: rgba(0, 0, 0, .04); }
.ocs-product-page .fct-quantity-input {
	border: 0; width: 3.25rem; max-width: none; text-align: center;
	font-size: .95rem; color: var(--ocs-secondary); background: transparent;
}
.ocs-product-page .fct-quantity-input:focus { outline: none; box-shadow: none; }

/* Buy button - FluentCart renders the wrap as a 2-col grid and drops the
   theme's trust box into its second cell, stretching the button. Force a
   single-column stack: button first, trust box below. Add to Cart is
   disabled via fluent_cart/product/show_add_to_cart_button. */
.ocs-product-page .fct-product-buttons-wrap { display: flex; flex-direction: column; gap: .65rem; margin-top: 1.25rem; }
.ocs-product-page .fct-product-buttons-wrap .fluent-cart-add-to-cart-button { display: none !important; }
.ocs-product-page .fct-product-buttons-wrap .fluent-cart-direct-checkout-button {
	width: 100%; height: auto; min-height: 2.9rem;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--ocs-primary); border: 1px solid var(--ocs-primary);
	color: var(--ocs-primary-text, #fff);
	font-size: .95rem; font-weight: 600; letter-spacing: .05em;
	border-radius: 0; text-decoration: none; padding: .55rem 1.25rem;
	transition: filter .15s ease;
}
.ocs-product-page .fct-product-buttons-wrap .fluent-cart-direct-checkout-button:hover { filter: brightness(1.12); color: var(--ocs-primary-text, #fff); }
.ocs-product-page .fct-product-buttons-wrap .ocs-trust-box { margin-top: .5rem; }
.ocs-product-page .fct-product-buttons-wrap .fluent-cart-loader svg { width: 18px; height: 18px; }

/* Product description below the two-column row */
.ocs-product-content > .fct-single-product-page ~ p,
.ocs-product-content > p { max-width: 46rem; }

/* Reviews are disabled via the show_reviews filter - belt and braces. */
.fct-product-reviews-section { display: none !important; }

/* Related products */
.ocs-related-products { margin-top: 3.5rem; padding-top: 2.5rem; border-top: 1px solid var(--ocs-border); }
.ocs-related-products .ocs-section-title { text-align: left !important; }
.ocs-is-cart .site-main, .ocs-is-shop .site-main { padding-top: 2rem; }

/* FluentCart generic template (product archives, categories, single products)
   uses --global-content-width and renders without auto margins - constrain it
   to the theme container. */
:root { --global-content-width: var(--ocs-container); }
.fct-genric-template-wrapper,
.fct-generic-template-wrapper,
.site-container.fct-genric-template-wrapper {
	margin-left: auto;
	margin-right: auto;
	padding-left: 1.25rem;
	padding-right: 1.25rem;
}

/* Shop/category filter sidebar - the noUiSlider track runs to the column
   edge and its handles overhang ~17px, overlapping the product grid.
   Inset the slider so it and its handles stay inside the filter column. */
.fct-shop-filter-wrapper .fct-shop-price-range-container {
	padding-left: .9rem;
	padding-right: .9rem;
}
.fct-shop-filter-wrapper .fct-shop-range-slider { margin-top: .5rem; }

/* Product category/brand archives: no left filter sidebar - the product
   grid takes the full row. Also removes the mobile "Filters" toggle and
   its slide-in overlay. */
.tax-product-categories .fct-shop-filter-wrapper,
.tax-product-brands .fct-shop-filter-wrapper,
.tax-product-categories .fct-shop-filter-toggle-button,
.tax-product-brands .fct-shop-filter-toggle-button,
.tax-product-categories .fct-shop-responsive-filter-wrapper,
.tax-product-brands .fct-shop-responsive-filter-wrapper { display: none !important; }
.tax-product-categories .fct-products-wrapper-inner .fct-products-container,
.tax-product-brands .fct-products-wrapper-inner .fct-products-container { grid-column: 1 / -1 !important; }

/* Category FAQ accordion */
.ocs-faq-section {
	max-width: 46rem; margin: 3.5rem auto 0; padding-top: 2.5rem;
	border-top: 1px solid var(--ocs-border);
}
.ocs-faq-heading {
	font-family: var(--ocs-font-head); font-size: 1.75rem; font-weight: 500;
	color: var(--ocs-secondary); margin-bottom: 1.25rem;
}
.ocs-faq-accordion .accordion-item {
	border: 0; border-bottom: 1px solid var(--ocs-border);
	background: transparent; border-radius: 0;
}
.ocs-faq-accordion .accordion-item:first-of-type { border-top: 1px solid var(--ocs-border); }
.ocs-faq-accordion .accordion-button {
	background: transparent; box-shadow: none; border-radius: 0;
	padding: 1.1rem .25rem; font-size: 1rem; font-weight: 500;
	color: var(--ocs-secondary); font-family: var(--ocs-font-body);
}
.ocs-faq-accordion .accordion-button:not(.collapsed) { color: var(--ocs-secondary); background: transparent; }
.ocs-faq-accordion .accordion-button:focus { box-shadow: none; border-color: transparent; }
.ocs-faq-accordion .accordion-button::after { flex-shrink: 0; }
.ocs-faq-accordion .accordion-body {
	padding: 0 2rem 1.25rem .25rem;
	font-size: .95rem; color: var(--ocs-text); line-height: 1.7;
}
body:not(.ocs-checkout-body) [class*="fct-"][class*="-wrapper"],
body:not(.ocs-checkout-body) .fluent-cart-wrapper {
	max-width: var(--ocs-container);
	margin-left: auto;
	margin-right: auto;
}

/* --------------------------------------------------------------- comments */
.ocs-comment-list .comment-body { padding: 1.25rem 0; border-bottom: 1px solid var(--ocs-border); }
.ocs-comment-list .avatar { border-radius: 50%; }

/* -------------------------------------------------------------- responsive */
@media (max-width: 991.98px) {
	.ocs-image-text-media { min-height: 18rem; }
}
@media (max-width: 575.98px) {
	.container { padding-left: 1rem; padding-right: 1rem; }
	.ocs-banner-buttons .btn { width: 100%; }
	.ocs-section-head-split { align-items: flex-start; flex-direction: column; }
	.ocs-product-title, .ocs-product-price { font-size: .92rem; }
	.ocs-collection-title { font-size: 1rem; }
}
