/* TWG Snoozer Fabric Library — everything scoped under .snzfl */
.snzfl {
	--ink: #2d221a; --ink2: #4a3d32; --muted: #6b5d51; --line: #ece4d8; --line2: #e2d8ca;
	--sand: #d9cdbb; --cream: #f5f0e9; --cream2: #ede5da; --tan: #b9a68a; --red: #a1442d;
	--serif: 'Bitter', Georgia, serif; --sans: 'Open Sans', Arial, sans-serif;
	--sticky-top: 100px; /* clears the site's fixed header for the selected-fabric panel */
	font-family: var(--sans); color: var(--ink); line-height: 1.5; -webkit-font-smoothing: antialiased;
}
.snzfl *, .snzfl *::before, .snzfl *::after { box-sizing: border-box; }
.snzfl img { display: block; max-width: 100% !important; height: auto; border: 0; margin: 0; box-shadow: none; }
.snzfl a { color: inherit; text-decoration: none; box-shadow: none; }
.snzfl p { margin: 0; }
.snzfl h1, .snzfl h2 { margin: 0; padding: 0; color: var(--ink); font-family: var(--sans); }
.snzfl button {
	appearance: none; -webkit-appearance: none; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none;
	font: inherit; letter-spacing: normal; text-transform: none; text-align: inherit; cursor: pointer; min-height: 0; height: auto; width: auto; float: none;
	/* The Snoozer child theme forces button colors with !important */
	background-color: transparent !important; color: inherit !important; line-height: inherit !important;
}
.snzfl button:focus:not(:focus-visible), .snzfl a:focus:not(:focus-visible) { outline: none !important; box-shadow: none !important; }
.snzfl :focus-visible { outline: 2px solid var(--ink) !important; outline-offset: 2px; }
.snzfl [hidden] { display: none !important; }

.snzfl-wrap { max-width: 1240px; margin: 0 auto; padding-left: clamp(20px, 4vw, 48px); padding-right: clamp(20px, 4vw, 48px); }
/* Full-width bands even inside a boxed content column */
.snzfl-bleed { width: calc(100vw - var(--snzfl-sb, 0px)); max-width: none !important; margin-left: calc(50% - (100vw - var(--snzfl-sb, 0px)) / 2) !important; margin-right: 0 !important; }

.snzfl-eyebrow { display: block; font-size: 12px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.snzfl .snzfl-h1 { font-size: clamp(38px, 5.4vw, 70px); line-height: .98; font-weight: 800; text-transform: uppercase; letter-spacing: .01em; text-wrap: balance; max-width: 820px; }
.snzfl .snzfl-h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.02; font-weight: 800; text-transform: uppercase; letter-spacing: .01em; text-wrap: balance; }
.snzfl-body { font-size: 16.5px; line-height: 1.7; color: var(--ink2); text-wrap: pretty; }
.snzfl .snzfl-textlink { display: inline-block; margin-top: 14px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; border-bottom: 1.5px solid var(--ink); padding-bottom: 2px; }

