/* PlantWiki – main.css v2.0 */
/* Design system: Playfair Display + DM Sans · Palette verde */

/* ══ RESET & VARIABLES ══════════════════════════════════════════════════════ */
:root {
  --green-deep:  #1a2e1a;
  --green-mid:   #2d5a27;
  --green-fresh: #4a8c3f;
  --green-light: #7bc67e;
  --green-pale:  #e8f5e2;
  --cream:       #faf8f3;
  --text-dark:   #1a1a1a;
  --text-mid:    #4a4a4a;
  --text-light:  #8a8a8a;
  --yellow:      #f5c842;
  --orange:      #e8713a;
  --red:         #d94f3a;
  --radius:      16px;
  --radius-sm:   8px;
  --nav-h:       70px;
  --container:   1280px;
  --shadow-card: 0 4px 16px rgba(26,46,26,.08);
  --shadow-hover:0 12px 32px rgba(26,46,26,.14);
}
*,*::before,*::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
body { font-family:'DM Sans',sans-serif; background:var(--cream); color:var(--text-dark); overflow-x:hidden; line-height:1.5; }
img  { max-width:100%; height:auto; display:block; }
a    { color:inherit; }
button { font-family:inherit; cursor:pointer; }
/* Accessibilità */
.sr-only { position:absolute; 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; top:12px; left:12px; z-index:9999; background:var(--green-deep); color:white; padding:10px 18px; border-radius:8px; text-decoration:none; font-weight:600; }

/* ══ CONTAINER ══════════════════════════════════════════════════════════════ */
.container { max-width:var(--container); margin:0 auto; padding:0 40px; }

/* ══ TIPOGRAFIA ═════════════════════════════════════════════════════════════ */
.section-eyebrow { font-size:11px; font-weight:700; letter-spacing:2px; text-transform:uppercase; color:var(--green-fresh); margin-bottom:10px; }
.section-title   { font-family:'Playfair Display',serif; font-size:clamp(28px,3vw,42px); font-weight:700; color:var(--green-deep); line-height:1.05; margin-bottom:12px; letter-spacing:-.5px; }
.section-sub     { font-size:16px; color:var(--text-mid); line-height:1.6; max-width:560px; margin-bottom:40px; }

/* ══ NAV ════════════════════════════════════════════════════════════════════ */
#mainNav {
  position:fixed; top:0; left:0; right:0; z-index:300;
  display:flex; align-items:center; justify-content:space-between;
  padding:18px 40px; height:var(--nav-h);
  background:rgba(250,248,243,.95); backdrop-filter:blur(12px);
  border-bottom:1px solid rgba(0,0,0,.06);
  transition:padding .3s, box-shadow .3s;
}
#mainNav.scrolled { padding:12px 40px; box-shadow:0 2px 20px rgba(0,0,0,.06); }
.nav-logo { font-family:'Playfair Display',serif; font-size:22px; font-weight:900; color:var(--green-deep); letter-spacing:-.5px; text-decoration:none; }
.nav-logo span { color:var(--green-fresh); }
.nav-links { display:flex; align-items:center; gap:28px; }
.nav-links a { font-size:14px; font-weight:500; color:var(--text-mid); text-decoration:none; transition:color .2s; }
.nav-links a:hover, .nav-links a.active { color:var(--green-fresh); }
.nav-cta { background:var(--green-deep)!important; color:white!important; padding:9px 20px; border-radius:50px; font-size:13px!important; font-weight:600!important; transition:background .2s!important; }
.nav-cta:hover { background:var(--green-fresh)!important; }
.nav-hamburger { display:none; flex-direction:column; justify-content:center; align-items:center; width:42px; height:42px; gap:5px; z-index:301; background:none; border:none; padding:0; }
.nav-hamburger span { display:block; width:24px; height:2px; background:var(--green-deep); border-radius:2px; transition:transform .3s, opacity .3s; transform-origin:center; }
.nav-hamburger.open span:nth-child(1) { transform:translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity:0; transform:scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform:translateY(-7px) rotate(-45deg); }
.mobile-menu { display:none; position:fixed; inset:0; background:rgba(250,248,243,.98); backdrop-filter:blur(16px); z-index:299; flex-direction:column; align-items:center; justify-content:center; gap:10px; opacity:0; pointer-events:none; transition:opacity .3s; }
.mobile-menu.open { opacity:1; pointer-events:all; }
.mobile-menu a { font-family:'Playfair Display',serif; font-size:28px; font-weight:700; color:var(--green-deep); text-decoration:none; padding:10px 0; transition:color .2s; }
.mobile-menu a:hover { color:var(--green-fresh); }
.mobile-menu .m-cta { font-family:'DM Sans',sans-serif; font-size:16px!important; background:var(--green-deep); color:white!important; padding:14px 32px; border-radius:50px; font-weight:600; margin-top:16px; }

