/* Header account menu — intentionally isolated from the main bundle so it can
   be delivered after the performance-critical storefront stylesheet. */
.st-account-wrap { position: relative; }
.st-account-wrap::after { position: absolute; top: 100%; right: 0; width: 100%; height: 12px; content: ''; }

.st-account-menu {
    position: absolute;
    top: calc(100% + 11px);
    right: 0;
    z-index: 240;
    width: 226px;
    display: grid;
    gap: 3px;
    padding: 8px;
    background: var(--st-bg);
    border: 1px solid var(--st-line);
    border-radius: 22px;
    box-shadow: 0 18px 38px rgba(31, 42, 55, 0.16);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px) scale(0.98);
    transform-origin: top right;
    transition: opacity 160ms var(--st-ease), transform 160ms var(--st-ease), visibility 160ms;
}

.st-account-menu a {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 11px;
    border-radius: 14px;
    color: var(--st-ink);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 160ms var(--st-ease), color 160ms var(--st-ease);
}

.st-account-menu a:hover,
.st-account-menu a:focus-visible {
    background: var(--st-canvas);
    color: var(--st-coral-2);
    outline: none;
}

.st-account-menu svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--st-ink-soft); }
.st-account-menu__admin {
    margin-top: 2px;
    border-top: 1px solid var(--st-line);
    border-radius: 0 !important;
    color: var(--st-coral-2) !important;
}
.st-account-menu__admin svg { color: currentColor; }
.st-account-menu__admin + .st-account-menu__logout { margin-top: 0; border-top: 0; }
.st-account-menu__logout { margin-top: 2px; border-top: 1px solid var(--st-line); border-radius: 0 0 14px 14px !important; color: var(--st-red-1) !important; }
.st-account-menu__logout svg { color: currentColor; }

/* Favorite controls share their selected state across every product card and
   quick-view instance of the same product. */
.st-prod-fav.is-favorite,
.st-qv-fav.is-favorite {
    color: #e2384a;
    background: rgba(226, 56, 74, 0.10);
    border-color: rgba(226, 56, 74, 0.58);
}

.st-prod-fav.is-favorite svg,
.st-qv-fav.is-favorite svg {
    fill: currentColor;
    stroke: currentColor;
}

.st-prod-fav[aria-busy="true"],
.st-qv-fav[aria-busy="true"] {
    cursor: wait;
    opacity: 0.64;
}

.st-account-wrap:hover .st-account-menu,
.st-account-wrap:focus-within .st-account-menu,
.st-account-wrap.is-open .st-account-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

@media (max-width: 600px) {
    .st-account-menu { width: 216px; right: -2px; }
}

/* Compact information and blog pages
   These overrides deliberately live in the final storefront stylesheet so
   the calmer editorial layout does not add a request to the critical path. */
