/* ==========================================================================
   Fiolongo — Home (rodada 2): hero refinado, benefícios, categorias,
   Mais Vendidos (vitrine compacta), banner editorial, Quero Fazer.
   ========================================================================== */
:root { --fl-line: #e8e4da; --fl-shadow: 0 1px 2px rgba(23,23,23,.04), 0 2px 8px rgba(23,23,23,.04); }

.fl-container { max-width: 1400px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
.fl-section { padding: 36px 0 8px; background: #f7f5f0; }
.fl-section h2 { font-family: var(--wp--preset--font-family--commercial); font-style: normal; font-weight: 800; font-size: 24px; line-height: 1.2; margin: 0; color: var(--fl-navy-dark, #062a56); letter-spacing: -.01em; }
.fl-section-head { display: flex !important; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 0 16px !important; flex-wrap: nowrap !important; }
.fl-section-head p { margin: 0; }
.fl-link { color: #d3222a; font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.fl-link:hover { color: #b51a22; text-decoration: underline; }
.fl-btn {
	display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px; border-radius: 4px; background: #d3222a; color: #fff !important;
	font: 600 14px/1.2 var(--wp--preset--font-family--commercial); text-decoration: none; transition: background .15s, transform .15s;
}
.fl-btn:hover { background: #b51a22; transform: translateY(-1px); }
.fl-btn--outline { background: transparent; color: #062a56 !important; border: 1px solid #9fb0c7; }
.fl-btn--outline:hover { background: #062a56; color: #fff !important; border-color: #062a56; }

/* ---------- Hero refinado ---------- */
.fiolongo-hero.wp-block-cover { min-height: clamp(360px, 27vw, 500px) !important; }
.fiolongo-hero .fiolongo-hero__inner-container, .fiolongo-hero .wp-block-cover__inner-container { max-width: 1400px; padding-top: 40px; padding-bottom: 44px; }
.fiolongo-hero .fiolongo-hero__title.wp-block-heading { font-size: clamp(1.7rem, 3.1vw, 3.05rem); line-height: 1.1; max-width: none; }
.fiolongo-hero__line { display: block; }
.fiolongo-hero__eyebrow { margin-bottom: 14px !important; }
.fiolongo-hero .fiolongo-hero__title.wp-block-heading { margin-bottom: 16px; }
.fiolongo-hero__text { margin-bottom: 22px !important; }
.fiolongo-hero__cta .wp-block-button__link { padding: 12px 24px; font-size: 15px; }
.fiolongo-hero__tag { top: 32px; }
@media (max-width: 782px) {
	.fiolongo-hero__line { display: inline; }
	.fiolongo-hero .fiolongo-hero__title.wp-block-heading { font-size: 1.75rem; }
	.fiolongo-hero .wp-block-cover__inner-container { padding-top: 214px; padding-bottom: 28px; }
}

/* ---------- Benefícios ---------- */
.fl-benefits { background: #f7f5f0; border-bottom: 1px solid var(--fl-line); }
.fl-benefits__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-top: 18px; padding-bottom: 18px; }
.fl-benefit { display: flex; align-items: center; gap: 14px; color: #0b3b75; min-width: 0; }
.fl-benefit svg { flex: none; }
.fl-benefit div { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.fl-benefit strong { color: #171717; font-size: 14px; font-weight: 700; }
.fl-benefit span { color: #666; font-size: 12.5px; }
@media (max-width: 1100px) { .fl-benefits__grid { grid-template-columns: repeat(2, 1fr); gap: 14px 24px; } }
@media (max-width: 520px) {
	.fl-benefits__grid { grid-template-columns: 1fr 1fr; gap: 14px 12px; }
	.fl-benefit { gap: 10px; align-items: flex-start; }
	.fl-benefit svg { width: 30px; height: 30px; }
	.fl-benefit strong { font-size: 12.5px; }
	.fl-benefit span { font-size: 11.5px; }
}

/* ---------- Cards fotográficos (categorias e Quero Fazer) ---------- */
.fl-cats__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.fl-cat { display: block; background: #fff; border: 1px solid var(--fl-line); border-radius: 6px; overflow: hidden; text-decoration: none; color: #171717; box-shadow: var(--fl-shadow); transition: transform .18s ease, box-shadow .18s ease, border-color .18s; }
.fl-cat:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(6,42,86,.12); border-color: #cfd8e6; }
.fl-cat__img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #ece8df; }
.fl-cat__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.fl-cat:hover .fl-cat__img img { transform: scale(1.04); }
.fl-cat__label { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; min-height: 46px; font: 600 13.5px/1.25 var(--wp--preset--font-family--commercial); box-sizing: border-box; }
.fl-cat__label i { font-style: normal; color: #062a56; font-size: 16px; transition: transform .18s, color .18s; }
.fl-cat:hover .fl-cat__label i { transform: translateX(3px); color: #d3222a; }
@media (max-width: 1100px) { .fl-cats__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .fl-cats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .fl-cat__label { padding: 9px 10px; font-size: 13px; } }

/* ---------- Mais Vendidos — vitrine compacta ---------- */
.fl-products { padding: 28px 0 40px; }
.fl-collection .wp-block-woocommerce-product-template {
	display: grid !important; grid-template-columns: repeat(5, minmax(0, 1fr)) !important; gap: 14px !important; margin: 0; padding: 0; list-style: none;
}
.fl-collection .wp-block-woocommerce-product-template > li,
.fl-collection .wc-block-product {
	width: auto !important; max-width: none !important; margin: 0 !important; min-width: 0;
	display: flex; flex-direction: column; background: #fff; border: 1px solid var(--fl-line) !important; border-radius: 6px;
	box-shadow: var(--fl-shadow) !important; padding: 10px 10px 12px; box-sizing: border-box; transition: box-shadow .18s, transform .18s, border-color .18s;
}
.fl-collection .wc-block-product:hover { box-shadow: 0 8px 20px rgba(6,42,86,.12) !important; transform: translateY(-2px); border-color: #cfd8e6 !important; }

.fl-collection .wc-block-components-product-image { position: relative; aspect-ratio: 1 / 1 !important; width: 100%; margin: 0 0 8px !important; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.fl-collection .wc-block-components-product-image a { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; }
.fl-collection .wc-block-components-product-image img { width: 100% !important; height: 100% !important; aspect-ratio: auto !important; object-fit: contain !important; object-position: center; background: #fff; }
.fl-collection .wc-block-components-product-sale-badge {
	position: absolute !important; top: 0 !important; right: 0 !important; left: auto !important; margin: 0 !important; z-index: 2;
	background: #d3222a !important; color: #fff !important; border: 0 !important; border-radius: 3px !important; padding: 3px 7px !important;
	font: 700 10px/1.2 var(--wp--preset--font-family--commercial) !important; letter-spacing: .06em; text-transform: uppercase;
}
.fl-collection .wc-block-components-product-image [class*="sale-badge--align"] { position: absolute; top: 0; right: 0; left: auto; margin: 0; }

.fl-collection .fl-product-title, .fl-collection .wp-block-post-title {
	margin: 0 0 6px !important; font-family: var(--wp--preset--font-family--commercial); font-style: normal; font-weight: 500 !important; font-size: 13px !important; line-height: 1.35 !important; color: #171717;
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; min-height: calc(1.35em * 2);
}
.fl-collection .wp-block-post-title a { color: inherit; text-decoration: none; }
.fl-collection .wp-block-post-title a:hover { color: #0b3b75; }

.fl-collection .wc-block-components-product-price, .fl-collection .wp-block-woocommerce-product-price {
	margin: 0 0 10px !important; margin-top: auto !important; font-family: var(--wp--preset--font-family--commercial) !important; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; font-size: 17px !important; font-weight: 800; color: #171717; line-height: 1.2;
}
.fl-collection .wc-block-components-product-price del { order: -1; color: #8a8a8a; font-size: 12px; font-weight: 400; text-decoration: line-through; }
.fl-collection .wc-block-components-product-price ins { text-decoration: none; font-weight: 800; }
.fl-collection .wc-block-components-product-price__value { font-weight: 800; }

.fl-collection .wp-block-woocommerce-product-button { margin: 0 !important; }
.fl-collection .wp-block-button__link, .fl-collection .wc-block-components-product-button__button {
	display: flex !important; align-items: center; justify-content: center; gap: 6px; width: 100%; box-sizing: border-box; min-height: 34px; height: auto; padding: 7px 8px !important;
	background: #d3222a !important; color: #fff !important; border: 0 !important; border-radius: 4px !important;
	font: 600 12.5px/1.2 var(--wp--preset--font-family--commercial) !important; text-decoration: none; transition: background .15s;
}
.fl-collection .wc-block-components-product-button__button::before {
	content: ""; width: 14px; height: 14px; flex: none; background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='20' r='1.5'/%3E%3Ccircle cx='18' cy='20' r='1.5'/%3E%3Cpath d='M2 3h3l2.7 12.4a1 1 0 001 .8h9.6a1 1 0 001-.8L21 7H6'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='20' r='1.5'/%3E%3Ccircle cx='18' cy='20' r='1.5'/%3E%3Cpath d='M2 3h3l2.7 12.4a1 1 0 001 .8h9.6a1 1 0 001-.8L21 7H6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.fl-collection .wc-block-components-product-button__button:hover { background: #b51a22 !important; }
.fl-collection .wc-block-components-product-button__button.loading::before { display: none; }

@media (max-width: 1199px) { .fl-products .wp-block-woocommerce-product-template { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; } .fl-products .wc-block-product:nth-child(n+9) { display: none; } }
@media (max-width: 1023px) { .fl-products .wp-block-woocommerce-product-template { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } .fl-products .wc-block-product:nth-child(n+10) { display: none; } .fl-products .wc-block-product:nth-child(n+7) { display: flex; } }
@media (max-width: 600px) {
	.fl-collection .wp-block-woocommerce-product-template { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
	.fl-products .wc-block-product:nth-child(n+9) { display: none; }
	.fl-collection .wc-block-product { padding: 8px 8px 10px; }
	.fl-collection .wp-block-post-title { font-size: 12.5px !important; }
	.fl-collection .wc-block-components-product-price { font-size: 15.5px !important; }
}


.fl-collection .wp-block-woocommerce-product-button { align-items: stretch !important; }
.fl-collection .wc-block-components-product-button__button { width: 100% !important; }
/* ---------- Banner editorial ---------- */
.fl-banner { position: relative; display: grid; grid-template-columns: 1fr 1fr; min-height: 250px; background: #14100d; overflow: hidden; margin-top: 12px; }
.fl-banner__photo { position: relative; background-size: cover; background-position: center; min-height: 200px; }
.fl-banner__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,16,13,0) 45%, #14100d 100%); }
.fl-banner__text { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 32px max(24px, calc((100vw - 1400px) / 2 + 24px)) 32px 24px; color: #fff; }
.fl-banner__eyebrow { margin: 0 0 10px; font: 500 11px/1.4 var(--wp--preset--font-family--commercial); letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.fl-banner h2 { color: #fff !important; font-size: clamp(1.4rem, 2.4vw, 2.1rem) !important; line-height: 1.15; max-width: 20em; margin: 0 0 12px; font-weight: 800; }
.fl-banner__copy { margin: 0 0 20px; max-width: 34em; font-size: 14.5px; line-height: 1.55; color: rgba(255,255,255,.85); }
@media (max-width: 782px) {
	.fl-banner { grid-template-columns: 1fr; }
	.fl-banner__photo { height: 170px; min-height: 0; }
	.fl-banner__photo::after { background: linear-gradient(180deg, rgba(20,16,13,0) 50%, #14100d 100%); }
	.fl-banner__text { padding: 8px 20px 28px; }
}

/* ---------- Quero Fazer ---------- */
.fl-qf { padding: 36px 0 44px; }
.fl-qf__layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 24px; align-items: stretch; }
.fl-qf__head { margin-bottom: 14px; }
.fl-qf__head p { margin: 4px 0 0; color: #555; font-size: 14px; }
.fl-qf__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.fl-cat--sm .fl-cat__img { aspect-ratio: 16 / 10; }
.fl-cat--sm .fl-cat__label { min-height: 40px; padding: 8px 10px; font-size: 13px; }
.fl-guide { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 8px; padding: 22px; background: #efebe1; border: 1px solid var(--fl-line); border-radius: 6px; color: #062a56; }
.fl-guide h3 { margin: 4px 0 0; font: 800 18px/1.25 var(--wp--preset--font-family--commercial); font-style: normal; color: #062a56; }
.fl-guide p { margin: 0 0 8px; color: #444; font-size: 14px; line-height: 1.5; }
@media (max-width: 1100px) {
	.fl-qf__layout { grid-template-columns: 1fr; }
	.fl-qf__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.fl-guide { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
	.fl-guide h3, .fl-guide p { margin: 0; }
}
@media (max-width: 600px) { .fl-qf__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .fl-guide { padding: 18px; } }
@media (max-width: 782px) { .fl-section { padding-top: 26px; } .fl-container { padding: 0 16px; } .fl-section h2 { font-size: 21px; } }

/* v0.8.11 — nota do parcelamento menor que o subtitulo dos outros beneficios. */
.fl-benefit span.fl-benefit__note { font-size: 11px; }
@media (max-width: 782px) { .fl-benefit span.fl-benefit__note { font-size: 10.5px; } }
