/* Branca Boutique — estilos globais: tokens, botões, coração de favoritos e gaveta. */

:root {
	--branca-ink: #111;
	--branca-muted: #6f7178;
	--branca-line: #dedbd5;
	--branca-soft: #f7f6f3;
	--branca-green: #137a4b;
	--branca-red: #7d2333;
}

.branca-eyebrow { margin: 0 0 14px !important; color: #7a8290 !important; font-size: 10px !important; letter-spacing: .38em; text-transform: uppercase; }

/* Botões */
.woocommerce-account .button, .branca-primary, .branca-secondary { min-height: 42px; padding: 13px 20px !important; border-radius: 0 !important; font-size: 11px !important; font-weight: 600 !important; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; text-align: center; }
.branca-primary { background: #111 !important; color: #fff !important; border: 1px solid #111 !important; }
.branca-secondary { background: #fff !important; color: #111 !important; border: 1px solid #111 !important; }

/* Coração de favoritos */
.products li.product { position: relative; }
.branca-favorite-toggle { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid var(--branca-line); border-radius: 50%; background: #fff; color: #111; font-size: 19px; cursor: pointer; line-height: 1; transition: .2s; z-index: 5; }
.products li.product > .branca-favorite-toggle { position: absolute; top: 12px; right: 12px; }
.single-product .branca-favorite-toggle { margin: 0 0 16px auto; }
.branca-favorite-media .branca-favorite-toggle { position: absolute; top: 12px; right: 12px; }
.branca-favorite-toggle:hover, .branca-favorite-toggle.is-favorite { background: #111; color: #fff; border-color: #111; }
.branca-favorite-toggle.is-loading { opacity: .45; pointer-events: none; }
.branca-is-removing { opacity: 0; transition: opacity .18s ease; }

/* Contador no ícone de coração do cabeçalho */
.elementor-icon:has(.icon-heart1) { position: relative; cursor: pointer; }
.elementor-icon:has(.icon-heart1):focus-visible { outline: 2px solid #111; outline-offset: 5px; }
.branca-header-favorite-badge { position: absolute; top: -10px; right: -12px; display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 20px; background: #111; color: #fff; font: 600 10px/1 "Red Hat Display", sans-serif; }
.branca-header-favorite-badge.is-empty { display: none; }

/* Gaveta de favoritos */
body.branca-drawer-open { overflow: hidden; }
.branca-favorites-overlay { position: fixed; inset: 0; z-index: 99996; background: rgba(0,0,0,.5); opacity: 0; visibility: hidden; transition: .25s; }
.branca-favorites-overlay.is-open { opacity: 1; visibility: visible; }
.branca-favorites-drawer { position: fixed; z-index: 99997; top: 0; right: 0; width: min(480px, calc(100vw - 28px)); height: 100dvh; background: #fff; box-shadow: none; transform: translateX(102%); transition: transform .28s ease; display: grid; grid-template-rows: auto minmax(0,1fr) auto; font-family: "Red Hat Display", sans-serif; color: #111; }
.admin-bar .branca-favorites-drawer { top: 32px; height: calc(100dvh - 32px); }
.branca-favorites-drawer.is-open { transform: translateX(0); }
.branca-favorites-drawer > header { display: flex; align-items: center; justify-content: space-between; min-height: 104px; padding: 16px 36px; border-bottom: 1px solid var(--branca-line); box-sizing: border-box; }
.branca-favorites-drawer > header h2 { margin: 0; font-size: 15px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; }
.branca-drawer-close { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: #111; font-size: 22px; cursor: pointer; }
.branca-drawer-list { overflow-y: auto; padding: 10px 36px; overscroll-behavior: contain; }
.branca-drawer-loading { padding: 60px 0; text-align: center; color: #777; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.branca-drawer-item { position: relative; display: grid; grid-template-columns: 104px minmax(0,1fr); gap: 20px; padding: 24px 24px 24px 0; border-bottom: 1px solid var(--branca-line); }
.branca-drawer-image img { display: block; width: 104px; height: 136px; object-fit: cover; background: var(--branca-soft); }
.branca-drawer-info { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; }
.branca-drawer-name { color: #111; font-size: 16px; font-weight: 500; text-decoration: none; }
.branca-drawer-meta { margin: 7px 0 18px; color: #6c7180; font-size: 13px; }
.branca-drawer-action { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; margin-top: auto; border: 1px solid #111; color: #111; font-size: 11px; font-weight: 600; letter-spacing: .15em; text-align: center; text-decoration: none; text-transform: uppercase; }
.branca-drawer-unavailable { margin-top: auto; color: #777; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.branca-favorites-drawer .branca-drawer-remove { position: absolute !important; top: 18px !important; right: -10px !important; width: 36px !important; height: 36px !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; color: #555 !important; font-size: 17px !important; }
.branca-drawer-footer { padding: 28px 36px; border-top: 1px solid var(--branca-line); background: #fff; }
.branca-drawer-footer a { display: flex; align-items: center; justify-content: center; min-height: 58px; background: #111; color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-align: center; text-decoration: none; text-transform: uppercase; }
.branca-drawer-footer.is-hidden { display: none; }
.branca-drawer-state { display: flex; min-height: 55vh; padding: 60px 20px; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.branca-drawer-state h3 { max-width: 330px; margin: 0 0 12px; font-size: 20px; font-weight: 500; }
.branca-drawer-state p { max-width: 330px; margin: 0 0 28px; color: #6c7180; line-height: 1.7; }
.branca-drawer-state .branca-primary, .branca-drawer-state .branca-secondary { display: block; width: min(280px, 100%); }
.branca-text-link { margin-top: 18px; color: #111; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }

@media (max-width: 782px) {
	.admin-bar .branca-favorites-drawer { top: 46px; height: calc(100dvh - 46px); }
}

@media (max-width: 600px) {
	.branca-favorites-drawer { width: calc(100vw - 14px); }
	.branca-favorites-drawer > header { min-height: 78px; padding: 0 20px; }
	.branca-drawer-list { padding: 8px 20px; }
	.branca-drawer-item { grid-template-columns: 88px minmax(0,1fr); gap: 15px; padding: 20px 22px 20px 0; }
	.branca-drawer-image img { width: 88px; height: 116px; }
	.branca-drawer-name { font-size: 15px; }
	.branca-drawer-meta { font-size: 12px; }
	.branca-drawer-footer { padding: 18px 20px; }
	.branca-drawer-footer a { min-height: 54px; }
}

/* Lookbook: leitura vertical em tablets e celulares (escopo pelo data-id do Listing do JetEngine). */
@media (max-width: 1024px) {
	body.single-lookbooks [data-id="f383c64"] { width: 100% !important; max-width: none !important; align-self: stretch !important; box-sizing: border-box; padding: 76px clamp(24px, 6vw, 52px) !important; }
	body.single-lookbooks [data-id="f383c64"] .jet-listing-grid,
	body.single-lookbooks [data-id="f383c64"] .elementor-widget-container { width: 100% !important; max-width: none !important; }
	body.single-lookbooks [data-id="f383c64"] .jet-listing-grid__items { display: flex !important; flex-direction: column !important; gap: 0 !important; grid-template-columns: none !important; width: 100% !important; max-width: 760px !important; margin: 0 auto !important; padding: 0 !important; }
	body.single-lookbooks [data-id="f383c64"] .jet-listing-grid__item { display: block !important; width: min(88%, 620px) !important; max-width: 620px !important; margin: 0 0 84px !important; grid-area: auto !important; grid-column: auto !important; align-self: flex-start !important; }
	body.single-lookbooks [data-id="f383c64"] .jet-listing-grid__item:nth-child(even) { align-self: flex-end !important; }
	body.single-lookbooks [data-id="f383c64"] .jet-listing-grid__item:last-child { margin-bottom: 0 !important; }
	body.single-lookbooks [data-id="f383c64"] h4 { margin: 22px 0 12px !important; line-height: 1.08; }
	body.single-lookbooks [data-id="f383c64"] p { max-width: 540px; font-size: 15px; line-height: 1.75; }
}
@media (max-width: 767px) {
	body.single-lookbooks [data-id="f383c64"] { padding: 64px 24px 72px !important; }
	body.single-lookbooks [data-id="f383c64"] .jet-listing-grid__item,
	body.single-lookbooks [data-id="f383c64"] .jet-listing-grid__item:nth-child(even) { width: 100% !important; max-width: none !important; align-self: stretch !important; margin: 0 0 64px !important; }
	body.single-lookbooks [data-id="f383c64"] .jet-listing-grid__item:last-child { margin-bottom: 0 !important; }
	body.single-lookbooks [data-id="f383c64"] img { width: 100% !important; height: auto !important; max-height: none !important; aspect-ratio: 3/4; object-fit: cover; }
	body.single-lookbooks [data-id="f383c64"] h4 { font-size: clamp(30px, 9vw, 40px) !important; margin: 20px 0 10px !important; }
	body.single-lookbooks [data-id="f383c64"] p { font-size: 14px !important; line-height: 1.72 !important; }
}

/* Vídeo no card da vitrine: fica sobre a foto (que continua lá como poster/fallback). */
.woocommerce-LoopProduct-link:has(.branca-card-video) { position: relative; display: block; }
.branca-card-video { position: absolute; top: 0; left: 0; z-index: 1; display: block; width: 100%; height: auto; object-fit: cover; pointer-events: none; }
