:root {
    --bg: #07090d;
    --bg-soft: #0d1118;
    --surface: #121822;
    --surface-2: #171e29;
    --text: #f7f8fa;
    --muted: #9aa5b4;
    --orange: #ff6a00;
    --orange-dark: #d94f00;
    --blue: #28a9ff;
    --green: #137a46;
    --green-dark: #168b4e;
    --line: rgba(255, 255, 255, 0.11);
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.32);
    --radius: 18px;
    --radius-small: 11px;
    --admin-bg: #f2f5f9;
    --admin-text: #18202b;
    --admin-muted: #637083;
    --admin-line: #dce2ea;
    --danger: #c63e3e;
    --warning: #b36a00;
    --success: #167d4b;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.55;
    text-rendering: optimizeLegibility;
}

body.public-page {
    color: var(--text);
    background:
        radial-gradient(circle at 78% 6%, rgba(40, 169, 255, 0.10), transparent 25rem),
        radial-gradient(circle at 15% 15%, rgba(255, 106, 0, 0.10), transparent 28rem),
        var(--bg);
}

a {
    color: inherit;
}

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

button,
input,
textarea {
    font: inherit;
}

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

button {
    cursor: pointer;
}

:focus-visible {
    outline: 3px solid rgba(40, 169, 255, 0.8);
    outline-offset: 3px;
}

.skip-link {
    position: fixed;
    z-index: 999;
    top: 12px;
    left: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    color: #111;
    background: #fff;
    transform: translateY(-150%);
}

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

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

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

.eyebrow {
    margin: 0 0 10px;
    color: var(--orange);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 18px;
    border: 1px solid transparent;
    border-radius: 11px;
    font-weight: 780;
    line-height: 1.2;
    text-decoration: none;
    transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    color: #fff;
    background: #b94400;
    box-shadow: 0 12px 28px rgba(255, 106, 0, 0.2);
}

.button-primary:hover {
    background: #cc4b00;
    box-shadow: 0 14px 34px rgba(255, 106, 0, 0.28);
}

.button-secondary {
    color: inherit;
    border-color: currentColor;
    background: transparent;
    opacity: 0.82;
}

.button-secondary:hover {
    opacity: 1;
}

.button-whatsapp {
    color: #fff;
    background: var(--green);
    box-shadow: 0 10px 22px rgba(33, 185, 107, 0.18);
}

.button-whatsapp:hover {
    background: #168b50;
}

.button-large {
    min-height: 52px;
    padding-inline: 23px;
}

.text-link,
.detail-link,
.back-link {
    color: var(--blue);
    font-weight: 730;
    text-decoration: none;
}

.text-link:hover,
.detail-link:hover,
.back-link:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.site-header {
    position: sticky;
    z-index: 30;
    top: 0;
    border-bottom: 1px solid var(--line);
    background: rgba(7, 9, 13, 0.86);
    backdrop-filter: blur(18px);
}

.header-inner {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
}

.brand img {
    width: 68px;
    height: 68px;
    object-fit: contain;
}

.brand-copy {
    display: grid;
    line-height: 1;
}

.brand-copy strong {
    font-size: 1.26rem;
    letter-spacing: -0.035em;
}

.brand-copy strong span {
    color: var(--orange);
}

.brand-copy small {
    margin-top: 7px;
    color: #fff;
    font-size: 0.73rem;
    font-weight: 850;
    letter-spacing: 0.19em;
}

.hero {
    padding: 62px 0 46px;
}

.hero-layout {
    min-height: 440px;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
    align-items: center;
    gap: clamp(32px, 6vw, 80px);
}

.hero-copy h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(2.55rem, 6vw, 5.5rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.hero-text {
    max-width: 650px;
    margin: 25px 0 0;
    color: #c6cdd6;
    font-size: clamp(1.06rem, 2vw, 1.3rem);
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.hero-brand-card {
    position: relative;
    min-height: 410px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(255, 106, 0, 0.24);
    border-radius: 32px;
    background:
        linear-gradient(rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0)),
        #0b0f15;
    box-shadow: var(--shadow);
}

.hero-brand-card::before {
    content: "";
    position: absolute;
    inset: 20px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 24px;
}

.hero-brand-card img {
    position: relative;
    z-index: 2;
    width: min(82%, 340px);
    filter: drop-shadow(0 24px 38px rgba(0, 0, 0, 0.5));
}

.hero-glow {
    position: absolute;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    background: rgba(255, 106, 0, 0.34);
    filter: blur(72px);
}

.catalog-section {
    padding: 55px 0 90px;
}

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

.section-heading h2,
.custom-order h2 {
    margin: 0;
    font-size: clamp(1.9rem, 4vw, 3rem);
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.section-heading > p {
    margin: 0 0 5px;
    color: var(--muted);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(275px, 1fr));
    gap: 22px;
}

.product-card {
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 106, 0, 0.42);
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.28);
}

