:root {
    color-scheme: dark;
    --bg: #050609;
    --panel: #151820;
    --panel-2: #20242d;
    --text: #f6f7fb;
    --muted: #b6bdcc;
    --blue: #1f6feb;
    --green: #10b981;
    --gold: #f5c542;
    --line: rgba(255, 255, 255, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
}

a {
    color: inherit;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px clamp(18px, 4vw, 56px);
    background: #2b2d32;
    border-bottom: 1px solid var(--line);
}

.brand img {
    width: 154px;
    height: auto;
    display: block;
}

nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

nav a {
    text-decoration: none;
    padding: 12px 14px;
    color: var(--text);
}

.nav-news {
    font-weight: 900;
}

.nav-models {
    font-style: italic;
}

.nav-cart {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 44px;
    border: 1px solid var(--line);
}

.cart-icon {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cart-count {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    background: var(--gold);
    color: #050609;
    border: 2px solid #2b2d32;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 900;
}

.sale-strip {
    padding: 10px clamp(18px, 4vw, 56px);
    background: var(--gold);
    color: #050609;
    font-weight: 900;
    text-align: center;
}

.hero,
.product-hero {
    position: relative;
    min-height: min(740px, calc(100vh - 84px));
    display: grid;
    align-items: end;
    overflow: hidden;
}

.hero img,
.product-hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.78;
}

.landing-hero img {
    object-position: center center;
    opacity: 1;
}

.hero::after,
.product-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(5, 6, 9, 0.92), rgba(5, 6, 9, 0.25) 62%, rgba(5, 6, 9, 0.65));
}

.landing-hero::after {
    display: none;
}

.hero-copy,
.product-title {
    position: relative;
    z-index: 1;
    max-width: 760px;
    padding: 0 clamp(22px, 6vw, 80px) clamp(34px, 8vw, 88px);
}

.landing-news-box {
    position: absolute;
    z-index: 2;
    right: clamp(22px, 6vw, 80px);
    bottom: clamp(34px, 8vw, 88px);
    width: min(520px, 36vw);
    max-height: min(620px, calc(100% - 170px));
    overflow: hidden;
    background: rgba(9, 11, 16, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.36);
}

.landing-news-link {
    display: block;
    color: inherit;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.landing-news-link:hover,
.landing-news-link:focus {
    transform: translateY(-2px);
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.42);
    border-color: rgba(245, 197, 66, 0.55);
    outline: none;
}

.landing-news-box h2 {
    margin: 0;
    padding: 13px 18px;
    background: var(--gold);
    color: #050609;
    font-size: 1.25rem;
    line-height: 1;
    text-transform: uppercase;
}

.landing-news-body {
    display: grid;
    gap: 12px;
    max-height: min(550px, calc(100vh - 260px));
    overflow: auto;
    padding: 16px 18px 18px;
}

.landing-news-body img {
    position: static;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    opacity: 1;
}

.landing-news-body time {
    color: var(--gold);
    font-size: 0.82rem;
    font-weight: 900;
}

.landing-news-body p {
    margin: 0;
    color: #fff;
    line-height: 1.5;
}

.landing-news-body .news-body-lead,
.news-card .news-body-lead {
    margin: 0;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 900;
    line-height: 1.25;
}

.landing-news-body .news-body-copy,
.news-card .news-body-copy {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.video-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #050609;
    overflow: hidden;
}

.video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--gold);
    text-transform: uppercase;
    font-size: 0.82rem;
    font-weight: 700;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 6rem);
    line-height: 0.95;
    margin-bottom: 18px;
}

h2 {
    font-size: clamp(1.8rem, 3vw, 3rem);
    line-height: 1.05;
}

.hero-copy p,
.product-title p,
.section-intro p {
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.55;
}

