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

:root {
    --bg: #faf7f4;
    --surface: #ffffff;
    --accent: #c9a49a;
    --accent-dark: #a07060;
    --text: #2a1f1a;
    --text-muted: #9a8a85;
    --border: #e8ddd8;
    --hs-size: 10px;
    --radius: 3px;
}

@media (min-width: 760px) {
    :root { --hs-size: 18px; }
}

body {
    background: #fff;
    color: var(--text);
    font-family: Georgia, 'Times New Roman', serif;
    min-height: 100svh;
    -webkit-text-size-adjust: 100%;
}

/* ══════════════════════════════════════
   PUBLIC PAGE
   ══════════════════════════════════════ */

.page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 100svh;
}

/* ── Header ── */
.site-header {
    width: 100%;
    text-align: center;
    padding: 2rem 1rem 1rem;
    flex-shrink: 0;
}

.site-title {
    font-size: 2rem;
    font-weight: normal;
    letter-spacing: 0.45em;
    text-indent: 0.45em;
    text-transform: uppercase;
    color: #1a1a1a;
    font-family: Georgia, serif;
    text-decoration: none;
    display: inline-block;
}

/* ── Footer ── */
.site-footer {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.7rem 1rem 0.9rem;
    flex-shrink: 0;
}

.footer-by {
    font-size: 0.58rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(0,0,0,0.38);
    font-family: system-ui, sans-serif;
}

.footer-logo {
    height: 28px;
    width: auto;
    opacity: 1;
}

/* ── Admin look list ── */
.admin-looks-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 1.5rem 1.25rem 3rem;
}

.admin-looks-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.admin-looks-title {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.look-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.look-admin-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
}

.look-admin-thumb {
    aspect-ratio: 3/4;
    background: #f0efed;
    overflow: hidden;
}

.look-admin-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

.look-admin-thumb--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(0,0,0,0.15);
    font-size: 2rem;
}

.look-admin-info {
    padding: 0.75rem 0.85rem 0.5rem;
    flex: 1;
}

.look-admin-titles { margin-bottom: 0.25rem; }

.look-admin-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1a1a1a;
    display: block;
}

.look-admin-title-en {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
}

.look-admin-meta {
    font-size: 0.65rem;
    color: rgba(0,0,0,0.35);
    font-family: monospace;
}

.look-admin-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    padding: 0.65rem 0.85rem;
    border-top: 1px solid var(--border);
}

.look-admin-actions .btn { flex: 1; justify-content: center; }

/* Admin look editor extras */
.admin-back {
    font-size: 0.8rem;
    font-family: system-ui, sans-serif;
    font-weight: 400;
    color: var(--text-muted);
    text-decoration: none;
    margin-right: 0.15rem;
    transition: color 0.12s;
}
.admin-back:hover { color: var(--text); }
.admin-back::after {
    content: '/';
    margin-left: 0.5rem;
    color: var(--border);
    pointer-events: none;
}

.look-settings-panel {
    margin-bottom: 1rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.look-settings-summary {
    padding: 0.7rem 1rem;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    cursor: pointer;
    user-select: none;
    list-style: none;
}
.look-settings-summary::-webkit-details-marker { display: none; }
.look-settings-summary::before { content: '▸ '; }
details[open] .look-settings-summary::before { content: '▾ '; }

.look-settings-form { padding: 0 1rem 1rem; }

.form-hint {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}
.form-hint code {
    background: #f0f0f0;
    padding: 0.1em 0.3em;
    border-radius: 3px;
    font-size: 0.9em;
}

/* ── Back button (look page — over image) ── */
.back-btn {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 15;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 50%;
    background: rgba(0,0,0,0.32);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.18s, color 0.18s;
    -webkit-tap-highlight-color: transparent;
}
.back-btn:hover, .back-btn:active {
    background: rgba(0,0,0,0.52);
    color: #fff;
}

/* ── Look subtitle (look page header) ── */
.look-subtitle {
    display: block;
    font-size: 0.6rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(0,0,0,0.38);
    font-family: system-ui, sans-serif;
    margin-top: 0.2rem;
}

/* ── Looks grid (landing) ── */

.looks-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    padding: 0 0.5rem;
    width: 100%;
    margin: auto;
}

.look-card {
    position: relative;
    aspect-ratio: 2/3;
    border-radius: 12px;
    overflow: hidden;
    display: block;
    text-decoration: none;
    background: #f0efed;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.look-card:not(.look-card--empty):hover {
    transform: scale(1.025);
    box-shadow: 0 8px 32px rgba(0,0,0,0.14);
}