.product-image-wrap {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background: #0a0d12;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: opacity 200ms ease;
}

.product-card:hover .product-image {
    opacity: 0.94;
}

.product-placeholder {
    width: 100%;
    height: 100%;
    min-height: 210px;
    display: grid;
    place-content: center;
    gap: 5px;
    color: rgba(255, 255, 255, 0.72);
    text-align: center;
    background:
        linear-gradient(135deg, rgba(255, 106, 0, 0.12), transparent 58%),
        linear-gradient(315deg, rgba(40, 169, 255, 0.12), transparent 56%),
        #0c1118;
}

.product-placeholder strong {
    font-size: 3rem;
    letter-spacing: -0.08em;
}

.product-placeholder small {
    color: var(--muted);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.product-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 21px;
}

.product-card-main {
    min-height: 112px;
}

.product-card h3 {
    margin: 0 0 8px;
    font-size: 1.24rem;
    line-height: 1.25;
}

.product-card h3 a {
    text-decoration: none;
}

.product-card h3 a:hover {
    color: var(--orange);
}

.product-card-main p {
    margin: 0;
    color: var(--muted);
    font-size: 0.94rem;
}

.product-prices {
    min-height: 76px;
    display: grid;
    align-content: center;
    gap: 7px;
    margin: 18px 0;
}

.product-price-line,
.consult-price {
    margin: 0;
}

.product-price-line {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 3px 9px;
}

.product-price-line strong {
    color: #fff;
    font-size: 1.32rem;
    font-weight: 850;
    letter-spacing: -0.035em;
}

.product-price-line span {
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 680;
}

.consult-price {
    color: var(--orange);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.35;
}

.product-actions {
    display: grid;
    gap: 11px;
}

.product-actions .button {
    width: 100%;
}

.detail-link {
    justify-self: center;
    font-size: 0.91rem;
}

.empty-state {
    padding: clamp(38px, 7vw, 76px) 24px;
    border: 1px dashed rgba(255, 255, 255, 0.18);
    border-radius: 22px;
    text-align: center;
    background: rgba(255, 255, 255, 0.025);
}

.empty-state h2,
.empty-state h3 {
    margin: 12px 0 8px;
    font-size: 1.65rem;
}

.empty-state p {
    max-width: 600px;
    margin: 0 auto 24px;
    color: var(--muted);
}

.empty-badge {
    width: 62px;
    height: 62px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(255, 106, 0, 0.4);
    border-radius: 18px;
    color: var(--orange);
    background: rgba(255, 106, 0, 0.08);
    font-size: 1.35rem;
    font-weight: 850;
}

.custom-order {
    padding: 0 0 96px;
}

.custom-order-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: clamp(28px, 5vw, 50px);
    border: 1px solid rgba(40, 169, 255, 0.18);
    border-radius: 24px;
    background:
        linear-gradient(100deg, rgba(40, 169, 255, 0.1), transparent 40%),
        var(--surface);
}

.custom-order p:not(.eyebrow) {
    max-width: 700px;
    margin: 14px 0 0;
    color: var(--muted);
}

.site-footer {
    border-top: 1px solid var(--line);
    color: var(--muted);
    background: #05070a;
}

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

.footer-inner > p {
    margin: 0;
    font-size: 0.86rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-brand img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.footer-brand div {
    display: grid;
}

.footer-brand strong {
    color: #fff;
}

.footer-brand span {
    font-size: 0.85rem;
}

.product-detail-page {
    padding: 35px 0 95px;
}

.breadcrumb {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 28px;
    color: var(--muted);
    font-size: 0.91rem;
}

.breadcrumb a {
    color: var(--blue);
    text-decoration: none;
}

.product-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.92fr);
    gap: clamp(30px, 6vw, 76px);
    align-items: center;
}

