/* ========== HEADER ========== */

.jivika-container {
  max-width: 1320px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.jivika-topbar {
  background: #1a2e1a;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  padding: 8px 0;
}

.jivika-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.jivika-topbar a {
  color: rgba(255, 255, 255, 0.9) !important;
  text-decoration: none;
}

.jivika-topbar a:hover {
  color: #50d430 !important;
}

.jivika-topbar .topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 1.5rem;
}

.jivika-topbar .topbar-item i {
  color: #50d430;
  font-size: 14px;
}

.jivika-topbar .topbar-tagline {
  margin: 0;
  font-weight: 500;
}

.jivika-topbar .topbar-social a {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  margin-left: 6px;
  font-size: 14px;
}

.jivika-topbar .topbar-social a:hover {
  background: #50d430;
  color: #fff !important;
}

.jivika-site-header {
  position: relative;
  z-index: 1000;
  width: 100%;
}

#header.jivika-header {
  background: #fff;
  padding: 0;
  width: 100%;
  border-bottom: 1px solid #e8ece8;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease;
}

#header.jivika-header.is-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  animation: jivikaHeaderDown 0.35s ease;
}

@keyframes jivikaHeaderDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

body.jivika-header-sticky {
  padding-top: 0;
}

.jivika-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 72px;
  padding: 8px 0;
}

/* Brand: logo + company name */
.jivika-brand.agriculture-farm-logo {
  text-align: left;
  padding: 0;
  height: auto;
}

.jivika-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none !important;
  max-width: 300px;
}

.jivika-brand .site-logo {
  line-height: 0;
  flex-shrink: 0;
}

.jivika-brand .site-logo img,
.jivika-brand .custom-logo-link img,
.jivika-brand img.custom-logo {
  max-height: 38px;
  width: auto;
  display: block;
}

.jivika-brand .custom-logo-link {
  display: block;
  line-height: 0;
}

.jivika-brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.jivika-brand h1.site-title,
.jivika-brand .site-title {
  font-size: 0.95rem !important;
  font-weight: 700;
  line-height: 1.25;
  padding: 0 !important;
  color: #1a2e1a !important;
  margin: 0;
  letter-spacing: 0.2px;
}

.jivika-brand .site-title a {
  color: #1a2e1a !important;
}

.jivika-main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.jivika-main-nav .primary-navigation ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2px;
}

.jivika-main-nav .primary-navigation a {
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 8px 12px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.jivika-main-nav .primary-navigation a:hover,
.jivika-main-nav .primary-navigation .current-menu-item > a {
  color: #50d430 !important;
  background: rgba(80, 212, 48, 0.1);
}

.jivika-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.jivika-header-actions .header-icon-btn {
  width: 42px;
  height: 42px;
  border: none;
  background: #f4f6f4;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1a2e1a;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
  position: relative;
}

.jivika-header-actions .header-icon-btn:hover {
  background: #50d430;
  color: #fff;
}

.jivika-header-actions .header-icon-btn i {
  font-size: 16px;
}

.jivika-btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  background: #50d430;
  color: #fff !important;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 4px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
}

.jivika-btn-contact:hover {
  background: #1a2e1a;
  color: #fff !important;
  transform: translateY(-1px);
}

.jivika-header-actions .cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  background: #50d430;
  color: #fff;
  font-size: 10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.jivika-header .toggle-menu {
  display: none;
}

/* Front page: full-width solid header above slider (no floating box) */
.page-template-custom-front-page .jivika-site-header,
.home .jivika-site-header,
.front-page .jivika-site-header {
  position: relative;
  z-index: 1000;
}

.page-template-custom-front-page #header.jivika-header,
.home #header.jivika-header,
.front-page #header.jivika-header {
  position: relative;
  background: #fff;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

.page-template-custom-front-page #header.jivika-header.is-sticky,
.home #header.jivika-header.is-sticky,
.front-page #header.jivika-header.is-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.12);
}

/* Override old theme floating header styles */
.page-template-custom-front-page #header,
.home #header,
.front-page #header {
  position: relative !important;
  margin-top: 0 !important;
  padding: 0 !important;
  background: #fff !important;
}

.page-template-custom-front-page .info-header,
.home .info-header,
.front-page .info-header {
  background: transparent !important;
  border-radius: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
}

/* Kill legacy theme floating header box */
.page-template-custom-front-page #header .info-header,
.home #header .info-header {
  border-radius: 0 !important;
}

.page-template-custom-front-page #header,
.page-template-custom-front-page #header.jivika-header {
  background: #fff !important;
}

/* Sticky: whole header block */
.jivika-site-header.is-sticky-wrap .jivika-topbar {
  display: none;
}

