/* ==========================================================================
   Gumtti Header & Navigation Styles (Replicated from Shopify gumtti.com)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Announcement Bar (utility-bar)
   -------------------------------------------------------------------------- */
.g-announcement-bar,
.utility-bar {
  background: linear-gradient(90deg, #ff6b4a 0%, #ffb703 100%) !important;
  background-image: none !important;
  color: #ffffff !important;
  padding: 0 !important;
  text-align: center;
  position: relative;
  z-index: 1010;
  width: 100%;
  line-height: 1.2;
}

.utility-bar__grid {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 3.8rem;
  margin: 0 auto;
}

.announcement-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.announcement-bar__link,
.g-announcement-bar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff !important;
  text-decoration: none;
  padding: 0.95rem 1.5rem;
  min-height: 3.8rem;
  white-space: nowrap !important;
  cursor: pointer;
}

.announcement-bar__message {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  color: #ffffff !important;
  font-family: var(--g-font-body, 'Quicksand', sans-serif);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap !important;
  animation: gumtti-wiggle 4s ease-in-out infinite;
  transform-origin: center;
}

.announcement-bar__text,
.g-announcement-bar__text {
  white-space: nowrap !important;
  display: inline;
}

/* Arrow SVG inside announcement bar */
.announcement-bar__link .icon-arrow,
.g-announcement-bar svg.icon-arrow,
.g-announcement-bar .icon-arrow {
  width: 1.4rem !important;
  height: 1.0rem !important;
  max-width: 1.4rem !important;
  display: inline-block !important;
  vertical-align: middle !important;
  margin-left: 0.8rem !important;
  flex-shrink: 0 !important;
  color: #ffffff !important;
  fill: currentColor !important;
  pointer-events: none;
  transition: transform 0.2s ease;
}

.announcement-bar__link:hover .icon-arrow,
.animate-arrow:hover .icon-arrow,
.g-announcement-bar a:hover svg.icon-arrow {
  transform: translateX(4px) !important;
}

@keyframes gumtti-wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-1deg); }
  75% { transform: rotate(1deg); }
}

@media screen and (max-width: 749px) {
  .utility-bar__grid {
    min-height: 3.2rem;
  }
  .announcement-bar__link,
  .g-announcement-bar a {
    padding: 0.6rem 1rem;
    min-height: 3.2rem;
  }
  .announcement-bar__message {
    font-size: 1.25rem;
    letter-spacing: 0.05em;
  }
  .announcement-bar__link .icon-arrow,
  .g-announcement-bar .icon-arrow {
    width: 1.2rem !important;
    height: 0.9rem !important;
    margin-left: 0.5rem !important;
  }
}

/* --------------------------------------------------------------------------
   2. Header Container
   -------------------------------------------------------------------------- */
.g-header-wrapper {
  background-color: #fff7f0 !important;
  background-image: none !important;
  border-bottom: 0.1rem solid rgba(45, 42, 50, 0.12) !important;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 16px rgba(45, 42, 50, 0.04);
}

.g-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1rem, 1.8vw, 2.4rem);
  padding-top: 1rem;
  padding-bottom: 1rem;
}

@media screen and (max-width: 989px) {
  .g-header {
    grid-template-columns: auto auto 1fr auto;
    gap: 1.2rem;
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
  }
}

/* Logo */
.g-header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.g-header__logo-link {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem;
}

.g-header__logo img,
.g-header__logo .custom-logo,
.g-header__logo-img {
  width: 7.5rem !important;
  height: 7.5rem !important;
  max-height: 7.5rem !important;
  object-fit: contain !important;
  border-radius: 50% !important;
  display: block !important;
}

@media screen and (max-width: 749px) {
  .g-header__logo img,
  .g-header__logo .custom-logo,
  .g-header__logo-img {
    width: 4.8rem !important;
    height: 4.8rem !important;
    max-height: 4.8rem !important;
  }
}

/* --------------------------------------------------------------------------
   3. Desktop Navigation
   -------------------------------------------------------------------------- */
