/**
 * Tree-Ripe Header Styles - PREMIUM Edition
 * Version: 2.1.0 - Combined Top Bar (Utility + Season)
 * 
 * COLOR SYSTEM:
 * - Static brand colors use --tr-* variables
 * - Seasonal accent colors use --tr-season-* variables (injected by PHP)
 */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
  /* Brand Colors (Static - from Brand Book 2022) */
  --tr-forest-green: #0F5E41;
  --tr-forest-deep: #0A3A28;
  --tr-forest-light: #1A7A56;
  --tr-medium-green: #408469;
  --tr-mint: #BBE0C6;
  --tr-mint-soft: #E8F4EB;
  --tr-cream: #F0E8E0;
  --tr-cream-soft: #F5EEE6;
  --tr-peach: #F1CCB6;

  /* Seasonal Colors (fallback defaults - overridden by tr-shared.php !important) */
  --tr-season-accent: #E78825;
  --tr-season-accent-hover: #D67A1F;
  --tr-season-accent-soft: #FEF3E6;
  --tr-season-accent-glow: rgba(231, 136, 37, 0.3);

  /* Premium Gold Accent */
  --tr-gold: #C9A227;
  --tr-gold-soft: rgba(201, 162, 39, 0.15);
  --tr-gold-glow: rgba(201, 162, 39, 0.4);
  
  /* Typography - Brand Book 2022 */
  --tr-font-headline: Georgia, 'Times New Roman', serif;
  --tr-font-body: 'Avenir', 'Avenir Next', -apple-system, BlinkMacSystemFont, sans-serif;
  --tr-font-ui: 'Avenir Next', 'Avenir', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Spacing */
  --tr-header-height: 84px;
  --tr-header-height-scrolled: 68px;
  --tr-banner-height: 52px;
  
  /* Premium Transitions */
  --tr-transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --tr-transition-fast: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --tr-transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  
  /* Premium Shadows */
  --tr-shadow-soft: 0 4px 24px rgba(15, 94, 65, 0.06);
  --tr-shadow-medium: 0 8px 32px rgba(15, 94, 65, 0.1);
  --tr-shadow-glow: 0 0 40px rgba(15, 94, 65, 0.08);
  
  /* Z-Index Scale */
  --tr-z-header: 1000;
  --tr-z-mobile-menu: 1001;
  --tr-z-mobile-overlay: 1000;
}

/* Body offset for fixed header */
body:has(.tr-header),
body.tr-has-header {
  padding-top: calc(var(--tr-header-height) + var(--tr-banner-height));
}

/* WordPress Admin Bar Offset */
.admin-bar .tr-header {
  top: 32px;
}

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

.admin-bar body:has(.tr-header),
.admin-bar body.tr-has-header {
  padding-top: calc(var(--tr-header-height) + var(--tr-banner-height) + 32px);
}

@media (max-width: 782px) {
  .admin-bar body:has(.tr-header),
  .admin-bar body.tr-has-header {
    padding-top: calc(var(--tr-header-height) + var(--tr-banner-height) + 46px);
  }
}

/* Admin bar offset for mobile menu */
.admin-bar .tr-mobile-menu,
.admin-bar .tr-mobile-overlay {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar .tr-mobile-menu,
  .admin-bar .tr-mobile-overlay {
    top: 46px;
  }
}

/* ============================================
   HEADER - BASE STYLES
   ============================================ */
.tr-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--tr-z-header);
  transition: var(--tr-transition-smooth);
}

.tr-header.is-scrolled {
  --tr-header-height: var(--tr-header-height-scrolled);
}

/* ============================================
   COMBINED TOP BAR - Utility + Season
   ============================================ */
.tr-top-bar {
  position: relative;
  background: linear-gradient(135deg, var(--tr-forest-deep) 0%, var(--tr-forest-green) 50%, var(--tr-forest-light) 100%);
  background-size: 200% 200%;
  color: white;
  font-size: 14px;
  font-family: var(--tr-font-body);
  overflow: hidden;
  height: var(--tr-banner-height);
  transition: var(--tr-transition-smooth);
}