.look-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

.look-card-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem 0.75rem 0.65rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.45));
    color: rgba(255,255,255,0.92);
    font-size: 0.6rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-family: system-ui, sans-serif;
}

.look-card--empty {
    cursor: default;
    display: flex;
    align-items: center;
    justify-content: center;
}

.look-card-num {
    font-size: 1.4rem;
    font-weight: 200;
    color: rgba(0,0,0,0.15);
    font-family: Georgia, serif;
    letter-spacing: 0.06em;
}

/* Single look: center one card instead of leaving it as a half-grid orphan */
.looks-grid:has(> .look-card:only-child) {
    grid-template-columns: 1fr;
    max-width: 220px;
}

@media (min-width: 540px) {
    .looks-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.65rem;
        padding: 0 0.75rem;
        max-width: 680px;
    }

    .looks-grid:has(> .look-card:only-child) {
        grid-template-columns: 1fr;
        max-width: 280px;
    }
}

@media (min-width: 760px) {
    .looks-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1100px;
        gap: 1rem;
        padding: 0 2rem;
    }

    .look-card {
        animation: look-land 0.7s cubic-bezier(0.22, 1, 0.36, 1) backwards;
    }

    .look-card:nth-child(1) { animation-delay: calc(var(--card-stagger-base, 0ms) + 0ms); }
    .look-card:nth-child(2) { animation-delay: calc(var(--card-stagger-base, 0ms) + 90ms); }
    .look-card:nth-child(3) { animation-delay: calc(var(--card-stagger-base, 0ms) + 180ms); }
    .look-card:nth-child(4) { animation-delay: calc(var(--card-stagger-base, 0ms) + 270ms); }
    .look-card:nth-child(5) { animation-delay: calc(var(--card-stagger-base, 0ms) + 360ms); }
    .look-card:nth-child(6) { animation-delay: calc(var(--card-stagger-base, 0ms) + 450ms); }
    .look-card:nth-child(7) { animation-delay: calc(var(--card-stagger-base, 0ms) + 540ms); }
    .look-card:nth-child(8) { animation-delay: calc(var(--card-stagger-base, 0ms) + 630ms); }

    @keyframes look-land {
        from {
            opacity: 0;
            transform: translateY(36px) scale(0.95);
        }
        to {
            opacity: 1;
            transform: none;
        }
    }

    .look-card:not(.look-card--empty):hover {
        transform: scale(1.035) translateY(-3px);
        box-shadow: 0 16px 48px rgba(0,0,0,0.18);
    }
}

@media (min-width: 1100px) {
    .looks-grid {
        grid-template-columns: repeat(4, 1fr);
        max-width: 1400px;
        gap: 1.25rem;
    }
}

/* Portrait wrapper */
.portrait-wrapper {
    position: relative;
    line-height: 0;
    flex-shrink: 0;
    margin: 0 10px;
    border-radius: 14px;
    box-shadow:
        0 0 0 1px rgba(0,0,0,0.06),
        0 4px 20px rgba(0,0,0,0.10),
        0 14px 48px rgba(0,0,0,0.10);
}

.portrait-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: calc(100svh - 7rem);
    border-radius: 14px;
    object-fit: contain;
    object-position: center;
    user-select: none;
    pointer-events: none;
    -webkit-user-drag: none;
}

@media (min-width: 760px) {
    .site-header { padding: 1rem 1rem 0.75rem; }

    .portrait-wrapper {
        margin: 0;
        border-radius: 12px;
    }
    .portrait-img {
        width: auto;
        height: calc(100svh - 10rem);
        max-width: 100vw;
        border-radius: 12px;
    }
}

/* ── Hotspot markers ── */

.hotspot {
    position: absolute;
    transform: translate(-50%, -50%);
    width: var(--hs-size);
    height: var(--hs-size);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

/* Touch target: 44×44px invisible zone */
.hotspot::before {
    content: '';
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
}

.hotspot .pulse {
    display: block;
    width: var(--hs-size);
    height: var(--hs-size);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    border: 1.5px solid rgba(255, 255, 255, 0.7);
    box-shadow: none;
    animation: hs-pulse 3.2s ease-in-out infinite;
}

.hotspot:focus-visible .pulse {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

@media (min-width: 760px) {
    .hotspot .pulse {
        background: rgba(201, 164, 154, 0.92);
        border: 2px solid rgba(255, 255, 255, 0.92);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
        animation: hs-pulse 2.8s ease-in-out infinite;
    }
}

@keyframes hs-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.3);
    }
    50% {
        transform: scale(1.15);
        box-shadow: 0 0 0 5px rgba(255, 255, 255, 0);
    }
}