/* Hero */
.snzfl-hero { position: relative; background: #ebe1d3; overflow: hidden; }
.snzfl .snzfl-hero-img { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; object-position: 50% 100%; }
.snzfl-hero-inner { position: relative; display: flex; flex-direction: column; gap: 22px; padding-top: clamp(40px, 6vw, 84px); padding-bottom: clamp(260px, 30vw, 420px); }
.snzfl-lede { max-width: 560px; font-size: clamp(16px, 1.4vw, 18px); line-height: 1.7; color: var(--ink2); text-wrap: pretty; }
.snzfl-ctas { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 4px; }
.snzfl .snzfl-btn { display: inline-flex; align-items: center; min-height: 50px; padding: 0 26px; border: 1.5px solid var(--ink); border-radius: 2px; background: rgba(255,255,255,.35); color: var(--ink); font-size: 12.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.snzfl .snzfl-btn:hover { background: #fff; color: var(--ink); }
.snzfl .snzfl-btn--dark { background: var(--ink); color: #fff; }
.snzfl .snzfl-btn--dark:hover { background: #000; color: #fff; }
.snzfl-stats { display: flex; flex-wrap: wrap; gap: 8px 26px; max-width: 640px; margin-top: 6px; padding-top: 16px; border-top: 1px solid rgba(45,34,26,.18); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink2); }

/* Fabric wall */
.snzfl-wallsec { background: #fff; scroll-margin-top: 70px; padding-bottom: clamp(56px, 7vw, 96px); }
.snzfl-wall-head { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px clamp(32px, 5vw, 72px); align-items: end; padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(28px, 3vw, 40px); }
.snzfl-wall-head .snzfl-eyebrow { margin-bottom: 16px; }
.snzfl-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(64px, 8vw, 104px), 1fr)); gap: 4px; }
.snzfl .snzfl-tile { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--cream2) !important; }
.snzfl .snzfl-tile img { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; }
.snzfl-tile.is-out { opacity: .45; }
.snzfl-tile-label { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 6px 5px; background: linear-gradient(0deg, rgba(0,0,0,.6), rgba(0,0,0,0)); color: #fff; font-size: 10.5px; font-weight: 700; line-height: 1.2; text-align: center; opacity: 0; transition: opacity .15s; pointer-events: none; }
.snzfl .snzfl-tile:hover, .snzfl .snzfl-tile:focus-visible { z-index: 1; box-shadow: 0 0 0 3px var(--ink); outline: 0 !important; }
.snzfl-tile:hover .snzfl-tile-label, .snzfl-tile:focus-visible .snzfl-tile-label { opacity: 1; }
.snzfl-wall-foot { display: flex; flex-wrap: wrap; gap: 8px 22px; padding-top: 16px; font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--muted); }
.snzfl-wall-foot > span { font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.snzfl .snzfl-wall-foot a:hover { color: var(--ink); }

/* Solids / patterns */
.snzfl-styles { background: var(--cream); padding: clamp(56px, 7vw, 88px) 0; }
.snzfl-styles .snzfl-h2 { margin-top: 12px; }
.snzfl-style-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 24px; margin-top: clamp(28px, 4vw, 44px); }
.snzfl-style { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); background: #fff; border-radius: 4px; overflow: hidden; }
.snzfl-mosaic { display: grid; grid-template-columns: repeat(3, 1fr); aspect-ratio: 1 / 1; }
.snzfl .snzfl-mosaic img { width: 100%; height: 100% !important; object-fit: cover; }
.snzfl-style-text { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: clamp(20px, 2.4vw, 32px); }
.snzfl-style-title { font-family: var(--serif); font-size: clamp(22px, 2vw, 27px); line-height: 1.15; }
.snzfl-style-text p { font-size: 14.5px; line-height: 1.65; color: var(--ink2); }
.snzfl-style-links { display: flex; flex-direction: column; gap: 6px; padding-top: 4px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.snzfl .snzfl-style-links a:hover { color: var(--muted); }
.snzfl-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px 32px; margin-top: clamp(28px, 4vw, 44px); padding-top: 28px; border-top: 1px solid var(--line2); }
.snzfl-steps > div { display: flex; gap: 14px; align-items: flex-start; font-size: 14px; line-height: 1.6; color: var(--ink2); }
.snzfl-steps b { display: block; margin-bottom: 4px; color: var(--ink); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.snzfl-step-n { font-family: var(--serif); font-size: 30px; line-height: 1; color: var(--tan); }

/* Filter bar */
.snzfl-filterbar { border-bottom: 1px solid var(--line); background: #fff; scroll-margin-top: 80px; }
.snzfl-filter-inner { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.snzfl-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.snzfl-filter-label { margin-right: 6px; font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.snzfl .snzfl-chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1.5px solid var(--sand); border-radius: 999px; background: #fff !important; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.snzfl .snzfl-chip:hover { border-color: var(--ink); }
.snzfl .snzfl-chip.is-on { background: var(--ink) !important; color: #fff !important; border-color: var(--ink); }
.snzfl-jump { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.snzfl .snzfl-jump a { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.snzfl .snzfl-jump a:hover { color: var(--ink); }

/* Library layout */
.snzfl-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); gap: 56px 64px; align-items: start; padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(64px, 7vw, 96px); }
.snzfl-main { min-width: 0; display: flex; flex-direction: column; gap: 72px; }
.snzfl-coll { display: flex; flex-direction: column; gap: 24px; scroll-margin-top: 90px; }
.snzfl-coll-head { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 24px 32px; align-items: start; }
.snzfl-coll-photo { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 4px; overflow: hidden; background: var(--cream2); }
.snzfl .snzfl-coll-photo img { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; }
.snzfl-coll-text { display: flex; flex-direction: column; gap: 12px; }
.snzfl-spec { font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.snzfl .snzfl-coll-title { font-size: clamp(28px, 3vw, 36px); line-height: 1.02; font-weight: 800; text-transform: uppercase; letter-spacing: .01em; }
.snzfl-coll-text .snzfl-body { font-size: 16px; }

.snzfl-acc { margin-top: 4px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.snzfl .snzfl-acc-btn { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; min-height: 48px; font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.snzfl .snzfl-acc-btn:hover { color: var(--muted) !important; }
.snzfl-chev { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--cream); position: relative; transition: transform .2s; }
.snzfl-chev::after { content: ""; position: absolute; left: 50%; top: 45%; width: 7px; height: 7px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translate(-50%, -50%) rotate(45deg); }
[aria-expanded="true"] > .snzfl-chev { transform: rotate(180deg); }
.snzfl-acc-panel { display: flex; flex-direction: column; gap: 14px; padding: 2px 0 18px; }
.snzfl-pgroup { display: flex; flex-direction: column; gap: 7px; }
.snzfl-pgroup-name { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.snzfl-prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 6px; }

.snzfl-prod { display: flex; flex-direction: column; gap: 7px; padding: 10px 12px; background: var(--cream); border-radius: 2px; }
.snzfl-prod-name { font-size: 13px; font-weight: 700; line-height: 1.35; }
.snzfl-prod-links { display: flex; gap: 6px; }
.snzfl .snzfl-pill { display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border: 1.5px solid var(--ink); border-radius: 999px; background: #fff; color: var(--ink); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.snzfl .snzfl-pill:hover { background: var(--cream2); color: var(--ink); }
.snzfl .snzfl-pill--dark { background: var(--ink); color: #fff; }
.snzfl .snzfl-pill--dark:hover { background: #000; color: #fff; }

.snzfl-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 20px 14px; }
.snzfl .snzfl-sw { display: flex; flex-direction: column; gap: 8px; text-align: center; }
.snzfl-sw-img { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: 50%; overflow: hidden; background: var(--cream2); box-shadow: inset 0 0 0 1px rgba(45,34,26,.12); transition: transform .15s; }
.snzfl .snzfl-sw-img img { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; }
.snzfl-sw:hover .snzfl-sw-img { transform: scale(1.04); }
.snzfl-sw[aria-pressed="true"] .snzfl-sw-img { box-shadow: inset 0 0 0 3px #fff, 0 0 0 2.5px var(--ink); }
.snzfl-sw.is-out .snzfl-sw-img { opacity: .45; }
.snzfl-sw-name { font-size: 13px; font-weight: 600; line-height: 1.3; }
.snzfl-sw-count { font-size: 11.5px; color: var(--muted); }
.snzfl-sw.is-out .snzfl-sw-count { color: var(--red); font-weight: 700; }

.snzfl-compare { display: flex; flex-direction: column; gap: 20px; }
.snzfl .snzfl-compare-title { font-size: 13px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; padding-bottom: 14px; border-bottom: 1.5px solid var(--ink); }
.snzfl-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 4px; }
.snzfl table { width: 100%; min-width: 640px; margin: 0; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; }
.snzfl th { padding: 14px 16px; background: var(--ink); color: #fff; text-align: left; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; border: 0; }
.snzfl td { padding: 14px 16px; border: 0; border-top: 1px solid var(--line); color: var(--ink2); }
.snzfl-note { font-size: 13.5px; line-height: 1.6; color: var(--muted); }

/* Selected-fabric panel */
.snzfl-aside { position: sticky; top: calc(var(--sticky-top) + var(--wp-admin--admin-bar--height, 0px)); display: flex; flex-direction: column; gap: 16px; min-width: 0; max-height: calc(100vh - var(--sticky-top) - 16px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.snzfl-sheet-bar { display: none; }
.snzfl-card { flex: none; display: flex; flex-direction: column; border: 1.5px solid var(--ink); border-radius: 4px; overflow: hidden; background: #fff; }
.snzfl-card-img { position: relative; display: block; flex: none; aspect-ratio: 16 / 9; background: var(--cream2); }
.snzfl .snzfl-card-img img { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; }
.snzfl-card-body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 16px; }
.snzfl-card-kicker { font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.snzfl-card-name { font-family: var(--serif); font-size: 28px; font-weight: 500; line-height: 1.15; }
.snzfl-card-spec { font-size: 14.5px; line-height: 1.6; color: var(--ink2); }
.snzfl-card-list { display: flex; flex-direction: column; padding-top: 12px; border-top: 1px solid var(--line); }
.snzfl-card-heading { font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.snzfl-card-out { margin-top: 8px; font-size: 14px; line-height: 1.6; color: var(--ink2); }
.snzfl-sgroup { display: flex; flex-direction: column; border-bottom: 1px solid var(--line); }
.snzfl .snzfl-sgroup-btn { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; min-height: 44px; font-size: 13.5px; font-weight: 700; }
.snzfl .snzfl-sgroup-btn:hover { color: var(--muted) !important; }
.snzfl-sgroup-btn small { font-size: inherit; font-weight: 600; color: var(--muted); }
.snzfl-sgroup-btn .snzfl-chev { width: 22px; height: 22px; background: none; }
.snzfl-sgroup-items { display: flex; flex-direction: column; gap: 4px; padding-bottom: 12px; }
.snzfl .snzfl-builder { flex: none; display: flex; flex-direction: column; gap: 10px; padding: 22px; background: var(--ink); color: #fff; border-radius: 4px; }
.snzfl .snzfl-builder:hover { color: #fff; background: #000; }
.snzfl-builder-kicker { font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--sand); }
.snzfl-builder-title { font-family: var(--serif); font-size: 21px; line-height: 1.25; }
.snzfl-builder-cta { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

/* Phones and tablets: the panel becomes a bottom sheet that slides up when a fabric is picked */
@media (max-width: 899px) {
	.snzfl-layout { grid-template-columns: minmax(0, 1fr); }
	.snzfl-aside {
		position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 100000; max-height: 82vh; gap: 0;
		padding: 0; background: #fff; border-radius: 14px 14px 0 0; box-shadow: 0 -12px 40px rgba(45,34,26,.25);
		transform: translateY(105%); transition: transform .28s ease; visibility: hidden;
	}
	.snzfl-aside.is-open { transform: none; visibility: visible; }
	.snzfl-sheet-bar { position: sticky; top: 0; z-index: 2; flex: none; display: flex; align-items: center; justify-content: space-between; height: 52px; padding: 0 8px 0 20px; background: #fff; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
	.snzfl .snzfl-sheet-close { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; font-size: 30px; line-height: 1 !important; }
	.snzfl-card { border: 0; border-radius: 0; }
	.snzfl-card-img { aspect-ratio: 3 / 1; }
	.snzfl .snzfl-builder { display: none; }
	.snzfl-filter-inner { padding-top: 12px; padding-bottom: 12px; }
	.snzfl-jump { display: none; }
	.snzfl-hero-inner { padding-bottom: 240px; }
	.snzfl-style { grid-template-columns: minmax(0, 1fr); }
	html.snzfl-lock, html.snzfl-lock body { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) { .snzfl * { transition: none !important; } }
