/* neome.com/style.css */
:root {
    --bg: #ffffff;
    --card: #f7f8fa;
    --border: rgba(0,0,0,.12);
    --ink: #0b0e12;
    --muted: rgba(0,0,0,.55);
    --accent: #0a84ff;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui;
}

.wrap {
    max-width: 1400px;
    margin: auto;
    padding: 14px;
}

/* header */
.siteHeader {
    border-bottom: 1px solid var(--border);
    background: #fff;
}

.siteHeaderInner {
    max-width: 1400px;
    margin: auto;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand {
    font-weight: 900;
    letter-spacing: .4px;
    text-decoration: none;
    color: var(--ink);
}

.headerSpacer {
    flex: 1 1 auto;
}

.headerRight {
    display: flex;
    align-items: center;
    gap: 10px;
}

.headerBtn {
    text-decoration: none;
    background: none;
    border: 1px solid var(--border);
    color: var(--ink);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

    .headerBtn:hover {
        background: rgba(0,0,0,.04);
    }

.cartBtn {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(0,0,0,.06);
    color: var(--ink);
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: 18px;
    position: relative;
    padding: 0;
}

    .cartBtn:hover {
        background: rgba(0,0,0,.10);
    }

.cartBadge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(10,132,255,.22);
}

.cartIcon {
    font-size: 33px;
    line-height: 1;
    transform: translate(-2px, -1px);
}

/* existing nav (category/product) */
.nav {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

    .nav a, .nav button {
        text-decoration: none;
        background: none;
        border: 1px solid var(--border);
        color: var(--ink);
        padding: 6px 14px;
        border-radius: 999px;
        font-size: 14px;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

        .nav a:hover, .nav button:hover {
            background: rgba(0,0,0,.04)
        }

    .nav .title {
        font-weight: 600;
        letter-spacing: .2px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 40vw;
    }

    .nav .spacer {
        flex: 1 1 auto;
    }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(min(320px,100%),1fr));
    gap: 14px;
    margin-bottom: 12px;
}

/* card link wrapper */
.cardLink {
    display: block;
    color: inherit;
    text-decoration: none;
}

.card {
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--card);
    overflow: hidden;
    transition: transform .15s ease, box-shadow .15s ease;
    position: relative;
}

    .card:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 30px rgba(0,0,0,.25);
    }

.folder {
    aspect-ratio: 1 / 1;
    width: 100%;
    cursor: pointer;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    background: rgba(0,0,0,.02);
}

    .folder::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(1200px 500px at 30% 10%, rgba(10,132,255,.16), transparent 50%), linear-gradient(180deg, rgba(0,0,0,.0), rgba(0,0,0,.35));
        pointer-events: none;
    }

.folderThumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05) contrast(1.05);
    transform: scale(1.02);
}

.folderName {
    position: relative;
    margin: 12px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(0,0,0,.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 14px;
    color: rgba(245,247,251,.95);
}

.thumb {
    width: 100%;
    display: block;
}

.caption {
    padding: 8px 10px;
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fade {
    animation: fade .16s ease-out
}

@keyframes fade {
    from {
        opacity: .55
    }

    to {
        opacity: 1
    }
}

/* Product page */
.prodWrap {
    max-width: 980px;
    margin: 0 auto;
    padding: 10px 14px 20px 14px;
}

.prodCard {
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--card);
    overflow: hidden;
    box-shadow: 0 18px 60px rgba(0,0,0,.12);
}

/* ✅ horizontal row layout */
.prodRow {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

/* ✅ 200px image left */
.prodImg {
    width: 200px;
    max-width: 200px;
    height: auto;
    flex: 0 0 200px;
    display: block;
    background: #000;
    border-right: 1px solid rgba(0,0,0,.08);
}

/* right side */
.prodBody {
    padding: 14px 16px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1 1 auto;
}

.prodTitle {
    font-weight: 800;
    letter-spacing: .2px;
    font-size: 16px;
}

.prodBtns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.primaryBtn {
    border: 1px solid rgba(10,132,255,.35);
    background: linear-gradient(135deg, rgba(10,132,255,.95), rgba(0,212,255,.85));
    color: #fff;
    padding: 10px 14px;
    border-radius: 14px;
    cursor: pointer;
    font-weight: 900;
    font-size: 13px;
}

.secondaryBtn {
    border: 1px solid rgba(0,0,0,.14);
    background: rgba(0,0,0,.06);
    color: var(--ink);
    padding: 10px 14px;
    border-radius: 14px;
    cursor: pointer;
    font-weight: 900;
    font-size: 13px;
}

.hint {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.genBox {
    margin-top: 10px;
    border-top: 1px solid rgba(0,0,0,.10);
    padding-top: 12px;
    display: none;
}

    .genBox.show {
        display: block;
    }

.genFrame {
    width: 100%;
    border: 0;
    background: #000;
    height: min(78vh, 900px);
    border-radius: 16px;
    overflow: hidden;
}

/* cart overlay */
.cartOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.62);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    padding: 16px;
}

    .cartOverlay.show {
        display: flex;
    }

.cartPanel {
    width: 90vw;
    height: 90vh;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.14);
    box-shadow: 0 22px 90px rgba(0,0,0,.55);
    overflow: hidden;
    background: #fff;
    position: relative;
}