.st-interior { padding: 18px 0 48px; }
.st-interior-hero-panel {
    min-height: 204px;
    border-radius: 24px;
    box-shadow: 0 12px 30px rgba(16, 169, 155, 0.16);
}
.st-interior-hero-panel::before {
    width: 300px;
    height: 300px;
    top: -165px;
    right: 9%;
    border-width: 42px;
}
.st-interior-hero-panel::after { display: none; }
.st-interior-hero-copy { width: min(100%, 760px); padding: 24px 30px 27px; }
.st-interior-hero .st-crumb { margin-bottom: 12px; font-size: 12px; }
.st-interior-eyebrow { margin-bottom: 9px; padding: 5px 9px; font-size: 10px; }
.st-interior-hero-copy h1 {
    max-width: none;
    font-size: clamp(30px, 3.4vw, 43px);
    line-height: 1.08;
}
.st-interior-hero-copy > p { max-width: 620px; margin-top: 9px; font-size: 14px; line-height: 1.55; }
.st-interior-facts { display: none; }
.st-interior-hero-art { width: min(29%, 310px); opacity: 0.52; }
.st-interior-orbit--one { width: 270px; height: 270px; top: -78px; right: -35px; }
.st-interior-orbit--two { display: none; }
.st-interior-orbit--three { width: 78px; height: 78px; top: 61px; left: 16px; }
.st-interior-symbol { width: 72px; height: 72px; right: 23%; border-radius: 22px; }
.st-interior-symbol svg { width: 34px; height: 34px; }
.st-interior-layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 18px; margin-top: 18px; }
.st-content-card { border-radius: 20px; padding: clamp(24px, 3vw, 34px); }
.st-content-card-head { gap: 11px; padding-bottom: 18px; }
.st-content-card-icon { width: 40px; height: 40px; flex-basis: 40px; border-radius: 13px; }
.st-content-card-icon svg { width: 20px; height: 20px; }
.st-content-card-head p { margin-bottom: 2px; font-size: 10px; }
.st-content-card-head h2 { font-size: 17px; }
.st-page-rich { padding-top: 22px; font-size: 14px; line-height: 1.72; }
.st-page-rich h2 { margin: 34px 0 13px; padding-bottom: 10px; font-size: clamp(20px, 2vw, 25px); }
.st-page-rich h3 { margin-top: 25px; font-size: 17px; }
.st-content-updated { margin-top: 27px; padding-top: 15px; }
.st-page-aside { top: 118px; gap: 12px; }
.st-aside-card { border-radius: 18px; padding: 17px; }
.st-aside-heading { gap: 10px; margin-bottom: 10px; }
.st-aside-heading > span { width: 34px; height: 34px; flex-basis: 34px; border-radius: 11px; }
.st-aside-heading > span svg { width: 17px; height: 17px; }
.st-aside-heading p { margin-bottom: 1px; font-size: 9.5px; }
.st-aside-heading h2 { font-size: 15px; }
.st-page-nav { gap: 1px; }
.st-page-nav a { grid-template-columns: 28px minmax(0, 1fr) 13px; gap: 7px; min-height: 40px; padding: 6px 7px; border-radius: 11px; font-size: 12px; }
.st-page-nav-icon { width: 28px; height: 28px; border-radius: 9px; }
.st-page-nav-icon svg { width: 14px; height: 14px; }
.st-help-card { padding: 18px; }
.st-help-card::after { width: 128px; height: 128px; right: -34px; bottom: -45px; border-width: 22px; }
.st-help-card-icon { width: 36px; height: 36px; margin-bottom: 14px; border-radius: 11px; }
.st-help-card-icon svg { width: 18px; height: 18px; }
.st-help-card p { margin-bottom: 5px; font-size: 9.5px; }
.st-help-card h2 { max-width: 205px; font-size: 16px; }
.st-help-card a { min-height: 36px; margin-top: 15px; padding: 0 12px; font-size: 11.5px; }

.st-blog { padding: 14px 0 0; }
.st-blog-hero { padding: 20px 0 30px; background: var(--st-bg); }
.st-blog-hero::after { display: none; }
.st-blog .st-crumb { margin-bottom: 15px; font-size: 12px; }
.st-blog-heading { grid-template-columns: 1fr; align-items: start; gap: 8px; margin-bottom: 20px; }
.st-blog-heading .st-blog-kicker { display: none; }
.st-blog-heading h1 { max-width: none; font-size: clamp(30px, 3.35vw, 42px); line-height: 1.12; letter-spacing: -0.048em; }
.st-blog-heading > p { max-width: 650px; margin: 0; font-size: 14px; line-height: 1.55; }
.st-blog-feature { grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr); border-radius: 18px; box-shadow: none; }
.st-blog-feature-media { min-height: 252px; }
.st-blog-feature-badge { display: none; }
.st-blog-feature-copy { padding: 28px 30px; }
.st-blog-meta { gap: 7px; font-size: 10.5px; }
.st-blog-feature-copy h2 { margin: 9px 0 10px; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.18; }
.st-blog-feature-copy > p { max-width: 530px; font-size: 13.5px; line-height: 1.58; }
.st-blog-read-link { min-height: 38px; margin-top: 17px; padding: 0 14px; font-size: 12px; }
.st-blog-posts,
.st-blog-related { padding: 34px 0 50px; }
.st-blog-section-head { margin-bottom: 17px; }
.st-blog-section-head > div > span { display: none; }
.st-blog-section-head h2 { font-size: 23px; }
.st-blog-grid { gap: 16px; }
.st-blog-card { border-radius: 16px; box-shadow: none; }
.st-blog-card:hover { border-color: var(--st-line); transform: none; box-shadow: none; }
.st-blog-card-media { aspect-ratio: 1.55 / 1; }
.st-blog-card:hover img { transform: none; }
.st-blog-card-copy { padding: 16px; }
.st-blog-card h3 { min-height: 0; margin: 9px 0 7px; font-size: 16px; }
.st-blog-card-link { margin-top: 12px; font-size: 12px; }
.st-blog-card-arrow { display: none; }
.st-blog-callout {
    grid-column: span 3;
    min-height: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px 15px;
    padding: 18px 20px;
    border: 1px solid var(--st-line);
    border-radius: 16px;
    background: var(--st-canvas);
    color: var(--st-ink);
}
.st-blog-callout::after,
.st-blog-callout > span { display: none; }
.st-blog-callout p { margin: 0; color: var(--st-ink-soft); font-size: 12px; letter-spacing: 0; text-transform: none; }
.st-blog-callout h3 { max-width: none; margin: 0; color: var(--st-ink); font-size: 15px; letter-spacing: -0.02em; }
.st-blog-callout a { position: static; min-height: 36px; margin-left: auto; padding: 0 12px; border-color: var(--st-line); color: var(--st-coral-2); font-size: 12px; }
.st-blog-callout a:hover { border-color: var(--st-coral-2); background: transparent; }

