*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --yellow:      #FFC74A;
  --yellow-hov:  #facf5a;
  --yellow-star: #FF9529;

  --green:       #42ae89;
  --blue:        #0EA5E9;
  --blue-hov:    #0369A1;

  --peach:       #FEDEB7;

  --ink:         #2c436c;
  --ink-2:       #2D3032;
  --ink-3:       #555759;
  --ink-4:       #7D7F80;

  --bg:          #f2f6fe;
  --white:       #ffffff;
  --black:       #1C1C1C;

  --border:      #eae8e0;
  --border-2:    #d8d6ce;

  --radius:      14px;
  --radius-sm:   8px;
  --radius-xs:   6px;
}
html { font-size: 20px; scroll-behavior: smooth; }
body {
  font-family: 'Lato', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  min-height: 100vh;
}
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }


/* ── Nav ── */
nav.main-nav {
  position: sticky; top: 0; z-index: 999;
}

.nav-pill { background: #ffffff; padding: .5rem .625rem .5rem 1.25rem; display: flex; align-items: center; 
            justify-content: space-between; gap: 1rem; box-shadow: 0 2px 12px rgba(0,0,0,.06); }
@media (max-width: 600px) {
  nav .container { padding: 0; }
  .container { padding: 0 .50rem; }
}
.nav-brand { display: flex; align-items: center; gap: .5rem; }
.icona { width: 50px; height: 50px; }
.nav-logo { font-size: 1.5rem; font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: 0.06em; }
.nav-logo .bebe { color: var(--green); }
.nav-logo .dominio { color: var(--ink-4); font-size: 1.1rem; font-weight: 500; }
.nav-links { display: flex; gap: .25rem; }
.nav-links a { font-size: 1rem; color: var(--ink); text-decoration: none; padding: .35rem .875rem; border-radius: 20px;
               transition: all .15s; }
.nav-links a:hover { background: var(--bg); color: var(--ink); }
.nav-links a.active { background: var(--ink); color: var(--white); }
.nav-badge { font-size: .75rem; font-weight: 500; background: var(--green); color: var(--white); padding: .4rem 1rem; 
             border-radius: 20px; text-decoration: none; white-space: nowrap; transition: background .15s; }
.nav-badge:hover { background: var(--green); }

@media (max-width: 600px) { .nav-badge { display: none; } }
@media (max-width: 600px) {
  .nav-links { display: none; position: absolute; top: 70px; left: 1rem; right: 1rem; background: rgba(255,255,255,.97);
               backdrop-filter: blur(12px); border: 1px solid var(--border); border-radius: var(--radius); padding: .75rem;
               flex-direction: column; gap: .25rem; box-shadow: 0 8px 24px rgba(0,0,0,.1); z-index: 99; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .625rem 1rem; border-radius: var(--radius-sm); width: 100%; }
}

/* ── Hero ── */
.hero { padding: 2.5rem 0 2rem; }
.hero-top { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 2rem; 
            margin-bottom: 2rem; padding: 0 6rem; }
.hero-eyebrow { font-size: .72rem; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; 
                color: var(--ink-3); margin-bottom: .625rem; }
.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700; letter-spacing: -.04em; line-height: 1.15;
  color: var(--ink); margin-bottom: .75rem;
}
.hero-desc { font-size: .9rem; color: var(--ink-2); max-width: 400px; line-height: 1.6; font-weight: 300; }

.hero-icon { width: 300px; margin-bottom: .75rem; display: block; }

@media (max-width: 680px) {
  .hero-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0;
  }
  .hero-stats { justify-content: center; }
  .hero-icon { order: -1; width: 200px; }

}

/* Stats pills */
.hero-stats { display: flex; gap: .625rem; flex-wrap: wrap; justify-content: center; padding-bottom: 1.5rem;}
.stat-pill { background: rgba(255,255,255,.8); border: 1px solid var(--border); border-radius: 50px; padding: .5rem 1.125rem;
             display: flex; align-items: center; gap: .625rem; backdrop-filter: blur(8px); }
