/*
Theme Name: Latin Flowers
Author: Enyel Santos
Description: Tema clasico autonomo, con ficha de producto WooCommerce y checkout en linea. No requiere tema padre.
Version: 2.5.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: latin-flowers
Tags: e-commerce, one-column, custom-menu, featured-images, translation-ready, accessibility-ready
*/

/* -------------------------------------------------------------------------
 * 1. Design tokens
 * ---------------------------------------------------------------------- */

:root {
	--lf-green: #004E32;
	--lf-green-dark: #003B27;
	--lf-purple: #4C2991;
	--lf-purple-dark: #39206D;
	--lf-red: #EF2D2A;
	--lf-orange: #F36730;
	--lf-yellow: #F9B02A;
	--lf-green-soft: #F1F6F3;
	--lf-purple-soft: #F4F1F9;
	--lf-text: #17172C;
	--lf-text-soft: #777783;
	--lf-border: #E7E7EA;
	--lf-white: #FFFFFF;
	--lf-error: #C1121F;
	--lf-body-font: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
	--lf-heading-font: "Boska", Georgia, "Times New Roman", serif;
	--lf-wrap: 1480px;
	--lf-gutter: 24px;
}

/* -------------------------------------------------------------------------
 * 2. Reset / base
 * ---------------------------------------------------------------------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: var(--lf-body-font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--lf-text);
	background: var(--lf-white);
}

img,
picture,
video,
canvas,
svg,
iframe {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: var(--lf-purple);
	text-decoration: underline;
	text-underline-offset: 3px;
}

a:hover,
a:focus-visible {
	color: var(--lf-purple-dark);
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

:focus-visible {
	outline: 3px solid var(--lf-purple);
	outline-offset: 2px;
}

h1, h2, h3, h4, h5, h6,
.section-title,
.product-title,
.woocommerce div.product .product_title,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-family: var(--lf-heading-font);
	font-weight: 500;
	letter-spacing: -0.025em;
	line-height: 1.15;
	color: var(--lf-text);
}

h1 { font-size: clamp(32px, 4vw, 46px); margin: 0 0 0.5em; }
h2 { font-size: clamp(26px, 3vw, 36px); margin: 0 0 0.5em; }
h3 { font-size: clamp(21px, 2.2vw, 26px); margin: 0 0 0.5em; }
h4 { font-size: 19px; margin: 0 0 0.5em; }

p, ul, ol, blockquote, figure, table {
	margin: 0 0 1.2em;
}

blockquote {
	padding-left: 18px;
	border-left: 3px solid var(--lf-border);
	color: var(--lf-text-soft);
}

code, pre, kbd, samp {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.92em;
}

pre {
	overflow-x: auto;
	padding: 16px;
	border-radius: 12px;
	background: var(--lf-green-soft);
}

table {
	width: 100%;
	border-collapse: collapse;
}

th, td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--lf-border);
	text-align: left;
}

hr {
	height: 1px;
	margin: 2em 0;
	border: 0;
	background: var(--lf-border);
}

/* -------------------------------------------------------------------------
 * 3. Accessibility helpers (previously inherited from the parent theme)
 * ---------------------------------------------------------------------- */

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus,
.lf-skip-link:focus {
	position: fixed !important;
	top: 12px;
	left: 12px;
	z-index: 100001;
	width: auto;
	height: auto;
	margin: 0;
	padding: 12px 20px;
	clip: auto;
	clip-path: none;
	border-radius: 8px;
	background: var(--lf-green);
	color: var(--lf-white);
	text-decoration: none;
}

/* -------------------------------------------------------------------------
 * 4. Layout shell (replaces the parent theme container/header/footer)
 * ---------------------------------------------------------------------- */

.lf-wrap {
	width: min(var(--lf-wrap), calc(100% - (var(--lf-gutter) * 2)));
	margin-inline: auto;
}

.lf-site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.lf-site-content {
	flex: 1 0 auto;
}

/* Full-bleed pages: the product template owns its own layout. */
.lf-site-content--flush {
	padding: 0;
}

/*
 * The site header, branding and primary navigation now live in
 * assets/css/header.css, loaded as `latin-flowers-header`.
 */

.lf-site-footer {
	flex-shrink: 0;
	padding-block: 44px;
	border-top: 1px solid var(--lf-border);
	background: var(--lf-green-soft);
	font-size: 14px;
}

.lf-site-footer__widgets {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 32px;
	margin-bottom: 32px;
}

.lf-site-footer__widgets ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.lf-site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	color: var(--lf-text-soft);
}

.lf-site-footer__bottom ul {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* -------------------------------------------------------------------------
 * 5. Generic content templates
 * ---------------------------------------------------------------------- */

.lf-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 48px;
}

.lf-layout--with-sidebar {
	grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
}

.lf-entry + .lf-entry {
	margin-top: 48px;
	padding-top: 48px;
	border-top: 1px solid var(--lf-border);
}

.lf-entry__meta {
	margin-bottom: 14px;
	color: var(--lf-text-soft);
	font-size: 14px;
}

.lf-entry__thumb {
	margin-bottom: 20px;
	overflow: hidden;
	border-radius: 18px;
}

.lf-entry__content > *:last-child {
	margin-bottom: 0;
}

.lf-page-header {
	margin-bottom: 40px;
}

.lf-pagination {
	margin-top: 48px;
}

.lf-pagination .page-numbers {
	display: inline-block;
	min-width: 40px;
	margin-right: 6px;
	padding: 8px 12px;
	border: 1px solid var(--lf-border);
	border-radius: 9px;
	text-align: center;
	text-decoration: none;
}

.lf-pagination .page-numbers.current {
	border-color: var(--lf-green);
	background: var(--lf-green);
	color: var(--lf-white);
}

.lf-search-form {
	display: flex;
	gap: 8px;
}

.lf-search-form input[type="search"] {
	flex: 1;
	min-width: 0;
	padding: 10px 14px;
	border: 1px solid var(--lf-border);
	border-radius: 9px;
}

.lf-search-form button {
	padding: 10px 18px;
	border: 0;
	border-radius: 9px;
	background: var(--lf-green);
	color: var(--lf-white);
	cursor: pointer;
}

.lf-widget + .lf-widget {
	margin-top: 32px;
}

.lf-widget__title {
	margin-bottom: 12px;
	font-size: 18px;
}

.lf-comments {
	margin-top: 56px;
	padding-top: 40px;
	border-top: 1px solid var(--lf-border);
}

.lf-comments ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

.lf-comments .children {
	margin-left: 28px;
	padding-left: 0;
	list-style: none;
}

.lf-404 {
	max-width: 640px;
	margin-inline: auto;
	text-align: center;
}

@media (max-width: 900px) {
	.lf-layout--with-sidebar {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 767px) {
	:root {
		--lf-gutter: 16px;
	}
}
