:root {
    --ink: #111318;
    --ink-soft: #292d34;
    --paper: #f3f5f4;
    --surface: #ffffff;
    --surface-soft: #f8f9f8;
    --line: #dde2e5;
    --line-strong: #c7ced3;
    --muted: #65707a;
    --muted-light: #8b949c;
    --blue: #1858d8;
    --blue-soft: #e9f0ff;
    --coral: #e85f4f;
    --lime: #a9cf3d;
    --green: #18864b;
    --green-soft: #e8f7ef;
    --amber: #9a6b00;
    --amber-soft: #fff4d2;
    --red: #be3434;
    --red-soft: #fdecec;
    --radius: 6px;
    --shadow: 0 18px 45px rgba(17, 19, 24, .08);
}

/* Página de error de publicación */

.not-found-page {
    min-height: 100vh;
    margin: 0;
    background: #f4f6f8;
    color: #111318;
}

.not-found-main {
    width: min(620px, calc(100% - 40px));
    min-height: 100vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 18px;
}

.not-found-main .logo {
    margin-bottom: 32px;
    color: #111318;
}

.not-found-code {
    margin: 0;
    color: #2767ee;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0;
}

.not-found-main h1 {
    margin: 0;
    max-width: 560px;
    font-size: 3.5rem;
    line-height: 1.02;
    letter-spacing: 0;
}

.not-found-main > p:not(.not-found-code) {
    margin: 0;
    max-width: 520px;
    color: #596273;
    font-size: 1rem;
    line-height: 1.7;
}

.not-found-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

@media (max-width: 560px) {
    .not-found-main {
        width: min(100% - 32px, 620px);
    }

    .not-found-actions {
        width: 100%;
        flex-direction: column;
    }

    .not-found-main h1 {
        font-size: 2.5rem;
    }

    .not-found-actions a {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    background: var(--paper);
    color: var(--ink);
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

body.cart-open {
    overflow: hidden;
}

button,
input,
select,
textarea {
    color: inherit;
    font: inherit;
    letter-spacing: 0;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

:focus-visible {
    outline: 3px solid rgba(24, 88, 216, .32);
    outline-offset: 3px;
}

.hidden,
.admin-hidden {
    display: none !important;
}

.container {
    width: min(1200px, calc(100% - 40px));
    margin-inline: auto;
}

.eyebrow,
.hero-kicker {
    display: inline-block;
    color: var(--blue);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

/* Store header */

.header {
    position: sticky;
    z-index: 100;
    top: 0;
    height: 72px;
    border-bottom: 1px solid rgba(221, 226, 229, .9);
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(14px);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 26px;
}

.logo,
.auth-logo,
.account-logo,
.admin-logo,
.checkout-logo,
.payment-success-logo {
    color: var(--ink);
    font-size: 19px;
    font-weight: 900;
    letter-spacing: 0;
    white-space: nowrap;
}

.logo span,
.auth-logo span,
.account-logo span,
.admin-logo span,
.checkout-logo span,
.payment-success-logo span {
    color: var(--blue);
}

.nav {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-left: auto;
}

.nav a {
    color: #4f5962;
    font-size: 13px;
    font-weight: 700;
}

.nav a:hover {
    color: var(--ink);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-header-button,
.cart-button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    padding: 0 15px;
    font-size: 12px;
    font-weight: 800;
}

.login-header-button {
    border: 1px solid var(--line);
    background: var(--surface);
}

.login-header-button:hover {
    border-color: var(--ink);
}

.cart-button {
    gap: 9px;
    border: 1px solid var(--ink);
    background: var(--ink);
    color: #fff;
}

.cart-button span {
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: var(--ink);
    font-size: 11px;
}

/* Hero */

.hero {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    background: #1a1d20 url("Images/hero-showroom.png") center / cover no-repeat;
    color: #fff;
}

.hero-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10, 12, 15, .96) 0%, rgba(10, 12, 15, .74) 36%, rgba(10, 12, 15, .08) 72%);
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 520px;
    max-width: 1200px;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-block: 62px;
}

.hero-kicker {
    color: #a9c5ff;
    margin-bottom: 14px;
}

.hero h1 {
    max-width: 720px;
    font-size: 68px;
    font-weight: 900;
    line-height: .95;
    letter-spacing: 0;
}

.hero h1 span {
    display: block;
    color: #8bb0ff;
}

.hero-content > p {
    max-width: 570px;
    margin-top: 22px;
    color: #d7dce2;
    font-size: 17px;
}

.hero-buttons {
    display: flex;
    gap: 10px;
    margin-top: 28px;
}

.primary-button,
.secondary-button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: var(--radius);
    padding: 0 18px;
    font-size: 13px;
    font-weight: 800;
}

.primary-button {
    background: var(--blue);
    color: #fff;
}

.primary-button:hover {
    background: #124cc0;
}

.secondary-button {
    border-color: var(--line);
    background: var(--surface);
    color: var(--ink);
}

.hero-secondary {
    border-color: rgba(255, 255, 255, .34);
    background: rgba(17, 19, 24, .4);
    color: #fff;
}

.hero-features {
    display: flex;
    gap: 36px;
    margin-top: 42px;
}

.hero-features div {
    min-width: 110px;
}

.hero-features dt {
    font-size: 22px;
    font-weight: 900;
}

.hero-features dd {
    max-width: 125px;
    color: #b9c0c8;
    font-size: 11px;
}

/* Store bands */