/* Animated gradient shimmer */
.tr-top-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.03) 25%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0.03) 75%,
    transparent 100%
  );
  animation: bannerShimmer 8s ease-in-out infinite;
}

@keyframes bannerShimmer {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(50%); }
}

/* Subtle top highlight */
.tr-top-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

.tr-header.is-scrolled .tr-top-bar {
  height: 0;
  opacity: 0;
  pointer-events: none;
}

.tr-top-bar__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

/* Left: Utility Links */
.tr-top-bar__left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tr-top-bar__link {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 6px 8px;
  border-radius: 4px;
  transition: var(--tr-transition-fast);
}

.tr-top-bar__link:hover {
  color: white;
  background: rgba(255, 255, 255, 0.15);
}

.tr-top-bar__sep {
  color: rgba(255, 255, 255, 0.5);
  font-size: 6px;
  margin: 0 2px;
}

/* Center: Season Info */
.tr-top-bar__center {
  display: flex;
  align-items: center;
  margin: 0 auto;
  flex-shrink: 0;
  gap: 0;
}

.tr-top-bar__emoji {
  font-size: 20px;
  margin-right: 12px;
  animation: emojiFloat 3s ease-in-out infinite;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

@keyframes emojiFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-2px) scale(1.05); }
}

.tr-top-bar__season {
  font-family: var(--tr-font-headline);
  font-size: 16px;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.tr-top-bar__divider {
  margin: 0 14px;
  opacity: 0.5;
  font-size: 10px;
}

.tr-top-bar__tagline {
  font-size: 15px;
  opacity: 0.95;
  letter-spacing: 0.2px;
}

/* Right: Phone + CTA */
.tr-top-bar__right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.tr-top-bar__phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: var(--tr-transition-fast);
}

.tr-top-bar__phone:hover {
  color: white;
}

.tr-top-bar__phone svg {
  width: 16px;
  height: 16px;
  opacity: 0.9;
}

.tr-top-bar__cta {
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  color: white;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  transition: var(--tr-transition-fast);
}

.tr-top-bar__cta:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  color: white;
}

/* ============================================
   MAIN NAVIGATION - PREMIUM
   ============================================ */
.tr-nav-wrapper {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(15, 94, 65, 0.06);
  transition: var(--tr-transition-smooth);
}

.tr-header.is-scrolled .tr-nav-wrapper {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--tr-shadow-medium);
}

.tr-nav {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
  height: var(--tr-header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--tr-transition-smooth);
}

.tr-header.is-scrolled .tr-nav {
  height: var(--tr-header-height-scrolled);
}

/* Logo H1 Reset (homepage only) */
.tr-logo-heading {
  margin: 0;
  padding: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  display: contents;
}

/* Logo - Premium Treatment */
.tr-logo {
  text-decoration: none;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  transition: var(--tr-transition-fast);
  margin-right: 32px;
}

.tr-logo:hover {
  transform: scale(1.02);
}

.tr-logo__img {
  height: 48px;
  width: auto;
  transition: var(--tr-transition-smooth);
}

.woocommerce .tr-logo__img,
.woocommerce-page .tr-logo__img {
  max-width: none !important;
  height: 48px !important;
  width: auto !important;
}

.tr-header.is-scrolled .tr-logo__img {
  height: 40px;
}

/* Desktop Navigation Links - Premium */
.tr-nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.tr-nav__link {
  position: relative;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 500;
  font-family: var(--tr-font-body);
  color: var(--tr-forest-deep);
  text-decoration: none;
  border-radius: 999px;
  background-color: transparent;
  transition: var(--tr-transition-fast);
  white-space: nowrap;
  letter-spacing: 0.2px;
}

/* Elegant underline animation */
.tr-nav__link::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 18px;
  right: 18px;
  height: 1.5px;
  background: var(--tr-forest-green);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-radius: 1px;
}

.tr-nav__link:hover {
  color: var(--tr-forest-green);
}

.tr-nav__link:hover::after {
  transform: scaleX(1);
}

/* Highlighted Link - Season */
.tr-nav__link--highlight {
  color: var(--tr-forest-green);
  background: var(--tr-mint-soft);
  font-weight: 600;
}

.tr-nav__link--highlight::after {
  display: none;
}

