/* Public navigation only. Loaded after either theme; account/admin are unchanged. */
.public-header { background: var(--paper); }
.pn-bar { min-height: 112px; display: flex; align-items: center; gap: 28px; }
.pn-brand { display: flex; align-items: center; gap: 14px; flex-shrink: 0; color: var(--ink); font-size: 17px; font-weight: 800; letter-spacing: .11em; line-height: 1.35; }
.pn-brand small { display: block; margin-top: 6px; color: var(--muted); font-size: 10px; font-weight: 500; letter-spacing: .07em; }
.pn-monogram { display: flex; align-items: baseline; font: 46px/1 Georgia, serif; letter-spacing: -.1em; color: var(--accent); }
.pn-monogram span { font-size: 38px; }
.pn-tools, .pn-selectors, .pn-actions { display: flex; align-items: center; }
.pn-tools { margin-left: auto; gap: 22px; }
.pn-selectors { gap: 4px; }
.pn-actions { gap: 10px; padding-left: 20px; border-left: 1px solid var(--line); }
.pn-icon { display: block; flex: 0 0 auto; width: 24px; height: 24px; }
.pn-icon-button, .pn-account, .pn-menu-button, .pn-select summary { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: var(--ink); font-family: inherit; font-size: 14px; line-height: 1.3; font-weight: 600; cursor: pointer; text-decoration: none; transition: background .15s, color .15s; }
.pn-icon-button { position: relative; width: 48px; padding: 0; border: 1px solid transparent; border-radius: 50%; background: transparent; }
.pn-icon-button:hover, .pn-account:hover, .pn-select summary:hover { background: var(--soft); color: var(--accent); }
.pn-account { padding: 4px 10px 4px 4px; border-radius: 28px; }
.pn-account-name { max-width: 140px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pn-avatar { display: grid; place-items: center; position: relative; width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; overflow: hidden; }
.public-site .pn-avatar img { position: absolute; inset: 0; width: 40px; height: 40px; object-fit: cover; }
.pn-badge { position: absolute; right: -1px; top: 0; min-width: 19px; height: 19px; padding: 0 4px; display: grid; place-items: center; border-radius: 12px; background: var(--ink); color: var(--paper); font: 600 10px/1 system-ui, sans-serif; border: 2px solid var(--paper); }
.pn-menu-button { flex-shrink: 0; padding: 0 20px; border: 1px solid var(--line); border-radius: 999px; background: var(--ink); color: var(--paper); gap: 10px; }
.pn-menu-button:hover { background: var(--accent); color: var(--paper); }
.pn-menu-button[hidden] { display: none; }
.pn-select { position: relative; }
.pn-select summary { list-style: none; padding: 0 10px; border-radius: 10px; white-space: nowrap; }
.pn-select summary::-webkit-details-marker { display: none; }
.pn-select summary > .pn-icon:last-child { width: 15px; height: 15px; transition: transform .15s; }
.pn-select[open] summary > .pn-icon:last-child { transform: rotate(180deg); }
.pn-select summary > .pn-icon:first-child:not(:last-child) { width: 19px; height: 19px; }
.pn-options { position: absolute; top: calc(100% + 12px); left: 0; min-width: 190px; max-height: min(420px, 60dvh); overflow: auto; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); z-index: 25; }
.pn-options-label { display: block; padding: 8px 10px; font-size: 11px; color: var(--muted); letter-spacing: .03em; }
.pn-options a { display: flex; align-items: center; gap: 14px; min-height: 44px; padding: 10px; font-size: 14px; border-radius: 7px; white-space: nowrap; }
.pn-options a > span { min-width: 32px; font-weight: 700; }
.pn-options a:hover, .pn-options a[aria-current] { background: var(--soft); color: var(--accent); }
.pn-drawer { position: fixed; inset: 0 0 0 auto; margin: 0; padding: 28px 32px; width: min(460px, 100%); max-width: 100%; height: 100%; height: 100dvh; max-height: 100dvh; border: 0; border-left: 1px solid var(--line); color: var(--ink); background: var(--paper); overflow-y: auto; overscroll-behavior: contain; }
.pn-drawer[open] { display: flex; flex-direction: column; animation: pn-enter .2s ease-out; }
.pn-drawer:not([open]) { display: none; }
.pn-drawer::backdrop { background: rgb(12 10 14 / .5); backdrop-filter: blur(4px); }
.pn-drawer-header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 26px; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; }
.pn-drawer-links { display: flex; align-items: stretch; flex-direction: column; gap: 0; padding: 18px 0 28px; }
.pn-drawer-links a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 19px 0; font-size: clamp(22px, 4vw, 28px); font-weight: 500; line-height: 1.25; border-bottom: 1px solid var(--line); }
.pn-drawer-links a::after { content: '↗'; font: 22px/1 system-ui, sans-serif; color: var(--muted); }
.pn-drawer-links a:hover, .pn-drawer-links a[aria-current] { color: var(--accent); }
.pn-drawer-footer { display: grid; gap: 4px; }
.pn-drawer-footer a { display: flex; align-items: center; gap: 14px; min-height: 48px; font-size: 14px; }
.pn-drawer-footer a > :last-child { margin-left: auto; }
.pn-drawer-footer a:hover { color: var(--accent); }
.public-site .pn-drawer-caption { margin: auto 0 0; padding-top: 38px; font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.pn-drawer-caption span { color: var(--muted); font-size: 10px; font-weight: 400; letter-spacing: .03em; }
html.pn-menu-open { overflow: hidden; }
.pn-nojs-nav { flex-wrap: wrap; padding-bottom: 20px; }
.product-card { position: relative; }
.pn-favorite-form { margin: 0; }
.pn-favorite-overlay { position: absolute; top: 12px; right: 12px; z-index: 1; }
.pn-favorite-overlay .pn-icon-button { background: var(--surface); border-color: var(--line); box-shadow: 0 2px 12px rgb(0 0 0 / .08); }
.pn-favorite-form [aria-pressed="true"] { color: var(--accent); }
.pn-favorite-form [aria-pressed="true"] .pn-icon { fill: currentColor; }
.pn-favorite-detail { margin-top: 12px; }
.pn-favorite-detail button { width: 100%; }
@keyframes pn-enter { from { transform: translateX(30px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@media (min-width: 761px) {
    .pn-bar { min-height: 72px; }
    .pn-drawer-links a { padding: 14px 0; font-size: 18px; }
    .pn-drawer-links a::after { font-size: 18px; }
}
@media (max-width: 1000px) {
    .pn-bar { gap: 16px; }
    .pn-tools { gap: 10px; }
    .pn-actions { gap: 4px; padding-left: 10px; }
    .pn-brand { font-size: 14px; gap: 10px; }
    .pn-brand small { font-size: 9px; letter-spacing: 0; }
    .pn-account-name { max-width: 88px; }
    .pn-menu-button { padding: 0 14px; }
    .pn-menu-button > span { display: none; }
}
@media (max-width: 760px) {
    .pn-bar { min-height: 94px; gap: 10px; }
    .pn-brand small { display: none; }
    .pn-brand { font-size: 12px; letter-spacing: .07em; }
    .pn-monogram { font-size: 38px; }
    .pn-account { padding: 0; min-width: 44px; }
    .pn-account-name { display: none; }
    .pn-select summary { padding: 0 6px; }
    .pn-actions { gap: 0; }
    .pn-icon-button { width: 44px; min-height: 44px; }
    .pn-select summary > .pn-icon:first-child:not(:last-child) { display: none; }
}
@media (max-width: 600px) {
    .pn-bar { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; padding-top: 16px; padding-bottom: 10px; }
    .pn-brand { font-size: 15px; }
    .pn-brand small { display: block; }
    .pn-menu-button { grid-column: 2; grid-row: 1; min-height: 44px; width: 48px; padding: 0; }
    .pn-tools { grid-column: 1 / -1; grid-row: 2; margin: 0; justify-content: space-between; gap: 4px; }
    .pn-actions { padding-left: 8px; }
    .pn-select summary { min-height: 44px; }
    .pn-options { top: calc(100% + 7px); min-width: 168px; }
    .pn-currency-options { left: -50px; }
    .pn-drawer { padding: 20px 24px; }
    .pn-drawer-links a { padding: 17px 0; }
}
@media (prefers-reduced-motion: reduce) {
    .pn-drawer[open] { animation: none; }
    .pn-icon-button, .pn-account, .pn-menu-button, .pn-select summary, .pn-select summary > .pn-icon:last-child { transition: none; }
}
