/* GlowLuxe category page: same ground, type and hairlines as the homepage. Colours come from the --gl-* variables in the shop styles. */
.glx-crumbs, .glx-chero, .glx-tabs, .glx-filters, .glx-toolbar, .glx-chips, .glx-empty {
	--ink: var(--gl-ink, #2A221D); --paper: var(--gl-paper, #FDFCFA); --sand: var(--gl-sand, #E4D9CA);
	--display: var(--gl-display, "Cormorant Garamond", Georgia, serif); --hair: rgba(42,34,29,.14);
	color: var(--ink);
}
.glx-label { font-size: 10.5px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; }

/* breadcrumbs */
.glx-crumbs { display: flex; flex-wrap: wrap; gap: 10px; padding: clamp(20px,2vw,28px) 0; font-size: 10.5px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; }
.glx-crumbs a { color: var(--ink); text-decoration: none; opacity: .55; transition: opacity .4s ease; }
.glx-crumbs a:hover { opacity: 1; }
.glx-crumbs > span[aria-hidden] { opacity: .3; }

/* hero: bright cream print (keeps product colours vivid), title left, three products on a shelf */
.glx-chero { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; align-items: end; gap: 32px; min-height: clamp(300px,26vw,400px);
	background: #FBEFD9; padding: clamp(32px,3.6vw,56px); overflow: hidden; isolation: isolate; }
.glx-chero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .035; mix-blend-mode: multiply;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.glx-chero-copy { align-self: stretch; display: flex; flex-direction: column; }
/* banner photo (GlowLuxe Settings → Shop → Banner photos): the person on the right, the products beside and just in front */
.glx-chero.has-person { overflow: hidden; }
.glx-chero .glx-person { position: absolute; right: 2%; bottom: 0; height: 94%; width: auto; max-width: none; z-index: 0; pointer-events: none; }
.glx-chero.has-person .glx-chero-shelf { z-index: 1; justify-self: start; align-self: end; height: clamp(120px,10.5vw,170px); margin: 0 0 4px -8%; }
.glx-chero-copy > .glx-label { opacity: .6; }
.glx-chero h1 { font-family: var(--display); font-weight: 300; font-size: clamp(46px,5vw,84px); line-height: 1; letter-spacing: -.015em; margin: 20px 0 0; color: var(--ink); }
.glx-chero h1 em { font-style: italic; }
.glx-chero p { margin: 18px 0 0; max-width: 440px; font-size: 14px; line-height: 1.65; opacity: .72; }
.glx-chero-n { margin-top: auto; padding-top: 28px; opacity: .55; font-size: 9.5px; }
.glx-chero-shelf { position: relative; justify-self: center; display: flex; align-items: flex-end; gap: clamp(14px,1.8vw,28px); height: clamp(170px,15vw,240px); }
.glx-cp { height: 100%; display: flex; align-items: flex-end; }
.glx-cp:nth-child(2) { height: 82%; }
.glx-cp:nth-child(3) { height: 70%; }
.glx-cp img { height: 100%; width: auto; max-width: 220px; object-fit: contain; mix-blend-mode: multiply; }
.glx-chero-shelf::after { content: ""; position: absolute; z-index: -1; left: -8%; right: -8%; bottom: -8px; height: 20px; border-radius: 50%;
	background: radial-gradient(closest-side, rgba(40,26,16,.3), rgba(40,26,16,0)); filter: blur(4px); }
@media (prefers-reduced-motion: no-preference) {
	.glx-chero-copy { animation: glxFade 1s ease-out both; }
	.glx-chero-shelf { animation: glxFade 1.2s ease-out .15s both; }
}
@keyframes glxFade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* range tabs */
.glx-tabs { display: flex; gap: clamp(18px,2.2vw,34px); padding: clamp(22px,2.4vw,32px) 0 0; border-bottom: 1px solid var(--hair); overflow-x: auto; scrollbar-width: none; }
.glx-tabs::-webkit-scrollbar { display: none; }
.glx-tabs a { position: relative; flex: none; padding: 12px 0 16px; color: var(--ink); text-decoration: none;
	font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; opacity: .8; transition: opacity .4s ease; }
.glx-tabs a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .6s cubic-bezier(.16,1,.3,1); }
.glx-tabs a:hover, .glx-tabs a[aria-current] { opacity: 1; color: var(--ink); }
.glx-tabs a:hover::after { transform: scaleX(.4); }
.glx-tabs a[aria-current]::after { transform: none; }

/* Refine sidebar */
.glx-filters { position: sticky; top: 110px; max-height: calc(100vh - 130px); overflow: auto; padding-right: 6px; scrollbar-width: thin; }
.admin-bar .glx-filters { top: 142px; }
.glx-fhead { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.glx-fhead h2 { font-family: var(--display); font-weight: 300; font-size: 30px; letter-spacing: -.01em; text-transform: none; color: var(--ink); margin: 0; }
.glx-clear { color: var(--ink); opacity: .6; font-size: 10px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid rgba(42,34,29,.3); padding-bottom: 2px; }
.glx-clear:hover { opacity: 1; color: var(--ink); }
.glx-fgroup { border-bottom: 1px solid var(--hair); padding: 20px 0; }
.glx-fgroup > summary { list-style: none; display: flex; justify-content: space-between; align-items: center; cursor: pointer;
	font-size: 10.5px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--ink); }
.glx-fgroup > summary::-webkit-details-marker { display: none; }
.glx-fgroup > summary svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.5; opacity: .6; transition: transform .4s ease; }
.glx-fgroup[open] > summary svg { transform: rotate(180deg); }
.glx-opts { display: grid; gap: 11px; margin-top: 16px; }
.glx-opts.glx-scroll { max-height: 260px; overflow: auto; padding-right: 4px; }
.glx-chk { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink); cursor: pointer; margin: 0; }
.glx-chk[hidden] { display: none; }
.glx-chk span { flex: 1; }
.glx-chk:hover span { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(42,34,29,.35); }
.glx-chk small { opacity: .45; font-size: 11px; }
.glx-filters .glx-chk input { appearance: none; padding: 0; box-shadow: none; min-width: 0; -webkit-appearance: none; margin: 0; flex: none; width: 15px; height: 15px; border: 1px solid rgba(42,34,29,.45); border-radius: 0; background: none; display: grid; place-items: center; cursor: pointer; }
.glx-filters .glx-chk input[type=radio] { border-radius: 50%; }
.glx-filters .glx-chk input:checked { background: var(--ink); border-color: var(--ink); }
.glx-filters .glx-chk input:checked::after { content: ""; width: 7px; height: 7px; background: var(--paper); clip-path: polygon(14% 44%,0 65%,50% 100%,100% 16%,80% 0,43% 62%); }
.glx-filters .glx-chk input[type=radio]:checked::after { clip-path: circle(50%); width: 5px; height: 5px; }
.glx-fsearch, .glx-prange input { width: 100%; border: 0 !important; border-bottom: 1px solid rgba(42,34,29,.3) !important; border-radius: 0 !important; box-shadow: none !important; background: none !important;
	padding: 10px 0 !important; min-height: 0; font: inherit; font-size: 13px; color: var(--ink); outline: 0; transition: border-color .4s ease; }