/* ── Buttons pe imagine ── */

.hs-toggle {
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 15;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,0.32);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.18s, color 0.18s;
    -webkit-tap-highlight-color: transparent;
}

.hs-toggle:hover, .hs-toggle:active {
    background: rgba(0,0,0,0.5);
    color: #fff;
}

/* Când hotspot-urile sunt ascunse, butonul atrage atenția */
.hs-toggle.active::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.7);
    animation: hs-attention 2.4s cubic-bezier(0.4, 0, 0.6, 1) 3.5s infinite;
    pointer-events: none;
}

@keyframes hs-attention {
    0%   { transform: scale(1);   opacity: 0.8; }
    60%  { transform: scale(1.9); opacity: 0;   }
    100% { transform: scale(1.9); opacity: 0;   }
}

.hs-toggle svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* hotspots vizibile → ochi tăiat (click = ascunde) */
.hs-toggle .icon-eye { display: none; }
.hs-toggle .icon-eye-off { display: block; }
/* hotspots ascunse (active) → ochi normal (click = arată) */
.hs-toggle.active .icon-eye { display: block; }
.hs-toggle.active .icon-eye-off { display: none; }
.hs-toggle.active { color: rgba(255,255,255,0.35); }

.lang-toggle {
    position: absolute;
    bottom: 12px;
    left: 12px;
    z-index: 15;
    width: 36px;
    height: 28px;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 5px;
    background: rgba(0,0,0,0.32);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: rgba(255,255,255,0.75);
    cursor: pointer;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    font-family: system-ui, sans-serif;
    transition: background 0.18s, color 0.18s;
    -webkit-tap-highlight-color: transparent;
}

.lang-toggle:hover, .lang-toggle:active {
    background: rgba(0,0,0,0.5);
    color: #fff;
}

.portrait-wrapper.hs-hidden .hotspot {
    opacity: 0;
    pointer-events: none;
}

.hotspot {
    transition: opacity 0.2s;
}

/* ── Info overlay ── */

.info-overlay {
    display: none;
    position: fixed;
    inset: 0;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.22);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 100;
    padding: 1.5rem;
    cursor: pointer;
    animation: overlay-in 0.25s ease;
}

.info-overlay.open { display: flex; }

@keyframes overlay-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ── Card ── */

.info-card {
    background: #fff;
    border-radius: 20px;
    padding: 0;
    width: min(400px, 92vw);
    max-height: 86svh;
    overflow-y: auto;
    overflow-x: hidden;
    cursor: default;
    -webkit-overflow-scrolling: touch;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow:
        0 4px 16px rgba(0,0,0,0.06),
        0 20px 60px rgba(0,0,0,0.14);
    animation: card-up 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes card-up {
    from { transform: translateY(20px) scale(0.96); opacity: 0; }
    to   { transform: translateY(0) scale(1); opacity: 1; }
}

/* ── Tabs — pill style ── */

.prod-tabs {
    display: flex;
    gap: 0.4rem;
    padding: 1.1rem 1.1rem 0;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding-bottom: 0.85rem;
}

.prod-tab {
    flex-shrink: 0;
    padding: 0.3rem 0.85rem;
    border: 1px solid rgba(0,0,0,0.14);
    border-radius: 100px;
    background: transparent;
    font-size: 0.68rem;
    font-family: system-ui, sans-serif;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    cursor: pointer;
    transition: background 0.18s, color 0.18s, border-color 0.18s;
    -webkit-tap-highlight-color: transparent;
    white-space: nowrap;
}

.prod-tab.active {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
    font-weight: 600;
}

.prod-panel { display: none; }
.prod-panel.active { display: block; }

/* ── Brand section ── */

.product-brand-row {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 1.1rem 1.25rem 0.75rem;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.brand-logo {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 4px;
}

.product-brand {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-muted);
    font-family: system-ui, sans-serif;
}

/* ── Product name ── */

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.35;
    font-family: Georgia, serif;
    margin: 0;
    padding: 0.9rem 1.25rem 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

/* ── Attribute list ── */

.attr-list {
    display: flex;
    flex-direction: column;
    padding-bottom: 0.65rem;
}

.attr-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.65rem 1.25rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.attr-row:last-child { border-bottom: none; }

.attr-key {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--text-muted);
    font-family: system-ui, sans-serif;
    flex-shrink: 0;
    margin-right: 1rem;
}

