/* ─── Bio Bulgaria – Theme Variables ────────────────────────────────── */
:root {
  --bio-green:        #2d6a4f;
  --bio-green-mid:    #40916c;
  --bio-green-light:  #74c69d;
  --bio-green-pale:   #d8f3dc;
  --bio-cream:        #f8f5ef;
  --bio-brown:        #6b4f3a;
  --bio-text:         #1e1e1e;
  --bio-muted:        #6c757d;
  --bio-white:        #ffffff;
  --bio-border:       #e0ddd5;
  --bio-shadow:       0 4px 20px rgba(45, 106, 79, 0.10);
  --bio-shadow-hover: 0 8px 32px rgba(45, 106, 79, 0.18);
  --bio-radius:       14px;
  --bio-radius-sm:    8px;
  --bio-transition:   0.22s ease;
}

/* ─── Base ───────────────────────────────────────────────────────────── */
html {
  font-size: 16px;
  position: relative;
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bio-cream);
  color: var(--bio-text);
  margin-bottom: 0;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--bio-green);
}

a {
  color: var(--bio-green-mid);
  text-decoration: none;
  transition: color var(--bio-transition);
}
a:hover { color: var(--bio-green); }

/* ─── Navbar ─────────────────────────────────────────────────────────── */
.bio-navbar {
  background: var(--bio-white) !important;
  border-bottom: 2px solid var(--bio-green-pale);
  padding: 0.75rem 0;
  box-shadow: 0 2px 12px rgba(45,106,79,0.08);
}

.bio-navbar .navbar-brand {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--bio-green) !important;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.bio-navbar .nav-link {
  color: var(--bio-text) !important;
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.45rem 0.9rem !important;
  border-radius: var(--bio-radius-sm);
  transition: background var(--bio-transition), color var(--bio-transition);
}
.bio-navbar .nav-link:hover,
.bio-navbar .nav-link.active {
  background: var(--bio-green-pale);
  color: var(--bio-green) !important;
}

.bio-navbar .dropdown-menu {
  border: 1px solid var(--bio-border);
  border-radius: var(--bio-radius-sm);
  box-shadow: var(--bio-shadow);
  padding: 0.5rem;
}
.bio-navbar .dropdown-item {
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  color: var(--bio-text);
  transition: background var(--bio-transition);
}
.bio-navbar .dropdown-item:hover {
  background: var(--bio-green-pale);
  color: var(--bio-green);
}

.bio-navbar .btn-nav-register {
  background: var(--bio-green);
  color: var(--bio-white) !important;
  border-radius: 50px;
  padding: 0.35rem 1.1rem !important;
  font-weight: 600;
  font-size: 0.88rem;
}
.bio-navbar .btn-nav-register:hover {
  background: var(--bio-green-mid);
}

.bio-navbar .btn-nav-login {
  border: 2px solid var(--bio-green);
  color: var(--bio-green) !important;
  border-radius: 50px;
  padding: 0.3rem 1.1rem !important;
  font-weight: 600;
  font-size: 0.88rem;
}
.bio-navbar .btn-nav-login:hover {
  background: var(--bio-green-pale);
}

/* ─── Hero ───────────────────────────────────────────────────────────── */
.bio-hero {
  background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 50%, #40916c 100%);
  color: var(--bio-white);
  padding: 5rem 1rem 4.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.bio-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.bio-hero h1 {
  color: var(--bio-white);
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
}
.bio-hero p {
  font-size: 1.18rem;
  opacity: 0.9;
  max-width: 560px;
  margin: 0 auto 2rem;
}
@media (max-width: 767.98px) {
  .bio-hero {
    padding: 2.5rem 1rem 2rem;
  }
  .bio-hero h1 {
    font-size: 1.6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
  }
  .bio-hero-icon {
    font-size: 2.5rem;
    line-height: 1;
  }
  .bio-hero p {
    font-size: 0.97rem;
  }
}

/* ─── Feature Badges on Hero ─────────────────────────────────────────── */
.bio-hero-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}
.bio-hero-badge {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  border-radius: 50px;
  padding: 0.3rem 0.95rem;
  font-size: 0.85rem;
  font-weight: 500;
  backdrop-filter: blur(4px);
}