/* ══ FOOTER ═════════════════════════════════════════════════════════════════ */
footer { background:var(--green-deep); border-top:1px solid rgba(255,255,255,.06); padding:40px 0 28px; }
.footer-inner { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:20px; }
.footer-logo { font-family:'Playfair Display',serif; font-size:20px; font-weight:900; color:white; }
.footer-logo span { color:var(--green-light); }
.footer-links { display:flex; gap:24px; flex-wrap:wrap; }
.footer-links a { font-size:13px; color:rgba(255,255,255,.4); text-decoration:none; transition:color .2s; }
.footer-links a:hover { color:rgba(255,255,255,.8); }
.footer-note { font-size:12px; color:rgba(255,255,255,.2); }

/* ══ BREADCRUMB ═════════════════════════════════════════════════════════════ */
.breadcrumb { display:flex; align-items:center; gap:8px; font-size:13px; color:rgba(255,255,255,.45); padding:12px 0; }
.breadcrumb a { color:rgba(255,255,255,.55); text-decoration:none; transition:color .2s; }
.breadcrumb a:hover { color:white; }
.breadcrumb span:last-child { color:rgba(255,255,255,.8); }
.breadcrumb-sep { color:rgba(255,255,255,.25); }

/* ══ FADE-UP ════════════════════════════════════════════════════════════════ */
.fade-up { opacity:0; transform:translateY(24px); transition:opacity .5s ease, transform .5s ease; }
.fade-up.visible { opacity:1; transform:translateY(0); }

/* ══ SPINNER ════════════════════════════════════════════════════════════════ */
.spinner { width:36px; height:36px; border:3px solid var(--green-pale); border-top-color:var(--green-fresh); border-radius:50%; animation:spin .7s linear infinite; margin:0 auto; }
@keyframes spin { to { transform:rotate(360deg); } }
.catalog-loading, .finder-loading { display:flex; flex-direction:column; align-items:center; gap:14px; padding:60px 0; grid-column:1/-1; color:var(--text-light); font-size:14px; }

/* ══ PILL FILTERS ═══════════════════════════════════════════════════════════ */
.pill { padding:7px 14px; border-radius:50px; font-size:13px; font-weight:500; background:var(--green-pale); color:var(--green-deep); border:1.5px solid transparent; transition:all .15s; user-select:none; white-space:nowrap; }
.pill:hover { border-color:var(--green-fresh); }
.pill.active { background:var(--green-deep); color:white; border-color:var(--green-deep); }