.tr-nav__link--highlight:hover {
  background: var(--tr-mint);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(187, 224, 198, 0.4);
}

/* ============================================
   DROPDOWN NAVIGATION
   ============================================ */
.tr-nav__dropdown {
  position: relative;
}

/* Invisible bridge to maintain hover when moving to menu */
.tr-nav__dropdown::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 12px;
}

.tr-nav__dropdown-trigger {
  position: relative;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 500;
  font-family: var(--tr-font-body);
  color: var(--tr-forest-deep);
  text-decoration: none;
  border-radius: 999px;
  background: none !important;
  background-color: transparent !important;
  transition: var(--tr-transition-fast);
  white-space: nowrap;
  letter-spacing: 0.2px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none !important;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.tr-nav__dropdown-trigger::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 18px;
  right: 18px;
  height: 1.5px;
  background: var(--tr-forest-green);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-radius: 1px;
}

.tr-nav__dropdown-trigger:hover {
  color: var(--tr-forest-green);
}

.tr-nav__dropdown-trigger:hover::after {
  transform: scaleX(1);
}

.tr-nav__dropdown-trigger i {
  font-size: 10px;
  transition: transform 0.3s ease;
}

.tr-nav__dropdown:hover .tr-nav__dropdown-trigger i,
.tr-nav__dropdown.is-open .tr-nav__dropdown-trigger i {
  transform: rotate(180deg);
}

.tr-nav__dropdown-menu {
  position: absolute !important;
  top: 100% !important;
  left: 50% !important;
  transform: translateX(-50%);
  background: #ffffff !important;
  border-radius: 12px !important;
  box-shadow: 0 12px 40px rgba(15, 94, 65, 0.15), 0 4px 12px rgba(15, 94, 65, 0.08) !important;
  min-width: 200px !important;
  padding: 12px 0 8px 0 !important;
  margin-top: 8px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 9999 !important;
  pointer-events: none;
}

.tr-nav__dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  width: 12px;
  height: 12px;
  background: white;
  border-radius: 2px;
  transform: translateX(-50%) rotate(45deg);
  box-shadow: -2px -2px 4px rgba(15, 94, 65, 0.04);
}

.tr-nav__dropdown:hover .tr-nav__dropdown-menu,
.tr-nav__dropdown:focus-within .tr-nav__dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%);
  pointer-events: auto;
}

.tr-nav__dropdown-item {
  display: block !important;
  padding: 12px 20px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #0A3A28 !important;
  text-decoration: none !important;
  transition: var(--tr-transition-fast);
  position: relative;
  background: transparent;
}

.tr-nav__dropdown-item::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: var(--tr-forest-green);
  border-radius: 2px;
  transition: height 0.2s ease;
}

.tr-nav__dropdown-item:hover {
  color: var(--tr-forest-green);
  background: var(--tr-mint-soft);
}

.tr-nav__dropdown-item:hover::before {
  height: 20px;
}

.tr-nav__dropdown-item:first-child {
  border-radius: 0;
}

.tr-nav__dropdown-item:last-child {
  border-radius: 0;
}

/* Right Side Actions */
.tr-nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Shop Button - Premium Secondary */
.tr-btn-shop {
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--tr-font-body);
  letter-spacing: 0.3px;
  color: var(--tr-forest-green);
  text-decoration: none;
  border-radius: 999px;
  border: 2px solid var(--tr-forest-green);
  background-color: transparent;
  transition: var(--tr-transition-fast);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.tr-btn-shop::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--tr-forest-green);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: -1;
}

.tr-btn-shop:hover {
  color: white;
  border-color: var(--tr-forest-green);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 94, 65, 0.25);
}

.tr-btn-shop:hover::before {
  transform: translateY(0);
}

.tr-btn-shop svg {
  width: 18px;
  height: 18px;
  transition: var(--tr-transition-fast);
}

/* Fruit Stops Button - Premium Primary CTA */
.tr-btn-fruit-stops {
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--tr-font-body);
  letter-spacing: 0.3px;
  color: white;
  text-decoration: none;
  border-radius: 999px;
  background-color: var(--tr-season-accent);
  border: none;
  transition: var(--tr-transition-fast);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px var(--tr-season-accent-glow);
  cursor: pointer;
}