/* ─── Buttons ────────────────────────────────────────────────────────── */
.btn-bio {
  background: var(--bio-green);
  color: var(--bio-white);
  border: none;
  border-radius: 50px;
  padding: 0.6rem 1.6rem;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background var(--bio-transition), box-shadow var(--bio-transition), transform var(--bio-transition);
  box-shadow: 0 2px 8px rgba(45,106,79,0.25);
}
.btn-bio:hover {
  background: var(--bio-green-mid);
  color: var(--bio-white);
  box-shadow: 0 4px 16px rgba(45,106,79,0.35);
  transform: translateY(-1px);
}

.btn-bio-outline {
  background: transparent;
  color: var(--bio-green);
  border: 2px solid var(--bio-green);
  border-radius: 50px;
  padding: 0.55rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--bio-transition);
}
.btn-bio-outline:hover {
  background: var(--bio-green);
  color: var(--bio-white);
  transform: translateY(-1px);
}

.btn-viber {
  background: #7360f2;
  color: #fff;
  border: 2px solid #7360f2;
}

.btn-viber:hover {
  background: #5b48d6;
  border-color: #5b48d6;
  color: #fff;
  transform: translateY(-1px);
}

.btn-bio-sm {
  padding: 0.35rem 1rem;
  font-size: 0.83rem;
  border-radius: 50px;
}

.btn-bio-danger {
  background: #d62828;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 0.55rem 1.5rem;
  font-weight: 600;
  transition: background var(--bio-transition), transform var(--bio-transition);
}
.btn-bio-danger:hover {
  background: #a01010;
  color: #fff;
  transform: translateY(-1px);
}

.btn-bio-warning {
  background: #e07b00;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 0.35rem 1rem;
  font-weight: 600;
  font-size: 0.83rem;
  transition: background var(--bio-transition);
}
.btn-bio-warning:hover { background: #b86200; color: #fff; }

/* ─── Product Cards ──────────────────────────────────────────────────── */
.bio-card {
  background: var(--bio-white);
  border: 1px solid var(--bio-border);
  border-radius: var(--bio-radius);
  overflow: hidden;
  transition: box-shadow var(--bio-transition), transform var(--bio-transition);
  box-shadow: var(--bio-shadow);
}
.bio-card:hover {
  box-shadow: var(--bio-shadow-hover);
  transform: translateY(-4px);
}
.bio-card .card-img-top {
  height: 210px;
  object-fit: cover;
}
.bio-card .card-img-placeholder {
  height: 210px;
  background: linear-gradient(135deg, var(--bio-green-pale) 0%, #eaf7ee 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}
.bio-card .card-body {
  padding: 1.1rem 1.2rem 0.6rem;
}
.bio-card .card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--bio-text);
  margin-bottom: 0.25rem;
}
.bio-card .card-category {
  font-size: 0.78rem;
  color: var(--bio-muted);
  margin-bottom: 0.45rem;
}
.bio-card .card-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--bio-green);
}
.bio-card .card-producer {
  font-size: 0.78rem;
  color: var(--bio-muted);
  margin-bottom: 0.1rem;
}
.bio-card .card-location {
  font-size: 0.78rem;
  color: var(--bio-muted);
  margin-bottom: 0;
}
.bio-card .card-footer {
  background: transparent;
  border-top: 1px solid var(--bio-border);
  padding: 0.7rem 1.2rem;
  display: flex;
  gap: 0.5rem;
}

/* ─── Search Bar ─────────────────────────────────────────────────────── */
.bio-search-bar {
  background: var(--bio-white);
  border: 1px solid var(--bio-border);
  border-radius: var(--bio-radius);
  padding: 1.2rem 1.4rem;
  box-shadow: var(--bio-shadow);
  margin-bottom: 2rem;
}

.bio-search-bar .form-control,
.bio-search-bar .form-select {
  border-radius: var(--bio-radius-sm);
  border: 1.5px solid var(--bio-border);
  background: var(--bio-cream);
  font-size: 0.92rem;
  color: var(--bio-text);
  padding: 0.55rem 0.9rem;
}
.bio-search-bar .form-control:focus,
.bio-search-bar .form-select:focus {
  border-color: var(--bio-green-mid);
  box-shadow: 0 0 0 3px rgba(64, 145, 108, 0.18);
  background: #fff;
}