.stat-pill-val { font-size: 1rem; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.stat-pill-lbl { font-size: .72rem; color: var(--ink-3); }
.stat-pill.accent { background: var(--green); }
.stat-pill.accent .stat-pill-val { color: var(--white); }
.stat-pill.accent .stat-pill-lbl { color: var(--white); }

@media (max-width: 680px) { .hero-top { flex-direction: column; } }

/* ── Filters bar ── */
.filters-bar { background: rgba(255,255,255,.8); backdrop-filter: blur(8px); border: 1px solid var(--border);
               border-radius: 50px; padding: .5rem .75rem; display: flex; align-items: center; gap: .5rem; 
               flex-wrap: wrap; margin-bottom: 1rem; }
.filter-sep { width: 1px; height: 20px; background: var(--border-2); margin: 0 .25rem; }
.size-tabs { display: flex; gap: 3px; }
.size-tab { font-family: 'Lato', sans-serif; font-size: .78rem; font-weight: 500; padding: .35rem .875rem; border-radius: 20px;
            border: none; background: transparent; color: var(--ink-2); cursor: pointer; transition: all .15s; }
.size-tab:hover { background: var(--bg); color: var(--ink); }
.size-tab.active { background: var(--ink); color: var(--white); }
.search-input { font-family: 'Lato', sans-serif; font-size: .82rem; border: none; background: transparent; 
                color: var(--ink); outline: none; width: 160px; padding: .35rem .5rem; }
.search-input::placeholder { color: var(--ink-4); }
.search-wrap { display: flex; align-items: center; gap: .375rem; margin-left: auto; }
.search-icon { color: var(--ink-3); font-size: .9rem; }
@media (max-width: 600px) { .search-wrap { margin-left: 0; width: 100%; } .search-input { width: 100%; } .filter-sep { display: none; } }
@media (max-width: 600px) {
  .filters-bar { border-radius: 14px; }
  .size-tab { padding: .35rem .6rem; font-size: .75rem; }
  .filters-bar { padding: .5rem .75rem; gap: .35rem; }
  .filter-sep { display: none; }
}
/* ── Card taula ── */
.table-card {
  background-color: var(--white);
  margin: 2rem 0rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 8px 32px rgba(0,0,0,.06);
  animation: fadeUp .35s ease both;
}
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 700px; text-align: center; }

/* Cap */
thead th {
  text-align: center; padding: .75rem 1rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink); cursor: pointer; user-select: none; white-space: nowrap;
  transition: color .15s;
}
thead th:hover { color: var(--green); }
thead th.sorted { color: var(--ink); }
.sort-icon { font-size: .55rem; margin-left: 3px; opacity: .4; }
thead th.sorted .sort-icon { opacity: 1; }

/* Files */
tbody tr { border-bottom: 1px solid var(--border); transition: background .1s; }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: rgba(245,230,66,.12); }
tbody tr.row-best { background: rgba(245,230,66,.22); }
tbody tr.row-best:hover { background: rgba(245,230,66,.32); }
td { padding: .4rem .4rem; vertical-align: middle; }

/* Col rank */
.col-rank { font-size: .78rem; color: var(--ink-4); width: 36px; font-weight: 400; font-family: 'Lato', sans-serif; }
.col-rank.top { color: var(--green); font-weight: 500; }
/* Amaga primera columna 
@media (max-width: 600px) {
  .col-rank { display: none; }
  thead th:first-child { display: none; }
}*/



/* Imatge */
.prod-img { width: auto; height: 90px; max-width: 72px; object-fit: contain; /*border-radius: var(--radius-xs); background: #fff; border: 1px solid var(--border);*/ }
.prod-img-wrap { width: 56px; }

/* Nom */
.prod-name { font-size: .9rem; font-weight: 500; letter-spacing: -.01em; line-height: 1.3; }
.prod-sub { font-size: .75rem; color: var(--ink-3); margin-top: 2px; font-weight: 300; }

.pills { display: flex; justify-content: center; gap: 4px; margin-top: 4px; }
.pill { font-size: .68rem; font-weight: 500; padding: 4px 10px; border-radius: 20px; }
.pill-best { background: var(--yellow); color: var(--ink-2); }


/* Preu unitat — hero visual */
.price-unit-val { font-size: 1.05rem; font-weight: 700; letter-spacing: -.03em; color: var(--ink); font-family: 'Lato', sans-serif; }
.price-unit-sub { font-size: .68rem; color: var(--ink-3); margin-top: 1px; font-weight: 300; }

/* Precio pack */
.price-pack-val { font-size: .88rem; font-weight: 500; color: var(--ink-2); }
.price-pack-sub { font-size: .7rem; color: var(--ink-3); font-weight: 300; }

/* Stars */
.stars { color: var(--yellow-star); font-size: .78rem; letter-spacing: .05em; }
.review-count { font-size: .68rem; color: var(--ink-3); margin-top: 1px; font-weight: 300; }