.product-detail-media {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 25px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.product-detail-media > img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.product-placeholder-large {
    min-height: 100%;
}

.product-detail-copy h1 {
    margin: 0;
    font-size: clamp(2.2rem, 5vw, 4.5rem);
    line-height: 1;
    letter-spacing: -0.05em;
}

.detail-prices {
    display: grid;
    gap: 10px;
    margin: 22px 0;
}

.detail-price-line {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 12px;
    margin: 0;
}

.detail-price-line strong {
    color: var(--orange);
    font-size: clamp(1.65rem, 4vw, 2.35rem);
    font-weight: 850;
    letter-spacing: -0.04em;
}

.detail-price-line span {
    color: #e5e9ef;
    font-size: 1rem;
    font-weight: 720;
}

.detail-prices .consult-price {
    max-width: 430px;
    font-size: clamp(1.2rem, 3vw, 1.55rem);
}

.detail-description {
    margin-bottom: 30px;
    color: #c2cad5;
    font-size: 1.06rem;
}

.product-detail-copy .button {
    width: 100%;
}

.order-note {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 0.83rem;
    text-align: center;
}

.not-found {
    min-height: 65vh;
    display: grid;
    place-items: center;
    padding: 70px 0;
    text-align: center;
}

.not-found h1 {
    margin: 18px 0 8px;
    font-size: clamp(2rem, 5vw, 3.6rem);
}

.not-found p {
    margin: 0 0 26px;
    color: var(--muted);
}

/* Forms and alerts */

.form-stack {
    display: grid;
    gap: 22px;
}

.form-grid {
    display: grid;
    gap: 18px;
}

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

.form-grid-3 {
    grid-template-columns: 1.1fr 0.6fr 1.2fr;
}

fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

fieldset + fieldset {
    padding-top: 27px;
    border-top: 1px solid var(--admin-line);
}

legend {
    margin-bottom: 16px;
    color: var(--admin-text);
    font-size: 1.18rem;
    font-weight: 820;
}

.field {
    display: grid;
    gap: 8px;
    color: var(--admin-text);
}

.field > span {
    font-size: 0.91rem;
    font-weight: 760;
}

.field input,
.field textarea {
    width: 100%;
    min-height: 47px;
    padding: 11px 13px;
    border: 1px solid #cbd3dd;
    border-radius: 10px;
    color: var(--admin-text);
    background: #fff;
    outline: 0;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

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

.field input:focus,
.field textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(40, 169, 255, 0.13);
}

.field small,
.field-help,
.privacy-note {
    color: var(--admin-muted);
    font-size: 0.81rem;
}

.field-help {
    margin: -8px 0 15px;
}

.alert {
    margin-bottom: 20px;
    padding: 14px 16px;
    border: 1px solid transparent;
    border-radius: 11px;
    font-size: 0.92rem;
}

.alert ul {
    margin: 8px 0 0;
    padding-left: 20px;
}

.alert-error {
    color: #842424;
    border-color: #f1baba;
    background: #fff0f0;
}

.alert-success {
    color: #12633c;
    border-color: #ace0c8;
    background: #ecfaf3;
}

.alert-warning {
    color: #774400;
    border-color: #edd19c;
    background: #fff8e9;
}

/* Installer and login */

.setup-page,
.login-page {
    min-height: 100vh;
    color: #fff;
    background:
        radial-gradient(circle at 80% 8%, rgba(40, 169, 255, 0.13), transparent 30rem),
        radial-gradient(circle at 8% 70%, rgba(255, 106, 0, 0.12), transparent 30rem),
        var(--bg);
}

.setup-shell {
    width: min(980px, calc(100% - 36px));
    margin: 0 auto;
    padding: 52px 0 80px;
}

.setup-brand {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    align-items: center;
    gap: 34px;
    margin-bottom: 32px;
}

.setup-logo {
    width: 180px;
    height: 180px;
    object-fit: contain;
}

.setup-brand h1,
.login-brand h1 {
    margin: 0;
    font-size: clamp(2.2rem, 5vw, 4.4rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.setup-brand p:not(.eyebrow),
.login-brand p:not(.eyebrow) {
    max-width: 660px;
    margin: 17px 0 0;
    color: #b3bdca;
    font-size: 1.03rem;
}

.setup-card,
.login-card {
    color: var(--admin-text);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow);
}

.setup-card {
    padding: clamp(24px, 5vw, 46px);
}

.setup-card .button-primary,
.login-card .button-primary,
.admin-page .button-primary {
    border: 0;
}

.setup-card > .button-large {
    width: 100%;
}

.privacy-note {
    margin: -7px 0 0;
    text-align: center;
}

.setup-finished {
    display: grid;
    justify-items: center;
    text-align: center;
}

.setup-finished h2 {
    margin: 14px 0 4px;
    font-size: 2rem;
}

.setup-finished p {
    margin: 0 0 23px;
    color: var(--admin-muted);
}

.status-mark {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--success);
    font-size: 1.8rem;
    font-weight: 900;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.setup-finished .button-secondary,
.admin-page .button-secondary {
    color: var(--admin-text);
    border-color: var(--admin-line);
    background: #fff;
}

.login-shell {
    width: min(1040px, calc(100% - 36px));
    min-height: 100vh;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: clamp(35px, 8vw, 95px);
    padding: 42px 0;
}

.login-brand img {
    width: 180px;
    height: 180px;
    margin-bottom: 22px;
    object-fit: contain;
}

.login-brand .text-link {
    display: inline-block;
    margin-top: 24px;
}

.login-card {
    padding: clamp(26px, 5vw, 43px);
}

.login-card h2 {
    margin: 0;
    font-size: 2rem;
    letter-spacing: -0.035em;
}

.login-card > p:not(.eyebrow) {
    margin: 7px 0 24px;
    color: var(--admin-muted);
}

/* Admin */

.admin-page {
    color: var(--admin-text);
    background: var(--admin-bg);
}

.admin-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 255px minmax(0, 1fr);
}

.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 24px 18px;
    color: #fff;
    background:
        radial-gradient(circle at 30% 0, rgba(255, 106, 0, 0.12), transparent 18rem),
        #090c11;
}