/* ══ PLANT CARD ═════════════════════════════════════════════════════════════ */
.plant-card { background:white; border-radius:var(--radius); border:1.5px solid rgba(0,0,0,.07); overflow:hidden; text-decoration:none; color:inherit; transition:transform .2s, box-shadow .2s, border-color .2s; display:flex; flex-direction:column; position:relative; }
.plant-card:hover { transform:translateY(-4px); box-shadow:var(--shadow-hover); border-color:var(--green-light); }
.plant-card-img { height:140px; background:#d4e8c8; overflow:hidden; flex-shrink:0; }
.plant-card-img img { width:100%; height:100%; object-fit:cover; transition:transform .4s; }
.plant-card:hover .plant-card-img img { transform:scale(1.06); }
.plant-card-placeholder { width:100%; height:100%; display:flex; align-items:center; justify-content:center; font-size:52px; background:linear-gradient(135deg,#c8dfc4,#a0c898); }
.plant-card-body { padding:13px 14px 15px; flex:1; display:flex; flex-direction:column; gap:5px; }
.plant-card-cat  { font-size:9px; font-weight:700; letter-spacing:1.5px; text-transform:uppercase; color:var(--green-fresh); }
.plant-card-name { font-size:14px; font-weight:700; color:var(--green-deep); line-height:1.2; }
.plant-card-sci  { font-size:11px; color:var(--text-light); font-style:italic; line-height:1.3; }
.plant-card-tags { display:flex; flex-wrap:wrap; gap:4px; margin-top:3px; }
.tag             { font-size:9px; font-weight:700; padding:2px 7px; border-radius:50px; letter-spacing:.3px; }
.tag-pet-ok      { background:#e8f5e2; color:var(--green-fresh); }
.tag-pet-no      { background:#fdecea; color:var(--red); }
.tag-air         { background:#e3f2fd; color:#1565c0; }
.tag-flower      { background:#fce4ec; color:#880e4f; }
.plant-card-footer { margin-top:auto; padding-top:10px; display:flex; align-items:center; justify-content:space-between; }
.diff-bar        { display:flex; gap:3px; }
.diff-dot        { width:7px; height:7px; border-radius:50%; background:rgba(0,0,0,.1); }
.diff-dot.easy   { background:var(--green-fresh); }
.diff-dot.med    { background:var(--yellow); }
.diff-dot.hard   { background:var(--red); }
.diff-label      { font-size:10px; font-weight:700; color:var(--text-light); text-transform:uppercase; letter-spacing:.5px; }
.card-badge      { position:absolute; top:10px; left:10px; z-index:2; font-size:9px; font-weight:800; letter-spacing:1px; text-transform:uppercase; padding:3px 9px; border-radius:50px; }
.badge-3d        { background:white; color:var(--green-deep); box-shadow:0 2px 8px rgba(0,0,0,.12); }
.badge-new       { background:var(--green-light); color:var(--green-deep); }
.card-shop-btn   { width:28px; height:28px; border-radius:50%; background:var(--green-pale); color:var(--green-deep); display:flex; align-items:center; justify-content:center; font-size:13px; text-decoration:none; flex-shrink:0; transition:background .2s; }
.card-shop-btn:hover { background:var(--green-deep); color:white; }

/* ══ HOMEPAGE – HERO ════════════════════════════════════════════════════════ */
.hero { margin-top:var(--nav-h); min-height:calc(100vh - var(--nav-h)); display:grid; grid-template-columns:1fr 1fr; }
.hero-left { background:var(--green-deep); display:flex; flex-direction:column; justify-content:center; padding:80px 70px 80px 80px; position:relative; overflow:hidden; }
.hero-left::before { content:''; position:absolute; top:-120px; right:-80px; width:500px; height:500px; border-radius:50%; background:radial-gradient(circle,rgba(74,140,63,.25) 0%,transparent 70%); pointer-events:none; }
.hero-eyebrow { display:inline-flex; align-items:center; gap:8px; color:var(--green-light); font-size:11px; font-weight:700; letter-spacing:2px; text-transform:uppercase; margin-bottom:28px; }
.hero-eyebrow::before { content:''; width:24px; height:1px; background:var(--green-light); }
.hero-title { font-family:'Playfair Display',serif; font-size:clamp(48px,5.5vw,84px); font-weight:900; color:white; line-height:.9; letter-spacing:-3px; margin-bottom:16px; }
.hero-title em { font-style:italic; color:var(--green-light); display:block; }
.hero-subtitle { font-size:18px; line-height:1.65; color:rgba(255,255,255,.65); max-width:440px; margin-bottom:48px; }
.hero-actions { display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
.btn-primary { display:inline-flex; align-items:center; gap:10px; background:white; color:var(--green-deep); font-size:15px; font-weight:700; padding:16px 28px; border-radius:50px; text-decoration:none; transition:background .2s, transform .2s; }
.btn-primary:hover { background:var(--green-light); transform:translateY(-2px); }
.btn-secondary { display:inline-flex; align-items:center; gap:8px; color:rgba(255,255,255,.7); font-size:14px; font-weight:500; text-decoration:none; border-bottom:1px solid rgba(255,255,255,.25); padding-bottom:2px; transition:color .2s, border-color .2s; }
.btn-secondary:hover { color:white; border-color:white; }
.hero-stats { display:flex; gap:32px; margin-top:48px; padding-top:32px; border-top:1px solid rgba(255,255,255,.1); }
.hero-stat-num { font-family:'Playfair Display',serif; font-size:32px; font-weight:900; color:white; line-height:1; }
.hero-stat-label { font-size:12px; color:rgba(255,255,255,.4); margin-top:4px; letter-spacing:.5px; }
.hero-right { display:grid; grid-template-columns:1fr 1fr; grid-template-rows:1fr 1fr; gap:3px; }
.hero-plant-card { position:relative; overflow:hidden; background:var(--green-mid); cursor:pointer; }
.hero-plant-card img, .hero-plant-card .attachment-plant-card { width:100%; height:100%; object-fit:cover; transition:transform .5s ease; }
.hero-plant-card:hover img { transform:scale(1.07); }
.hero-plant-placeholder { width:100%; height:100%; display:flex; align-items:center; justify-content:center; font-size:80px; }
.hero-plant-card-overlay { position:absolute; inset:0; background:linear-gradient(to top,rgba(26,46,26,.8) 0%,transparent 55%); display:flex; flex-direction:column; justify-content:flex-end; padding:20px 18px; }
.hero-plant-name { font-size:15px; font-weight:700; color:white; line-height:1.2; margin-bottom:4px; }
.hero-plant-diff { font-size:10px; font-weight:700; letter-spacing:1.5px; text-transform:uppercase; padding:3px 10px; border-radius:50px; width:fit-content; }
.diff-easy { background:rgba(123,198,126,.25); color:var(--green-light); }
.diff-med  { background:rgba(245,200,66,.2);   color:var(--yellow); }

/* ══ HOMEPAGE – FINDER ══════════════════════════════════════════════════════ */
.finder-section { padding:80px 0; background:white; }
.finder-filters { display:flex; flex-wrap:wrap; gap:16px; margin-bottom:36px; }
.filter-group   { display:flex; flex-direction:column; gap:8px; }
.filter-label   { font-size:11px; font-weight:700; letter-spacing:1.5px; text-transform:uppercase; color:var(--text-light); }
.filter-pills   { display:flex; flex-wrap:wrap; gap:6px; }
.finder-results { display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:14px; min-height:100px; }
.finder-empty   { grid-column:1/-1; text-align:center; padding:60px 0; color:var(--text-light); }
.finder-empty-icon { font-size:48px; margin-bottom:12px; }
.finder-error   { grid-column:1/-1; text-align:center; color:var(--red); padding:32px 0; }

/* ══ HOMEPAGE – GARDEN DESIGNER ════════════════════════════════════════════ */
.garden-section { padding:80px 0; background:var(--green-deep); position:relative; overflow:hidden; }
.garden-section .section-eyebrow { color:var(--green-light); }
.garden-section .section-title { color:white; }
.garden-section .section-sub { color:rgba(255,255,255,.6); }
.garden-tool { background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.1); border-radius:24px; overflow:hidden; }
.garden-toolbar { display:flex; align-items:center; gap:10px; flex-wrap:wrap; padding:14px 18px; background:rgba(0,0,0,.2); border-bottom:1px solid rgba(255,255,255,.08); }
.garden-toolbar-btn { display:inline-flex; align-items:center; gap:6px; background:rgba(255,255,255,.1); color:rgba(255,255,255,.8); border:1px solid rgba(255,255,255,.15); border-radius:8px; padding:8px 13px; font-size:12px; font-weight:600; cursor:pointer; transition:background .2s; }
.garden-toolbar-btn:hover { background:rgba(255,255,255,.2); color:white; }
.garden-toolbar-btn.active { background:var(--green-fresh); color:white; border-color:var(--green-fresh); }
.garden-toolbar-sep { width:1px; height:28px; background:rgba(255,255,255,.1); flex-shrink:0; }
.garden-toolbar-label { font-size:11px; color:rgba(255,255,255,.3); letter-spacing:1px; text-transform:uppercase; margin-left:auto; }
.garden-workspace { display:grid; grid-template-columns:220px 1fr; min-height:480px; }
.garden-plants-panel { padding:14px; border-right:1px solid rgba(255,255,255,.08); overflow-y:auto; max-height:480px; }
.garden-panel-title { font-size:10px; font-weight:700; letter-spacing:1.5px; text-transform:uppercase; color:rgba(255,255,255,.35); margin-bottom:12px; }
.garden-panel-loading { text-align:center; padding:24px; color:rgba(255,255,255,.3); font-size:20px; }
.garden-plant-item { display:flex; align-items:center; gap:10px; padding:8px 10px; border-radius:10px; cursor:grab; transition:background .15s; margin-bottom:4px; }
.garden-plant-item:hover { background:rgba(255,255,255,.08); }
.garden-plant-item:active { cursor:grabbing; }
.garden-plant-thumb { width:36px; height:36px; border-radius:8px; background:rgba(123,198,126,.15); display:flex; align-items:center; justify-content:center; font-size:18px; flex-shrink:0; overflow:hidden; }
.garden-plant-thumb img { width:100%; height:100%; object-fit:cover; }
.garden-plant-info { flex:1; min-width:0; }
.garden-plant-n { font-size:12px; font-weight:600; color:rgba(255,255,255,.85); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.garden-plant-s { font-size:10px; color:rgba(255,255,255,.35); font-style:italic; }
.garden-canvas-wrap { position:relative; background:#1a1a1a; display:flex; align-items:center; justify-content:center; overflow:hidden; }
#gardenCanvas { display:block; position:relative; z-index:1; max-width:100%; }
#uploadZoneDiv { position:absolute; inset:0; cursor:pointer; display:flex; align-items:center; justify-content:center; z-index:2; }
.upload-hint { text-align:center; color:rgba(255,255,255,.3); pointer-events:none; }
.garden-actions { display:flex; align-items:center; gap:10px; flex-wrap:wrap; padding:14px 18px; background:rgba(0,0,0,.15); border-top:1px solid rgba(255,255,255,.08); }
.garden-action-btn { display:inline-flex; align-items:center; gap:6px; padding:10px 18px; border-radius:50px; font-size:13px; font-weight:600; cursor:pointer; border:none; transition:background .2s, transform .2s; }
.garden-action-btn.primary { background:white; color:var(--green-deep); }
.garden-action-btn.primary:hover { background:var(--green-light); transform:translateY(-1px); }
.garden-action-btn.ghost { background:rgba(255,255,255,.1); color:rgba(255,255,255,.8); border:1px solid rgba(255,255,255,.2); }
.garden-action-btn.ghost:hover { background:rgba(255,255,255,.2); }
.garden-placed-count { font-size:12px; color:rgba(255,255,255,.35); margin-left:auto; }

/* ══ HOMEPAGE – FEATURED + GUIDES ══════════════════════════════════════════ */
.featured-section { padding:80px 0; }
.featured-header { display:flex; align-items:flex-end; justify-content:space-between; margin-bottom:36px; flex-wrap:wrap; gap:16px; }
.featured-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
.view-all { display:inline-flex; align-items:center; gap:6px; font-size:14px; font-weight:600; color:var(--green-fresh); text-decoration:none; transition:gap .2s; }
.view-all::after { content:'→'; }
.view-all:hover { gap:10px; }
.guides-section { padding:80px 0; background:var(--green-deep); }
.guides-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.guide-card { background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.1); border-radius:var(--radius); padding:28px 26px; transition:background .2s, transform .2s; cursor:pointer; text-decoration:none; color:inherit; display:block; }
.guide-card:hover { background:rgba(255,255,255,.1); transform:translateY(-3px); }
.guide-card-icon { font-size:36px; margin-bottom:18px; display:block; }
.guide-card-tag { font-size:10px; font-weight:700; letter-spacing:1.5px; text-transform:uppercase; color:var(--green-light); margin-bottom:10px; }
.guide-card-title { font-family:'Playfair Display',serif; font-size:20px; font-weight:700; color:white; line-height:1.2; margin-bottom:10px; }
.guide-card-desc { font-size:14px; line-height:1.6; color:rgba(255,255,255,.55); }
.guide-card-link { display:inline-flex; align-items:center; gap:6px; margin-top:18px; font-size:13px; font-weight:600; color:var(--green-light); }

/* ══ CTA BONPLANTS ══════════════════════════════════════════════════════════ */
.cta-bonplants { padding:80px 0; background:linear-gradient(135deg,#f0faf0 0%,var(--cream) 100%); }
.cta-bonplants-inner { background:var(--green-deep); border-radius:28px; padding:72px 80px; display:grid; grid-template-columns:1fr auto; align-items:center; gap:48px; position:relative; overflow:hidden; }
.cta-bonplants-inner::before { content:''; position:absolute; right:-80px; top:-80px; width:400px; height:400px; border-radius:50%; background:radial-gradient(circle,rgba(74,140,63,.35) 0%,transparent 70%); pointer-events:none; }
.cta-eyebrow { font-size:11px; font-weight:700; letter-spacing:2px; text-transform:uppercase; color:var(--green-light); margin-bottom:14px; }
.cta-title { font-family:'Playfair Display',serif; font-size:clamp(28px,3vw,44px); font-weight:700; color:white; line-height:1.1; margin-bottom:16px; letter-spacing:-.5px; }
.cta-desc { font-size:16px; color:rgba(255,255,255,.6); line-height:1.65; max-width:480px; }
.cta-right { display:flex; flex-direction:column; align-items:flex-end; gap:14px; flex-shrink:0; }
.cta-big-btn { display:inline-flex; align-items:center; gap:10px; background:white; color:var(--green-deep); font-size:16px; font-weight:700; padding:20px 36px; border-radius:50px; text-decoration:none; white-space:nowrap; transition:background .2s, transform .2s; }
.cta-big-btn::after { content:'→'; font-size:18px; }
.cta-big-btn:hover { background:var(--green-light); transform:scale(1.03); }
.cta-note { font-size:12px; color:rgba(255,255,255,.3); }
.cta-strip { background:var(--green-deep); padding:56px 0; }
.cta-strip-inner { display:flex; align-items:center; justify-content:space-between; gap:32px; flex-wrap:wrap; }
.cta-strip-text .eyebrow { font-size:11px; font-weight:700; letter-spacing:2px; text-transform:uppercase; color:var(--green-light); margin-bottom:10px; }
.cta-strip-text h2 { font-family:'Playfair Display',serif; font-size:clamp(22px,2.5vw,32px); font-weight:700; color:white; line-height:1.15; }
.cta-strip-text p { font-size:15px; color:rgba(255,255,255,.55); margin-top:8px; max-width:480px; }

/* ══ CATALOGO – PAGE HEADER ═════════════════════════════════════════════════ */
.page-header { margin-top:var(--nav-h); background:var(--green-deep); padding:64px 0 52px; position:relative; overflow:hidden; }
.page-header-inner { display:flex; align-items:flex-end; justify-content:space-between; flex-wrap:wrap; gap:24px; }
.page-header-text .eyebrow { font-size:11px; font-weight:700; letter-spacing:2px; text-transform:uppercase; color:var(--green-light); margin-bottom:10px; }
.page-header-text h1 { font-family:'Playfair Display',serif; font-size:clamp(36px,4.5vw,64px); font-weight:900; color:white; line-height:.95; letter-spacing:-2px; }
.page-header-text h1 em { font-style:italic; color:var(--green-light); }
.page-header-text p { font-size:16px; color:rgba(255,255,255,.55); margin-top:14px; max-width:500px; line-height:1.6; }
.page-header-stats { display:flex; gap:20px; flex-shrink:0; }
.stat-box { text-align:center; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.1); border-radius:12px; padding:16px 24px; }
.stat-box-num { font-family:'Playfair Display',serif; font-size:28px; font-weight:900; color:white; }
.stat-box-label { font-size:11px; color:rgba(255,255,255,.35); text-transform:uppercase; letter-spacing:1px; margin-top:4px; }

/* ══ CATALOGO – FILTERS BAR ═════════════════════════════════════════════════ */
.filters-bar { position:sticky; top:var(--nav-h); z-index:100; background:rgba(250,248,243,.97); backdrop-filter:blur(12px); border-bottom:1px solid rgba(0,0,0,.07); padding:14px 0; }
.filters-inner { display:flex; align-items:center; gap:14px; flex-wrap:wrap; }
.search-wrap { position:relative; flex-shrink:0; }
.search-wrap input { width:220px; padding:9px 14px 9px 36px; border-radius:50px; border:1.5px solid rgba(0,0,0,.1); background:white; font-family:'DM Sans',sans-serif; font-size:14px; color:var(--text-dark); outline:none; transition:border-color .2s, width .3s; }
.search-wrap input:focus { border-color:var(--green-fresh); width:260px; }
.search-wrap input::placeholder { color:var(--text-light); }
.search-icon { position:absolute; left:12px; top:50%; transform:translateY(-50%); font-size:13px; pointer-events:none; }
.filter-sep { width:1px; height:28px; background:rgba(0,0,0,.1); flex-shrink:0; }
.filter-scroll { display:flex; gap:6px; overflow-x:auto; padding-bottom:2px; scrollbar-width:none; }
.filter-scroll::-webkit-scrollbar { display:none; }
.sort-wrap { display:flex; align-items:center; gap:10px; flex-shrink:0; margin-left:auto; }
.sort-select { padding:7px 12px; border-radius:50px; border:1.5px solid rgba(0,0,0,.1); font-family:'DM Sans',sans-serif; font-size:13px; background:white; color:var(--text-mid); outline:none; cursor:pointer; }
.results-count { font-size:13px; color:var(--text-light); white-space:nowrap; }

/* ══ CATALOGO – BODY ════════════════════════════════════════════════════════ */
.catalog-body { display:grid; grid-template-columns:220px 1fr; min-height:80vh; }
.sidebar { padding:28px 22px; border-right:1px solid rgba(0,0,0,.07); position:sticky; top:calc(var(--nav-h) + 58px); height:fit-content; align-self:start; }
.sidebar-title { font-size:10px; font-weight:700; letter-spacing:2px; text-transform:uppercase; color:var(--text-light); margin-bottom:12px; }
.cat-list { list-style:none; display:flex; flex-direction:column; gap:2px; }
.cat-item { display:flex; align-items:center; justify-content:space-between; width:100%; padding:9px 12px; border-radius:10px; cursor:pointer; font-size:13px; font-weight:500; color:var(--text-mid); transition:background .15s, color .15s; background:none; border:none; text-align:left; }
.cat-item:hover { background:var(--green-pale); color:var(--green-deep); }
.cat-item.active { background:var(--green-deep); color:white; }
.cat-count { font-size:11px; opacity:.5; font-weight:400; }
.cat-item.active .cat-count { opacity:.6; }
.sidebar-divider { height:1px; background:rgba(0,0,0,.07); margin:14px 0; }
.sidebar-feat-title { font-size:10px; font-weight:700; letter-spacing:2px; text-transform:uppercase; color:var(--text-light); margin-bottom:8px; }
.feat-toggle { display:flex; align-items:center; justify-content:space-between; width:100%; padding:8px 12px; border-radius:10px; cursor:pointer; font-size:13px; font-weight:500; color:var(--text-mid); transition:background .15s; background:none; border:none; text-align:left; }
.feat-toggle:hover { background:var(--green-pale); }
.feat-toggle.active { color:var(--green-deep); }
.toggle-check { width:18px; height:18px; border-radius:5px; border:2px solid rgba(0,0,0,.15); display:flex; align-items:center; justify-content:center; font-size:10px; transition:background .2s, border-color .2s; flex-shrink:0; }
.feat-toggle.active .toggle-check { background:var(--green-fresh); border-color:var(--green-fresh); }
.feat-toggle.active .toggle-check::before { content:'✓'; color:white; font-size:11px; font-weight:700; }
.sidebar-shop-btn { display:flex; align-items:center; gap:8px; padding:10px 12px; background:var(--green-pale); border-radius:12px; text-decoration:none; color:var(--green-deep); font-size:13px; font-weight:600; transition:background .2s; }
.sidebar-shop-btn:hover { background:#d0eccc; }
.catalog-grid-wrap { padding:28px 28px 48px; }
.catalog-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:20px; }
.catalog-section-title { font-family:'Playfair Display',serif; font-size:22px; font-weight:700; color:var(--green-deep); }
.layout-toggle { display:flex; gap:4px; }
.layout-btn { width:32px; height:32px; border-radius:8px; border:1.5px solid rgba(0,0,0,.1); background:white; cursor:pointer; display:flex; align-items:center; justify-content:center; font-size:14px; transition:background .15s, border-color .15s; }
.layout-btn.active { background:var(--green-deep); border-color:var(--green-deep); color:white; }
.catalog-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(185px,1fr)); gap:14px; }
.catalog-grid.layout-list { grid-template-columns:1fr; gap:8px; }
.catalog-grid.layout-list .plant-card { flex-direction:row; height:88px; }
.catalog-grid.layout-list .plant-card-img { width:100px; height:88px; border-radius:0; flex-shrink:0; }
.catalog-grid.layout-list .plant-card-body { flex-direction:row; align-items:center; gap:16px; padding:12px 16px; }
.catalog-grid.layout-list .plant-card-cat,
.catalog-grid.layout-list .plant-card-sci { display:none; }
.catalog-grid.layout-list .plant-card-footer { padding-top:0; margin-top:0; }
.catalog-pagination { display:flex; gap:8px; justify-content:center; margin-top:40px; flex-wrap:wrap; }
.catalog-pagination a, .catalog-pagination span { padding:8px 14px; border-radius:8px; font-size:14px; font-weight:500; text-decoration:none; border:1.5px solid rgba(0,0,0,.1); background:white; color:var(--text-mid); transition:background .15s; }
.catalog-pagination a:hover { background:var(--green-pale); border-color:var(--green-fresh); }
.catalog-pagination .current { background:var(--green-deep); color:white; border-color:var(--green-deep); }
.empty-state { grid-column:1/-1; text-align:center; padding:80px 20px; color:var(--text-light); }
.empty-state-icon { font-size:56px; margin-bottom:16px; }
.empty-state h3 { font-family:'Playfair Display',serif; font-size:24px; color:var(--text-mid); margin-bottom:8px; }
.empty-state p { font-size:15px; line-height:1.6; }
.empty-state-btn { display:inline-flex; align-items:center; gap:8px; margin-top:20px; padding:12px 24px; border-radius:50px; background:var(--green-deep); color:white; font-size:14px; font-weight:600; cursor:pointer; border:none; font-family:'DM Sans',sans-serif; transition:background .2s; }
.empty-state-btn:hover { background:var(--green-fresh); }

/* ══ RESPONSIVE ══════════════════════════════════════════════════════════════ */
@media(max-width:1100px){
  .featured-grid { grid-template-columns:repeat(3,1fr); }
  .guides-grid   { grid-template-columns:repeat(2,1fr); }
  .catalog-body  { grid-template-columns:180px 1fr; }
}
@media(max-width:900px){
  #mainNav { padding:16px 24px; }
  .nav-links { display:none; }
  .nav-hamburger { display:flex; }
  .mobile-menu { display:flex; }
  .container { padding:0 24px; }
  .hero { grid-template-columns:1fr; min-height:auto; }
  .hero-right { height:280px; }
  .hero-left { padding:56px 28px 48px; }
  .hero-stats { gap:20px; }
  .featured-grid { grid-template-columns:repeat(2,1fr); }
  .guides-grid   { grid-template-columns:1fr; }
  .cta-bonplants-inner { grid-template-columns:1fr; padding:48px 36px; gap:28px; }
  .cta-right { align-items:flex-start; }
  .garden-workspace { grid-template-columns:1fr; grid-template-rows:auto 1fr; }
  .garden-plants-panel { max-height:140px; overflow-x:auto; overflow-y:hidden; display:flex; flex-direction:row; flex-wrap:nowrap; gap:6px; border-right:none; border-bottom:1px solid rgba(255,255,255,.08); }
  .garden-panel-title { display:none; }
  .catalog-body { grid-template-columns:1fr; }
  .sidebar { display:none; }
  .page-header-stats { display:none; }
  .filters-inner { gap:8px; }
  .sort-wrap { display:none; }
}
@media(max-width:600px){
  .catalog-grid { grid-template-columns:repeat(2,1fr); gap:10px; }
  .plant-card-img { height:120px; }
  .featured-grid { grid-template-columns:1fr 1fr; gap:10px; }
  .cta-bonplants-inner { padding:36px 20px; }
  .footer-inner { flex-direction:column; gap:14px; text-align:center; }
  .hero-title { font-size:48px; }
}

/* ══ PRINT ═══════════════════════════════════════════════════════════════════ */
@media print {
  #mainNav, .mobile-menu, .garden-section, .cta-bonplants, .cta-strip, footer { display:none!important; }
  body { background:white; }
  .plant-card { break-inside:avoid; }
}