.glx-fsearch { margin-top: 12px; }
.glx-fsearch:focus, .glx-prange input:focus { border-color: var(--ink) !important; }
.glx-fsearch::placeholder, .glx-prange input::placeholder { color: rgba(42,34,29,.4); font-family: var(--display); font-style: italic; font-size: 15px; }
.glx-prange { display: flex; gap: 12px; align-items: center; margin-top: 12px; }
.glx-toggle { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; color: var(--ink); cursor: pointer; margin: 0; }
.glx-filters .glx-toggle input { appearance: none; -webkit-appearance: none; margin: 0; padding: 0; position: relative; flex: none; width: 34px !important; height: 18px !important; min-width: 0; border: 0 !important; border-radius: 9px !important; background: rgba(42,34,29,.2) !important; box-shadow: none; cursor: pointer; transition: background .3s ease; }
.glx-filters .glx-toggle input::before { display: none; }
.glx-filters .glx-toggle input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); transition: transform .3s cubic-bezier(.16,1,.3,1); }
.glx-filters .glx-toggle input:checked { background: var(--ink) !important; }
.glx-toggle input:checked::after { transform: translateX(16px); }
.glx-filters .glx-apply { display: none; }
.glx-scrim { display: none; }

/* toolbar */
.glx-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 16px; margin-bottom: clamp(24px,2.4vw,32px); border-bottom: 1px solid var(--hair); }
.glx-count { margin: 0; font-size: 10.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; opacity: .6; }
.glx-count b { font-weight: 500; }
.glx-right { display: flex; align-items: center; gap: 20px; }
.glx-sort { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 10.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.glx-sort span { opacity: .55; }
.glx-sort select { appearance: none; -webkit-appearance: none; border: 0 !important; border-bottom: 1px solid rgba(42,34,29,.3) !important; border-radius: 0 !important; box-shadow: none !important; min-height: 0; height: auto; width: auto; background-color: transparent !important;
	background: none url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%232A221D' stroke-width='1.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0 center;
	padding: 6px 20px 6px 0; font-family: var(--display); font-size: 17px; font-style: italic; letter-spacing: 0; text-transform: none; color: var(--ink); cursor: pointer; outline: 0; }
.glx-toolbar .glx-right button.glx-fbtn { display: none; background: none !important; border: 0; border-bottom: 1px solid rgba(42,34,29,.35); border-radius: 0; padding: 6px 0; cursor: pointer; color: var(--ink) !important;
	font: inherit; font-size: 10.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }

/* active filters */
.glx-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: -12px 0 24px; }
.glx-chip { display: inline-flex; align-items: center; gap: 10px; padding: 7px 12px; font-size: 12px; color: var(--ink); text-decoration: none;
	box-shadow: inset 0 0 0 1px rgba(42,34,29,.25); transition: box-shadow .4s ease; }