.tr-btn-fruit-stops:hover {
  background-color: var(--tr-season-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--tr-season-accent-glow);
}

.tr-btn-fruit-stops svg {
  width: 18px;
  height: 18px;
}

/* Spring/Summer: dark text on light accent backgrounds */
.tr-header.tr-season--spring .tr-btn-fruit-stops,
.tr-header.tr-season--spring .tr-btn-fruit-stops:hover,
.tr-header.tr-season--summer .tr-btn-fruit-stops,
.tr-header.tr-season--summer .tr-btn-fruit-stops:hover {
  color: var(--tr-forest-green);
}

.tr-header.tr-season--spring .tr-cart__count,
.tr-header.tr-season--summer .tr-cart__count {
  color: var(--tr-forest-green);
}

/* Search Toggle Button */
.tr-search-toggle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--tr-transition-fast);
  background-color: transparent;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
}

.tr-search-toggle:hover {
  background-color: var(--tr-cream-soft);
  border-color: var(--tr-cream);
  transform: translateY(-2px);
}

.tr-search-toggle.is-active {
  background-color: var(--tr-forest-green);
  border-color: var(--tr-forest-green);
}

.tr-search-toggle svg {
  width: 22px;
  height: 22px;
  stroke: var(--tr-forest-green);
  stroke-width: 2;
  transition: var(--tr-transition-fast);
}

.tr-search-toggle.is-active svg {
  stroke: white;
}

.tr-search-toggle.is-active i {
  color: white !important;
}

/* Search Dropdown */
.tr-search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  box-shadow: 0 8px 32px rgba(15, 94, 65, 0.15);
  border-top: 1px solid rgba(15, 94, 65, 0.08);
  padding: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
  z-index: 100;
}

.tr-search-dropdown.is-active {
  max-height: 120px;
  opacity: 1;
  padding: 24px 0;
}

.tr-search-dropdown__inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.tr-search-dropdown__content {
  flex: 1;
}

/* Style Search form inside dropdown - PREMIUM */
.tr-search-dropdown .tr-search-form {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  background: white;
  border-radius: 999px;
  border: 2px solid var(--tr-mint);
  overflow: hidden;
  transition: var(--tr-transition-fast);
  box-shadow: 0 4px 20px rgba(15, 94, 65, 0.08);
  padding-right: 6px;
}

.tr-search-dropdown .tr-search-form:focus-within {
  border-color: var(--tr-forest-green);
  box-shadow: 0 4px 24px rgba(15, 94, 65, 0.15);
}

.tr-search-dropdown .tr-search-form__input {
  flex: 1;
  padding: 16px 24px;
  font-size: 17px;
  font-family: var(--tr-font-body);
  border: none;
  background: transparent;
  color: var(--tr-forest-deep);
  outline: none;
  width: 100%;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}

.tr-search-dropdown .tr-search-form__input:focus {
  outline: none;
  box-shadow: none;
}

.tr-search-dropdown .tr-search-form__input::placeholder {
  color: var(--tr-medium-green);
  opacity: 0.6;
}

.tr-search-dropdown .tr-search-form__submit {
  width: 44px;
  height: 44px;
  min-width: 44px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  color: white;
  background: var(--tr-forest-green);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--tr-transition-fast);
  flex-shrink: 0;
}

.tr-search-dropdown .tr-search-form__submit:hover {
  background: var(--tr-forest-deep);
  transform: scale(1.05);
}

.tr-search-dropdown .tr-search-form__submit svg {
  width: 20px;
  height: 20px;
  stroke: white;
  stroke-width: 2.5;
  fill: none;
}

.tr-search-dropdown .tr-search-form__submit i {
  color: white !important;
  font-size: 18px;
}

.tr-search-dropdown__close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--tr-cream-soft);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--tr-transition-fast);
  flex-shrink: 0;
  padding: 0;
}

.tr-search-dropdown__close:hover {
  background: var(--tr-cream);
  transform: rotate(90deg);
}

.tr-search-dropdown__close svg {
  width: 18px;
  height: 18px;
}

