/* =========================
   SushiToGo — styles.css
   ========================= */

/* ====== Theme Variables ====== */
:root{
  --accent:#ff6a00;
  --accent-600:#e55f00;
  --ink:#111418;
  --muted:#6b7280;
  --bg:#fafafa;
  --card:#ffffff;
  --line:rgba(0,0,0,.06);

  /* Header sizes */
  --topbar-h:36px;          /* << NEW: inaltime bara neagra top */
  --nav-mobile-h:56px;
  --nav-h:64px; /* offset pe desktop */

  /* Setat din JS pentru offcanvas mobil (defaultul include si topbar) */
  --nav-top: calc(var(--topbar-h) + var(--nav-mobile-h));
}

/* ====== Base ====== */
*{box-sizing:border-box}
html,body{height:100%;scroll-behavior:smooth}
body{
  font-family:Manrope,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;
  color:var(--ink);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.6;
  overflow-x:hidden;
}
a{color:inherit;text-decoration:none;transition:color .2s ease}
a:hover{color:var(--accent)}
img{max-width:100%;display:block;border-radius:12px}

/* ====== TOP PROMO BAR (bara neagra) ====== */
.topbar{
  position:fixed; top:0; left:0; right:0;
  height:var(--topbar-h);
  background:#0f0f0f; color:#fff;
  display:flex; align-items:center; justify-content:center;
  font-weight:800; text-transform:uppercase; letter-spacing:.02em;
  font-size:.85rem; padding:0 .75rem;
  z-index:1081; /* peste navbar-ul Bootstrap */
  box-shadow:0 1px 0 rgba(255,255,255,.08) inset;
  text-align:center; white-space:normal;
}

/* ====== Navbar ====== */
.navbar{
  background:var(--card);
  border-bottom:1px solid var(--line);
  padding-top:0; padding-bottom:0;
}
.navbar.fixed-top{ top:var(--topbar-h); z-index:1030 !important; }
.navbar.fixed-top.is-pinned{ box-shadow:0 2px 12px rgba(0,0,0,.06); }

