
.desktop-only { display: none !important; }
.mobile-only  { display: block; }

.pivenor-announcement {
  background: var(--color-foreground);
  color: var(--color-text-on-accent);
  font-size: var(--text-xl);
}

.pivenor-announcement-is-dismissed .pivenor-announcement {
  display: none;
}

.pivenor-announcement__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  text-align: center;
  padding-right: calc(var(--space-4) + var(--space-7));
  padding-left: calc(var(--space-4) + var(--space-7));
}

.pivenor-announcement__messages {
  min-width: 0;
}

.pivenor-announcement__message {
  margin: 0;
  padding: var(--space-2) 0;
  letter-spacing: var(--tracking-wide);
}

.pivenor-announcement__message:not(.is-active):not(.is-leaving) { display: none; }

.pivenor-announcement__message.is-entering {
  animation: pivenor-announcement-message-in var(--duration-normal) var(--ease-out) both;
}

.pivenor-announcement__message.is-leaving {
  animation: pivenor-announcement-message-out var(--duration-fast) var(--ease-out) both;
}

@keyframes pivenor-announcement-message-in {
  from {
    opacity: 0;
    transform: translateY(var(--space-2));
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pivenor-announcement-message-out {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(calc(var(--space-2) * -1));
  }
}

@media (prefers-reduced-motion: reduce) {
  .pivenor-announcement__message.is-entering,
  .pivenor-announcement__message.is-leaving {
    animation: none;
  }
}

.pivenor-announcement__close {
  position: absolute;
  right: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: var(--radius-semi-max);
  background: transparent;
  color: currentColor;
  cursor: pointer;
  opacity: 0.75;
  transition: opacity var(--duration-fast) var(--ease-out),
              background var(--duration-fast) var(--ease-out);
}

.pivenor-announcement__close:hover {
  opacity: 1;
  background: rgba(var(--rgb-white), var(--alpha-12));
}

.pivenor-announcement__close-icon {
  width: 16px;
  height: 16px;
}

@media (max-width: 480px) {
  .pivenor-announcement {
    font-size: var(--text-l);
    line-height: var(--leading-snug);
  }

  .pivenor-announcement__inner {
    min-height: var(--space-8);
    padding-right: calc(var(--space-8) + var(--space-1));
    padding-left: var(--space-3);
  }

  .pivenor-announcement__message {
    padding: var(--space-2) 0;
    letter-spacing: var(--tracking-normal);
  }

  .pivenor-announcement__close {
    right: var(--space-2);
    width: var(--space-6);
    height: var(--space-6);
  }

  .pivenor-announcement__close-icon {
    width: var(--text-xl);
    height: var(--text-xl);
  }
}

.pivenor-header {
  background: var(--color-surface);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow var(--duration-normal) var(--ease-out);
}

.pivenor-header.is-stuck {
  box-shadow: var(--shadow-md);
}

.pivenor-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-width: 0;
  color: var(--color-text-primary);
  text-decoration: none;
}

.pivenor-logo__mark {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 0;
  background: transparent;
  color: var(--color-accent-1);
  font-weight: var(--font-weight-extrabold);
  overflow: hidden;
}

.pivenor-logo__img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.pivenor-logo__text {
  color: var(--color-text-primary);
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--leading-tight);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pivenor-mobile-header {
  background: var(--color-surface);
}

.pivenor-mobile-header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4) var(--space-1-5);
  gap: var(--space-3);
}

.pivenor-mobile-header__logo {
  flex: 1;
  justify-content: flex-start;
}

.pivenor-mobile-header__logo .pivenor-logo__text {
  /* Use all the space between the logo and the action icons; the text only
     truncates (ellipsis) when it genuinely runs out of room. */
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
}

.pivenor-mobile-header__actions {
  display: flex;
  gap: var(--space-1);
  flex-shrink: 0;
}

.pivenor-icon-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xl);
  background: none;
  border: none;
  color: var(--color-text-primary);
  cursor: pointer;
  text-decoration: none;
  position: relative;
  transition: background var(--duration-fast) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}

.pivenor-mobile-badge {
  position: absolute;
  top: 0px;
  right: 0px;
  background: var(--color-accent-1);
  color: var(--color-text-on-accent);
  font-size: var(--text-m);
  font-weight: var(--font-weight-bold);
  min-width: 18px;
  height: 18px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--space-1-25);
  border: 2px solid var(--color-surface);
}

.pivenor-icon-svg {
  display: block;
  width: 100%;
  height: 100%;
  flex-shrink: 0;
}