body.jivika-header-sticky .jivika-site-header {
  padding-top: 0;
}

/* Mobile menu panel */
#jivika-mobile-menu.sidebar-responsive {
  background: linear-gradient(180deg, #1a2e1a 0%, #0d160d 100%);
}

#jivika-mobile-menu .primary-navigation a {
  color: #fff !important;
}

/* ========== FOOTER ========== */

.jivika-footer-professional {
  background: linear-gradient(180deg, #0f1a0f 0%, #1a2e1a 100%);
  color: rgba(255, 255, 255, 0.85);
  padding: 4rem 0 2rem;
}

.jivika-footer-professional h3 {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0 0 1.25rem;
  margin-bottom: 1rem;
  position: relative;
}

.jivika-footer-professional h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background: #50d430;
  border-radius: 2px;
}

.jivika-footer-brand .footer-logo img,
.jivika-footer-brand .footer-logo-img,
.jivika-footer-brand .custom-logo-link img {
  max-height: 70px;
  width: auto;
  margin-bottom: 1rem;
  display: block;
}

.jivika-footer-brand .footer-about {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.75) !important;
  margin-bottom: 1.25rem;
}

.jivika-footer-social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.jivika-footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: background 0.2s, transform 0.2s;
}

.jivika-footer-social a:hover {
  background: #50d430;
  transform: translateY(-3px);
}

.jivika-footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.jivika-footer-links ul li {
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.jivika-footer-links ul li:last-child {
  border-bottom: none;
}

.jivika-footer-links ul li a {
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s, padding-left 0.2s;
}

.jivika-footer-links ul li a::before {
  content: "\f054";
  font-family: "Font Awesome 7 Free";
  font-weight: 900;
  font-size: 10px;
  color: #50d430;
}

.jivika-footer-links ul li a:hover {
  color: #50d430 !important;
  padding-left: 6px;
}

.jivika-footer-contact .contact-item {
  display: flex;
  gap: 14px;
  margin-bottom: 1rem;
  align-items: flex-start;
}

.jivika-footer-contact .contact-item i {
  width: 42px;
  height: 42px;
  background: rgba(80, 212, 48, 0.2);
  color: #50d430;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
}

.jivika-footer-contact .contact-item strong {
  display: block;
  color: #fff;
  font-size: 13px;
  margin-bottom: 4px;
}

.jivika-footer-contact .contact-item span,
.jivika-footer-contact .contact-item a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75) !important;
  line-height: 1.5;
}

/* Newsletter band */
.jivika-footer-newsletter {
  background: #50d430;
  padding: 2.5rem 0;
}

.jivika-footer-newsletter .newsletter-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.jivika-footer-newsletter h3 {
  color: #fff;
  font-size: 1.5rem;
  padding: 0;
  margin: 0 0 6px;
}

.jivika-footer-newsletter p {
  color: rgba(255, 255, 255, 0.9) !important;
  margin: 0;
  font-size: 15px;
}

.jivika-footer-newsletter .newsletter-form {
  display: flex;
  flex: 1;
  max-width: 480px;
  min-width: 260px;
  gap: 0;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.jivika-footer-newsletter input[type="email"] {
  flex: 1;
  border: none;
  padding: 14px 22px;
  font-size: 14px;
  min-width: 0;
}

.jivika-footer-newsletter button,
.jivika-footer-newsletter input[type="submit"] {
  border: none;
  background: #1a2e1a;
  color: #fff;
  padding: 14px 28px;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}

.jivika-footer-newsletter button:hover,
.jivika-footer-newsletter input[type="submit"]:hover {
  background: #000;
}

/* Widget area (optional) */
#footer.jivika-footer-widgets {
  background: #141f14;
  padding: 2rem 0;
}

#footer.jivika-footer-widgets .widget-title {
  color: #fff;
}

/* Copyright bar */
.jivika-copyright-bar {
  background: #0a100a;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.jivika-copyright-bar .copyright-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.jivika-copyright-bar p {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6) !important;
}

.jivika-copyright-bar p a {
  color: #50d430 !important;
}

.jivika-copyright-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.jivika-copyright-links a {
  color: rgba(255, 255, 255, 0.6) !important;
  font-size: 13px;
}

.jivika-copyright-links a:hover {
  color: #50d430 !important;
}

/* Responsive */
@media (max-width: 991px) {
  .jivika-main-nav,
  .jivika-btn-contact {
    display: none !important;
  }

  .jivika-header .toggle-menu {
    display: block;
  }

  .jivika-topbar .topbar-center {
    display: none;
  }

  .jivika-brand {
    max-width: 160px;
    gap: 0;
  }

  .jivika-brand .site-logo img,
  .jivika-brand .custom-logo-link img,
  .jivika-brand img.custom-logo {
    max-height: 30px;
  }
}