/* Cart Button - Premium */
.tr-cart {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--tr-cream-soft) 0%, var(--tr-cream) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--tr-transition-fast);
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.tr-cart:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px rgba(15, 94, 65, 0.15);
}

.tr-cart:active {
  transform: scale(0.95);
}

.tr-cart svg {
  width: 22px;
  height: 22px;
  stroke: var(--tr-forest-green);
  stroke-width: 1.5;
  transition: var(--tr-transition-fast);
}

.tr-cart:hover svg {
  stroke: var(--tr-forest-deep);
}

/* Cart Count Badge - Premium */
.tr-cart__count {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: var(--tr-season-accent);
  color: white;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--tr-font-body);
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px var(--tr-season-accent-glow);
  border: 2px solid white;
  animation: badgePop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes badgePop {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}

.tr-cart__count:empty {
  display: none;
}

/* Account Button - Premium */
.tr-account {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--tr-transition-fast);
  text-decoration: none;
  background-color: transparent;
  border: 2px solid transparent;
  cursor: pointer;
}

.tr-account:hover {
  background-color: var(--tr-cream-soft);
  border-color: var(--tr-cream);
  transform: translateY(-2px);
}

.tr-account svg {
  width: 22px;
  height: 22px;
  stroke: var(--tr-forest-green);
  stroke-width: 1.5;
  transition: var(--tr-transition-fast);
}

/* Mobile Menu Toggle */
.tr-menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background-color: transparent;
  border: none;
  cursor: pointer;
  transition: var(--tr-transition-fast);
  position: relative;
}

.tr-menu-toggle:hover {
  background-color: var(--tr-cream-soft);
}

.tr-menu-toggle svg {
  width: 24px;
  height: 24px;
  stroke: var(--tr-forest-green);
  stroke-width: 2;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: var(--tr-transition-fast);
}

.tr-menu-toggle i {
  color: var(--tr-forest-green) !important;
  font-size: 22px;
}

.tr-menu-toggle__close {
  opacity: 0;
}

.tr-menu-toggle.is-active .tr-menu-toggle__open {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg);
}

.tr-menu-toggle.is-active .tr-menu-toggle__close {
  opacity: 1;
}

/* ============================================
   MOBILE MENU - PREMIUM
   ============================================ */
.tr-mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 58, 40, 0.6);
  z-index: var(--tr-z-mobile-overlay);
  opacity: 0;
  visibility: hidden;
  transition: var(--tr-transition-smooth);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.tr-mobile-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.tr-mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 400px;
  background: #ffffff;
  z-index: var(--tr-z-mobile-menu);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.tr-mobile-menu.is-active {
  transform: translateX(0);
  box-shadow: -20px 0 60px rgba(10, 58, 40, 0.2);
}

/* Mobile Menu Header */
.tr-mobile-menu__header {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: none;
  flex-shrink: 0;
  background: white;
  position: sticky;
  top: 0;
  z-index: 10;
}

.tr-mobile-menu__logo {
  margin-right: 8px;
}

.tr-mobile-menu__logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.tr-mobile-menu__logo-img {
  height: 44px;
  width: auto;
}

.tr-mobile-menu__close {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--tr-forest-green);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--tr-transition-fast);
  flex-shrink: 0;
  padding: 0;
}

.tr-mobile-menu__close:hover {
  background: var(--tr-forest-deep);
  transform: rotate(90deg);
}

.tr-mobile-menu__close svg {
  width: 24px;
  height: 24px;
  stroke: white;
  stroke-width: 2;
  display: block;
}

.tr-mobile-menu__close i {
  color: white !important;
  font-size: 24px;
}

/* Mobile Menu Search */
.tr-mobile-menu__search {
  padding: 16px 24px 20px;
  border-bottom: none;
  background: transparent;
}

.tr-mobile-menu__search .tr-search-form {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  background: white;
  border-radius: 999px;
  border: 2px solid var(--tr-forest-green);
  overflow: hidden;
  padding-right: 6px;
}

.tr-mobile-menu__search .tr-search-form:focus-within {
  border-color: var(--tr-forest-green);
}

