/* ===========================
   Hodina - Mobile First
   =========================== */

:root{
  --bg: #ffffff;
  --text: #132018;
  --muted: #516056;
  --border: #e8eee9;

  --brand: #1f7a5f;
  --brand-2: #135a45;

  --card: #f7faf8;
  --shadow: 0 10px 25px rgba(0,0,0,0.06);
}

*{ box-sizing: border-box; }
html, body{ margin:0; padding:0; }
body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.35;
}

a{ color: inherit; }

.container{
  width: min(980px, calc(100% - 2rem));
  margin: 0 auto;
}

/* Header */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 0.9rem 0;
  gap: 1rem;
}

.brand{
  display:flex;
  align-items:center;
  gap: 0.6rem;
  text-decoration:none;
}

.brand-logo{
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 10px;
  background: #ffffff;
}


.brand-name{
  font-weight: 800;
  letter-spacing: 0.2px;
}

.nav{
  display:flex;
  gap: 0.8rem;
  align-items:center;
}

.nav-link{
  text-decoration:none;
  font-size: 0.95rem;
  color: var(--muted);
  padding: 0.4rem 0.5rem;
  border-radius: 10px;
}

.nav-link:hover{
  background: #f1f6f3;
  color: var(--text);
}

.nav-admin{
  border: 1px solid var(--border);
}

/* Main */
.site-main{
  min-height: calc(100vh - 140px);
}

/* Buttons */
.btn{
  display:inline-block;
  text-decoration:none;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-weight: 700;
  text-align:center;
  transition: transform .06s ease, opacity .2s ease;
}

.btn:active{ transform: translateY(1px); }

.btn-primary{
  background: var(--brand);
  color: white;
  box-shadow: var(--shadow);
}

.btn-primary:hover{ opacity: 0.95; }

.btn-secondary{
  border: 1px solid var(--brand);
  color: var(--brand);
  background: transparent;
}

/* Sections */
.section{
  padding: 2.2rem 0;
}

h1{
  font-size: 1.85rem;
  margin: 0.6rem 0 0.8rem;
}

h2{
  font-size: 1.35rem;
  margin: 0 0 1rem;
}

.muted{ color: var(--muted); }
.small{ font-size: 0.9rem; }

/* Hero */
.hero{
  padding: 2.4rem 0 1.4rem;
  background:
    radial-gradient(900px 420px at 20% 0%, rgba(31,122,95,0.10), transparent 60%),
    radial-gradient(900px 420px at 80% 20%, rgba(31,122,95,0.06), transparent 60%);
  border-bottom: 1px solid var(--border);
}

.badge{
  display:inline-block;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: #ecf6f2;
  color: var(--brand-2);
  font-weight: 700;
  font-size: 0.85rem;
}

.hero-sub{
  margin: 0 0 1.2rem;
  font-size: 1rem;
  color: var(--muted);
}

.hero-actions{
  display:grid;
  gap: 0.7rem;
  margin: 1rem 0 1.4rem;
}

.hero-points{
  display:grid;
  gap: 0.8rem;
}

.point{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0.9rem 0.9rem;
}

