/*
Theme Name: Vidaluz
Template: storefront
Description: Tema da loja Vidaluz, filho do Storefront.
Version: 1.0.0
Text Domain: vidaluz
*/

:root {
	--vl-amber: #ffb703;
	--vl-amber-deep: #f59e0b;
	--vl-amber-soft: #fff3cf;
	--vl-ink: #231a0e;
	--vl-text: #4a4037;
	--vl-muted: #8a7f73;
	--vl-bg: #faf7f2;
	--vl-card: #ffffff;
	--vl-line: #eee6da;
	--vl-sale: #e4572e;
	--vl-ok: #1f8a4c;
	--vl-radius: 14px;
	--vl-font: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

body, button, input, select, textarea { font-family: var(--vl-font); }
body { background: var(--vl-bg); color: var(--vl-text); }
h1, h2, h3, h4, .entry-title { font-family: var(--vl-font); color: var(--vl-ink); font-weight: 600; letter-spacing: -0.01em; }
a:focus, button:focus, input:focus { outline: 2px solid var(--vl-ink); outline-offset: 2px; }
.col-full { max-width: 1240px; width: 100%; margin-left: auto; margin-right: auto; padding: 0 20px; box-sizing: border-box; }
.site-content { padding-top: 0; }
.site-main { margin-bottom: 2em; }

/* Faixa de aviso */
.vl-topbar { background: var(--vl-ink); color: #fff; text-align: center; font-size: 13px; font-weight: 500; padding: 8px 16px; }
.vl-topbar strong { color: var(--vl-amber); font-weight: 600; }

/* Cabeçalho */
.vl-header { background: var(--vl-amber); position: sticky; top: 0; z-index: 999; box-shadow: 0 2px 10px rgba(35, 26, 14, 0.12); }
.vl-header__row { display: flex; align-items: center; gap: 22px; padding-top: 14px; padding-bottom: 14px; }
.vl-logo { flex: 0 0 auto; display: block; line-height: 0; }
.vl-logo img { height: 38px; width: auto; display: block; }
.vl-burger { display: none; background: none; border: 0; padding: 6px; cursor: pointer; color: var(--vl-ink); }
.vl-burger:hover { background: none; color: var(--vl-ink); }
.vl-search { flex: 1 1 auto; }
.vl-search form { display: flex; margin: 0; background: #fff; border-radius: 999px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(35, 26, 14, 0.08); }
.vl-search input[type="search"] { flex: 1; border: 0; background: transparent; box-shadow: none; padding: 12px 20px; font-size: 15px; color: var(--vl-ink); min-width: 0; }
.vl-search button { background: var(--vl-ink); color: #fff; border: 0; border-radius: 999px; margin: 4px; padding: 0 18px; display: flex; align-items: center; }
.vl-search button:hover { background: #000; color: #fff; }
.vl-search .screen-reader-text, .vl-search label { position: absolute; left: -9999px; }
.vl-icons { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.vl-icon { position: relative; display: flex; align-items: center; gap: 8px; color: var(--vl-ink); padding: 8px 10px; border-radius: 999px; font-size: 13px; font-weight: 500; text-decoration: none; }
.vl-icon:hover { background: rgba(35, 26, 14, 0.1); color: var(--vl-ink); }
.vl-cart-count { position: absolute; top: 0; right: 0; background: var(--vl-ink); color: #fff; font-size: 11px; font-weight: 600; min-width: 18px; height: 18px; line-height: 18px; text-align: center; border-radius: 999px; padding: 0 4px; box-sizing: border-box; }

/* Menu de categorias */
.vl-nav { background: #fff; border-bottom: 1px solid var(--vl-line); }
.vl-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.vl-nav ul::-webkit-scrollbar { display: none; }
.vl-nav a { display: block; white-space: nowrap; padding: 12px 14px; color: var(--vl-ink); font-size: 14px; font-weight: 500; text-decoration: none; border-bottom: 3px solid transparent; }
.vl-nav a:hover, .vl-nav .is-current a { border-bottom-color: var(--vl-amber-deep); }
.vl-nav .vl-nav__sale a { color: var(--vl-sale); font-weight: 600; }

.storefront-breadcrumb { background: transparent; margin: 0; padding: 14px 0; font-size: 13px; }

/* Página inicial */
.vl-home { padding-top: 26px; }
.vl-hero { position: relative; overflow: hidden; border-radius: 22px; background: radial-gradient(circle at 82% 30%, #ffe08a 0, #ffc933 28%, var(--vl-amber-deep) 70%); padding: 56px 52px; display: flex; align-items: center; min-height: 320px; box-sizing: border-box; }
.vl-hero::before { content: ""; position: absolute; right: 9%; top: 50%; width: 240px; height: 240px; transform: translateY(-50%); border-radius: 50%; background: radial-gradient(circle, #fffdf2 0, #fff1b8 38%, rgba(255, 241, 184, 0) 70%); }
.vl-hero::after { content: ""; position: absolute; right: calc(9% + 82px); top: calc(50% - 38px); width: 76px; height: 76px; border-radius: 50%; background: #fff; box-shadow: 0 0 60px 30px rgba(255, 255, 255, 0.75); }
.vl-hero__text { position: relative; z-index: 1; max-width: 520px; }
.vl-hero__tag { display: inline-block; background: var(--vl-ink); color: var(--vl-amber); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; margin-bottom: 16px; }
.vl-hero h1 { font-size: 44px; line-height: 1.1; font-weight: 700; margin: 0 0 12px; color: var(--vl-ink); }
.vl-hero p { font-size: 17px; color: #3b2e1c; margin: 0 0 24px; }
.vl-btn { display: inline-block; background: var(--vl-ink); color: #fff; font-weight: 600; font-size: 15px; padding: 14px 28px; border-radius: 999px; text-decoration: none; }
.vl-btn:hover { background: #000; color: #fff; }

.vl-perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 22px 0 8px; padding: 0; list-style: none; }
.vl-perks li { background: var(--vl-card); border: 1px solid var(--vl-line); border-radius: var(--vl-radius); padding: 16px; display: flex; align-items: center; gap: 12px; }
.vl-perks svg { flex: 0 0 auto; color: var(--vl-amber-deep); }
.vl-perks strong { display: block; color: var(--vl-ink); font-size: 14px; font-weight: 600; line-height: 1.3; }
.vl-perks span { font-size: 12.5px; color: var(--vl-muted); line-height: 1.35; display: block; }

.vl-section { margin-top: 44px; }
.vl-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.vl-section__head h2 { font-size: 24px; margin: 0; }
.vl-section__head a { font-size: 14px; font-weight: 600; color: var(--vl-ink); text-decoration: none; white-space: nowrap; border-bottom: 2px solid var(--vl-amber); }

.vl-cats { display: flex; gap: 22px; overflow-x: auto; padding: 4px 2px 10px; margin: 0; list-style: none; scrollbar-width: thin; }
.vl-cats li { flex: 0 0 auto; width: 118px; text-align: center; }
.vl-cats a { text-decoration: none; color: var(--vl-ink); font-size: 13.5px; font-weight: 500; display: block; }
.vl-cats__img { width: 108px; height: 108px; border-radius: 50%; margin: 0 auto 10px; background: linear-gradient(145deg, var(--vl-amber-soft), #ffd766); display: flex; align-items: center; justify-content: center; overflow: hidden; font-size: 34px; font-weight: 700; color: var(--vl-ink); transition: transform 0.15s; }
.vl-cats__img img { width: 100%; height: 100%; object-fit: cover; }
.vl-cats a:hover .vl-cats__img { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(245, 158, 11, 0.35); }

/* Fileira de produtos com rolagem */
.vl-row .woocommerce { margin: 0; }
.vl-row ul.products { display: flex; gap: 16px; overflow-x: auto; margin: 0; padding: 4px 2px 14px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.vl-row ul.products::before, .vl-row ul.products::after { display: none; }
.vl-row ul.products li.product { flex: 0 0 218px; width: 218px; margin: 0; float: none; scroll-snap-align: start; }

/* Grade da loja */
.site-main ul.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.site-main ul.products::before, .site-main ul.products::after { display: none; }
.site-main ul.products li.product { width: auto; margin: 0; float: none; }

/* Cartão de produto */
ul.products li.product { position: relative; background: var(--vl-card); border: 1px solid var(--vl-line); border-radius: var(--vl-radius); padding: 12px 12px 16px; text-align: left; box-sizing: border-box; display: flex; flex-direction: column; transition: box-shadow 0.15s, transform 0.15s; }
ul.products li.product:hover { box-shadow: 0 10px 24px rgba(35, 26, 14, 0.1); transform: translateY(-2px); }
ul.products li.product a.woocommerce-LoopProduct-link { display: block; text-decoration: none; }
ul.products li.product img { border-radius: 10px; margin: 0 0 12px; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #f4efe7; }
ul.products li.product .woocommerce-loop-product__title { font-size: 14px; font-weight: 500; line-height: 1.35; color: var(--vl-ink); margin: 0 0 8px; min-height: 2.7em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
ul.products li.product .price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin: 0 0 12px; color: var(--vl-ink); font-size: 19px; font-weight: 700; }
ul.products li.product .price del { order: 2; font-size: 13px; font-weight: 400; color: var(--vl-muted); opacity: 1; }
ul.products li.product .price ins { order: 1; text-decoration: none; font-weight: 700; margin: 0; }
ul.products li.product .star-rating { margin: 0 0 8px; font-size: 12px; }
ul.products li.product .button { margin: auto 0 0; width: 100%; text-align: center; border-radius: 999px; padding: 10px 12px; font-size: 13.5px; font-weight: 600; box-sizing: border-box; }
.onsale, ul.products li.product .onsale { position: absolute; top: 20px; left: 20px; right: auto; margin: 0; z-index: 2; background: var(--vl-sale); color: #fff; border: 0; border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 700; line-height: 1.4; text-transform: none; }

/* Botões */
button, input[type="button"], input[type="submit"], .button, .added_to_cart { border-radius: 999px; font-weight: 600; }
.single_add_to_cart_button, .checkout-button, #place_order { padding: 16px 30px !important; font-size: 16px !important; }
.woocommerce-message, .woocommerce-info { border-radius: var(--vl-radius); }

/* Página de produto */
.single-product div.product { background: var(--vl-card); border: 1px solid var(--vl-line); border-radius: 20px; padding: 28px; margin-top: 4px; }
.single-product div.product .product_title { font-size: 28px; margin-bottom: 10px; }
.single-product div.product p.price { font-size: 30px; font-weight: 700; color: var(--vl-ink); }
.single-product div.product p.price del { font-size: 16px; font-weight: 400; color: var(--vl-muted); opacity: 1; }
.single-product div.product p.price ins { text-decoration: none; }
.single-product div.product .onsale { position: static; display: inline-block; margin-bottom: 10px; }
.single-product div.product .woocommerce-product-gallery img { border-radius: var(--vl-radius); }
.vl-trust { list-style: none; margin: 20px 0 0; padding: 16px 0 0; border-top: 1px solid var(--vl-line); display: grid; gap: 8px; font-size: 13.5px; }
.vl-trust li { display: flex; gap: 8px; align-items: center; }
.vl-trust svg { color: var(--vl-ok); flex: 0 0 auto; }

/* Bloco sobre a marca */
.vl-about { background: var(--vl-ink); color: #f1e9dc; border-radius: 22px; padding: 44px 48px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: center; }
.vl-about h2 { color: #fff; font-size: 28px; margin: 0 0 12px; }
.vl-about p { margin: 0 0 10px; font-size: 15px; line-height: 1.65; }
.vl-about ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.vl-about li { background: rgba(255, 255, 255, 0.07); border-radius: 12px; padding: 14px 16px; font-size: 14px; }
.vl-about li strong { color: var(--vl-amber); display: block; font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 2px; }

/* Páginas de texto */
.page:not(.home) .hentry { background: var(--vl-card); border: 1px solid var(--vl-line); border-radius: 20px; padding: 34px 38px; margin-bottom: 2em; }
.page .entry-header { margin-bottom: 1em; }
.page .entry-title { font-size: 30px; }
.entry-content h2 { font-size: 20px; margin-top: 1.6em; }

/* Rodapé */
.vl-footer { background: var(--vl-ink); color: #cfc5b8; margin-top: 56px; padding: 48px 0 0; font-size: 14px; }
.vl-footer a { color: #cfc5b8; text-decoration: none; }
.vl-footer a:hover { color: var(--vl-amber); }
.vl-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.vl-footer__logo img { height: 34px; width: auto; margin-bottom: 14px; }
.vl-footer h3 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 14px; }
.vl-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.vl-footer p { margin: 0 0 10px; line-height: 1.6; }
.vl-pay { display: flex; flex-wrap: wrap; gap: 8px; }
.vl-pay span { background: #fff; color: var(--vl-ink); font-size: 12px; font-weight: 600; border-radius: 6px; padding: 5px 10px; }
.vl-footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); margin-top: 38px; padding: 18px 0 22px; font-size: 12.5px; color: #9c9184; }

@media (max-width: 1000px) {
	.site-main ul.products { grid-template-columns: repeat(3, 1fr); }
	.vl-perks { grid-template-columns: repeat(2, 1fr); }
	.vl-footer__grid { grid-template-columns: 1fr 1fr; }
	.vl-about { grid-template-columns: 1fr; padding: 34px 28px; }
}

@media (max-width: 768px) {
	.col-full { padding: 0 14px; }
	.vl-header__row { flex-wrap: wrap; gap: 10px 12px; padding-top: 10px; padding-bottom: 12px; }
	.vl-burger { display: flex; order: 1; }
	.vl-logo { order: 2; margin-right: auto; }
	.vl-logo img { height: 30px; }
	.vl-icons { order: 3; }
	.vl-icon span.vl-icon__label { display: none; }
	.vl-search { order: 4; flex: 1 0 100%; }
	.vl-search input[type="search"] { padding: 10px 16px; }
	.vl-nav { display: none; }
	.vl-nav.is-open { display: block; }
	.vl-nav ul { flex-direction: column; gap: 0; }
	.vl-nav a { border-bottom: 1px solid var(--vl-line); padding: 14px 4px; }
	.vl-home { padding-top: 16px; }
	.vl-hero { padding: 32px 24px 150px; min-height: 0; border-radius: 18px; }
	.vl-hero::before { right: 50%; top: auto; bottom: -50px; transform: translateX(50%); width: 200px; height: 200px; }
	.vl-hero::after { right: calc(50% - 32px); top: auto; bottom: 18px; width: 64px; height: 64px; }
	.vl-hero h1 { font-size: 30px; }
	.vl-hero p { font-size: 15px; }
	.vl-perks { gap: 10px; }
	.vl-perks li { padding: 12px; flex-direction: column; align-items: flex-start; gap: 8px; }
	.vl-section { margin-top: 34px; }
	.vl-section__head h2 { font-size: 20px; }
	.vl-cats { gap: 14px; }
	.vl-cats li { width: 88px; }
	.vl-cats__img { width: 82px; height: 82px; font-size: 26px; }
	.vl-row ul.products li.product { flex-basis: 168px; width: 168px; }
	.site-main ul.products { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	ul.products li.product { padding: 10px 10px 14px; }
	ul.products li.product .price { font-size: 17px; }
	.single-product div.product { padding: 18px; }
	.page:not(.home) .hentry { padding: 22px 18px; }
	.vl-footer { padding-bottom: 60px; }
	.vl-footer__grid { grid-template-columns: 1fr; gap: 26px; }
}

.product_meta .sku_wrapper { display: none; }
