/* ==========================================================================
   Shopora — front-end + editor styles.
   Colors, fonts and spacing come from theme.json presets, so changing them
   in Site Editor → Styles reskins everything below.
   ========================================================================== */

:root {
	--shopora-radius: var(--wp--custom--radius--medium, 10px);
	--shopora-radius-sm: var(--wp--custom--radius--small, 6px);
	--shopora-shadow: var(--wp--custom--shadow--card);
	--shopora-shadow-hover: var(--wp--custom--shadow--hover);
	--shopora-mnav-h: 62px;
}

body { -webkit-font-smoothing: antialiased; }
img { height: auto; max-width: 100%; }
:where(a, button, input, select, summary):focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
}
.screen-reader-text:not(:focus) { clip: rect(1px,1px,1px,1px); position: absolute !important; height: 1px; width: 1px; overflow: hidden; }

/* ---------- Header ---------- */
.shopora-header { position: relative; z-index: 50; }

/* Sticky header (block style "Sticky header"). Sticky must sit on the
   template-part wrapper, otherwise it can't outlive its parent box. */
.wp-site-blocks > header.wp-block-template-part:has(> .is-style-shopora-sticky) {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 60;
}
@media (max-width: 600px) {
	/* The admin bar scrolls away on phones, so don't leave a gap for it. */
	.wp-site-blocks > header.wp-block-template-part:has(> .is-style-shopora-sticky) { top: 0; }
}
.is-style-shopora-sticky .shopora-topbar,
.is-style-shopora-sticky .shopora-mainbar { transition: padding .2s ease; }
.is-shopora-stuck .is-style-shopora-sticky { box-shadow: 0 6px 18px rgba(16,24,40,.14); }
.is-shopora-stuck .is-style-shopora-sticky .shopora-topbar { display: none; }
.is-shopora-stuck .is-style-shopora-sticky .shopora-mainbar { padding-top: .5rem !important; padding-bottom: .5rem !important; }
.is-shopora-stuck .is-style-shopora-sticky .shopora-brand .wp-block-site-logo img { max-height: 40px; }
@media (max-width: 781px) {
	/* On phones keep only the logo/search row when stuck; the bottom bar covers navigation. */
	.is-shopora-stuck .is-style-shopora-sticky .shopora-catbar { display: none; }
}
.shopora-topbar p { margin: 0; }
.shopora-mainbar__row { gap: var(--wp--preset--spacing--50) !important; }
.shopora-brand .wp-block-site-logo img { width: auto; }
/* Hide the text title only when a real logo image is present (the Customizer
   preview outputs an empty logo placeholder when no logo is set). */
.shopora-brand:has(.wp-block-site-logo img) .shopora-site-title { display: none; }
.shopora-site-title { margin: 0; white-space: nowrap; }

.shopora-search { flex: 1 1 auto; max-width: 640px; margin: 0; }
.shopora-search .wp-block-search__inside-wrapper {
	background: var(--wp--preset--color--base);
	border-radius: var(--shopora-radius-sm);
	border: 0;
	padding: 0;
	overflow: hidden;
}
.shopora-search .wp-block-search__input {
	border: 0;
	padding: .8rem 1rem;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--contrast);
	min-width: 0;
}
.shopora-search .wp-block-search__button {
	margin: 0;
	border-radius: 0;
	background: var(--wp--preset--color--secondary);
	color: var(--wp--preset--color--on-primary);
	padding: 0 1.1rem;
}
.shopora-search .wp-block-search__button svg { fill: currentColor; }

.shopora-actions { color: var(--wp--preset--color--on-primary); }
.shopora-actions .wc-block-customer-account a,
.shopora-actions .wc-block-mini-cart__button { color: inherit; }
.shopora-actions .wc-block-mini-cart__badge { background: var(--wp--preset--color--accent); color: var(--wp--preset--color--contrast); }

