/* Fast, business, brown/cream theme. No external deps. */
:root{
  --bg:#faf6ee;
  --surface:#fffaf1;
  --text:#2b1f16;
  --muted:#6b5647;
  --brand:#5a3a1e;
  --brand-2:#8a623b;
  --cream:#f3e6d2;
  --line:rgba(43,31,22,.14);
  --shadow:0 12px 34px rgba(43,31,22,.12);
  --radius:18px;
  --radius-sm:12px;
  --max:1180px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background:radial-gradient(1200px 800px at 20% -10%, rgba(138,98,59,.18), transparent 55%),
             radial-gradient(900px 700px at 100% 0%, rgba(90,58,30,.14), transparent 55%),
             var(--bg);
  color:var(--text);
  line-height:1.55;
}
a{color:inherit; text-decoration:none}
img{max-width:100%; height:auto; display:block}

.container{max-width:var(--max); margin:0 auto; padding:0 16px}

/* Header */
.topbar{
  position:sticky; top:0; z-index:50;
  background:rgba(250,246,238,.9);
  backdrop-filter:saturate(150%) blur(10px);
  border-bottom:1px solid var(--line);
}
.header{
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 0;
}
.brand{
  display:flex; align-items:center; gap:10px;
  min-width:180px;
}
.brand .logo{width:40px; height:40px}
.brand .name{font-weight:800; letter-spacing:.3px}
.brand .tag{font-size:12px; color:var(--muted); margin-top:-2px}

.nav{
  display:flex; align-items:center; gap:18px;
}
.nav a{
  font-weight:700; font-size:14px;
  padding:10px 12px;
  border-radius:12px;
  color:var(--text);
}
.nav a:hover{background:rgba(90,58,30,.08)}
.nav a.active{background:rgba(90,58,30,.12)}

.header-actions{display:flex; gap:10px; align-items:center}
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid var(--line);
  background:linear-gradient(180deg, #fff, var(--surface));
  color:var(--text);
  font-weight:800;
  cursor:pointer;
  transition:transform .08s ease, box-shadow .15s ease, background .15s ease;
  box-shadow:0 6px 18px rgba(43,31,22,.06);
}
.btn:active{transform:translateY(1px)}
.btn.primary{
  border:1px solid rgba(90,58,30,.22);
  background:linear-gradient(180deg, rgba(90,58,30,.12), rgba(138,98,59,.10));
}
.btn.whatsapp{
  border:1px solid rgba(18,140,126,.28);
  background:linear-gradient(180deg, rgba(37,211,102,.14), rgba(18,140,126,.10));
}
.btn.small{padding:10px 12px; border-radius:12px; font-size:13px}

.icon{
  width:18px; height:18px; display:inline-block;
}

/* Mobile nav */
.hamburger{display:none}
.mobile-drawer{
  display:none;
  position:fixed; inset:0;
  background: rgba(0,0,0,.35);
  z-index:80;

  overflow: hidden;
}

.drawer-panel{
  position:fixed; right:0; top:0; height:100vh; width:min(92vw, 360px);
  background:linear-gradient(180deg, rgba(255,250,241,.98), rgba(243,230,210,.96));
  border-left:1px solid var(--line);
  padding:16px;
  box-shadow:-18px 0 50px rgba(43,31,22,.18);

  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: max(16px, env(safe-area-inset-bottom));
}

.drawer-top{display:flex; align-items:center; justify-content:space-between; margin-bottom:10px}
.drawer-links{display:flex; flex-direction:column; gap:10px; margin-top:10px}
.drawer-links a{
  padding:12px 12px; border-radius:14px;
  border:1px solid rgba(43,31,22,.10);
  background:rgba(255,255,255,.6);
  font-weight:800;
}
.drawer-links a:hover{background:rgba(90,58,30,.08)}
.drawer-cta{margin-top:16px; display:grid; gap:10px}