@media (max-width: 900px) {
    .st-interior-layout { grid-template-columns: 1fr; }
    .st-page-aside { position: static; grid-template-columns: minmax(0, 1fr) minmax(220px, 0.58fr); }
    .st-blog-feature { grid-template-columns: 1fr; }
    .st-blog-feature-media { min-height: 235px; }
}

@media (max-width: 680px) {
    .st-interior { padding: 12px 0 34px; }
    .st-interior-hero-panel { min-height: 0; border-radius: 19px; }
    .st-interior-hero-copy { padding: 20px 18px 22px; }
    .st-interior-hero .st-crumb { margin-bottom: 10px; font-size: 11px; }
    .st-interior-eyebrow { margin-bottom: 7px; font-size: 9px; }
    .st-interior-hero-copy h1 { font-size: clamp(29px, 9vw, 37px); }
    .st-interior-hero-copy > p { margin-top: 8px; font-size: 13px; }
    .st-interior-hero-art { display: none; }
    .st-interior-layout { gap: 13px; margin-top: 13px; }
    .st-content-card { border-radius: 17px; padding: 20px 17px; }
    .st-page-rich { padding-top: 18px; font-size: 13.5px; }
    .st-page-aside { grid-template-columns: 1fr; gap: 10px; }
    .st-aside-card { border-radius: 16px; padding: 15px; }
    .st-page-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
    .st-page-nav a { grid-template-columns: 26px minmax(0, 1fr); min-height: 42px; padding: 6px; font-size: 11px; }
    .st-page-nav-arrow { display: none; }
    .st-help-card { display: none; }

    .st-blog { padding-top: 10px; }
    .st-blog-hero { padding: 16px 0 23px; }
    .st-blog .st-crumb { margin-bottom: 11px; font-size: 11px; }
    .st-blog-heading { margin-bottom: 15px; }
    .st-blog-heading h1 { font-size: clamp(28px, 8.5vw, 35px); }
    .st-blog-heading > p { font-size: 13px; }
    .st-blog-feature { border-radius: 16px; }
    .st-blog-feature-media { min-height: 196px; }
    .st-blog-feature-copy { padding: 20px 17px; }
    .st-blog-feature-copy h2 { margin: 8px 0; font-size: 22px; }
    .st-blog-feature-copy > p { font-size: 13px; }
    .st-blog-posts,
    .st-blog-related { padding: 28px 0 40px; }
    .st-blog-section-head h2 { font-size: 21px; }
    .st-blog-grid { gap: 11px; }
    .st-blog-card { min-height: 128px; border-radius: 14px; }
    .st-blog-card-copy { padding: 14px; }
    .st-blog-card h3 { font-size: 15px; }
    .st-blog-callout { grid-column: span 1; display: grid; gap: 6px; padding: 17px; }
    .st-blog-callout a { width: max-content; margin: 6px 0 0; }
}

/* Blog list — every article follows one deliberate card grid instead of a
   one-off feature panel followed by a disconnected empty state. */
