/* Orah Star Core — storefront. Inherits the theme's fonts; colours are tokens. */
:root {
	--osc-ink: #16224a;
	--osc-gold: #b8862f;
	--osc-gold-soft: #f6ecd6;
	--osc-line: rgba(22, 34, 74, .14);
	--osc-mist: #f4f5f8;
	--osc-muted: #5b6578;
	--osc-ok: #1e7b4f;
	--osc-err: #b42318;
	--osc-wa: #25d366;
	--osc-wa-ink: #073b20;
	--osc-radius: 4px;
}

/* Buttons and notices */
.osc-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 0 22px; border: 1px solid var(--osc-ink); border-radius: var(--osc-radius);
	background: var(--osc-ink); color: #fff !important; font: inherit; font-weight: 500; text-decoration: none; cursor: pointer;
}
.osc-btn:hover { background: #24356b; }
.osc-btn:focus-visible, .osc-wish:focus-visible, .osc-wa-btn:focus-visible, .osc-wa-float:focus-visible { outline: 2px solid var(--osc-gold); outline-offset: 2px; }
.osc-btn--ghost { background: transparent; color: var(--osc-ink) !important; }
.osc-btn[disabled] { opacity: .6; cursor: wait; }
.osc-notice { padding: 14px 18px; border-radius: var(--osc-radius); margin: 0 0 20px; border: 1px solid; }
.osc-notice--ok { background: #ecf7f1; border-color: #b6dfc8; color: #14593a; }
.osc-notice--error { background: #fdf0ef; border-color: #f2c1bc; color: #8c1d13; }
.osc-notice--info { background: var(--osc-gold-soft); border-color: #e6cf9c; color: #5c3f0b; }
.osc-fine { font-size: .85em; color: var(--osc-muted); margin: 8px 0 0; }

/* Forms */
.osc-form { max-width: 760px; margin: 0 0 32px; }
.osc-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; margin-bottom: 22px; }
.osc-field { display: flex; flex-direction: column; gap: 6px; }
.osc-field--wide { grid-column: 1 / -1; }
.osc-field label { font-weight: 500; }
.osc-req { color: var(--osc-err); }
.osc-field input, .osc-field select, .osc-field textarea {
	width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #c4cad6; border-radius: var(--osc-radius);
	background: #fff; font: inherit; color: inherit; box-sizing: border-box;
}
.osc-field textarea { min-height: 120px; resize: vertical; }
.osc-field input[type="file"] { padding: 10px; background: var(--osc-mist); border-style: dashed; }
.osc-field input:focus, .osc-field select:focus, .osc-field textarea:focus { outline: 2px solid var(--osc-gold); outline-offset: 0; border-color: var(--osc-gold); }
.osc-field [aria-invalid="true"] { border-color: var(--osc-err); }
.osc-help { color: var(--osc-muted); font-size: .85em; }
.osc-err { color: var(--osc-err); font-size: .85em; }
.osc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.osc-showroom { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 24px; align-items: stretch; margin: 32px 0; padding: 24px; background: var(--osc-mist); border-radius: var(--osc-radius); }
.osc-showroom h3 { margin-top: 0; }
.osc-showroom__map { width: 100%; min-height: 260px; border: 0; border-radius: var(--osc-radius); }
.osc-contact-details { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 8px; }
.osc-contact-details strong { display: inline-block; min-width: 100px; }

/* Product page */
.osc-size { margin: 0 0 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.osc-size label { font-weight: 500; width: 100%; }
.osc-size select { min-height: 44px; min-width: 180px; padding: 0 12px; border: 1px solid #c4cad6; border-radius: var(--osc-radius); font: inherit; }
.osc-size__help { font-size: .9em; }
.osc-cert { display: flex; gap: 12px; align-items: center; padding: 12px 14px; margin: 16px 0; border: 1px solid var(--osc-line); border-radius: var(--osc-radius); }
.osc-cert div { display: flex; flex-direction: column; gap: 2px; font-size: .92em; }
.osc-cert span { color: var(--osc-muted); }
.osc-cert__mark { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--osc-gold-soft); color: var(--osc-gold); display: grid; place-items: center; font-weight: 700; }
.osc-cert__logo { flex: none; object-fit: contain; }
.osc-video { margin: 0 0 16px; }
.osc-video summary { cursor: pointer; font-weight: 500; }
.osc-video__frame { margin-top: 10px; }
.osc-video__frame iframe, .osc-video__frame video { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--osc-radius); }

.osc-wish { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 8px 0; color: var(--osc-ink); font: inherit; cursor: pointer; }
.osc-wish svg { fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .15s ease; }
.osc-wish.is-on svg { fill: var(--osc-gold); stroke: var(--osc-gold); }
.osc-wish:active svg { transform: scale(.85); }
.osc-wish--single { margin: 4px 0 8px; }
.osc-wish--loop span, .osc-wish--remove span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.osc-wish--loop { padding: 6px; }

.osc-wa-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px; margin: 8px 0 16px; border-radius: var(--osc-radius); background: var(--osc-wa); color: var(--osc-wa-ink) !important; font-weight: 600; text-decoration: none; }
.osc-wa-btn svg { fill: currentColor; }
.osc-trust { list-style: none; padding: 14px 0 0; margin: 16px 0 0; border-top: 1px solid var(--osc-line); display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: .9em; }
.osc-trust a { color: var(--osc-muted); text-decoration: none; }
.osc-trust a:hover { color: var(--osc-ink); text-decoration: underline; }

.osc-notify { padding: 16px; margin: 0 0 16px; background: var(--osc-mist); border-radius: var(--osc-radius); }
.osc-notify__title { margin: 0 0 10px; }
.osc-notify__row { display: flex; gap: 8px; flex-wrap: wrap; }
.osc-notify__row input { flex: 1 1 220px; min-height: 44px; padding: 0 12px; border: 1px solid #c4cad6; border-radius: var(--osc-radius); font: inherit; }
.osc-notify__msg { margin: 8px 0 0; color: var(--osc-ok); }
.osc-notify__msg.is-error { color: var(--osc-err); }

.osc-badge { position: absolute; top: 10px; left: 10px; z-index: 2; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.osc-badge--sale { background: var(--osc-gold); color: #fff; }
.osc-badge--soldout { background: var(--osc-ink); color: #fff; }
li.product { position: relative; }

/* Strips: recommended, recently viewed */
.osc-strip { margin: 48px 0 0; clear: both; }
.osc-strip__grid { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.osc-strip__grid a { text-decoration: none; color: inherit; display: block; }
.osc-strip__grid img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; display: block; margin-bottom: 8px; }
.osc-strip__name { display: block; font-size: .95em; line-height: 1.35; }
.osc-strip .price { font-size: .9em; }

/* Wishlist page */
.osc-wishlist { list-style: none; padding: 0; margin: 0; }
.osc-wishlist__item { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--osc-line); }
.osc-wishlist__item img { width: 96px; height: 96px; object-fit: cover; display: block; }
.osc-wishlist__info { display: flex; flex-direction: column; gap: 4px; }
.osc-wishlist__info a { text-decoration: none; color: inherit; }
.osc-wishlist__sku, .osc-wishlist__stock { font-size: .85em; color: var(--osc-muted); }
.osc-wishlist__actions { display: flex; align-items: center; gap: 12px; }
.osc-empty { text-align: center; padding: 48px 16px; background: var(--osc-mist); border-radius: var(--osc-radius); }
.osc-empty p { max-width: 46ch; margin-left: auto; margin-right: auto; }

/* Filters */
.osc-filters { margin: 0 0 24px; border: 1px solid var(--osc-line); border-radius: var(--osc-radius); width: 100%; }
.osc-filters summary { padding: 12px 16px; cursor: pointer; font-weight: 500; }
.osc-filters__count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; border-radius: 10px; background: var(--osc-ink); color: #fff; font-size: 12px; margin-left: 6px; }
.osc-filters__form { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px 18px; padding: 4px 16px 16px; align-items: end; }
.osc-f { display: flex; flex-direction: column; gap: 6px; font-size: .9em; border: 0; padding: 0; margin: 0; min-width: 0; }
.osc-f > span, .osc-f legend { font-weight: 500; padding: 0; }
.osc-f select, .osc-f input[type="number"] { min-height: 40px; padding: 0 10px; border: 1px solid #c4cad6; border-radius: var(--osc-radius); font: inherit; width: 100%; box-sizing: border-box; }
.osc-f--range { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.osc-f--range legend { grid-column: 1 / -1; margin-bottom: 6px; }
.osc-f--check { flex-direction: row; align-items: center; gap: 8px; min-height: 40px; }
.osc-filters__actions { display: flex; align-items: center; gap: 16px; grid-column: 1 / -1; }

/* Social, certification, tracking */
.osc-social { list-style: none; display: flex; gap: 10px; padding: 0; margin: 0; }
.osc-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--osc-line); color: var(--osc-ink); }
.osc-social svg { fill: currentColor; }
.osc-social a:hover { background: var(--osc-ink); color: #fff; }
.osc-footer-strip { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 18px; padding: 20px 16px; border-top: 1px solid var(--osc-line); }
.osc-social-section ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.osc-social-section a { display: flex; flex-direction: column; gap: 6px; padding: 20px; border: 1px solid var(--osc-line); border-radius: var(--osc-radius); text-decoration: none; color: var(--osc-ink); }
.osc-social-section svg { width: 28px; height: 28px; fill: currentColor; }
.osc-social-section span { font-weight: 600; }
.osc-social-section small { color: var(--osc-muted); }
.osc-certs__logos { display: flex; flex-wrap: wrap; gap: 24px; margin: 20px 0; }
.osc-certs__logos figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; max-width: 200px; }
.osc-certs__placeholder { display: grid; place-items: center; width: 120px; height: 64px; border: 1px dashed var(--osc-line); border-radius: var(--osc-radius); font-weight: 700; letter-spacing: .04em; color: var(--osc-ink); }
.osc-certs figcaption { font-size: .85em; color: var(--osc-muted); }
.osc-tracking { margin: 24px 0; padding: 16px; background: var(--osc-mist); border-radius: var(--osc-radius); }

/* Floating WhatsApp chat */
.osc-wa-float {
	position: fixed; right: 18px; bottom: 18px; z-index: 9999; display: inline-flex; align-items: center; gap: 8px;
	height: 52px; padding: 0 18px 0 14px; border-radius: 26px; background: var(--osc-wa); color: var(--osc-wa-ink) !important;
	font-weight: 600; text-decoration: none; box-shadow: 0 6px 18px rgba(7, 59, 32, .25);
}
.osc-wa-float svg { width: 26px; height: 26px; fill: currentColor; }

@media (max-width: 720px) {
	.osc-form__grid { grid-template-columns: 1fr; }
	.osc-showroom { grid-template-columns: 1fr; padding: 16px; }
	.osc-strip__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
	.osc-wishlist__item { grid-template-columns: 72px minmax(0, 1fr); }
	.osc-wishlist__item img { width: 72px; height: 72px; }
	.osc-wishlist__actions { grid-column: 1 / -1; }
	.osc-wa-float { padding: 0; width: 52px; justify-content: center; bottom: 84px; right: 14px; }
	.osc-wa-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
@media (prefers-reduced-motion: reduce) {
	.osc-wish svg { transition: none; }
}

/* Product enquiry pop-up */
.osc-btn.osc-btn--wa { background: var(--osc-wa); border-color: var(--osc-wa); color: var(--osc-wa-ink) !important; }
.osc-btn.osc-btn--wa:hover { background: #1fb457; }
.osc-enquire { margin: 8px 0 16px; }
.osc-enquire .osc-match { width: 100%; }
.osc-match { display: inline-flex; align-items: center; justify-content: center; text-align: center; cursor: pointer; text-decoration: none; }
.osc-match:hover { filter: brightness(.92); }
.osc-match:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.osc-dialog__head h2 small { display: block; margin-top: 4px; font-size: .8rem; font-weight: 400; color: var(--osc-muted); }
.osc-form .osc-match { min-width: 180px; }
.osc-dialog { width: min(640px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; border: 0; border-radius: var(--osc-radius); padding: 20px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.osc-dialog::backdrop { background: rgba(10, 14, 30, .55); }
.osc-dialog__head { margin-bottom: 16px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.osc-dialog__head h2 { font-size: 1.25rem; margin: 0; line-height: 1.3; }
.osc-dialog__close { background: none; border: 0; font-size: 28px; line-height: 1; padding: 0 4px; cursor: pointer; color: inherit; min-width: 44px; min-height: 44px; }

/* [orah_product_details] */
.osc-details { margin: 0 0 24px; }
.osc-details__title { margin: 0 0 12px; }
.osc-details__table { width: 100%; border-collapse: collapse; }
.osc-details__table th, .osc-details__table td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--osc-line); text-align: left; vertical-align: top; }
.osc-details__table th { width: 45%; font-weight: 500; color: var(--osc-muted); }
.osc-details .osc-video { margin-top: 16px; }
.osc-late-buttons { margin: 12px 0; display: grid; gap: 12px; }
.osc-late-buttons .osc-enquire { margin: 0; }

/* 1.2.7: contact form block, tracking link, filters and strips on builder layouts */
.osc-contact-block { max-width: 760px; margin: 40px auto; padding: 0 16px; }
.osc-contact-block h2 { margin: 0 0 16px; }
.osc-footer-strip__track { margin-left: 8px; text-decoration: underline; color: inherit; }
[data-osc-place="filters"] { width: 100%; }
[data-osc-place="strips"] { clear: both; width: 100%; }
@media (max-width: 600px) {
	.osc-filters__form { grid-template-columns: 1fr 1fr; }
	.osc-filters__form .osc-f--range, .osc-filters__actions, .osc-filters__form .osc-f--check { grid-column: 1 / -1; }
	.osc-contact-block { margin: 24px auto; }
}
/* Themes style fieldset/legend boldly; keep the filter fields aligned. */
.osc-filters fieldset.osc-f { border: 0; padding: 0; margin: 0; background: none; min-width: 0; }
.osc-filters fieldset.osc-f legend { padding: 0; margin: 0 0 6px; font-weight: inherit; background: none; float: none; width: auto; }
.osc-filters input, .osc-filters select { max-width: 100%; box-sizing: border-box; }