/* Category bar: Shopora Menu block (mega menu) */
.shopora-menu__list { list-style: none; margin: 0; padding: 0; }
.shopora-menu__badge {
	display: inline-block; margin-left: .35em; padding: .1em .45em; border-radius: 99px;
	font-size: 10px; font-weight: 800; line-height: 1.4; text-transform: uppercase; letter-spacing: .03em; vertical-align: middle;
	background: var(--wp--preset--color--accent); color: var(--wp--preset--color--contrast);
}
.shopora-menu__badge.is-hot, .shopora-menu__badge.is-sale { background: var(--wp--preset--color--primary); color: var(--wp--preset--color--on-primary); }
.shopora-menu__badge.is-new { background: var(--wp--preset--color--success); color: #fff; }
.shopora-menu__burger { display: none; }

.shopora-menu--bar .shopora-menu__list { display: flex; flex-wrap: wrap; }
.shopora-menu--bar .shopora-menu__item { position: relative; display: flex; align-items: center; }
.shopora-menu--bar .shopora-menu__link {
	display: flex; align-items: center; padding: .85rem .35rem .85rem .9rem;
	font-weight: 600; font-size: var(--wp--preset--font-size--small); color: inherit; text-decoration: none;
}
.shopora-menu--bar .shopora-menu__item:not(.has-children) > .shopora-menu__link { padding-right: .9rem; }
.shopora-menu__toggle {
	align-self: stretch; width: 1.6rem; margin-right: .5rem; padding: 0; border: 0; cursor: pointer;
	background: none; color: inherit;
}
.shopora-menu__toggle::before {
	content: ""; display: block; width: .42em; height: .42em; margin: auto;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: translateY(-2px) rotate(45deg); transition: transform .15s;
}
.shopora-menu__item.is-open > .shopora-menu__toggle::before { transform: translateY(1px) rotate(-135deg); }
.shopora-menu--bar .shopora-menu__item:is(:hover, :focus-within, .is-open) { background: rgba(255,255,255,.08); }
.shopora-menu--bar .shopora-menu__item:is(:hover, :focus-within, .is-open) > :is(.shopora-menu__link, .shopora-menu__toggle),
.shopora-menu__item.is-highlight > .shopora-menu__link,
.shopora-menu__item.is-current > .shopora-menu__link { color: var(--wp--preset--color--accent); }

/* Dropdown panel */
.shopora-mega {
	position: absolute; top: 100%; left: 0; z-index: 70;
	display: none; width: max-content; min-width: 220px; max-width: min(92vw, 960px);
	padding: 1rem 1.25rem 1.1rem;
	background: var(--wp--preset--color--base); color: var(--wp--preset--color--contrast);
	border: 1px solid var(--wp--preset--color--divider); border-top: 3px solid var(--wp--preset--color--primary);
	border-radius: 0 0 var(--shopora-radius) var(--shopora-radius); box-shadow: var(--shopora-shadow-hover);
}
.shopora-menu__list > .shopora-menu__item:nth-last-child(-n+3) > .shopora-mega { left: auto; right: 0; }
.is-trigger-hover .shopora-menu__item:is(:hover, :focus-within) > .shopora-mega,
.shopora-menu__item.is-open > .shopora-mega { display: block; }
.shopora-menu__item.is-dismissed > .shopora-mega { display: none; }
.shopora-mega__list {
	list-style: none; margin: 0; padding: 0;
	columns: var(--shopora-mega-cols, 1) 200px; column-gap: 1.5rem;
}
.shopora-mega.is-grouped .shopora-mega__list { columns: auto; display: grid; grid-template-columns: repeat(var(--shopora-mega-cols, 3), minmax(170px, 1fr)); gap: 1rem 1.5rem; }
.shopora-mega__item { break-inside: avoid; margin: 0; }
.shopora-mega__sub { list-style: none; margin: .25rem 0 0; padding: 0; }
.shopora-mega__link, .shopora-mega__heading {
	display: flex; align-items: center; gap: .6rem; padding: .4rem .5rem; border-radius: var(--shopora-radius-sm);
	color: var(--wp--preset--color--contrast) !important; text-decoration: none; font-size: var(--wp--preset--font-size--small);
}
.shopora-mega__heading { font-weight: 700; border-bottom: 1px solid var(--wp--preset--color--divider); border-radius: 0; margin-bottom: .2rem; }
.shopora-mega__link:hover, .shopora-mega__link:focus-visible { background: var(--wp--preset--color--surface); color: var(--wp--preset--color--primary) !important; }
.shopora-mega__item.is-highlight > a { color: var(--wp--preset--color--primary) !important; font-weight: 700; }
.shopora-menu__img { width: 34px; height: 34px; flex: none; object-fit: contain; border-radius: 6px; background: var(--wp--preset--color--surface); }
.shopora-mega__all {
	display: inline-block; margin-top: .75rem; padding-top: .6rem; border-top: 1px solid var(--wp--preset--color--divider);
	width: 100%; font-size: var(--wp--preset--font-size--x-small); font-weight: 700; color: var(--wp--preset--color--primary) !important;
}

/* Top-bar links and footer lists */
.shopora-menu--inline .shopora-menu__list { display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.shopora-menu--inline a { color: inherit; }
.shopora-menu__heading { font-size: var(--wp--preset--font-size--medium); margin: 0 0 .75rem; }
.shopora-menu--list .shopora-menu__item { margin: 0 0 .45em; }
.shopora-menu--list .shopora-menu__link { color: inherit; }

/* Phones: the bar becomes a collapsible accordion */
@media (max-width: 781px) {
	.shopora-menu__burger {
		display: inline-flex; align-items: center; gap: .5rem; padding: .75rem 0; border: 0; background: none;
		color: inherit; font: inherit; font-weight: 700; cursor: pointer;
	}
	.shopora-menu--bar .shopora-menu__list { display: none; flex-direction: column; padding-bottom: .5rem; }
	.shopora-menu--bar.is-mobile-open .shopora-menu__list { display: flex; }
	.shopora-menu--bar .shopora-menu__item { flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.1); }
	.shopora-menu--bar .shopora-menu__link { flex: 1; padding-left: 0; }
	.shopora-mega, .shopora-menu__list > .shopora-menu__item:nth-last-child(-n+3) > .shopora-mega {
		position: static; width: 100%; max-width: none; border: 0; border-radius: var(--shopora-radius-sm); box-shadow: none; margin-bottom: .5rem;
	}
	.is-trigger-hover .shopora-menu__item:is(:hover, :focus-within) > .shopora-mega { display: none; }
	.shopora-menu__item.is-open > .shopora-mega { display: block; }
	.shopora-mega.is-grouped .shopora-mega__list { grid-template-columns: 1fr; }
	.shopora-mega__list { columns: 1; }
}

@media (max-width: 781px) {
	.shopora-topbar__promo, .shopora-topbar__links { display: none; }
	.shopora-mainbar__row { flex-wrap: wrap !important; }
	.shopora-search { order: 3; flex-basis: 100%; max-width: none; }
	.shopora-actions .wc-block-customer-account__account-label { display: none; }
}

/* ---------- Sections ---------- */
.shopora-section__head { margin-bottom: var(--wp--preset--spacing--30); border-bottom: 2px solid var(--wp--preset--color--divider); padding-bottom: .5rem; }
.shopora-section__title { margin: 0; position: relative; }
.shopora-section__title::after {
	content: ""; position: absolute; left: 0; bottom: calc(-.5rem - 2px);
	width: 64px; height: 2px; background: var(--wp--preset--color--primary);
}
.shopora-section__more { margin: 0; white-space: nowrap; font-weight: 600; }
.shopora-section__more a { color: var(--wp--preset--color--primary); }

.shopora-usp { align-items: center; }
.shopora-usp p { margin: 0; line-height: 1.35; }
.shopora-usp__icon { line-height: 1; }
.shopora-eyebrow {
	display: inline-block; margin: 0;
	background: rgba(255,255,255,.18); padding: .3em .8em; border-radius: 99px;
	font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.shopora-slide h1, .shopora-slide h2 { max-width: 16ch; margin: .3em 0 .1em; }
.shopora-slide p { max-width: 46ch; margin-top: 0; }
.shopora-paychips p {
	margin: 0; padding: .3em .7em; font-size: var(--wp--preset--font-size--x-small);
	border: 1px solid rgba(255,255,255,.25); border-radius: var(--shopora-radius-sm);
}
.shopora-footer__links { list-style: none; padding: 0; }
.shopora-footer__links li { margin: 0 0 .45em; }

/* ---------- Slider (core/group block style) ---------- */
.is-style-shopora-slider {
	position: relative;
	display: flex !important;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	overflow-y: hidden;
}
.is-style-shopora-slider::-webkit-scrollbar { display: none; }
.is-style-shopora-slider > * {
	flex: 0 0 100%;
	scroll-snap-align: start;
	margin: 0 !important;
}
.shopora-slider-wrap { position: relative; }
.shopora-slider__btn,
.shopora-rail__btn {
	position: absolute; top: 50%; transform: translateY(-50%);
	width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
	display: grid; place-items: center; z-index: 3;
	background: rgba(255,255,255,.92); color: var(--wp--preset--color--contrast);
	box-shadow: var(--shopora-shadow-hover);
}
.shopora-slider__btn[data-dir="-1"], .shopora-rail__btn[data-dir="-1"] { left: 10px; }
.shopora-slider__btn[data-dir="-1"] svg, .shopora-rail__btn[data-dir="-1"] svg { transform: rotate(180deg); }
.shopora-slider__btn[data-dir="1"], .shopora-rail__btn[data-dir="1"] { right: 10px; }
.shopora-rail__btn[disabled] { opacity: 0; pointer-events: none; }
.shopora-slider__dots {
	position: absolute; left: 0; right: 0; bottom: 14px; z-index: 3;
	display: flex; justify-content: center; gap: 8px;
}
.shopora-slider__dots button {
	width: 10px; height: 10px; padding: 0; border-radius: 99px; border: 0; cursor: pointer;
	background: rgba(255,255,255,.55); transition: width .2s;
}
.shopora-slider__dots button[aria-current="true"] { width: 26px; background: #fff; }
@media (max-width: 600px) {
	.shopora-slider__btn { display: none; }
	.shopora-slide { min-height: 300px !important; }
}

/* ---------- Category / brand showcase ---------- */
.shopora-terms__track { display: grid; gap: var(--wp--preset--spacing--40); }
.shopora-terms.is-layout-carousel .shopora-terms__track {
	grid-auto-flow: column;
	grid-auto-columns: 112px;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scrollbar-width: none;
	padding: .25rem 0 .5rem;
}
.shopora-terms.is-layout-carousel .shopora-terms__track::-webkit-scrollbar { display: none; }
.shopora-terms.is-layout-grid .shopora-terms__track { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.shopora-terms__item {
	display: flex; flex-direction: column; align-items: center; gap: .5rem;
	text-align: center; scroll-snap-align: start;
	font-size: var(--wp--preset--font-size--small); font-weight: 600; line-height: 1.25;
}
.shopora-terms__media {
	display: grid; place-items: center; overflow: hidden;
	background: var(--wp--preset--color--surface);
	transition: transform .2s, box-shadow .2s;
}
.shopora-terms.is-shape-circle .shopora-terms__media {
	width: 92px; height: 92px; border-radius: 50%;
	border: 2px solid var(--wp--preset--color--divider);
}
.shopora-terms.is-shape-card .shopora-terms__item {
	padding: var(--wp--preset--spacing--40);
	border: 1px solid var(--wp--preset--color--divider);
	border-radius: var(--shopora-radius);
	background: var(--wp--preset--color--base);
}
.shopora-terms.is-shape-card .shopora-terms__media { width: 100%; aspect-ratio: 2 / 1; border-radius: var(--shopora-radius-sm); }
.shopora-terms__media img { width: 100%; height: 100%; object-fit: cover; }
.shopora-terms__initial { font-size: 1.8rem; font-weight: 800; color: var(--wp--preset--color--primary); }
.shopora-terms__item:hover .shopora-terms__media { transform: translateY(-3px); box-shadow: var(--shopora-shadow-hover); border-color: var(--wp--preset--color--primary); }
.shopora-terms__count { font-weight: 400; color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--x-small); }

/* ---------- Product cards ---------- */
.shopora-cards.wc-block-product-template { gap: var(--wp--preset--spacing--40) !important; }
.shopora-cards > li.wc-block-product {
	position: relative;
	display: flex; flex-direction: column;
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--divider);
	border-radius: var(--shopora-radius);
	padding: var(--wp--preset--spacing--30);
	transition: box-shadow .2s, border-color .2s;
	text-align: left;
}
.shopora-cards > li.wc-block-product:hover { box-shadow: var(--shopora-shadow-hover); border-color: transparent; }
.shopora-cards .wc-block-components-product-image { margin-bottom: .5rem !important; border-radius: var(--shopora-radius-sm); overflow: hidden; background: #fff; }
.shopora-cards .wc-block-components-product-image img { aspect-ratio: 1; object-fit: contain; }
/* Second photo on hover (desktop/mouse only; never downloaded on touch screens). */
.shopora-card__alt { display: none; }
@media (hover: hover) and (pointer: fine) {
	.has-hover-image > a { position: relative; display: block; }
	.has-hover-image .shopora-card__alt {
		display: block; position: absolute; inset: 0; width: 100%; height: 100%;
		object-fit: contain; background: #fff; opacity: 0; transition: opacity .25s ease;
	}
	.wc-block-product:hover .has-hover-image .shopora-card__alt,
	.has-hover-image > a:focus-visible .shopora-card__alt { opacity: 1; }
}
.shopora-badge {
	position: absolute; z-index: 2; left: 6px; bottom: 6px;
	padding: .25em .6em; border-radius: var(--shopora-radius-sm);
	font-size: var(--wp--preset--font-size--x-small); font-weight: 700; line-height: 1.2;
}
.shopora-badge--soldout { background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--base); }
.wc-block-product:has(.shopora-badge--soldout) .wc-block-components-product-image img { opacity: .55; filter: grayscale(.6); }
.shopora-cards .wc-block-components-product-sale-badge { top: 6px !important; left: 6px !important; margin: 0 !important; font-weight: 700; padding: .2em .5em; font-size: var(--wp--preset--font-size--x-small); }
.shopora-card__brand { margin: 0 !important; color: var(--wp--preset--color--muted); text-transform: uppercase; letter-spacing: .03em; }
.shopora-card__brand a { color: inherit; }
.shopora-card__title { margin: .25rem 0 .35rem !important; line-height: 1.35 !important; font-weight: 600; }
.shopora-card__title a {
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
	min-height: 2.7em;
}
.shopora-card__price { margin: 0 0 .6rem !important; }
.shopora-card__price del { color: var(--wp--preset--color--muted); font-weight: 400; font-size: .8em; display: block; }
.shopora-card__price ins { text-decoration: none; }
.shopora-card__button { margin-top: auto !important; }
.shopora-card__button .wp-block-button__link,
.shopora-card__button .wc-block-components-product-button__button { width: 100%; justify-content: center; }

/* ---------- Product rail (Product Collection block style) ---------- */
.is-style-shopora-rail { position: relative; }
.is-style-shopora-rail .wc-block-product-template.is-flex-container,
.is-style-shopora-rail .wc-block-product-template {
	display: grid !important;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 4 * var(--wp--preset--spacing--40)) / 5);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	padding: 2px 2px 6px;
}
.is-style-shopora-rail .wc-block-product-template::-webkit-scrollbar { display: none; }
.is-style-shopora-rail .wc-block-product-template > li { width: auto !important; margin: 0 !important; scroll-snap-align: start; }
@media (max-width: 1100px) { .is-style-shopora-rail .wc-block-product-template { grid-auto-columns: calc((100% - 3 * var(--wp--preset--spacing--40)) / 4); } }
@media (max-width: 800px)  { .is-style-shopora-rail .wc-block-product-template { grid-auto-columns: calc((100% - 2 * var(--wp--preset--spacing--40)) / 3); } }
@media (max-width: 560px)  { .is-style-shopora-rail .wc-block-product-template { grid-auto-columns: 46%; } .shopora-rail__btn { display: none !important; } }

