/* Custom Navbar Styles - DESTROY LONELY inspired */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;500;700&display=swap');

/* Hide old navbar elements */
.navigation .grid.is--nav {
  display: none !important;
}

/* Override navbar background */
.navigation {
  background-color: #000000 !important;
  position: fixed !important;
  top: 0 !important;
  left: 0;
  right: 0;
  z-index: 9999 !important;
  transition: top 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  will-change: top;
}

.navigation.navbar-hidden {
  top: -200px !important;
  box-shadow: none !important;
  pointer-events: none !important;
}

.navigation.scrolled {
  background-color: rgba(0, 0, 0, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.navigation .nav_padding {
  background-color: transparent !important;
  padding: 1.25rem 2rem !important;
  position: relative;
  transition: padding 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navigation.scrolled .nav_padding {
  padding: 0.85rem 2rem !important;
}

/* Diary Icon Left Side */
.diary-icon-left {
  position: absolute;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10004;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.diary-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.diary-link::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
}

.diary-link:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #fff;
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.diary-link:hover::before {
  width: 100%;
  height: 100%;
}

.diary-link:active {
  transform: scale(0.95);
}

.diary-svg-icon {
  width: 22px;
  height: 22px;
  color: #fff;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.diary-link:hover .diary-svg-icon {
  stroke-width: 2.5;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.8));
}

/* Mobile optimizations - Hide diary icon in navbar, show only in hamburger menu */
@media screen and (max-width: 768px) {
  .diary-icon-left {
    display: none !important;
  }
}


/* Animation on page load */
@keyframes diaryIconPulse {
  0%, 100% {
    transform: translateY(-50%) scale(1);
  }
  50% {
    transform: translateY(-50%) scale(1.05);
  }
}

.diary-icon-left {
  animation: diaryIconPulse 2s ease-in-out infinite;
}

.diary-link:hover {
  animation: none;
}

/* New centered navbar container */
.new-nav-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  max-width: 100%;
  margin: 0 auto;
  transition: gap 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.navigation.scrolled .new-nav-container {
  gap: 0;
}

.new-nav-logo {
  text-align: center;
  position: relative;
  z-index: 10003;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 1;
  transform: scale(1);
  max-height: 100px;
  overflow: hidden;
  will-change: opacity, transform, max-height;
}

.new-nav-logo img {
  height: 45px;
  display: block;
}

/* Logo más pequeño en mobile */
@media screen and (max-width: 768px) {
  .new-nav-logo img {
    height: 32px;
  }
}

.navigation.scrolled .new-nav-logo {
  opacity: 1 !important;
  transform: scale(0.75) !important;
  max-height: 100px !important;
}

.navigation.scrolled .new-nav-menu {
  opacity: 0 !important;
  transform: translateY(-10px) !important;
  max-height: 0 !important;
  margin: 0 !important;
  pointer-events: none !important;
}

.new-brand-name {
  font-family: 'Noto Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #ffffff;
  margin: 0;
  text-transform: uppercase;
  transition: font-size 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navigation.scrolled .new-brand-name {
  font-size: 0.85rem;
}

.new-nav-menu {
  display: flex;
  gap: 3rem;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  position: relative;
  z-index: 10003;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 1;
  transform: translateY(0);
  max-height: 100px;
  overflow: hidden;
  will-change: opacity, transform, max-height;
}

.new-nav-link {
  font-family: 'Noto Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: #ffffff;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.3s ease;
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.new-nav-link:hover {
  opacity: 0.7;
  transform: translateY(-2px);
}

/* SVG Icons en navbar */
.nav-svg-icon {
  height: 18px;
  width: auto;
  max-width: 100px;
  filter: invert(1) brightness(1);
  transition: all 0.3s ease;
  display: block;
}

.navigation.scrolled .nav-svg-icon {
  height: 14px;
}

.new-nav-link:hover .nav-svg-icon {
  filter: brightness(1.2);
  transform: scale(1.1);
}


/* Cart icon positioning */
.new-cart-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10001;
}

.new-cart-icon .cart-button {
  background-color: transparent !important;
  padding: 0.5rem !important;
  border: none;
  cursor: pointer;
  position: relative;
  display: inline-flex;
  align-items: center;
  transition: opacity 0.3s ease;
}

.new-cart-icon .cart-button:hover {
  opacity: 0.7;
}

.new-cart-icon .cart-button img {
  filter: invert(1);
  width: 28px;
  height: 28px;
}

.new-cart-icon .cart-button svg {
  width: 28px;
  height: 28px;
  stroke: #ffffff;
  fill: none;
  stroke-width: 2;
}

.nav-cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: #ffffff;
  color: #000000;
  font-family: 'Noto Sans', sans-serif;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
}

/* Mobile Responsive Styles */
@media only screen and (max-width: 768px) {
  .navigation .nav_padding {
    padding: 1rem 1rem !important;
  }

  .new-nav-container {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 0;
    width: 100%;
    min-height: 44px;
    position: relative;
  }

  .new-nav-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }

  .new-nav-menu {
    display: none;
  }

  .hamburger-btn {
    display: flex;
    left: 0.5rem;
    right: auto;
    top: 0;
    transform: none;
  }
  
  .new-brand-name {
    font-size: 1.2rem;
  }
  
  .new-nav-link {
    font-size: 0.65rem;
    padding: 0.3rem 0;
  }
  
  .new-cart-icon {
    left: auto;
    right: 0.5rem;
    top: 0;
    transform: none;
  }

  .new-cart-icon .cart-button {
    padding: 0.35rem !important;
  }
  
  .new-cart-icon .cart-button svg {
    width: 20px;
    height: 20px;
  }
}