.tr-mobile-menu__search .tr-search-form__input {
  flex: 1;
  padding: 14px 16px;
  font-size: 16px;
  font-family: var(--tr-font-body);
  border: none;
  background: transparent;
  color: var(--tr-forest-deep);
  outline: none;
  -webkit-appearance: none;
  width: 100%;
  box-sizing: border-box;
}

.tr-mobile-menu__search .tr-search-form__input:focus {
  outline: none;
}

.tr-mobile-menu__search .tr-search-form__input::placeholder {
  color: var(--tr-medium-green);
  opacity: 0.6;
}

.tr-mobile-menu__search .tr-search-form__submit {
  width: 40px;
  height: 40px;
  min-width: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tr-forest-green);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--tr-transition-fast);
  flex-shrink: 0;
}

.tr-mobile-menu__search .tr-search-form__submit:hover {
  background: var(--tr-forest-deep);
}

.tr-mobile-menu__search .tr-search-form__submit i {
  color: white !important;
  font-size: 18px;
}

.tr-mobile-menu__search .tr-search-form__submit svg {
  width: 18px;
  height: 18px;
  stroke: white;
  stroke-width: 2.5;
  fill: none;
}

/* Mobile Primary CTAs */
.tr-mobile-menu__ctas {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tr-mobile-menu__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 28px;
  font-size: 17px;
  font-weight: 600;
  font-family: var(--tr-font-body);
  letter-spacing: 0.3px;
  border-radius: 999px;
  text-decoration: none;
  transition: var(--tr-transition-fast);
  min-height: 60px;
}

/* Mobile Primary CTA */
.tr-mobile-menu__cta--primary {
  background-color: var(--tr-season-accent);
  color: white;
  box-shadow: 0 6px 20px var(--tr-season-accent-glow);
}

.tr-mobile-menu__cta--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px var(--tr-season-accent-glow);
  color: white;
}

/* Spring/Summer: dark text on light accent backgrounds */
.tr-mobile-menu.tr-season--spring .tr-mobile-menu__cta--primary,
.tr-mobile-menu.tr-season--spring .tr-mobile-menu__cta--primary:hover,
.tr-mobile-menu.tr-season--summer .tr-mobile-menu__cta--primary,
.tr-mobile-menu.tr-season--summer .tr-mobile-menu__cta--primary:hover {
  color: var(--tr-forest-green);
}

.tr-mobile-menu__cta--secondary {
  background: transparent;
  color: var(--tr-forest-green);
  border: 2px solid var(--tr-forest-green);
}

.tr-mobile-menu__cta--secondary:hover {
  background: var(--tr-forest-green);
  color: white;
}

.tr-mobile-menu__cta svg {
  width: 22px;
  height: 22px;
}

/* Mobile Navigation Links */
.tr-mobile-menu__nav {
  padding: 24px;
  border-top: 1px solid rgba(15, 94, 65, 0.08);
  flex: 1;
}

.tr-mobile-menu__link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
  font-size: 18px;
  font-weight: 500;
  font-family: var(--tr-font-body);
  color: var(--tr-forest-deep);
  text-decoration: none;
  border-bottom: 1px solid rgba(15, 94, 65, 0.06);
  transition: var(--tr-transition-fast);
  min-height: 60px;
}

.tr-mobile-menu__link:hover {
  color: var(--tr-forest-green);
  padding-left: 8px;
}

.tr-mobile-menu__link:last-child {
  border-bottom: none;
}

.tr-mobile-menu__link--highlight {
  color: var(--tr-forest-green);
  font-weight: 600;
}

.tr-mobile-menu__link-emoji {
  font-size: 24px;
}

.tr-mobile-menu__link-badge {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 6px 12px;
  background: linear-gradient(135deg, var(--tr-mint-soft) 0%, var(--tr-mint) 100%);
  color: var(--tr-forest-deep);
  border-radius: 999px;
}

/* Mobile Reservations Card */
.tr-mobile-menu__reservations {
  margin: 0 24px 24px;
  padding: 20px;
  background: #ffffff;
  border: 1px solid #0F5E41;
  border-radius: 16px;
}