.navbar .nav-link{font-weight:600;color:#2a2a2a;transition:color .2s ease}
.navbar .nav-link:hover{color:var(--accent)}
.logo-dot{width:28px;height:28px;background:var(--accent);display:inline-block;border-radius:50%}
.brand-text{font-weight:800;font-size:1.4rem;letter-spacing:.3px}
.icon-circle{width:28px;height:28px;border-radius:50%;background:#111;color:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:14px}
.navbar-info .contact-item{color:#1f2937;font-weight:700}
.navbar-info .contact-text{font-weight:700}

/* Buton desktop: Verifica comanda */
.btn-ordercheck{
  border:1px solid #e5e7eb;
  background:#fff;
  color:#1f2937;
  font-weight:800;
  padding:.45rem .9rem;
  transition:all .2s ease;
}
.btn-ordercheck:hover{
  background:linear-gradient(135deg,var(--accent),var(--accent-600));
  color:#fff;
  border-color:transparent;
  transform:translateY(-1px);
}

/* Iconi?e rapide pe mobil (dreapta) */
.navicon{
  width:40px;height:40px;display:inline-grid;place-items:center;
  border-radius:999px;
  background:#fff;border:1px solid #e5e7eb;
  color:#111; box-shadow:0 2px 8px rgba(0,0,0,.06);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease, color .18s ease;
}
.navicon:hover{
  transform:translateY(-1px);
  box-shadow:0 8px 18px rgba(0,0,0,.12);
  border-color:#d1d5db; color:var(--accent);
}
.navicon .bi{font-size:1.05rem;line-height:1}

/* Dropdown: ascunde caret-ul implicit Bootstrap, pastreaza iconul bi-chevron-down */
.navbar .dropdown-toggle::after{ display:none !important; content:none !important; }
.navbar .dropdown-toggle .bi{ transition: transform .2s ease; }
.navbar .dropdown.show .dropdown-toggle .bi{ transform: rotate(180deg); }

.navbar .dropdown-menu{
  border-radius:12px;border:1px solid var(--line);
  padding:.5rem;min-width:14rem;box-shadow:0 8px 24px rgba(0,0,0,.08)
}
.navbar .dropdown-item{border-radius:8px;transition:background .2s ease}
.navbar .dropdown-item:hover{background:#f5f5f5}

/* Mobile header layout */
@media (max-width: 991.98px){
  .navbar .container{
    position:relative;
    min-height:var(--nav-mobile-h);
    display:flex;align-items:center;
  }
  .nav-mobile-abs{
    position:absolute;top:50%;transform:translateY(-50%);
    z-index:2;display:flex;align-items:center;gap:12px;
  }
  .navbar-toggler.nav-mobile-abs{width:44px;justify-content:center}
  .navbar .navbar-brand{position:relative;z-index:2;margin-left:auto;margin-right:auto}
}

/* ====== OFFSET GLOBAL (include TOPBAR + NAV) ====== */
body { padding-top: calc(var(--topbar-h) + var(--nav-h)); }
@media (max-width: 991.98px){
  body { padding-top: calc(var(--topbar-h) + var(--nav-mobile-h)); }
}

/* .sticky-offset minima (doar un mic spatiu sub header) */
.sticky-offset { margin-top: 8px !important; }

/* ====== Cart icon / badge ====== */
.cart-link{position:relative;color:var(--ink);font-weight:800}
.cart-link:hover{color:var(--accent);transform:scale(1.05)}
.cart-link .bi{display:inline-block;transition:transform .2s ease}
.cart-link:hover .bi{transform:rotate(-10deg)}
.cart-badge{
  position:absolute;background:var(--accent);color:#fff;font-size:.65rem;font-weight:800;
  padding:.1rem .4rem;border-radius:999px;line-height:1;box-shadow:0 2px 6px rgba(0,0,0,.25);z-index:3;
  top:-6px;right:-6px;left:auto;
}
@media (min-width: 992px){
  .cart-badge{top:-.45rem;left:1.05rem;right:auto}
}

/* ====== Bootstrap carousel ====== */
.rounded-carousel{border-radius:18px;overflow:hidden}
.carousel-item img{height:420px;object-fit:cover;transition:transform .4s ease}
.carousel-item img:hover{transform:scale(1.03)}
@media (max-width: 991.98px){ .carousel-item img{height:340px} }
@media (max-width: 575.98px){ .carousel-item img{height:260px} }
.carousel-control-prev-icon,.carousel-control-next-icon{filter:drop-shadow(0 2px 6px rgba(0,0,0,.45))}
.carousel-indicators [data-bs-target]{width:10px;height:10px;border-radius:50%;background:#fff;opacity:.6;border:0;transition:all .3s ease}
.carousel-indicators .active{opacity:1;background:var(--accent)}

/* ====== Sections / titles ====== */
.section-title{
  font-weight:800;letter-spacing:.5px;text-transform:uppercase;
  margin-bottom:1rem;position:relative;display:inline-block
}
.section-title::after{
  content:'';display:block;width:50px;height:3px;background:var(--accent);
  margin-top:.3rem;border-radius:2px
}

/* ====== Product cards ====== */
.product-card{
  background:var(--card);border-radius:18px;border:1px solid var(--line);
  transition:transform .2s ease, box-shadow .2s ease;display:flex;flex-direction:column;height:100%;overflow:hidden
}
.product-card:hover{transform:translateY(-4px) scale(1.01);box-shadow:0 8px 24px rgba(0,0,0,.08)}
.product-thumb{border-radius:18px;overflow:hidden;margin:12px;background:#000}
.product-thumb img{width:100%;height:220px;object-fit:cover;transition:transform .4s ease}
.product-card:hover .product-thumb img{transform:scale(1.08)}
.product-body{padding:0 .75rem 1rem;flex-grow:1;display:flex;flex-direction:column;justify-content:space-between}
.product-title{font-size:1.05rem;font-weight:800;margin:4px 0 8px}
.product-price{font-weight:900}
.price-new{color:var(--accent);font-size:1.1rem}
.price-old{color:#9ca3af;text-decoration:line-through;margin-left:.25rem;font-size:.9rem}
.badge-discount{
  position:absolute;top:10px;left:10px;
  background:linear-gradient(135deg,var(--accent),var(--accent-600));
  color:#fff;font-weight:900;border-radius:999px;padding:.3rem .7rem;font-size:.75rem
}

/* Descriere produs: 3 rânduri */
.product-desc{
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
  line-height:1.4;
  min-height: calc(1.4em * 3);
}

/* add to cart */
.btn-add{
  background:linear-gradient(135deg,var(--accent),var(--accent-600));color:#fff;border-radius:999px;
  font-weight:700;padding:.65rem 1rem;border:0;transition:all .25s ease
}
.btn-add:hover{opacity:.9;transform:translateY(-2px)}

/* ====== Cart drawer ====== */
.cart-drawer{width:420px;max-width:100%}
.cart-empty-icon i{font-size:70px;color:#e5e7eb}
.cart-list .cart-row{display:flex;gap:12px;align-items:flex-start;padding:12px 0;border-bottom:1px solid var(--line)}
.cart-thumb{width:68px;height:68px;border-radius:12px;overflow:hidden;flex:0 0 68px;background:#000}
.cart-thumb img{width:100%;height:100%;object-fit:cover;transition:transform .3s ease}
.cart-thumb img:hover{transform:scale(1.05)}
.cart-title{font-weight:800;margin:0}
.qty-control .btn{width:34px;height:34px;line-height:1;border:1px solid #e5e7eb;background:#fff;border-radius:8px;padding:0;transition:all .2s ease}
.qty-control .btn:hover{background:var(--accent);color:#fff}
.qty-control input{width:50px;text-align:center;height:34px;border:1px solid #e5e7eb;border-left:0;border-right:0;border-radius:8px}
.cart-remove{background:transparent;border:0;color:#ef4444;font-size:22px;line-height:1;transition:color .2s ease}
.cart-remove:hover{color:#b91c1c}
.price-line{font-weight:900;color:var(--accent)}
.cart-subtotal{font-weight:900;font-size:1.1rem}
#btnCheckoutLink{border-radius:999px;transition:all .25s ease}
#btnCheckoutLink:hover{opacity:.9;transform:scale(1.02)}

/* ====== Utilities ====== */
.text-ellipsis{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.offcanvas .border-top{border-color:var(--line)!important}

/* ====== Sec?iuni categorii ====== */
.category-section{padding-top:1rem;padding-bottom:1rem;scroll-margin-top:90px}

/* ====== Chips ====== */
.cat-chip{
  display:inline-block;border-radius:9999px;padding:.45rem 1.1rem;font-size:.9rem;font-weight:600;color:#333;background:#fff;border:1px solid #ddd;
  transition:all .25s ease
}
.cat-chip:hover{background:var(--accent);color:#fff;border-color:var(--accent-600)}
.cat-chip.active{background:var(--accent);border-color:var(--accent-600);color:#fff;box-shadow:0 4px 12px rgba(0,0,0,.1)}

/* ====== Checkout page ====== */
.ck-container .card{border-radius:16px;border:1px solid #eef0f2}
.ck-container .card-header{background:#fff;border-bottom:1px solid #eef0f2}
.ck-row{display:flex;gap:12px;align-items:flex-start;padding:12px 0;border-bottom:1px solid #eee}
.ck-thumb{width:84px;height:84px;border-radius:12px;overflow:hidden;flex:0 0 84px;background:#000}
.ck-thumb img{width:100%;height:100%;object-fit:cover}
.ck-title{font-weight:800;margin:0}
.ck-container .qty .btn{border:1px solid #e5e7eb;background:#fff;width:36px;height:36px;border-radius:10px;padding:0;line-height:1}
.ck-container .qty input{width:64px;text-align:center;border:1px solid #e5e7eb;border-left:0;border-right:0;height:36px;border-radius:10px}
.ck-chips .chip{display:inline-block;border:1px solid #e5e7eb;border-radius:10px;padding:.35rem .7rem;margin:.15rem;color:#6b7280;font-weight:700;font-size:.9rem;background:#fff}
.ck-container .btn-primary{background:var(--accent);border-color:var(--accent);font-weight:900;letter-spacing:.2px}
.ck-container .btn-primary:hover{background:var(--accent-600);border-color:var(--accent-600)}
.ck-submit{border-radius:999px}
.ck-container .nav-tabs .nav-link{font-weight:800;color:#6b7280}
.ck-container .nav-tabs .nav-link.active{color:var(--accent);border-color:#dee2e6 #dee2e6 #fff}
#ckSubtotal,#ckTotal,#ckTotalP{font-weight:900}

/* ====== Newsletter CTA ====== */
.newsletter-cta{
  background: var(--accent);
  margin:0; padding:2.5rem 0;
  border-radius:0; border-top:1px solid var(--line); border-bottom:0;
  color:#fff;
}
.newsletter-cta .fw-extrabold{font-weight:900}
.text-news-muted{color:rgba(255,255,255,.85)}
.nl-form .form-control{
  border-radius:999px 0 0 999px;
  padding-left:1.25rem;
  background:#fff; color:#111;
}
.nl-form .btn{
  border-radius:0 999px 999px 0;
  padding-left:1.25rem; padding-right:1.25rem;
}
@media (max-width:575.98px){ .newsletter-cta{padding:2rem 0} }

/* ====== Footer ====== */
.site-footer{background:#111;color:#e5e7eb;margin-top:0}
.site-footer .brand-text{font-weight:900}
.logo-dot-invert{background:#fff}
.footer-hd{color:#fff;font-weight:800;margin-bottom:.75rem}
.footer-lead{color:#d1d5db}
.footer-links li{margin:.3rem 0}
.site-footer a{color:#e5e7eb;text-decoration:none}
.site-footer a:hover{opacity:.85}
.social{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:999px;background:#1f1f1f}
.social:hover{background:#262626}
.footer-bottom{border-top:1px solid rgba(255,255,255,.08);background:#0d0d0d}

/* ====== Recommended slider ====== */
.reco-viewport{ overflow:hidden; position:relative; }
.reco-track{ display:flex; gap:1rem; transition:transform .5s ease; will-change:transform; }
.reco-item{ flex:0 0 100%; }
#recoRow{ contain: content; }
@media (min-width:576px){ .reco-item{ flex-basis:50%; } }
@media (min-width:992px){ .reco-item{ flex-basis:25%; } }

/* ====== Fine-tuning mobil ====== */
@media (max-width: 991.98px){
  :root{ --nav-mobile-h:64px; }
}

/* ====== Suprapunere & offcanvas mobil ====== */
@media (min-width: 992px){
  .navbar .container{ min-height: var(--nav-h); display:flex; align-items:center; }
}
@media (max-width: 991.98px){
  .navbar .container{ min-height: var(--nav-mobile-h); display:flex; align-items:center; }
}
/* Offset global sus — deja definit mai sus cu topbar */

/* .sticky-offset minima */
.sticky-offset { margin-top: 8px !important; }

/* Co? pe mobil sub navbar + 100dvh (include TOPBAR) */
@media (max-width: 991.98px){
  #cartDrawer.offcanvas {
    top: calc(var(--topbar-h) + var(--nav-top)) !important;
    height: calc(100dvh - (var(--topbar-h) + var(--nav-top))) !important;
  }
}

/* ================= HERO multi-card — 210 × 280 px ================= */
.hero-viewport{
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
  overflow: visible;

  --hero-pad: 44px;
  --hero-overlap: 12px;
  --hero-gap: 12px;
}
@media (max-width: 575.98px){
  .hero-viewport{ --hero-pad: 34px; --hero-overlap: 10px; }
}
@media (max-width: 420px){
  .hero-viewport{ --hero-pad: 28px; --hero-overlap: 8px; }
}
.hero-track{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--hero-gap);
  padding: 6px var(--hero-pad);
  margin: 0 auto;

  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.hero-track::-webkit-scrollbar{ display: none; }
.hero-card{
  flex: 0 0 210px !important;
  width: 210px !important;
  height: 280px !important;
  aspect-ratio: auto !important;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 8px 18px rgba(0,0,0,.12);
  scroll-snap-align: center;
  transition: transform .25s ease, box-shadow .25s ease;
  will-change: transform;
}
.hero-card:hover{
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(0,0,0,.16);
}
.hero-card img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Butoane naviga?ie */
.hero-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  border: 0; border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(0,0,0,.22);
  display: grid; place-items: center;
  z-index: 5;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.hero-nav:hover{ transform: translateY(-50%) scale(1.05); box-shadow: 0 10px 26px rgba(0,0,0,.26); }
.hero-nav .bi{ font-size: 1.3rem; line-height: 1; }
.hero-prev{ left:  calc(var(--hero-pad) - var(--hero-overlap)); }
.hero-next{ right: calc(var(--hero-pad) - var(--hero-overlap)); }

/* ----- ascunde iconi?a de co? din header pe mobil (nu avem co? acolo) ----- */
@media (max-width: 991.98px){
  .navbar .cart-link.d-lg-none{ display:none !important; }
}

/* ----- Co? sticky jos (mobil) ----- */
.mobile-cartbar{
  position: fixed;
  left: 12px; right: 12px;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 1029;
  display: none;
}
@media (max-width: 991.98px){
  .mobile-cartbar{ display: block; }
  body{ padding-bottom: 84px; }
}
.mobile-cartbtn{
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  padding: .9rem 1rem;
  border-radius: 999px;
  background: #111; color:#fff;
  font-weight: 900;
  border: 0;
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.mobile-cartbtn:hover{ transform: translateY(-1px); opacity:.95; }
.mobile-cartbtn .left{ display:flex; align-items:center; gap:8px; }
.mobile-cartbtn .left .bi{ font-size:1.2rem; }
.mobile-cartbtn .cart-badge{
  position: static;
  margin-left: 2px;
  padding: .15rem .45rem;
  background: var(--accent);
  color:#fff;
  border-radius: 999px;
  font-size: .7rem;
  line-height: 1;
  box-shadow: none;
}
.mobile-cartbtn .total{
  display:flex; align-items:baseline; gap:6px;
  font-weight:900;
}
.mobile-cartbtn .currency{
  font-size:.8rem; opacity:.85; text-transform:uppercase;
}

/* ====== FIX: ascunde iconi?a Bootstrap din .navbar-toggler ====== */
.navbar-toggler-icon{ background-image:none !important; }

/* ====== Hamburger (mobil) ====== */
.hamburger-btn{
  width:44px;height:44px;display:grid;place-items:center;
  border-radius:12px;border:1px solid #e5e7eb;background:#fff;
  box-shadow:0 2px 8px rgba(0,0,0,.06);
  padding:0;
  overflow:visible;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.hamburger-btn:hover{
  transform:translateY(-1px); box-shadow:0 8px 18px rgba(0,0,0,.12);
  border-color:#d1d5db;
}
.hamburger{
  position:relative; display:block; width:20px; height:14px;
  background:transparent;
}
.hamburger::before,
.hamburger::after,
.hamburger>span{
  content:""; position:absolute; left:0; width:20px; height:2px;
  background:#111; border-radius:2px;
  transition:transform .25s ease, opacity .2s ease, top .25s ease, background-color .25s ease;
}
.hamburger::before{ top:0; }
.hamburger>span{   top:6px; }
.hamburger::after{ top:12px; }
.hamburger-btn.is-open .hamburger>span{ opacity:0; transform:translateX(-6px); }
.hamburger-btn.is-open .hamburger::before{ top:6px; transform:rotate(45deg);  background:var(--accent); }
.hamburger-btn.is-open .hamburger::after{ top:6px; transform:rotate(-45deg); background:var(--accent); }

/* Diverse */
#hoursModal .modal-content{border-radius:16px}

/* === Card nou: por?ie lânga titlu + footer cu buton mic & pre? mare === */
.product-card .portion-tag{
  margin-left:.5rem;
  font-weight:700;
  font-size:.9rem;
  color:#6b7280;
  white-space:nowrap;
}
.product-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.75rem;
}
.btn-add{
  display:inline-flex; align-items:center; justify-content:center;
  padding:.55rem .9rem;
  background:linear-gradient(135deg,var(--accent),var(--accent-600));
  color:#fff; border:0; border-radius:999px; font-weight:700;
  transition:transform .2s ease, opacity .2s ease;
}
.btn-add i{font-size:.95rem; margin-right:.35rem;}
.btn-add:hover{opacity:.9; transform:translateY(-1px);}
.product-price-big{
  font-weight:900;
  color:var(--accent);
  font-size:1.1rem;
  white-space:nowrap;
}

/* ===== MOBILE COMPACT ===== */
@media (max-width: 575.98px){
  .product-card{
    display:grid;
    grid-template-columns: 122px 1fr;
    align-items:center;
    gap:10px;
    padding:12px;
    border-radius:14px;
    min-height:188px;
  }
  .product-thumb{ margin:0; border-radius:12px; overflow:hidden; }
  .product-thumb img{
    width:100%;
    height:136px;
    object-fit:cover;
    display:block;
  }
  .product-body{ padding:0; }
  .product-title{
    font-size:.98rem;
    font-weight:800;
    margin:0 0 4px;
    line-height:1.2;
  }
  .product-card .portion-tag{
    display:inline-block;
    margin-left:.35rem;
    padding:.12rem .42rem;
    border-radius:999px;
    background:#f4f4f5;
    color:#6b7280;
    font-weight:800;
    font-size:.66rem;
    white-space:nowrap;
    max-width:60%;
    overflow:hidden;
    text-overflow:ellipsis;
    vertical-align:middle;
  }
  .product-desc{
    -webkit-line-clamp:2; line-clamp:2;
    min-height:calc(1.28em * 2);
    font-size:.80rem;
    line-height:1.28;
    margin:0 0 6px;
  }
  .product-footer{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:8px;
    margin-top:4px;
  }
  .product-price-big .price-new{
    font-weight:900;
    font-size:.98rem;
  }
  .btn-add{
    width:auto;
    padding:.38rem .80rem;
    border-radius:999px;
    font-weight:800;
    font-size:.82rem;
    line-height:1;
  }
}
@media (max-width: 575.98px) and (min-height: 820px){
  .product-card{ min-height:196px; }
  .product-thumb img{ height:144px; }
}

/* Gramaj în modal */
#productModal #pmPortion{ font-size:.95rem; opacity:.8; }

/* Hit-area mai mare pentru X pe mobil */
#productModal .btn-close{
  width: 42px; height: 42px; opacity:.7;
}
#productModal .btn-close:hover{ opacity:1; }
@media (max-width: 575.98px){
  #productModal .btn-close{ width:46px; height:46px; }
}

/* X-ul vizibil peste imagine */
.pm-close{
  position:absolute;
  top:10px; right:10px;
  z-index:5;
  width:38px; height:38px;
  border-radius:999px;
  background:#fff;
  opacity:1;
  box-shadow:0 2px 8px rgba(0,0,0,.25);
}
.pm-close:focus{ outline:none; box-shadow:0 0 0 .2rem rgba(255,106,0,.25); }

/* Imaginea din modal */
.pm-image{ display:block; }
@media (max-width:575.98px){
  .pm-image{ max-height:45vh; object-fit:cover; }
}

/* Make default h3 look nicer */
.category-section .h5.mb-0{
  position:relative; font-weight:900; letter-spacing:.2px; padding-left:12px;
}
.category-section .h5.mb-0::before{
  content:""; position:absolute; left:0; top:50%;
  width:4px; height:1.15em; transform:translateY(-50%);
  background:linear-gradient(180deg,var(--accent),var(--accent-600));
  border-radius:4px;
}

/* =========================================================================
   BADGES — UI glossy + iconi?e
   ========================================================================= */

.product-card, .product-thumb{ position: relative; }

.p-badges{
  position:absolute;
  top:8px; left:8px;
  display:flex; flex-wrap:wrap; gap:6px;
  z-index:5;
  opacity:1 !important; visibility:visible !important; transform:none !important;
}

.p-badge{
  --bg: rgba(0,0,0,.65);
  --fg: #fff;
  --stroke: rgba(255,255,255,.12);

  display:inline-flex; align-items:center; gap:6px;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px; font-weight:800; letter-spacing:.2px;
  line-height:1;
  background:var(--bg);
  color:var(--fg);
  border:1px solid var(--stroke);
  box-shadow:0 3px 10px rgba(0,0,0,.18);
  backdrop-filter:saturate(1.15) blur(2px);
  -webkit-backdrop-filter:saturate(1.15) blur(2px);
  user-select:none;
}
.p-badge i, .p-badge .emoji{
  display:inline-grid; place-items:center;
  font-size:1em; line-height:1;
}
.p-badge .lbl{ line-height:1; margin-top:1px; }

.p-badge--new     { --fg:#0ea5e9; --bg:rgba(14,165,233,.12); --stroke:rgba(14,165,233,.28); }
.p-badge--hot     { --fg:#e11d48; --bg:rgba(225,29,72,.12);  --stroke:rgba(225,29,72,.28); }
.p-badge--spicy   { --fg:#fb6a1c; --bg:rgba(251,106,28,.12); --stroke:rgba(251,106,28,.28); }
.p-badge--veg     { --fg:#22c55e; --bg:rgba(34,197,94,.12);  --stroke:rgba(34,197,94,.28); }
.p-badge--sale    { --fg:#f59e0b; --bg:rgba(245,158,11,.12); --stroke:rgba(245,158,11,.28); }
.p-badge--limited { --fg:#a855f7; --bg:rgba(168,85,247,.12); --stroke:rgba(168,85,247,.28); }
.p-badge--combo   { --fg:#111418; --bg:rgba(17,20,24,.08);   --stroke:rgba(17,20,24,.18); }
.p-badge--popular { --fg:#ef4444; --bg:rgba(239,68,68,.12);  --stroke:rgba(239,68,68,.28); }

/* Hover mic */
@media (hover:hover){
  .p-badge:hover{ transform:translateY(-1px); box-shadow:0 6px 16px rgba(0,0,0,.22); }
}

/* Daca badge-urile sunt în .product-body */
.product-body > .p-badges{
  position:static; margin:0 0 6px 0;
}

/* ==== Topbar 1 linie pe mobil ==== */
.topbar{
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  font-size: clamp(.72rem, 3.6vw, .85rem);
  letter-spacing: .01em;
}
@media (min-width: 576px){
  .topbar{ font-size: .85rem; letter-spacing: .02em; }
}
@media (max-width: 360px){
  .topbar{ font-size: .70rem; }
}

/* Aliniere scroll sub navbar */
.category-section { scroll-margin-top: 84px; }