/* ─── Page Header Bar ────────────────────────────────────────────────── */
.bio-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--bio-green-pale);
}
.bio-page-header h2 {
  margin-bottom: 0;
  font-size: 1.7rem;
}

/* ─── Form Card ──────────────────────────────────────────────────────── */
.bio-form-card {
  background: var(--bio-white);
  border: 1px solid var(--bio-border);
  border-radius: var(--bio-radius);
  padding: 2rem 2.2rem;
  box-shadow: var(--bio-shadow);
}
.bio-form-card .form-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--bio-green);
  margin-bottom: 0.35rem;
}
.bio-form-card .form-control,
.bio-form-card .form-select {
  border-radius: var(--bio-radius-sm);
  border: 1.5px solid var(--bio-border);
  font-size: 0.93rem;
  background: var(--bio-cream);
  transition: border-color var(--bio-transition), box-shadow var(--bio-transition);
}
.bio-form-card .form-control:focus,
.bio-form-card .form-select:focus {
  border-color: var(--bio-green-mid);
  box-shadow: 0 0 0 3px rgba(64,145,108,0.18);
  background: #fff;
}
.bio-form-card .form-text {
  color: var(--bio-muted);
  font-size: 0.8rem;
}

/* ─── Product Detail Page ────────────────────────────────────────────── */
.bio-detail-card {
  background: var(--bio-white);
  border-radius: var(--bio-radius);
  border: 1px solid var(--bio-border);
  box-shadow: var(--bio-shadow);
  padding: 2rem;
}
.bio-detail-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bio-green-pale);
  color: var(--bio-green);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.28rem 0.8rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}