.glx-chip span[aria-hidden] { opacity: .6; font-size: 14px; line-height: 1; }
.glx-chip:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.glx-chip-clear { box-shadow: none; text-decoration: underline; text-underline-offset: 3px; opacity: .7; }

/* empty */
.glx-empty { padding: 72px 20px; text-align: center; }
.glx-empty h3 { font-family: var(--display); font-weight: 300; font-size: 40px; letter-spacing: -.01em; color: var(--ink); margin: 0 0 8px; }
.glx-empty p { opacity: .65; font-size: 14px; }
.glx-ghost { display: inline-flex; margin-top: 24px; padding: 15px 34px; box-shadow: inset 0 0 0 1px var(--ink); color: var(--ink); text-decoration: none;
	font-size: 10.5px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; transition: background .4s ease, color .4s ease; }
.glx-ghost:hover { background: var(--ink); color: var(--paper); }

body.glx-loading .elementor-loop-container { opacity: .45; transition: opacity .3s ease; }

/* phones and small tablets: the sidebar becomes a drawer */
@media (max-width: 960px) {
	.glx-toolbar .glx-right button.glx-fbtn { display: inline-block; }
	.glx-filters { position: fixed; top: 0; left: 0; bottom: 0; width: min(360px, 88%); max-height: none; z-index: 1000001; background: var(--paper);
		padding: 24px 24px 0; transform: translateX(-100%); transition: transform .6s cubic-bezier(.16,1,.3,1); }
	.admin-bar .glx-filters { top: 0; }
	.glx-filters-open .glx-filters { transform: none; }
	.glx-scrim { display: block; position: fixed; inset: 0; z-index: 1000000; background: rgba(20,20,21,.45); opacity: 0; pointer-events: none; transition: opacity .4s ease; }
	.glx-filters-open .glx-scrim { opacity: 1; pointer-events: auto; }
	.glx-filters-open { overflow: hidden; }
	.glx-filters .glx-apply { display: flex; justify-content: center; position: sticky; bottom: 0; width: 100%; margin: 24px 0 0; padding: 16px; border: 0 !important; border-radius: 0 !important; cursor: pointer;
		background: var(--ink) !important; color: var(--paper) !important; font-size: 10.5px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; box-shadow: 0 -18px 18px var(--paper); }
}
@media (max-width: 767px) {
	.glx-chero { grid-template-columns: minmax(0,1fr); min-height: 0; padding: 26px 22px 28px; gap: 24px; }
	.glx-chero.has-person { padding-bottom: 260px; }
	.glx-chero.has-person .glx-person { right: -2%; height: 255px; }
	.glx-chero.has-person .glx-chero-shelf { position: absolute; left: 20px; bottom: 14px; height: 96px; margin: 0; gap: 8px; }
	.glx-chero h1 { font-size: clamp(40px,11vw,52px); margin-top: 14px; }
	.glx-chero p { font-size: 13.5px; margin-top: 12px; }
	.glx-chero-n { padding-top: 16px; }
	/* three square photos at 100%, 82% and 70% height (2.52 in all) plus two gaps, inside the banner's width */
	.glx-chero-shelf { height: min(150px, calc((100vw - 92px) / 2.52)); gap: 8px; justify-self: center; }
	.glx-chero-shelf.is-bottles { height: min(150px, calc((100vw - 92px) / 2.142)); }
	.is-bottles .glx-cp img { aspect-ratio: .85; object-fit: cover; }
	.glx-crumbs { padding: 16px 0; }
	.glx-toolbar .glx-sort span { display: none; }
}
@media (max-width: 359px) {
	.glx-toolbar { flex-wrap: wrap; }
	.glx-right { width: 100%; justify-content: space-between; }
}

/* hide the floating bag while the drawer is open */
.glx-filters-open .xoo-wsc-basket { opacity: 0; pointer-events: none; }