.pivenor-icon-svg--xs {
  width: 16px;
  height: 16px;
}

.pivenor-icon-svg--sm {
  width: 20px;
  height: 20px;
}

.pivenor-icon-svg--md {
  width: 22px;
  height: 22px;
}

.pivenor-icon-svg--lg {
  width: 32px;
  height: 32px;
}

.pivenor-icon-btn:active {
  background: var(--color-surface-alt);
}

.pivenor-mobile-search {
  padding: var(--space-0-5) var(--space-4) var(--space-3-5);
  background: var(--color-surface);
}

.pivenor-mobile-search__form {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--color-background);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-xl);
  position: relative;
}

.pivenor-mobile-search__icon {
  display: inline-flex;
  color: var(--color-text-muted);
  flex: 0 0 auto;
}

.pivenor-mobile-search__form input[type="search"],
.pivenor-mobile-search__form input[type="text"] {
  flex: 1;
  border: none;
  background: none;
  font-size: var(--text-2xl);
  outline: none;
  font-family: var(--font-body);
  color: var(--color-text-primary);
  min-width: 0;
}

.pivenor-search-typed-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
}

.pivenor-search-typed-wrap .pivenor-search-typed-input {
  flex: 1;
  width: 100%;
  min-width: 0;
}

.pivenor-search-typed-overlay {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  pointer-events: none;
  overflow: hidden;
  white-space: nowrap;
  transition: opacity var(--duration-fast) var(--ease-out);
}

.pivenor-mobile-search__form .pivenor-search-typed-overlay {
  font-size: var(--text-2xl);
  font-family: var(--font-body);
  color: var(--color-text-muted);
}

.pivenor-search-typed-text {
  overflow: hidden;
  text-overflow: ellipsis;
}

.pivenor-mobile-search__form button[type="submit"]:not(.screen-reader-text) {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
}

.pivenor-mobile-search__cat-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1-25);
  flex: 0 0 auto;
  max-width: 92px;
  padding: 0;
  border: none;
  background: none;
  color: var(--color-text-secondary);
  font-family: var(--font-body);
  font-size: var(--text-l);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.pivenor-mobile-search__cat-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--color-text-muted);
}

.pivenor-mobile-search__cat-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pivenor-mobile-search__cat-chevron {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
  color: var(--color-text-muted);
}

.pivenor-mobile-search__divider {
  width: 1px;
  height: 18px;
  background: var(--color-border);
  flex: 0 0 auto;
}

.pivenor-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-surface);
  display: flex;
  justify-content: space-around;
  padding: var(--space-2) 0 max(var(--space-2), env(safe-area-inset-bottom));
  box-shadow: 0 -2px 10px rgba(var(--rgb-black), var(--alpha-10));
  z-index: 1000;
  will-change: transform;
}

.pivenor-bottom-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  padding: var(--space-2) 0;
  flex: 1;
  font-size: var(--text-l);
  font-weight: var(--font-weight-semibold);
  font-family: var(--font-body);
  line-height: var(--leading-mtight);
  color: var(--color-text-muted);
  text-decoration: none;
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color var(--duration-fast) var(--ease-out);
  appearance: none;
  -webkit-appearance: none;
}

.pivenor-bottom-nav__item:focus,
.pivenor-bottom-nav__item:active {
  background: none;
  outline: none;
}

.pivenor-bottom-nav__item.is-active,
.pivenor-bottom-nav__item:hover {
  color: var(--color-accent-1);
}

.pivenor-bottom-nav__item svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.pivenor-bottom-nav__item span:first-child {
  position: relative;
  display: inline-flex;
}

.pivenor-bottom-nav__badge {
  position: absolute;
  top: var(--neg-space-1-5);
  right: var(--neg-space-2);
  background: var(--color-accent-1);
  color: var(--color-text-on-accent);
  font-size: var(--text-m);
  font-weight: var(--font-weight-bold);
  min-width: 18px;
  height: 18px;
  border-radius: var(--radius-semi-max);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--space-1-25);
}

body {
  padding-bottom: var(--bottom-nav-height);
}