.point-title{
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.point-sub{
  color: var(--muted);
  font-size: 0.95rem;
}

/* Benefits checklist */
.checklist{
  list-style: none;
  padding: 0;
  margin: 0;
  display:grid;
  gap: 0.6rem;
}

.checklist li{
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.85rem 0.9rem;
}

/* Steps */
.steps{
  list-style: none;
  padding: 0;
  margin: 0;
  display:grid;
  gap: 0.75rem;
}

.steps li{
  display:flex;
  gap: 0.8rem;
  align-items:flex-start;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0.9rem;
}

.step-num{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display:grid;
  place-items:center;
  background: var(--brand);
  color: white;
  font-weight: 800;
  flex: 0 0 auto;
}

.step-title{ font-weight: 800; margin-bottom: 0.2rem; }
.step-sub{ color: var(--muted); font-size: 0.95rem; }

/* Demo */
.demo-actions{
  margin-top: 1rem;
}

.demo-note{
  margin-top: 1rem;
  padding: 0.9rem;
  border: 1px dashed #cfe7dd;
  border-radius: 14px;
  color: var(--muted);
  background: #f4fbf8;
}

/* CTA */
.cta{
  background: #0f2f24;
  color: #ffffff;
}

.cta h2{ color: #ffffff; }
.cta .muted{ color: rgba(255,255,255,0.78); }

.cta-actions{
  display:grid;
  gap: 0.7rem;
  margin-top: 1rem;
}

.cta .btn-secondary{
  border-color: rgba(255,255,255,0.8);
  color: #ffffff;
}

/* Footer */
.site-footer{
  border-top: 1px solid var(--border);
  padding: 1.2rem 0;
  color: var(--muted);
}

.footer-inner{
  display:flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items:flex-start;
}

.footer-right a{
  color: var(--muted);
  text-decoration:none;
}

.footer-right a:hover{ text-decoration: underline; }

.sep{ margin: 0 0.4rem; }

/* ===========================
   Desktop enhancements
   =========================== */
@media (min-width: 900px){
  h1{ font-size: 2.4rem; }
  h2{ font-size: 1.6rem; }

  .hero-actions{
    grid-template-columns: 1fr 1fr;
    max-width: 520px;
  }

  .hero-points{
    grid-template-columns: repeat(3, 1fr);
  }

  .cta-actions{
    grid-template-columns: 1fr 1fr;
    max-width: 560px;
  }

  .footer-inner{
    flex-direction: row;
    justify-content: space-between;
    align-items:center;
  }
}
/* ===========================
   Catalogue marketplace style
   =========================== */

.catalogue {
  padding: 1.2rem 0 2rem;
}

.catalogue-header{
  display:flex;
  flex-direction: column;
  gap: 0.8rem;
  margin: 1rem 0 1.2rem;
}

.catalogue-title{
  margin: 0;
  font-size: 1.6rem;
}

.catalogue-sub{
  margin: 0.4rem 0 0;
  color: var(--muted);
}

.empty-state{
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
}

.product-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

.product-card{
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.product-link{
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0.9rem;
  padding: 0.9rem;
  text-decoration: none;
  color: inherit;
}

.product-media{
  width: 110px;
  height: 110px;
  border-radius: 14px;
  overflow: hidden;
  background: #f3f6f4;
  border: 1px solid var(--border);
  display:flex;
  align-items:center;
  justify-content:center;
}

.product-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
}

.product-placeholder{
  width: 100%;
  height: 100%;
  display:grid;
  place-items:center;
  color: var(--muted);
  font-size: 1.6rem;
}

.product-info{
  display:flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.product-name{
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.2;
}

.product-meta{
  margin-top: 0.45rem;
  display:grid;
  gap: 0.25rem;
}

.meta-item{
  font-size: 0.92rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.meta-label{
  color: #3f4d44;
  font-weight: 700;
  margin-right: 0.25rem;
}

.product-bottom{
  display:flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 0.75rem;
  gap: 0.6rem;
}

.product-price{
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--text);
}

.currency{
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--muted);
}

.cta-pill{
  display:inline-block;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(31,122,95,0.10);
  color: var(--brand-2);
  font-weight: 800;
  font-size: 0.9rem;
}

.product-card:hover{
  transform: translateY(-1px);
}

@media (min-width: 720px){
  .catalogue-header{
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }

  .product-grid{
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .product-link{
    grid-template-columns: 140px 1fr;
  }

  .product-media{
    width: 140px;
    height: 140px;
  }

  .product-name{
    font-size: 1.1rem;
  }
}

@media (min-width: 1024px){
  .product-grid{
    grid-template-columns: 1fr 1fr 1fr;
  }
}
/* ===========================
   Product show (marketplace)
   =========================== */

.product-show { padding: 1rem 0 2rem; }

.breadcrumb{
  font-size: .92rem;
  color: var(--muted);
  margin: .6rem 0 1rem;
  display:flex; gap:.5rem; flex-wrap:wrap;
}
.breadcrumb a{ color: var(--muted); text-decoration:none; }
.breadcrumb .sep{ opacity:.7; }
.breadcrumb .current{ color: var(--text); font-weight:800; }

.p-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.p-gallery{
  display:flex;
  flex-direction:column;
  gap:.7rem;
}

.p-main{
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow:hidden;
  background:#f3f6f4;
}
.p-main img{
  width:100%;
  height: 320px;
  object-fit: cover;
  display:block;
}
.p-placeholder{
  height:320px;
  display:grid;
  place-items:center;
  font-size:2rem;
  color: var(--muted);
}

.p-thumbs{
  display:flex;
  gap:.5rem;
  overflow:auto;
  padding-bottom:.2rem;
}
.p-thumb{
  width:72px;
  height:72px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--border);
  cursor:pointer;
  flex:0 0 auto;
}
.p-hint{ margin:0; font-size:.85rem; color: var(--muted); }

.p-info{
  display:flex;
  flex-direction:column;
  gap: .9rem;
}

.p-title{
  margin:0;
  font-size: 1.35rem;
  line-height:1.2;
}

.p-meta{
  border:1px solid var(--border);
  border-radius: 16px;
  padding:.75rem;
  background:#fff;
}
.p-meta-line{
  display:flex;
  justify-content:space-between;
  gap:.8rem;
  font-size:.95rem;
}
.p-meta-line .label{ color: var(--muted); font-weight:700; }
.p-meta-line .value{ font-weight:800; }

.p-pricebox{
  border:1px solid var(--border);
  border-radius: 18px;
  padding: .9rem;
  background:#fff;
  box-shadow: var(--shadow);
}
.p-price{
  font-size: 1.6rem;
  font-weight: 900;
}
.p-price .cur{ font-size: 1.05rem; color: var(--muted); font-weight:800; }

.p-badges{ display:flex; flex-wrap:wrap; gap:.45rem; margin-top:.45rem; }
.badge{
  display:inline-block;
  padding:.3rem .55rem;
  border-radius:999px;
  font-weight:900;
  font-size:.8rem;
}
.badge-ok{ background: rgba(20, 140, 95, .12); color: var(--brand-2); }
.badge-off{ background: rgba(150, 20, 20, .12); color: #9b1c1c; }
.badge-pre{ background: rgba(31, 122, 95, .10); color: var(--brand-2); }

.p-stock{ margin-top:.55rem; }
.p-actions{
  margin-top:.9rem;
  display:flex;
  gap:.7rem;
  align-items:flex-end;
}
.qty{
  display:grid;
  gap:.25rem;
  width: 90px;
}
.qty label{ font-size:.85rem; color: var(--muted); font-weight:800; }
.qty input{
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 0 .6rem;
  font-weight:800;
}
.p-note{ margin:.8rem 0 0; font-size:.9rem; color: var(--muted); }

.p-delivery, .p-desc{
  border:1px solid var(--border);
  border-radius: 16px;
  padding: .85rem;
  background:#fff;
}
.p-delivery h2, .p-desc h2{
  margin:0 0 .5rem;
  font-size: 1.05rem;
}
.p-delivery ul{ margin:.4rem 0 0; padding-left:1.1rem; }

.p-back .link{
  text-decoration:none;
  font-weight:900;
  color: var(--brand-2);
}

@media (min-width: 980px){
  .p-grid{
    grid-template-columns: 1.05fr .95fr;
    gap: 1.2rem;
    align-items:start;
  }
  .p-main img, .p-placeholder{ height: 420px; }
}
