/* Navbar Styles */
.navbar {
  width: 100%;
  background-color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1001;
}

.navbar-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.navbar-brand {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.navbar-brand a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.navbar-brand .logo {
  display: block;
  height: 80px;
  width: auto;
}

.nav-link {
  color: #8b6f47;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  font-family: Helvetica, Arial, sans-serif;
  transition: color 0.3s ease;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-link:hover {
  color: #6d5436;
}

.nav-link-browse {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  line-height: 1;
  padding: 0;
  margin: 0;
  border: 0;
  text-decoration: none;
  box-shadow: none;
}

.nav-link-browse-mobile {
  display: none;
}

.nav-link-browse-desktop {
  display: inline-flex;
  align-items: center;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 3rem;
  margin-left: auto;
}

.navbar-actions {
  display: none;
  align-items: center;
  gap: 0.85rem;
  margin-left: 1rem;
}

.cart-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  text-decoration: none;
  flex: 0 0 auto;
}

.cart-link-mobile {
  display: none;
}

.cart-link-desktop {
  margin-left: -1.5rem;
}

.cart-icon {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.cart-count {
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #3c0008;
  color: #fff;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-align: center;
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 600;
}

.btn-signin {
  background: #3c0008;
  color: white;
  padding: 8px 35px;
  border: none;
  border-radius: 25px;
  font-size: 10px;
  font-weight: 100;
  letter-spacing: 1px;
  font-style: italic;
  font-family: Helvetica, Arial, sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s ease;
  text-transform: uppercase;
  white-space: nowrap;
}

.btn-signin:hover {
  background: #2a0005;
}

.dropdown {
  position: relative;
}

.dropdown-toggle {
  padding: 8px 35px;
  background: #3c0008;
  color: white;
  border: none;
  border-radius: 25px;
  font-size: 10px;
  font-weight: 100;
  letter-spacing: 1px;
  font-style: italic;
  font-family: Helvetica, Arial, sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.3s ease;
  text-transform: uppercase;
  white-space: nowrap;
}

.dropdown-toggle:hover {
  background: #2a0005;
}

.dropdown-arrow {
  font-size: 0.7rem;
  transition: transform 0.3s;
}

.dropdown.show .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 0;
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 0.85rem 1.5rem;
  color: #333;
  text-decoration: none;
  font-size: 0.9rem;
  font-family: Helvetica, Arial, sans-serif;
  transition: background-color 0.2s;
  border-left: 3px solid transparent;
}

.buyer-info {
  cursor: default;
  background: #f8f8f8;
  border-left-color: #3c0008;
}

.buyer-info:hover {
  background-color: #f8f8f8;
  border-left-color: #3c0008;
}

.buyer-info-label {
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #666;
  margin-bottom: 4px;
}

.buyer-info-value {
  font-size: 14px;
  color: #000;
  font-weight: 500;
}

.dropdown-item:hover {
  background-color: #f8f8f8;
  border-left-color: #3c0008;
}

.dropdown-item:first-child {
  border-radius: 8px 8px 0 0;
}

.dropdown-item:last-child {
  border-radius: 0 0 8px 8px;
}

.dropdown-divider {
  margin: 0.5rem 0;
  border: none;
  border-top: 1px solid #e0e0e0;
}

.hamburger-btn {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  flex: 0 0 auto;
}

.hamburger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #333;
  border-radius: 999px;
  transform-origin: center;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.hamburger-btn.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 1024px) {
  .navbar-container {
    padding: 1rem 1.25rem;
    gap: 1rem;
  }

  .navbar-brand .logo {
    height: 64px;
  }

  .navbar-menu {
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .navbar-container {
    padding: 0.75rem 1rem;
    gap: 0.75rem;
  }

  .navbar-brand {
    margin-right: auto;
  }

  .navbar-brand .logo {
    height: 46px;
  }

  .nav-link-browse {
    font-size: 12px;
  }

  .nav-link-browse-mobile {
    display: inline-flex;
  }

  .nav-link-browse-desktop {
    display: none;
  }

  .navbar-actions {
    display: flex;
    margin-left: 0;
    gap: 0.35rem;
  }

  .cart-link-mobile {
    display: inline-flex;
  }

  .cart-link-desktop {
    display: none;
  }

  .hamburger-btn {
    display: inline-flex;
  }

  .navbar-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-left: 0;
    background: #ffffff;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.08);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.25s ease, opacity 0.2s ease;
  }

  .navbar-menu.show {
    max-height: 620px;
    opacity: 1;
    pointer-events: auto;
  }

  .navbar-menu .nav-link,
  .navbar-menu .btn-signin,
  .navbar-menu .dropdown-toggle {
    width: 100%;
    box-sizing: border-box;
    border-radius: 0;
  }

  .navbar-menu .nav-link {
    display: block;
    padding: 0.9rem 1rem;
    text-align: center;
    border-bottom: 1px solid #e6e6e6;
    text-decoration: none;
  }

  .navbar-menu .nav-link:last-of-type {
    border-bottom: none;
  }

  .btn-signin,
  .dropdown-toggle {
    padding: 0.9rem 1rem;
    font-size: 10px;
    justify-content: center;
  }

  .dropdown {
    width: 100%;
  }

  .dropdown-menu {
    position: static;
    min-width: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    transform: none;
    opacity: 1;
    visibility: visible;
    max-height: 0;
    overflow: hidden;
  }

  .dropdown-menu.show {
    max-height: 420px;
  }

  .dropdown-item {
    border-left: none;
    border-bottom: 1px solid #ddd;
  }
}

@media (max-width: 480px) {
  .navbar-container {
    padding: 0.55rem 0.75rem;
    gap: 0.5rem;
  }

  .navbar-brand .logo {
    height: 38px;
  }

  .nav-link-browse {
    font-size: 10px;
  }

  .cart-icon {
    width: 22px;
    height: 22px;
  }

  .cart-count {
    min-width: 16px;
    height: 16px;
    font-size: 10px;
    line-height: 1;
  }

  .hamburger-btn {
    width: 36px;
    height: 36px;
  }

  .hamburger-btn span {
    width: 20px;
    height: 2px;
  }
}

@media (max-width: 375px) {
  .navbar-container {
    padding: 0.45rem 0.55rem;
    gap: 0.35rem;
  }

  .navbar-brand .logo {
    height: 32px;
  }

  .nav-link-browse {
    font-size: 9px;
  }

  .navbar-actions {
    gap: 0.25rem;
  }

  .cart-icon {
    width: 20px;
    height: 20px;
  }

  .hamburger-btn {
    width: 34px;
    height: 34px;
  }

  .hamburger-btn span {
    width: 18px;
    height: 2px;
  }
}