/* Custom Header CSS - Kemperija */

.kemperi-custom-header * {
  box-sizing: border-box;
}

/* Top bar */
.kemperi-top-bar {
  background: #f8f8f8;
  padding: 5px 0;
  font-size: 12px;
  border-bottom: 1px solid #e0e0e0;
}
.mobile-menu-list .sub-menu a:focus {
  outline: none;
}
.mobile-menu-list > li > a:focus {
  border: none !important;
  outline: none;
}
.kemperi-top-bar .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.top-bar-content {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.top-bar-social {
  display: flex;
  align-items: center;
  gap: 15px;
}

.social-link {
  color: #666;
  text-decoration: none;
  font-size: 14px;
}

.language-switcher .flag {
  font-size: 14px;
  cursor: pointer;
}

/* Main header */
.kemperi-main-header {
  background: #cbcbcb;
  padding: 20px 0 12px 0;
  position: relative;
  z-index: 1000;
}

.email-icon,
.phone-icon {
  height: 24px;
  width: 24px;
}

.email-icon svg path,
.phone-icon svg path {
  fill: #272727;
}

.home .email-icon svg path,
.home .phone-icon svg path {
  fill: #ffffff;
}

.kemperi-main-header .container {
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 40px;
}

.contact-item a {
  font-family: "Source Sans 3";
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: 0.84px;
  color: #272727;
}

.home .contact-item a {
  color: #f2f2f2;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #333;
}

.logo-img {
  height: 49px !important;
  margin-right: 10px;
}

.logo-text {
  font-size: 24px;
  font-weight: bold;
  color: #2c5aa0;
  letter-spacing: 2px;
}

/* Desktop menu  */
.desktop-menu {
  display: none !important;
}

/* Mobile menu button */
.mobile-menu-toggle {
  gap: 4px;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
  border-radius: 8px;
  background: #525252;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus,
.mobile-menu-toggle:active {
  background: #525252 !important;
}

/* Mobile menu overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  z-index: 9999;
  transition: right 0.3s ease;
  display: flex;
  justify-content: flex-end;
}

.mobile-menu-overlay.active {
  right: 0;
}

.mobile-menu-container {
  width: 90%;
  max-width: 720px;
  max-height: 820px;
  position: relative;
  overflow-y: auto;
  padding: 32px 32px;
  border-radius: 8px;
  background: linear-gradient(240deg, #272727 7.12%, #484848 94.25%);
}

/* Mobile menu header */
.mobile-menu-header {
  display: flex;
  align-items: center;
  gap: 28px;
  justify-content: flex-end;
}

.menu-header-social-div {
  display: flex;
  gap: 28px;
  align-items: center;
}

.language-switcher img {
  border-radius: 999px;
}

.tagline-section {
  flex: 1;
}

.tagline-label {
  font-size: 14px;
  margin-bottom: 5px;
  display: block;
}

.tagline-input {
  width: 100%;
  padding: 8px 12px;
  border: none;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  transition: all 0.3s;
}

.tagline-input:focus {
  outline: none;
  background: white;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}

.tagline-input.copy-success {
  background: #4caf50;
  color: white;
}

.mobile-menu-close {
  border: none;
  cursor: pointer;
  border-radius: 8px;
  background: #525252;
  padding: 5px;
  width: 32px;
  height: 32px;
}
.mobile-menu-close:hover {
  background: #525252 !important;
}

.mobile-menu-close svg {
  transition: transform 0.5s;
}

.mobile-menu-close:hover svg {
  transform: rotate(90deg);
}

/* Mobile navigation */
.mobile-navigation {
  margin-top: 22px;
}

.mobile-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.mobile-menu-list > li > a {
  display: flex;
  align-items: center;
  text-decoration: none;
  padding-bottom: 9px;
  color: #f2f2f2;
  font-family: "Source Sans 3";
  font-size: 30px;
  font-style: normal;
  font-weight: 500;
  line-height: 36px;
  letter-spacing: 1.8px;
  gap: 8px;
}

.mobile-menu-list > li > a:hover {
  padding-left: 32px;
}

/* Submenu */
.mobile-menu-list .sub-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  padding-top: 13px;
  display: none;
  padding-bottom: 8px;
  padding-left: 32px;
}

.mobile-menu-list .sub-menu.active {
  display: block;
}

.mobile-menu-list .sub-menu a {
  display: block;
  text-decoration: none;
  position: relative;
  color: #f2f2f2;
  font-family: "Source Sans 3";
  font-size: 24px;
  font-style: normal;
  font-weight: 500;
  line-height: 150%;
  letter-spacing: 1.44px;
  padding-bottom: 12px;
}

.mobile-menu-list .sub-menu a:hover {
  padding-left: 32px;
}

/* Submenu arrow */
.submenu-arrow {
  transition: transform 0.3s;
  display: flex;
  align-items: center;
}

.submenu-arrow.active {
  transform: rotate(90deg);
}

.header-social-cart .social-link,
.header-social-cart .cart-link {
  text-decoration: none;
  padding: 4px;
  transition: all 0.3s;
  border-radius: 8px;
  background: #525252;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}
.header-social-div {
  display: flex;
  gap: 4px;
}

.header-social-cart .social-link:hover,
.header-social-cart .cart-link:hover {
  background: #525252;
}

/* Cart count bubble */
.cart-link {
  position: relative;
}

.cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  background: #e74c3c;
  color: white;
  font-size: 11px;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  line-height: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .header-contacts {
    display: none;
  }

  .kemperi-top-bar {
    display: none;
  }

  .header-right {
    gap: 10px;
    display: flex;
  }

  .header-social-cart {
    gap: 8px;
  }

  .kemperi-main-header {
    padding: 10px 0;
  }
}

@media (max-width: 480px) {
  .header-social-cart .social-link,
  .header-social-cart .cart-link {
    font-size: 14px;
    padding: 6px;
  }

  .logo-text {
    font-size: 18px;
  }

  .header-right {
    gap: 8px;
  }

  .header-social-cart {
    gap: 5px;
  }
}

.header-contacts {
  gap: 12px;
  font-size: 14px;
  display: flex;
  align-items: center;
  line-height: 24px;
}

.header-social-cart {
  gap: 28px;
  display: flex;
  align-items: center;
}

.header-right {
  gap: 25px;
  display: flex;
  align-items: center;
}

.contact-item {
  border-radius: 8px;
  background: #e5e5e5;
  padding: 4px 12px;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  color: #272727;
}

.home .contact-item {
  background: #525252;
}

.home .contact-item:hover {
  background: #525252;
}

.header-cart-div {
  display: flex;
  gap: 8px;
  align-items: center;
}

a.my-account-link {
  border-radius: 8px;
  background: #525252;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 1023px) {
  .header-right {
    gap: 12px;
  }
  .header-social-cart {
    gap: 12px;
  }
}

@media (max-width: 970px) {
  .header-contacts {
    display: none;
  }
  .header-social-div {
    display: none;
  }
  .mobile-menu-container .header-social-div {
    display: flex;
  }

  .mobile-menu-container .header-contacts {
    display: flex;
  }
}

@media (max-width: 767px) {
  .kemperi-top-bar {
    display: none !important;
  }

  .kemperi-main-header {
    padding: 10px 0;
  }

  .logo-text {
    font-size: 20px;
  }

  .mobile-menu-container {
    width: 100%;
    padding: 24px;
  }

  .header-content {
    gap: 10px;
  }

  .mobile-menu-list > li > a {
    padding-bottom: 0px;
    font-size: 24px;
    line-height: 30px;
  }
  .mobile-menu-list .sub-menu a {
    font-size: 20px;
    line-height: 28px;
  }
  .mobile-menu-container .menu-header-social-div {
    gap: 12px;
    flex-wrap: wrap;
  }
  .mobile-menu-container .mobile-menu-header {
    gap: 12px;
    align-items: flex-start;
    display: grid;
    grid-template-columns: 1fr 32px;
  }
  .mobile-menu-container .header-contacts {
    flex-wrap: wrap;
  }
  .header-social-cart {
    display: none;
  }
  .mobile-menu-container .header-social-cart {
    display: flex;
  }
  .kemperi-main-header .container {
    padding: 0 16px;
  }
}

@media (max-width: 767px) {
  .contact-info {
    display: none;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

.mobile-menu-overlay.active .mobile-menu-container {
  animation: slideInRight 0.3s ease;
}

.mobile-contact-info {
  margin-bottom: 20px;
}

.mobile-contact-info p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

.mobile-social-links {
  display: flex;
  gap: 15px;
  justify-content: center;
}

/* No menu notice styling */
.no-menu-notice {
  text-align: center;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  margin: 20px 0;
}

.no-menu-notice .button {
  display: inline-block;
  background: #7c3aed;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  margin-top: 10px;
}

.site-header.kemperi-custom-header {
  position: relative;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 999;
}

.home .site-header.kemperi-custom-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  box-shadow: none;
  z-index: 1000;
}

.home .site-header.kemperi-custom-header .kemperi-main-header {
  background: transparent;
}

.home .site-header.kemperi-custom-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 99999999999999999;
}

.home .site-header.kemperi-custom-header.scrolled .kemperi-main-header {
  background: transparent;
}

.home #content .site-content > .hero-section,
.home #content .site-content > .wp-block-group:first-child,
.home #content .site-content > .entry-content > *:first-child {
  padding-top: 100px;
}

