/* FCF Studio: store/admin visual system. Local system fonts; no font binaries required. */
:root {
    --ink: #152c42;
    --muted: #728293;
    --accent: #127b74;
    --paper: #f5f7f9;
    --bs-primary: #127b74;
    --bs-primary-rgb: 18,123,116;
}
body {
    background: var(--paper);
    color: var(--ink);
    font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    font-size: 14px;
}
.btn-primary {
    --bs-btn-bg: #127b74;
    --bs-btn-border-color: #127b74;
    --bs-btn-hover-bg: #0e625d;
    --bs-btn-hover-border-color: #0e625d;
    --bs-btn-active-bg: #0e625d;
}
.btn-outline-primary {
    --bs-btn-color: #127b74;
    --bs-btn-border-color: #127b74;
    --bs-btn-hover-bg: #127b74;
    --bs-btn-hover-border-color: #127b74;
}
a {
    color: var(--accent);
    text-decoration: none;
}
h1,h2,h3,h4 {
    letter-spacing: -.035em;
    font-weight: 650;
}
h1 {
    font-size: 38px;
}
h3 {
    font-size: 21px;
}
small,.small {
    font-size: 12px;
}
.eyebrow {
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--accent);
}
.shop-header {
    height: 86px;
    background: #fff;
    border-bottom: 1px solid #e0e7ed;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4vw;
    gap: 25px;
}
.brand {
    font-size: 22px;
    font-weight: 300;
    letter-spacing: -1px;
    color: #20334a;
    white-space: nowrap;
}
.brand span {
    font-weight: 850;
    color: #127b74;
}
.brand small {
    display: block;
    font-size: 8px;
    font-weight: 650;
    letter-spacing: .21em;
    color: #7d8b98;
    margin-top: 2px;
}
.shop-header nav {
    display: flex;
    align-items: center;
    gap: 25px;
    font-size: 13px;
}
.shop-header nav>a {
    color: #42586c;
}
.cart-link {
    padding: 10px 18px;
    background: #e6f2ef;
    border-radius: 7px;
}
.panel {
    border: 1px solid #e2e8ee;
    background: white;
    border-radius: 14px;
    box-shadow: 0 5px 25px #16304904;
}
.shop-footer {
    padding: 30px 4vw;
    color: var(--muted);
    font-size: 11px;
    display: flex;
    justify-content: space-between;
}
.store-hero {
    min-height: 375px;
    background: #e8efec;
    border-radius: 20px;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    padding: 45px 50px;
    margin: 8px 0 22px;
    overflow: hidden;
}
.store-hero h1 {
    font-size: 50px;
    line-height: 1.07;
    margin: 17px 0;
    color: #193c39;
}
.store-hero h1 em {
    font-family: Georgia,serif;
    font-weight: normal;
    color: #6c8e7f;
}
.store-hero p {
    color: #607970;
    max-width: 440px;
    font-size: 15px;
}
.hero-art {
    height: 320px;
    position: relative;
}
.paper {
    position: absolute;
    box-shadow: 7px 16px 28px #243d332b;
    border-radius: 3px;
}
.paper-back {
    width: 200px;
    height: 235px;
    left: 32%;
    top: 25px;
    background: #f7f0e5;
    transform: rotate(13deg);
}
.paper-front {
    width: 200px;
    height: 235px;
    background: #3c5f53;
    top: 35px;
    left: 22%;
    transform: rotate(-9deg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 32px 22px;
    color: #f8ecd7;
}
.paper-front span {
    font-size: 27px;
    line-height: 1.1;
    font-family: Georgia,serif;
}
.paper-front i {
    font-size: 7px;
    letter-spacing: .15em;
    font-style: normal;
}
.art-caption {
    position: absolute;
    right: 0;
    bottom: 12px;
    font-size: 11px;
    color: #7a8f80;
}
.demo-notice {
    padding: 10px 15px;
    border-radius: 8px;
    background: #fff5dc;
    color: #816529;
    font-size: 12px;
}
.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 35px 0 22px;
}
.section-heading h2 {
    font-size: 28px;
    margin: 6px 0;
}
.section-heading input {
    max-width: 280px;
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 22px;
}
.product-card {
    border-radius: 13px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e0e7ed;
    transition: transform .2s,box-shadow .2s;
}
.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px #1a394e10;
}
.product-art {
    height: 185px;
    background: #edeae3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.product-paper {
    width: 132px;
    height: 110px;
    background: #fefcf7;
    box-shadow: 4px 6px 14px #24344520;
    transform: rotate(-7deg);
    padding: 19px 13px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #576e64;
}
.product-paper span {
    font: 18px/1.1 Georgia,serif;
}
.product-paper small {
    font-size: 5px;
    letter-spacing: .15em;
}
.art-book {
    background: #e2ebe5;
}
.art-book .product-paper {
    background: #526e61;
    color: #f6efd9;
    border-left: 7px solid #364e44;
}
.art-circle {
    background: #eae7ef;
}
.art-circle .product-paper {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    border: 9px solid #344152;
    text-align: center;
    justify-content: center;
    gap: 15px;
}
.art-prints {
    background: #e9eff5;
}
.art-documents {
    background: #ebeaf3;
}
.art-canvas {
    background: #f1e7da;
}
.art-canvas .product-paper {
    border: 10px solid white;
}
.product-info {
    padding: 20px;
}
.product-info>small {
    color: #7b8b98;
}
.product-info h3 {
    font-size: 19px;
    margin: 7px 0 10px;
}
.product-info p {
    font-size: 12px;
    color: #7b8997;
    min-height: 55px;
}
.product-info>div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}
.product-info strong {
    font-size: 12px;
}
.auth-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1000px;
    margin: 35px auto;
    overflow: hidden;
}
.auth-intro {
    padding: 55px;
    background: #183f3c;
    color: #e9efe6;
    min-height: 440px;
    position: relative;
}
.auth-intro .eyebrow {
    color: #9ac7ba;
}
.auth-intro h1 {
    font-size: 39px;
    line-height: 1.14;
    margin: 25px 0;
}
.auth-intro p {
    color: #afc9c3;
    max-width: 320px;
}
.auth-stamp {
    font-size: 45px;
    font-weight: 700;
    margin-top: 45px;
    line-height: .85;
}
.auth-stamp small {
    font-size: 9px;
    letter-spacing: .35em;
}
.order-line {
    display: flex;
    justify-content: space-between;
    padding: 22px 0;
    border-bottom: 1px solid #e7ecf1;
    gap: 24px;
}
.order-line h5 {
    font-size: 16px;
}
.order-line p {
    margin-bottom: 5px;
    color: var(--muted);
}
.order-line small {
    color: var(--muted);
}
.order-line input {
    width: 85px;
}
.order-line:last-child {
    border: 0;
}
.checkout-summary {
    position: sticky;
    top: 20px;
}
.totals-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
}
.totals-total {
    font-size: 22px;
    font-weight: 700;
    border-top: 1px solid #dfe8e6;
    margin-top: 10px;
    padding-top: 18px;
}
.status-badge {
    display: inline-block;
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 20px;
    background: #ebf0f5;
    color: #425b70;
    font-weight: 650;
}
.status-ready,.status-paid {
    background: #e2f5eb;
    color: #18734d;
}
.status-failed {
    background: #ffebe7;
    color: #b04733;
}
.status-processing,.status-production {
    background: #e8f0ff;
    color: #416aaa;
}
.status-pending_gateway {
    background: #fff1d9;
    color: #8b651d;
}
.admin-layout {
    display: grid;
    grid-template-columns: 228px minmax(0,1fr);
}
.admin-sidebar {
    background: white;
    border-right: 1px solid #e0e7ed;
    padding: 28px 18px;
    min-height: calc(100vh - 86px);
}
.admin-sidebar a {
    display: block;
    color: #536878;
    padding: 9px 10px;
    border-radius: 6px;
    font-size: 12px;
    margin: 3px 0;
}
.admin-sidebar a:hover {
    background: #edf5f3;
    color: #127b74;
}
.admin-sidebar .eyebrow {
    padding-left: 10px;
}
.admin-sidebar small {
    display: block;
    color: #97a2ac;
    font-size: 10px;
    padding: 25px 10px;
    line-height: 1.6;
}
.admin-main {
    padding: 30px;
    min-width: 0;
}
.metric-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 16px;
    margin: 22px 0;
}
.metric {
    padding: 21px;
    background: white;
    border: 1px solid #dfe7ee;
    border-radius: 12px;
}
.metric small {
    color: #738795;
    font-size: 11px;
}
.metric strong {
    display: block;
    font-size: 29px;
    letter-spacing: -.04em;
    margin: 7px 0;
}
.metric span {
    color: #8090a0;
    font-size: 10px;
}
.toolbar {
    display: flex;
    align-items: end;
    gap: 12px;
    flex-wrap: wrap;
}
.toolbar .form-control {
    font-size: 13px;
}
.admin-main .table {
    font-size: 12px;
}
.table th {
    background: #f6f8fb;
    color: #53697c;
    font-size: 11px;
    font-weight: 650;
    border-bottom: 1px solid #e0e7ee;
    padding: 14px;
}
.table td {
    padding: 13px;
}
.admin-main .section-heading {
    margin-top: 0;
}
.form-label {
    font-size: 12px;
    font-weight: 550;
    color: #526878;
}
.form-control,.form-select {
    font-size: 13px;
    border-color: #dce4eb;
    padding: 10px 12px;
}
.form-control:focus,.form-select:focus {
    border-color: #74b2a7;
    box-shadow: 0 0 0 3px #127b7412;
}
.admin-split {
    display: grid;
    grid-template-columns: minmax(280px,1fr) minmax(350px,1.2fr);
    gap: 22px;
}
.catalog-list {
    max-height: 760px;
    overflow: auto;
}
.form-section-title {
    font-size: 15px;
    font-weight: 700;
    color: #385365;
    border-bottom: 1px solid #e5ebf0;
    padding-bottom: 12px;
    margin: 18px 0;
}
.mini-template {
    max-width: 170px;
    max-height: 75px;
    object-fit: contain;
    background: #f4f4f4;
}
.template-stage {
    background-color: #fafafa;
    background-image: linear-gradient(45deg,#e7e7e7 25%,transparent 25%),linear-gradient(-45deg,#e7e7e7 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e7e7e7 75%),linear-gradient(-45deg,transparent 75%,#e7e7e7 75%);
    background-size: 20px 20px;
    background-position: 0 0,0 10px,10px -10px,-10px 0;
    border: 1px solid #b8c5cc;
    border-radius: 6px;
    overflow: hidden;
}
.template-stage canvas {
    display: block;
    width: 100%;
    touch-action: none;
}
.slot-table input {
    width: 74px;
    padding: 6px;
}
.slot-table select {
    padding: 6px;
}
.table-responsive {
    border-radius: 10px;
}
.queue-progress {
    height: 5px;
    background: #e8eef2;
    border-radius: 5px;
}
.queue-progress>i {
    display: block;
    height: 100%;
    background: #289c8c;
    border-radius: 5px;
}
.admin-note {
    padding: 12px 16px;
    background: #edf5f2;
    font-size: 12px;
    border-left: 3px solid #2b9c88;
    color: #4b7265;
}
.empty-state {
    padding: 50px 15px;
    text-align: center;
    color: #788c9b;
}
.dt-container {
    font-size: 12px;
}
.dt-container select,.dt-container input {
    border: 1px solid #d9e2e8!important;
    border-radius: 5px!important;
}
.table-actions {
    display: flex;
    gap: 5px;
}
.btn {
    font-size: 13px;
}
.btn-sm {
    font-size: 11px;
}
.metric-grid .accent-metric {
    background: #173f3c;
    color: #fff;
}
.accent-metric small,.accent-metric span {
    color: #adcfc5;
}
@media(max-width:1100px) {
    .product-grid {
        grid-template-columns: repeat(2,1fr);
    }
    .admin-layout {
        grid-template-columns: 190px 1fr;
    }
    .admin-main {
        padding: 20px;
    }
    .metric-grid {
        grid-template-columns: repeat(2,1fr);
    }
    .admin-split {
        grid-template-columns: 1fr;
    }
    .store-hero h1 {
        font-size: 42px;
    }
}
@media(max-width:750px) {
    .shop-header {
        height: auto;
        padding: 16px;
        align-items: start;
        flex-direction: column;
        gap: 16px;
    }
    .shop-header nav {
        gap: 15px;
        flex-wrap: wrap;
        font-size: 12px;
    }
    .brand {
        font-size: 20px;
    }
    .admin-layout {
        display: block;
    }
    .admin-sidebar {
        display: none;
    }
    .admin-main {
        padding: 16px;
    }
    .store-hero {
        grid-template-columns: 1fr;
        padding: 28px;
    }
    .store-hero h1 {
        font-size: 37px;
    }
    .hero-art {
        display: none;
    }
    .product-grid {
        grid-template-columns: 1fr;
    }
    .section-heading {
        align-items: start;
        flex-direction: column;
    }
    .auth-grid {
        grid-template-columns: 1fr;
    }
    .auth-intro {
        display: none;
    }
    .shop-footer {
        display: block;
    }
    .shop-footer span {
        display: block;
        margin-top: 8px;
    }
    .slot-table input {
        width: 55px;
    }
    .metric {
        padding: 15px;
    }
    .metric strong {
        font-size: 24px;
    }
    h1 {
        font-size: 30px;
    }
}
/* Reusable administration layouts. */
.page-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin: 0 0 24px;
}
.page-head h1 {
    font-size: 31px;
}
.page-head p {
    margin: 5px 0;
}
.admin-panel {
    background: white;
    border: 1px solid #dfe7ee;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    min-width: 0;
}
.admin-panel h2 {
    font-size: 20px;
    margin-bottom: 20px;
}
.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 15px;
}
.section-head h2 {
    margin: 0;
}
.filter-bar {
    display: flex;
    gap: 12px;
    align-items: end;
    margin-bottom: 22px;
    flex-wrap: wrap;
}
.filter-bar label {
    font-size: 12px;
}
.metrics {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.metrics article {
    background: #fff;
    padding: 22px;
    border: 1px solid #dfe7ee;
    border-radius: 12px;
}
.metrics article:first-child {
    background: #183f3c;
    color: white;
}
.metrics span {
    display: block;
    color: #718596;
    font-size: 11px;
}
.metrics article:first-child span {
    color: #b3d0c6;
}
.metrics strong {
    display: block;
    font-size: 28px;
    margin-top: 10px;
    letter-spacing: -.04em;
}
.catalog-admin-grid {
    display: grid;
    grid-template-columns: minmax(320px,1fr) minmax(330px,1.25fr);
    gap: 24px;
}
.code-block {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    padding: 15px;
    background: #eef3f5;
    border-radius: 8px;
    font-size: 11px;
}
.template-workspace {
    display: grid;
    grid-template-columns: minmax(0,1fr) 265px;
    gap: 22px;
    align-items: start;
}
.slot-inspector h3 {
    font-size: 17px;
}
.slot-inspector {
    padding: 15px;
    background: #f6f8fa;
    border-radius: 10px;
}
.queue-table {
    max-height: 500px;
}
.admin-panel .table {
    margin-bottom: 10px;
}
@media(max-width:1100px) {
    .catalog-admin-grid {
        grid-template-columns: 1fr;
    }
    .metrics {
        grid-template-columns: repeat(2,1fr);
    }
    .template-workspace {
        grid-template-columns: 1fr;
    }
    .slot-inspector {
        max-width: 500px;
    }
}
@media(max-width:700px) {
    .page-head {
        align-items: start;
        flex-direction: column;
    }
    .admin-panel {
        padding: 15px;
    }
    .metrics strong {
        font-size: 23px;
    }
    .metrics article {
        padding: 16px;
    }
    .admin-sidebar {
        display: block;
        min-height: 0;
        max-height: 210px;
        overflow: auto;
        border-bottom: 1px solid #ddd;
    }
}