.advantages {
    border-bottom: 1px solid var(--line);
    background: var(--surface);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.advantages article {
    display: grid;
    min-height: 112px;
    grid-template-columns: 34px 1fr;
    align-content: center;
    padding: 22px 28px;
    border-right: 1px solid var(--line);
}

.advantages article:first-child {
    border-left: 1px solid var(--line);
}

.advantages article > span {
    grid-row: 1 / 3;
    color: var(--blue);
    font-size: 11px;
    font-weight: 900;
}

.advantages strong {
    font-size: 14px;
}

.advantages p {
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
}

.catalog-section {
    padding: 82px 0 92px;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 28px;
}

.section-heading h2 {
    margin-top: 6px;
    font-size: 40px;
    line-height: 1.06;
    letter-spacing: 0;
}

.section-heading p {
    max-width: 540px;
    margin-top: 9px;
    color: var(--muted);
    font-size: 14px;
}

.filter-buttons {
    display: flex;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.filter {
    min-height: 35px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--muted);
    padding: 0 13px;
    font-size: 12px;
    font-weight: 800;
}

.filter.active {
    background: var(--ink);
    color: #fff;
}

.catalog-note {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding: 11px 13px;
    border-left: 3px solid var(--lime);
    background: #eef3e7;
    color: #53603e;
    font-size: 12px;
}

.catalog-note strong {
    color: #26301d;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.product-card {
    position: relative;
    min-width: 0;
    overflow: visible;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    transition: border-color .2s, transform .2s, box-shadow .2s;
}

.product-card.menu-open {
    z-index: 40;
    border-color: #aebbd0;
    box-shadow: 0 18px 48px rgba(20, 30, 42, .16);
    transform: none;
}

.product-card:hover {
    border-color: var(--line-strong);
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.product-card.menu-open:hover {
    border-color: #aebbd0;
    box-shadow: 0 18px 48px rgba(20, 30, 42, .16);
    transform: none;
}

.product-image {
    position: relative;
    display: grid;
    aspect-ratio: 4 / 3;
    place-items: center;
    overflow: hidden;
    border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
    border-bottom: 1px solid var(--line);
    background: #edf0f2;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 14px;
}

.product-placeholder {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #99a2aa;
    text-align: center;
}

.product-image.image-missing .product-placeholder {
    display: flex;
}

.product-placeholder strong {
    color: #68737c;
    font-size: 38px;
    font-weight: 900;
}

.product-placeholder span {
    margin-top: 4px;
    font-size: 10px;
    text-transform: uppercase;
}

.product-badge,
.flavor-count {
    position: absolute;
    top: 12px;
    min-height: 25px;
    display: inline-flex;
    align-items: center;
    border-radius: 4px;
    padding: 0 8px;
    font-size: 9px;
    font-weight: 900;
}

.product-badge {
    left: 12px;
    background: var(--ink);
    color: #fff;
}

.flavor-count {
    right: 12px;
    border: 1px solid rgba(17, 19, 24, .1);
    background: rgba(255, 255, 255, .94);
    color: var(--ink-soft);
}

.product-info {
    padding: 20px;
}

.product-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.product-name {
    font-size: 19px;
    line-height: 1.2;
}

.product-category {
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
}

.starting-price {
    flex: 0 0 auto;
    text-align: right;
}

.starting-price small {
    display: block;
    color: var(--muted-light);
    font-size: 9px;
    font-weight: 800;
}

.starting-price strong {
    color: var(--blue);
    font-size: 17px;
}

.flavor-field {
    display: block;
    margin: 18px 0;
}

.flavor-field > span,
.box-selector > div:first-child span {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.account-orders-toolbar select,
.profile-field select,
.admin-toolbar select,
.admin-field select {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-soft);
    padding: 0 34px 0 11px;
    font-size: 12px;
    outline: 0;
}

.account-orders-toolbar select:focus,
.profile-field select:focus,
.admin-toolbar select:focus,
.admin-field select:focus {
    border-color: var(--blue);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(24, 88, 216, .1);
}

.flavor-picker {
    position: relative;
}

.flavor-trigger {
    display: grid;
    width: 100%;
    min-height: 58px;
    grid-template-columns: 40px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 11px;
    border: 1px solid #ccd3da;
    border-radius: 12px;
    background: #f7f9fa;
    padding: 7px 11px 7px 8px;
    color: var(--ink);
    text-align: left;
    transition: border-color .18s, background .18s, box-shadow .18s;
}

.flavor-trigger:hover {
    border-color: #aeb8c2;
    background: #fff;
}

.flavor-trigger:focus-visible,
.flavor-picker.open .flavor-trigger {
    border-color: var(--blue);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(24, 88, 216, .1);
    outline: 0;
}

.flavor-trigger-media,
.flavor-option-media {
    display: grid;
    overflow: hidden;
    place-items: center;
    border: 1px solid #e0e5e9;
    background: #fff;
}

.flavor-trigger-media {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.flavor-trigger-media img,
.flavor-option-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.flavor-trigger-copy {
    min-width: 0;
}

.flavor-trigger-copy strong,
.flavor-trigger-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.flavor-trigger-copy strong {
    font-size: 12px;
}

.flavor-trigger-copy small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 9px;
}

.flavor-chevron {
    width: 8px;
    height: 8px;
    justify-self: center;
    border-right: 2px solid #65717c;
    border-bottom: 2px solid #65717c;
    transform: translateY(-2px) rotate(45deg);
    transition: transform .18s;
}

.flavor-picker.open .flavor-chevron {
    transform: translateY(2px) rotate(225deg);
}

.flavor-menu {
    position: absolute;
    z-index: 50;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    max-height: 330px;
    overflow-y: auto;
    border: 1px solid #cbd3da;
    border-radius: 12px;
    background: #fff;
    padding: 7px;
    box-shadow: 0 18px 45px rgba(18, 27, 36, .2);
    scrollbar-width: thin;
}

.flavor-menu[hidden] {
    display: none;
}

.flavor-option {
    display: grid;
    width: 100%;
    min-height: 52px;
    grid-template-columns: 38px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 10px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    padding: 6px;
    color: var(--ink-soft);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
    text-align: left;
}

.flavor-option:hover,
.flavor-option:focus-visible {
    background: #eef3fb;
    color: var(--ink);
    outline: 0;
}

.flavor-option.selected {
    background: #e8f0ff;
    color: #124fbf;
}

.flavor-option-media {
    width: 38px;
    height: 38px;
    border-radius: 8px;
}

.flavor-option-check {
    color: var(--blue);
    font-size: 14px;
    opacity: 0;
}

.flavor-option.selected .flavor-option-check {
    opacity: 1;
}

.nicotine-field {
    margin: -3px 0 18px;
}

.nicotine-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 7px;
}

.nicotine-heading span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.nicotine-heading small {
    color: var(--muted-light);
    font-size: 9px;
}

.nicotine-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    border: 1px solid #d2d9df;
    border-radius: 12px;
    background: #eef1f3;
    padding: 4px;
}

.nicotine-option {
    min-width: 0;
    min-height: 36px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: #68737c;
    font-size: 10px;
    font-weight: 850;
    transition: border-color .16s, background .16s, color .16s, box-shadow .16s;
}

.nicotine-option:hover,
.nicotine-option:focus-visible {
    color: var(--ink);
    outline: 0;
}

.nicotine-option.selected {
    border-color: #c7d5ec;
    background: #fff;
    color: var(--blue);
    box-shadow: 0 2px 7px rgba(23, 40, 63, .1);
}

.box-selector {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.box-selector > div:first-child span {
    margin-bottom: 1px;
}

.box-selector > div:first-child strong {
    font-size: 13px;
}

.quantity,
.cart-quantity {
    display: flex;
    align-items: center;
    gap: 7px;
}

.quantity button,
.cart-quantity button {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--surface-soft);
    font-size: 17px;
}

.quantity button:hover,
.cart-quantity button:hover {
    border-color: var(--ink);
}

.quantity > input {
    width: 62px;
    height: 34px;
    border: 1px solid #cbd3da;
    border-radius: 4px;
    background: #fff;
    color: var(--ink);
    padding: 0 7px;
    text-align: center;
    font-size: 13px;
    font-weight: 900;
}

.quantity > input:hover {
    border-color: #98a6b2;
}

.quantity > input:focus {
    border-color: var(--blue);
    outline: 3px solid rgba(24, 88, 216, .13);
}

.price-current {
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
}

.price-current div {
    min-width: 0;
}

.price-current span,
.price-current small {
    display: block;
}

.price-current span {
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 700;
}

.price-current small {
    margin-top: 2px;
    color: var(--muted-light);
    font-size: 9px;
}

.price-current strong {
    flex: 0 0 auto;
    font-size: 14px;
}

.add-cart,
.checkout-button {
    width: 100%;
    min-height: 44px;
    border: 0;
    border-radius: var(--radius);
    background: var(--ink);
    color: #fff;
    font-size: 12px;
    font-weight: 850;
}

.add-cart:hover,
.checkout-button:hover:not(:disabled) {
    background: var(--blue);
}

/* Process and contact */

.how-section {
    padding: 82px 0;
    background: var(--ink);
    color: #fff;
}

.how-section .eyebrow {
    color: #95b6ff;
    font-size: 13px;
}

.how-section .section-heading h2 {
    font-size: 44px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid #343941;
    border-left: 1px solid #343941;
}

.steps-grid article {
    min-height: 232px;
    padding: 28px;
    border-right: 1px solid #343941;
    border-bottom: 1px solid #343941;
}

.steps-grid article > span {
    color: #8eb1ff;
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
}

.steps-grid h3 {
    margin-top: 46px;
    font-size: 26px;
    line-height: 1.2;
}

.steps-grid p {
    margin-top: 10px;
    color: #aab1ba;
    font-size: 16px;
    line-height: 1.5;
}

.contact-section {
    padding: 64px 0;
    background: #e8ecef;
}

.contact-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.contact-box h2 {
    margin-top: 5px;
    font-size: 30px;
}

.contact-box p {
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
}

.contact-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.contact-email {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    border: 1px solid #b9c3ca;
    border-radius: 6px;
    background: #fff;
    padding: 0 15px;
    color: var(--ink);
    font-size: 12px;
    font-weight: 800;
    transition: border-color .18s, color .18s, box-shadow .18s;
}

.contact-email:hover,
.contact-email:focus-visible {
    border-color: var(--blue);
    color: var(--blue);
    outline: 0;
    box-shadow: 0 5px 16px rgba(24, 88, 216, .1);
}

.secondary-button.dark {
    flex: 0 0 auto;
    border-color: var(--ink);
    background: var(--ink);
    color: #fff;
}

footer {
    border-top: 1px solid var(--line);
    background: var(--surface);
}

.footer-content {
    display: flex;
    min-height: 138px;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
}