@media (max-width: 767px) {
  .jivika-container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .jivika-header-inner {
    min-height: 56px;
    padding: 6px 0;
    gap: 0.35rem;
  }

  /* Logo only on mobile – hide site name beside logo */
  .jivika-brand .jivika-brand-text {
    display: none !important;
  }

  .jivika-brand .site-title {
    font-size: 0.85rem !important;
  }

  .jivika-brand {
    max-width: none;
    flex: 0 0 auto;
  }

  .jivika-brand.agriculture-farm-logo {
    padding: 4px 0;
    text-align: left;
  }

  .jivika-brand .site-logo img,
  .jivika-brand .custom-logo-link img,
  .jivika-brand img.custom-logo {
    max-height: 28px !important;
    max-width: 110px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
  }

  .agriculture-farm-logo a,
  .agriculture-farm-logo h1.site-title {
    font-size: 0 !important;
    line-height: 0 !important;
  }

  .jivika-header-actions .header-icon-btn {
    width: 38px;
    height: 38px;
  }

  .jivika-header-actions .header-icon-btn i {
    font-size: 14px;
  }

  .jivika-topbar {
    padding: 6px 0;
    font-size: 12px;
  }

  .jivika-topbar-inner {
    justify-content: center;
  }

  .jivika-topbar .topbar-left {
    text-align: center;
    width: 100%;
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
  }

  .jivika-topbar .topbar-item {
    margin: 2px 6px;
    font-size: 11px;
  }

  /* Footer – stacked sections */
  .jivika-footer-professional {
    padding: 2.5rem 0 1.5rem;
  }

  .jivika-footer-professional .row > [class*="col-"] {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    margin-bottom: 1.75rem;
  }

  .jivika-footer-professional .row > [class*="col-"]:last-child {
    margin-bottom: 0;
  }

  .jivika-footer-brand {
    text-align: center;
  }

  .jivika-footer-brand .footer-logo,
  .jivika-footer-brand .footer-logo a {
    display: flex;
    justify-content: center;
  }

  .jivika-footer-brand .footer-logo img,
  .jivika-footer-brand .footer-logo-img {
    max-height: 52px;
    margin-left: auto;
    margin-right: auto;
  }

  .jivika-footer-brand .footer-about {
    font-size: 13px;
    text-align: center;
  }

  .jivika-footer-social {
    justify-content: center;
  }

  .jivika-footer-links,
  .jivika-footer-contact {
    text-align: left;
  }

  .jivika-footer-professional h3 {
    font-size: 1rem;
    padding-bottom: 1rem;
    margin-bottom: 0.75rem;
  }

  .jivika-footer-contact .contact-item {
    gap: 12px;
  }

  .jivika-footer-contact .contact-item i {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }

  .jivika-footer-contact .contact-item span,
  .jivika-footer-contact .contact-item a {
    word-break: break-word;
  }

  .jivika-footer-newsletter {
    padding: 2rem 0;
  }

  .jivika-footer-newsletter h3 {
    font-size: 1.25rem;
  }

  .jivika-footer-newsletter .newsletter-inner {
    flex-direction: column;
    text-align: center;
  }

  .jivika-footer-newsletter .newsletter-form {
    width: 100%;
    max-width: 100%;
    flex-direction: column;
    border-radius: 12px;
  }

  .jivika-footer-newsletter input[type="email"],
  .jivika-footer-newsletter button {
    width: 100%;
    border-radius: 8px;
  }

  .jivika-copyright-bar {
    padding: 1rem 0;
  }

  .jivika-copyright-bar .copyright-inner {
    flex-direction: column;
    text-align: center;
  }

  .jivika-copyright-links {
    justify-content: center;
    gap: 1rem;
  }
}

.custom-logo {
  height: 75px !important;
  max-height: 250px;
  max-width: 250px;
  width: 75px !important;
}

@media (max-width: 480px) {
  .jivika-brand .site-logo img,
  .jivika-brand .custom-logo-link img,
  .jivika-brand img.custom-logo {
    max-height: 24px !important;
    max-width: 95px !important;
  }

  .agriculture-farm-logo a, h1.site-title {
      color: #000;
      font-size: 19px;
      font-weight: bold;
      line-height: 1;
  }

  .custom-logo {
      height: 53px !important;
      width: 56px !important;
  }
  
  /* 
  .jivika-brand-text{
    display: none;
  } */

  .jivika-header-actions {
    gap: 4px;
  }

  .jivika-header-actions .header-icon-btn {
    width: 36px;
    height: 36px;
  }
}