@media only screen and (max-width: 480px) {
  .navigation .nav_padding {
    padding: 0.75rem 0.5rem !important;
  }
  
  .new-brand-name {
    font-size: 1rem;
  }
  
  .new-nav-menu {
    gap: 1rem;
  }
  
  .new-nav-link {
    font-size: 0.6rem;
    letter-spacing: 0.08em;
  }
  
  .new-cart-icon {
    left: auto;
    right: 0.5rem;
    top: 0;
    transform: none;
  }

  .new-cart-icon .cart-button {
    padding: 0.3rem !important;
  }
  
  .new-cart-icon .cart-button svg {
    width: 18px;
    height: 18px;
  }
  
  .nav-cart-count {
    font-size: 8px;
    min-width: 16px;
    height: 16px;
  }
}

@media only screen and (max-width: 375px) {
  .new-brand-name {
    font-size: 0.9rem;
  }
  
  .new-nav-menu {
    gap: 0.75rem;
  }
  
  .new-nav-link {
    font-size: 0.55rem;
    letter-spacing: 0.05em;
  }
}

/* Hamburger Button */
.hamburger-btn {
  display: none;
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  width: 44px;
  height: 44px;
  z-index: 9997;
  flex-direction: column;
  gap: 5px;
}

.hamburger-line {
  width: 24px;
  height: 2px;
  background-color: #ffffff;
  display: block;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 280px;
  height: 100vh;
  background-color: #000000;
  border-right: 1px solid #333;
  z-index: 9999;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  transition: left 0.3s ease;
  overflow-y: auto;
}

.mobile-menu.active {
  left: 0;
}

/* Hide logo when mobile menu is open */
.mobile-menu.active ~ .new-nav-container .new-nav-logo {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Alternative: hide entire navbar content when menu is open */
@media screen and (max-width: 768px) {
  body.menu-open .new-nav-logo,
  body.menu-open .hamburger-btn {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
}

.mobile-menu-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
  transition: opacity 0.3s ease;
}

.mobile-menu-close:hover {
  opacity: 0.7;
}

.mobile-menu-link {
  font-family: 'Noto Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #ffffff;
  text-decoration: none;
  text-transform: uppercase;
  padding: 1.5rem 0;
  border-bottom: 1px solid #333;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-link:hover {
  opacity: 0.7;
  transform: translateX(5px);
}

.mobile-menu-link[aria-current="page"] {
  color: #ffffff;
  opacity: 1;
}

/* SVG Icons en menú móvil */
.mobile-nav-svg-icon {
  height: 20px;
  width: auto;
  max-width: 120px;
  filter: invert(1) brightness(1);
  transition: all 0.3s ease;
  display: block;
}

.mobile-menu-link:hover .mobile-nav-svg-icon {
  filter: invert(1) brightness(1.3);
  transform: scale(1.05);
}


/* Show desktop menu and hide hamburger on desktop */
.hamburger-btn {
  display: none;
}

.new-nav-menu {
  display: flex;
}

@media screen and (max-width: 768px) {
  .hamburger-btn {
    display: flex;
  }
  
  .new-nav-menu {
    display: none;
  }
}

/* Adjust positions for desktop */
@media screen and (min-width: 769px) {
  .hamburger-btn {
    left: 2rem;
  }
  
  .new-cart-icon {
    left: auto;
    right: 2rem;
  }
}

/* Hide hamburger menu and other elements */
.hamburger-menu,
.hamburger_icon,
.fae-section-1,
a.hamburger-menu,
.w-nav-button,
.w-inline-block.hamburger-menu,
[data-w-id="1ba5c556-9a2d-e4a0-e089-eccb5ed9fbbb"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* Main wrapper - add padding for fixed navbar */
.main-wrapper {
  padding-top: 100px;
  transition: padding-top 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hide Webflow Commerce "Product added to cart" modal */
.w-commerce-commerceaddtocartoutofstock,
.w-commerce-commerceaddtocartquantityerror,
.w-commerce-commerceaddtocarterror,
.w-commerce-commerceaddtocartsuccess {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (max-width: 768px) {
  .new-nav-menu {
    gap: 1rem;
  }
  
  .new-nav-link {
    font-size: 0.65rem;
  }
  
  .new-brand-name {
    font-size: 0.95rem;
  }
  
  .navigation.scrolled .new-brand-name {
    font-size: 0.8rem;
  }
  
  .new-nav-container {
    gap: 0.5rem;
  }
  
  .navigation.scrolled .new-nav-container {
    gap: 0.25rem;
  }
  
  .main-wrapper {
    padding-top: 55px;
  }
  
  .new-nav-logo img {
    height: 20px;
  }
  
  .navigation.scrolled .new-nav-logo img {
    height: 16px;
  }
  
  .navigation .nav_padding {
    padding: 0.4rem 1rem !important;
  }
  
  .navigation.scrolled .nav_padding {
    padding: 0.2rem 1rem !important;
  }
}