.tr-mobile-menu__reservations-title {
  font-size: 20px;
  font-weight: 700;
  color: #0F5E41;
  font-family: Georgia, "Times New Roman", serif;
  margin-bottom: 14px;
}

.tr-mobile-menu__reservations-title i {
  margin-right: 6px;
  font-weight: 400;
}

.tr-mobile-menu__reservations-item {
  padding: 10px 0;
  border-bottom: 1px solid rgba(15, 94, 65, 0.1);
  font-size: 16px;
  font-family: var(--tr-font-body);
  color: #333333;
  line-height: 1.4;
}

.tr-mobile-menu__reservations-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tr-mobile-menu__reservations-line i {
  color: #0F5E41;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

.tr-mobile-menu__reservations-item:last-of-type {
  border-bottom: none;
}

.tr-mobile-menu__reservations-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 24px;
  margin-top: 14px;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  border-radius: 999px !important;
  background: #0F5E41 !important;
  transition: var(--tr-transition-fast);
  box-shadow: 0 2px 8px rgba(15, 94, 65, 0.25);
}

.tr-mobile-menu__reservations-link:active {
  transform: scale(0.97);
  box-shadow: 0 1px 4px rgba(15, 94, 65, 0.2);
}

/* Mobile Menu Account */
.tr-mobile-menu__account {
  padding: 20px 24px;
  border-top: 1px solid rgba(15, 94, 65, 0.08);
}

.tr-mobile-menu__account-pills {
  display: flex;
  gap: 12px;
}

.tr-mobile-menu__account-pill {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 20px;
  min-height: 54px;
  font-size: 16px;
  font-weight: 600;
  font-family: var(--tr-font-body);
  color: #ffffff;
  text-decoration: none;
  background: #0F5E41;
  border: none;
  border-radius: 999px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(15, 94, 65, 0.25);
}

.tr-mobile-menu__account-pill:active {
  transform: scale(0.97);
  box-shadow: 0 1px 4px rgba(15, 94, 65, 0.2);
}

.tr-mobile-menu__account-pill svg {
  width: 20px;
  height: 20px;
  stroke: #ffffff;
  flex-shrink: 0;
}

.tr-mobile-menu__account-pill--full {
  flex: none;
  width: 100%;
}

.tr-mobile-menu__account-logout {
  display: block;
  text-align: center;
  margin-top: 16px;
  padding: 8px;
  font-size: 16px;
  font-weight: 400;
  font-family: var(--tr-font-body);
  color: #888888;
  text-decoration: none;
  transition: var(--tr-transition-fast);
}

.tr-mobile-menu__account-logout:hover {
  color: #333333;
}

