/* Container becomes the flower-template "wrap" */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(14px, 3vw, 18px) clamp(30px, 5vw, 40px);
}

/* Single source of truth for section spacing */
.section {
  margin-top: 34px;
}

/* ==========================
   Topbar (new)
   ========================== */

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #3a3a3a;
  text-transform: uppercase;
}

/* ==========================
   Header / nav shell (JS hooks preserved)
   ========================== */

.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;

  padding: 14px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.brand {
  display: grid;
  gap: 6px;
}

.brand-name {
  font-family: var(--font-head);
  font-weight: 400;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  font-size: 18px;
  line-height: 1.1;
}

.brand-sub {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.60);
}

/* Mobile menu button stays for JS (id=menuBtn) but looks like template */
.menu-btn {
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;

  display: none;
  place-items: center;
  gap: 0;
}

.menu-btn .menu-btn-text {
  display: none;
}

.menu-btn i {
  font-size: 14px;
  opacity: 0.85;
}

.menu-btn:hover {
  background: rgba(255, 255, 255, 0.85);
}

/* Primary nav (must remain nav.nav for header.js) */
.nav {
  display: flex;
  gap: 22px;
  align-items: center;
  justify-content: flex-end;

  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #3d3d3d;
}

.nav a {
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
}

/* Footer-style underline on hover */
.nav a:hover {
  border-bottom-color: rgba(0, 0, 0, 0.25);
  background: transparent;
  transform: none;
}

/* Active tab from header.js */
.nav a.active {
  border-bottom-color: rgba(0, 0, 0, 0.35);
}

/* Hide FontAwesome icons in nav for the cleaner template look */
.nav a i {
  display: none;
}

/* Cart badge */
.badge {
  display: none;
  margin-left: 8px;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: rgba(0, 0, 0, 0.06);
  font-size: 12px;
  font-weight: 700;
  align-items: center;
  justify-content: center;
}

/* --------------------------
   Mobile dropdown behavior (keep your existing JS state)
   -------------------------- */

@media (max-width: 899px) {
  .menu-btn {
    display: grid;
  }

  .site-head {
    flex-wrap: wrap;
    padding-bottom: 54px;
    position: relative;
  }

  .nav {
    display: flex;
    flex-direction: column;
    gap: 14px;

    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% - 40px);

    margin-top: 10px;
    padding: 14px 14px;

    background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--line);
    backdrop-filter: blur(10px);
    z-index: 10;

    max-height: 0;
    opacity: 0;
    transform: translateY(-6px);
    overflow: hidden;
    pointer-events: none;

    transition: max-height 220ms ease, opacity 180ms ease, transform 220ms ease;
  }

  .site-head.nav-open .nav {
    max-height: 520px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav a {
    width: 100%;
    border-bottom: 0;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid transparent;
  }

  .nav a:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.10);
  }

  .nav a.active {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.12);
  }
}

/* ==========================
   Layout helpers
   ========================== */

.stack {
  display: grid;
  gap: 12px;
}

.row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.m-0 {
  margin: 0;
}

.mt-10 {
  margin-top: 10px;
}

.mt-14 {
  margin-top: 14px;
}