.footer-content p {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 22px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.footer-links a {
    transition: color .18s;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: var(--blue);
    outline: 0;
}

/* Legal */

.legal-back-button {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    padding: 0 13px;
    font-size: 10px;
    font-weight: 800;
}

.legal-main {
    background: #f1f4f5;
}

.legal-intro {
    border-bottom: 1px solid var(--line);
    background: #fff;
    padding: 64px 0 44px;
}

.legal-intro h1 {
    margin-top: 7px;
    font-size: 45px;
}

.legal-intro p {
    max-width: 720px;
    margin-top: 12px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

.legal-intro .legal-updated {
    margin-top: 18px;
    color: #7c858d;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.legal-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 42px;
    align-items: start;
    padding-block: 48px 72px;
}

.legal-index {
    position: sticky;
    top: 94px;
    display: flex;
    flex-direction: column;
    border-left: 1px solid #cfd6db;
}

.legal-index a {
    border-left: 3px solid transparent;
    padding: 10px 0 10px 15px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 750;
    transition: border-color .18s, color .18s, background .18s;
}

.legal-index a:hover,
.legal-index a:focus-visible {
    border-left-color: var(--blue);
    background: rgba(255, 255, 255, .72);
    color: var(--ink);
    outline: 0;
}

.legal-content {
    min-width: 0;
}

.legal-section {
    scroll-margin-top: 92px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 30px;
}

.legal-section + .legal-section {
    margin-top: 16px;
}

.legal-number {
    color: var(--blue);
    font-size: 10px;
    font-weight: 900;
}

.legal-section h2 {
    margin-top: 5px;
    font-size: 27px;
}

.legal-section h3 {
    margin-top: 23px;
    font-size: 14px;
}

.legal-section p {
    margin-top: 10px;
    color: #59636c;
    font-size: 13px;
    line-height: 1.75;
}

.legal-section a {
    color: var(--blue);
    font-weight: 750;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-note {
    margin-top: 20px;
    border-left: 3px solid var(--lime);
    background: #eef3e7;
    padding: 14px 16px;
    color: #4c583d;
    font-size: 12px;
    line-height: 1.6;
}

/* Cart */

.cart-overlay {
    position: fixed;
    z-index: 150;
    inset: 0;
    visibility: hidden;
    background: rgba(10, 12, 15, .48);
    opacity: 0;
    transition: opacity .2s, visibility .2s;
}

.cart-overlay.open {
    visibility: visible;
    opacity: 1;
}

.cart-panel {
    position: fixed;
    z-index: 160;
    top: 0;
    right: 0;
    display: grid;
    width: min(460px, 100%);
    height: 100dvh;
    grid-template-rows: auto 1fr auto;
    border-left: 1px solid var(--line);
    background: var(--surface);
    box-shadow: -24px 0 60px rgba(17, 19, 24, .16);
    transform: translateX(100%);
    transition: transform .24s ease;
}

.cart-panel.open {
    transform: translateX(0);
}

.cart-header {
    display: flex;
    min-height: 82px;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
}

.cart-header span {
    color: var(--blue);
    font-size: 9px;
    font-weight: 900;
}

.cart-header h2 {
    margin-top: 2px;
    font-size: 22px;
}

.close-cart {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    font-size: 22px;
}

.cart-items {
    overflow-y: auto;
    padding: 16px 20px;
}

.empty-cart,
.empty-account-state,
.admin-empty,
.admin-empty-small {
    display: flex;
    min-height: 170px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    text-align: center;
}

.empty-cart strong,
.empty-account-state strong {
    color: var(--ink);
    font-size: 14px;
}

.empty-cart p,
.empty-account-state p {
    max-width: 250px;
    margin-top: 5px;
    font-size: 12px;
}

.cart-item {
    position: relative;
    padding: 0 0 17px;
    border-bottom: 1px solid var(--line);
}

.cart-item + .cart-item {
    padding-top: 17px;
}

.cart-item-main {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 12px;
}

.cart-item-image {
    position: relative;
    display: grid;
    width: 62px;
    height: 62px;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #eef1f3;
}

.cart-item-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cart-item-image span {
    color: #74808a;
    font-size: 13px;
    font-weight: 900;
}

.cart-item h3 {
    padding-right: 48px;
    font-size: 13px;
}

.cart-item p {
    margin-top: 2px;
    color: var(--muted);
    font-size: 11px;
    overflow-wrap: anywhere;
}

.cart-nicotine {
    display: inline-flex;
    min-height: 21px;
    align-items: center;
    margin-top: 6px;
    border: 1px solid #cbd9ee;
    border-radius: 5px;
    background: #eef4ff;
    padding: 0 7px;
    color: #1553bd;
    font-size: 9px;
    font-weight: 850;
}

.cart-item small {
    display: block;
    margin-top: 5px;
    color: var(--muted-light);
    font-size: 10px;
}

.remove-item {
    position: absolute;
    top: 2px;
    right: 0;
    border: 0;
    background: transparent;
    color: var(--red);
    font-size: 10px;
    font-weight: 800;
}

.cart-item + .cart-item .remove-item {
    top: 19px;
}

.cart-item-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
}

.cart-quantity span {
    min-width: 52px;
    text-align: center;
    font-size: 10px;
    font-weight: 800;
}

.cart-quantity button {
    width: 27px;
    height: 27px;
    font-size: 14px;
}

.cart-bottom {
    padding: 18px 20px 20px;
    border-top: 1px solid var(--line);
    background: #fff;
}

.progress-text,
.cart-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.progress-text {
    color: var(--muted);
    font-size: 10px;
}

.progress-text strong {
    color: var(--ink);
}

.progress-bar {
    height: 5px;
    margin-top: 8px;
    overflow: hidden;
    border-radius: 3px;
    background: #e4e8eb;
}

.progress-fill {
    width: 0;
    height: 100%;
    background: var(--lime);
    transition: width .25s;
}

.model-progress-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 8px;
}

.model-progress-list span {
    border-radius: 3px;
    background: var(--amber-soft);
    color: var(--amber);
    padding: 3px 6px;
    font-size: 9px;
    font-weight: 800;
}

.model-progress-list span.complete {
    background: var(--green-soft);
    color: var(--green);
}

.cart-total {
    margin: 17px 0;
    font-size: 12px;
}

.cart-total strong {
    font-size: 21px;
}

.checkout-button:disabled {
    cursor: not-allowed;
    background: #c8cdd1;
}

.cart-security-note {
    margin-top: 8px;
    color: var(--muted-light);
    font-size: 9px;
    text-align: center;
}

.toast,
.account-toast,
.admin-toast {
    position: fixed;
    z-index: 300;
    left: 50%;
    bottom: 22px;
    visibility: hidden;
    max-width: min(420px, calc(100% - 28px));
    border-radius: var(--radius);
    background: var(--ink);
    color: #fff;
    opacity: 0;
    padding: 11px 15px;
    font-size: 11px;
    font-weight: 800;
    text-align: center;
    transform: translate(-50%, 16px);
    transition: .2s;
}

.toast.show,
.account-toast.show,
.admin-toast.show {
    visibility: visible;
    opacity: 1;
    transform: translate(-50%, 0);
}

.toast.error,
.account-toast.error,
.admin-toast.error {
    background: var(--red);
}

/* Authentication */

.auth-page {
    display: grid;
    min-height: 100dvh;
    place-items: center;
    padding: 34px 18px;
    background:
        linear-gradient(115deg, rgba(17, 19, 24, .96), rgba(17, 19, 24, .76)),
        url("Images/hero-showroom.png") center / cover fixed;
}

.auth-container {
    width: min(430px, 100%);
}

.auth-logo {
    display: block;
    margin-bottom: 18px;
    color: #fff;
    text-align: center;
}

.auth-card {
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .28);
    padding: 31px;
}

.auth-heading {
    margin-bottom: 24px;
}

.auth-heading > span {
    color: var(--blue);
    font-size: 10px;
    font-weight: 900;
}

.auth-heading h1 {
    margin-top: 4px;
    font-size: 30px;
    line-height: 1.1;
}

.auth-heading p {
    margin-top: 7px;
    color: var(--muted);
    font-size: 13px;
}

.auth-field {
    margin-bottom: 16px;
}

.auth-field label,
.profile-field label,
.admin-field label {
    display: block;
    margin-bottom: 6px;
    color: #4d565f;
    font-size: 11px;
    font-weight: 800;
}

.auth-field input,
.profile-field input,
.profile-field textarea,
.admin-search input,
.admin-field input {
    width: 100%;
    min-height: 43px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-soft);
    padding: 10px 12px;
    outline: 0;
    font-size: 13px;
}

.auth-field input:focus,
.profile-field input:focus,
.profile-field textarea:focus,
.admin-search input:focus,
.admin-field input:focus {
    border-color: var(--blue);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(24, 88, 216, .1);
}

.auth-button,
.save-profile-button,
.logout-button,
.order-pay-button,
.admin-order-actions button,
.admin-ticket-edit button {
    display: inline-flex;
    min-height: 43px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: var(--radius);
    background: var(--ink);
    color: #fff;
    padding: 0 16px;
    font-size: 12px;
    font-weight: 850;
}