/* Mobile Menu Footer */
.tr-mobile-menu__footer {
  padding: 20px 24px;
  border-top: 1px solid rgba(15, 94, 65, 0.1);
  background: var(--tr-cream);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.tr-mobile-menu__footer a {
  font-size: 15px;
  font-weight: 500;
  color: var(--tr-forest-green);
  text-decoration: none;
  font-family: var(--tr-font-body);
  transition: var(--tr-transition-fast);
  padding: 4px 0;
}

.tr-mobile-menu__footer a:last-child {
  font-weight: 600;
  color: var(--tr-forest-deep);
}

.tr-mobile-menu__footer a:hover {
  color: var(--tr-forest-deep);
}

/* Body scroll lock */
body.tr-menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

/* Desktop squeeze tier 1 */
@media (max-width: 1200px) {
  .tr-nav {
    padding: 0 24px;
  }

  .tr-logo__img {
    height: 36px;
    max-width: 180px;
    width: auto;
  }

  .tr-nav__link {
    padding: 8px 12px;
    font-size: 13px;
  }

  .tr-nav__actions {
    gap: 8px;
  }

  .tr-btn-shop,
  .tr-btn-fruit-stops {
    padding: 9px 16px;
    font-size: 12px;
  }

  .tr-btn-shop svg,
  .tr-btn-fruit-stops svg {
    width: 15px;
    height: 15px;
  }
}

/* Desktop squeeze tier 0 (early shrink) */
@media (max-width: 1350px) and (min-width: 1201px) {
  .tr-logo__img {
    height: 40px;
    max-width: 200px;
    width: auto;
  }

  .tr-nav__actions {
    gap: 10px;
  }

  .tr-btn-shop,
  .tr-btn-fruit-stops {
    padding: 10px 18px;
    font-size: 12px;
  }
}

/* Desktop squeeze tier 2 */
@media (max-width: 1100px) {
  .tr-nav {
    padding: 0 20px;
  }

  .tr-logo__img {
    height: 32px;
    max-width: 160px;
    width: auto;
  }

  .tr-nav__link {
    padding: 7px 10px;
    font-size: 12px;
  }

  .tr-nav__actions {
    gap: 6px;
  }

  .tr-btn-shop,
  .tr-btn-fruit-stops {
    padding: 8px 14px;
    font-size: 11px;
  }

  .tr-btn-shop svg,
  .tr-btn-fruit-stops svg {
    width: 14px;
    height: 14px;
  }
}

/* Tablet and below */
@media (max-width: 1024px) {
  .tr-nav__links {
    display: none;
  }

  .tr-btn-shop,
  .tr-btn-fruit-stops {
    display: none;
  }

  .tr-search-toggle,
  .tr-search-dropdown {
    display: none;
  }

  .tr-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .tr-logo__img {
    height: 44px;
    max-width: none;
    width: auto;
  }

  .tr-header.is-scrolled .tr-logo__img {
    height: 36px;
    max-width: none;
  }
}

/* Mobile */
@media (max-width: 640px) {
  :root {
    --tr-header-height: 72px;
    --tr-header-height-scrolled: 60px;
    --tr-banner-height: 48px;
  }
  
  .tr-nav {
    padding: 0 16px;
  }
  
  .tr-logo__img {
    height: auto;
    max-height: 40px;
    width: auto;
  }
  
  .tr-header.is-scrolled .tr-logo__img {
    height: auto;
    max-height: 34px;
    width: auto;
  }
  
  /* Top bar mobile - hide sides, center season */
  .tr-top-bar__inner {
    padding: 0 16px;
    justify-content: center;
  }
  
  .tr-top-bar__left,
  .tr-top-bar__right {
    display: none;
  }
  
  .tr-top-bar__center {
    position: static;
    transform: none;
  }
  
  .tr-top-bar__emoji {
    font-size: 18px;
    margin-right: 10px;
  }
  
  .tr-top-bar__season {
    font-size: 15px;
  }
  
  .tr-top-bar__divider {
    margin: 0 10px;
  }
  
  .tr-top-bar__tagline {
    font-size: 14px;
  }
  
  .tr-mobile-menu {
    max-width: 100%;
  }
  
  .tr-mobile-menu__logo-img {
    height: 44px;
  }
  
  .tr-reservation-banner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    padding: 14px 16px;
  }
  
  .tr-cart,
  .tr-account {
    width: 42px;
    height: 42px;
  }
  
  .tr-cart svg,
  .tr-account svg {
    width: 20px;
    height: 20px;
  }
}

/* Large tablet / small desktop - reduce top bar spacing */
@media (max-width: 1280px) and (min-width: 1025px) {
  .tr-top-bar__left {
    gap: 4px;
  }

  .tr-top-bar__link {
    font-size: 10px;
    padding: 4px 6px;
  }

  .tr-top-bar__sep {
    display: none;
  }

  .tr-top-bar__center {
    position: static;
    transform: none;
    margin: 0 auto;
  }

  .tr-top-bar__season {
    font-size: 14px;
  }

  .tr-top-bar__tagline {
    font-size: 13px;
  }

  .tr-top-bar__divider {
    margin: 0 10px;
  }

  .tr-top-bar__right {
    gap: 12px;
  }

  .tr-top-bar__phone {
    font-size: 12px;
  }

  .tr-top-bar__cta {
    padding: 5px 10px;
    font-size: 10px;
  }
}

/* Tablet - hide utility links but show phone */
@media (max-width: 1024px) and (min-width: 641px) {
  .tr-top-bar__left {
    display: none;
  }

  .tr-top-bar__center {
    position: static;
    transform: none;
    margin-right: auto;
    padding-left: 16px;
  }
}

/* ============================================
   UTILITIES
   ============================================ */
.tr-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