@media (max-width: 768px) {
  .home #content .site-content > .hero-section,
  .home #content .site-content > .wp-block-group:first-child,
  .home #content .site-content > .entry-content > *:first-child {
    padding-top: 80px;
  }
}

.site-header.kemperi-custom-header {
  transition: all 0.3s ease;
}

.site-header.kemperi-custom-header .kemperi-main-header {
  transition: all 0.3s ease;
}

/* ==============================================
   STICKY HEADER - VISIEMS PUSLAPIAMS
   ============================================== */

/* Bazinis sticky header stilius visiems puslapiams */
.site-header.kemperi-custom-header {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: all 0.3s ease;
}

/* Transparent header tik homepage puslapyje */
.home .site-header.kemperi-custom-header {
  background: transparent;
  box-shadow: none;
}

.home .site-header.kemperi-custom-header .kemperi-main-header {
  background: transparent;
}

/* Header scrolled state - kai user scrollina homepage */
.home .site-header.kemperi-custom-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.home .site-header.kemperi-custom-header.scrolled .kemperi-main-header {
  background: transparent;
}

/* ==============================================
   CONTENT PADDING - KAD CONTENT NEBŪTŲ PO HEADER
   ============================================== */

/* Visiems puslapiams pridedame padding-top */
.site {
  padding-top: 100px; /* Reguliuokite pagal jūsų header aukštį */
}