@media (min-width: 1024px) {
  .desktop-only { display: block !important; }
  .mobile-only  { display: none !important; }
  body          { padding-bottom: 0; }

  .pivenor-desktop-header {
    background: var(--color-surface);
  }

  .pivenor-desktop-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
    padding-top: 0.875rem;
    padding-bottom: 0.875rem;
  }

  .pivenor-desktop-header__logo {
    flex: 0 0 auto;
  }

  .pivenor-desktop-header__logo .pivenor-logo__mark,
  .pivenor-desktop-header__logo .pivenor-logo__img {
    width: 40px;
    height: 40px;
  }

  .pivenor-desktop-header__logo .pivenor-logo__text {
    max-width: 260px;
    font-size: var(--text-3xl);
  }

  .pivenor-desktop-search {
    flex: 1;
    max-width: 680px;
  }

  .pivenor-desktop-search__bar form {
    display: flex;
    align-items: center;
    gap: var(--space-2-5);
  }

  .pivenor-desktop-search__fields-wrap {
    display: flex;
    flex: 1;
    align-items: center;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-xl);
    background: var(--color-surface);
    transition: border-color var(--duration-fast) var(--ease-out),
                box-shadow var(--duration-fast) var(--ease-out);
  }

  .pivenor-desktop-search__fields-wrap:focus-within {
    border-color: var(--color-accent-1);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-accent-1) 10%, transparent);
  }

  .pivenor-desktop-search__input {
    flex: 1;
    padding: var(--space-3) var(--space-4);
    outline: none;
    border: none;
    background: transparent;
    font-size: var(--text-2xl);
    font-family: var(--font-body);
    color: var(--color-text-primary);
    min-height: 48px;
  }

  .pivenor-desktop-search .pivenor-search-typed-overlay {
    left: var(--space-4);
    right: var(--space-4);
    font-size: var(--text-2xl);
    font-family: var(--font-body);
    color: var(--color-text-muted);
  }

  .pivenor-desktop-search__input::placeholder {
    color: var(--color-text-muted);
  }

  .pivenor-desktop-search__select-wrap {
    position: relative;
    display: flex;
    align-items: center;
    border-left: 1px solid var(--color-border);
  }

  .pivenor-desktop-search__select {
    padding: var(--space-3) 2.2rem var(--space-3) var(--space-4);
    background: transparent;
    cursor: pointer;
    outline: none;
    border: none;
    border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
    color: var(--color-text-secondary);
    font-weight: var(--font-weight-medium);
    font-size: var(--text-xl);
    min-width: 140px;
    max-width: 200px;
    min-height: 48px;
    font-family: var(--font-body);
    transition: color var(--duration-fast) var(--ease-out);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
  }

  .pivenor-desktop-search__select:hover,
  .pivenor-desktop-search__select:focus {
    color: var(--color-text-primary);
  }

  .pivenor-desktop-search__select-chevron {
    position: absolute;
    right: var(--space-3);
    top: 50%;
    margin-top: -8px;
    width: 16px;
    height: 16px;
    color: var(--color-text-muted);
    pointer-events: none;
    transition: transform var(--duration-fast) var(--ease-out),
                color var(--duration-fast) var(--ease-out);
  }

  .pivenor-desktop-search__select.is-open + .pivenor-desktop-search__select-chevron {
    transform: rotate(180deg);
    color: var(--color-accent-1);
  }

  .pivenor-desktop-search__btn {
    width: 48px;
    min-width: 48px;
    height: 48px;
    background: var(--color-accent-1);
    color: var(--color-text-on-accent);
    border: none;
    border-radius: var(--radius-xl);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--duration-fast) var(--ease-out),
                transform var(--duration-fast) var(--ease-out);
  }

  .pivenor-desktop-search__btn:hover {
    background: var(--color-accent-hover);
    transform: translateY(-1px);
  }

  .pivenor-desktop-header__icons {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-shrink: 0;
  }

  .pivenor-header-icon-dropdown {
    position: relative;
  }

  .pivenor-header-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-xl);
    transition: background var(--duration-fast) var(--ease-out),
                color var(--duration-fast) var(--ease-out);
    cursor: pointer;
    background: none;
    border: none;
    font-family: var(--font-body);
    text-decoration: none;
    color: var(--color-text-primary);
  }

  .pivenor-header-icon:hover {
    background: var(--color-background);
    color: var(--color-accent-1);
  }

  .pivenor-header-icon__wrap {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }

  .pivenor-header-icon__label {
    font-size: var(--text-l);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-secondary);
    white-space: nowrap;
  }

  .pivenor-header-icon:hover .pivenor-header-icon__label {
    color: var(--color-accent-1);
  }

  .pivenor-cart-count {
    position: absolute;
    top: var(--neg-space-1-5);
    right: var(--neg-space-1-5);
    background: var(--color-accent-1);
    color: var(--color-text-on-accent);
    border-radius: var(--radius-semi-max);
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-l);
    font-weight: var(--font-weight-bold);
    padding: 0 var(--space-1-25);
    border: 2px solid var(--color-surface);
  }

  .pivenor-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: var(--space-2);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--duration-normal) var(--ease-out);
    z-index: 1001;
  }

  .pivenor-header-icon-dropdown:hover .pivenor-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .pivenor-dropdown__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: var(--space-3) var(--space-4);
    color: var(--color-text-primary);
    transition: background var(--duration-fast) var(--ease-out),
                color var(--duration-fast) var(--ease-out);
    border: none;
    background: none;
    width: 100%;
    cursor: pointer;
    font-size: var(--text-xl);
    font-family: var(--font-body);
    text-decoration: none;
  }

  .pivenor-dropdown__item:hover {
    background: var(--color-background);
    color: var(--color-accent-1);
  }

  .pivenor-dropdown__divider {
    height: 1px;
    background: var(--color-border);
    margin: var(--space-2) 0;
  }

}