/* CTA */
.btn-amazon { display: inline-flex; align-items: center; gap: 4px; font-family: 'Lato', sans-serif; font-size: .75rem; 
              font-weight: 500; padding: .4rem 1rem; border-radius: 20px; border: 1px solid var(--border-2);
              background: var(--yellow); color: var(--ink); text-decoration: none; white-space: nowrap; transition: all .15s; }
.btn-amazon:hover { background: var(--yellow-hov); color: var(--ink); }
.btn-na { font-size: .72rem; color: var(--ink-4); }

/* Buit */
.empty { text-align: center; padding: 3rem 1rem; color: var(--ink-3); font-size: .875rem; }

/* Disclaimer */
.disclaimer { background: var(--peach); border-radius: var(--radius-sm); padding: 1.25rem 1.25rem; font-size: 0.95rem;
              color: var(--ink-2); margin: 2rem 0rem; line-height: 1.7; letter-spacing: .05em; }
.disclaimer strong { color: var(--ink); font-weight: 700; }
.disclaimer a { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.disclaimer a:hover { color: var(--blue-hov); text-decoration: underline; }


/* Blocs de text */
.intro-text { font-size: 1.1rem; color: var(--ink); padding: 2rem 0rem; line-height: 1.7; }
.faq { padding: 5rem 0rem; }
.faq h2 { font-size: 1.6rem; font-weight: 700; color: var(--ink); margin: 3rem 0 .875rem; line-height: 1.3; }
.faq h3 { font-size: 1.3rem; font-weight: 700; color: var(--ink); margin: 2rem 0 .5rem; }
.faq p { font-size: 1.1rem; color: var(--ink); line-height: 1.3; margin-bottom: 1.1rem; }


/* Footer */
footer { padding: 2rem 0 1.5rem; margin-top: .5rem; border-top: 1px solid var(--border); background-color: var(--ink-2);}
.footer-inner { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 1rem; text-align: center;}
.footer-copy { font-size: .85rem; color: var(--ink-4); font-weight: 500; }
.footer-links { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; justify-content: center; text-align: center;}
.footer-links a { font-size: .85rem; color: var(--ink-4); text-decoration: none; transition: color .15s; font-weight: 500; }
.footer-links a:hover { color: var(--white); }



/* Animació */
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.btn-na { font-size: .72rem; color: var(--ink-4); }
.store-logo { font-size: .65rem; font-weight: 700; letter-spacing: .02em; }

/* Menú hamburguesa */
.nav-hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: all .2s; }
@media (max-width: 600px) { 
  .nav-hamburger { display: flex; }
  .nav-badge { display: none; }
}











/* Estils pàgines articles */

/*  Imatges  */
.article-img { width: 100%; height: 400px; object-fit: cover; border-radius: var(--radius); margin-top: 2rem; margin-bottom: .75rem; display: block; }
@media (max-width: 600px) { .article-img { height: 220px; } }

/*  Peu imatge  */
.img-caption { font-size: .72rem; color: var(--ink-3); text-align: right; margin-top: .375rem; margin-bottom: 1.75rem; }
.img-caption a { color: var(--ink-3); text-decoration: none; }
.img-caption a:hover { color: var(--ink-2); }

/*  Breadcrumb  */
.breadcrumb { display: flex; align-items: center; gap: .5rem; font-size: .78rem; color: var(--ink-3); margin-bottom: 1.5rem; flex-wrap: wrap; padding-top: 2rem; }
.breadcrumb a { color: var(--ink-3); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink-2); }
.breadcrumb span { color: var(--ink-4); }

/*  Article header  */
.article-tag { display: inline-block; font-size: .72rem; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .75rem; }
.article-header h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 700; letter-spacing: -.04em; line-height: 1.2; color: var(--ink); margin-bottom: .875rem; }
.article-meta { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; padding-bottom: 1.25rem; border-bottom: 1px solid var(--border); margin-bottom: 1.75rem; }
.meta-item { font-size: .78rem; color: var(--ink-3); }
.meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--border-2); }

