/* Appily twentyeight — header, footer, chrome */

/* Utility bar — Kardone-inspired dark top strip */
.a28-util {
  background: var(--a28-plum);
  color: var(--a28-white);
  font-size: 0.78rem;
}
.a28-util-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 38px;
}
.a28-util-left, .a28-util-right {
  display: flex; align-items: center; gap: 1.25rem;
}
.a28-util-link {
  color: var(--a28-white); opacity: 0.9;
  display: flex; align-items: center; gap: 0.35rem;
}
.a28-util-link:hover { opacity: 1; }
.a28-util-icon {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
}
.a28-util-badge {
  position: relative;
}
.a28-util-badge span {
  position: absolute; top: -4px; right: -6px;
  min-width: 16px; height: 16px; padding: 0 4px;
  background: var(--a28-rose); color: var(--a28-white);
  font-size: 0.6rem; font-weight: 700;
  border-radius: 999px; display: flex; align-items: center; justify-content: center;
}
.a28-currency {
  display: flex; align-items: center; gap: 0.25rem;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em;
  cursor: default;
}

/* Main header */
.a28-header {
  background: var(--a28-white);
  border-bottom: 1px solid var(--a28-linen);
  position: sticky; top: 0; z-index: 100;
}
.a28-header-main {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 0;
}
.a28-logo {
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.a28-logo-main {
  font-family: var(--a28-font-body);
  font-size: 1.65rem; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--a28-ink); line-height: 1.1;
}
.a28-logo-sub {
  font-size: 0.62rem; font-weight: 500; letter-spacing: 0.38em;
  text-transform: uppercase; color: var(--a28-muted); margin-top: 0.2rem;
}
.a28-header-search {
  display: flex; max-width: 220px; justify-self: start;
}
.a28-header-search input {
  flex: 1; border: none; border-bottom: 1px solid var(--a28-linen);
  background: transparent; padding: 0.4rem 0; font-size: 0.85rem;
  outline: none;
}
.a28-header-search input:focus { border-color: var(--a28-sage); }
.a28-header-search button {
  background: none; border: none; color: var(--a28-muted); font-size: 1rem; padding: 0 0.25rem;
}
.a28-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-self: end;
}
.a28-header-sign {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--a28-ink);
  white-space: nowrap;
  padding: 0.35rem 0;
}
.a28-header-sign:hover { color: var(--a28-sage); }
.a28-header-cart {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.9rem;
  background: var(--a28-ink);
  color: var(--a28-white);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--a28-radius);
  transition: background 0.2s, transform 0.15s;
}
.a28-header-cart:hover {
  background: var(--a28-plum);
  color: var(--a28-white);
  transform: translateY(-1px);
}
.a28-header-cart-count {
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.3rem;
  background: var(--a28-rose);
  color: var(--a28-white);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1;
}

/* Navigation */
.a28-nav {
  border-top: 1px solid var(--a28-linen);
}
.a28-nav-inner {
  display: flex; align-items: center; justify-content: center; gap: 0;
}
.a28-nav-link {
  padding: 0.9rem 1.35rem;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--a28-ink);
  position: relative;
}
.a28-nav-link:hover, .a28-nav-link.is-active { color: var(--a28-sage); }
.a28-nav-link.is-active::after {
  content: ''; position: absolute; bottom: 0; left: 1.35rem; right: 1.35rem;
  height: 2px; background: var(--a28-sage);
}
.a28-menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: var(--a28-radius);
  transition: background 0.2s;
}
.a28-menu-toggle:hover {
  background: var(--a28-cream);
}
.a28-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--a28-ink);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.a28-menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.a28-menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.a28-menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

body.a28-nav-open {
  overflow: hidden;
}

.a28-nav-drawer {
  display: none;
}

/* Footer — unique wave-top design */
.a28-footer {
  background: var(--a28-linen);
  margin-top: auto;
  position: relative;
}
.a28-footer-wave {
  height: 48px;
  background: var(--a28-cream);
  clip-path: ellipse(55% 100% at 50% 0%);
}
.a28-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.3fr;
  gap: 2.5rem;
  padding: 2.5rem 0 2rem;
}
.a28-footer-col h4 {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  margin: 0 0 1.25rem; color: var(--a28-ink);
}
.a28-footer-col a, .a28-footer-col p {
  display: block; font-size: 0.88rem; color: var(--a28-muted);
  margin: 0 0 0.55rem; line-height: 1.5;
}
.a28-footer-col a:hover { color: var(--a28-sage); }
.a28-footer-brand .a28-footer-logo {
  font-size: 1.1rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--a28-ink); display: block; margin-bottom: 0.25rem;
}
.a28-footer-brand .a28-footer-tag {
  font-size: 0.62rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--a28-muted); display: block; margin-bottom: 0.75rem;
}
.a28-newsletter-form {
  display: flex; margin-top: 0.75rem;
  border-bottom: 1px solid var(--a28-muted);
}
.a28-newsletter-form input {
  flex: 1; border: none; background: transparent;
  padding: 0.5rem 0; font-size: 0.85rem; outline: none;
}
.a28-newsletter-form button {
  background: none; border: none; color: var(--a28-plum); font-size: 1rem; padding: 0 0.25rem;
}
.a28-footer-base {
  border-top: 1px solid rgba(28, 20, 24, 0.08);
  padding: 1rem 0 1.5rem;
  font-size: 0.78rem; color: var(--a28-muted); text-align: center;
}