.auth-button {
    width: 100%;
}

.auth-button:hover,
.save-profile-button:hover,
.order-pay-button:hover,
.admin-order-actions button:hover,
.admin-ticket-edit button:hover {
    background: var(--blue);
}

.forgot-password {
    margin: -5px 0 15px;
    color: var(--blue);
    font-size: 11px;
    text-align: right;
}

.auth-message {
    min-height: 18px;
    margin-top: 12px;
    color: var(--muted);
    font-size: 11px;
}

.auth-message.error {
    color: var(--red);
}

.auth-message.success {
    color: var(--green);
}

.auth-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 11px;
}

.auth-bottom a {
    color: var(--blue);
    font-weight: 800;
}

.back-store {
    display: block;
    margin-top: 16px;
    color: var(--muted);
    font-size: 11px;
    text-align: center;
}

/* Shared portal layout */

.account-page,
.admin-page {
    min-height: 100dvh;
    background: #eef1f2;
}

.account-layout,
.admin-layout {
    display: grid;
    min-height: 100dvh;
    grid-template-columns: 248px minmax(0, 1fr);
}

.account-sidebar,
.admin-sidebar {
    position: sticky;
    top: 0;
    display: flex;
    height: 100dvh;
    flex-direction: column;
    border-right: 1px solid #30343b;
    background: var(--ink);
    color: #fff;
    padding: 25px 18px;
}

.account-logo,
.admin-logo {
    color: #fff;
    padding: 0 7px;
}

.admin-logo small {
    display: block;
    margin-top: 3px;
    color: #8daaf0;
    font-size: 8px;
    font-weight: 900;
}

.account-user,
.admin-user {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    margin: 27px 0 19px;
    padding: 14px 8px;
    border-top: 1px solid #30343b;
    border-bottom: 1px solid #30343b;
}

.account-avatar,
.admin-avatar {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
}

.account-user strong,
.admin-user strong,
.account-user span,
.admin-user span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-user strong,
.admin-user strong {
    font-size: 12px;
}

.account-user span,
.admin-user span {
    margin-top: 2px;
    color: #929aa4;
    font-size: 9px;
}

.account-nav,
.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.account-nav-item,
.admin-nav-item {
    min-height: 40px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #aeb5bd;
    padding: 0 11px;
    font-size: 11px;
    font-weight: 750;
    text-align: left;
}

.account-nav-item:hover,
.admin-nav-item:hover,
.account-nav-item.active,
.admin-nav-item.active {
    background: #2b3037;
    color: #fff;
}

.account-nav-item.active,
.admin-nav-item.active {
    box-shadow: inset 3px 0 var(--lime);
}

.account-sidebar-bottom,
.admin-sidebar-bottom {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid #30343b;
}

.account-sidebar-bottom a,
.account-sidebar-bottom button,
.admin-sidebar-bottom a,
.admin-sidebar-bottom button {
    min-height: 35px;
    border: 0;
    background: transparent;
    color: #9fa7b0;
    padding: 0 8px;
    font-size: 10px;
    text-align: left;
}

.account-main,
.admin-main {
    min-width: 0;
    padding: 48px clamp(24px, 4vw, 62px) 70px;
}

.account-section,
.admin-section {
    display: none;
    max-width: 1180px;
    margin-inline: auto;
}

.account-section.active,
.admin-section.active {
    display: block;
}

.account-heading,
.admin-heading {
    margin-bottom: 25px;
}

.account-heading > span,
.admin-heading > span,
.account-card-header span,
.admin-card-heading span,
.support-history-heading > span {
    color: var(--blue);
    font-size: 9px;
    font-weight: 900;
}

.account-heading h1,
.admin-heading h1 {
    margin-top: 4px;
    font-size: 34px;
    line-height: 1.08;
}

.account-heading p,
.admin-heading p {
    max-width: 580px;
    margin-top: 7px;
    color: var(--muted);
    font-size: 12px;
}

.account-stats,
.admin-stats {
    display: grid;
    gap: 1px;
    margin-bottom: 22px;
    border: 1px solid var(--line);
    background: var(--line);
}

.account-stats-four {
    grid-template-columns: repeat(4, 1fr);
}

.admin-stats-six {
    grid-template-columns: repeat(6, 1fr);
}

.admin-stats-seven {
    grid-template-columns: repeat(7, 1fr);
}

.account-stat,
.admin-stat {
    min-width: 0;
    background: #fff;
    padding: 17px;
}

.account-stat span,
.admin-stat span {
    display: block;
    min-height: 30px;
    color: var(--muted);
    font-size: 10px;
}

.account-stat strong,
.admin-stat strong {
    display: block;
    margin-top: 5px;
    font-size: 24px;
}

.account-card,
.admin-card,
.order-card,
.ticket-card,
.admin-order-card,
.admin-ticket-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.account-card,
.admin-card {
    padding: 21px;
}

.account-card + .account-card,
.order-card + .order-card,
.ticket-card + .ticket-card,
.admin-order-card + .admin-order-card,
.admin-ticket-card + .admin-ticket-card {
    margin-top: 14px;
}

.account-card-header-row,
.admin-card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.account-card-header h2,
.admin-card-heading h2,
.support-history-heading h2 {
    margin-top: 2px;
    font-size: 18px;
}

.account-small-button,
.admin-card-heading button {
    min-height: 32px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
    padding: 0 10px;
    font-size: 10px;
    font-weight: 800;
}

/* Account */

.account-recent-orders {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.account-recent-order {
    display: flex;
    min-width: 0;
    min-height: 132px;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid #d9dfe4;
    border-radius: 8px;
    background: linear-gradient(145deg, #fff, #f7f9fa);
    padding: 15px;
    color: var(--ink);
    text-align: left;
    transition: border-color .18s, box-shadow .18s, transform .18s;
}

.account-recent-order:hover,
.account-recent-order:focus-visible {
    border-color: #9eb6df;
    box-shadow: 0 10px 24px rgba(23, 40, 63, .1);
    outline: 0;
    transform: translateY(-2px);
}

.account-recent-order-top,
.account-recent-order-meta,
.account-recent-order-bottom {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.account-recent-order-number {
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-recent-order-meta {
    justify-content: flex-start;
    color: var(--muted);
    font-size: 9px;
}

.account-recent-order-meta span + span::before {
    content: "·";
    margin-right: 10px;
    color: #a6afb7;
}

.account-recent-order-bottom {
    align-items: flex-end;
    border-top: 1px solid #e3e7ea;
    padding-top: 11px;
}

.account-recent-order-total {
    margin-left: auto;
    font-size: 17px;
}

.account-recent-order-arrow {
    display: grid;
    width: 27px;
    height: 27px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    font-size: 13px;
}

.admin-recent-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 0;
    border-top: 1px solid var(--line);
}

.admin-recent-row strong {
    font-size: 12px;
}

.admin-recent-row span,
.admin-recent-row small {
    display: block;
    color: var(--muted);
    font-size: 9px;
}

.admin-recent-payment {
    text-align: right;
}

.account-orders-toolbar,
.admin-toolbar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 190px;
    gap: 9px;
    margin-bottom: 15px;
}

.admin-toolbar {
    grid-template-columns: minmax(240px, 1fr) 180px 180px;
}

.account-orders-search input,
.admin-search input {
    min-height: 42px;
}

.order-card,
.ticket-card {
    padding: 21px;
}

.order-card {
    scroll-margin: 32px;
}

.order-card:focus {
    outline: 0;
}

.order-card.order-card-highlight {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(24, 88, 216, .11), 0 16px 34px rgba(24, 88, 216, .1);
    animation: order-highlight 1.15s ease-out;
}

@keyframes order-highlight {
    0% { transform: translateY(8px); }
    45% { transform: translateY(0); }
    100% { transform: translateY(0); }
}

.order-top,
.ticket-top,
.admin-order-header,
.admin-ticket-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.order-top > div:first-child > span,
.ticket-top > div:first-child > span,
.admin-order-header > div:first-child > span,
.admin-ticket-header > div:first-child > span,
.admin-products-title span,
.admin-shipping-title span,
.admin-customer-title,
.admin-payment-panel-title,
.admin-order-notes span,
.admin-current-tracking > span {
    color: var(--blue);
    font-size: 8px;
    font-weight: 900;
}

.order-top h2,
.ticket-top h2,
.admin-order-header h2,
.admin-ticket-header h2 {
    margin-top: 2px;
    font-size: 19px;
}

.order-top small,
.ticket-top small,
.admin-order-header small,
.admin-ticket-header small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 9px;
}

.order-badges,
.admin-order-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 5px;
}