.attr-val {
    font-size: 0.82rem;
    color: #1a1a1a;
    font-family: system-ui, sans-serif;
    font-weight: 500;
    text-align: right;
    overflow-wrap: break-word;
    min-width: 0;
}

/* ── Buy section ── */

.buy-section {
    padding: 1rem 1.25rem 1.25rem;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.buy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.85rem 1.5rem;
    background: #1a1a1a;
    color: #fff;
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-family: system-ui, sans-serif;
    border-radius: 100px;
    transition: opacity 0.18s;
    -webkit-tap-highlight-color: transparent;
}

.buy-btn::after {
    content: '→';
    font-size: 0.9rem;
    letter-spacing: 0;
    font-weight: 400;
}

.buy-btn:hover, .buy-btn:active { opacity: 0.72; }

.no-products {
    padding: 1.5rem 1.25rem;
    font-size: 0.88rem;
    color: var(--text-muted);
    font-style: italic;
}

/* close-btn — desktop only */
.close-btn { display: none; }

@media (min-width: 760px) {
    .close-btn {
        position: absolute;
        top: 1rem;
        right: 1rem;
        width: 28px;
        height: 28px;
        border: none;
        background: rgba(0,0,0,0.06);
        border-radius: 50%;
        cursor: pointer;
        font-size: 1rem;
        color: var(--text-muted);
        display: flex;
        align-items: center;
        justify-content: center;
        -webkit-tap-highlight-color: transparent;
        transition: background 0.15s;
    }
    .close-btn:hover { background: rgba(0,0,0,0.12); }
}

/* ── Intro animation — 4.5s, optimizat 120Hz ──
   Animăm exclusiv transform + opacity (GPU composited).
   Bezier-uri fără schimbări bruște de viteză.
   Timeline:
     0.20s : LOOKS fade-in + scale-up  (1.0s, ease-out-expo)
     0.95s : "crafted by" fade-in      (0.8s, ease-out-expo)
     2.70s : LOOKS fly-up + fade-out   (1.0s, ease-in-expo)
     2.85s : "crafted by" fly-down     (0.95s, ease-in-expo, stagger 0.15s)
     3.75s : overlay fade-out          (0.75s, ease-in-out)
   Total  : 4.5s
*/

.intro {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: #fff;
    pointer-events: none;
    will-change: opacity;
    animation: intro-fade-out 0.75s cubic-bezier(0.4, 0, 0.2, 1) 3.20s forwards;
}

.intro-looks {
    font-size: 2rem;
    font-weight: normal;
    letter-spacing: 0.45em;
    text-indent: 0.45em;
    text-transform: uppercase;
    color: #1a1a1a;
    font-family: Georgia, serif;
    will-change: opacity, transform;
    animation:
        intro-appear-looks 1.0s cubic-bezier(0.16, 1, 0.3, 1) 0.20s both,
        intro-fly-up       1.0s cubic-bezier(0.7,  0, 0.84, 0) 2.15s forwards;
}

.intro-by {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    will-change: opacity, transform;
    animation:
        intro-appear     0.80s cubic-bezier(0.16, 1, 0.3, 1) 0.95s both,
        intro-fly-down   0.95s cubic-bezier(0.7,  0, 0.84, 0) 2.30s forwards;
}