/* Homepage specifinis padding */
.home .site {
  padding-top: 0; /* Homepage neturi papildomo padding, nes content prasideda iš viršaus */
}

/* Homepage hero sekcijos padding */
.home #content .site-content > .hero-section,
.home #content .site-content > .wp-block-group:first-child,
.home #content .site-content > .entry-content > *:first-child,
.home .ast-container > *:first-child {
  padding-top: 120px; /* Didesnis padding homepage hero sekcijai */
}

/* Astra theme specific selectors */
.home .ast-single-post #primary,
.home .ast-page-builder-template #primary,
.home .site-content > .ast-container:first-child {
  padding-top: 120px;
}

/* ==============================================
   MOBILE RESPONSIVE STICKY
   ============================================== */

@media (max-width: 768px) {
  .site {
    padding-top: 80px; /* Mažesnis padding mobile */
  }

  .home .site {
    padding-top: 0;
  }

  .home #content .site-content > .hero-section,
  .home #content .site-content > .wp-block-group:first-child,
  .home #content .site-content > .entry-content > *:first-child,
  .home .ast-container > *:first-child {
    padding-top: 90px; /* Mažesnis padding mobile hero */
  }

  .home .ast-single-post #primary,
  .home .ast-page-builder-template #primary,
  .home .site-content > .ast-container:first-child {
    padding-top: 90px;
  }
}

/* ==============================================
   SCROLL BEHAVIOR JAVASCRIPT SUPPORT
   ============================================== */

/* Smooth transitions kai keičiasi header state */
.site-header.kemperi-custom-header {
  transition: all 0.3s ease;
}

.site-header.kemperi-custom-header .kemperi-main-header {
  transition: all 0.3s ease;
}

/* Header hide/show on scroll (optional - pridėkite jei norite) */
.site-header.kemperi-custom-header.header-hidden {
  transform: translateY(-100%);
}

.site-header.kemperi-custom-header.header-visible {
  transform: translateY(0);
}

/* ==============================================
   ADMIN BAR COMPATIBILITY
   ============================================== */

/* WordPress admin bar compatibility */
.admin-bar .site-header.kemperi-custom-header {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar .site-header.kemperi-custom-header {
    top: 46px;
  }
}

/* ==============================================
   ADDITIONAL FIXES
   ============================================== */

/* Užtikrinti, kad header netrukdytų dropdown menu */
.site-header.kemperi-custom-header {
  contain: layout;
}

/* Mobile menu overlay aukštesnis z-index */
.mobile-menu-overlay {
  z-index: 9999;
}

/* Pataisymas dropdown menu, jei naudojate */
.dropdown-menu,
.sub-menu {
  z-index: 1001;
}
