/* ===== v38: live-site menu (2-row header with dropdowns) + product page layout =====
   Menu items/order mirror aaflowers4u.com. Colors, fonts and buttons are the existing staging styles. */

/* ---------- Header menu ---------- */
.hd-nav .hd-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; justify-content: center; gap: 0.15rem; flex-wrap: wrap; }
.hd-menu > li { position: relative; }
.hd-menu > li > a { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 48px; padding: 0 0.85rem; color: var(--ink); text-decoration: none; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.hd-menu > li > a:hover, .hd-menu > li:focus-within > a, .hd-menu > li > a[aria-current="page"] { color: var(--purple); }
.hd-menu .has-sub > a::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: 0.6; }
.hd-sub { list-style: none; margin: 0; padding: 0.5rem 0; position: absolute; top: 100%; left: 0; min-width: 240px; background: var(--white); border: 1px solid var(--line); border-top: 2px solid var(--purple); border-radius: 0 0 10px 10px; box-shadow: 0 14px 30px rgb(70 44 72 / 0.12); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s; z-index: 70; }
.hd-menu .has-sub:hover > .hd-sub, .hd-menu .has-sub:focus-within > .hd-sub { opacity: 1; visibility: visible; transform: none; }
.hd-sub a { display: flex; align-items: center; gap: 0.75rem; padding: 0.4rem 1.1rem; color: var(--ink); text-decoration: none; font-size: 0.875rem; font-weight: 600; white-space: nowrap; }
.hd-sub a:hover, .hd-sub a:focus-visible, .hd-sub a[aria-current="page"] { background: var(--mist); color: var(--purple); }

/* Tagline bar (as on the live site) */
.topbar { background: var(--mist); color: var(--purple-deep); text-align: center; font-family: var(--font-serif, Georgia, serif); font-weight: 600; font-size: 1rem; line-height: 1.3; padding: 0.55rem var(--gutter); letter-spacing: 0.01em; }
@media (min-width: 900px) { .topbar { font-size: 1.4rem; padding: 0.4rem var(--gutter); } }

/* Search */
.hd-search { display: none; position: relative; }
.hd-search input { width: 100%; box-sizing: border-box; height: 46px; padding: 0 3rem 0 1rem; border: 1px solid var(--line); border-radius: 2px; background: var(--white); font: inherit; font-size: 0.9rem; color: var(--ink); }
.hd-search input:focus-visible { outline: 2px solid var(--purple-light); outline-offset: 1px; border-color: var(--purple); }
.hd-search button { position: absolute; right: 0; top: 0; width: 46px; height: 46px; border: 0; background: none; color: var(--purple-deep); cursor: pointer; display: grid; place-items: center; }
.hd-search-drawer { display: block; margin-top: 1.25rem; }
.hd-wish-label { display: none; }

@media (min-width: 900px) {
  :root { --header-h: 150px; }
  .site-header.hd .hd-inner { height: auto; flex-wrap: wrap; row-gap: 0; padding-top: 0; padding-bottom: 0; gap: 1.5rem; }
  .hd-logo { position: static; transform: none; order: 1; padding: 0.6rem 0; }
  .hd-logo img { height: 66px; }
  .hd-search { display: block; order: 2; flex: 1 1 auto; max-width: 500px; margin: 0 auto; }
  .hd-right { order: 3; margin-left: 0; gap: 0.15rem; }
  .hd-nav { order: 4; flex: 0 0 100%; display: block; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0; }
  .hd-nav .hd-menu { gap: 0.5rem; }
  .hd-menu > li > a { min-height: 58px; font-size: 0.82rem; }
  .hd-meta, .hd-cta, .hd-shop { display: none !important; }
  .hd-wish { width: auto; padding: 0 0.7rem; border: 0 !important; background: none !important; gap: 0.45rem; border-radius: 0; color: var(--ink) !important; }
  .hd-wish-label { display: inline; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
  .hd-wish-badge { position: static; margin-left: -0.1rem; }
  .hd-cart { border: 0 !important; background: none !important; }
  .hd-cart:hover { background: none !important; }
}
@media (max-width: 899px) { .hd-nav { display: none; } }

/* Drawer (mobile) menu with the same items; groups open/close */
.hd-drawer-main details { border-bottom: 1px solid var(--line); }
.hd-drawer-main summary { display: flex; align-items: center; justify-content: space-between; min-height: var(--tap); padding: 0.6rem 0; font-size: 1.05rem; font-weight: 700; color: var(--ink); cursor: pointer; list-style: none; }
.hd-drawer-main summary::-webkit-details-marker { display: none; }
.hd-drawer-main summary::after { content: "+"; font-size: 1.3rem; color: var(--purple); }
.hd-drawer-main details[open] > summary::after { content: "\2212"; }
.hd-drawer-main details ul { list-style: none; margin: 0 0 0.6rem; padding: 0 0 0 0.9rem; }
.hd-drawer-main details ul a { border-bottom: 0; min-height: 40px; padding: 0.3rem 0; font-size: 0.95rem; font-weight: 600; }

/* ---------- Product page layout (thumbnails | large image | sticky details) ---------- */
.pdp-media { display: grid; grid-template-columns: 1fr; gap: 0.75rem; min-width: 0; }
.pdp-thumbs { display: none; }
.pdp-thumbs span { display: block; width: 64px; height: 80px; padding: 0; border: 1.5px solid var(--purple); border-radius: 6px; overflow: hidden; background: var(--mist); }
.pdp-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (min-width: 900px) {
  .pdp { grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr); gap: 0.5rem 3rem; }
  .pdp-media { grid-template-columns: 72px minmax(0, 1fr); gap: 1rem; align-items: start; }
  .pdp-thumbs { display: grid; gap: 0.6rem; align-content: start; position: sticky; top: calc(var(--header-h) + 1rem); }
  .pdp-gallery { aspect-ratio: 4 / 5; max-height: none; height: auto; }
  .pdp-info { position: sticky; top: calc(var(--header-h) + 1rem); align-self: start; }
  .pdp-related, .pdp > .closing-line { grid-column: 1 / -1; }
}

/* Buy area: quantity above, full-width Add to cart, Call / Custom order below */
.pdp-info .buy-row { display: flex; flex-direction: column; align-items: stretch; gap: 0.75rem; }
.pdp-info .buy-row .qty { align-self: flex-start; flex: 0 0 auto; height: 48px; width: 135px; }
.pdp-info .btn-add { width: 100%; min-height: 52px; border-radius: 6px; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.85rem; }
.pdp-secondary { display: grid; gap: 0.6rem; margin-top: 0.75rem; }
.pdp-secondary .btn { width: 100%; justify-content: center; border-radius: 6px; }
.pdp-secondary .text-link { text-align: center; }

/* Related products: centered, spaced heading */
.pdp-related { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.pdp-related .section-head { flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 0.4rem; margin-bottom: 1.5rem; }
.pdp-related .section-head h2 { font-size: 1.05rem; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 600; color: var(--purple-deep); }
.pdp-related .section-link { font-size: 0.85rem; }

.hd-sub img { width: 28px; height: 28px; object-fit: cover; border-radius: 3px; flex: 0 0 auto; }
.hd-sub a { font-weight: 500; }
.search-note { max-width: var(--max); margin: 0 auto; padding: 1rem var(--gutter) 0; font-size: 0.95rem; color: var(--ink-muted); }