.hero-actions,
.support-actions,
.admin-actions,
.buy-panel {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.landing-actions {
    position: absolute;
    z-index: 2;
    top: 33%;
    left: clamp(22px, 6vw, 80px);
    right: clamp(22px, 6vw, 80px);
    justify-content: space-between;
    pointer-events: none;
}

.landing-actions .button {
    min-width: 180px;
    pointer-events: auto;
}

.landing-hero .button {
    min-height: 52px;
    padding: 0 24px;
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}

.landing-hero-split .landing-actions {
    top: 7%;
    bottom: 11%;
    justify-content: initial;
}

.landing-hero-split .landing-actions .button:first-child {
    position: absolute;
    top: 0;
    left: 0;
}

.landing-hero-split .landing-actions .button:nth-child(2) {
    position: absolute;
    right: 4vw;
    bottom: 0;
    margin-right: 0;
}

.landing-hero-paired .landing-actions {
    top: 34%;
    left: 0;
    right: 0;
    justify-content: center;
    gap: 18px;
}

.landing-hero-paired .hero-copy {
    max-width: 820px;
    padding-bottom: clamp(34px, 7vw, 78px);
}

.landing-hero-compact {
    align-items: center;
}

.landing-hero-compact .hero-copy {
    max-width: 620px;
    padding-bottom: 0;
}

.landing-hero-compact .hero-copy h1 {
    font-size: clamp(2.4rem, 5vw, 5.2rem);
}

.landing-hero-compact .landing-actions {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    z-index: 2;
    justify-content: flex-start;
    padding: 22px clamp(22px, 6vw, 80px) 0;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    text-decoration: none;
    font-weight: 700;
    border: 1px solid var(--line);
}

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

.button.secondary {
    background: var(--panel-2);
}

.button.danger {
    background: #a92f35;
}

.button:disabled {
    cursor: wait;
    opacity: 0.62;
}

.icon-button {
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    background: var(--panel-2);
    color: var(--text);
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
}

.section-intro,
.page-shell,
.admin-shell {
    width: min(1220px, calc(100% - 36px));
    margin: 0 auto;
}

.section-intro {
    padding: 52px 0 20px;
}

.section-intro.compact {
    padding-top: 22px;
}

.page-shell,
.admin-shell {
    padding: 42px 0 80px;
}

.admin-shell {
    width: calc(100% - 36px);
    max-width: none;
}

.admin-login-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 36px;
}

.admin-login-panel {
    width: min(440px, 100%);
    display: grid;
    gap: 18px;
    padding: 28px;
    border: 1px solid var(--line);
    background: var(--panel);
}

.admin-login-panel h1 {
    margin: 0;
}

.admin-login-panel p {
    margin: 0;
    color: var(--muted);
}

.admin-login-panel label,
.admin-login-panel label span {
    display: grid;
    gap: 8px;
}

.admin-logout-form {
    margin-top: 18px;
}

.admin-password-panel {
    width: min(520px, 100%);
    margin-top: 16px;
}

.admin-password-panel form {
    display: grid;
    gap: 12px;
    margin-top: 12px;
    padding: 16px;
    border: 1px solid var(--line);
    background: var(--panel);
}

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

.region-card {
    position: relative;
    display: block;
    min-height: 260px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--panel);
    text-decoration: none;
}

.region-card img {
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
    display: block;
    transform: scale(1);
    transition: transform 180ms ease, opacity 180ms ease;
}

.region-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 6, 9, 0.02), rgba(5, 6, 9, 0.82));
}

.region-card:hover img {
    transform: scale(1.035);
    opacity: 0.92;
}

.region-overlay {
    position: absolute;
    z-index: 1;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    gap: 6px;
    padding: 22px;
}

.region-overlay strong {
    font-size: 1.6rem;
    line-height: 1;
}

.region-overlay span {
    color: var(--muted);
    font-weight: 700;
}

.product-grid {
    width: min(1220px, calc(100% - 36px));
    margin: 0 auto 76px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 18px;
}

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--panel);
    border: 1px solid var(--line);
}

.product-card a {
    position: relative;
    display: block;
    text-decoration: none;
}

.new-banner {
    position: absolute;
    z-index: 2;
    top: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    background: var(--gold);
    color: #050609;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero-new-banner {
    position: relative;
    top: auto;
    left: auto;
    margin-bottom: 14px;
}

.old-price {
    display: inline-block;
    margin-right: 8px;
    color: var(--muted);
    text-decoration: line-through;
    font-weight: 700;
}

.product-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.product-card h3,
.product-card p,
.product-card strong,
.product-code {
    display: block;
    padding-left: 16px;
    padding-right: 16px;
}

.product-code {
    padding-top: 16px;
    color: var(--gold);
    font-weight: 800;
}

.product-card h3 {
    margin: 7px 0 6px;
    font-size: 1.22rem;
}

