/* ==== GLOBAL ==== */
html, body {
  height: 100%;
}
body {
  display: flex;
  flex-direction: column;
  background: #f8f9fa;
  font-family: "Inter", sans-serif;
  color: #1f2933;
}
main {
  flex: 1;
}
a { color: #1c7c54; }
a:hover { color: #155a3e; }

/* ==== NAVBAR ==== */
.main-nav {
  background: #f8f9fa !important;
  border-bottom: 1px solid #e5e7eb60;
  padding: 0.5rem 0 !important;
}
.navbar-nav .nav-link {
  font-weight: 500;
  padding: 0.45rem 0.75rem;
}
.navbar-nav .nav-link.active {
  color: #1c7c54 !important;
  position: relative;
}
.navbar-nav .nav-link.active::after {
  content: "";
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0;
  height: 2px;
  background: #1c7c54;
  border-radius: 999px;
}
.navbar-brand img {
    height: 60px !important;
}
/* ==== HERO ==== */
.hero-wrap {
  background: #fff;
  border-radius: 1.6rem;
  padding: 2.4rem 2.2rem;
  box-shadow: 0 18px 45px rgba(15,23,42,0.08);
  border: 1px solid rgba(148,163,184,0.35);
}
.hero-title {
  font-size: 2rem;
  font-weight: 700;
}
.hero-text {
  color: #4b5563;
}
.hero-list li {
  margin-bottom: 0.3rem;
}
.hero-image {
  width: 100%;
  height: auto;
  border-radius: 1.2rem;
  box-shadow: 0 12px 35px rgba(15,23,42,0.15);
}

/* ==== FEATURE CARDS ==== */
.feature-card {
  background: #ffffff;
  border-radius: 1.1rem;
  padding: 1.1rem 1.3rem;
  box-shadow: 0 12px 30px rgba(15,23,42,0.06);
  border: 1px solid rgba(226,232,240,0.9);
  transition: transform .18s ease, box-shadow .18s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(15,23,42,0.10);
}

/* ==== DARK FOOTER ==== */
.footer-dark {
  background: #e8ecef;
  border-top: 1px solid #d1d7de;
  padding: 16px 20px;
  text-align: center;
  color: #50575e;
  font-size: 0.9rem;
}
.footer-dark small {
  margin: 0;
  padding: 0;
}

/* ==== MICRO ANIMATIONS ==== */
.fade-in {
  opacity: 0;
  animation: fadeIn .8s forwards;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.fade-in-up {
  opacity: 0;
  transform: translateY(12px);
  animation: fadeInUp .8s forwards;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==== PRODUCT PAGE: ГОЛЯМАТА СНИМКА ==== */
/* (product.php – детайлна страница) */
.product-image-main {
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden;
}
.product-image-main img {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  margin: 0 auto;
}

/* ==== PRODUCT LIST: КАРТИЧКИ В products.php ==== */

/* списъкът – вертикални карти */
.product-list {
  display: flex;
  flex-direction: column;
  gap: 2.1rem;   /* разстояние между картите */
}

/* самата карта – по-оформена и отделена */
.product-card {
  border-radius: 1.1rem;
  border: 1px solid rgba(226,232,240,0.95);
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(15,23,42,0.06);
  overflow: hidden;
}

/* текстовата част вътре */
.product-card .card-body {
  padding: 1.15rem 1.4rem;
}

.product-card-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
}

.product-card-image-wrapper img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 340px;       /* ТУК контролираш размера на десктоп */
  object-fit: contain;
  margin: 0 auto;
}

/* На мобилни – махаме ограничението, да си е голяма снимка над текста */
@media (max-width: 767.98px) {
  .product-card-image-wrapper {
    padding: 0px;
  }
  .product-card-image-wrapper img {
    max-height: none;      /* НЯМА лимит на височината на телефон */
  }
}