/* ---------- Shop archive ---------- */
.shopora-shop__toolbar { margin-bottom: var(--wp--preset--spacing--40); }
.shopora-shop__toolbar .woocommerce-ordering select {
	padding: .5rem 2rem .5rem .75rem; border-radius: var(--shopora-radius-sm);
	border: 1px solid var(--wp--preset--color--divider); background-color: #fff;
}
.shopora-shop__sidebar .wp-block-woocommerce-product-filters { position: sticky; top: 1rem; }
@media (max-width: 781px) {
	.shopora-shop__cols { flex-direction: column; }
	.shopora-shop__sidebar { flex-basis: auto !important; }
	.shopora-shop .shopora-cards.wc-block-product-template { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

/* ---------- Single product ---------- */
.shopora-product__brand { margin: 0; color: var(--wp--preset--color--muted); text-transform: uppercase; letter-spacing: .04em; }
.shopora-product__summary > * { margin-block-start: .75rem; }
.shopora-product__summary .wp-block-post-title { margin-top: .25rem; }
.shopora-product__summary .wp-block-woocommerce-product-price del { color: var(--wp--preset--color--muted); font-size: .65em; font-weight: 400; }
.shopora-product__summary .wp-block-woocommerce-product-price ins { text-decoration: none; }
.shopora-product .single_add_to_cart_button { padding: .9em 2em !important; font-size: var(--wp--preset--font-size--medium) !important; }
.shopora-product .quantity input { min-height: 44px; border-radius: var(--shopora-radius-sm); border: 1px solid var(--wp--preset--color--divider); }
.shopora-assure p { margin: 0; }
.shopora-product .wp-block-woocommerce-product-details { border-top: 1px solid var(--wp--preset--color--divider); padding-top: var(--wp--preset--spacing--40); }

/* ---------- Mobile bottom nav ---------- */
.shopora-mnav, .shopora-mnav-editor { display: none; }
.editor-styles-wrapper .shopora-mnav-editor { display: block; padding: .75rem; border: 1px dashed var(--wp--preset--color--divider); font-size: .8rem; text-align: center; }
@media (max-width: 781px) {
	body { padding-bottom: calc(var(--shopora-mnav-h) + env(safe-area-inset-bottom)); }
	.shopora-mnav {
		position: fixed; inset: auto 0 0 0; z-index: 90;
		display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
		height: calc(var(--shopora-mnav-h) + env(safe-area-inset-bottom));
		padding-bottom: env(safe-area-inset-bottom);
		background: var(--wp--preset--color--base);
		border-top: 1px solid var(--wp--preset--color--divider);
		box-shadow: 0 -4px 16px rgba(16,24,40,.08);
	}
	.shopora-mnav__item {
		display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
		font: inherit; font-size: 11px; font-weight: 600; color: var(--wp--preset--color--muted);
		background: none; border: 0; padding: 0; cursor: pointer;
	}
	.shopora-mnav__item[aria-current="page"], .shopora-mnav__item:hover { color: var(--wp--preset--color--primary); }
	.shopora-mnav__item .shopora-icon { width: 22px; height: 22px; }
}
.shopora-mnav__icon { position: relative; display: inline-flex; }
.shopora-mnav__badge {
	position: absolute; top: -6px; right: -10px; min-width: 18px; height: 18px; padding: 0 4px;
	display: grid; place-items: center; border-radius: 99px;
	background: var(--wp--preset--color--primary); color: var(--wp--preset--color--on-primary);
	font-size: 10px; line-height: 1;
}
.shopora-mnav__badge[hidden] { display: none; }

/* Bottom sheet (categories) */
.shopora-sheet {
	width: 100%; max-width: 560px; max-height: 80vh; margin: auto auto 0;
	padding: 0; border: 0; border-radius: 16px 16px 0 0; overflow: auto;
	background: var(--wp--preset--color--base); color: var(--wp--preset--color--contrast);
}
.shopora-sheet::backdrop { background: rgba(10,12,16,.5); }
.shopora-sheet__head {
	position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center;
	padding: 1rem 1.25rem; background: inherit; border-bottom: 1px solid var(--wp--preset--color--divider);
}
.shopora-sheet__head h2 { margin: 0; font-size: var(--wp--preset--font-size--large); }
.shopora-sheet__close { background: none; border: 0; padding: .25rem; cursor: pointer; color: inherit; }
.shopora-sheet__list, .shopora-sheet__list ul { list-style: none; margin: 0; padding: 0; }
.shopora-sheet__list > li > a, .shopora-sheet__list summary {
	display: block; padding: .9rem 1.25rem; font-weight: 600; cursor: pointer;
	border-bottom: 1px solid var(--wp--preset--color--divider);
}
.shopora-sheet__list ul a { display: block; padding: .65rem 2rem; border-bottom: 1px solid var(--wp--preset--color--surface); }
.shopora-sheet__list li.is-level-3 a { padding-left: 3rem; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted); }
.shopora-sheet__list > li.is-highlight > a, .shopora-sheet__list > li.is-highlight > details > summary { color: var(--wp--preset--color--primary); }
.shopora-sheet__search { display: flex; gap: .5rem; padding: 1rem 1.25rem 1.5rem; position: relative; }
.shopora-sheet__search input[type=search] { flex: 1; min-width: 0; padding: .75rem 1rem; border: 1px solid var(--wp--preset--color--divider); border-radius: var(--shopora-radius-sm); font-size: 16px; }
.shopora-sheet--search { margin-top: 0; margin-bottom: auto; border-radius: 0 0 16px 16px; }

/* ---------- Checkout progress steps ---------- */
.shopora-steps__list {
	display: flex; align-items: center; justify-content: center; gap: .5rem;
	list-style: none; margin: 0; padding: 0; counter-reset: none;
}
.shopora-steps__item { display: flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--wp--preset--color--muted); white-space: nowrap; }
.shopora-steps__item:not(:last-child)::after {
	content: ""; width: clamp(16px, 4vw, 56px); height: 2px; margin-left: .5rem;
	background: var(--wp--preset--color--divider);
}
.shopora-steps__item.is-done:not(:last-child)::after { background: var(--wp--preset--color--success); }
.shopora-steps__num {
	display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
	font-size: 12px; border: 2px solid var(--wp--preset--color--divider); background: var(--wp--preset--color--base);
}
.shopora-steps__item.is-current { color: var(--wp--preset--color--contrast); }
.shopora-steps__item.is-current .shopora-steps__num { border-color: var(--wp--preset--color--primary); background: var(--wp--preset--color--primary); color: var(--wp--preset--color--on-primary); }
.shopora-steps__item.is-done { color: var(--wp--preset--color--success); }
.shopora-steps__item.is-done .shopora-steps__num { border-color: var(--wp--preset--color--success); background: var(--wp--preset--color--success); color: #fff; }
.shopora-steps__item a { color: inherit; }
@media (max-width: 600px) {
	.shopora-steps__item:not(.is-current) > a, .shopora-steps__item:not(.is-current) > span:not(.shopora-steps__num) {
		position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
	}
}

/* Distraction-free checkout header */
.shopora-checkout-header__row { gap: var(--wp--preset--spacing--40) !important; }
.shopora-checkout-header .shopora-site-title a { color: var(--wp--preset--color--primary); }
.shopora-secure { margin: 0; font-weight: 600; color: var(--wp--preset--color--success); }
.shopora-checkout-footer p { margin: 0; }
@media (max-width: 781px) {
	.shopora-checkout-header .shopora-steps { order: 3; flex-basis: 100%; }
}

/* ---------- Customizer options (Appearance → Customize → Shopora) ---------- */
.shopora-brand .wp-block-site-logo img { max-height: var(--shopora-logo-h, 54px) !important; }
.is-shopora-stuck .is-style-shopora-sticky .shopora-brand .wp-block-site-logo img { max-height: calc(var(--shopora-logo-h, 54px) * .75) !important; }

.shopora-no-topbar .shopora-topbar,
.shopora-hide-search .shopora-mainbar .shopora-search,
.shopora-hide-account .shopora-actions .wp-block-woocommerce-customer-account,
.shopora-hide-cart .shopora-actions .wp-block-woocommerce-mini-cart,
.shopora-hide-catbar .shopora-catbar,
.shopora-hide-brand .shopora-card__brand,
.shopora-hide-rating .shopora-card__rating,
.shopora-card-btn-hidden .shopora-card__button { display: none !important; }
.shopora-no-sticky .wp-site-blocks > header.wp-block-template-part { position: relative !important; top: auto !important; }
.shopora-card-btn-outline .shopora-card__button .wp-element-button {
	background: transparent !important; color: var(--wp--preset--color--primary) !important;
	box-shadow: inset 0 0 0 2px var(--wp--preset--color--primary);
}
.shopora-card-btn-outline .shopora-card__button .wp-element-button:hover { background: var(--wp--preset--color--primary) !important; color: var(--wp--preset--color--on-primary) !important; }
.shopora-card__rating { margin: 0 0 .35rem !important; }
.shopora-card__rating .wc-block-components-product-rating__container { justify-content: flex-start; }

/* Rails: number of visible cards from the Customizer. */
@media (min-width: 1101px) {
	.is-style-shopora-rail .wc-block-product-template {
		grid-auto-columns: calc((100% - (var(--shopora-rail-visible, 5) - 1) * var(--wp--preset--spacing--40)) / var(--shopora-rail-visible, 5)) !important;
	}
}

/* Announcement messages */
.shopora-announce { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 1.5rem; margin: 0; }
.shopora-announce.is-rotating { display: grid; justify-items: center; }
.shopora-announce.is-rotating .shopora-announce__item { grid-area: 1 / 1; opacity: 0; transform: translateY(4px); transition: opacity .35s, transform .35s; }
.shopora-announce.is-rotating .shopora-announce__item.is-active { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .shopora-announce.is-rotating .shopora-announce__item { transition: none; } }

/* ---------- WooCommerce bits ---------- */
.wc-block-components-button:not(.is-link),
.wp-element-button { transition: background-color .15s; }
.woocommerce-breadcrumb, .wc-block-breadcrumbs { color: var(--wp--preset--color--muted); }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