.product-card p {
    color: var(--muted);
    margin-bottom: 10px;
}

.product-card strong {
    padding-bottom: 12px;
}

.card-cart-form {
    padding: 0 16px 18px;
}

.card-cart-form .button {
    width: 100%;
}

.buy-panel {
    margin-top: 22px;
    padding: 14px;
    background: rgba(5, 6, 9, 0.7);
    width: fit-content;
}

.buy-panel form {
    margin: 0;
}

.cart-panel,
.checkout-panel,
.promotion-panel {
    background: var(--panel);
    border: 1px solid var(--line);
    padding: 24px;
    margin-bottom: 70px;
}

.cart-row {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) auto auto;
    gap: 16px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.cart-row img {
    width: 96px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.cart-row strong,
.cart-row span {
    display: block;
}

.cart-row span {
    color: var(--muted);
}

.cart-price {
    font-weight: 900;
    text-align: right;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0;
    font-size: 1.2rem;
}

.cart-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.checkout-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
}

.checkout-summary {
    display: grid;
    gap: 12px;
}

.checkout-summary > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.paypal-form,
.discount-form,
.promotion-form,
.faq-form,
.account-reissue-form,
.account-password-form {
    display: grid;
    gap: 14px;
}

.paypal-form label,
.discount-form label,
.promotion-form label,
.faq-form label,
.account-reissue-form label,
.account-password-form label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-weight: 800;
}

.paypal-form input,
.discount-form input,
.promotion-form input,
.faq-form input,
.faq-form select,
.faq-form textarea,
.account-reissue-form input,
.account-password-form input {
    border: 1px solid var(--line);
    background: #0c0f15;
    color: var(--text);
    padding: 12px;
    font: inherit;
}

.discount-form {
    grid-template-columns: minmax(180px, 1fr) auto auto;
    align-items: end;
    align-self: start;
    padding: 16px;
    border: 1px solid var(--line);
    background: var(--panel);
}

.discount-form .button {
    width: 100%;
}

.discount-row {
    color: var(--gold);
}

.discount-row.is-error {
    color: #ff8a8f;
}

.simulation-form {
    margin-top: 22px;
    padding: 18px;
    border: 1px dashed var(--gold);
    background: rgba(245, 197, 66, 0.08);
}

.simulation-form h2 {
    font-size: 1.35rem;
    margin-bottom: 8px;
}

.simulation-form p {
    color: var(--muted);
    line-height: 1.55;
}

.account-panel {
    width: min(760px, 100%);
    background: var(--panel);
    border: 1px solid var(--line);
    padding: 26px;
}

.admin-account-panel {
    margin: 24px 0 40px;
}

.account-preview {
    margin-top: 24px;
    background: var(--panel);
    border: 1px solid var(--line);
    padding: 26px;
}

.account-preview.is-error {
    border-color: #ff8a8f;
}

.account-preview p,
.account-email-card p {
    color: var(--muted);
    line-height: 1.6;
}

.account-email-card {
    display: grid;
    gap: 18px;
    max-width: 980px;
}

.account-email-card a:not(.button) {
    color: var(--gold);
}

.account-product-download {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    padding: 18px;
}

.account-product-download h3 {
    margin-bottom: 14px;
}

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

.account-download-row.is-minor {
    padding-left: 18px;
    font-size: 0.92rem;
}

.account-download-row strong,
.account-download-row span,
.account-download-row small {
    display: block;
}

.account-download-row span,
.account-download-row small {
    color: var(--muted);
    margin-top: 3px;
}

.account-form-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.account-password-dialog {
    width: min(560px, calc(100% - 28px));
    padding: 0;
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--text);
}

.account-password-dialog::backdrop {
    background: rgba(0, 0, 0, 0.72);
}

.account-password-form {
    padding: 24px;
}

.account-password-form p {
    color: var(--muted);
    line-height: 1.55;
}

.promotion-panel {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 22px;
}

.promotion-panel p {
    color: var(--muted);
    margin-bottom: 0;
}

.promotion-form {
    grid-template-columns: minmax(120px, 0.7fr) minmax(180px, 1fr) minmax(120px, 0.7fr) auto minmax(110px, auto);
    align-items: end;
}

.toggle-row {
    align-self: center;
    display: flex !important;
    grid-template-columns: none !important;
    align-items: center;
    gap: 10px !important;
}