.st-blog-listing .st-blog-hero {
    padding: 30px 0 24px;
    border-bottom: 1px solid var(--st-line);
    background: var(--st-bg);
}
.st-blog-listing .st-blog-heading { margin-bottom: 0; }
.st-blog-listing .st-blog-heading h1 { max-width: 760px; }
.st-blog-listing .st-blog-heading > p { max-width: 600px; }
.st-blog-listing .st-blog-posts { padding: 32px 0 64px; background: var(--st-canvas); }
.st-blog-listing .st-blog-section-head { align-items: center; margin-bottom: 22px; }
.st-blog-listing .st-blog-section-head > div > span {
    display: block;
    margin-bottom: 6px;
    color: var(--st-coral-2);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.st-blog-listing .st-blog-section-head h2 { font-size: clamp(22px, 2.4vw, 29px); }
.st-blog-grid--listing {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}
.st-blog-listing .st-blog-card {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    border-radius: 18px;
    background: var(--st-bg);
    box-shadow: var(--st-shadow-sm);
}
.st-blog-listing .st-blog-card:hover {
    border-color: rgba(16, 169, 155, .42);
    transform: translateY(-3px);
    box-shadow: var(--st-shadow-md);
}
.st-blog-listing .st-blog-card-media { aspect-ratio: 1.5 / 1; }
.st-blog-listing .st-blog-card-copy {
    display: flex;
    min-height: 184px;
    flex: 1;
    flex-direction: column;
    padding: 18px;
}
.st-blog-listing .st-blog-card h3 {
    min-height: 0;
    margin: 10px 0 8px;
    font-size: 17px;
    line-height: 1.3;
}
.st-blog-listing .st-blog-card-copy > p { -webkit-line-clamp: 3; }
.st-blog-listing .st-blog-card-link { margin-top: auto; padding-top: 15px; }

@media (max-width: 980px) {
    .st-blog-grid--listing { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
    .st-blog-listing .st-blog-hero { padding: 20px 0 18px; }
    .st-blog-listing .st-blog-posts { padding: 25px 0 42px; }
    .st-blog-listing .st-blog-section-head { margin-bottom: 15px; }
    .st-blog-grid--listing { grid-template-columns: 1fr; gap: 13px; }
    .st-blog-listing .st-blog-card { border-radius: 15px; }
    .st-blog-listing .st-blog-card-copy { min-height: 0; padding: 16px; }
}

/* Desktop quick view is a decision layer, not a second product page. Keep it
   deliberately compact while preserving scrolling room for variant-heavy items. */
@media (min-width: 761px) {
    .st-qv {
        width: min(calc(100% - 48px), 820px);
        max-height: min(580px, calc(100vh - 48px));
        border-radius: 20px;
    }
    .st-qv-header { min-height: 64px; padding: 13px 24px; }
    .st-qv-header h2 { font-size: 24px; }
    .st-qv-main { grid-template-columns: minmax(0, .94fr) minmax(300px, 1.06fr); }
    .st-qv-media { min-height: 330px; padding: 20px; }
    .st-qv-media img { max-height: 330px; }
    .st-qv-fav { top: 14px; right: 14px; width: 42px; height: 42px; }
    .st-qv-copy { padding: 23px 26px; }
    .st-qv-brand { margin-bottom: 9px; font-size: 10.5px; }
    .st-qv-name { font-size: clamp(22px, 2.25vw, 29px); }
    .st-qv-rating { min-height: 20px; margin-top: 12px; font-size: 12px; }
    .st-qv-price { gap: 7px; margin-top: 14px; font-size: 27px; }
    .st-qv-price-old { font-size: 13px; }
    .st-qv-desc { margin-top: 14px; font-size: 13px; line-height: 1.5; }
    .st-qv-options { margin-top: 17px; }
    .st-qv-option + .st-qv-option { margin-top: 11px; }
    .st-qv-option-label { margin-bottom: 7px; font-size: 10.5px; }
    .st-qv-choices { gap: 8px; }
    .st-qv-choice { min-width: 34px; min-height: 34px; padding: 5px 9px; font-size: 11px; }
    .st-qv-choice--color { width: 38px; min-width: 38px; }
    .st-qv-quantity { margin-top: 17px; }
    .st-qv-qty { height: 42px; border-radius: 13px; }
    .st-qv-qty button { width: 40px; font-size: 20px; }
    .st-qv-qty output { min-width: 46px; font-size: 15px; }
    .st-qv-footer { grid-template-columns: 1fr minmax(170px, 210px); gap: 10px; padding: 12px 24px; }
    .st-qv-detail, .st-qv-add { min-height: 44px; border-radius: 13px; font-size: 13px; }
}