@keyframes intro-appear-looks {
    from { opacity: 0; transform: scale(0.94); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes intro-appear {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Textul dispare în timp ce zboară — opacity 0 înainte ca overlay-ul să se estompeze */
@keyframes intro-fly-up {
    from { transform: translateY(0)     scale(1);    opacity: 1; }
    to   { transform: translateY(-30vh) scale(0.88); opacity: 0; }
}

@keyframes intro-fly-down {
    from { transform: translateY(0)    scale(1);    opacity: 1; }
    to   { transform: translateY(30vh) scale(0.88); opacity: 0; }
}

@keyframes intro-fade-out {
    to { opacity: 0; }
}

/* ══════════════════════════════════════
   ERROR PAGE
   ══════════════════════════════════════ */

.error-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 100svh;
}

.error-inner {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    width: 100%;
}

.error-bg-code {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: Georgia, serif;
    font-size: clamp(8rem, 34vw, 22rem);
    font-weight: normal;
    color: rgba(201, 164, 154, 0.13);
    line-height: 1;
    letter-spacing: 0.05em;
    margin: 0;
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
    z-index: 0;
}

.error-emoji {
    font-size: 2.8rem;
    line-height: 1;
    margin-bottom: 1.4rem;
    position: relative;
    z-index: 1;
}

.error-title {
    font-family: Georgia, serif;
    font-size: clamp(1.5rem, 4vw, 2.6rem);
    font-weight: normal;
    color: #1a1a1a;
    letter-spacing: 0.01em;
    margin: 0 0 0.85rem;
    position: relative;
    z-index: 1;
}

.error-sub {
    font-family: system-ui, sans-serif;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    margin: 0 0 2.75rem;
    position: relative;
    z-index: 1;
}

.error-home {
    position: relative;
    z-index: 1;
    font-family: system-ui, sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.6rem 1.5rem;
    border: 1px solid var(--border);
    border-radius: 100px;
    transition: color 0.15s, border-color 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.error-home:hover {
    color: #1a1a1a;
    border-color: rgba(42, 31, 26, 0.3);
}

/* ══════════════════════════════════════
   ADMIN PAGE
   ══════════════════════════════════════ */

body:has(.admin-page) { background: #f7f7f7; }

.admin-page {
    min-height: 100vh;
    font-family: system-ui, -apple-system, sans-serif;
    color: var(--text);
}

/* Header */
.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.25rem;
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
}

.admin-header-left { display: flex; align-items: center; gap: 0.65rem; }

.admin-wordmark {
    font-family: Georgia, serif;
    font-size: 1rem;
    font-weight: normal;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #1a1a1a;
}

.admin-badge {
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    background: var(--border);
    padding: 0.2rem 0.5rem;
    border-radius: 100px;
}

.admin-link {
    display: inline-flex;
    align-items: center;
    font-size: 0.72rem;
    font-family: system-ui, sans-serif;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    padding: 0.38rem 1rem;
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(42,31,26,0.14);
    border-radius: 100px;
    white-space: nowrap;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    transition: background 0.15s, border-color 0.15s;
    -webkit-tap-highlight-color: transparent;
}
.admin-link:hover {
    background: rgba(255,255,255,0.88);
    border-color: rgba(42,31,26,0.22);
}

/* Layout */
.admin-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
    height: calc(100vh - 53px);
    overflow: hidden;
}

/* Canvas col */
.admin-canvas-col {
    padding: 1rem 1.25rem 0.5rem;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.canvas-hint {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
    letter-spacing: 0.02em;
}

.admin-portrait-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    cursor: crosshair;
    touch-action: manipulation;
    max-height: 32vh;
}

.admin-portrait-wrapper img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    pointer-events: none;
    user-select: none;
}

.admin-portrait-wrapper .hotspot { pointer-events: none; }
.hotspot--preview { opacity: 0.5; }

/* Panel col */
.admin-panel-col {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.25rem 2rem;
}

/* Form cards */
.admin-form-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.1rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.form-card-title {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.85rem;
}

.form-row-inline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    margin-bottom: 0.65rem;
}

.form-field { display: flex; flex-direction: column; gap: 0.25rem; margin-bottom: 0.65rem; }
.form-field:last-child { margin-bottom: 0; }

.form-field label {
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fafafa;
    color: var(--text);
    font-family: system-ui, sans-serif;
    font-size: 0.85rem;
    transition: border-color 0.15s, background 0.15s;
    -webkit-appearance: none;
    box-sizing: border-box;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: #1a1a1a;
    background: #fff;
}

.form-field textarea {
    resize: vertical;
    min-height: 80px;
    font-size: 0.78rem;
    line-height: 1.55;
}

.form-coords-display {
    font-size: 0.7rem;
    color: var(--accent-dark);
    margin-bottom: 0.65rem;
    min-height: 1em;
}

.form-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.85rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.1rem;
    min-height: 38px;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-family: system-ui, sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    letter-spacing: 0.03em;
    transition: opacity 0.15s;
    -webkit-tap-highlight-color: transparent;
}
.btn:hover, .btn:active { opacity: 0.75; }

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
}
.btn-ghost:hover, .btn-ghost:active {
    background: var(--bg);
    color: var(--text);
    opacity: 1;
}

/* Icon buttons */
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
}
.btn-icon:hover { background: var(--bg); color: var(--text); }
.btn-icon--danger:hover { background: #fef2f2; color: #b84040; border-color: #f8c4c4; }

/* Empty state */
.empty-state {
    padding: 2rem 1rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    background: #fff;
    border: 1px dashed var(--border);
    border-radius: 10px;
}

/* Hotspot cards */
.hs-cards { display: flex; flex-direction: column; gap: 0.65rem; }

.hs-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.hs-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0.85rem;
    gap: 0.5rem;
}