.toggle-row input {
    width: auto;
}

.product-gallery {
    width: min(1220px, calc(100% - 36px));
    margin: 42px auto 0;
}

.product-video-compact {
    margin: 18px 0 12px;
}

.product-video-compact iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    border: 1px solid var(--line);
    background: #000;
}

.gallery-main {
    position: relative;
    background: var(--panel);
    border: 1px solid var(--line);
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #000;
}

.gallery-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 64px;
    border: 1px solid var(--line);
    background: rgba(5, 6, 9, 0.72);
    color: var(--text);
    font-size: 2.4rem;
    line-height: 1;
    cursor: pointer;
    z-index: 1;
}

.gallery-button:hover {
    background: rgba(31, 111, 235, 0.9);
}

.gallery-button[hidden] {
    display: none;
}

.gallery-button[data-gallery-prev] {
    left: 14px;
}

.gallery-button[data-gallery-next] {
    right: 14px;
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.gallery-thumb {
    border: 2px solid transparent;
    background: var(--panel);
    padding: 0;
    aspect-ratio: 16 / 9;
    cursor: pointer;
    overflow: hidden;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-thumb.is-active {
    border-color: var(--gold);
}

.product-detail-shell {
    width: min(1220px, calc(100% - 36px));
    margin: 0 auto;
    padding: 54px 0 84px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
}

.product-detail-main,
.product-facts,
.empty-state {
    background: var(--panel);
    border: 1px solid var(--line);
}

.product-detail-main,
.product-facts {
    padding: 26px;
}

.product-detail-main h2 {
    margin-bottom: 20px;
}

.description-content {
    color: var(--muted);
    font-size: 1.04rem;
    line-height: 1.68;
}

.description-content h2 {
    margin: 30px 0 10px;
    color: var(--text);
    font-size: 1.45rem;
}

.description-content h2:first-child {
    margin-top: 0;
}

.description-content p {
    margin-bottom: 18px;
}

.product-facts dl {
    display: grid;
    gap: 8px;
    margin: 0 0 22px;
}

.product-facts dt {
    color: var(--gold);
    font-weight: 800;
}

.product-facts dd {
    margin: 0 0 10px;
    color: var(--muted);
}

.empty-state {
    padding: 28px;
    margin-bottom: 70px;
}

.empty-state p {
    color: var(--muted);
    margin-bottom: 0;
}

.support-panel,
.faq-panel,
.subscribe-panel,
.faq-admin-panel,
.admin-notes-panel {
    background: var(--panel);
    border: 1px solid var(--line);
    padding: 26px;
    margin: 24px 0 40px;
}

.database-browser {
    background: var(--panel);
    border: 1px solid var(--line);
    padding: 22px;
    margin: 24px 0 40px;
}

.database-layout {
    display: block;
}

.database-table-list {
    display: flex;
    align-items: stretch;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 0 18px;
}

.database-table-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 220px;
    min-height: 48px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    text-decoration: none;
    font-weight: 900;
}

.database-table-list a.is-active,
.database-table-list a:hover,
.database-table-list a:focus {
    background: rgba(31, 111, 235, 0.22);
    outline: none;
}

.database-table-list small,
.muted-note {
    color: var(--muted);
}

.database-table-header,
.database-pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.database-table-header h3 {
    margin-bottom: 0;
}

.database-result-count {
    margin: 8px 0 0;
    color: var(--muted);
}

.database-toolbar {
    display: flex;
    align-items: end;
    gap: 12px;
    flex-wrap: wrap;
    margin: 16px 0 18px;
    padding: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
}

.database-toolbar label {
    display: grid;
    gap: 7px;
    min-width: 170px;
    color: var(--muted);
    font-weight: 800;
}

.database-toolbar select,
.database-toolbar input {
    border: 1px solid var(--line);
    background: #0c0f15;
    color: var(--text);
    padding: 11px;
    font: inherit;
}

.database-search-field {
    flex: 1 1 360px;
}

.database-columns {
    margin: 18px 0;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
}

.database-columns summary {
    cursor: pointer;
    padding: 14px;
    font-weight: 900;
}

.database-column-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 10px;
    padding: 0 14px 14px;
}

.database-column-controls label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
}

.database-column-controls input {
    margin-top: 3px;
}

