/*
Theme Name: L'Home Barbut
Theme URI: https://homebarbut.com
Description: Tema fill per personalitzar Shehran
Author: Jordi Casanova
Template: shehran
Version: 1.0
*/

/* Importa estils del tema pare */
@import url("../shehran/style.css");

/* Personalitzacions pròpies a partir d'ací */

<style>
/* =========================
   HOME BARBUT - MENU WEB (1 col + nav sticky)
   prefix hb-
   ========================= */

.hb-menu{
  --hb-accent: #2f6b2f;         /* verd */
  --hb-accent-2: #72264B;       /* granat */
  --hb-bg: #fbfbfb;
  --hb-card: #ffffff;
  --hb-text: #141414;
  --hb-muted: rgba(20,20,20,.70);
  --hb-line: rgba(0,0,0,.10);
  --hb-shadow: 0 10px 28px rgba(0,0,0,.06);
  --hb-radius: 16px;
  --hb-max: 900px;
}

/* Contenidor central */
.hb-menu__wrap{
  max-width: var(--hb-max);
  margin: 0 auto;
}

/* Fons suau global */
.hb-menu__bg{
  background: radial-gradient(1200px 500px at 20% -10%, rgba(47,107,47,.10), transparent 60%),
              radial-gradient(900px 450px at 80% 0%, rgba(114,38,75,.10), transparent 55%),
              var(--hb-bg);
  border-radius: 22px;
  padding: 16px;
  border: 1px solid rgba(0,0,0,.06);
}

/* NAV sticky (sempre visible) */
.hb-menu__nav{
  position: sticky;
  top: 10px;             /* ajusta si el teu header és molt alt */
  z-index: 999;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(10px);
  border: 1px solid var(--hb-line);
  border-radius: 999px;
  padding: 10px;
  box-shadow: var(--hb-shadow);
  margin: 8px 0 16px;
}

/* fila de botons amb scroll horitzontal en mòbil */
.hb-menu__nav-inner{
  display: flex;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.hb-menu__nav-inner::-webkit-scrollbar{ display:none; }

.hb-menu__nav a{
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
  font-size: 14px;
  color: var(--hb-text);
  border: 1px solid var(--hb-line);
  background: #fff;
  transition: transform .08s ease, border-color .15s ease;
}

.hb-menu__nav a:hover{
  transform: translateY(-1px);
  border-color: rgba(47,107,47,.35);
}

.hb-menu__dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--hb-accent);
}
.hb-menu__dot--2{ background: var(--hb-accent-2); }

/* scroll suau + marge en anar a secció */
.hb-menu{ scroll-behavior: smooth; }
.hb-menu__section{ scroll-margin-top: 98px; }

/* Secció “card” */
.hb-menu__section{
  background: var(--hb-card);
  border: 1px solid var(--hb-line);
  border-radius: var(--hb-radius);
  box-shadow: var(--hb-shadow);
  padding: 18px 18px 10px;
  margin-bottom: 18px;
}

/* Capçalera secció */
.hb-menu__section-head{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--hb-line);
  padding-bottom: 10px;
}

.hb-menu__section-title{
  margin: 0;
  font-size: 20px;
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--hb-text);
}

.hb-menu__badge{
  font-size: 12px;
  font-weight: 900;
  color: #fff;
  padding: 6px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--hb-accent), var(--hb-accent-2));
  white-space: nowrap;
}

/* Item */
.hb-menu__item{
  padding: 12px 0;
  border-bottom: 1px dashed rgba(0,0,0,.12);
}
.hb-menu__item:last-child{ border-bottom: 0; }

/* fila nom + preu */
.hb-menu__row{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.hb-menu__name{
  margin: 0;
  font-size: 16.5px;
  line-height: 1.18;
  color: var(--hb-text);
  font-weight: 950;
}

.hb-menu__price{
  font-weight: 950;
  white-space: nowrap;
  font-size: 14px;
  color: var(--hb-text);
  background: #f3f4f6;
  border: 1px solid rgba(0,0,0,.10);
  padding: 6px 10px;
  border-radius: 999px;
}

/* p/p */
.hb-menu__pp{
  font-weight: 900;
  font-size: 12px;
  color: rgba(20,20,20,.65);
  margin-left: 6px;
}

/* descripció */
.hb-menu__desc{
  margin-top: 6px;
  color: var(--hb-muted);
  font-size: 13.5px;
  line-height: 1.38;
}

/* al·lèrgens com xips */
.hb-menu__chips{
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hb-chip{
  font-size: 12px;
  font-weight: 900;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(47,107,47,.18);
  background: rgba(47,107,47,.08);
  color: var(--hb-accent);
}
.hb-chip--warn{
  border-color: rgba(114,38,75,.22);
  background: rgba(114,38,75,.08);
  color: var(--hb-accent-2);
}

/* Responsive */
@media (max-width: 767px){
  .hb-menu__bg{ padding: 12px; }
  .hb-menu__section{ padding: 16px 16px 8px; }
  .hb-menu__section-title{ font-size: 18px; }
  .hb-menu__nav{ top: 8px; }
  .hb-menu__nav a{ padding: 9px 12px; font-size: 13px; }
  .hb-menu__price{ font-size: 13px; }
}
</style>