.admin-brand {
    padding: 0 8px 24px;
    border-bottom: 1px solid var(--line);
}

.admin-brand img {
    width: 58px;
    height: 58px;
}

.admin-nav {
    display: grid;
    gap: 8px;
    margin-top: 24px;
}

.admin-nav a {
    min-height: 46px;
    display: flex;
    align-items: center;
    padding: 10px 13px;
    border-radius: 10px;
    color: #aeb8c5;
    font-weight: 690;
    text-decoration: none;
}

.admin-nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.admin-nav a.active {
    color: #fff;
    background: rgba(255, 106, 0, 0.17);
    box-shadow: inset 3px 0 0 var(--orange);
}

.admin-account {
    display: grid;
    gap: 3px;
    margin-top: auto;
    padding: 17px 10px 2px;
    border-top: 1px solid var(--line);
}

.admin-account > span {
    color: #7f8996;
    font-size: 0.75rem;
}

.admin-account > strong {
    margin-bottom: 10px;
    font-size: 0.91rem;
}

.logout-button {
    padding: 0;
    border: 0;
    color: #aeb8c5;
    background: transparent;
    font-size: 0.84rem;
    text-align: left;
}

.logout-button:hover {
    color: #fff;
    text-decoration: underline;
}

.admin-main {
    min-width: 0;
}

.admin-topbar {
    min-height: 116px;
    display: flex;
    align-items: center;
    padding: 22px clamp(22px, 4vw, 54px);
    border-bottom: 1px solid var(--admin-line);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
}

.admin-topbar .eyebrow {
    margin-bottom: 4px;
}

.admin-topbar h1 {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 2.55rem);
    line-height: 1;
    letter-spacing: -0.04em;
}

.admin-content {
    width: min(1280px, 100%);
    padding: 30px clamp(20px, 4vw, 54px) 60px;
}

.admin-toolbar {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.admin-toolbar > .button {
    align-self: center;
}

.stats-row {
    display: flex;
    gap: 12px;
}

.stat-card {
    min-width: 170px;
    padding: 15px 18px;
    border: 1px solid var(--admin-line);
    border-radius: 13px;
    background: #fff;
}

.stat-card span {
    display: block;
    color: var(--admin-muted);
    font-size: 0.78rem;
}

.stat-card strong {
    display: block;
    margin-top: 2px;
    font-size: 1.65rem;
    line-height: 1.1;
}

.admin-card {
    padding: 24px;
    border: 1px solid var(--admin-line);
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 10px 32px rgba(25, 37, 52, 0.06);
}

.table-scroll {
    overflow-x: auto;
}

.product-table {
    width: 100%;
    border-collapse: collapse;
}

.product-table th,
.product-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #e6eaf0;
    text-align: left;
    vertical-align: middle;
}