.database-column-controls strong,
.database-column-controls small {
    display: block;
}

.database-column-controls strong {
    color: var(--gold);
    font-weight: 900;
}

.database-column-controls small {
    margin-top: 3px;
    color: var(--muted);
}

.database-column-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 0 14px 14px;
}

.database-scroll {
    overflow: auto;
    max-height: 72vh;
    border: 1px solid var(--line);
}

.database-data-table {
    margin-top: 0;
    min-width: max-content;
}

.database-data-table td {
    max-width: 560px;
    vertical-align: top;
    white-space: pre-wrap;
    word-break: break-word;
}

.support-panel p,
.support-links,
.faq-item p {
    color: var(--muted);
    line-height: 1.6;
}

.support-links {
    display: grid;
    gap: 10px;
    padding-left: 20px;
    margin-bottom: 0;
}

.support-links a,
.faq-item a {
    color: var(--gold);
}

.faq-entry-groups {
    display: grid;
    gap: 14px;
}

.faq-group,
.faq-subgroup {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
}

.faq-group summary,
.faq-subgroup summary {
    cursor: pointer;
    padding: 16px;
    font-weight: 900;
}

.faq-subchoices {
    display: grid;
    gap: 12px;
    padding: 0 16px 16px;
}

.faq-item {
    padding: 16px;
    border-top: 1px solid var(--line);
}

.faq-item h3 {
    margin-bottom: 8px;
}

.faq-item img {
    max-width: 100%;
    margin-top: 12px;
    border: 1px solid var(--line);
}

.subscribe-panel {
    display: flex;
    justify-content: center;
}

.subscribe-panel iframe {
    width: 540px;
    max-width: 100%;
    border: 0;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 28px;
    background: var(--panel);
}

.admin-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 8px 0 24px;
}

.admin-tab {
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid var(--line);
    background: var(--panel-2);
    color: var(--text);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

a.admin-tab {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.admin-tab.is-active {
    background: var(--blue);
}

.admin-tab-panel {
    display: none;
}

.admin-tab-panel.is-active {
    display: block;
}

.admin-table th,
.admin-table td {
    padding: 14px;
    text-align: left;
    border-bottom: 1px solid var(--line);
}

.admin-table th {
    color: var(--gold);
}

.table-sort-link {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 8px;
    margin-left: -8px;
    border-radius: 6px;
    color: var(--gold);
    text-decoration: none;
}

.table-sort-link:hover,
.table-sort-link:focus {
    background: rgba(255, 255, 255, 0.08);
    outline: none;
}

.table-sort-link.is-active {
    color: var(--text);
    background: rgba(31, 111, 235, 0.22);
}

.admin-product-row {
    cursor: pointer;
}

.admin-product-row:hover,
.admin-product-row:focus {
    background: rgba(31, 111, 235, 0.14);
    outline: none;
}

.product-dialog {
    width: min(980px, calc(100% - 28px));
    max-height: min(860px, calc(100% - 28px));
    padding: 0;
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--text);
}

.product-dialog::backdrop {
    background: rgba(0, 0, 0, 0.72);
}

.product-form {
    padding: 24px;
    display: grid;
    gap: 20px;
}

.dialog-header,
.dialog-actions {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.dialog-header h2 {
    margin-bottom: 0;
}

.form-grid,
.delivery-grid,
.drop-grid {
    display: grid;
    gap: 14px;
}

.form-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.delivery-grid {
    grid-template-columns: 2fr 1fr 1.5fr 1fr;
}

.drop-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-form label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-weight: 700;
}

.product-form input,
.product-form select,
.product-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: #0c0f15;
    color: var(--text);
    padding: 12px;
    font: inherit;
}

.product-form textarea {
    resize: vertical;
    line-height: 1.45;
}

.wide-field {
    display: grid;
}

.delivery-panel {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.035);
}

.delivery-panel p {
    margin: 0;
    color: var(--muted);
}

.optional-delivery-grid {
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.drop-zone {
    min-height: 160px;
    align-content: center;
    padding: 18px;
    border: 1px dashed rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.035);
}

.drop-zone strong {
    color: var(--text);
    font-size: 1.05rem;
}

.drop-zone span {
    line-height: 1.35;
}

.drop-zone input[type="file"] {
    padding: 10px;
}