/* Mobile header + navigation drawer */
@media (max-width: 900px) {
  .a28-header-main {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "menu logo actions";
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
  }

  .a28-header-search { display: none; }
  .a28-menu-toggle {
    display: flex;
    grid-area: menu;
    justify-self: start;
  }
  .a28-logo {
    grid-area: logo;
    justify-self: center;
  }
  .a28-header-actions {
    grid-area: actions;
    justify-self: end;
    gap: 0.35rem;
  }
  .a28-header-sign { display: none; }
  .a28-header-cart {
    padding: 0.45rem 0.65rem;
    min-height: 44px;
  }
  .a28-header-cart-label { display: none; }
  .a28-header-cart::before {
    content: '🛒';
    font-size: 0.9rem;
    line-height: 1;
  }
  .a28-logo-main { font-size: 1.15rem; letter-spacing: 0.12em; }
  .a28-logo-sub { font-size: 0.52rem; letter-spacing: 0.22em; }
  .a28-nav { display: none; }

  .a28-nav-drawer {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 300;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.28s ease;
  }

  .a28-nav-drawer.is-open {
    pointer-events: auto;
    opacity: 1;
  }

  .a28-nav-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(28, 20, 24, 0.52);
    backdrop-filter: blur(2px);
  }

  .a28-nav-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(360px, 92vw);
    height: 100%;
    background: linear-gradient(180deg, var(--a28-white) 0%, var(--a28-cream) 100%);
    padding: 0;
    transform: translateX(104%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    box-shadow: -12px 0 40px rgba(28, 20, 24, 0.12);
    display: flex;
    flex-direction: column;
  }

  .a28-nav-drawer.is-open .a28-nav-panel {
    transform: translateX(0);
  }

  .a28-drawer-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.35rem 1.25rem 1rem;
    border-bottom: 1px solid var(--a28-linen);
    background: var(--a28-white);
  }

  .a28-drawer-logo {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--a28-ink);
    line-height: 1.2;
  }

  .a28-drawer-tag {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.58rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--a28-muted);
  }

  .a28-nav-close {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border: 1px solid var(--a28-linen);
    border-radius: 999px;
    background: var(--a28-white);
    color: var(--a28-ink);
    font-size: 1.45rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
  }

  .a28-nav-close:hover {
    border-color: var(--a28-sage);
    color: var(--a28-sage);
    background: var(--a28-cream);
  }

  .a28-drawer-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 1.25rem 0.5rem;
    padding: 0.65rem 0.85rem;
    background: var(--a28-white);
    border: 1px solid var(--a28-linen);
    border-radius: var(--a28-radius);
  }

  .a28-drawer-search input {
    flex: 1;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    min-width: 0;
  }

  .a28-drawer-search button {
    border: none;
    background: none;
    color: var(--a28-sage);
    font-size: 1.05rem;
    padding: 0;
    min-width: 32px;
    min-height: 32px;
  }

  .a28-drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem 1rem;
  }

  .a28-drawer-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 48px;
    padding: 0.75rem 1rem;
    background: var(--a28-white);
    border: 1px solid var(--a28-linen);
    border-radius: var(--a28-radius);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--a28-ink);
    transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.15s;
  }

  .a28-drawer-link:hover {
    border-color: var(--a28-sage);
    color: var(--a28-sage);
    transform: translateX(2px);
  }

  .a28-drawer-link.is-active {
    background: var(--a28-plum);
    border-color: var(--a28-plum);
    color: var(--a28-white);
  }

  .a28-drawer-link.is-active .a28-drawer-link-arrow {
    opacity: 1;
  }

  .a28-drawer-link-arrow {
    font-size: 0.95rem;
    opacity: 0.45;
  }

  .a28-drawer-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    padding: 0.25rem 1.25rem 1rem;
  }

  .a28-drawer-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 48px;
    padding: 0.75rem 0.85rem;
    border-radius: var(--a28-radius);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
  }

  .a28-drawer-btn-outline {
    background: var(--a28-white);
    color: var(--a28-ink);
    border: 1px solid var(--a28-ink);
  }

  .a28-drawer-btn-outline:hover {
    border-color: var(--a28-sage);
    color: var(--a28-sage);
  }

  .a28-drawer-btn-primary {
    background: var(--a28-sage);
    color: var(--a28-white);
    border: 1px solid var(--a28-sage);
  }

  .a28-drawer-btn-primary:hover {
    background: var(--a28-plum);
    border-color: var(--a28-plum);
    color: var(--a28-white);
  }

  .a28-drawer-cart-count {
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.35rem;
    background: var(--a28-rose);
    color: var(--a28-white);
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1.25rem;
  }

  .a28-drawer-secondary {
    margin-top: auto;
    padding: 1rem 1.25rem 1.5rem;
    border-top: 1px solid var(--a28-linen);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.65);
  }

  .a28-drawer-secondary a {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--a28-muted);
    padding: 0.35rem 0;
  }

  .a28-drawer-secondary a:hover {
    color: var(--a28-sage);
  }

  .a28-footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}

@media (max-width: 560px) {
  .a28-footer-grid { grid-template-columns: 1fr; }
  .a28-util-right { gap: 0.75rem; }
  .a28-drawer-actions { grid-template-columns: 1fr; }
}
