/* Estampados — design tokens ported 1:1 from the Lovable project (src/styles.css). */
:root {
  --radius: 0.75rem;
  --background: oklch(0.985 0.006 80);
  --foreground: oklch(0.2 0.015 50);
  --card: oklch(1 0 0);
  --primary: oklch(0.66 0.19 35);
  --primary-foreground: oklch(0.99 0.005 80);
  --secondary: oklch(0.95 0.012 80);
  --muted: oklch(0.95 0.01 80);
  --muted-foreground: oklch(0.5 0.015 60);
  --accent: oklch(0.62 0.12 190);
  --border: oklch(0.9 0.012 80);
  --ring: oklch(0.66 0.19 35);
  --ink: oklch(0.2 0.015 50);
  --ink-foreground: oklch(0.97 0.008 80);
  --shopee: oklch(0.64 0.2 35);
  --meli: oklch(0.9 0.17 100);
  --meli-foreground: oklch(0.3 0.08 260);
  --amazon: oklch(0.25 0.03 250);
  --amazon-foreground: oklch(0.82 0.16 75);
  --gradient-print: linear-gradient(120deg, var(--primary), oklch(0.75 0.17 60), var(--accent));
  --font-display: "Fraunces", Georgia, serif;
  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 80rem;
}

*, *::before, *::after { box-sizing: border-box; border: 0 solid var(--border); }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--foreground); font-family: var(--font-sans); font-size: 1rem; line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.02em; font-weight: 600; margin: 0; line-height: 1.15; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: 4px; }