.drop-zone.is-dragging {
    border-color: var(--gold);
    background: rgba(245, 197, 66, 0.12);
}

.primary-image-panel {
    display: grid;
    gap: 12px;
    padding: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.035);
}

.field-label {
    display: block;
    color: var(--muted);
    font-weight: 800;
    margin-bottom: 6px;
}

.primary-image-panel p,
.muted-note {
    color: var(--muted);
    margin: 0;
}

.primary-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
}

.primary-image-option {
    position: relative;
    display: grid;
    gap: 6px;
    padding: 8px;
    border: 1px solid var(--line);
    background: #0c0f15;
    cursor: pointer;
}

.primary-image-option input {
    position: absolute;
    top: 10px;
    left: 10px;
    width: auto;
}

.primary-image-option img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.primary-image-option span {
    color: var(--muted);
    font-size: 0.82rem;
    overflow-wrap: anywhere;
}

.primary-image-option:has(input:checked) {
    border-color: var(--gold);
}

.faq-form {
    margin-bottom: 22px;
}

.news-form {
    display: grid;
    gap: 14px;
    margin-bottom: 22px;
}

.news-form label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-weight: 800;
}

.news-form textarea,
.news-form input,
.news-form select {
    width: 100%;
    border: 1px solid var(--line);
    background: #0c0f15;
    color: var(--text);
    padding: 12px;
    font: inherit;
}

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

.admin-notes-form label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-weight: 800;
}

.admin-notes-form textarea {
    width: 100%;
    min-height: 420px;
    border: 1px solid var(--line);
    background: #0c0f15;
    color: var(--text);
    padding: 12px;
    font: inherit;
    line-height: 1.5;
    resize: vertical;
}

.news-admin-panel {
    background: var(--panel);
    border: 1px solid var(--line);
    padding: 26px;
    margin-bottom: 40px;
}

.news-landing-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
}

.news-landing-toggle input {
    width: auto;
}

.news-media-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 260px));
    gap: 14px;
}

.news-media-preview figure {
    margin: 0;
    border: 1px solid var(--line);
    background: #0c0f15;
    padding: 10px;
}

.news-media-preview img,
.news-media-preview iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 146px;
    border: 0;
    object-fit: cover;
}

.news-media-preview figcaption,
.admin-news-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.admin-news-thumb {
    width: 86px;
    max-width: 86px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border: 1px solid var(--line);
}

.customer-manager {
    display: grid;
    gap: 18px;
}

.customer-search-form,
.customer-editor,
.customer-results {
    background: var(--panel);
    border: 1px solid var(--line);
    padding: 22px;
}

.customer-search-form {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) auto auto;
    gap: 14px;
    align-items: end;
}

.customer-search-form label,
.customer-add-product {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-weight: 800;
}

.customer-search-form input,
.customer-add-product select {
    width: 100%;
    border: 1px solid var(--line);
    background: #0c0f15;
    color: var(--text);
    padding: 12px;
    font: inherit;
}

.customer-results {
    display: grid;
    gap: 10px;
}

.customer-result-row {
    display: grid;
    grid-template-columns: minmax(220px, 0.8fr) minmax(220px, 1fr) auto;
    gap: 12px;
    align-items: center;
    width: 100%;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.035);
    color: var(--text);
    padding: 14px;
    text-align: left;
    cursor: pointer;
}

.customer-result-row:hover,
.customer-result-row:focus {
    background: rgba(31, 111, 235, 0.14);
    outline: none;
}

.customer-result-row span,
.customer-result-row small,
.customer-product-row span {
    color: var(--muted);
}

.customer-editor {
    display: grid;
    gap: 18px;
}

.customer-editor-header,
.customer-products-header,
.customer-product-row {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
}

.customer-editor-header h3 {
    margin-bottom: 0;
}

.customer-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
}

.customer-facts div,
.customer-products-panel {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.035);
    padding: 16px;
}

.customer-facts dt {
    color: var(--muted);
    font-weight: 800;
    margin-bottom: 6px;
}

.customer-facts dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.customer-alt-email-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: start;
}

.customer-alt-email-form textarea {
    width: 100%;
    min-height: 40px;
    max-height: 44px;
    border: 1px solid var(--line);
    background: #0c0f15;
    color: var(--text);
    padding: 9px;
    font: inherit;
    resize: vertical;
    transition: max-height 160ms ease, min-height 160ms ease, border-color 160ms ease;
    overflow: hidden;
}