.cartClose {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,.14);
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
    font-weight: 900;
    z-index: 5;
}

.cartFrame {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    background: #fff;
    overflow: auto;
}

/* thumbs scale */
.thumb,
.folderThumb,
.prodImg {
    object-fit: cover;
    transform-origin: center center;
    transform: scale(1.078125); /* 1104 / 1024 */
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

.prodImgWrap {
    position: relative;
    width: 200px;
    max-width: 200px;
    flex: 0 0 200px;
}

@media (max-width:720px) {
    .nav .title {
        max-width: 52vw;
    }

    .prodRow {
        flex-direction: column;
    }

    .prodImg {
        width: 100%;
        max-width: none;
        flex: 0 0 auto;
        border-right: 0;
        border-bottom: 1px solid rgba(0,0,0,.10);
    }

    .prodImgWrap {
        width: 100%;
        max-width: none;
        flex: 0 0 auto;
    }
}

.imgSpinner {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.55);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

    .imgSpinner .spin {
        width: 54px;
        height: 54px;
        border-radius: 999px;
        border: 5px solid rgba(0,0,0,.15);
        border-top-color: var(--accent);
        animation: spin 1s linear infinite;
    }

.imgUploadBtn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,.14);
    background: rgba(255,255,255,.85);
    cursor: pointer;
    font-weight: 900;
    display: grid;
    place-items: center;
}

.resBtn {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,.18);
    background: rgba(0,0,0,.06);
    cursor: pointer;
    font-weight: 800;
    font-size: 13px;
    color: var(--ink);
}

    .resBtn:hover {
        background: rgba(0,0,0,.10);
    }

    .resBtn.active {
        background: linear-gradient(135deg, rgba(10,132,255,.95), rgba(0,212,255,.85));
        color: #fff;
        border-color: rgba(10,132,255,.55);
        box-shadow: 0 10px 24px rgba(10,132,255,.22);
    }

/* footer */
.siteFooter {
    border-top: 1px solid var(--border);
}

.siteFooterInner {
    max-width: 1400px;
    margin: auto;
    padding: 16px 14px;
    font-size: 12px;
}

/* dashboard */
.dashWrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 18px 14px 40px 14px;
}

.dashTitle {
    font-weight: 950;
    font-size: 22px;
    margin: 6px 0 14px 0;
    letter-spacing: .2px;
}

.circleGrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    justify-content: center;
    align-items: center;
}

@media (min-width: 860px) {
    .circleGrid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.circleBtn {
    aspect-ratio: 1 / 1;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(0,0,0,.03);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    text-align: center;
    padding: 14px;
    position: relative;
    overflow: hidden;
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

    .circleBtn:hover {
        transform: translateY(-2px);
        box-shadow: 0 18px 60px rgba(0,0,0,.10);
        background: rgba(0,0,0,.05);
    }

    /* subtle glow */
    .circleBtn::before {
        content: "";
        position: absolute;
        inset: -30%;
        background: radial-gradient(300px 200px at 30% 20%, rgba(10,132,255,.18), transparent 60%), radial-gradient(260px 220px at 70% 80%, rgba(0,212,255,.12), transparent 60%);
        pointer-events: none;
        transform: rotate(8deg);
    }

.circleIcon {
    width: 64px;
    height: 64px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,.10);
    background: #fff;
    display: grid;
    place-items: center;
    font-weight: 950;
    font-size: 18px;
    position: relative;
    z-index: 1;
}

.circleLabel {
    font-weight: 950;
    font-size: 13px;
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

.circleHint {
    font-size: 12px;
    opacity: .65;
    position: relative;
    z-index: 1;
}

.dashPanel {
    margin-top: 18px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(0,0,0,.02);
    padding: 14px;
    min-height: 110px;
}

.smallNote {
    font-size: 12px;
    opacity: .65;
    margin-top: 10px;
}
