/* Denim Vault — plain CSS, no npm build required */
:root {
    --ink: #111318;
    --paper: #f3f0e9;
    --paper-deep: #e8e2d7;
    --denim: #0d2c4f;
    --denim-mid: #174a78;
    --denim-light: #96b8cf;
    --indigo: #071b31;
    --gold: #d19a3c;
    --rust: #a74f2b;
    --line: rgba(17, 19, 24, .12);
    --shadow: 0 24px 70px rgba(9, 28, 47, .12);
}

html { scroll-behavior: smooth; }
body { color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.public-site { overflow-x: hidden; }
a { text-decoration: none; }
img { max-width: 100%; }

.brand-lockup { display: inline-flex; align-items: center; gap: .7rem; font-weight: 800; letter-spacing: .14em; font-size: .88rem; }
.public-navbar { background: rgba(6, 19, 34, .9); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(255,255,255,.1); }
.public-navbar .nav-link { color: rgba(255,255,255,.72); font-size: .92rem; }
.public-navbar .nav-link:hover { color: #fff; }
.public-flash { position: fixed; top: 82px; left: 50%; z-index: 1040; transform: translateX(-50%); }

.hero-section { position: relative; overflow: hidden; color: white; background: radial-gradient(circle at 82% 18%, rgba(42,103,153,.55), transparent 34%), linear-gradient(125deg, #061526 0%, #0c3156 58%, #071a2c 100%); }
.hero-section::before { content: ""; position: absolute; inset: 0; opacity: .18; background-image: repeating-linear-gradient(115deg, transparent 0 14px, rgba(255,255,255,.12) 15px, transparent 16px 31px); }
.hero-copy, .hero-art-wrap { position: relative; z-index: 1; }
.eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: .2em; font-size: .72rem; font-weight: 800; }
.text-denim { color: var(--denim-mid); }
.display-title { font-family: Georgia, "Times New Roman", serif; font-size: clamp(3.6rem, 7.5vw, 7.4rem); line-height: .84; letter-spacing: -.055em; max-width: 820px; }
.display-title em { color: #b7d4e6; font-weight: 400; }
.hero-lead { max-width: 650px; color: rgba(255,255,255,.72); font-size: 1.2rem; line-height: 1.75; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 2rem; border-top: 1px solid rgba(255,255,255,.18); }
.hero-meta div { display: flex; flex-direction: column; gap: .2rem; min-width: 120px; }
.hero-meta strong { font-family: Georgia, serif; font-size: 1.65rem; }
.hero-meta span { color: rgba(255,255,255,.55); font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; }
.hero-art-frame { position: relative; max-width: 570px; margin: 7rem auto 2rem; padding: 1.5rem; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.045); box-shadow: 0 45px 90px rgba(0,0,0,.35); transform: rotate(2deg); }
.hero-art-frame::after { content: ""; position: absolute; inset: .65rem; border: 1px dashed rgba(255,255,255,.3); pointer-events: none; }
.hero-stamp { position: absolute; right: -2rem; bottom: 3rem; width: 130px; height: 130px; border-radius: 50%; display: grid; place-content: center; text-align: center; border: 2px solid #d8b06c; background: var(--indigo); color: #d8b06c; transform: rotate(-11deg); box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.hero-stamp span { font-size: .55rem; letter-spacing: .18em; }
.hero-stamp strong { display: block; font-family: Georgia, serif; font-size: 1.2rem; margin: .2rem 0; }

.section-space { padding: 7.5rem 0; }
.section-title { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.5rem, 5vw, 5rem); line-height: .96; letter-spacing: -.04em; }
.section-intro { color: #5f6268; font-size: 1.08rem; line-height: 1.75; }
.collection-section { background: var(--paper); }
.collection-card { border: 1px solid var(--line); background: #fff; transition: transform .25s ease, box-shadow .25s ease; overflow: hidden; }
.collection-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.collection-visual { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #d8e0e6; }
.collection-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.collection-card:hover .collection-visual img { transform: scale(1.035); }
.collection-index { position: absolute; top: 1rem; right: 1rem; display: grid; place-items: center; width: 46px; height: 46px; background: rgba(255,255,255,.88); color: var(--denim); font-family: Georgia, serif; border-radius: 50%; }
.collection-card h3 { font-family: Georgia, serif; font-size: 2.15rem; }
.collection-card p { color: #666a70; line-height: 1.7; min-height: 82px; }
.collection-kicker, .collection-count { font-size: .68rem; text-transform: uppercase; letter-spacing: .13em; font-weight: 800; }
.collection-count { color: #7b7e83; }
.scan-note { display: inline-flex; padding-top: 1rem; border-top: 1px solid var(--line); width: 100%; color: var(--denim-mid); font-size: .78rem; font-weight: 700; }
.collection-card-limited { background: #10151c; color: white; }
.collection-card-limited p, .collection-card-limited .collection-count { color: rgba(255,255,255,.62); }
.collection-card-limited .scan-note { color: #e3bd75; border-color: rgba(255,255,255,.15); }

.craft-section { background: #fff; }
.craft-panel { position: relative; min-height: 560px; padding: 4rem; color: #f3e8d5; background: linear-gradient(145deg, #173f66, #071a2e); overflow: hidden; box-shadow: var(--shadow); }
.craft-panel::before { content: ""; position: absolute; inset: 0; opacity: .17; background-image: repeating-linear-gradient(135deg, transparent 0 10px, rgba(255,255,255,.12) 11px, transparent 12px 24px); }
.craft-number, .craft-unit, .craft-panel p { position: relative; z-index: 1; }
.craft-number { display: block; font-family: Georgia, serif; font-size: clamp(6rem, 15vw, 11rem); line-height: .85; letter-spacing: -.08em; }
.craft-unit { display: block; letter-spacing: .35em; font-weight: 800; margin-top: 1rem; }
.craft-panel p { position: absolute; left: 4rem; bottom: 4rem; font-family: Georgia, serif; font-size: 1.8rem; line-height: 1.2; }
.stitch-line { position: absolute; width: 130%; border-top: 2px dashed rgba(222,171,91,.75); transform-origin: center; }
.stitch-line-one { top: 28%; left: -15%; transform: rotate(-15deg); }
.stitch-line-two { top: 60%; left: -15%; transform: rotate(18deg); }
.feature-line { display: flex; gap: 1rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.feature-line > span { color: var(--rust); font-family: Georgia, serif; font-size: 1.2rem; }
.feature-line strong { display: block; margin-bottom: .35rem; }
.feature-line p { color: #74777c; font-size: .9rem; line-height: 1.55; margin: 0; }

.qr-section { background: var(--paper-deep); }
.qr-panel { padding: clamp(2rem, 6vw, 6rem); background: radial-gradient(circle at 90% 10%, rgba(42,88,130,.7), transparent 34%), #071829; box-shadow: var(--shadow); }
.qr-steps { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.qr-steps div { min-width: 170px; display: flex; align-items: center; gap: .75rem; color: white; }
.qr-steps span { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; color: #e3b968; }
.qr-steps strong { font-size: .86rem; }
.sample-qr-card { background: #f8f5ee; padding: 1.2rem; max-width: 390px; margin-inline: auto; transform: rotate(1.5deg); box-shadow: 0 24px 55px rgba(0,0,0,.28); }
.sample-qr { display: grid; grid-template-columns: repeat(9, 1fr); aspect-ratio: 1; gap: 2px; padding: 1.1rem; background: #fff; }
.sample-qr span { background: transparent; }
.sample-qr span.dark { background: #071829; }
.sample-qr-caption { padding: 1rem .5rem .3rem; display: flex; flex-direction: column; text-align: center; }
.sample-qr-caption small { letter-spacing: .16em; color: #7a7a76; }
.sample-qr-caption strong { font-family: Georgia, serif; font-size: 1.2rem; }
.sample-qr-caption span { color: #8b8a85; font-size: .72rem; }

.site-footer { color: white; background: #050e18; }
.footer-copy { color: rgba(255,255,255,.62); max-width: 540px; }

.login-section { padding-top: 72px; background: radial-gradient(circle at 20% 20%, rgba(70,123,164,.2), transparent 32%), var(--paper); }
.login-card { padding: clamp(1.5rem, 5vw, 3rem); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.login-back { display: block; text-align: center; color: #6a6e73; margin-top: 1.5rem; font-size: .88rem; }
.btn-denim { --bs-btn-color: #fff; --bs-btn-bg: var(--denim); --bs-btn-border-color: var(--denim); --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #16466f; --bs-btn-hover-border-color: #16466f; }
.form-control, .form-select { border-color: #cfd2d6; border-radius: .25rem; padding: .72rem .85rem; }
.form-control:focus, .form-select:focus { border-color: #5c83a4; box-shadow: 0 0 0 .2rem rgba(23,74,120,.14); }

.admin-site { min-height: 100vh; background: #f2f3f5; }
.admin-topbar { background: #071829; min-height: 64px; border-bottom: 1px solid rgba(255,255,255,.1); }
.admin-sidebar { min-height: calc(100vh - 64px); background: #fff; border-right: 1px solid #dde0e4; }
.admin-sidebar .offcanvas-body { min-height: calc(100vh - 64px); }
.sidebar-label { color: #989ba0; font-size: .67rem; text-transform: uppercase; letter-spacing: .16em; font-weight: 800; }
.admin-sidebar .nav-link { color: #4f5359; padding: .85rem .9rem; border-radius: .35rem; font-weight: 650; }
.admin-sidebar .nav-link:hover { background: #f1f4f6; color: var(--denim); }
.admin-sidebar .nav-link.active { background: var(--denim); color: white; }
.nav-symbol { display: inline-grid; place-items: center; width: 27px; height: 27px; margin-right: .6rem; border: 1px solid currentColor; border-radius: 50%; font-family: Georgia, serif; font-size: .68rem; }
.sidebar-note { display: flex; flex-direction: column; gap: .3rem; padding: 1rem; color: #57606a; background: #eef3f6; border-left: 3px solid var(--denim-mid); font-size: .78rem; line-height: 1.5; }
.admin-content { min-height: calc(100vh - 64px); }
.admin-page-title { font-family: Georgia, serif; font-size: clamp(2.2rem, 4vw, 4rem); letter-spacing: -.04em; }
.admin-card { background: #fff; border: 1px solid #dde0e4; box-shadow: 0 10px 32px rgba(25, 37, 50, .055); }
.admin-card-header { padding: 1.35rem 1.5rem; border-bottom: 1px solid #e4e6e9; }
.stat-card { position: relative; overflow: hidden; min-height: 170px; padding: 1.4rem; background: #fff; border: 1px solid #dde0e4; box-shadow: 0 10px 28px rgba(25,37,50,.04); }
.stat-card::after { content: ""; position: absolute; width: 90px; height: 90px; right: -24px; bottom: -30px; border-radius: 50%; background: rgba(13,44,79,.08); }
.stat-card-new::after { background: rgba(39,122,162,.15); }
.stat-card-regular::after { background: rgba(93,91,80,.12); }
.stat-card-limited { color: white; background: #111923; border-color: #111923; }
.stat-card-limited::after { background: rgba(218,166,75,.22); }
.stat-label { display: block; text-transform: uppercase; letter-spacing: .13em; font-size: .68rem; font-weight: 800; color: #747a82; }
.stat-card-limited .stat-label, .stat-card-limited small { color: rgba(255,255,255,.6); }
.stat-card strong { display: block; font-family: Georgia, serif; font-size: 3.4rem; line-height: 1; margin: 1rem 0 .55rem; }
.stat-card small { color: #8c9096; }
.admin-table > :not(caption) > * > * { padding: 1rem 1.25rem; border-color: #eceef0; }
.admin-table thead th { color: #7b8086; background: #fafafa; text-transform: uppercase; letter-spacing: .1em; font-size: .66rem; }
.table-thumb { flex: 0 0 auto; width: 42px; height: 42px; display: grid; place-items: center; overflow: hidden; background: #dce6ed; color: var(--denim); font-family: Georgia, serif; font-weight: 800; }
.table-thumb-lg { width: 56px; height: 56px; }
.table-thumb img { width: 100%; height: 100%; object-fit: cover; }
.category-badge { display: inline-flex; align-items: center; padding: .42rem .68rem; border-radius: 999px; font-size: .7rem; font-weight: 800; letter-spacing: .055em; text-transform: uppercase; }
.category-new { color: #145878; background: #dff3fb; }
.category-regular { color: #545246; background: #efeee8; }
.category-limited { color: #8a5b10; background: #fff0cc; }
.workflow-list { padding: 1.5rem; display: grid; gap: 1.4rem; }
.workflow-list > div { display: flex; gap: 1rem; }
.workflow-list > div > span { flex: 0 0 auto; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: white; background: var(--denim); font-family: Georgia, serif; }
.workflow-list strong { display: block; }
.workflow-list p { color: #777c82; line-height: 1.55; margin: .25rem 0 0; font-size: .88rem; }
.form-actions { display: flex; justify-content: flex-end; gap: .75rem; padding: 1.25rem 1.5rem; background: #fafafa; border-top: 1px solid #e4e6e9; }
.text-link { color: var(--denim-mid); font-weight: 700; font-size: .88rem; }
.current-image { display: flex; align-items: center; gap: 1rem; padding: 1rem; background: #f5f6f7; border: 1px solid #e1e3e6; }
.current-image img { width: 90px; height: 90px; object-fit: cover; }
.current-image div { display: flex; flex-direction: column; }
.current-image span { color: #777c82; font-size: .86rem; }
.product-admin-image { min-height: 430px; background: #dce4e9; }
.product-admin-image > img { width: 100%;
    /* height: 520px;  */
    object-fit: cover; }
.product-placeholder { min-height: 430px; display: grid; place-content: center; text-align: center; color: var(--denim); }
.product-placeholder span { font-family: Georgia, serif; font-size: 6rem; opacity: .22; }
.detail-label { display: block; color: #8b8f94; text-transform: uppercase; letter-spacing: .12em; font-size: .67rem; font-weight: 800; margin-bottom: .5rem; }
.detail-value { display: block; font-size: 1.1rem; }
.detail-description { color: #565b61; font-size: 1.02rem; line-height: 1.8; white-space: pre-line; }
.qr-image-wrap { display: inline-flex; padding: 1rem; background: #fff; border: 1px solid #dfe2e5; box-shadow: 0 8px 30px rgba(24, 38, 52, .08); }
.qr-image-wrap img { width: 100%; max-width: 320px; height: auto; }

.public-product-section { min-height: 100vh; padding-top: 84px; color: white; background: radial-gradient(circle at 80% 10%, rgba(41,97,143,.45), transparent 32%), #061523; }
.secure-access-banner { max-width: 1060px; margin: 0 auto 1.25rem; display: flex; align-items: center; gap: .85rem; padding: .85rem 1rem; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05); }
.secure-access-banner > div { display: flex; flex-direction: column; }
.secure-access-banner small { color: rgba(255,255,255,.55); }
.secure-dot { width: 10px; height: 10px; border-radius: 50%; background: #72cf98; box-shadow: 0 0 0 6px rgba(114,207,152,.12); }
.public-product-card { max-width: 1060px; margin: auto; color: var(--ink); background: #f7f4ed; box-shadow: 0 35px 90px rgba(0,0,0,.35); }
.public-product-media { min-height: 620px; background: #d9e1e6; }
.public-product-media > img { width: 100%; height: 100%; min-height: 620px; object-fit: cover; }
.public-product-placeholder { min-height: 620px; display: grid; place-content: center; justify-items: center; gap: 1rem; color: #66727c; }
.public-product-copy { padding: clamp(2rem, 6vw, 5rem); }
.public-product-copy h1 { font-family: Georgia, serif; font-size: clamp(2.7rem, 5vw, 5rem); line-height: .95; letter-spacing: -.05em; }
.record-code { color: #84878a; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .72rem; }
.public-size-block { padding: 1rem 0; display: flex; flex-direction: column; }
.public-size-block span { color: #7d8186; text-transform: uppercase; letter-spacing: .12em; font-size: .67rem; font-weight: 800; }
.public-size-block strong { font-size: 1.2rem; margin-top: .35rem; }
.product-divider { height: 1px; background: var(--line); }
.public-description { color: #565b60; font-size: 1.05rem; line-height: 1.85; white-space: pre-line; }
.authenticity-note { display: flex; align-items: center; gap: .9rem; padding: 1rem; border: 1px solid #d5d0c6; background: #ece7dc; }
.authenticity-note div { display: flex; flex-direction: column; }
.authenticity-note span { color: #74716a; font-size: .78rem; }
.text-link-light { color: rgba(255,255,255,.7); font-weight: 700; }
.text-link-light:hover { color: white; }

@media (min-width: 992px) {
    .admin-sidebar { position: sticky; top: 64px; height: calc(100vh - 64px); }
}
@media (max-width: 991.98px) {
    .hero-art-frame { margin-top: 1rem; }
    .hero-section .min-vh-100 { min-height: auto !important; padding-top: 9rem !important; }
    .admin-sidebar { min-height: 100vh; }
    .admin-sidebar .offcanvas-body { min-height: calc(100vh - 70px); }
    .public-product-media, .public-product-media > img, .public-product-placeholder { min-height: 460px; }
}
@media (max-width: 575.98px) {
    .section-space { padding: 5rem 0; }
    .display-title { font-size: 3.55rem; }
    .hero-meta { gap: 1rem; }
    .hero-stamp { width: 104px; height: 104px; right: -.6rem; bottom: 1.5rem; }
    .craft-panel { min-height: 460px; padding: 2rem; }
    .craft-panel p { left: 2rem; bottom: 2rem; }
    .qr-steps { display: grid; }
    .admin-table > :not(caption) > * > * { padding: .8rem; }
    .form-actions { flex-direction: column-reverse; }
    .form-actions .btn { width: 100%; }
}