/* Hero */
.hero{
  padding:34px 0 16px;
}
.hero-grid{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:18px;
  align-items:stretch;
}
.hero-card{
  border:1px solid var(--line);
  background:linear-gradient(180deg, rgba(255,250,241,.92), rgba(243,230,210,.72));
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:22px;
  overflow:hidden;
  position:relative;
}
.hero-title{font-size:40px; line-height:1.05; margin:0 0 12px; letter-spacing:-.6px}
.hero-sub{margin:0 0 16px; color:var(--muted); font-weight:600}
.hero-badges{display:flex; flex-wrap:wrap; gap:10px; margin-top:16px}
.badge{
  display:inline-flex; gap:10px; align-items:center;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(43,31,22,.12);
  background:rgba(255,255,255,.6);
  font-weight:800;
  font-size:13px;
}
.hero-media{
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
  background:#2c1b12;
  box-shadow:var(--shadow);
  position:relative;
}
.hero-media img{width:100%; height:100%; object-fit:cover}
.hero-media .overlay{
  position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(0,0,0,.0), rgba(0,0,0,.34));
}
.hero-media .caption{
  position:absolute; left:14px; right:14px; bottom:14px;
  color:#fff;
  font-weight:800;
  text-shadow:0 2px 10px rgba(0,0,0,.35);
}

/* Sections */
.section{padding:22px 0}
.section h2{margin:0 0 12px; font-size:22px; letter-spacing:-.2px}
.section p.lead{margin:0 0 16px; color:var(--muted); font-weight:600}

.toolbar{
  display:flex; gap:10px; align-items:center; flex-wrap:wrap;
  margin:14px 0 14px;
}
.input{
  flex:1;
  min-width:240px;
  display:flex; align-items:center; gap:10px;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.7);
}
.input input{
  border:0; outline:0; background:transparent;
  width:100%; font-weight:700; color:var(--text);
}
.select{
  padding:12px 14px;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.7);
  font-weight:800;
  color:var(--text);
}

.grid{
  display:grid;
  grid-template-columns:repeat(12, 1fr);
  gap:14px;
}
.card{
  grid-column:span 4;
  border:1px solid var(--line);
  background:rgba(255,250,241,.85);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:0 10px 26px rgba(43,31,22,.08);
  display:flex;
  flex-direction:column;
  min-height:100%;
}

.card .media{
  aspect-ratio: 4/3;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
}

.card .media img{width:100%; height:100%; object-fit:cover}
.card .body{padding:14px 14px 12px; display:flex; flex-direction:column; gap:10px; flex:1}
.card .title{font-weight:900; letter-spacing:-.2px; margin:0}
.card .meta{display:flex; justify-content:space-between; gap:10px; align-items:center; color:var(--muted); font-weight:800; font-size:13px}
.price{font-size:16px; font-weight:900; color:var(--brand)}
.card .desc{margin:0; color:var(--muted); font-weight:650; font-size:14px}
.card .actions{padding:12px 14px 14px; display:flex; gap:10px; margin-top:auto}
.card .actions .btn{width:100%}

/* Info blocks */
.info-grid{display:grid; grid-template-columns:repeat(12,1fr); gap:14px}
.info{
  grid-column:span 4;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:rgba(255,255,255,.65);
  padding:16px;
  box-shadow:0 10px 26px rgba(43,31,22,.06);
}
.info h3{margin:0 0 6px; font-size:16px}
.info p{margin:0; color:var(--muted); font-weight:650}

/* Page layout */
.page-hero{
  padding:24px 0 8px;
}
.page-hero .wrap{
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:linear-gradient(180deg, rgba(255,250,241,.92), rgba(243,230,210,.70));
  box-shadow:var(--shadow);
  padding:18px;
}
.breadcrumb{font-size:13px; font-weight:800; color:var(--muted)}
.page-title{margin:10px 0 6px; font-size:28px; letter-spacing:-.3px}
.page-sub{margin:0; color:var(--muted); font-weight:650}

/* FAQ */
.faq{display:grid; gap:12px}
.faq details{
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:rgba(255,255,255,.65);
  box-shadow:0 10px 26px rgba(43,31,22,.06);
  padding:12px 14px;
}
.faq summary{cursor:pointer; font-weight:900}
.faq p{margin:10px 0 0; color:var(--muted); font-weight:650}