.order-status,
.payment-badge,
.ticket-status,
.admin-status-badge {
    display: inline-flex;
    min-height: 25px;
    align-items: center;
    border-radius: 3px;
    background: #edf0f2;
    color: #59636c;
    padding: 0 8px;
    font-size: 9px;
    font-weight: 850;
}

.status-delivered,
.payment-paid,
.ticket-closed,
.admin-status-delivered,
.admin-payment-paid,
.admin-ticket-closed {
    background: var(--green-soft);
    color: var(--green);
}

.status-shipping,
.payment-processing,
.ticket-reviewing,
.admin-status-shipping,
.admin-payment-processing,
.admin-ticket-reviewing {
    background: var(--blue-soft);
    color: var(--blue);
}

.status-cancelled,
.payment-failed,
.admin-status-cancelled,
.admin-payment-failed,
.payment-expired,
.admin-payment-expired {
    background: var(--red-soft);
    color: var(--red);
}

.payment-pending,
.ticket-open,
.admin-payment-pending,
.admin-ticket-open {
    background: var(--amber-soft);
    color: var(--amber);
}

.payment-refunded,
.admin-payment-refunded,
.ticket-answered,
.admin-ticket-answered {
    background: #edf0f2;
    color: #59636c;
}

.order-payment-box,
.admin-payment-panel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1px;
    margin-top: 17px;
    border: 1px solid var(--line);
    background: var(--line);
}

.order-payment-box > div,
.admin-payment-grid > div {
    min-width: 120px;
    flex: 1 1 130px;
    background: var(--surface-soft);
    padding: 11px;
}

.order-payment-box span,
.admin-payment-grid span,
.admin-order-meta span,
.admin-ticket-info span {
    display: block;
    color: var(--muted);
    font-size: 8px;
    font-weight: 750;
}

.order-payment-box strong,
.admin-payment-grid strong,
.admin-order-meta strong,
.admin-ticket-info strong {
    display: block;
    margin-top: 3px;
    font-size: 11px;
    overflow-wrap: anywhere;
}

.order-pay-button {
    margin: 8px;
}

body.account-modal-open {
    overflow: hidden;
}

.account-transfer-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: 22px;
}

.account-transfer-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(17, 19, 24, .64);
    cursor: default;
}

.account-transfer-panel {
    position: relative;
    width: min(620px, 100%);
    max-height: calc(100vh - 44px);
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 24px;
    box-shadow: 0 24px 70px rgba(17, 19, 24, .28);
}

.account-transfer-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.account-transfer-header span {
    color: var(--blue);
    font-size: 9px;
    font-weight: 850;
}

.account-transfer-header h2 {
    margin: 5px 0 0;
    font-size: 21px;
}

.account-transfer-close {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface-soft);
    color: var(--ink);
    font-size: 21px;
    line-height: 1;
    cursor: pointer;
}

.account-transfer-panel > p {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.55;
}

.account-transfer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin: 20px 0 0;
    background: var(--line);
}

.account-transfer-grid > div {
    min-width: 0;
    background: var(--surface-soft);
    padding: 13px;
}

.account-transfer-grid dt {
    color: var(--muted);
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
}