.pivenor-drawer {
  position: fixed;
  inset: 0;
  z-index: 2000;
  visibility: hidden;
  pointer-events: none;
}

.pivenor-drawer.is-open {
  visibility: visible;
  pointer-events: auto;
}

.pivenor-drawer__overlay {
  position: absolute;
  inset: 0;
  background: var(--color-overlay);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.pivenor-drawer.is-open .pivenor-drawer__overlay {
  opacity: 1;
}

.pivenor-drawer__panel {
  position: absolute;
  background: var(--color-surface);
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 60px var(--color-shadow);
  transition: transform var(--duration-normal) var(--ease-out);
  will-change: transform;
}

.pivenor-drawer--bottom .pivenor-drawer__panel {
  bottom: 0; left: 0;
  width: 100%;
  max-height: 72vh;
  border-radius: var(--radius-7xl) var(--radius-7xl) 0 0;
  transform: translateY(100%);
  z-index: 2001;
}

.pivenor-drawer--bottom {
  z-index: 3000;
}

body.is-locked .pivenor-bottom-nav {
  z-index: 0;
}

.pivenor-drawer.is-open .pivenor-drawer__panel {
  transform: translate(0, 0);
}

.pivenor-drawer__handle {
  width: 40px;
  height: 4px;
  border-radius: var(--radius-s);
  background: var(--color-border);
  margin: var(--space-3) auto 0;
  flex-shrink: 0;
}

.pivenor-cat-sheet__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  font-size: 0;
}

.pivenor-cat-sheet__close-icon {
  width: 18px;
  height: 18px;
  display: block;
  flex-shrink: 0;
}

.pivenor-cat-sheet__body {
  padding: 0 0 env(safe-area-inset-bottom, 0);
}

.pivenor-cat-sheet__list {
  list-style: none;
  margin: 0;
  padding: var(--space-2) 0 var(--space-4);
}

.pivenor-cat-sheet__list li {
  border-bottom: 1px solid var(--color-border);
}

.pivenor-cat-sheet__list li:last-child {
  border-bottom: none;
}

.pivenor-cat-sheet__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-3-5) var(--space-5);
  border: none;
  background: none;
  font-family: var(--font-body);
  font-size: var(--text-2xl);
  color: var(--color-text-primary);
  text-align: left;
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}

.pivenor-cat-sheet__option:active {
  background: var(--color-background);
}

.pivenor-cat-sheet__radio {
  position: relative;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-half-percent);
  transition: border-color var(--duration-fast) var(--ease-out),
              background var(--duration-fast) var(--ease-out);
}

.pivenor-cat-sheet__option.is-active {
  color: var(--color-accent-1);
  font-weight: var(--font-weight-semibold);
}

.pivenor-cat-sheet__radio::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 8px;
  height: 8px;
  margin: auto;
  border-radius: var(--radius-half-percent);
  background: var(--color-surface);
  opacity: 0;
  transition: opacity var(--duration-fast) var(--ease-out);
}

.pivenor-cat-sheet__option.is-active .pivenor-cat-sheet__radio {
  border-color: var(--color-accent-1);
  background: var(--color-accent-1);
}

.pivenor-cat-sheet__option.is-active .pivenor-cat-sheet__radio::after {
  opacity: 1;
}

.pivenor-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--color-border);
}

.pivenor-drawer__title {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
}

.pivenor-drawer__close {
  border: none;
  background: var(--color-background);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-semi-max);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-5xl);
  line-height: var(--leading-mtight);
  cursor: pointer;
  color: var(--color-text-secondary);
  transition: background var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out);
}

.pivenor-drawer__close:hover {
  background: var(--color-surface-alt);
  transform: rotate(90deg);
}

.pivenor-drawer__body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: var(--space-6);
}




