/* ====== Layout da página Galeria (NÃO estiliza .card) ====== */

:root{
  --max:1200px;
  --ink:#0f172a;
  --bg-page:#fff;
  --line:#e5e7eb;
  --gap:18px;
}

*{box-sizing:border-box}
html,body{margin:0}
body{
  background:var(--bg-page);
  color:var(--ink);
  font-family:"ABCDiatypeExpanded", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a{text-decoration:none;color:inherit}

body[data-page="galeria"]{min-height:100vh;display:flex;flex-direction:column}
body[data-page="galeria"]>main{flex:1 0 auto}
body[data-page="galeria"] .site-footer{margin-top:auto}

.wrap{max-width:var(--max);margin:0 auto;padding:20px}

/* Cabeçalho da página */
.page-head{display:flex;align-items:end;justify-content:space-between;gap:10px;margin:10px 0 16px}
.page-title{font-weight:900;font-size:26px;letter-spacing:-.02em}

.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.gallery-discovery{display:grid;grid-template-columns:minmax(0,.9fr) minmax(340px,1.1fr);gap:34px;align-items:center;margin:8px 0 34px;padding:28px;border:1px solid #eadff0;border-radius:24px;background:linear-gradient(135deg,#fff8fc 0%,#f7f1fb 100%)}
.gallery-discovery__eyebrow{display:block;margin-bottom:8px;color:#7a3d75;font-size:11px;font-weight:900;letter-spacing:.15em}
.gallery-discovery__copy h2{margin:0;font-size:clamp(24px,3.4vw,42px);line-height:1.03;letter-spacing:-.035em}
.gallery-discovery__copy p{max-width:560px;margin:12px 0 0;color:#665e68;line-height:1.55}
.gallery-discovery__searchbox{display:flex;gap:9px;padding:6px;border:1px solid #d9cadf;border-radius:16px;background:#fff;box-shadow:0 10px 30px rgba(87,52,91,.08)}
.gallery-discovery__searchbox input{min-width:0;flex:1;border:0;outline:0;padding:10px 12px;background:transparent;color:#201923;font:inherit}
.gallery-discovery__searchbox button{border:0;border-radius:11px;padding:10px 18px;background:#241d27;color:#fff;font:inherit;font-weight:800;cursor:pointer}
.gallery-discovery__searchbox button:disabled{opacity:.55;cursor:wait}
.gallery-discovery__suggestions{display:flex;flex-wrap:wrap;gap:7px;margin-top:11px}
.gallery-discovery__suggestions button{border:1px solid #dfd1e4;border-radius:999px;padding:7px 10px;background:rgba(255,255,255,.7);color:#514755;font:inherit;font-size:12px;cursor:pointer}
.gallery-discovery__suggestions button:hover{border-color:#9f76aa;background:#fff}
.gallery-discovery__feedback{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:24px;margin-top:10px}
.gallery-discovery__feedback p{margin:0;color:#756b77;font-size:12px}
.gallery-discovery__clear{flex:none;border:0;padding:0;background:transparent;color:#6f3d78;font:inherit;font-size:12px;font-weight:800;text-decoration:underline;cursor:pointer}
.gallery-discovery.is-loading{opacity:.78}
.gallery-discovery-empty{padding:42px 20px;border:1px dashed #d7cbdc;border-radius:18px;text-align:center;color:#665e68}
.gallery-discovery-empty strong{display:block;margin-bottom:7px;color:#201923;font-size:18px}
.gallery-filter-empty{padding:48px 20px;border:1px dashed #d7cbdc;border-radius:18px;text-align:center;color:#665e68}.gallery-filter-empty strong{display:block;margin-bottom:7px;color:#201923;font-size:18px}
.gallery-discovery[hidden],.gallery-subcategories[hidden],.gallery-filter-sheet[hidden],.gallery-selected-filters[hidden]{display:none!important}
.gallery-subcategories{display:grid;gap:17px;margin:8px 0 30px;padding:24px 26px;border:1px solid #eadff0;border-radius:22px;background:linear-gradient(135deg,#fff8fc,#f7f1fb)}
.gallery-subcategories__head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px}.gallery-subcategories__eyebrow{display:block;margin-bottom:5px;color:#7a3d75;font-size:11px;font-weight:900;letter-spacing:.14em}.gallery-subcategories h2{margin:0;font-size:clamp(24px,3.3vw,38px);letter-spacing:-.03em}.gallery-subcategories p{margin:8px 0 0;color:#665e68}.gallery-subcategories__buttons{display:flex;flex-wrap:wrap;gap:8px}.gallery-subcategories__buttons button,.gallery-selected-filters button{border:1px solid #d9cadf;border-radius:999px;padding:9px 14px;background:#fff;color:#514755;font:inherit;font-size:13px;font-weight:700;cursor:pointer}.gallery-subcategories__buttons button:hover,.gallery-subcategories__buttons button.is-active{border-color:#241d27;background:#241d27;color:#fff}.gallery-subcategories__buttons button span{margin-left:5px;opacity:.64;font-size:11px}.gallery-selected-filters{display:flex;align-items:center;gap:10px;padding-top:2px}.gallery-selected-filters>span{color:#756b77;font-size:12px;font-weight:800}.gallery-selected-filters>div{display:flex;flex-wrap:wrap;gap:7px}.gallery-selected-filters button{padding:7px 11px;border-color:#241d27;background:#241d27;color:#fff}.gallery-subcategories__footer{display:flex;align-items:center;justify-content:space-between;gap:14px;border-top:1px solid rgba(122,61,117,.12);padding-top:13px}.gallery-subcategories__footer p{margin:0;font-size:13px}.gallery-subcategories__footer button{border:0;padding:0;background:transparent;color:#6f3d78;font:inherit;font-size:13px;font-weight:800;text-decoration:underline;cursor:pointer}.gallery-filter-open{display:none;border:0;border-radius:999px;padding:10px 14px;background:#241d27;color:#fff;font:inherit;font-weight:800}.gallery-filter-open span{display:inline-grid;place-items:center;min-width:21px;height:21px;margin-left:5px;border-radius:999px;background:#fff;color:#241d27;font-size:11px}.gallery-filter-sheet{position:fixed;inset:0;z-index:10000}.gallery-filter-sheet__backdrop{position:absolute;inset:0;width:100%;border:0;background:rgba(26,20,28,.48);backdrop-filter:blur(4px)}.gallery-filter-sheet__panel{position:absolute;right:0;bottom:0;left:0;display:grid;gap:16px;max-height:min(82vh,720px);padding:20px;border-radius:24px 24px 0 0;background:#fff;box-shadow:0 -18px 55px rgba(36,29,39,.2)}.gallery-filter-sheet__panel header{display:flex;align-items:center;justify-content:space-between;gap:16px}.gallery-filter-sheet__panel header span{color:#7a3d75;font-size:10px;font-weight:900;letter-spacing:.14em}.gallery-filter-sheet__panel header h2{margin:3px 0 0;font-size:25px}.gallery-filter-sheet__panel header button{border:0;width:38px;height:38px;border-radius:50%;background:#f3edf4;color:#241d27;font:inherit;font-size:25px;cursor:pointer}.gallery-filter-sheet__search input{width:100%;border:1px solid #ddd1df;border-radius:13px;padding:12px 14px;background:#faf8fb;color:#241d27;font:inherit;outline:none}.gallery-filter-sheet__search input:focus{border-color:#8c6192;box-shadow:0 0 0 3px rgba(122,61,117,.12)}.gallery-filter-sheet__options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;overflow:auto;padding:1px 2px 8px}.gallery-filter-sheet__options button{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid #e0d6e3;border-radius:13px;padding:11px 12px;background:#fff;color:#403743;font:inherit;text-align:left;cursor:pointer}.gallery-filter-sheet__options button.is-active{border-color:#241d27;background:#f3edf4;font-weight:800}.gallery-filter-sheet__options button span{color:#786e7a;font-size:11px}.gallery-filter-sheet__panel footer{display:grid;grid-template-columns:auto 1fr;gap:10px;padding-top:4px}.gallery-filter-sheet__panel footer button{border:0;border-radius:13px;padding:13px 16px;font:inherit;font-weight:800;cursor:pointer}.gallery-filter-sheet__clear{background:#f3eff4;color:#4c434f}.gallery-filter-sheet__apply{background:#241d27;color:#fff}
@media(max-width:800px){.gallery-discovery{grid-template-columns:1fr;gap:20px;padding:22px}}
@media(max-width:720px){.gallery-subcategories{padding:20px;gap:14px}.gallery-subcategories__head{align-items:center}.gallery-subcategories__head p{font-size:13px}.gallery-filter-open{display:inline-flex;align-items:center;flex:none}.gallery-subcategories__buttons{margin-right:-20px;overflow-x:auto;flex-wrap:nowrap;padding:1px 20px 6px 0;scrollbar-width:none}.gallery-subcategories__buttons::-webkit-scrollbar{display:none}.gallery-subcategories__buttons button{flex:none}.gallery-selected-filters{align-items:flex-start;flex-direction:column}.gallery-selected-filters>div{flex-wrap:nowrap;width:100%;overflow-x:auto;padding-bottom:4px}.gallery-subcategories__footer{padding-top:10px}}
@media(max-width:520px){.gallery-discovery__searchbox{display:grid}.gallery-discovery__searchbox button{width:100%}.gallery-discovery__feedback{align-items:flex-start;flex-direction:column}.gallery-subcategories__head h2{font-size:23px}.gallery-subcategories__head p{display:none}.gallery-filter-sheet__options{grid-template-columns:1fr}}

/* Seções de catálogo */
.catalog-section{margin:18px 0 28px}
.section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.section-title{font-weight:800;font-size:20px;margin:0}

/* Grid que recebe os cards (apenas container) */
.cards{display:grid;gap:var(--gap);grid-template-columns:repeat(4,minmax(0,1fr))}
@media (max-width:1100px){ .cards{grid-template-columns:repeat(3,1fr)} }
@media (max-width:820px){ .cards{grid-template-columns:repeat(2,1fr)} }
@media (max-width:560px){ .cards{grid-template-columns:1fr} }

/* Loader global (controlado por body.loading) */
#pageLoader{
  position:fixed; inset:0; display:none;
  align-items:center; justify-content:center;
  background:rgba(0,0,0,.6);
  backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px);
  z-index:9999;
}
#pageLoader img{height:52px; filter:invert(1) drop-shadow(0 0 8px rgba(255,255,255,.3))}
body.loading #pageLoader{display:flex}
.pc-creator-label{
  font-size: 2px;
  opacity: .75;
}
.pc-creator-name{
  font-size: 12px;
  font-weight: 700;
}

.customer-gallery{margin:72px auto 30px;max-width:1180px;padding:0 18px}.customer-gallery__head{max-width:680px;margin-bottom:24px}.customer-gallery__head p{margin:0 0 8px;font-size:11px;font-weight:800;letter-spacing:.16em}.customer-gallery__head h2{margin:0 0 8px;font-size:clamp(28px,5vw,52px)}.customer-gallery__head span{color:#626262}.customer-gallery__grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}.customer-gallery__grid article{overflow:hidden;border:1px solid #e6e6e6;border-radius:16px;background:#fff}.customer-gallery__grid img,.customer-gallery__grid video{display:block;width:100%;height:300px;object-fit:cover;background:#17151a}.customer-gallery__grid article>div{padding:14px}.customer-gallery__grid p{margin:6px 0 0;color:#666;line-height:1.5}@media(max-width:600px){.customer-gallery{margin-top:48px}.customer-gallery__grid img,.customer-gallery__grid video{height:250px}}