.screen-reader-text, .sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; left: 1rem; top: 1rem; z-index: 100; width: auto; height: auto; clip: auto; padding: .75rem 1rem; background: var(--ink); color: var(--ink-foreground); border-radius: 999px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 1rem; }
.print-stripe { background-image: var(--gradient-print); }
.text-print { background-image: var(--gradient-print); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted-foreground); }
.eyebrow { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .2em; color: var(--primary); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 2.75rem; padding: 0 1.5rem; border-radius: 999px; font-weight: 600; font-size: .875rem; cursor: pointer; transition: all .2s; border: 0; }
.btn-primary { background: var(--primary); color: var(--primary-foreground); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ink { background: var(--ink); color: var(--ink-foreground); }
.btn-ink:hover { background: var(--primary); color: var(--primary-foreground); }
.btn-outline { background: transparent; border: 1px solid var(--border); }
.btn-lg { min-height: 3rem; padding: 0 1.75rem; font-size: 1rem; }
.btn-hero:hover { gap: .75rem; }
.link-more { font-size: .875rem; font-weight: 600; color: var(--primary); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid var(--border); background: color-mix(in oklab, var(--background) 90%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.stripe-bar { height: 4px; }
.header-inner { display: flex; align-items: center; gap: 1rem; height: 4rem; }
.logo { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; letter-spacing: -0.02em; white-space: nowrap; }
@media (min-width: 640px) { .logo { font-size: 1.5rem; } }
.logo img { max-height: 40px; width: auto; }
.nav-primary { display: none; margin-left: 1.5rem; }
.nav-primary ul { display: flex; gap: 1.25rem; align-items: center; }
.nav-primary a { font-size: .875rem; font-weight: 500; color: var(--muted-foreground); transition: color .2s; }
.nav-primary a:hover, .nav-primary .current-menu-item > a, .nav-primary [aria-current="page"] { color: var(--foreground); }
.header-search { display: none; margin-left: auto; width: 18rem; }
.menu-toggle { margin-left: auto; display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border-radius: 999px; background: transparent; border: 0; cursor: pointer; }
.menu-toggle:hover { background: var(--muted); }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }
.mobile-panel { border-top: 1px solid var(--border); background: var(--background); padding: .75rem 1rem 1.25rem; }
.mobile-panel[hidden] { display: none; }
.mobile-panel nav { margin-top: .75rem; }
.mobile-panel nav a { display: block; padding: .75rem 0; border-bottom: 1px solid var(--border); font-weight: 500; }
@media (min-width: 768px) { .header-search { display: block; } .menu-toggle { margin-left: .5rem; } .mobile-panel .search-form { display: none; } }
@media (min-width: 1024px) { .nav-primary { display: block; } .menu-toggle, .mobile-panel { display: none !important; } }

.search-form { position: relative; width: 100%; }
.search-form svg { position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); width: 1rem; height: 1rem; color: var(--muted-foreground); pointer-events: none; }
.search-form input[type="search"] { width: 100%; height: 2.5rem; border-radius: 999px; border: 1px solid var(--border); background: var(--card); padding: 0 1rem 0 2.25rem; font-size: .875rem; outline: none; }
.search-form input[type="search"]:focus { box-shadow: 0 0 0 2px var(--ring); }

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero img { width: 100%; height: 78vh; max-height: 720px; min-height: 480px; object-fit: cover; object-position: 60% center; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(to top, color-mix(in oklab, var(--ink) 80%, transparent), color-mix(in oklab, var(--ink) 20%, transparent), transparent); }
.hero-content { position: absolute; inset: 0; display: flex; align-items: flex-end; padding-bottom: 3rem; }
.hero-text { max-width: 32rem; color: var(--ink-foreground); }
.hero-text .kicker { margin-bottom: .75rem; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .25em; opacity: .8; }
.hero-text h1 { font-size: 3rem; line-height: 1.02; }
.hero-text p.lead { margin-top: 1rem; font-size: 1rem; opacity: .9; }
.hero-text .btn { margin-top: 1.75rem; }
@media (min-width: 640px) { .hero-text h1 { font-size: 3.75rem; } .hero-text p.lead { font-size: 1.125rem; } }
@media (min-width: 768px) {
  .hero-text h1 { font-size: 4.5rem; }
  .hero-content { align-items: center; padding-bottom: 0; }
  .hero-shade { background: linear-gradient(to right, color-mix(in oklab, var(--ink) 70%, transparent), color-mix(in oklab, var(--ink) 20%, transparent), transparent); }
}

/* Hero size and alignment options (plugin homepage manager). */
.est-hero-small img { height: 44vh; min-height: 300px; max-height: 420px; }
.est-hero-large img { height: 92vh; min-height: 560px; max-height: 900px; }
.est-hero-align-center .hero-content { justify-content: center; text-align: center; }
.est-hero-align-center .hero-text { margin: 0 auto; }
.est-hero-align-right .hero-content { justify-content: flex-end; text-align: right; }
.est-hero-align-right .hero-text { margin-left: auto; }
.est-hero-align-center .hero-text .btn, .est-hero-align-right .hero-text .btn { margin-inline: auto; }
.est-hero-align-right .hero-text .btn { margin-inline: auto 0; }

/* Sections */
.section { padding-top: 4rem; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.section-title { font-size: 1.875rem; }
@media (min-width: 640px) { .section-title { font-size: 2.25rem; } }
.section-body { margin-top: 1.5rem; }
.band { margin-top: 4rem; background: var(--secondary); padding: 3.5rem 0; }

/* Category tiles */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
@media (min-width: 640px) { .cat-grid { gap: 1.25rem; } }
@media (min-width: 768px) { .cat-grid { grid-template-columns: repeat(4, 1fr); } }
.cat-tile { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 1rem; background: var(--muted); }
.cat-tile img, .cat-tile .ph { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.cat-tile .ph { opacity: .5; }
.cat-tile:hover img { transform: scale(1.05); }
.cat-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, color-mix(in oklab, var(--ink) 75%, transparent), transparent); }
.cat-tile span { position: absolute; z-index: 1; left: .75rem; right: .75rem; bottom: .75rem; font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; line-height: 1.2; color: var(--ink-foreground); }

/* Collections chips */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0 1rem; border-radius: 999px; background: var(--card); border: 1px solid var(--border); font-size: .875rem; font-weight: 600; transition: all .2s; }
.chip:hover, .chip.is-active { background: var(--ink); color: var(--ink-foreground); border-color: var(--ink); }