/*  Cos de l'article  */
.article-body { font-size: 1rem; line-height: 1.8; color: var(--ink-2); }
.article-body h2 { font-size: 1.6rem; font-weight: 700; color: var(--ink); margin: 3rem 0 .875rem; line-height: 1.3; }
.article-body h3 { font-size: 1.3rem; font-weight: 700; color: var(--ink); margin: 2rem 0 .5rem; }
.article-body p {font-size: 1.1rem; color: var(--ink); line-height: 1.3; margin-bottom: 1.1rem; }
.article-body ul, .article-body ol { margin: .75rem 0 1.1rem 1.5rem; }
.article-body li { margin-bottom: .4rem; }
.article-body strong { font-weight: 500; color: var(--ink); }
.article-body a { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.article-body a:hover { color: var(--blue-hov); text-decoration: underline; }





/*  Caixa destacada  */
.intro-box { background-color: var(--peach); border-radius: var(--radius-sm); padding: 1.25rem 1.25rem;
             margin: 2rem 0rem; font-size: .95rem; color: var(--ink-2); line-height: 1.7; letter-spacing: .05em; }
.intro-box strong { color: var(--ink); font-weight: 700;}

/*  Taula de continguts  */
.toc { background-color: var(--white); border-radius: var(--radius-sm);
       padding: 1rem 1.25rem; margin-bottom: 2rem; box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 8px 32px rgba(0,0,0,.06);
       animation: fadeUp .35s ease both; }
.toc-title { font-size: 1.1rem; font-weight: 700; letter-spacing: .07em; color: var(--ink); margin-bottom: .75rem; }
.toc ol { margin: 0; padding-left: 1.25rem; color: var(--ink);}
.toc li { margin-bottom: .35rem; }
.toc a { font-size: .875rem; color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--ink); }


/*  Veredicte 
.verdict-box { background: rgba(255,255,255,.7);
  border: 1px solid var(--border);
  border-left: 3px solid var(--ink);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.25rem; margin: 2rem 0;
}
.verdict-label { font-size: .68rem; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .5rem; }
.verdict-box p { margin: 0; font-size: .95rem; color: var(--ink-2); }
 */

/*  CTA comparador  */
.cta-comparador { display: block; text-align: center; background: var(--yellow); border-radius: var(--radius);
                  padding: 1.5rem; text-decoration: none; margin: 2.5rem 0; transition: background .3s; }
.article-body .cta-comparador:hover { background: var(--yellow-hov); text-decoration: none; }
.article-body .cta-comparador strong { display: block; font-size: 1.4rem; font-weight: 700; color: var(--ink); margin-bottom: 4px;
                         text-decoration: none; }
.article-body .cta-comparador span { font-size: 1rem; color: var(--ink-2); }
.article-body .cta-comparador { text-decoration: none; }
.article-body .cta-comparador strong { text-decoration: none; }










/* ── Banner cookies ── */
.cookie-banner { position: fixed; bottom: 1.5rem; left: 1.5rem; right: 1.5rem; background: var(--black);
                 color: var(--white); border-radius: var(--radius); padding: 1.25rem 1.5rem; display: flex;
                 align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; z-index: 9999;
                 box-shadow: 0 8px 32px rgba(0,0,0,.2); animation: fadeUp 1s ease both; }
.cookie-icon { height: 60px; flex-shrink: 0; }
@media (max-width: 600px) { .cookie-icon { display: block; margin: 0 auto; } }
.cookie-text { font-size: .92rem; color: var(--white); line-height: 1.6; flex: 1; min-width: 200px; }
.cookie-text a { color: var(--blue); text-decoration: none; text-underline-offset: 4px; }
.cookie-text a:hover { text-decoration: underline; }
.cookie-actions { display: flex; gap: .625rem; flex-shrink: 0; }
.cookie-accept { font-family: inherit; font-size: .8rem; font-weight: 700; padding: .5rem 1.25rem; border-radius: 20px;
                 border: none; background: var(--yellow); color: var(--black); cursor: pointer;
                 transition: background .15s; }
.cookie-accept:hover { background: var(--yellow-hov); }
.cookie-reject { font-family: inherit; font-size: .8rem; font-weight: 500; padding: .5rem 1.25rem; border-radius: 20px;
                 border: 1px solid var(--ink-4); background: transparent; color: var(--ink-4); cursor: pointer;
                 transition: all .15s; }
.cookie-reject:hover { border-color: var(--white); color: var(--white); }
@media (max-width: 600px) { .cookie-banner { bottom: 0; left: 0; right: 0; 
                                             border-radius: var(--radius) var(--radius) 0 0; flex-direction: column;
                                             align-items: flex-start; }
                            .cookie-actions { width: 100%; }
                            .cookie-accept, .cookie-reject { flex: 1; text-align: center; } }