.product-table th {
    color: var(--admin-muted);
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.product-table tbody tr:last-child td {
    border-bottom: 0;
}

.actions-column {
    width: 260px;
}

.admin-product {
    min-width: 260px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-product img,
.admin-thumb-placeholder {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    border-radius: 10px;
    object-fit: contain;
    background: #f5f7fa;
}

.admin-thumb-placeholder {
    display: grid;
    place-items: center;
    color: var(--orange);
    background: #111722;
    font-weight: 850;
}

.admin-product div {
    display: grid;
    min-width: 0;
}

.admin-product strong {
    line-height: 1.25;
}

.admin-product small {
    max-width: 410px;
    margin-top: 4px;
    overflow: hidden;
    color: var(--admin-muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.admin-price-list > div {
    display: grid;
}

.admin-price-list small,
.admin-price-list > span {
    color: var(--admin-muted);
    font-size: 0.78rem;
}

.status-pill {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
}

.status-active {
    color: #106a3e;
    background: #e3f7ed;
}

.status-hidden {
    color: #6b7480;
    background: #ebeff3;
}

.table-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
}

.table-actions form {
    margin: 0;
}

.small-action {
    display: inline-flex;
    padding: 7px 9px;
    border: 0;
    border-radius: 7px;
    color: #2b5f9c;
    background: #eef5fd;
    font-size: 0.78rem;
    font-weight: 760;
    text-decoration: none;
}

.small-action:hover {
    background: #e1eefc;
}

.danger-action {
    color: #9c2e2e;
    background: #fff0f0;
}

.danger-action:hover {
    background: #ffe2e2;
}

.admin-empty {
    border: 0;
    background: transparent;
}

.admin-empty p {
    color: var(--admin-muted);
}

.admin-page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: -5px 0 20px;
}

.admin-page-heading p {
    margin: 7px 0 0;
    color: var(--admin-muted);
}

.product-form {
    padding: clamp(22px, 4vw, 36px);
}

.product-form-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: clamp(28px, 5vw, 56px);
}

.field-price {
    max-width: 300px;
}

.price-section {
    display: grid;
    gap: 16px;
    padding: 18px;
    border: 1px solid var(--admin-line);
    border-radius: 13px;
    background: #f8fafc;
}

.price-section-heading {
    display: grid;
    gap: 3px;
    color: var(--admin-text);
}

.price-section-heading strong {
    font-size: 0.98rem;
}

.price-section-heading small,
.price-section-note {
    color: var(--admin-muted);
    font-size: 0.81rem;
}

.price-option-row {
    display: grid;
    grid-template-columns: minmax(160px, 0.72fr) minmax(220px, 1.28fr);
    gap: 14px;
}

.price-option-row .field-price {
    max-width: none;
}

.price-section-note {
    margin: 0;
    line-height: 1.45;
}

.price-input {
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid #cbd3dd;
    border-radius: 10px;
    background: #fff;
}

.price-input:focus-within {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(40, 169, 255, 0.13);
}

.price-input > span {
    padding: 0 13px;
    color: var(--admin-muted);
    font-weight: 800;
}

.price-input input {
    border: 0;
    border-left: 1px solid #e0e5eb;
    border-radius: 0;
    box-shadow: none !important;
}

.switch-field,
.check-field {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--admin-text);
    cursor: pointer;
}

.switch-field > input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.switch-visual {
    position: relative;
    width: 46px;
    height: 26px;
    flex: 0 0 46px;
    border-radius: 999px;
    background: #b5bec9;
    transition: background-color 160ms ease;
}

.switch-visual::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.2);
    transition: transform 160ms ease;
}

.switch-field input:checked + .switch-visual {
    background: var(--green);
}

.switch-field input:checked + .switch-visual::after {
    transform: translateX(20px);
}

.switch-field input:focus-visible + .switch-visual {
    outline: 3px solid rgba(40, 169, 255, 0.55);
    outline-offset: 3px;
}

.switch-field > span:last-child {
    display: grid;
}

.switch-field small {
    color: var(--admin-muted);
    font-size: 0.8rem;
}

.image-upload-card {
    align-self: start;
    padding: 17px;
    border: 1px solid var(--admin-line);
    border-radius: 15px;
    background: #f8fafc;
}

.image-preview {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    margin-bottom: 17px;
    border: 1px dashed #bec8d4;
    border-radius: 12px;
    background: #fff;
}

.image-preview > img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.image-preview .product-placeholder {
    min-height: 100%;
}

.file-field input {
    min-height: auto;
    padding: 9px;
    background: #fff;
}

.check-field {
    margin-top: 14px;
    font-size: 0.87rem;
}