/* Product grid + card */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
@media (min-width: 640px) { .product-grid { gap: 1.25rem; } }
@media (min-width: 768px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }
.product-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 1rem; background: var(--card); box-shadow: 0 1px 2px rgb(0 0 0 / .05), 0 0 0 1px var(--border); transition: transform .2s, box-shadow .2s; }
.product-card:hover { transform: translateY(-2px); box-shadow: 0 10px 25px -5px rgb(0 0 0 / .12), 0 0 0 1px var(--border); }
.product-card .thumb { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--muted); }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.product-card:hover .thumb img { transform: scale(1.05); }
.product-card .thumb .ph { width: 100%; height: 100%; opacity: .4; }
.card-flags { position: absolute; left: .75rem; top: .75rem; display: flex; flex-wrap: wrap; gap: .375rem; }
.flag { border-radius: 999px; padding: .125rem .5rem; font-size: .625rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; background: var(--primary); color: var(--primary-foreground); }
.card-body { display: flex; flex: 1; flex-direction: column; gap: .5rem; padding: 1rem; }
.card-title { font-size: .875rem; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-title:hover { color: var(--primary); }
.price-row { margin-top: auto; display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.price { font-size: 1.125rem; font-weight: 700; }
.price-old { font-size: .75rem; color: var(--muted-foreground); text-decoration: line-through; }
.card-body .btn { margin-top: .25rem; height: 2.5rem; min-height: 2.5rem; padding: 0 1rem; }

.badge { display: inline-flex; width: fit-content; align-items: center; border-radius: 999px; padding: .125rem .5rem; font-size: .6875rem; font-weight: 600; background: var(--secondary); color: var(--foreground); }
.badge-shopee { background: var(--shopee); color: var(--primary-foreground); }
.badge-mercado-livre { background: var(--meli); color: var(--meli-foreground); }
.badge-amazon { background: var(--amazon); color: var(--amazon-foreground); }

.empty { border-radius: 1rem; background: var(--muted); padding: 2.5rem; text-align: center; color: var(--muted-foreground); }

/* Archive / filters */
.page-head { padding: 2.5rem 0 0; }
.page-head h1 { font-size: 2.25rem; }
@media (min-width: 640px) { .page-head h1 { font-size: 3rem; } }
.page-head p { margin-top: .5rem; color: var(--muted-foreground); }
.archive-layout { display: grid; gap: 2rem; margin-top: 2rem; }
@media (min-width: 1024px) { .archive-layout { grid-template-columns: 16rem 1fr; } }
.filters { border-radius: 1rem; background: var(--card); padding: 1.25rem; box-shadow: 0 0 0 1px var(--border); align-self: start; }
@media (min-width: 1024px) { .filters { position: sticky; top: 6rem; } }
.filters summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 2.75rem; }
.filters-count { display: inline-flex; align-items: center; justify-content: center; min-width: 1.375rem; height: 1.375rem; margin-left: .5rem; padding: 0 .375rem; border-radius: 999px; background: var(--primary); color: var(--primary-foreground); font-size: .6875rem; font-weight: 700; }
.filters summary::-webkit-details-marker { display: none; }
.filters .field { margin-top: 1rem; }
.filters label { display: block; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-foreground); margin-bottom: .375rem; }
.filters select, .filters input[type="text"], .filters input[type="search"] { width: 100%; height: 2.75rem; border-radius: .625rem; border: 1px solid var(--border); background: var(--card); padding: 0 .75rem; font-size: .875rem; }
.filters .price-pair { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.filters .actions { margin-top: 1.25rem; display: grid; gap: .5rem; }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: 1rem; font-size: .875rem; color: var(--muted-foreground); }

.pagination { margin-top: 2.5rem; display: flex; justify-content: center; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: .375rem; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 2.75rem; height: 2.75rem; padding: 0 .75rem; border-radius: 999px; background: var(--card); box-shadow: 0 0 0 1px var(--border); font-weight: 600; font-size: .875rem; }
.pagination .page-numbers.current { background: var(--ink); color: var(--ink-foreground); }

