/**
 * SGL Filter — sidebar contextual, chips e gaveta mobile (skin Ateliê).
 * Tokens: ink #0A1521 · porcelana #F5F4F1 · dourado #C6A053 / #9C7A2E ·
 * hairline rgba(10,21,33,.12) · títulos Cormorant Garamond · rótulos Inter.
 */

/* ============ SIDEBAR ============ */
.sgl-filter{font-family:Inter,'Segoe UI',sans-serif;color:#0A1521}
.sgl-filter-head{display:flex;align-items:baseline;justify-content:space-between;padding-bottom:12px;border-bottom:1px solid rgba(10,21,33,.12)}
.sgl-filter-title{font-family:'Cormorant Garamond',Cormorant,Georgia,serif;font-size:24px;font-weight:500;color:#0A1521}
.sgl-filter-clear,.sgl-ap-clear{font-size:11px;color:rgba(10,21,33,.55);text-decoration:underline;cursor:pointer}
.sgl-filter-clear:hover,.sgl-ap-clear:hover{color:#9C7A2E}
.sgl-filter-hint{font-size:12px;color:rgba(10,21,33,.55);margin:10px 0 0}

/* grupos (details/summary) */
.sgl-fgroup{border-bottom:1px solid rgba(10,21,33,.12);padding:0}
.sgl-fgroup-t{font-family:'Cormorant Garamond',Cormorant,Georgia,serif;font-size:18px;font-weight:500;color:#0A1521;padding:13px 0;cursor:pointer;list-style:none;display:flex;align-items:center;gap:8px;user-select:none}
.sgl-fgroup-t::-webkit-details-marker{display:none}
.sgl-fgroup-t::after{content:"+";margin-left:auto;color:#C6A053;font-family:Inter,sans-serif;font-size:15px;font-weight:400}
.sgl-fgroup[open] > .sgl-fgroup-t::after{content:"–"}
.sgl-fgroup-n{background:#C6A053;color:#fff;font-size:10px;font-weight:700;border-radius:99px;min-width:17px;height:17px;display:inline-flex;align-items:center;justify-content:center;padding:0 5px}
.sgl-fopts{padding:2px 0 14px}

/* opção checkbox */
.sgl-fopt{display:flex;align-items:center;gap:9px;padding:6px 0;font-size:13px;color:rgba(10,21,33,.78);cursor:pointer;line-height:1.35}
.sgl-fopt:hover{color:#0A1521}
.sgl-fopt input[type=checkbox],.sgl-trend-row input[type=radio]{appearance:none;-webkit-appearance:none;width:15px;height:15px;border:1px solid rgba(10,21,33,.3);border-radius:3px;margin:0;flex-shrink:0;cursor:pointer;position:relative;background:#fff;transition:all .15s ease}
.sgl-trend-row input[type=radio]{border-radius:50%}
.sgl-fopt input[type=checkbox]:checked,.sgl-trend-row input[type=radio]:checked{background:#C6A053;border-color:#C6A053}
.sgl-fopt input[type=checkbox]:checked::after{content:"";position:absolute;left:4.5px;top:1.5px;width:4px;height:8px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}
.sgl-trend-row input[type=radio]:checked::after{content:"";position:absolute;inset:4px;border-radius:50%;background:#fff}
.sgl-fopt input:focus-visible,.sgl-trend-row input:focus-visible{outline:2px solid #C6A053;outline-offset:2px}
.sgl-fopt-l{flex:1}
.sgl-fopt-c{font-size:10.5px;color:rgba(10,21,33,.4);font-variant-numeric:tabular-nums}
.sgl-fopt-more{display:none}
.sgl-fopts.is-exp .sgl-fopt-more,.sgl-trend.is-exp .sgl-fopt-more{display:flex}
/* "ver todas / ver menos" — discreto e elegante (resets fortes contra o tema) */
.sgl-fmore,.sgl-fmore:hover,.sgl-fmore:focus{background:none !important;border:none !important;box-shadow:none !important;border-radius:0 !important;padding:8px 0 2px !important;margin:0;display:inline-flex;align-items:center;gap:6px;font-family:Inter,'Segoe UI',sans-serif !important;font-size:10px !important;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:#9C7A2E !important;text-decoration:none !important;cursor:pointer;line-height:1}
.sgl-fmore::after{content:"↓";font-size:10px;transition:transform .2s ease}
.is-exp .sgl-fmore::after,.sgl-fopts.is-exp .sgl-fmore::after{transform:rotate(180deg)}
.sgl-fmore:hover{color:#C6A053 !important}

/* swatch de cor */
.sgl-sw{width:19px;height:19px;border-radius:50%;border:1px solid rgba(10,21,33,.18);box-shadow:inset 0 0 4px rgba(0,0,0,.15);flex-shrink:0}
.sgl-fopt-sw input[type=checkbox]{display:none}
.sgl-fopt-sw input:checked ~ .sgl-sw{outline:2px solid #C6A053;outline-offset:2px}
.sgl-fopt-sw input:checked ~ .sgl-fopt-l{font-weight:600;color:#0A1521}

/* ===== Ambiente: cards de foto com véu degradê (linguagem do modal) ===== */
.sgl-amb-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:2px 0 14px}
.sgl-amb-card{position:relative;aspect-ratio:4/3;border-radius:5px;overflow:hidden;cursor:pointer;display:block;border:1px solid rgba(10,21,33,.1)}
.sgl-amb-card input{position:absolute;opacity:0;pointer-events:none}
.sgl-amb-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
/* véu ink: quase sólido na esquerda (segura o rótulo), foto aparece na direita — escura */
.sgl-amb-veil{position:absolute;inset:0;background:linear-gradient(90deg,rgba(10,21,33,.92) 0%,rgba(10,21,33,.40) 100%);transition:opacity .35s ease}
.sgl-amb-card:hover .sgl-amb-veil{opacity:.5}
.sgl-amb-lbl{position:absolute;left:10px;bottom:8px;color:#F5F4F1;font-size:11.5px;font-weight:600;letter-spacing:.03em;z-index:2;text-shadow:0 1px 6px rgba(10,21,33,.65)}
.sgl-amb-card.is-sel{outline:2px solid #C6A053;outline-offset:-2px}
.sgl-amb-card.is-sel .sgl-amb-veil{opacity:.42}
.sgl-amb-card.is-sel .sgl-amb-lbl::after{content:" ✓";color:#C6A053}
.sgl-amb-card input:focus-visible ~ .sgl-amb-veil{outline:2px solid #C6A053;outline-offset:-4px}
/* placeholders enquanto não houver foto configurada (sgl_ambiente_imgs) */
.sgl-amb-ph{background:linear-gradient(135deg,#8fa3ad,#3d4c54)}
.sgl-amb-sala .sgl-amb-ph{background:linear-gradient(135deg,#c8b49a,#4e3d2c)}
.sgl-amb-quarto .sgl-amb-ph{background:linear-gradient(135deg,#b9a8a0,#443833)}
.sgl-amb-lavabo .sgl-amb-ph{background:linear-gradient(135deg,#a9b3a4,#3f4a3a)}
.sgl-amb-penteadeira .sgl-amb-ph{background:linear-gradient(135deg,#d3bfae,#5a4636)}
.sgl-amb-closet .sgl-amb-ph{background:linear-gradient(135deg,#b5aa9c,#3f382f)}

/* ===== Tendência de cores (bloco-assinatura) ===== */
.sgl-trend{border:1px solid rgba(198,160,83,.45);border-radius:5px;padding:14px 16px;margin:16px 0}
.sgl-trend-t{font-family:'Cormorant Garamond',Cormorant,Georgia,serif;font-size:20px;font-weight:500;color:#0A1521}
.sgl-trend-s{font-size:9.5px;letter-spacing:.14em;text-transform:uppercase;color:#9C7A2E;font-weight:700;margin:2px 0 10px}
.sgl-trend-row{display:flex;align-items:center;gap:10px;padding:7px 0;border-top:1px solid rgba(10,21,33,.08);font-size:12.5px;color:rgba(10,21,33,.8);cursor:pointer}
.sgl-trend-row:first-of-type{border-top:none}
.sgl-trend-row .sgl-fopt-l{flex:1}
.sgl-trend-row.is-sel .sgl-fopt-l{font-weight:600;color:#0A1521}
.sgl-trend-note{font-size:10px;color:rgba(10,21,33,.42);text-align:right}
/* opção DESABILITADA (existe na prateleira, mas o recorte atual zera) */
.sgl-fopt.sgl-off,.sgl-trend-row.sgl-off,.sgl-amb-card.sgl-off{opacity:.32;pointer-events:none;filter:grayscale(.4)}

/* linhas escondidas atrás do "ver todas" (especificidade > .sgl-trend-row) */
.sgl-trend-row.sgl-fopt-more{display:none}
.sgl-trend.is-exp .sgl-trend-row.sgl-fopt-more{display:flex}
/* checkbox das cores: esconde o input, o anel dourado no swatch marca a seleção */
.sgl-trend-row input[type=checkbox]{display:none}
.sgl-trend-row input:checked ~ .sgl-sw{outline:2px solid #C6A053;outline-offset:2px}
.sgl-trend-custom{border-top:1px dashed rgba(198,160,83,.5);margin-top:4px;padding-top:10px}

/* noscript */
.sgl-filter-apply{margin-top:14px;width:100%;background:#C6A053;color:#fff;border:none;padding:11px;font-size:12px;letter-spacing:.12em;text-transform:uppercase;font-weight:600;cursor:pointer;border-radius:3px}

/* ============ CHIPS / BARRA (acima da grade) ============ */
.sgl-chips{font-family:Inter,'Segoe UI',sans-serif;margin-bottom:10px}
.sgl-chipbar{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px}
.sgl-chip{font-size:11.5px;padding:6px 15px;border:1px solid rgba(10,21,33,.16);border-radius:99px;color:rgba(10,21,33,.65);text-decoration:none;background:none;cursor:pointer;font-family:inherit;white-space:nowrap;transition:all .15s ease}
.sgl-chip:hover{border-color:#C6A053;color:#9C7A2E}
.sgl-chip.is-on{border-color:#C6A053;color:#9C7A2E;font-weight:600;background:rgba(198,160,83,.07)}
.sgl-applied{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:6px 0;border-bottom:1px solid rgba(10,21,33,.1);margin-bottom:6px}
.sgl-ap{font-size:11px;background:#fff;border:1px solid rgba(10,21,33,.14);padding:4px 11px;border-radius:99px;cursor:pointer;font-family:inherit;color:#0A1521}
.sgl-ap b{color:#9C7A2E;font-weight:700;margin-left:6px}
.sgl-ap:hover{border-color:#B4483E}
.sgl-ap:hover b{color:#B4483E}
.sgl-meta{margin-left:auto;font-size:11.5px;color:rgba(10,21,33,.55);font-variant-numeric:tabular-nums}
.sgl-orderby{border:none;background:none;font-size:11.5px;color:#0A1521;font-family:inherit;cursor:pointer;padding:2px;font-weight:600}
.sgl-orderby:focus-visible{outline:2px solid #C6A053}

/* banner das cores-tendência */
.sgl-banner{border:1px solid rgba(198,160,83,.55);background:rgba(198,160,83,.06);border-radius:5px;padding:13px 18px;font-size:13px;color:rgba(10,21,33,.8);margin-bottom:12px;line-height:1.55}
.sgl-banner-t{display:block;font-family:'Cormorant Garamond',Cormorant,Georgia,serif;font-size:18px;color:#0A1521}
.sgl-banner-cta{color:#9C7A2E;font-weight:600;text-decoration:underline}

/* seções nomeadas na grade mista (banheiro/busca): título ocupa a linha toda */
ul.products li.sgl-sechead{grid-column:1/-1;width:100%;flex-basis:100%;clear:both;float:none;list-style:none;margin:14px 0 4px;padding:0 0 9px;border-bottom:1px solid rgba(10,21,33,.12);display:flex;align-items:baseline;gap:12px}
ul.products li.sgl-sechead:first-child{margin-top:0}
ul.products li.sgl-sechead span{font-family:'Cormorant Garamond',Cormorant,Georgia,serif;font-size:23px;font-weight:500;color:#0A1521}
ul.products li.sgl-sechead i{font-style:normal;font-size:10px;letter-spacing:.14em;text-transform:uppercase;color:#9C7A2E;font-weight:700}
/* teaser da seção que ficou pra próxima página (convite clicável) */
ul.products li.sgl-secteaser{border-bottom:none;border-top:1px solid rgba(10,21,33,.12);margin-top:18px;padding:14px 0 0}
ul.products li.sgl-secteaser button{all:unset;display:flex;align-items:baseline;gap:12px;cursor:pointer;width:100%}
ul.products li.sgl-secteaser span{font-family:'Cormorant Garamond',Cormorant,Georgia,serif;font-size:21px;font-weight:500;color:rgba(10,21,33,.75)}
ul.products li.sgl-secteaser b{font-size:10px;letter-spacing:.14em;text-transform:uppercase;color:#9C7A2E;font-weight:700}
ul.products li.sgl-secteaser button:hover span{color:#0A1521}

/* "Veja também" (busca com poucos resultados) */
.sgl-veja{margin-top:44px;border-top:1px solid rgba(10,21,33,.12);padding-top:26px}
.sgl-veja-t{font-family:'Cormorant Garamond',Cormorant,Georgia,serif;font-size:28px;font-weight:500;color:#0A1521;margin:0}
.sgl-veja-s{font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:#9C7A2E;font-weight:600;margin:2px 0 18px}

/* loading do AJAX */
.sgl-loading .elementor-widget-woocommerce-products{opacity:.45;transition:opacity .2s ease;pointer-events:none}

/* peças da gaveta mobile: NUNCA aparecem no desktop (só dentro do media query) */
.sgl-drawer-x,.sgl-drawer-cta,.sgl-drawer-veil{display:none}

/* descrição de categoria no layout do "Dicas e Soluções": intro + cards 2 col */
.term-description.sgl-guided .sgl-guide-intro{max-width:760px;margin:0 auto 26px}
.term-description.sgl-guided .sgl-guide-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;max-width:1080px;margin:0 auto}
.term-description.sgl-guided .sgl-guide-card{background:#fff;border:1px solid rgba(10,21,33,.08);border-radius:4px;padding:22px 24px}
.term-description.sgl-guided .sgl-guide-card h3{margin:0 0 8px !important}
.term-description.sgl-guided .sgl-guide-card p{font-size:13.5px;line-height:1.7;margin:0 0 8px}
.term-description.sgl-guided .sgl-guide-card p:last-child{margin-bottom:0}
@media (max-width:767px){ .term-description.sgl-guided .sgl-guide-grid{grid-template-columns:1fr} }

/* o select nativo do widget de produtos duplica o nosso "Relevância" — esconder */
form.woocommerce-ordering{display:none !important}

/* ============ MOBILE: FAB + GAVETA ============ */
.sgl-fab{display:none}
@media (max-width:1024px){
	.sgl-fab{display:flex;align-items:center;gap:8px;position:fixed;left:50%;transform:translateX(-50%);bottom:18px;z-index:9998;background:#0A1521;color:#F5F4F1;border:1px solid #C6A053;border-radius:99px;padding:11px 26px;font-family:Inter,sans-serif;font-size:11.5px;letter-spacing:.12em;text-transform:uppercase;font-weight:600;cursor:pointer;box-shadow:0 6px 22px rgba(10,21,33,.35)}
	.sgl-fab-n{background:#C6A053;color:#0A1521;border-radius:99px;min-width:18px;height:18px;display:inline-flex;align-items:center;justify-content:center;font-size:10px;padding:0 5px}
	/* a sidebar vira gaveta de baixo */
	body.sgl-drawer-open{overflow:hidden}
	.sgl-filter{position:fixed;left:0;right:0;bottom:0;top:auto;max-height:82vh;overflow-y:auto;background:#F5F4F1;z-index:9999;padding:18px 20px 90px;border-radius:16px 16px 0 0;border-top:2px solid #C6A053;transform:translateY(105%);transition:transform .3s ease;box-shadow:0 -8px 40px rgba(10,21,33,.3)}
	body.sgl-drawer-open .sgl-filter{transform:translateY(0)}
	.sgl-drawer-cta{display:none}
	body.sgl-drawer-open .sgl-drawer-cta{display:block;position:fixed;left:16px;right:16px;bottom:14px;z-index:10000;background:#C6A053;color:#fff;border:none;border-radius:3px;padding:14px;font-family:Inter,sans-serif;font-size:12px;letter-spacing:.12em;text-transform:uppercase;font-weight:700;cursor:pointer}
	.sgl-drawer-x{display:none}
	body.sgl-drawer-open .sgl-drawer-x{display:block;position:sticky;top:0;margin-left:auto;background:none;border:none;font-size:22px;color:#0A1521;cursor:pointer;line-height:1;padding:0 0 6px;float:right}
	.sgl-drawer-veil{display:none}
	body.sgl-drawer-open .sgl-drawer-veil{display:block;position:fixed;inset:0;background:rgba(10,21,33,.5);z-index:9998}
	.sgl-amb-grid{grid-template-columns:1fr 1fr 1fr}
	.sgl-meta{margin-left:0;width:100%}
}
@media (prefers-reduced-motion:reduce){
	.sgl-amb-veil,.sgl-filter,.sgl-chip{transition:none}
}