.customer-alt-email-form textarea:focus {
    min-height: 120px;
    max-height: 220px;
    border-color: var(--gold);
    overflow: auto;
    outline: none;
}

.customer-products-panel {
    display: grid;
    gap: 14px;
}

.customer-add-product {
    grid-template-columns: minmax(260px, 1fr) auto;
    align-items: end;
}

.customer-product-list {
    display: grid;
    gap: 4px;
}

.customer-product-row {
    border: 1px solid var(--line);
    background: #0c0f15;
    padding: 7px 9px;
    min-height: 34px;
}

.customer-product-line {
    display: flex;
    min-width: 0;
    flex: 1;
    gap: 8px;
    align-items: baseline;
}

.customer-product-line strong {
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.customer-product-line small {
    color: var(--muted);
    white-space: nowrap;
}

.customer-product-row .button {
    padding: 5px 8px;
    min-height: 0;
    line-height: 1;
    font-size: 0.78rem;
    flex: 0 0 auto;
}

.news-list {
    display: grid;
    gap: 18px;
    margin-bottom: 70px;
}

.news-card {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 22px;
    background: var(--panel);
    border: 1px solid var(--line);
    padding: 18px;
}

.news-card-link {
    color: inherit;
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.news-card-link:hover,
.news-card-link:focus {
    transform: translateY(-2px);
    border-color: rgba(245, 197, 66, 0.5);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
    outline: none;
}

.news-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.news-card time {
    display: block;
    margin-bottom: 10px;
    color: var(--gold);
    font-weight: 900;
}

.news-card p {
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 0;
}

.news-video {
    margin-top: 16px;
}

.faq-form-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

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

.faq-admin-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
}

.faq-admin-item span {
    display: block;
    color: var(--gold);
    font-size: 0.82rem;
    font-weight: 800;
}

.faq-admin-item strong {
    display: block;
}

.dialog-actions {
    align-items: center;
    justify-content: flex-end;
}

.dialog-actions .button.danger {
    margin-right: auto;
}

.save-status {
    color: var(--muted);
    min-width: 120px;
    text-align: right;
}

.save-status.is-error {
    color: #ff8a8f;
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    flex-direction: column;
    padding: 26px clamp(18px, 4vw, 56px);
    color: var(--muted);
    text-align: center;
    border-top: 1px solid var(--line);
}

.site-footer p {
    margin: 0;
}

.site-footer a {
    color: var(--text);
}

@media (max-width: 760px) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
    }

    nav a {
        padding-left: 10px;
        padding-right: 10px;
    }

    .hero,
    .product-hero {
        min-height: 780px;
    }

    .landing-news-box {
        left: clamp(18px, 5vw, 32px);
        right: clamp(18px, 5vw, 32px);
        bottom: 24px;
        width: auto;
        max-height: 330px;
    }

    .landing-news-body {
        max-height: 270px;
    }

    .landing-actions {
        top: 28%;
        justify-content: flex-start;
    }

    .landing-hero-paired .landing-actions,
    .landing-hero-split .landing-actions {
        left: clamp(18px, 5vw, 32px);
        right: clamp(18px, 5vw, 32px);
        justify-content: flex-start;
    }

    .landing-hero-compact {
        align-items: end;
    }

    .landing-hero-compact .landing-actions {
        padding-top: 16px;
    }

    .landing-actions .button {
        min-width: 0;
    }

    .region-grid {
        grid-template-columns: 1fr;
    }

    .product-detail-shell {
        grid-template-columns: 1fr;
    }

    .cart-row,
    .checkout-panel,
    .discount-form,
    .promotion-panel,
    .promotion-form,
    .customer-search-form,
    .customer-result-row,
    .customer-facts,
    .customer-add-product,
    .customer-alt-email-form,
    .faq-admin-item,
    .news-card {
        grid-template-columns: 1fr;
    }

    .admin-news-thumb {
        width: 86px;
        max-width: 86px;
    }

    .cart-price {
        text-align: left;
    }

    .form-grid,
    .delivery-grid,
    .drop-grid {
        grid-template-columns: 1fr;
    }

    .dialog-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .dialog-actions .button.danger {
        margin-right: 0;
    }
}