.g-nav-wrapper {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 1.2vw, 1.8rem);
  width: 100%;
  min-width: 0;
}

@media screen and (max-width: 989px) {
  .g-nav-wrapper {
    display: none;
  }
}

.gumtti-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.2rem, 0.4vw, 0.5rem);
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

.gumtti-nav__item {
  position: relative;
}

.gumtti-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem clamp(0.8rem, 0.9vw, 1.25rem);
  border-radius: var(--g-radius-pill);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: #2d2a32;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.gumtti-nav__link:hover,
.gumtti-nav__link:focus-visible {
  background: #ffe9dd;
  color: #2d2a32;
  transform: translateY(-1px);
}

.gumtti-nav__link[aria-current='page'] {
  background: #ff6b4a;
  color: #ffffff;
}

/* Category Dots */
.gumtti-dot {
  display: inline-block;
  flex: none;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 999px;
}

.gumtti-dot--coral { background: #ff6b4a; }
.gumtti-dot--yellow { background: #ffc53d; }
.gumtti-dot--blue { background: #35a7e0; }
.gumtti-dot--green { background: #3ec786; }
.gumtti-dot--mint { background: #2ec4a2; }
.gumtti-dot--purple { background: #a06ee8; }
.gumtti-dot--red { background: #ef476f; }
.gumtti-dot--pink { background: #ff4d9d; }
.gumtti-dot--lilac { background: #a98bff; }
.gumtti-dot--peach { background: #ff9e6d; }

/* Animated Sale Pill */
.gumtti-nav__link--sale {
  background: linear-gradient(120deg, #ff6b4a 0%, #ef476f 100%) !important;
  color: #ffffff !important;
  font-size: 1.6rem;
  font-weight: 800;
  padding: 0.85rem clamp(1.2rem, 1.4vw, 1.7rem) !important;
  border: 0;
  box-shadow: 0 0.4rem 1.2rem rgba(255, 107, 74, 0.38);
  animation: gumtti-sale-glow 2.6s ease-in-out infinite;
}

.gumtti-nav__link--sale:hover,
.gumtti-nav__link--sale:focus-visible {
  background: linear-gradient(120deg, #ef476f 0%, #f0553a 100%) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

@keyframes gumtti-sale-glow {
  0%, 100% { box-shadow: 0 0.4rem 1.2rem rgba(255, 107, 74, 0.38); }
  50% { box-shadow: 0 0.6rem 2rem rgba(255, 107, 74, 0.6); }
}

.gumtti-nav__caret {
  width: 1.1rem;
  height: 1.1rem;
  display: inline-flex;
  align-items: center;
  transition: transform 0.18s ease;
}

.gumtti-nav__caret svg {
  width: 100%;
  height: 100%;
}

.gumtti-nav__item:hover .gumtti-nav__caret,
.gumtti-nav__item:focus-within .gumtti-nav__caret {
  transform: rotate(180deg);
}

/* Hover Dropdown Panels (Matches Shopify) */
.gumtti-panel {
  position: absolute;
  top: calc(100% + 0.6rem);
  left: 0;
  min-width: 25rem;
  margin: 0;
  padding: 1.1rem;
  list-style: none;
  background: #ffffff;
  color: #2d2a32;
  border: 0.1rem solid rgba(45, 42, 50, 0.08);
  border-radius: 1.6rem;
  box-shadow: 0 1.2rem 3.2rem rgba(45, 42, 50, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.6rem);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 1200;
}

.gumtti-panel::before {
  content: '';
  position: absolute;
  top: -1rem;
  left: 0;
  right: 0;
  height: 1rem;
}

.gumtti-panel--ages {
  min-width: 27rem;
}

.gumtti-nav__item:hover > .gumtti-panel,
.gumtti-nav__item:focus-within > .gumtti-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.gumtti-panel__caption {
  padding: 0.6rem 1.2rem 0.4rem;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(45, 42, 50, 0.5);
}

.gumtti-panel a {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1rem 1.3rem;
  border-radius: 1rem;
  font-size: 1.55rem;
  font-weight: 500;
  color: #2d2a32;
  text-decoration: none;
  transition: background 0.15s ease, padding-left 0.15s ease;
}

.gumtti-panel a:hover,
.gumtti-panel a:focus-visible {
  background: #fff6ea;
  padding-left: 1.7rem;
  color: #ff6b4a;
}

.gumtti-panel a[aria-current='page'] {
  background: #fff6ea;
  font-weight: 700;
}

.gumtti-panel .gumtti-dot {
  width: 1rem;
  height: 1rem;
}

/* --------------------------------------------------------------------------
   4. Search Bar
   -------------------------------------------------------------------------- */
.gumtti-search {
  position: relative;
  flex: 1 1 auto;
  min-width: 16rem;
  max-width: 38rem;
  margin-left: auto;
}

.gumtti-search input[type='search'] {
  width: 100%;
  height: 4.2rem;
  padding: 0 4.8rem 0 1.8rem;
  border-radius: 999px;
  border: 0.1rem solid rgba(45, 42, 50, 0.2);
  background: #ffffff;
  color: #2d2a32;
  font-size: 1.45rem;
  font-weight: 500;
  box-shadow: none;
  outline: none;
  transition: outline 0.15s ease, border-color 0.15s ease;
}

.gumtti-search input[type='search']::placeholder {
  color: rgba(45, 42, 50, 0.55);
}

.gumtti-search input[type='search']:focus {
  outline: 0.2rem solid #ff6b4a;
  outline-offset: 0.1rem;
  border-color: #ff6b4a;
  box-shadow: none;
}

.gumtti-search__btn {
  position: absolute;
  top: 50%;
  right: 0.4rem;
  transform: translateY(-50%);
  width: 3.4rem;
  height: 3.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  background: #ff6b4a;
  color: #ffffff;
  cursor: pointer;
  transition: filter 0.18s ease;
}

.gumtti-search__btn:hover,
.gumtti-search__btn:focus-visible {
  filter: brightness(1.08);
}

.gumtti-search__btn svg {
  width: 1.8rem;
  height: 1.8rem;
}

/* --------------------------------------------------------------------------
   5. Header Icons (Account, Cart, Hamburger)
   -------------------------------------------------------------------------- */
.g-header__icons {
  display: flex;
  align-items: center;
  column-gap: clamp(0.5rem, 1.2vw, 1.4rem);
  margin-left: auto;
  flex-shrink: 0;
}

.g-header__icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.6rem, 0.8vw, 0.9rem);
  border-radius: 999px;
  color: #2d2a32;
  position: relative;
  background: transparent;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.18s ease, background 0.18s ease;
}

.g-header__icon-btn:hover,
.g-header__icon-btn:focus-visible {
  color: #ff6b4a;
  background: rgba(255, 107, 74, 0.12);
}

.g-header__icon-btn svg {
  width: 2.7rem;
  height: 2.7rem;
  display: block;
}

/* Account Dropdown Card (Matches Shopify gumtti.com) */
.header-account-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.header-account-dropdown:hover > .g-header__icon-btn,
.header-account-dropdown:focus-within > .g-header__icon-btn {
  color: #ff6b4a;
  background: rgba(255, 107, 74, 0.12);
}

.account-hover-menu {
  position: absolute;
  top: calc(100% + 0.8rem);
  right: 0;
  width: 19rem;
  background: #ffffff;
  border: 1px solid rgba(45, 42, 50, 0.12);
  border-radius: 1.4rem;
  box-shadow: 0 0.8rem 2.5rem rgba(0, 0, 0, 0.12);
  padding: 0.8rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.8rem);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 1200;
}

.account-hover-menu::before {
  content: '';
  position: absolute;
  top: -1rem;
  left: 0;
  right: 0;
  height: 1rem;
}

.header-account-dropdown:hover .account-hover-menu,
.header-account-dropdown:focus-within .account-hover-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.account-menu-header {
  padding: 1rem 1.6rem 0.8rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: #2d2a32;
  line-height: 1.4;
}

.account-menu-item {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0.9rem 1.6rem;
  color: #2d2a32;
  font-size: 1.4rem;
  line-height: 1.4;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.15s ease, padding-left 0.15s ease;
}

.account-menu-item:hover {
  background: rgba(45, 42, 50, 0.06);
  padding-left: 2rem;
  color: #ff6b4a;
}

.account-menu-divider {
  height: 1px;
  margin: 0.6rem 1.2rem;
  background: rgba(45, 42, 50, 0.12);
}

.account-menu-item.account-logout {
  color: #ef476f;
}

/* Cart Badge Bubble */
.gumtti-cart-count-bubble {
  position: absolute;
  top: 0.2rem;
  right: 0.1rem;
  background-color: #ff6b4a !important;
  color: #ffffff !important;
  border-radius: 999px;
  min-width: 1.9rem;
  height: 1.9rem;
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.4rem;
  line-height: 1;
}

.gumtti-cart-count-bubble.gumtti-cart-empty {
  display: none;
}

/* Mobile Hamburger */
.g-header__hamburger {
  display: none;
}

@media screen and (max-width: 989px) {
  .g-header__hamburger {
    display: inline-flex;
  }
}

/* --------------------------------------------------------------------------
   6. Mobile Navigation Drawer
   -------------------------------------------------------------------------- */
.g-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(36, 31, 45, 0.5);
  backdrop-filter: blur(3px);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.g-drawer-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.g-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 85%;
  max-width: 34rem;
  background: #fff7f0;
  color: #2d2a32;
  z-index: 2000;
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  box-shadow: 0 1.2rem 3.2rem rgba(45, 42, 50, 0.18);
  display: flex;
  flex-direction: column;
}

@media screen and (min-width: 750px) {
  .g-drawer {
    border-radius: 0 2.4rem 2.4rem 0;
    border-right: 1px solid rgba(45, 42, 50, 0.08);
  }
}

.g-drawer.is-active {
  transform: translateX(0);
}

.g-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.6rem 2rem;
  background: #fff7f0;
  border-bottom: 0.1rem solid rgba(45, 42, 50, 0.08);
}

.g-drawer__close {
  width: 3.6rem;
  height: 3.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--g-radius-pill);
  border: none;
  background: rgba(45, 42, 50, 0.08);
  cursor: pointer;
  color: #2d2a32;
}

.g-drawer__search {
  padding: 1.4rem 1.6rem;
  border-bottom: 0.1rem solid rgba(45, 42, 50, 0.08);
}

.g-drawer__menu {
  padding: 1.2rem 1.6rem 2rem;
  flex: 1 1 auto;
}

.g-drawer__item {
  border-bottom: 0.1rem solid rgba(45, 42, 50, 0.08);
}

.g-drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.3rem 1.4rem;
  font-family: var(--g-font-body);
  font-size: 1.8rem;
  font-weight: 700;
  color: #2d2a32;
  border-radius: 1.2rem;
  transition: background 0.18s ease, color 0.18s ease;
}

.g-drawer__link:hover {
  background: rgba(255, 107, 74, 0.1);
  color: #d94a2b;
}

.g-drawer__submenu {
  padding: 0.6rem;
  margin: 0.2rem 0 0.8rem 0.8rem;
  background: #ffffff;
  border: 1px solid rgba(45, 42, 50, 0.06);
  border-radius: 1.4rem;
  display: none;
}

.g-drawer__submenu.is-open {
  display: block;
}

.g-drawer__submenu a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 1.2rem;
  font-size: 1.55rem;
  font-weight: 500;
  color: rgba(45, 42, 50, 0.8);
  border-radius: 0.8rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.g-drawer__submenu a:hover {
  background: rgba(255, 107, 74, 0.08);
  color: #d94a2b;
}