.check-field input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--orange);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--admin-line);
}

.settings-form {
    max-width: 850px;
    padding: clamp(22px, 4vw, 36px);
}

/* Responsive */

@media (max-width: 920px) {
    .hero-layout,
    .product-detail {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 42px;
    }

    .hero-layout {
        min-height: 0;
    }

    .hero-brand-card {
        min-height: 350px;
    }

    .product-detail-media {
        max-width: 680px;
    }

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

    .admin-sidebar {
        position: static;
        height: auto;
        display: grid;
        grid-template-columns: 1fr;
        padding: 14px 20px;
    }

    .admin-brand {
        padding: 0 0 13px;
    }

    .admin-brand img {
        width: 50px;
        height: 50px;
    }

    .admin-nav {
        display: flex;
        overflow-x: auto;
        margin-top: 11px;
        padding-bottom: 2px;
    }

    .admin-nav a {
        min-width: max-content;
        min-height: 41px;
    }

    .admin-nav a.active {
        box-shadow: inset 0 -3px 0 var(--orange);
    }

    .admin-account {
        display: none;
    }

    .admin-topbar {
        min-height: 98px;
    }

    .product-form-layout {
        grid-template-columns: 1fr;
    }

    .image-upload-card {
        max-width: 520px;
    }
}

@media (max-width: 720px) {
    .container,
    .narrow-container {
        width: min(100% - 28px, 1180px);
    }

    .header-inner {
        min-height: 76px;
    }

    .brand img {
        width: 55px;
        height: 55px;
    }

    .brand-copy strong {
        font-size: 1.08rem;
    }

    .brand-copy small {
        font-size: 0.65rem;
    }

    .header-contact {
        min-height: 42px;
        padding: 9px 12px;
        font-size: 0.84rem;
    }

    .hero-copy h1 {
        font-size: clamp(2.45rem, 13vw, 4.2rem);
    }

    .hero-brand-card {
        min-height: 310px;
    }

    .section-heading,
    .custom-order-inner,
    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .custom-order-inner .button {
        width: 100%;
    }

    .footer-inner {
        min-height: 0;
        padding: 30px 0;
    }

    .footer-inner > p {
        padding-top: 18px;
        border-top: 1px solid var(--line);
    }

    .setup-shell {
        padding-top: 30px;
    }

    .setup-brand {
        grid-template-columns: 1fr;
        gap: 8px;
        text-align: center;
    }

    .setup-logo {
        width: 150px;
        height: 150px;
        margin: 0 auto;
    }

    .form-grid-2,
    .form-grid-3,
    .price-option-row {
        grid-template-columns: 1fr;
    }

    .login-shell {
        grid-template-columns: 1fr;
        padding: 28px 0 50px;
    }

    .login-brand {
        text-align: center;
    }

    .login-brand img {
        width: 140px;
        height: 140px;
        margin-inline: auto;
    }

    .admin-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-toolbar > .button {
        align-self: stretch;
    }

    .stats-row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-card {
        min-width: 0;
    }

    .admin-card {
        padding: 18px;
    }

    .product-table thead {
        display: none;
    }

    .product-table,
    .product-table tbody,
    .product-table tr,
    .product-table td {
        display: block;
        width: 100%;
    }

    .product-table tr {
        padding: 14px 0;
        border-bottom: 1px solid var(--admin-line);
    }

    .product-table tbody tr:last-child {
        border-bottom: 0;
    }

    .product-table td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 8px 0;
        border-bottom: 0;
    }

    .product-table td::before {
        content: attr(data-label);
        color: var(--admin-muted);
        font-size: 0.73rem;
        font-weight: 750;
        letter-spacing: 0.05em;
        text-transform: uppercase;
    }

    .product-table td:first-child {
        display: block;
    }

    .product-table td:first-child::before {
        display: none;
    }

    .admin-product {
        min-width: 0;
    }

    .table-actions {
        justify-content: flex-end;
    }
}

@media (max-width: 480px) {
    .header-contact {
        max-width: 132px;
        text-align: center;
    }

    .brand-copy {
        display: none;
    }

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

    .hero-actions .button {
        width: 100%;
    }

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

    .product-detail-copy h1 {
        font-size: 2.35rem;
    }

    .button-row,
    .form-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .button-row .button,
    .form-actions .button {
        width: 100%;
    }

    .stats-row {
        grid-template-columns: 1fr;
    }

    .admin-topbar,
    .admin-content {
        padding-inline: 16px;
    }
}

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