/* Estilos de index.php (antes dentro do HTML) */
        /* =====================================================================
           LOOMA — Loja de fotografia (design claro: branco, cinza claro, lilás)
           ===================================================================== */
        :root {
            --lm-lilac: #B799BF;   /* lilás Looma */
            --lm-lilac-2: #a68bb0;
            --lm-plum: #7d5a87;    /* botões e links */
            --lm-plum-2: #694a72;  /* hover dos botões */
            --lm-tint: #f3eef4;    /* lilás muito claro */
            --lm-ph-1: #d9cddf;    /* tons dos espaços sem foto */
            --lm-ph-2: #e5dce8;
            --lm-ph-3: #c9b6cf;
            --lm-ink: #2b2530;     /* títulos */
            --lm-text: #5b5561;    /* texto */
            --lm-muted: #8a8490;
            --lm-line: #e7e3ea;
            --lm-bg: #f5f5f7;      /* secções cinza claro */
            --lm-dark: #2f2433;    /* rodapé */
            --lm-max: 1600px;     /* largura máxima do conteúdo */
            --lm-head: 'Manrope', 'Segoe UI', Tahoma, sans-serif;
            --lm-body: 'Nunito Sans', 'Segoe UI', Tahoma, sans-serif;
        }
        * { box-sizing: border-box; }
        html { scroll-behavior: smooth; }
        body, html { margin: 0; padding: 0; background: #fff; color: var(--lm-text); font-family: var(--lm-body); }
        body { min-height: 100vh; display: flex; flex-direction: column; }
        body > .lm-footer { margin-top: auto; }
        h1, h2, h3, h4, h5, h6 { font-family: var(--lm-head); color: var(--lm-ink); }
        .text-primary { color: var(--lm-plum) !important; }
        .lm-wrap { max-width: var(--lm-max); margin: 0 auto; }
        [id^="lm-sec-"] { scroll-margin-top: 84px; }

        @media print { body { display: none !important; } }
        .noselect { -webkit-touch-callout: none; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; }
        .noselect input, .noselect textarea { -webkit-user-select: text; user-select: text; }
        @keyframes popIn { 0% { transform: scale(0); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

        /* ---------- Faixa de aviso + cabeçalho ---------- */
        .lm-announce { background: var(--lm-lilac); color: var(--lm-ink); font-size: .8rem; font-weight: 700; text-align: center; padding: 7px 16px; }
        .lm-header { position: sticky; top: 0; z-index: 1000; background: #fff; border-bottom: 1px solid var(--lm-line); }
        .lm-header-inner { max-width: var(--lm-max); margin: 0 auto; padding: 12px clamp(16px, 4vw, 40px); display: flex; align-items: center; gap: clamp(16px, 3vw, 36px); }
        .lm-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--lm-ink); flex-shrink: 0; }
        .lm-brand:hover { color: var(--lm-ink); }
        .lm-brand-mark { width: 44px; height: 44px; border-radius: 50%; background: var(--lm-lilac); display: flex; align-items: center; justify-content: center; font-size: .95rem; color: var(--lm-ink); }
        .lm-brand-name { font-family: var(--lm-head); font-weight: 800; font-size: 1.25rem; letter-spacing: 1px; line-height: 1; display: block; }
        .lm-brand-sub { font-size: .76rem; color: var(--lm-muted); display: block; margin-top: 2px; }
        .lm-nav { display: flex; align-items: center; gap: 30px; }
        .lm-nav a { font-family: var(--lm-head); font-weight: 600; font-size: 1rem; color: var(--lm-ink); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; transition: border-color .2s, color .2s; }
        .lm-nav a:hover { color: var(--lm-plum); }
        .lm-nav a.active { border-bottom-color: var(--lm-ink); }
        .lm-icons { margin-left: auto; display: flex; align-items: center; gap: 4px; }
        .lm-icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--lm-ink); display: inline-flex; align-items: center; justify-content: center; position: relative; font-size: 1rem; transition: background .2s, color .2s; padding: 0; }
        .lm-icon-btn:hover, .lm-icon-btn[aria-expanded="true"] { background: var(--lm-tint); color: var(--lm-plum); }
        .lm-icon-btn.lm-cart-btn { background: var(--lm-tint); }
        .lm-icon-btn.lm-cart-btn:hover { background: var(--lm-ph-2); }
        #cart-count { position: absolute; top: -3px; right: -3px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--lm-plum); color: #fff; border: 2px solid #fff; font-size: .62rem; font-weight: 800; display: flex; align-items: center; justify-content: center; font-family: var(--lm-head); }
        #user-info .dropdown-menu { border-radius: 12px; margin-top: 10px !important; min-width: 220px; }
        .lm-user-head { padding: 8px 16px 10px; border-bottom: 1px solid var(--lm-line); margin-bottom: 4px; }
        .lm-user-head small { display: block; color: var(--lm-muted); font-size: .72rem; }
        .lm-user-head strong { font-family: var(--lm-head); color: var(--lm-ink); font-size: .92rem; }
        .lm-menu-btn { display: none; }
        /* Utilizador (ícone + nome de quem tem sessão iniciada) */
        .lm-user-btn { display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 14px 0 4px; border-radius: 999px; border: 1px solid var(--lm-line); background: #fff; color: var(--lm-ink); font-family: var(--lm-head); font-weight: 700; font-size: .92rem; transition: border-color .2s, background .2s; max-width: 240px; }
        .lm-user-btn:hover, .lm-user-btn[aria-expanded="true"] { border-color: var(--lm-lilac); background: var(--lm-tint); }
        .lm-user-ico { width: 34px; height: 34px; border-radius: 50%; background: var(--lm-tint); color: var(--lm-plum); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
        .lm-user-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .lm-user-caret { font-size: .65rem; color: var(--lm-muted); }
        .lm-icons { gap: 10px !important; }
        /* Pesquisa dentro da página Álbuns */
        .lm-search-inline { position: relative; margin-left: auto; width: min(420px, 100%); }
        .lm-search-inline input { background: #fff; }
        /* Início ocupa o ecrã (sem secções por baixo) */
        .lm-hero-full { min-height: calc(100vh - 230px); display: flex; align-items: center; }
        .lm-hero-full .lm-hero-inner { width: 100%; }
        .lm-how-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--lm-line); }
        .lm-how-foot .lm-pay-list { margin-top: 0; }
        .lm-search input { width: 100%; border: 1px solid var(--lm-line); background: var(--lm-bg); border-radius: 10px; padding: 11px 16px 11px 42px; font-size: .92rem; color: var(--lm-ink); outline: none; transition: border-color .2s, background .2s; }
        .lm-search input:focus { border-color: var(--lm-lilac); background: #fff; }
        .lm-search i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--lm-muted); }

        /* ---------- Botões ---------- */
        .lm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 10px; padding: 15px 26px; font-family: var(--lm-head); font-weight: 700; font-size: 1rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
        .lm-btn-primary { background: var(--lm-plum); color: #fff; }
        .lm-btn-primary:hover { background: var(--lm-plum-2); color: #fff; }
        .lm-btn-ghost { background: #fff; color: var(--lm-ink); border-color: var(--lm-line); }
        .lm-btn-ghost:hover { border-color: var(--lm-lilac); color: var(--lm-plum); }
        .lm-link { font-family: var(--lm-head); font-weight: 700; font-size: .82rem; color: var(--lm-plum); text-decoration: none; background: none; border: 0; padding: 0; white-space: nowrap; }
        .lm-link:hover { color: var(--lm-plum-2); text-decoration: underline; }

        .btn-looma { width: 100%; background: var(--lm-plum); color: #fff; border: none; padding: 12px; font-family: var(--lm-head); font-size: .92rem; font-weight: 700; border-radius: 8px; cursor: pointer; margin-top: 10px; transition: background .2s; text-align: center; display: inline-flex; justify-content: center; align-items: center; text-decoration: none; }
        .btn-looma:hover { background: var(--lm-plum-2); color: #fff; }
        .btn-looma-outline { background: #fff; border: 1px solid var(--lm-line); color: var(--lm-ink); padding: 10px 18px; border-radius: 8px; font-weight: 700; cursor: pointer; transition: border-color .2s, color .2s; }
        .btn-looma-outline:hover { border-color: var(--lm-lilac); color: var(--lm-plum); }

        /* ---------- Hero ---------- */
        .lm-hero { background: var(--lm-bg); padding: clamp(36px, 6vw, 68px) clamp(16px, 4vw, 40px); }
        .lm-hero-inner { max-width: var(--lm-max); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 56px); align-items: center; }
        .lm-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--lm-tint); border: 1px solid #e3d6e7; color: var(--lm-plum); font-size: .84rem; font-weight: 700; padding: 6px 14px; border-radius: 999px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .lm-hero h1 { font-weight: 800; font-size: clamp(2.3rem, 4.3vw, 4.5rem); line-height: 1.08; letter-spacing: -0.025em; margin: 18px 0 16px; }
        .lm-hero p.lead-text { font-size: clamp(1rem, 1.1vw, 1.2rem); line-height: 1.65; max-width: 580px; margin: 0 0 26px; }
        .lm-hero-btns { display: flex; flex-wrap: wrap; gap: 10px; }
        .lm-trust { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 28px; font-size: .92rem; color: var(--lm-text); }
        .lm-trust span { display: inline-flex; align-items: center; gap: 7px; }
        .lm-trust i { color: var(--lm-plum); }
        .lm-bento { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; height: clamp(320px, 33vw, 580px); }
        .lm-cell { border-radius: 12px; overflow: hidden; background: var(--lm-ph-2); display: flex; align-items: center; justify-content: center; color: rgba(43,37,48,.35); font-size: 1.8rem; }
        .lm-cell:nth-child(1) { grid-row: span 2; background: var(--lm-ph-3); font-size: 2.4rem; }
        .lm-cell:nth-child(3) { background: var(--lm-ph-1); }
        /* Fotos protegidas (desenhadas em <canvas>): ocupam o espaço como as <img> antigas */
        canvas.lm-ph { display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s ease; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
        canvas.lm-ph.lm-ready { opacity: 1; }
        #gallery-main-img.lm-ph { width: auto; height: auto; }
        .lm-pmedia canvas.lm-ph, .lm-album-media canvas.lm-ph { transition: opacity .35s ease, transform .6s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
        .lm-pcard:hover .lm-pmedia canvas.lm-ph, .lm-album:hover .lm-album-media canvas.lm-ph { transform: scale(1.04); }
        .lm-cell { position: relative; }
        .lm-cell img, .lm-cell canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; animation: lmKen 14s ease-in-out infinite alternate; }
        .lm-cell:nth-child(2) img, .lm-cell:nth-child(2) canvas { animation-delay: -5s; }
        .lm-cell:nth-child(3) img, .lm-cell:nth-child(3) canvas { animation-delay: -9s; }
        .lm-cell .lm-cell-next { opacity: 0 !important; transition: opacity 1.2s ease; }
        .lm-cell .lm-cell-next.in { opacity: 1 !important; }
        @keyframes lmKen { from { transform: scale(1); } to { transform: scale(1.08); } }
        /* Página inicial com vida: entrada suave do texto e das fotos + etiquetas flutuantes */
        @keyframes lmUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
        @keyframes lmFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
        #view-home .lm-hero-inner > div:first-child > * { animation: lmUp .7s cubic-bezier(.2,.8,.2,1) both; }
        #view-home .lm-hero-inner > div:first-child > *:nth-child(2) { animation-delay: .08s; }
        #view-home .lm-hero-inner > div:first-child > *:nth-child(3) { animation-delay: .16s; }
        #view-home .lm-hero-inner > div:first-child > *:nth-child(4) { animation-delay: .24s; }
        #view-home .lm-hero-inner > div:first-child > *:nth-child(5) { animation-delay: .32s; }
        #view-home .lm-cell { animation: lmUp .8s cubic-bezier(.2,.8,.2,1) both; }
        #view-home .lm-cell:nth-child(1) { animation-delay: .15s; }
        #view-home .lm-cell:nth-child(2) { animation-delay: .3s; }
        #view-home .lm-cell:nth-child(3) { animation-delay: .45s; }
        .lm-bento-wrap { position: relative; }
        .lm-float { position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 12px; padding: 11px 16px; box-shadow: 0 16px 40px rgba(43,37,48,.16); font-size: .86rem; color: var(--lm-text); white-space: nowrap; animation: lmFloat 5s ease-in-out infinite; }
        .lm-float i { width: 34px; height: 34px; border-radius: 50%; background: var(--lm-tint); color: var(--lm-plum); display: inline-flex; align-items: center; justify-content: center; font-size: .9rem; }
        .lm-float strong { font-family: var(--lm-head); color: var(--lm-ink); }
        .lm-float-a { left: -26px; bottom: 34px; }
        .lm-float-b { right: -18px; top: 26px; animation-delay: -2.5s; }
        /* Fundo da página inicial: padrão muito suave de fotografia (máquina, diafragma, película, focagem) + diafragma grande */
        .lm-hero-full { position: relative; overflow: hidden; isolation: isolate; }
        /* Visor da máquina fotográfica (fundo da página inicial) */
        .lm-hero-full { background: radial-gradient(ellipse 45% 60% at 74% 52%, rgba(183,153,191,.22), rgba(183,153,191,0) 70%), var(--lm-bg); }
        .lm-vf { position: absolute; inset: clamp(14px, 2.2vw, 30px); z-index: -1; pointer-events: none; color: var(--lm-plum); }
        .lm-vf-c { position: absolute; width: clamp(26px, 3vw, 46px); height: clamp(26px, 3vw, 46px); border: 2px solid rgba(125,90,135,.38); }
        .lm-vf-c.tl { left: 0; top: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 6px; }
        .lm-vf-c.tr { right: 0; top: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 6px; }
        .lm-vf-c.bl { left: 0; bottom: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 6px; }
        .lm-vf-c.br { right: 0; bottom: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 6px; }
        .lm-vf-g { position: absolute; background: rgba(125,90,135,.09); }
        .lm-vf-g.v1, .lm-vf-g.v2 { top: 8%; bottom: 8%; width: 1px; }
        .lm-vf-g.h1, .lm-vf-g.h2 { left: 5%; right: 5%; height: 1px; }
        .lm-vf-g.v1 { left: 33.333%; } .lm-vf-g.v2 { left: 66.666%; }
        .lm-vf-g.h1 { top: 33.333%; } .lm-vf-g.h2 { top: 66.666%; }
        .lm-vf-t { position: absolute; display: inline-flex; align-items: center; gap: 10px; font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace; font-size: .74rem; font-weight: 600; letter-spacing: 1.5px; color: rgba(125,90,135,.62); white-space: nowrap; }
        .lm-vf-t i { width: 4px; height: 4px; border-radius: 50%; background: rgba(125,90,135,.45); display: inline-block; }
        .lm-vf-t em { font-style: normal; }
        .lm-vf-t.tl { left: clamp(40px, 4.4vw, 64px); top: 6px; }
        .lm-vf-t.tr { right: clamp(40px, 4.4vw, 64px); top: 6px; }
        .lm-vf-t.bl { left: clamp(40px, 4.4vw, 64px); bottom: 6px; }
        .lm-vf-t.br { right: clamp(40px, 4.4vw, 64px); bottom: 6px; }
        .lm-vf-box { border: 1.5px solid rgba(125,90,135,.6); border-radius: 3px; padding: 0 4px; line-height: 1.35; font-size: .68rem; letter-spacing: 1px; color: rgba(125,90,135,.8); }
        .lm-vf-hist { position: absolute; right: clamp(40px, 4.4vw, 64px); bottom: 34px; width: 132px; padding: 6px 7px 5px; border: 1px solid rgba(125,90,135,.32); border-radius: 4px; background: rgba(255,255,255,.35); }
        .lm-vf-hist svg { display: block; width: 100%; height: 40px; }
        .lm-vf-hist path#vf-hist-path { fill: rgba(125,90,135,.3); stroke: rgba(125,90,135,.7); stroke-width: .8; vector-effect: non-scaling-stroke; transition: d .9s ease; }
        .lm-vf-hist-grid { fill: none; stroke: rgba(125,90,135,.18); stroke-width: .5; vector-effect: non-scaling-stroke; }
        .lm-vf-hist-lbl { position: absolute; left: 7px; top: -9px; padding: 0 4px; background: var(--lm-bg); font-family: ui-monospace, Consolas, monospace; font-size: .56rem; font-weight: 700; letter-spacing: 1.5px; color: rgba(125,90,135,.6); }
        @media (max-width: 960px) { .lm-vf-hist { display: none; } }
        .lm-vf-rec { width: 9px; height: 9px; border-radius: 50%; background: var(--lm-plum); display: inline-block; animation: lmBlink 2.4s ease-in-out infinite; }
        @keyframes lmBlink { 0%, 100% { opacity: .9; } 50% { opacity: .2; } }
        .lm-vf-meter { position: relative; width: 120px; height: 10px; display: inline-block;
            background: linear-gradient(rgba(125,90,135,.5), rgba(125,90,135,.5)) center / 100% 1px no-repeat,
                        repeating-linear-gradient(90deg, rgba(125,90,135,.5) 0 1px, transparent 1px 15px) center / 100% 6px no-repeat; }
        .lm-vf-meter span { position: absolute; left: 50%; top: -3px; width: 2px; height: 16px; background: var(--lm-plum); border-radius: 2px; animation: lmMeter 6s ease-in-out infinite; }
        @keyframes lmMeter { 0%, 100% { transform: translateX(-18px); } 50% { transform: translateX(14px); } }
        .lm-vf-bat { position: relative; width: 24px; height: 11px; border: 1.5px solid rgba(125,90,135,.55); border-radius: 2px; display: inline-block; }
        .lm-vf-bat::after { content: ""; position: absolute; right: -4px; top: 2.5px; width: 2px; height: 4px; background: rgba(125,90,135,.55); border-radius: 0 1px 1px 0; }
        .lm-vf-bat span { position: absolute; left: 2px; top: 2px; bottom: 2px; width: 70%; background: rgba(125,90,135,.55); border-radius: 1px; }
        @media (max-width: 960px) { .lm-vf-g { display: none; } }
        @media (max-width: 576px) { .lm-vf-t { display: none; } .lm-vf { inset: 10px; } }        .lm-hero-full::after { content: ""; position: absolute; z-index: -1; pointer-events: none; width: 620px; height: 620px; left: -230px; bottom: -280px; opacity: .1;
            background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600' viewBox='0 0 600 600' fill='none' stroke='%237d5a87' stroke-width='3'%3E%3Ccircle cx='300' cy='300' r='110'/%3E%3Ccircle cx='300' cy='300' r='282' stroke-width='1.5'/%3E%3Cpath d='M410 300 L355 395.3 L245 395.3 L190 300 L245 204.7 L355 204.7 Z'/%3E%3Cpath d='M410 300 L322.9 407.6 M355 395.3 L218.3 373.6 M245 395.3 L195.4 266 M190 300 L277.1 192.4 M245 204.7 L381.7 226.4 M355 204.7 L404.6 334 '/%3E%3C/svg%3E") center / contain no-repeat; animation: lmSpin 120s linear infinite; }
        @keyframes lmSpin { to { transform: rotate(360deg); } }
        @media (max-width: 576px) { .lm-hero-full::after { width: 380px; height: 380px; left: -160px; bottom: -170px; } }        /* Sem linha branca por cima do rodapé: a zona cinzenta da página inicial vai até ao rodapé */
        body[data-view="home"] #view-home { display: flex !important; flex-direction: column; flex: 1 0 auto; }
        body[data-view="home"] .lm-hero-full { flex: 1 0 auto; min-height: 0; }
        body[data-view="home"] .lm-footer { margin-top: 0; }
        @media (max-width: 960px) { .lm-float-a { left: 10px; bottom: 12px; } .lm-float-b { right: 10px; top: 12px; } }
        @media (max-width: 576px) { .lm-float { font-size: .74rem; padding: 8px 11px; } .lm-float i { width: 26px; height: 26px; font-size: .75rem; } .lm-float-b { display: none; } }
        .lm-cell:hover img { transform: scale(1.04); }

        /* ---------- Secções ---------- */
        .lm-sec { padding: clamp(48px, 7vw, 76px) clamp(16px, 4vw, 40px); background: #fff; }
        .lm-sec.grey { background: var(--lm-bg); }
        .lm-kicker { font-family: var(--lm-head); font-size: .76rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--lm-plum); }
        .lm-sec h2 { font-weight: 800; font-size: clamp(1.7rem, 2.6vw, 2.6rem); letter-spacing: -0.02em; margin: 8px 0 0; }
        .lm-sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 28px; }
        .lm-sec-head.center { justify-content: center; text-align: center; }
        .lm-count { color: var(--lm-muted); font-size: .95rem; }
        .lm-sec-tight { padding-top: 24px; }

        /* Cartões de álbum (estilo "coleções") */
        .album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 40px 24px; }
        .lm-album { cursor: pointer; border-radius: 12px; }
        .lm-album:focus-visible { outline: 3px solid var(--lm-lilac); outline-offset: 4px; }
        .lm-album-media { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--lm-ph-1); }
        .lm-album:nth-child(4n+2) .lm-album-media { background: var(--lm-ph-2); }
        .lm-album:nth-child(4n+4) .lm-album-media { background: var(--lm-ph-3); }
        .lm-album-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
        .lm-album:hover .lm-album-media img { transform: scale(1.05); }
        .lm-chip { position: absolute; top: 12px; left: 12px; z-index: 1; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: #fff; color: var(--lm-plum); box-shadow: 0 4px 12px rgba(43,37,48,.12); }
        .lm-chip-private { background: var(--lm-plum); color: #fff; }
        /* Página Álbuns (modelo: título + ordenar + cartões com rodapé de preço) */
        .lm-albums-page { padding-top: clamp(32px, 4vw, 52px); }
        .lm-albums-head { align-items: center; margin-bottom: 30px; }
        .lm-albums-head h2 { font-size: clamp(1.9rem, 3vw, 2.8rem); }
        .lm-sort { display: inline-flex; align-items: center; gap: 12px; margin: 0; }
        .lm-sort span { font-family: var(--lm-head); font-weight: 700; font-size: .9rem; color: var(--lm-ink); }
        .lm-sort select { border: 1px solid var(--lm-line); border-radius: 8px; padding: 10px 14px; font-size: .92rem; color: var(--lm-text); background: #fff; cursor: pointer; outline: none; }
        .lm-sort select:focus { border-color: var(--lm-lilac); }
        .lm-album-media { border-radius: 14px; display: flex; align-items: center; justify-content: center; }
        .lm-album-ph { font-size: 2.2rem; color: rgba(43,37,48,.35); }
        .lm-chip-count { top: auto; bottom: 12px; left: 12px; color: var(--lm-ink); }
        .lm-album-name { font-family: var(--lm-head); font-weight: 700; font-size: 1.25rem; color: var(--lm-ink); margin: 14px 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .lm-album-info { font-size: .88rem; color: var(--lm-muted); }
        .lm-album-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--lm-line); }
        .lm-album-price { font-size: .86rem; color: var(--lm-muted); }
        .lm-album-price strong { font-family: var(--lm-head); font-size: 1.02rem; color: var(--lm-ink); }
        .lm-album-cta { font-family: var(--lm-head); font-weight: 700; font-size: .9rem; color: var(--lm-plum); white-space: nowrap; transition: transform .2s; }
        .lm-album:hover .lm-album-cta { transform: translateX(3px); }
        .lm-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 12px; }
        .lm-meta-title { font-family: var(--lm-head); font-weight: 700; font-size: 1.12rem; color: var(--lm-ink); margin: 0; line-height: 1.3; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .lm-meta-side { font-size: .84rem; color: var(--lm-muted); white-space: nowrap; }
        .lm-meta-side strong { font-family: var(--lm-head); font-size: .86rem; color: var(--lm-ink); }
        .lm-meta-sub { font-size: .86rem; color: var(--lm-muted); margin-top: 2px; }
        .lm-empty { grid-column: 1 / -1; text-align: center; padding: 50px 20px; color: var(--lm-muted); }
        .lm-empty i { font-size: 2.2rem; color: var(--lm-lilac); margin-bottom: 14px; display: block; }

        /* Cartões de foto (destaque + álbum) */
        .lm-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 28px 18px; }
        .lm-pcard { position: relative; }
        .lm-pmedia { position: relative; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; background: var(--lm-ph-1); cursor: zoom-in; outline: 3px solid transparent; outline-offset: 3px; transition: outline-color .25s; }
        .lm-pcard:nth-child(3n+2) .lm-pmedia { background: var(--lm-ph-2); }
        .lm-pcard:nth-child(3n+3) .lm-pmedia { background: var(--lm-ph-3); }
        .lm-pmedia img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-select: none; user-select: none; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
        .lm-pcard:hover .lm-pmedia img { transform: scale(1.04); }
        .lm-pcard.lm-in-cart .lm-pmedia { outline-color: var(--lm-plum); }
        .lm-pcard-link .lm-pmedia { cursor: pointer; }
        .lm-round { position: absolute; top: 12px; right: 12px; z-index: 4; width: 34px; height: 34px; border-radius: 50%; border: 0; background: #fff; color: var(--lm-ink); display: flex; align-items: center; justify-content: center; font-size: .85rem; box-shadow: 0 4px 12px rgba(43,37,48,.15); transition: background .2s, color .2s, transform .2s; }
        .lm-round:hover { background: var(--lm-plum); color: #fff; transform: scale(1.06); }
        .lm-round.in-cart { background: var(--lm-plum); color: #fff; animation: popIn .3s cubic-bezier(.175,.885,.32,1.275); }
        .lm-watermark { position: absolute; inset: 0; z-index: 2; pointer-events: none; display: flex; align-items: center; justify-content: center; opacity: .2; font-size: 1.3rem; font-weight: 800; color: #fff; letter-spacing: 6px; transform: rotate(-30deg); text-shadow: 0 0 8px rgba(0,0,0,.6); }
        .lm-add-btn { border: 0; border-radius: 8px; padding: 9px 12px; font-family: var(--lm-head); font-weight: 700; font-size: .85rem; background: #fff; color: var(--lm-ink); transition: background .2s, color .2s; }
        .lm-add-btn:hover, .lm-add-btn.in-cart { background: var(--lm-plum); color: #fff; }

        /* Como funciona */
        .lm-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
        .lm-step { background: var(--lm-bg); border-radius: 14px; padding: 28px 26px; }
        .lm-step-art { background: #fff; border-radius: 12px; margin: -8px -8px 20px; padding: 14px 10px 0; display: flex; justify-content: center; align-items: flex-end; overflow: hidden; }
        .lm-step-art svg { width: 100%; max-width: 300px; height: auto; display: block; }
        .lm-step { transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s; }
        .lm-step:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(43,37,48,.08); }
        .lm-step-n { width: 34px; height: 34px; border-radius: 50%; background: var(--lm-lilac); color: var(--lm-ink); font-family: var(--lm-head); font-weight: 800; font-size: .9rem; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
        .lm-step h3 { font-weight: 700; font-size: 1.2rem; margin: 0 0 10px; }
        .lm-step p { font-size: .95rem; line-height: 1.65; margin: 0; color: var(--lm-text); }

        /* O que recebe */
        .lm-offers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
        .lm-offer { background: #fff; border: 1px solid var(--lm-line); border-radius: 12px; padding: 24px 24px 22px; display: flex; flex-direction: column; }
        .lm-offer.featured { border: 1.5px solid var(--lm-lilac); }
        .lm-offer-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
        .lm-offer h3 { font-weight: 700; font-size: 1.1rem; margin: 0; }
        .lm-offer-tag { background: var(--lm-tint); color: var(--lm-plum); font-size: .66rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
        .lm-offer p { font-size: .84rem; line-height: 1.6; color: var(--lm-muted); margin: 0 0 18px; }
        .lm-offer-price { margin-top: auto; font-size: .74rem; color: var(--lm-muted); }
        .lm-offer-price strong { font-family: var(--lm-head); font-size: 1.35rem; font-weight: 800; color: var(--lm-ink); margin-left: 2px; }
        .lm-pay-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
        .lm-pay-list span { border: 1px solid var(--lm-line); border-radius: 6px; padding: 3px 9px; font-size: .72rem; font-weight: 600; color: var(--lm-text); }

        /* Sobre */
        .lm-about { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: clamp(28px, 7vw, 110px); align-items: center; }
        .lm-about-img { aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: var(--lm-ph-1); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: rgba(43,37,48,.4); font-size: 2rem; max-width: 380px; }
        .lm-about-img small { font-size: .72rem; font-weight: 700; }
        .lm-about-img img { width: 100%; height: 100%; object-fit: cover; }
        .lm-about h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); margin-bottom: 14px; }
        .lm-about p { font-size: .92rem; line-height: 1.7; margin: 0 0 14px; }

        /* Faixa de ajuda */
        .lm-band-wrap { padding: 0 clamp(8px, 2vw, 24px); margin: clamp(40px, 6vw, 60px) 0; }
        .lm-band { max-width: 1240px; margin: 0 auto; background: var(--lm-tint); border: 1px solid #e8dfeb; border-radius: 16px; padding: clamp(24px, 4vw, 38px) clamp(20px, 4vw, 40px); display: flex; justify-content: space-between; align-items: center; gap: 18px 28px; flex-wrap: wrap; }
        .lm-band h3 { font-weight: 800; font-size: clamp(1.3rem, 2.4vw, 1.65rem); margin: 0 0 6px; }
        .lm-band p { font-size: .86rem; margin: 0; }
        .lm-band-btns { display: flex; flex-wrap: wrap; gap: 10px; }

        /* ---------- Vista de álbum ---------- */
        .lm-page-head { background: var(--lm-bg); padding: 18px clamp(16px, 4vw, 40px) 20px; }
        .lm-event-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; }
        .lm-event-row .lm-pills { margin-left: auto; }
        .lm-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .86rem; color: var(--lm-muted); margin-bottom: 10px; }
        .lm-crumbs a { color: var(--lm-muted); text-decoration: none; font-weight: 600; }
        .lm-crumbs a:hover { color: var(--lm-plum); }
        .lm-crumbs span:last-child { color: var(--lm-ink); font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }
        .lm-event-title { font-weight: 800; font-size: clamp(1.5rem, 2.4vw, 2.1rem); letter-spacing: -0.02em; line-height: 1.15; margin: 0; }
        .lm-pills { display: flex; flex-wrap: wrap; gap: 8px; }
        .lm-pill { background: #fff; border: 1px solid var(--lm-line); border-radius: 999px; padding: 7px 14px; font-size: .88rem; color: var(--lm-text); display: inline-flex; align-items: center; gap: 8px; }
        .lm-pill i { color: var(--lm-plum); }
        .lm-pill strong { color: var(--lm-ink); font-family: var(--lm-head); }
        /* Álbum aberto (modelo: topo branco + "Álbum completo" + fotos em fundo cinza) */
        .lm-album-hero { background: #fff; padding: 22px clamp(16px, 4vw, 40px) 30px; border-bottom: 1px solid var(--lm-line); }
        .lm-album-hero-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px 32px; flex-wrap: wrap; }
        .lm-album-hero-main { min-width: 0; flex: 1 1 420px; }
        .lm-album-title { font-weight: 800; font-size: clamp(2rem, 4vw, 3.3rem); letter-spacing: -0.025em; line-height: 1.06; margin: 12px 0 12px; overflow-wrap: anywhere; }
        .lm-album-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; color: var(--lm-muted); font-size: .98rem; }
        .lm-album-meta strong { color: var(--lm-ink); font-family: var(--lm-head); }
        .lm-album-meta small { font-size: .74rem; }
        .lm-dot { color: #c9c3cd; }
        .lm-full-card { background: var(--lm-tint); border: 1px solid #e3d6e7; border-radius: 14px; padding: 16px 16px 16px 22px; display: flex; align-items: center; gap: 28px; flex: 0 1 auto; }
        .lm-full-title { font-family: var(--lm-head); font-weight: 700; font-size: 1.04rem; color: var(--lm-ink); }
        .lm-full-sub { font-size: .88rem; color: var(--lm-muted); margin-top: 2px; }
        .lm-full-sub strong { color: var(--lm-ink); font-family: var(--lm-head); }
        .lm-full-badge { display: inline-block; background: var(--lm-plum); color: #fff; font-size: .72rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; margin-left: 6px; vertical-align: 2px; }
        .lm-full-old { color: var(--lm-muted); font-size: .82rem; margin-left: 4px; }
        .lm-cart-full { display: flex; justify-content: space-between; align-items: center; background: var(--lm-tint); color: var(--lm-plum); border-radius: 8px; padding: 7px 10px; font-size: .82rem; margin-bottom: 8px; }
        .lm-cart-disc { color: var(--lm-plum); font-weight: 600; }
        .lm-full-btn { border: 1.5px solid var(--lm-plum); background: #fff; color: var(--lm-ink); font-family: var(--lm-head); font-weight: 700; font-size: .93rem; padding: 11px 20px; border-radius: 10px; white-space: nowrap; transition: background .2s, color .2s; }
        .lm-full-btn:hover, .lm-full-btn.done { background: var(--lm-plum); color: #fff; }
        .lm-album-body { background: var(--lm-bg); padding: 28px clamp(16px, 4vw, 40px) 64px; }
        .lm-album-body .lm-min-notice { background: #fff; }
        .lm-album-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
        .lm-album-toolbar .lm-hint { margin: 0; }
        .lm-album-toolbar .lm-link { font-size: .95rem; }
        .lm-pmedia.lm-selectable { cursor: pointer; }
        /* Grelha de seleção (modelo): só a foto, etiqueta com o nome em baixo à esquerda, círculo de seleção em cima à direita */
        #photos-container { gap: 18px; }
        #photos-container .lm-pmedia { border-radius: 14px; outline-width: 3px; outline-offset: -3px; }
        #photos-container .lm-pcard.lm-in-cart .lm-pmedia { outline-color: var(--lm-plum); }
        /* Barra de seleção fixa no fundo (dentro do álbum) */
        .lm-selbar { position: sticky; bottom: 0; z-index: 1030; background: #fff; border-top: 1px solid var(--lm-line); box-shadow: 0 -10px 30px rgba(43,37,48,.08); padding: 14px clamp(16px, 4vw, 40px) calc(14px + env(safe-area-inset-bottom, 0px)); }
        /* Como no modelo: as fotos desvanecem por trás da barra em vez de serem cortadas a direito */
        .lm-selbar::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 56px; background: linear-gradient(to top, rgba(245,245,247,.96), rgba(245,245,247,0)); pointer-events: none; }
        .lm-selbar-inner { max-width: var(--lm-max); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
        .lm-selbar-info { display: flex; align-items: center; gap: 14px; min-width: 0; }
        .lm-selbar-count { width: 50px; height: 50px; border-radius: 10px; background: var(--lm-lilac); color: var(--lm-ink); font-family: var(--lm-head); font-weight: 800; font-size: 1.15rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
        .lm-selbar-title { font-family: var(--lm-head); font-weight: 700; font-size: 1.05rem; color: var(--lm-ink); }
        .lm-selbar-sub { font-size: .88rem; color: var(--lm-muted); }
        .lm-selbar-sub strong { color: var(--lm-ink); font-family: var(--lm-head); }
        .lm-selbar-disc { color: var(--lm-plum); font-weight: 700; }
        .lm-selbar-tag { display: inline-block; margin-left: 8px; background: var(--lm-plum); color: #fff; font-weight: 700; font-size: .76rem; padding: 3px 10px; border-radius: 999px; }
        .lm-selbar-promo { margin-left: 8px; border: 1px dashed var(--lm-plum); background: var(--lm-tint); color: var(--lm-plum); font-weight: 700; font-size: .78rem; padding: 3px 10px; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s; }
        .lm-selbar-promo:hover { background: var(--lm-plum); color: #fff; }
        @media (max-width: 576px) {
            .lm-selbar-promo { display: none; }
            .lm-selbar-tag { display: table; margin: 3px 0 0; font-size: .7rem; white-space: nowrap; }
            .lm-selbar-title { font-size: .95rem; white-space: nowrap; }
            .lm-selbar { padding-top: 10px; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
            .lm-full-card { flex-direction: column; align-items: stretch; gap: 14px; width: 100%; }
            .lm-full-btn { width: 100%; }
        }
        .lm-selbar-more { color: var(--lm-muted); }
        .lm-selbar-btn { padding: 16px 30px; font-size: 1rem; white-space: nowrap; }
        .lm-selbar-btn:disabled { opacity: .5; cursor: not-allowed; }
        .lm-selbar-short { display: none; }
        body.lm-in-album .lm-cartbar { display: none !important; }
        /* Como no modelo: no fim da página a barra fica colada ao rodapé (sem espaço entre os dois);
           com poucas fotos, a zona cinzenta estica para a barra e o rodapé ficarem no fundo do ecrã */
        body.lm-in-album .lm-footer { margin-top: 0; }
        body.lm-in-album #view-event { display: flex !important; flex-direction: column; flex: 1 0 auto; }
        body.lm-in-album .lm-album-body { flex: 1 0 auto; padding-bottom: 40px; }
        @media (max-width: 576px) {
            .lm-selbar-long { display: none; }
            .lm-selbar-short { display: inline; }
            .lm-selbar-btn { padding: 14px 18px; }
            .lm-selbar-count { width: 42px; height: 42px; font-size: 1rem; }
            .lm-selbar-sub { font-size: .78rem; }
            .lm-selbar-more { display: none; }
        }
        .lm-pick { position: absolute; left: 12px; bottom: 12px; z-index: 5; display: inline-flex; align-items: center; gap: 7px; border: 0; border-radius: 999px; padding: 9px 16px; background: #fff; color: var(--lm-ink); font-family: var(--lm-head); font-weight: 700; font-size: .86rem; box-shadow: 0 6px 18px rgba(43,37,48,.22); transition: background .2s, color .2s, transform .2s; }
        .lm-pick i { color: var(--lm-plum); transition: color .2s; }
        .lm-pick:hover { background: var(--lm-plum); color: #fff; transform: translateY(-1px); }
        .lm-pick:hover i, .lm-pick.on i { color: #fff; }
        .lm-pick.on { background: var(--lm-plum); color: #fff; }
        .lm-pick.on:hover { background: var(--lm-plum-2); }
        @media (max-width: 576px) { .lm-pick { left: 8px; bottom: 8px; padding: 7px 11px; font-size: .76rem; } }
        .lm-plabel { position: absolute; left: 12px; top: 12px; z-index: 4; background: #fff; color: var(--lm-ink); font-family: var(--lm-head); font-weight: 700; font-size: .74rem; padding: 4px 9px; border-radius: 6px; box-shadow: 0 2px 8px rgba(43,37,48,.12); pointer-events: none; }
        .lm-pmedia.lm-selectable:focus-visible { outline-color: var(--lm-lilac); }
        .lm-check { position: absolute; top: 12px; right: 12px; z-index: 4; width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff; background: rgba(43,37,48,.28); color: #fff; display: flex; align-items: center; justify-content: center; font-size: .85rem; box-shadow: 0 2px 8px rgba(0,0,0,.15); transition: background .2s, transform .2s; }
        .lm-check i { opacity: 0; transition: opacity .15s; }
        .lm-pcard:hover .lm-check { transform: scale(1.06); }
        .lm-pcard.lm-in-cart .lm-check { background: var(--lm-plum); }
        .lm-pcard.lm-in-cart .lm-check i { opacity: 1; }
        .lm-zoom { position: absolute; right: 12px; bottom: 12px; z-index: 5; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255,255,255,.94); color: var(--lm-ink); display: flex; align-items: center; justify-content: center; font-size: .82rem; box-shadow: 0 4px 12px rgba(43,37,48,.18); opacity: 0; transition: opacity .2s, background .2s, color .2s; }
        .lm-pcard:hover .lm-zoom, .lm-zoom:focus-visible { opacity: 1; }
        .lm-zoom:hover { background: var(--lm-plum); color: #fff; }
        @media (hover: none) { .lm-zoom { opacity: 1; } }
        /* Aviso de compra mínima dentro do álbum */
        .lm-min-notice { display: flex; gap: 16px; align-items: flex-start; background: var(--lm-tint); border: 1px solid #e3d6e7; border-left: 4px solid var(--lm-plum); border-radius: 12px; padding: 16px 20px; margin: 0 0 18px; }
        .lm-min-notice.ok { border-left-color: #B799BF; }
        .lm-min-ico { width: 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--lm-plum); display: flex; align-items: center; justify-content: center; font-size: 1.05rem; flex-shrink: 0; }
        .lm-min-body { flex: 1; min-width: 0; }
        .lm-min-title { font-family: var(--lm-head); font-weight: 700; font-size: 1.02rem; color: var(--lm-ink); }
        .lm-min-title strong { color: var(--lm-plum); }
        .lm-min-sub { font-weight: 600; font-size: .86rem; color: var(--lm-muted); }
        .lm-min-text { font-size: .9rem; color: var(--lm-text); margin-top: 3px; }
        .lm-min-notice.ok .lm-min-text { color: var(--lm-plum); font-weight: 700; }
        .lm-min-bar { height: 7px; background: #fff; border-radius: 999px; overflow: hidden; margin-top: 10px; max-width: 520px; }
        .lm-min-bar > div { height: 100%; width: 0; background: var(--lm-plum); border-radius: 999px; transition: width .4s cubic-bezier(.2,.8,.2,1); }
        .lm-album-min { font-size: .84rem; color: var(--lm-plum); font-weight: 600; margin-top: 4px; }
        .lm-album-min strong { font-family: var(--lm-head); }
        .lm-hint { color: var(--lm-muted); font-size: .92rem; margin: 0 0 20px; display: flex; align-items: center; gap: 8px; }
        .lm-hint i { color: var(--lm-plum); }

        /* ---------- Painéis, carrinho e modais ---------- */
        .card-container { background: #fff; width: 100%; border-radius: 14px; box-shadow: 0 18px 50px rgba(43,37,48,.1); overflow: hidden; margin-bottom: 25px; position: relative; border: 1px solid var(--lm-line); }
        .card-header-looma { background: #fff; color: var(--lm-ink); padding: 18px 20px; text-align: center; font-family: var(--lm-head); font-weight: 800; font-size: 1.02rem; position: relative; border-bottom: 1px solid var(--lm-line); }
        .card-header-looma .btn-close-white { filter: none; }
        .card-header-looma .text-primary { color: var(--lm-plum) !important; }
        .card-body-looma { padding: 24px; }
        .looma-input { width: 100%; padding: 11px 14px; border: 1px solid var(--lm-line); border-radius: 8px; font-size: 14px; background: #fff; transition: border-color .2s, box-shadow .2s; margin-bottom: 16px; color: var(--lm-ink); }
        .looma-input:focus { border-color: var(--lm-lilac); outline: none; box-shadow: 0 0 0 4px rgba(183,153,191,.15); }
        .looma-label { display: block; font-family: var(--lm-head); font-size: .74rem; font-weight: 700; color: var(--lm-ink); margin-bottom: 6px; }

        .cart-sidebar { position: fixed; top: 0; right: -420px; width: 100%; max-width: 420px; height: 100%; background: #fff; z-index: 1050; transition: right .4s cubic-bezier(.165,.84,.44,1), visibility .4s; display: flex; flex-direction: column; visibility: hidden; }
        .cart-sidebar.open { right: 0; visibility: visible; box-shadow: -10px 0 40px rgba(43,37,48,.1); }
        .cart-sidebar .card-header-looma { text-align: left; }
        .cart-overlay { position: fixed; inset: 0; background: rgba(43,37,48,.45); backdrop-filter: blur(3px); z-index: 1040; opacity: 0; pointer-events: none; transition: opacity .3s ease; }
        .cart-overlay.open { opacity: 1; pointer-events: auto; }
        #cart-items { background: var(--lm-bg) !important; }
        .empty-cart-state { padding: 40px 20px; text-align: center; }
        .empty-cart-state i { font-size: 3rem; margin-bottom: 15px; }

        .modal-looma { display: none; position: fixed; inset: 0; background: rgba(43,37,48,.55); backdrop-filter: blur(5px); z-index: 2000; justify-content: center; align-items: center; padding: 15px; opacity: 0; transition: opacity .3s ease; cursor: pointer; }
        .modal-looma.open { display: flex; opacity: 1; }
        .modal-looma .centered-wrapper { transform: scale(.95) translateY(20px); transition: all .4s cubic-bezier(.175,.885,.32,1.275); cursor: default; }
        .modal-looma.open .centered-wrapper { transform: scale(1) translateY(0); }

        .lm-cartbar { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 140%); z-index: 1030; background: #fff; color: var(--lm-ink); border: 1px solid var(--lm-line); border-radius: 12px; padding: 8px 8px 8px 20px; display: flex; align-items: center; gap: 18px; box-shadow: 0 14px 40px rgba(43,37,48,.18); transition: transform .45s cubic-bezier(.2,.8,.2,1); max-width: calc(100% - 32px); }
        .lm-cartbar.show { transform: translate(-50%, 0); }
        .lm-cartbar-info { font-size: .88rem; white-space: nowrap; }
        .lm-cartbar-info strong { color: var(--lm-plum); font-family: var(--lm-head); }
        .lm-cartbar button { border: 0; border-radius: 8px; background: var(--lm-plum); color: #fff; font-family: var(--lm-head); font-weight: 700; padding: 10px 16px; font-size: .86rem; white-space: nowrap; }
        .lm-cartbar button:hover { background: var(--lm-plum-2); }

        .toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 9999; }
        .swal2-container { z-index: 99999999 !important; }
        .swal2-popup { font-family: var(--lm-body); border-radius: 14px !important; }
        .swal2-title { font-family: var(--lm-head); color: var(--lm-ink) !important; }
        .swal2-popup.colored-toast { margin-bottom: 30px !important; border-radius: 12px !important; padding: 10px 20px !important; font-weight: 600 !important; font-size: 14px !important; box-shadow: 0 10px 30px rgba(43,37,48,.25) !important; }

        /* ---------- Rodapé ---------- */
        .lm-footer { background: var(--lm-dark); color: rgba(255,255,255,.72); font-size: .86rem; margin-top: 40px; }
        body.lm-has-cartbar .lm-footer-bottom { padding-bottom: 88px; }
        .lm-footer a { color: rgba(255,255,255,.72); text-decoration: none; }
        .lm-footer a:hover { color: #fff; }
        .lm-footer-grid { max-width: var(--lm-max); margin: 0 auto; padding: 40px clamp(16px, 4vw, 40px) 28px; display: grid; grid-template-columns: 1.1fr 1fr 1fr 1fr; gap: 24px; }
        .lm-footer-brand { font-family: var(--lm-head); font-weight: 800; font-size: 1.1rem; letter-spacing: 1px; color: #fff; margin-bottom: 10px; }
        .lm-footer h6 { color: #fff; font-weight: 700; font-size: .84rem; margin: 0 0 10px; }
        .lm-footer ul { list-style: none; padding: 0; margin: 0; }
        .lm-footer li { margin-bottom: 6px; }
        .lm-footer p { margin: 0; line-height: 1.6; max-width: 240px; }
        .lm-footer-bottom-wrap { border-top: 1px solid rgba(255,255,255,.1); }
        .lm-footer-brand { font-size: .95rem !important; margin: 0 6px 0 0 !important; display: inline !important; }
        .lm-footer-bottom { max-width: var(--lm-max); margin: 0 auto; padding: 18px clamp(16px, 4vw, 40px); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; font-size: .74rem; }
        .lm-footer-bottom nav { display: flex; gap: 16px; flex-wrap: wrap; }
        .lm-footer-bottom nav a { text-decoration: underline; }

        /* ---------- Cores do Bootstrap/SweetAlert na paleta da loja ---------- */
        .text-success, .text-warning { color: var(--lm-plum) !important; }
        .text-danger { color: var(--lm-ink) !important; }
        .text-info { color: var(--lm-muted) !important; }
        .bg-success, .bg-primary { background-color: var(--lm-plum) !important; color: #fff !important; }
        .bg-warning { background-color: var(--lm-tint) !important; color: var(--lm-plum) !important; }
        .bg-danger { background-color: var(--lm-ink) !important; color: #fff !important; }
        .btn-primary, .btn-success { background-color: var(--lm-plum) !important; border-color: var(--lm-plum) !important; color: #fff !important; }
        .btn-primary:hover, .btn-success:hover { background-color: var(--lm-plum-2) !important; border-color: var(--lm-plum-2) !important; }
        .btn-outline-primary { color: var(--lm-plum) !important; border-color: var(--lm-lilac) !important; }
        .btn-outline-primary:hover { background-color: var(--lm-plum) !important; border-color: var(--lm-plum) !important; color: #fff !important; }
        .btn-outline-danger { color: var(--lm-text) !important; border-color: var(--lm-line) !important; }
        .btn-outline-danger:hover { background-color: var(--lm-ink) !important; border-color: var(--lm-ink) !important; color: #fff !important; }
        .alert-warning { background-color: var(--lm-tint) !important; border-color: var(--lm-line) !important; color: var(--lm-plum) !important; }
        .form-check-input:checked { background-color: var(--lm-plum); border-color: var(--lm-plum); }
        .form-check-input:focus { border-color: var(--lm-lilac); box-shadow: 0 0 0 .25rem rgba(183,153,191,.25); }
        .dropdown-item:active { background-color: var(--lm-plum); }
        .swal2-icon.swal2-success { border-color: var(--lm-lilac) !important; color: var(--lm-lilac) !important; }
        .swal2-icon.swal2-success [class^='swal2-success-line'] { background-color: var(--lm-plum) !important; }
        .swal2-icon.swal2-success .swal2-success-ring { border-color: rgba(183,153,191,.35) !important; }
        .swal2-icon.swal2-error { border-color: var(--lm-ink) !important; color: var(--lm-ink) !important; }
        .swal2-icon.swal2-error [class^='swal2-x-mark-line'] { background-color: var(--lm-ink) !important; }
        .swal2-icon.swal2-warning, .swal2-icon.swal2-info, .swal2-icon.swal2-question { border-color: var(--lm-lilac) !important; color: var(--lm-plum) !important; }
        .swal2-timer-progress-bar { background: var(--lm-lilac) !important; }
        .swal2-styled.swal2-confirm { background-color: var(--lm-plum) !important; border-radius: 8px !important; }
        .swal2-styled.swal2-cancel { background-color: var(--lm-muted) !important; border-radius: 8px !important; }

        /* ---------- Responsivo ---------- */
        @media (max-width: 960px) {
            .lm-menu-btn { display: inline-flex; }
            .lm-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--lm-line); flex-direction: column; align-items: stretch; gap: 0; padding: 6px clamp(16px, 4vw, 40px) 12px; box-shadow: 0 14px 30px rgba(43,37,48,.08); }
            .lm-nav.open { display: flex; }
            .lm-nav a { padding: 11px 0; border-bottom: 1px solid var(--lm-line); }
            .lm-nav a:last-child { border-bottom: 0; }
            .lm-nav a.active { border-bottom-color: var(--lm-line); color: var(--lm-plum); }
            .lm-hero-inner, .lm-about { grid-template-columns: 1fr; }
            .lm-bento { height: 280px; }
            .lm-offers { grid-template-columns: 1fr; }
            .lm-footer-grid { grid-template-columns: 1fr 1fr; }
            .lm-about-img { max-width: 100%; aspect-ratio: 16 / 11; }
        }
        @media (max-width: 1200px) {
            .lm-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        }
        @media (max-width: 576px) {
            .lm-steps { grid-template-columns: 1fr; }
            .lm-user-btn { padding: 0 4px; border-color: transparent; }
            .lm-user-btn .lm-user-name, .lm-user-caret { display: none; }
            .lm-user-btn .lm-user-ico { width: 36px; height: 36px; }
            .lm-search-inline { width: 100%; }
            .lm-hero-full { min-height: 0; }
            .lm-announce { font-size: .66rem; }
            .lm-brand-sub { display: none; }
            .lm-header-inner { gap: 10px; }
            .lm-icon-btn { width: 36px; height: 36px; }
            .lm-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 10px; }
            .album-grid { grid-template-columns: 1fr; gap: 32px; }
            .lm-meta { flex-direction: column; gap: 0; }
            .lm-meta-title { font-size: .92rem; white-space: normal; }
            .lm-round { width: 30px; height: 30px; top: 8px; right: 8px; }
            .lm-bento { height: 220px; gap: 8px; }
            .lm-footer-grid { grid-template-columns: 1fr; }
            .lm-cartbar { padding-left: 14px; gap: 10px; }
        }
        @media (prefers-reduced-motion: reduce) {
            html { scroll-behavior: auto; }
            *, *::before, *::after { transition: none !important; animation: none !important; }
        }


        /* =====================================================================
           CONTRASTE (10 out 2026) — como o ecrã de entrar da proposta A: roxo escuro em gradiente com letras brancas,
           a alternar com lilás muito claro e cartões brancos. O fundo animado (visor da máquina) fica, em lilás claro.
           ===================================================================== */
        :root { --lm-grad: linear-gradient(160deg, #2f2433 0%, #4a3a52 60%, #7d5a87 100%); --lm-bg: #f1ecf4; --lm-claro: #f8f6fa; --lm-line: #e6dfea; --lm-vfc: 214,180,222; }
        body, html { background: var(--lm-claro); }
        /* Cabeçalho escuro */
        .lm-header { background: var(--lm-dark); border-bottom-color: transparent; }
        .lm-brand, .lm-brand:hover, .lm-brand-name { color: #fff; }
        .lm-brand-sub { color: rgba(255,255,255,.65); }
        .lm-nav a { color: rgba(255,255,255,.82); }
        .lm-nav a:hover { color: #fff; }
        .lm-nav a.active { color: #fff; border-bottom-color: var(--lm-lilac); }
        .lm-icon-btn { color: #fff; }
        .lm-icon-btn:hover, .lm-icon-btn[aria-expanded="true"], .lm-icon-btn.lm-cart-btn { background: rgba(255,255,255,.12); color: #fff; }
        .lm-icon-btn.lm-cart-btn:hover { background: rgba(255,255,255,.2); }
        #cart-count { background: var(--lm-lilac); color: var(--lm-dark); border-color: var(--lm-dark); }
        .lm-user-btn { background: transparent; color: #fff; border-color: rgba(255,255,255,.28); }
        .lm-user-btn:hover, .lm-user-btn[aria-expanded="true"] { background: rgba(255,255,255,.08); border-color: var(--lm-lilac); color: #fff; }
        .lm-user-ico { background: var(--lm-lilac); color: var(--lm-dark); }
        .lm-user-caret { color: rgba(255,255,255,.6); }
        @media (max-width: 960px) {
            .lm-nav { background: var(--lm-dark); border-bottom-color: transparent; }
            .lm-nav a { border-bottom-color: rgba(255,255,255,.1); }
            .lm-nav a.active { color: var(--lm-lilac); border-bottom-color: rgba(255,255,255,.1); }
        }
        /* Início: gradiente com letras brancas */
        .lm-hero { background: var(--lm-grad); }
        .lm-hero-full { background: radial-gradient(ellipse 45% 60% at 74% 52%, rgba(183,153,191,.25), rgba(183,153,191,0) 70%), var(--lm-grad); }
        .lm-hero h1 { color: #fff; }
        .lm-hero p.lead-text { color: rgba(255,255,255,.84); }
        .lm-badge { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.25); color: #fff; }
        .lm-trust { color: rgba(255,255,255,.8); }
        .lm-trust i { color: var(--lm-lilac); }
        .lm-hero .lm-btn-primary, .lm-band .lm-btn-primary, .lm-selbar .lm-btn-primary, .lm-album-hero .lm-btn-primary { background: var(--lm-lilac); color: var(--lm-dark); }
        .lm-hero .lm-btn-primary:hover, .lm-band .lm-btn-primary:hover, .lm-selbar .lm-btn-primary:hover, .lm-album-hero .lm-btn-primary:hover { background: #c6aacd; color: var(--lm-dark); }
        .lm-hero .lm-btn-ghost, .lm-band .lm-btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
        .lm-hero .lm-btn-ghost:hover, .lm-band .lm-btn-ghost:hover { background: rgba(255,255,255,.08); border-color: #fff; color: #fff; }
        /* Fundo animado (visor) em lilás claro sobre o escuro */
        .lm-vf { color: var(--lm-lilac); }
        .lm-vf-c { border-color: rgba(var(--lm-vfc), .45); }
        .lm-vf-g { background: rgba(var(--lm-vfc), .12); }
        .lm-vf-t { color: rgba(var(--lm-vfc), .72); }
        .lm-vf-t i { background: rgba(var(--lm-vfc), .55); }
        .lm-vf-box { border-color: rgba(var(--lm-vfc), .65); color: rgba(var(--lm-vfc), .85); }
        .lm-vf-hist { border-color: rgba(var(--lm-vfc), .35); background: rgba(255,255,255,.05); }
        .lm-vf-hist path#vf-hist-path { fill: rgba(var(--lm-vfc), .3); stroke: rgba(var(--lm-vfc), .75); }
        .lm-vf-hist-grid { stroke: rgba(var(--lm-vfc), .2); }
        .lm-vf-hist-lbl { background: none; top: -15px; left: 2px; color: rgba(var(--lm-vfc), .7); }
        .lm-vf-rec { background: var(--lm-lilac); }
        .lm-vf-meter { background: linear-gradient(rgba(var(--lm-vfc), .55), rgba(var(--lm-vfc), .55)) center / 100% 1px no-repeat, repeating-linear-gradient(90deg, rgba(var(--lm-vfc), .55) 0 1px, transparent 1px 15px) center / 100% 6px no-repeat; }
        .lm-vf-meter span { background: var(--lm-lilac); }
        .lm-vf-bat, .lm-vf-bat::after, .lm-vf-bat span { border-color: rgba(var(--lm-vfc), .6); }
        .lm-vf-bat::after, .lm-vf-bat span { background: rgba(var(--lm-vfc), .6); }
        .lm-hero-full::after { opacity: .16; filter: brightness(2.4); }
        /* Secções claras com cartões brancos */
        .lm-sec { background: var(--lm-claro); }
        .lm-sec.grey { background: var(--lm-bg); }
        .lm-step { background: #fff; border: 1px solid var(--lm-line); }
        .lm-sec.grey .lm-step-art { background: var(--lm-claro); }
        .lm-step-n { background: var(--lm-dark); color: var(--lm-lilac); }
        .lm-offer { border-color: var(--lm-line); }
        .lm-band { background: var(--lm-grad); border-color: transparent; color: rgba(255,255,255,.82); }
        .lm-band h3 { color: #fff; }
        .lm-band p { color: rgba(255,255,255,.82); }
        /* Álbum aberto e "As minhas compras": faixa do topo em gradiente */
        .lm-page-head, .lm-album-hero { background: var(--lm-grad); border-bottom: 0; }
        .lm-page-head h1, .lm-album-title, .lm-event-title { color: #fff; }
        .lm-crumbs { color: rgba(255,255,255,.6); }
        .lm-crumbs a { color: rgba(255,255,255,.72); }
        .lm-crumbs a:hover { color: #fff; }
        .lm-crumbs span:last-child { color: #fff; }
        .lm-album-meta { color: rgba(255,255,255,.75); }
        .lm-album-meta strong { color: #fff; }
        .lm-dot { color: rgba(255,255,255,.35); }
        .lm-full-card { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.22); }
        .lm-full-title { color: #fff; }
        .lm-full-sub { color: rgba(255,255,255,.75); }
        .lm-full-sub strong { color: #fff; }
        .lm-full-old { color: rgba(255,255,255,.55); }
        .lm-full-badge { background: var(--lm-lilac); color: var(--lm-dark); }
        .lm-full-btn { background: var(--lm-lilac); border-color: var(--lm-lilac); color: var(--lm-dark); }
        .lm-full-btn:hover, .lm-full-btn.done { background: #fff; border-color: #fff; color: var(--lm-dark); }
        .lm-album-body { background: var(--lm-bg); }
        .lm-album-body .lm-hint, .lm-album-body .lm-link { color: var(--lm-text); }
        /* Barra de seleção e barra do carrinho escuras */
        .lm-selbar { background: var(--lm-dark); border-top-color: transparent; box-shadow: 0 -16px 40px rgba(47,36,51,.28); }
        .lm-selbar::before { background: linear-gradient(to top, rgba(241,236,244,.96), rgba(241,236,244,0)); }
        .lm-selbar-title { color: #fff; }
        .lm-selbar-sub { color: rgba(255,255,255,.75); }
        .lm-selbar-sub strong { color: #fff; }
        .lm-selbar-sub .lm-full-old { color: rgba(255,255,255,.5); }
        .lm-selbar-disc { color: var(--lm-lilac); }
        .lm-selbar-more { color: rgba(255,255,255,.6); }
        .lm-selbar-tag { background: var(--lm-lilac); color: var(--lm-dark); }
        .lm-selbar-promo { background: transparent; border-color: var(--lm-lilac); color: var(--lm-lilac); }
        .lm-selbar-promo:hover { background: var(--lm-lilac); color: var(--lm-dark); }
        .lm-cartbar { background: var(--lm-dark); color: #fff; border-color: transparent; }
        .lm-cartbar-info strong { color: var(--lm-lilac); }
        .lm-cartbar button { background: var(--lm-lilac); color: var(--lm-dark); }
        .lm-cartbar button:hover { background: #c6aacd; }
        /* Janelas e carrinho: cabeçalho em gradiente */
        .card-header-looma { background: var(--lm-grad); color: #fff; border-bottom: 0; }
        .card-header-looma .text-primary { color: var(--lm-lilac) !important; }
        .card-header-looma .btn-close { filter: invert(1) grayscale(1) brightness(2); opacity: .85; }
        .card-header-looma .btn-close:hover { opacity: 1; }
        /* Selo do Trustpilot (ligação para as avaliações da Looma) */
        .lm-tp { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; font-weight: 700; }
        .lm-tp-stars { display: inline-flex; gap: 2px; }
        .lm-tp-stars i { width: 18px; height: 18px; border-radius: 2px; background: #00b67a; color: #fff !important; display: inline-flex; align-items: center; justify-content: center; font-size: .62rem; }
        .lm-tp strong { font-family: var(--lm-head); }
        .lm-tp:hover strong { text-decoration: underline; text-underline-offset: 3px; }

/* Logótipo real, «Voltar ao site» e selo do Trustpilot em cima do título (10 out 2026) */
.lm-brand { gap: 12px; }
.lm-brand-logo { height: 26px; width: auto; display: block; }
.lm-brand .lm-brand-sub { margin-top: 0; padding-left: 12px; border-left: 1px solid rgba(255,255,255,.2); line-height: 1.2; }
.lm-nav a.lm-voltar { display: inline-flex; align-items: center; gap: 8px; margin-left: 10px; padding: 7px 14px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; font-size: .9rem; color: rgba(255,255,255,.85); }
.lm-nav a.lm-voltar:hover { border-color: var(--lm-lilac); color: #fff; background: rgba(255,255,255,.06); }
.lm-nav a.lm-voltar i { font-size: .8rem; color: var(--lm-lilac); }
.lm-tp-pill { gap: 10px; margin-bottom: 22px; padding: 7px 14px 7px 8px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: rgba(255,255,255,.05); color: rgba(255,255,255,.9); font-weight: 600; font-size: .9rem; transition: border-color .2s, background .2s; }
.lm-tp-pill:hover { border-color: var(--lm-lilac); background: rgba(255,255,255,.09); color: #fff; }
.lm-tp-pill .lm-tp-stars i { width: 17px; height: 17px; font-size: .6rem; }
@media (max-width: 960px) {
    .lm-brand-logo { height: 22px; }
    .lm-nav a.lm-voltar { margin: 6px 0 0; padding: 11px 0; border: 0; border-radius: 0; font-size: 1rem; }
    .lm-nav a.lm-voltar:hover { background: none; }
}

/* ---------- Telemóvel (revisão de 11 out 2026) ---------- */
@media (max-width: 960px) {
    /* a dica do álbum é texto corrido (em flex cada pedaço virava uma coluna) */
    .lm-album-toolbar .lm-hint { display: block; }
    /* letra de 16px nos campos: com menos, o iPhone aumenta a página sozinho ao tocar num campo */
    input:not([type=checkbox]):not([type=radio]):not([type=range]), select, textarea { font-size: 16px !important; }
}
@media (max-width: 576px) {
    /* barra de seleção: o título pode partir em duas linhas em vez de passar por baixo do botão */
    .lm-selbar-title { white-space: normal; line-height: 1.2; }
    .lm-selbar-info > div:last-child { min-width: 0; }
    .lm-selbar-btn { flex-shrink: 0; }
}
/* cartão do álbum público é um link (para o Google): sem o aspeto de link */
a.lm-album { display: block; color: inherit; text-decoration: none; }