/* Single product */
.product-single { display: grid; gap: 2rem; padding: 2rem 0; max-width: 72rem; }
@media (min-width: 768px) { .product-single { grid-template-columns: 1fr 1fr; gap: 3.5rem; padding: 3.5rem 0; } }
.gallery-main { overflow: hidden; border-radius: 1.5rem; background: var(--muted); }
.gallery-main img, .gallery-main .ph { aspect-ratio: 4 / 5; width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { margin-top: .75rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.gallery-thumbs button { padding: 0; width: 4.5rem; height: 4.5rem; border-radius: .75rem; overflow: hidden; border: 2px solid transparent; background: var(--muted); cursor: pointer; }
.gallery-thumbs button[aria-pressed="true"] { border-color: var(--primary); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-info { display: flex; flex-direction: column; gap: 1rem; }
.breadcrumbs { font-size: .75rem; color: var(--muted-foreground); }
.breadcrumbs a:hover { color: var(--foreground); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .375rem; padding: 0; margin: 0; list-style: none; }
.breadcrumbs li + li::before { content: "/"; margin-right: .375rem; }
.product-info h1 { font-size: 1.875rem; line-height: 1.15; }
@media (min-width: 640px) { .product-info h1 { font-size: 2.25rem; } }
.product-info .price { font-size: 1.875rem; }
.product-info .price-old { font-size: 1rem; }
.prose { line-height: 1.7; color: color-mix(in oklab, var(--foreground) 85%, transparent); }
.prose p + p { margin-top: 1em; }
.specs { display: grid; grid-template-columns: auto 1fr; gap: .375rem 1rem; font-size: .875rem; margin: 0; }
.specs dt { color: var(--muted-foreground); }
.specs dd { margin: 0; }
.buy-box { margin-top: 1rem; border-radius: 1rem; background: var(--card); padding: 1.25rem; box-shadow: 0 0 0 1px var(--border); }
.btn-buy { width: 100%; height: 3.5rem; font-size: 1rem; font-weight: 700; letter-spacing: .03em; box-shadow: 0 10px 15px -3px color-mix(in oklab, var(--primary) 35%, transparent); }
.btn-disabled { width: 100%; height: 3.5rem; background: var(--muted); color: var(--muted-foreground); cursor: not-allowed; }
.note { margin-top: .75rem; display: flex; gap: .5rem; font-size: .75rem; color: var(--muted-foreground); }
.note svg { flex-shrink: 0; margin-top: .125rem; width: .875rem; height: .875rem; }

/* Generic content pages */
.entry { max-width: 48rem; padding: 3rem 0; }
.entry h1 { font-size: 2.25rem; margin-bottom: 1.5rem; }
.entry .prose a { color: var(--primary); text-decoration: underline; }

/* Footer */
.site-footer { margin-top: 5rem; background: var(--ink); color: var(--ink-foreground); }
.site-footer .stripe-bar { height: 4px; }
.footer-grid { display: grid; gap: 2.5rem; padding: 3rem 1rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.footer-grid p { font-size: .875rem; opacity: .75; margin-top: .75rem; }
.footer-nav ul { display: flex; flex-direction: column; gap: .5rem; font-size: .875rem; }
.footer-nav a { opacity: .8; display: inline-block; padding: .125rem 0; }
.footer-nav a:hover { opacity: 1; }
.footer-legal { font-size: .75rem; line-height: 1.6; opacity: .7; }
.footer-bottom { border-top: 1px solid color-mix(in oklab, var(--ink-foreground) 10%, transparent); padding: 1rem; text-align: center; font-size: .75rem; opacity: .6; }

.notice-plugin { margin: 2rem auto; max-width: 40rem; border-radius: 1rem; background: var(--secondary); padding: 1.5rem; text-align: center; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
.product-info .price-row { margin-top: 0; }

/* SEO module: category cover, intro/bottom text, guides */
.page-head-media { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 768px) { .page-head-media { grid-template-columns: 320px 1fr; } }
.term-cover { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius, .75rem); }
.term-intro { margin-top: .75rem; max-width: 48rem; }
.term-bottom h2 { font-size: 1.5rem; margin: 1.5rem 0 .5rem; }
.term-bottom h3 { font-size: 1.125rem; margin: 1.25rem 0 .5rem; }
.guide-list { display: grid; gap: 1.25rem; margin-top: 1.5rem; padding: 0; list-style: none; }
@media (min-width: 768px) { .guide-list { grid-template-columns: repeat(3, 1fr); } }
.guide-card img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius, .75rem); }
.guide-card h3 { font-size: 1.125rem; margin-top: .75rem; }
.guide-card p { margin-top: .375rem; font-size: .875rem; color: var(--muted-foreground); }
.entry-meta { font-size: .8125rem; color: var(--muted-foreground); margin-top: .5rem; }