.bio-detail-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--bio-green);
}
.bio-detail-producer {
  font-size: 0.88rem;
  color: var(--bio-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ─── Carousel ───────────────────────────────────────────────────────── */
.bio-carousel {
  border-radius: var(--bio-radius);
  overflow: hidden;
  box-shadow: var(--bio-shadow);
  margin-bottom: 1.5rem;
  background: var(--bio-white);
}
.bio-carousel .carousel-item {
  height: 400px;
  background: var(--bio-white);
}
.bio-carousel img {
  height: 400px;
  object-fit: contain;
  width: 100%;
  background: var(--bio-white);
}

/* ─── Comments ───────────────────────────────────────────────────────── */
.bio-comment-box {
  background: var(--bio-white);
  border: 1px solid var(--bio-border);
  border-radius: var(--bio-radius);
  padding: 1.5rem;
  box-shadow: var(--bio-shadow);
  margin-bottom: 2rem;
}
.bio-comment-item {
  background: var(--bio-cream);
  border-left: 3px solid var(--bio-green-light);
  border-radius: 0 var(--bio-radius-sm) var(--bio-radius-sm) 0;
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
}
.bio-comment-item p {
  margin-bottom: 0.2rem;
  font-size: 0.93rem;
}
.bio-comment-item small {
  font-size: 0.77rem;
  color: var(--bio-muted);
}

/* ─── Admin Tables ───────────────────────────────────────────────────── */
.bio-admin-table {
  background: var(--bio-white);
  border-radius: var(--bio-radius);
  overflow: hidden;
  box-shadow: var(--bio-shadow);
  border: 1px solid var(--bio-border);
}
.bio-admin-table thead {
  background: var(--bio-green);
  color: var(--bio-white);
}
.bio-admin-table thead th {
  font-weight: 600;
  font-size: 0.87rem;
  padding: 0.85rem 1rem;
  border: none;
}
.bio-admin-table tbody tr {
  border-bottom: 1px solid var(--bio-border);
  transition: background var(--bio-transition);
}
.bio-admin-table tbody tr:hover {
  background: var(--bio-green-pale);
}
.bio-admin-table tbody td {
  padding: 0.8rem 1rem;
  font-size: 0.9rem;
  vertical-align: middle;
}

/* ─── Mobile Product Cards ───────────────────────────────────────────── */
.bio-mobile-card {
  background: var(--bio-white);
  border: 1px solid var(--bio-border);
  border-radius: var(--bio-radius);
  box-shadow: var(--bio-shadow);
  display: flex;
  gap: 0.85rem;
  padding: 0.85rem;
  align-items: flex-start;
}
.bio-mobile-card img,
.bio-mobile-card .bio-mobile-card-thumb {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: var(--bio-radius-sm);
  flex-shrink: 0;
}
.bio-mobile-card .bio-mobile-card-thumb {
  background: var(--bio-green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}
.bio-mobile-card-body {
  flex: 1;
  min-width: 0;
}
.bio-mobile-card-body .card-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bio-mobile-card-body .card-meta {
  font-size: 0.78rem;
  color: var(--bio-muted);
  margin-bottom: 0.1rem;
}
.bio-mobile-card-body .card-price {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--bio-green);
  margin-bottom: 0.4rem;
}
.bio-mobile-card-actions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

/* ─── Alert / Toast ──────────────────────────────────────────────────── */
.bio-alert-success {
  background: #d8f3dc;
  color: #1b4332;
  border: 1px solid #b7e4c7;
  border-radius: var(--bio-radius-sm);
  padding: 0.75rem 1.2rem;
  font-weight: 500;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bio-badge {
  display: inline-block;
  padding: 0.28rem 0.75rem;
  border-radius: 50px;
  font-size: 0.77rem;
  font-weight: 600;
}
.bio-badge-green { background: var(--bio-green-pale); color: var(--bio-green); }
.bio-badge-warning { background: #fff3cd; color: #856404; }
.bio-badge-grey { background: #e9ecef; color: #495057; }

/* ─── Footer ─────────────────────────────────────────────────────────── */
.bio-footer {
  background: #1b4332;
  color: rgba(255,255,255,0.75);
  padding: 2.5rem 0 1.5rem;
  margin-top: 4rem;
  font-size: 0.88rem;
}
.bio-footer .footer-brand {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.3rem;
}
.bio-footer a {
  color: rgba(255,255,255,0.6);
  transition: color var(--bio-transition);
}
.bio-footer a:hover { color: var(--bio-green-light); }
.bio-footer-divider {
  border-color: rgba(255,255,255,0.12);
  margin: 1.2rem 0;
}
.bio-footer-bottom {
  color: rgba(255,255,255,0.45);
  font-size: 0.8rem;
}

.pwa-install-prompt {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(27, 67, 50, 0.45);
  backdrop-filter: blur(6px);
}

.pwa-install-prompt[hidden] {
  display: none !important;
}

.pwa-install-card {
  width: min(100%, 28rem);
  background: var(--bio-white);
  border-radius: 24px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 24px 55px rgba(45,106,79,0.22);
}

.pwa-install-icon {
  font-size: 3rem;
  margin-bottom: 0.75rem;
}

.pwa-install-title {
  margin-bottom: 0.75rem;
}

.pwa-install-text {
  margin: 0 auto 1.5rem;
  max-width: 22rem;
  color: var(--bio-muted);
}

.pwa-install-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 575.98px) {
  .pwa-install-card {
    padding: 1.5rem;
  }

  .pwa-install-actions {
    flex-direction: column;
  }

  .pwa-install-actions .btn {
    width: 100%;
  }
}

/* ─── Misc Utilities ─────────────────────────────────────────────────── */
.page-wrapper {
  min-height: calc(100vh - 220px);
  padding: 2.5rem 0;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--bio-green);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.section-title::after {
  content: '';
  flex: 1;
  height: 2px;
  background: var(--bio-green-pale);
  border-radius: 2px;
}

/* ─── Image preview grid (edit page) ────────────────────────────────── */
.bio-img-thumb {
  width: 100px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--bio-radius-sm);
  border: 2px solid var(--bio-border);
  transition: border-color var(--bio-transition);
}
.bio-img-thumb:hover { border-color: var(--bio-green-mid); }

/* ─── Focus ring override ────────────────────────────────────────────── */
.btn:focus, .form-control:focus, .form-select:focus, .form-check-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(64,145,108,0.22);
}
