/* SXD Catalog */
.sxdc, .sxdc-modal {
	--sxdc-accent: var(--wp--preset--color--primary, #6aa83f);
	--sxdc-text: #2b2b2b;
	--sxdc-muted: #6b6b6b;
	--sxdc-line: rgba(0, 0, 0, .1);
	--sxdc-gap: 24px;
	--sxdc-radius: 10px;
}
.sxdc { margin: 0 0 48px; color: var(--sxdc-text); }
.sxdc .sxdg-chip { display: inline-block; text-decoration: none; color: inherit; }
.sxdc .sxdg-chip:hover, .sxdc .sxdg-chip:focus { text-decoration: none; }
.sxdc.sxdg-filters-chips .sxdg-chip.is-active { color: #fff; }
.sxdc .sxdg-filters { margin-bottom: 28px; }

.sxdc-grid { display: grid; grid-template-columns: repeat(var(--sxdc-cols, 4), minmax(0, 1fr)); gap: var(--sxdc-gap); list-style: none; margin: 0; padding: 0; }
.sxdc-card { display: flex; flex-direction: column; min-width: 0; margin: 0; padding: 0; list-style: none; background: #fff; border: 1px solid var(--sxdc-line); border-radius: var(--sxdc-radius); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.sxdc-card::before { display: none; }
.sxdc-card[hidden] { display: none; }
.sxdc-card:hover { box-shadow: 0 10px 28px rgba(0,0,0,.08); transform: translateY(-2px); }
.sxdc-open { appearance: none; border: 0; padding: 0; margin: 0; background: none; cursor: pointer; font: inherit; color: inherit; text-align: inherit; }
.sxdc-card > .sxdc-open { position: relative; display: block; width: 100%; }
.sxdc-img { display: block; width: 100%; height: auto; aspect-ratio: var(--sxdc-ratio, 4/5); object-fit: cover; contain-intrinsic-size: none; background: #f3f1ee; }
.sxdc-noimg { aspect-ratio: var(--sxdc-ratio, 4/5); }
.sxdc-badge { position: absolute; left: 8px; bottom: 8px; max-width: calc(100% - 16px); padding: 3px 9px; border-radius: 6px; background: rgba(255,255,255,.94); color: var(--sxdc-text); font-size: .72em; line-height: 1.3; text-align: left; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.sxdc-body { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 16px; }
.sxdc-title { margin: 0 0 6px; font-size: 1.12em; line-height: 1.3; color: var(--sxdc-text); }
.sxdc-prices { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.sxdc-price { display: inline-block; padding: 3px 10px; border-radius: 6px; background: var(--sxdc-accent); color: #fff; font-weight: 600; font-size: .92em; line-height: 1.4; }
.sxdc-price.is-secondary { background: transparent; color: var(--sxdc-text); border: 1px solid var(--sxdc-line); font-weight: 500; }
.sxdc-desc { margin: 0 0 10px; color: var(--sxdc-muted); font-size: .92em; line-height: 1.5; text-align: left; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sxdc-more { margin-top: auto; align-self: flex-start; color: var(--sxdc-accent); font-weight: 600; font-size: .92em; }
.sxdc-more::after { content: " →"; }
.sxdc-empty { text-align: center; color: var(--sxdc-muted); }

/* List layout: photo left, text right */
.sxdc-layout-list .sxdc-card { flex-direction: row; align-items: stretch; }
.sxdc-layout-list .sxdc-card > .sxdc-open { flex: 0 0 38%; max-width: 280px; }
.sxdc-layout-list .sxdc-img { height: 100%; }
.sxdc-layout-list .sxdc-body { padding: 18px 20px; justify-content: center; }
.sxdc-layout-list .sxdc-title { font-size: 1.25em; }
.sxdc-layout-list .sxdc-desc { -webkit-line-clamp: 4; }

/* Product window */
.sxdc-noscroll { overflow: hidden; }
.sxdc-modal { position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: center; justify-content: center; padding: 2vh 2vw; background: rgba(20, 16, 14, .78); }
.sxdc-modal[hidden] { display: none; }
.sxdc-dialog { position: relative; display: grid; grid-template-columns: minmax(0, 3fr) minmax(320px, 2fr); width: min(1280px, 100%); height: min(860px, 96vh); background: #fff; border-radius: 14px; overflow: hidden; color: #2b2b2b; }
.sxdc-modal.no-media .sxdc-dialog { grid-template-columns: 1fr; width: min(640px, 100%); height: auto; max-height: 96vh; }
.sxdc-gallery { display: flex; flex-direction: column; min-height: 0; background: #f6f4f1; }
.sxdc-gallery[hidden] { display: none; }
.sxdc-media { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.sxdc-media img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; cursor: zoom-in; }
.sxdc-thumbs { display: flex; gap: 8px; padding: 10px 12px; overflow-x: auto; background: #efece8; }
.sxdc-thumbs[hidden] { display: none; }
.sxdc-thumb { appearance: none; flex: 0 0 auto; width: 64px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: none; cursor: pointer; opacity: .7; }
.sxdc-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sxdc-thumb.is-on, .sxdc-thumb:hover { border-color: var(--sxdc-accent); opacity: 1; }
.sxdc-media button, .sxdc-x { position: absolute; appearance: none; border: 0; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.92); color: #2b2b2b; cursor: pointer; font-size: 24px; line-height: 46px; padding: 0; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.sxdc-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.sxdc-next { right: 14px; top: 50%; transform: translateY(-50%); }
.sxdc-prev::before { content: "\2039"; }
.sxdc-next::before { content: "\203A"; }
.sxdc-media button[hidden] { display: none; }
.sxdc-x { top: 14px; right: 14px; z-index: 3; }
.sxdc-x::before { content: "\00d7"; }
.sxdc-info { padding: 32px 30px 28px; overflow-y: auto; }
.sxdc-m-title { margin: 0 44px 12px 0; font-size: 1.7em; line-height: 1.2; }
.sxdc-m-badge { display: inline-block; margin: 0 0 12px; padding: 4px 10px; border-radius: 999px; background: #f3f1ee; font-size: .85em; }
.sxdc-m-badge[hidden] { display: none; }
.sxdc-m-prices { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.sxdc-m-prices .sxdc-price { font-size: 1.1em; padding: 6px 14px; }
.sxdc-m-desc p { margin: 0 0 10px; line-height: 1.65; color: #4a4a4a; text-align: left; }
.sxdc-m-note { margin: 16px 0 0; padding: 10px 12px; border-left: 3px solid var(--sxdc-accent); background: #f7f6f3; font-size: .92em; line-height: 1.5; }
.sxdc-m-note[hidden] { display: none; }
.sxdc-m-cta { margin-top: 20px; }
.sxdc-cta-title { margin: 0 0 8px; font-weight: 600; }
.sxdc-call { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0 0 8px; padding: 12px 16px; border-radius: 8px; background: var(--sxdc-accent); color: #fff; text-decoration: none; font-weight: 600; }
.sxdc-call:hover, .sxdc-call:focus { color: #fff; filter: brightness(.95); }
.sxdc-call-label { font-weight: 400; opacity: .9; }
.sxdc-call::before { content: "\260E"; margin-right: 2px; }
/* Full-screen photo */
.sxdc-modal.is-zoom { padding: 0; background: rgba(10, 8, 7, .96); }
.sxdc-modal.is-zoom .sxdc-dialog { grid-template-columns: 1fr; width: 100%; height: 100%; border-radius: 0; background: transparent; }
.sxdc-modal.is-zoom .sxdc-info, .sxdc-modal.is-zoom .sxdc-thumbs { display: none; }
.sxdc-modal.is-zoom .sxdc-gallery { background: transparent; }
.sxdc-modal.is-zoom .sxdc-media img { cursor: zoom-out; }

@media (max-width: 1024px) { .sxdc-grid { grid-template-columns: repeat(var(--sxdc-cols-t, 3), minmax(0, 1fr)); } }
@media (max-width: 760px) {
	.sxdc-grid { grid-template-columns: repeat(var(--sxdc-cols-m, 2), minmax(0, 1fr)); gap: min(var(--sxdc-gap), 12px); }
	.sxdc-layout-list .sxdc-card > .sxdc-open { flex-basis: 40%; }
	.sxdc-layout-list .sxdc-body { padding: 10px 12px; }
	.sxdc-layout-list .sxdc-title { font-size: 1.05em; }
	.sxdc-body { padding: 10px 10px 12px; }
	.sxdc-title { font-size: 1em; }
	.sxdc-price { font-size: .82em; padding: 2px 8px; }
	.sxdc-desc { display: none; }
	.sxdc-modal { padding: 0; align-items: flex-end; }
	.sxdc-dialog { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); width: 100%; height: 94vh; border-radius: 14px 14px 0 0; }
	.sxdc-modal.no-media .sxdc-dialog { height: auto; max-height: 94vh; }
	.sxdc-media { height: 52vh; flex: none; }
	.sxdc-thumbs { padding: 8px 10px; }
	.sxdc-thumb { width: 52px; height: 52px; }
	.sxdc-info { padding: 18px 18px 26px; }
	.sxdc-m-title { font-size: 1.35em; }
	.sxdc-modal.is-zoom .sxdc-dialog { height: 100%; }
	.sxdc-modal.is-zoom .sxdc-media { height: 100vh; }
}