.hs-card-zone { flex: 1; min-width: 0; }

.hs-zone-name {
    display: inline;
    font-size: 0.88rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-right: 0.35rem;
}

.hs-zone-en {
    display: inline;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-right: 0.5rem;
}

.hs-zone-coords {
    display: inline;
    font-size: 0.65rem;
    color: rgba(0,0,0,0.3);
    font-family: monospace;
}

.hs-card-actions { display: flex; gap: 0.35rem; flex-shrink: 0; }

/* Product list */
.hs-product-list { border-top: 1px solid var(--border); }

.hs-product-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 0.85rem;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}
.hs-product-item:last-child { border-bottom: none; }

.hs-product-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
}

.hs-product-favicon {
    width: 18px;
    height: 18px;
    border-radius: 3px;
    object-fit: contain;
    flex-shrink: 0;
}

.hs-product-text { min-width: 0; }

.hs-product-brand {
    display: block;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hs-product-name {
    display: block;
    font-size: 0.78rem;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hs-product-actions { display: flex; gap: 0.3rem; flex-shrink: 0; }

/* Add product button */
.add-product-btn {
    display: block;
    width: 100%;
    padding: 0.6rem 0.85rem;
    border: none;
    border-top: 1px solid var(--border);
    background: #fafafa;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-family: system-ui, sans-serif;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s, color 0.15s;
    -webkit-tap-highlight-color: transparent;
}
.add-product-btn:hover { background: var(--bg); color: #1a1a1a; }

/* Desktop */
@media (min-width: 760px) {
    .admin-header { padding: 1rem 2rem; }

    .admin-layout {
        flex-direction: row;
        height: calc(100dvh - 61px);
        overflow: hidden;
    }

    /* Canvas — scrollable, imagine la proporțiile naturale */
    .admin-canvas-col {
        width: clamp(380px, 42%, 560px);
        flex-shrink: 0;
        height: 100%;
        overflow-y: auto;
        border-bottom: none;
        border-right: 1px solid var(--border);
        background: #fff;
        padding: 1.5rem;
    }

    .admin-portrait-wrapper {
        max-height: none;
        border-radius: 10px;
    }

    /* Imaginea la proporții naturale — hotspot-urile se aliniază corect */
    .admin-portrait-wrapper img {
        width: 100%;
        height: auto;
        object-fit: unset;
    }

    /* Panel — fill remaining space, no cap */
    .admin-panel-col {
        flex: 1;
        min-width: 0;
        height: 100%;
        overflow-y: auto;
        padding: 1.5rem 2rem 3rem;
        max-width: none;
    }

    .admin-form-card { margin-bottom: 1.25rem; }

    .form-field textarea { min-height: 96px; }

    .hs-cards { gap: 0.75rem; }

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

/* ── Attribute key-value editor (admin only) ────────────────────────────── */
.attr-editor { display: flex; flex-direction: column; gap: 0.3rem; margin-bottom: 0.35rem; }
.attr-editor .attr-row { display: flex; gap: 0.3rem; align-items: center; padding: 0; border-bottom: none; }
.attr-editor .attr-row .attr-key { flex: 0 0 38%; min-width: 0; }
.attr-editor .attr-row .attr-val { flex: 1; min-width: 0; }
.attr-editor .attr-row input {
    width: 100%;
    padding: 0.45rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fafafa;
    color: var(--text);
    font-family: system-ui, sans-serif;
    font-size: 0.82rem;
    transition: border-color 0.15s, background 0.15s;
    box-sizing: border-box;
}
.attr-editor .attr-row input:focus { outline: none; border-color: #1a1a1a; background: #fff; }
.attr-remove {
    flex-shrink: 0;
    width: 1.55rem;
    height: 1.55rem;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: transparent;
    color: #aaa;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.attr-remove:hover { background: #fef2f2; color: #b84040; border-color: #f8c4c4; }
.btn-add-attr {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.6rem;
    border: 1px dashed var(--border);
    border-radius: 6px;
    background: transparent;
    color: #aaa;
    font-size: 0.78rem;
    cursor: pointer;
    margin-top: 0.15rem;
}
.btn-add-attr:hover { border-color: #1a1a1a; color: #1a1a1a; }

.js-image-preview { align-self: flex-start; }
.form-hint--error { color: #b84040; }
