/* Vídeo */
.lk-video video, .lk-video iframe { width: 100%; display: block; border-radius: 8px; }
.lk-video-embed { aspect-ratio: 16/9; }
.lk-video-embed iframe { height: 100%; }

/* Galeria */
.lk-galeria-main img { width: 100%; height: auto; display: block; border-radius: 8px; background: #f5f5f7; }
.lk-galeria-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.lk-thumb { padding: 0; border: 2px solid transparent; border-radius: 6px; background: #f5f5f7; cursor: pointer; line-height: 0; }
.lk-thumb img { width: 64px; height: 64px; object-fit: contain; background: #fff; padding: 3px; box-sizing: border-box; border-radius: 4px; }
.lk-thumb.is-active { border-color: var(--lk-cor-principal, #0d47a1); }

/* Cores */
.lk-cores { margin: 12px 0; }
.lk-cores-label { display: block; font-size: 14px; margin-bottom: 8px; color: #333; }
.lk-cores-lista, .lk-tamanhos-lista { display: flex; gap: 10px; flex-wrap: wrap; }
.lk-cor { width: 36px; height: 36px; border-radius: 50%; border: 2px solid #ddd; cursor: pointer; padding: 0; overflow: hidden; line-height: 0; background: #eee; transition: transform .15s, border-color .15s; }
.lk-cor img { width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 3px; box-sizing: border-box; border-radius: 50%; }
.lk-cor:hover { transform: scale(1.1); }
.lk-cor.is-active { border-color: var(--lk-cor-principal, #0d47a1); box-shadow: 0 0 0 2px rgba(13, 71, 161, .25); }

/* Tamanhos */
.lk-tamanhos { margin: 12px 0; }
.lk-tamanho { min-width: 42px; padding: 8px 12px; border: 1px solid var(--lk-tam-borda, #ccc); border-radius: 6px; background: var(--lk-tam-fundo, #fff); color: var(--lk-tam-texto, #333); cursor: pointer; font-weight: 600; transition: all .15s; }
.lk-tamanho:hover { border-color: var(--lk-cor-principal, #0d47a1); color: var(--lk-cor-principal, #0d47a1); }

/* Botões */
.lk-botoes { display: flex; gap: 12px; flex-wrap: wrap; margin: 20px 0; }
.lk-btn { display: inline-block; padding: 12px 26px; border-radius: 999px; background: var(--lk-cor-principal, #0d47a1); color: var(--lk-btn-texto, #fff) !important; font-weight: 700; text-decoration: none !important; text-align: center; transition: filter .15s; }
.lk-btn:hover { filter: brightness(1.15); }

/* Modal do guia de tamanhos */
.lk-modal { position: fixed; inset: 0; z-index: 99999; background: rgba(0, 0, 0, .6); display: flex; align-items: center; justify-content: center; padding: 20px; }
.lk-modal-caixa { position: relative; background: #fff; border-radius: 10px; padding: 16px; max-width: min(720px, 92vw); max-height: 88vh; overflow: auto; }
.lk-modal-caixa img { max-width: 100%; height: auto; display: block; }
.lk-modal-fechar { position: absolute; top: 8px; right: 10px; border: 0; background: none; font-size: 28px; line-height: 1; cursor: pointer; color: #333; }

/* Grelha estilo catálogo (v1.1.1) */
.lk-grelha { display: grid; grid-template-columns: repeat(var(--lk-grelha-colunas, 2), 1fr); gap: 14px; }
.lk-grelha-item { margin: 0; background: #f5f5f7; border-radius: 8px; overflow: hidden; aspect-ratio: var(--lk-grelha-ratio, 3/4); }
.lk-grelha-item img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.lk-grelha-video .lk-video, .lk-grelha-video .lk-video-embed { width: 100%; height: 100%; aspect-ratio: auto; }
.lk-grelha-video .lk-video video, .lk-grelha-video .lk-video-embed iframe { width: 100%; height: 100%; object-fit: cover; border-radius: 0; display: block; }
@media (max-width: 560px) { .lk-grelha { grid-template-columns: 1fr; } }

/* Swatch de cor em texto (sem hex nem imagem) */
.lk-cor.lk-cor-texto { width: auto; min-width: 36px; padding: 0 14px; border-radius: 999px; background: #fff; font-size: 13px; font-weight: 600; line-height: 32px; overflow: visible; }

/* Layout duo: vídeo à esquerda, imagem principal à direita (v1.4) */
.lk-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lk-duo-esq, .lk-duo-dir { background: #f5f5f7; border-radius: 8px; overflow: hidden; aspect-ratio: var(--lk-grelha-ratio, 3/4); }
.lk-duo-esq img, .lk-duo-dir img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lk-duo-dir img { cursor: zoom-in; }
.lk-duo-esq .lk-video, .lk-duo-esq .lk-video-embed { width: 100%; height: 100%; aspect-ratio: auto; }
.lk-duo-esq .lk-video video, .lk-duo-esq .lk-video-embed iframe { width: 100%; height: 100%; object-fit: cover; border-radius: 0; display: block; }
.lk-duo-thumbs { grid-column: 1 / -1; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 4px; }
@media (max-width: 560px) { .lk-duo { grid-template-columns: 1fr; } .lk-duo-thumbs { grid-column: auto; } }

/* Amostra de cor do atributo (preenche o circulo) */
.lk-cor img.lk-cor-amostra { object-fit: cover; padding: 0; background: none; border-radius: 50%; }