/* Contact */
.form{
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:rgba(255,255,255,.65);
  box-shadow:0 10px 26px rgba(43,31,22,.06);
  padding:16px;
}
.field{display:grid; gap:8px; margin-bottom:12px}
.field label{font-weight:900; font-size:13px}
.field input, .field textarea{
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px 14px;
  font-weight:700;
  background:rgba(255,255,255,.75);
  outline:none;
}
.field textarea{min-height:120px; resize:vertical}

/* Footer */
.footer{
  margin-top:26px;
  border-top:1px solid var(--line);
  background:linear-gradient(180deg, rgba(255,250,241,.75), rgba(243,230,210,.75));
}
.footer-grid{display:grid; grid-template-columns:repeat(12,1fr); gap:14px; padding:22px 0}
.footer .col{grid-column:span 3}
.footer .col h4{margin:0 0 10px; font-size:14px; letter-spacing:.2px}
.footer .col a{display:block; padding:6px 0; color:var(--muted); font-weight:750}
.footer .col a:hover{color:var(--brand)}
.footer .note{border-top:1px solid var(--line); padding:12px 0; color:var(--muted); font-weight:650; font-size:13px}

/* Responsive */
@media (max-width: 980px){
  .hero-title{font-size:34px}
  .card{grid-column:span 6}
  .info{grid-column:span 6}
  .footer .col{grid-column:span 6}
}
@media (max-width: 720px){
  .nav{display:none}
  .hamburger{display:inline-flex}
  .hero-grid{grid-template-columns:1fr}
  .hero-media{min-height:220px}
  .card{grid-column:span 12}
  .info{grid-column:span 12}
  .footer .col{grid-column:span 12}
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  *{scroll-behavior:auto; transition:none !important}
}


/* Price details under each product */
.price-block{
  margin-top: 10px;
  padding: 10px;
  border: 1px dashed rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.12);
  border-radius: 12px;
  font-size: 0.95rem;
  line-height: 1.45;
}
.price-block strong{ font-weight: 700; }
@media (max-width: 520px){
  .price-block{ font-size: 0.92rem; }
}

/* WhatsApp floating CTA */
.wa-float{
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 999;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.18);
  background: #25D366;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.wa-float__icon{
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: #25D366;
}
.wa-float__text{
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
}
@media (max-width: 480px){
  .wa-float{
    left: 12px;
    right: 12px;
    bottom: 12px;
    justify-content: center;
  }
}




/* === FIX: UNIFORM PRODUCT CARDS (homepage + products page) === */
.grid{
  align-items: stretch;
  grid-auto-rows: 1fr;
}

.card{
  height: 100%;
}

/* keep same media height everywhere */

.card .media{
  aspect-ratio: 4/3;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25D366;
}


.card .media img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #ffffff;
  display: block;
}

/* prevent long titles/descriptions from changing card height */
.card .title{
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
  min-height: 1.3em;
}

.card .desc{
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: 2.8em;
}

/* make actions stick to bottom consistently */
.card .actions{
  margin-top: auto;
}


/* === FIX: STICKY FOOTER (nu mai sare in sus) === */
html, body{
  height: 100%;
}
body{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main{
  flex: 1 0 auto;
}
footer{
  margin-top: auto;
}


/* === CONTACT NOTE (in locul formularului) === */
.contact-note{
  max-width: 900px;
  margin: 24px auto 48px;
  padding: 20px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.contact-note h2{ margin: 0 0 10px; }
.contact-note p{ margin: 8px 0; }
.contact-note .btn.whatsapp{
  display: inline-block;
  margin-top: 12px;
  padding: 12px 18px;
  border-radius: 14px;
  background: #25D366;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}


/* === MOBILE: burger in viewport === */
@media (max-width: 768px){
  header, .header, .navbar, .topbar{
    width: 100%;
    box-sizing: border-box;
  }
  .nav-toggle, .burger, .menu-toggle{
    position: relative;
    right: 0 !important;
    margin-left: auto;
    margin-right: 12px;
    max-width: calc(100vw - 24px);
  }
  .nav-inner, .nav, .nav-container, .container{
    padding-right: 12px;
    padding-left: 12px;
    box-sizing: border-box;
  }
}


/* prevent horizontal overflow on mobile */
html, body{ overflow-x: hidden; }