.account-transfer-grid dd {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 6px 0 0;
    color: var(--ink);
    font-size: 11px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.account-transfer-grid code {
    min-width: 0;
    color: inherit;
    font: inherit;
    overflow-wrap: anywhere;
}

.account-transfer-grid button {
    flex: 0 0 auto;
    border: 1px solid #cfd6dd;
    border-radius: 5px;
    background: #fff;
    padding: 6px 8px;
    color: var(--blue);
    font-size: 9px;
    font-weight: 850;
    cursor: pointer;
}

.account-transfer-grid button:hover {
    border-color: var(--blue);
}

.order-products,
.admin-order-products {
    margin-top: 16px;
    border-top: 1px solid var(--line);
}

.order-product,
.admin-order-product {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
}

.order-product strong,
.admin-order-product strong {
    font-size: 11px;
}

.order-product span,
.admin-order-product span,
.admin-product-numbers {
    display: block;
    color: var(--muted);
    font-size: 9px;
}

.order-tracking,
.admin-current-tracking {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 14px;
    border-left: 3px solid var(--lime);
    background: #f0f4e9;
    padding: 12px;
}

.order-tracking span,
.order-tracking small,
.admin-current-tracking small {
    display: block;
    color: var(--muted);
    font-size: 8px;
}

.order-tracking strong,
.admin-current-tracking strong {
    display: block;
    font-size: 11px;
}

.order-tracking a {
    color: var(--blue);
    font-size: 10px;
    font-weight: 850;
}

.order-total {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    margin-top: 15px;
}

.order-total span {
    color: var(--muted);
    font-size: 10px;
}

.order-total strong {
    font-size: 18px;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.profile-field-full {
    grid-column: 1 / -1;
}

.profile-field textarea {
    min-height: 130px;
    resize: vertical;
}

.profile-field input:disabled {
    cursor: not-allowed;
    background: #edf0f2;
    color: var(--muted);
}

.profile-field small {
    display: block;
    margin-top: 5px;
    color: var(--muted-light);
    font-size: 9px;
}

.optional-label {
    margin-left: 4px;
    color: var(--muted-light);
    font-size: 8px;
}

.save-profile-button {
    margin-top: 18px;
}

.support-card-title,
.security-title {
    margin-bottom: 17px;
}

.support-card-title h2,
.security-title h2 {
    font-size: 17px;
}

.support-card-title p,
.security-title p,
.security-row p {
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
}

.support-history-heading {
    margin: 27px 0 12px;
}

.ticket-category,
.ticket-order,
.admin-ticket-customer-email {
    display: inline-block;
    margin-top: 10px;
    border-radius: 3px;
    background: #edf0f2;
    color: var(--muted);
    padding: 4px 7px;
    font-size: 9px;
}

.ticket-text,
.admin-ticket-message {
    margin-top: 13px;
    color: #4f5962;
    font-size: 11px;
    line-height: 1.65;
    white-space: pre-wrap;
}

.security-card + .security-card {
    margin-top: 12px;
}

.security-password-form {
    max-width: 520px;
}

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

.logout-button {
    flex: 0 0 auto;
    background: var(--red);
}

/* Admin */

.admin-loading {
    display: grid;
    min-height: 100dvh;
    place-items: center;
    align-content: center;
    gap: 13px;
    background: var(--ink);
    color: #fff;
    font-size: 12px;
}

.admin-loader {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(255, 255, 255, .2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.admin-dashboard-grid {
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    gap: 14px;
}

.admin-payment-queue-card {
    margin-bottom: 14px;
}

.admin-payment-queue-list {
    display: grid;
    gap: 10px;
}

.admin-payment-queue-row {
    display: grid;
    grid-template-columns: minmax(150px, .85fr) minmax(340px, 1.7fr) auto;
    gap: 12px;
    align-items: center;
    border: 1px solid #dde2e5;
    border-radius: 8px;
    background: #fff;
    padding: 12px;
}

.admin-payment-queue-row-expired {
    border-color: #f0c8c2;
    background: #fff8f7;
}

.admin-payment-queue-main strong,
.admin-payment-queue-meta strong,
.admin-payment-queue-meta code {
    font-size: 11px;
}

.admin-payment-queue-main span,
.admin-payment-queue-meta span {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 8px;
    font-weight: 800;
}

.admin-payment-queue-meta {
    display: grid;
    grid-template-columns: 1.1fr .75fr 1fr .85fr;
    gap: 1px;
    background: var(--line);
}

.admin-payment-queue-meta > div {
    min-width: 0;
    background: var(--surface-soft);
    padding: 9px;
}

.admin-payment-queue-meta code {
    display: block;
    overflow-wrap: anywhere;
    font-family: inherit;
    font-weight: 850;
}

.admin-payment-queue-status {
    color: var(--amber);
}

.admin-payment-queue-status.is-expired {
    color: var(--red);
}

.admin-payment-queue-actions,
.admin-order-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.admin-payment-queue-actions button,
.admin-order-actions button.admin-action-secondary,
.admin-order-actions button.admin-action-danger {
    min-height: 34px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: #fff;
    padding: 0 10px;
    color: var(--ink);
    font-size: 9px;
    font-weight: 850;
    cursor: pointer;
}

.admin-payment-queue-actions button:hover,
.admin-order-actions button.admin-action-secondary:hover {
    border-color: var(--blue);
    color: var(--blue);
}

.admin-payment-queue-actions .admin-action-danger,
.admin-order-actions button.admin-action-danger {
    border-color: #f0c8c2;
    color: var(--red);
}

.admin-payment-queue-more {
    margin-top: 10px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 750;
}

.admin-list {
    display: grid;
    gap: 14px;
}

.admin-order-card,
.admin-ticket-card {
    padding: 21px;
}

.admin-order-meta,
.admin-ticket-info,
.admin-payment-grid {
    display: grid;
    gap: 1px;
    background: var(--line);
}

.admin-order-meta {
    grid-template-columns: repeat(4, 1fr);
    margin-top: 16px;
}

.admin-ticket-info {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 15px;
}

.admin-order-meta > div,
.admin-ticket-info > div {
    min-width: 0;
    background: var(--surface-soft);
    padding: 11px;
}

.admin-customer-title,
.admin-payment-panel-title,
.admin-products-title,
.admin-shipping-title {
    margin-top: 20px;
}

.admin-customer-title h3,
.admin-payment-panel-title h3,
.admin-products-title h3,
.admin-shipping-title h3 {
    margin-top: 2px;
    font-size: 14px;
}

.admin-products-title {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 15px;
}

.admin-payment-panel {
    display: block;
    padding: 12px;
}

.admin-payment-grid {
    grid-template-columns: repeat(4, 1fr);
    margin-top: 9px;
}

.admin-order-notes {
    margin-top: 14px;
    border-left: 3px solid var(--coral);
    background: #fff1ef;
    padding: 11px;
}

.admin-order-notes p {
    margin-top: 4px;
    color: #704a45;
    font-size: 10px;
}

.admin-edit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 11px;
}

.admin-order-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 14px;
}

.admin-ticket-edit {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--line);
}

.admin-ticket-edit .admin-field {
    width: min(260px, 100%);
}

/* Responsive */

@media (max-width: 1050px) {
    .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-stats-six { grid-template-columns: repeat(3, 1fr); }
    .admin-stats-seven { grid-template-columns: repeat(4, 1fr); }
    .admin-payment-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-payment-queue-row { grid-template-columns: 1fr; }
    .admin-payment-queue-actions { justify-content: flex-start; }
}

@media (max-width: 900px) {
    .nav { display: none; }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .account-layout,
    .admin-layout { grid-template-columns: 1fr; }
    .account-sidebar,
    .admin-sidebar {
        position: relative;
        z-index: 20;
        height: auto;
        min-height: 0;
        border-right: 0;
        padding: 16px 18px;
    }
    .account-user,
    .admin-user { display: none; }
    .account-nav,
    .admin-nav {
        flex-direction: row;
        gap: 5px;
        margin-top: 13px;
        overflow-x: auto;
        padding-bottom: 2px;
    }
    .account-nav-item,
    .admin-nav-item {
        flex: 0 0 auto;
        padding-inline: 13px;
        text-align: center;
    }
    .account-nav-item.active,
    .admin-nav-item.active { box-shadow: inset 0 -3px var(--lime); }
    .account-sidebar-bottom,
    .admin-sidebar-bottom { display: none; }
    .account-main,
    .admin-main { padding: 34px 20px 55px; }
    .admin-dashboard-grid { grid-template-columns: 1fr; }
    .legal-layout { grid-template-columns: 1fr; gap: 22px; }
    .legal-index {
        position: static;
        flex-direction: row;
        overflow-x: auto;
        border: 0;
        padding-bottom: 4px;
    }
    .legal-index a {
        flex: 0 0 auto;
        border: 1px solid var(--line);
        border-radius: 6px;
        background: #fff;
        padding: 9px 12px;
    }
}

@media (max-width: 720px) {
    .container { width: min(100% - 28px, 1200px); }
    .header { height: 64px; }
    .logo { font-size: 16px; }
    .login-header-button { display: none; }
    .cart-button { min-height: 38px; padding-inline: 12px; }
    .hero,
    .hero-content { min-height: 430px; }
    .hero { background-position: 59% center; }
    .hero-scrim { background: linear-gradient(90deg, rgba(10, 12, 15, .96), rgba(10, 12, 15, .66)); }
    .hero-content { padding-block: 44px; }
    .hero h1 { font-size: 46px; }
    .hero-content > p { max-width: 470px; font-size: 14px; }
    .hero-features { width: 100%; gap: 12px; justify-content: space-between; margin-top: 31px; }
    .hero-features div { min-width: 0; }
    .hero-features dt { font-size: 18px; }
    .hero-features dd { font-size: 9px; }
    .advantages-grid { grid-template-columns: 1fr; }
    .advantages article,
    .advantages article:first-child { border-left: 1px solid var(--line); }
    .section-heading { align-items: flex-start; flex-direction: column; }
    .section-heading h2 { font-size: 32px; }
    .how-section .section-heading h2 { font-size: 38px; }
    .filter-buttons { width: 100%; }
    .filter { flex: 1; }
    .products-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr; }
    .steps-grid article {
        min-height: 218px;
        padding: 28px 26px;
    }
    .steps-grid article > span { font-size: 22px; }
    .steps-grid h3 {
        margin-top: 48px;
        font-size: 28px;
    }
    .steps-grid p { font-size: 17px; }
    .contact-box,
    .footer-content { align-items: flex-start; flex-direction: column; }
    .contact-box h2 { font-size: 25px; }
    .contact-actions { width: 100%; align-items: stretch; flex-direction: column; }
    .contact-actions .secondary-button.dark,
    .contact-email { width: 100%; justify-content: center; }
    .footer-content { padding-block: 32px; }
    .footer-links { flex-wrap: wrap; }
    .account-stats-four,
    .admin-stats-six,
    .admin-stats-seven { grid-template-columns: repeat(2, 1fr); }
    .admin-stats-seven .admin-stat:last-child { grid-column: 1 / -1; }
    .account-orders-toolbar,
    .admin-toolbar { grid-template-columns: 1fr; }
    .admin-order-meta,
    .admin-ticket-info,
    .admin-payment-grid,
    .admin-payment-queue-meta { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
    .hero-buttons { width: 100%; flex-direction: column; }
    .hero-buttons a { width: 100%; }
    .catalog-note { align-items: flex-start; flex-direction: column; gap: 2px; }
    .product-info { padding: 17px; }
    .cart-panel { width: 100%; }
    .auth-card { padding: 24px 20px; }
    .account-main,
    .admin-main { padding-inline: 14px; }
    .account-heading h1,
    .admin-heading h1 { font-size: 29px; }
    .profile-grid,
    .admin-edit-grid { grid-template-columns: 1fr; }
    .profile-field-full { grid-column: auto; }
    .order-top,
    .ticket-top,
    .admin-order-header,
    .admin-ticket-header { flex-direction: column; }
    .order-badges,
    .admin-order-badges { justify-content: flex-start; }
    .order-payment-box { align-items: stretch; flex-direction: column; }
    .order-pay-button { width: calc(100% - 16px); }
    .order-tracking,
    .security-row,
    .admin-ticket-edit { align-items: flex-start; flex-direction: column; }
    .logout-button,
    .admin-ticket-edit button { width: 100%; }
    .admin-order-meta,
    .admin-ticket-info,
    .admin-payment-grid,
    .admin-payment-queue-meta { grid-template-columns: 1fr; }
    .admin-payment-queue-actions,
    .admin-order-actions { justify-content: stretch; }
    .admin-payment-queue-actions button,
    .admin-order-actions button { flex: 1 1 100%; }
    .account-recent-orders { grid-template-columns: 1fr; }
    .account-transfer-modal { padding: 12px; }
    .account-transfer-panel {
        max-height: calc(100vh - 24px);
        padding: 18px;
    }
    .account-transfer-grid { grid-template-columns: 1fr; }
    .legal-back-button { display: none; }
    .legal-intro { padding: 44px 0 32px; }
    .legal-intro h1 { font-size: 34px; }
    .legal-layout { padding-block: 28px 48px; }
    .legal-section { padding: 22px 18px; }
    .legal-section h2 { font-size: 23px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* AGE GATE */

body.age-gate-open {
    overflow: hidden;
}

.age-gate {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(10, 12, 16, 0.94);
}

.age-gate-panel {
    width: min(100%, 480px);
    padding: 36px;
    border: 1px solid #303640;
    border-radius: 8px;
    background: #15181d;
    color: #ffffff;
    text-align: center;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.age-gate-logo {
    display: inline-block;
    margin-bottom: 30px;
    color: #ffffff;
    font-weight: 900;
    font-size: 22px;
    text-decoration: none;
}

.age-gate-logo span {
    color: #2477ff;
}

.age-gate-kicker {
    display: block;
    margin-bottom: 10px;
    color: #aee92d;
    font-size: 12px;
    font-weight: 800;
}

.age-gate-panel h1 {
    margin: 0 0 12px;
    font-size: 38px;
    letter-spacing: 0;
}

.age-gate-panel p {
    margin: 0 auto 26px;
    max-width: 390px;
    color: #b8bec8;
    line-height: 1.6;
}

.age-gate-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.age-gate-actions button {
    min-height: 50px;
    border-radius: 6px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.age-gate-confirm {
    border: 1px solid #aee92d;
    background: #aee92d;
    color: #101318;
}

.age-gate-exit {
    border: 1px solid #3b424d;
    background: transparent;
    color: #ffffff;
}

.age-gate-panel small {
    display: block;
    margin-top: 18px;
    color: #858d99;
    line-height: 1.5;
}

.auth-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 4px 0 18px;
    color: #394150;
    font-size: 14px;
    line-height: 1.45;
    cursor: pointer;
}

.auth-consent input {
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    accent-color: #2477ff;
}

@media (max-width: 520px) {
    .age-gate-panel {
        padding: 28px 20px;
    }

    .age-gate-panel h1 {
        font-size: 29px;
    }

    .age-gate-actions {
        grid-template-columns: 1fr;
    }
}

.flavor-option-copy {
    min-width: 0;
}

.flavor-option-copy > span {
    display: block;
}

.flavor-option-copy small {
    display: block;
    margin-top: 3px;
    color: #c23b4a;
    font-size: 9px;
    font-weight: 800;
}

.flavor-option.unavailable {
    color: #858b95;
    opacity: .62;
}

.product-availability {
    min-height: 27px;
    display: flex;
    align-items: center;
    gap: 7px;
    margin: -4px 0 8px;
    font-size: 10px;
    font-weight: 800;
}

.product-availability::before {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: currentColor;
    content: "";
}

.product-availability.available {
    color: #237a4a;
}

.product-availability.unavailable {
    color: #ba3647;
}

.add-cart:disabled {
    background: #c9cdd3;
    color: #616874;
    cursor: not-allowed;
}

.cart-item-unavailable {
    border-color: #e6a4ad;
}

.cart-stock-warning {
    display: inline-flex;
    margin-top: 6px;
    color: #b3263a;
    font-size: 10px;
    font-weight: 850;
}

.admin-availability-layout {
    display: grid;
    grid-template-columns: minmax(280px, 390px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.admin-availability-editor,
.admin-unavailable-panel {
    border-radius: 8px;
}

.admin-availability-field {
    display: block;
    min-width: 0;
    margin-top: 16px;
    border: 0;
    padding: 0;
}

.admin-availability-field > span,
.admin-availability-field legend {
    display: block;
    margin-bottom: 7px;
    color: #5f6773;
    font-size: 10px;
    font-weight: 850;
}

.admin-availability-field select {
    width: 100%;
    min-height: 43px;
    border: 1px solid #d8dde4;
    border-radius: 6px;
    background: #ffffff;
    padding: 0 11px;
    color: #171b22;
    font: inherit;
}

.admin-nicotine-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.admin-nicotine-options button {
    min-height: 39px;
    border: 1px solid #d8dde4;
    border-radius: 6px;
    background: #ffffff;
    color: #555d68;
    font: inherit;
    font-size: 11px;
    font-weight: 850;
    cursor: pointer;
}

.admin-nicotine-options button.selected {
    border-color: #246de8;
    background: #eaf1ff;
    color: #1752ad;
}

.admin-availability-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    cursor: pointer;
}

.admin-availability-toggle input {
    position: absolute;
    opacity: 0;
}

.admin-toggle-track {
    position: relative;
    width: 42px;
    height: 23px;
    flex: 0 0 auto;
    border-radius: 12px;
    background: #c8cdd5;
    transition: .2s;
}

.admin-toggle-track::after {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .22);
    content: "";
    transition: .2s;
}

.admin-availability-toggle input:checked + .admin-toggle-track {
    background: #2b8a57;
}

.admin-availability-toggle input:checked + .admin-toggle-track::after {
    transform: translateX(19px);
}

.admin-availability-save {
    width: 100%;
    min-height: 43px;
    margin-top: 20px;
    border: 0;
    border-radius: 6px;
    background: #171b22;
    color: #ffffff;
    font: inherit;
    font-size: 11px;
    font-weight: 850;
    cursor: pointer;
}

.admin-unavailable-list {
    display: grid;
    gap: 0;
}

.admin-unavailable-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #e6e9ed;
}

.admin-unavailable-item:last-child {
    border-bottom: 0;
}

.admin-unavailable-item strong,
.admin-unavailable-item span,
.admin-unavailable-item small {
    display: block;
}

.admin-unavailable-item strong {
    font-size: 12px;
}

.admin-unavailable-item span {
    margin-top: 3px;
    color: #606874;
    font-size: 11px;
}

.admin-unavailable-item small {
    margin-top: 5px;
    color: #b3263a;
    font-size: 9px;
    font-weight: 850;
}

.admin-unavailable-item button {
    flex: 0 0 auto;
    min-height: 34px;
    border: 1px solid #cbd2da;
    border-radius: 6px;
    background: #ffffff;
    color: #202630;
    padding: 0 11px;
    font: inherit;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
}

@media (max-width: 880px) {
    .admin-availability-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .admin-unavailable-item {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* 2026 experience pass: navigation, catalogue discovery and shortcuts */

.skip-link {
    position: fixed;
    z-index: 500;
    top: 10px;
    left: 10px;
    transform: translateY(-140%);
    border-radius: 6px;
    background: #111318;
    padding: 10px 14px;
    color: #fff;
    font-size: 12px;
    font-weight: 850;
}

.skip-link:focus {
    transform: translateY(0);
}

.nav a {
    position: relative;
    padding-block: 8px;
}

.nav a::after {
    position: absolute;
    right: 0;
    bottom: 2px;
    left: 0;
    height: 2px;
    transform: scaleX(0);
    transform-origin: center;
    background: var(--blue);
    content: "";
    transition: transform .18s ease;
}

.nav a:hover::after,
.nav a:focus-visible::after {
    transform: scaleX(1);
}

.catalog-toolbar {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    align-items: center;
    gap: 14px;
    margin: 24px 0 12px;
}

.catalog-search {
    position: relative;
    display: flex;
    min-width: 0;
    align-items: center;
}

.catalog-search input {
    width: 100%;
    min-height: 46px;
    border: 1px solid #cfd6dd;
    border-radius: 8px;
    background: #fff;
    padding: 0 46px 0 43px;
    color: var(--ink);
    font-size: 13px;
    outline: 0;
    transition: border-color .18s, box-shadow .18s;
}

.catalog-search input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(24, 88, 216, .1);
}

.catalog-search-icon {
    position: absolute;
    z-index: 1;
    left: 16px;
    width: 13px;
    height: 13px;
    border: 2px solid #65717c;
    border-radius: 50%;
    pointer-events: none;
}

.catalog-search-icon::after {
    position: absolute;
    right: -5px;
    bottom: -4px;
    width: 6px;
    height: 2px;
    transform: rotate(45deg);
    border-radius: 1px;
    background: #65717c;
    content: "";
}

.catalog-search button {
    position: absolute;
    right: 7px;
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #67717b;
    font-size: 19px;
}

.catalog-search button:hover {
    background: #edf1f4;
    color: var(--ink);
}

.catalog-toolbar .filter-buttons {
    margin: 0;
}

.catalog-note > div {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
}

.catalog-result-count {
    flex: 0 0 auto;
    border-left: 1px solid #cfd6dd;
    padding-left: 14px;
    color: var(--ink-soft);
    font-size: 10px;
    font-weight: 850;
    text-transform: uppercase;
}

.catalog-empty {
    grid-column: 1 / -1;
    border: 1px dashed #c5cdd5;
    border-radius: 8px;
    background: #fff;
    padding: 54px 24px;
    text-align: center;
}

.catalog-empty strong,
.catalog-empty p {
    display: block;
}

.catalog-empty strong {
    font-size: 18px;
}

.catalog-empty p {
    margin-top: 7px;
    color: var(--muted);
    font-size: 12px;
}

.catalog-empty button {
    min-height: 38px;
    margin-top: 18px;
    border: 0;
    border-radius: 6px;
    background: var(--ink);
    padding: 0 15px;
    color: #fff;
    font-size: 11px;
    font-weight: 850;
}

.product-card {
    border-color: #d9dfe4;
    box-shadow: 0 10px 30px rgba(19, 29, 39, .06);
}

.product-card:hover {
    box-shadow: 0 18px 42px rgba(19, 29, 39, .11);
}

.flavor-menu-search {
    position: sticky;
    z-index: 2;
    top: -7px;
    display: block;
    margin: -1px -1px 6px;
    background: #fff;
    padding: 7px 7px 5px;
}

.flavor-menu-search input {
    width: 100%;
    min-height: 38px;
    border: 1px solid #d4dbe1;
    border-radius: 8px;
    background: #f8fafb;
    padding: 0 11px;
    color: var(--ink);
    font-size: 11px;
    outline: 0;
}

.flavor-menu-search input:focus {
    border-color: var(--blue);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(24, 88, 216, .08);
}

.flavor-menu-empty {
    padding: 18px 10px;
    color: var(--muted);
    font-size: 11px;
    text-align: center;
}

.quantity-presets {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    margin-top: 9px;
}

.quantity-presets button {
    min-height: 30px;
    border: 1px solid #d6dce2;
    border-radius: 6px;
    background: #fff;
    color: #606b75;
    font-size: 9px;
    font-weight: 850;
}

.quantity-presets button:hover,
.quantity-presets button.selected {
    border-color: #b8caec;
    background: #edf3ff;
    color: #174fae;
}

.mobile-store-nav {
    display: none;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
}

@media (max-width: 900px) {
    .catalog-toolbar {
        grid-template-columns: 1fr;
    }

    .store-page {
        padding-bottom: 70px;
    }

    .mobile-store-nav {
        position: fixed;
        z-index: 110;
        right: 0;
        bottom: 0;
        left: 0;
        display: grid;
        min-height: 62px;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        border-top: 1px solid #d9dfe4;
        background: rgba(255, 255, 255, .97);
        box-shadow: 0 -8px 28px rgba(18, 27, 36, .1);
        backdrop-filter: blur(12px);
    }

    .mobile-store-nav a,
    .mobile-store-nav button {
        display: flex;
        min-width: 0;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 2px;
        border: 0;
        border-radius: 0;
        background: transparent;
        color: #59636d;
        font-size: 9px;
        font-weight: 800;
    }

    .mobile-store-nav span {
        color: var(--ink);
        font-size: 17px;
        line-height: 1;
    }

    .mobile-store-nav .mobile-nav-icon {
        width: 19px;
        height: 19px;
        flex: 0 0 19px;
        color: var(--ink);
        stroke-width: 2.25;
    }
}

@media (max-width: 540px) {
    .catalog-toolbar {
        margin-top: 18px;
    }

    .catalog-toolbar .filter-buttons {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }

    .catalog-note > div {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }

    .catalog-result-count {
        border-left: 0;
        padding-left: 0;
    }
}

/* Account shortcuts and transfer tools */

.account-nav-link,
.admin-nav-link {
    display: flex;
    min-height: 40px;
    align-items: center;
    border-radius: 5px;
    padding: 0 11px;
    color: #c2c9d3;
    font-size: 11px;
    font-weight: 750;
}

.account-nav-link:hover,
.account-nav-link:focus-visible,
.admin-nav-link:hover,
.admin-nav-link:focus-visible {
    background: #20242b;
    color: #fff;
    outline: 0;
}

.account-nav-item,
.admin-nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 9px;
}

.nav-count-badge {
    display: inline-grid;
    min-width: 21px;
    height: 21px;
    place-items: center;
    border-radius: 11px;
    background: #aee92d;
    padding: 0 6px;
    color: #15181d;
    font-size: 9px;
    font-weight: 900;
}

.nav-count-badge[hidden] {
    display: none;
}

.account-quick-actions,
.admin-quick-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: -8px 0 22px;
}

.account-quick-actions a,
.account-quick-actions button,
.admin-quick-actions button {
    display: flex;
    min-width: 0;
    min-height: 72px;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    border: 1px solid #d9dfe4;
    border-radius: 8px;
    background: #fff;
    padding: 13px 14px;
    color: var(--ink);
    text-align: left;
    transition: border-color .18s, box-shadow .18s, transform .18s;
}

.account-quick-actions a:hover,
.account-quick-actions button:hover,
.admin-quick-actions button:hover {
    transform: translateY(-1px);
    border-color: #aebdd0;
    box-shadow: 0 9px 24px rgba(23, 35, 49, .08);
}

.account-quick-actions strong,
.account-quick-actions span,
.admin-quick-actions strong,
.admin-quick-actions span {
    display: block;
}

.account-quick-actions strong,
.admin-quick-actions strong {
    font-size: 12px;
}

.account-quick-actions span,
.admin-quick-actions span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 9px;
}

.account-quick-actions a:first-child,
.admin-quick-actions button:first-child {
    border-color: #c8d5ea;
    background: #eef4ff;
}

.account-transfer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.account-transfer-actions button {
    min-height: 38px;
    border: 1px solid #cbd2da;
    border-radius: 6px;
    background: #fff;
    padding: 0 12px;
    color: #202630;
    font: inherit;
    font-size: 10px;
    font-weight: 850;
}

.account-transfer-actions button:first-child {
    border-color: #1f5bc9;
    background: #1f5bc9;
    color: #fff;
}

@media (max-width: 900px) {
    .account-nav-link,
    .admin-nav-link {
        flex: 0 0 auto;
        justify-content: center;
        border: 1px solid #323841;
        padding-inline: 13px;
    }
}

@media (max-width: 650px) {
    .account-quick-actions,
    .admin-quick-actions {
        grid-template-columns: 1fr;
    }

    .account-quick-actions a,
    .account-quick-actions button,
    .admin-quick-actions button {
        min-height: 62px;
    }

    .account-transfer-actions {
        display: grid;
        grid-template-columns: 1fr;
    }
}

@media print {
    body.account-transfer-print .account-layout,
    body.account-transfer-print .account-transfer-backdrop,
    body.account-transfer-print .account-transfer-close,
    body.account-transfer-print .account-transfer-actions {
        display: none !important;
    }

    body.account-transfer-print .account-transfer-modal,
    body.account-transfer-print .account-transfer-panel {
        position: static;
        display: block !important;
        width: 100%;
        max-width: none;
        max-height: none;
        overflow: visible;
        background: #fff;
        padding: 0;
        box-shadow: none;
    }
}

/* Admin workflow shortcuts */

.admin-quick-actions {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-toolbar {
    grid-template-columns: minmax(250px, 1fr) 170px 170px auto;
}

.admin-clear-filters {
    min-height: 42px;
    border: 1px solid #d2d8de;
    border-radius: 6px;
    background: #fff;
    padding: 0 12px;
    color: #535e69;
    font-size: 10px;
    font-weight: 850;
}

.admin-clear-filters:hover {
    border-color: #9facb8;
    color: var(--ink);
}

.admin-recent-row-button {
    width: 100%;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    background: transparent;
    color: var(--ink);
    text-align: left;
    transition: background .18s, padding .18s;
}

.admin-recent-row-button:hover,
.admin-recent-row-button:focus-visible {
    background: #f2f5f8;
    padding-inline: 8px;
    outline: 0;
}

.admin-order-card {
    scroll-margin: 32px;
    transition: border-color .22s, box-shadow .22s;
}

.admin-order-card:focus {
    outline: 0;
}

.admin-order-highlight {
    border-color: #4e84dc;
    box-shadow: 0 0 0 4px rgba(48, 104, 193, .13), 0 18px 42px rgba(22, 35, 51, .1);
}

@media (max-width: 1050px) {
    .admin-quick-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-toolbar {
        grid-template-columns: minmax(220px, 1fr) 160px 160px;
    }

    .admin-clear-filters {
        grid-column: 1 / -1;
        justify-self: start;
    }
}

@media (max-width: 720px) {
    .admin-toolbar,
    .admin-quick-actions {
        grid-template-columns: 1fr;
    }

    .admin-clear-filters {
        width: 100%;
    }
}
