:root {
    --bg:#050609;
    --surface:#0b0f15;
    --surface2:#0f141c;
    --line:rgba(255,255,255,.08);
    --line2:rgba(126,160,201,.22);
    --text:#eee9e3;
    --muted:#898d93;
    --gold:#b99378;
    --blue:#4776ad;
    --blue2:#263f60;
    --blueGlass:rgba(34,61,92,.58);
    --blackGlass:rgba(4,6,9,.70);
    --danger:#b16b72;
    --r:12px;
    --serif:Georgia,'Times New Roman',serif;
    --sans:Inter,ui-sans-serif,system-ui,-apple-system,'Segoe UI',sans-serif
}
* {
    box-sizing:border-box
}
html {
    scroll-behavior:smooth
}
body {
    margin:0;
    background:radial-gradient(circle at 50% -20%,#151d2a 0,#050609 40%,#020304 100%);
    color:var(--text);
    font-family:var(--sans);
    -webkit-font-smoothing:antialiased;
    overflow-x:hidden
}
body.modal-open {
    overflow:hidden
}
.eyebrow {
    display:block;
    color:#6f747b;
    font-size:9px;
    letter-spacing:.14em;
    text-transform:uppercase
}
a {
    text-decoration:none;
    color:inherit
}
button,input,select,textarea {
    font:inherit;
    color:inherit
}
button {
    cursor:pointer
}
img {
    display:block;
    max-width:100%
}
.wrap {
    width:min(1180px,calc(100% - 64px));
    margin:0 auto
}
.site-header {
    position:sticky;
    top:0;
    z-index:100;
    background:rgba(4,6,10,.82);
    backdrop-filter:blur(14px);
    border-bottom:1px solid rgba(255,255,255,.04)
}
.nav-wrap {
    width:min(1180px,calc(100% - 64px));
    min-height:68px;
    margin:auto;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px
}
.nav-left,.nav-right,.nav {
    display:flex;
    align-items:center
}
.nav-left {
    gap:30px;
    min-width:0
}
.brand {
    font:700 clamp(19px,2vw,24px)/1 var(--serif);
    white-space:nowrap
}
.brand-blue {
    color:#4e77ae
}
.nav {
    gap:24px;
    min-width:0
}
.nav a {
    font-size:11px;
    letter-spacing:.09em;
    color:#777d87;
    white-space:nowrap
}
.nav a:hover {
    color:#d9d5cf
}
.nav-right {
    gap:8px;
    flex:0 0 auto
}
.icon-link,.panel-link {
    height:35px;
    border:1px solid rgba(100,137,178,.26);
    background:rgba(26,43,63,.46);
    border-radius:18px;
    color:#7890ad;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    transition:.2s
}
.account-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.account-icon img {
    display: block;
    width: 30px;
    height: 30px;
}

.icon-link {
    width:37px
}
.orders-link {
    height:35px;
    padding:0 12px;
    border:1px solid rgba(100,137,178,.26);
    background:rgba(26,43,63,.46);
    border-radius:18px;
    color:#ffffff;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-size:10px;
    letter-spacing:.09em;
    white-space:nowrap;
    transition:.2s;
}
.orders-link:hover {
    background:rgba(38,67,103,.7);
    border-color:rgba(106,148,195,.52);
    color:#ffffff;
}
.panel-link {
    padding:0 15px;
    font-size:10px;
    letter-spacing:.09em
}
.icon-link:hover,.panel-link:hover {
    background:rgba(38,67,103,.7);
    border-color:rgba(106,148,195,.52);
    color:#c0d0e2
}
.hero-banner {
    width:min(1180px,calc(100% - 64px));
    height:clamp(270px,28vw,340px);
    margin:0 auto;
    background-position:center;
    background-size:contain;
    background-repeat:no-repeat;
    background-color:#05080d;
    border-radius:0 0 17px 17px;
    border:1px solid rgba(255,255,255,.04);
    position:relative;
    overflow:hidden;
    touch-action:pan-y;
    -webkit-user-select:none;
    user-select:none;
    -webkit-tap-highlight-color:transparent
}
.hero-inner {
    height:100%;
    padding:0 clamp(30px,6vw,62px);
    display:flex;
    align-items:center
}
.hero-copy {
    max-width:560px
}
.hero-badge,.discount {
    display:inline-flex;
    align-items:center;
    padding:4px 9px;
    border-radius:15px;
    border:1px solid rgba(93,129,167,.38);
    background:rgba(18,29,41,.73);
    color:#839ab7;
    font-size:9px;
    letter-spacing:.08em
}
.hero-copy h1 {
    font:500 clamp(34px,4.6vw,54px)/1.02 var(--serif);
    color:#c5a18a;
    margin:15px 0 9px
}
.hero-copy p {
    margin:0 0 22px;
    color:#92979e;
    font-size:14px
}
.hero-cta,.panel-action {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:38px;
    padding:0 21px;
    border:1px solid rgba(94,139,185,.4);
    border-radius:21px;
    background:var(--blueGlass);
    color:#e5ebf2;
    font-size:10px;
    letter-spacing:.1em;
    text-transform:uppercase;
    transition:.2s
}
.hero-cta:hover,.panel-action:hover {
    background:rgba(27,58,92,.78);
    border-color:rgba(105,158,209,.54)
}
.hero-cta:disabled {
    opacity:.35;
    pointer-events:none
}
.hero-dots {
    position:absolute;
    bottom:14px;
    right:18px;
    display:flex;
    gap:6px;
    z-index:3
}
.dot {
    width:7px;
    height:7px;
    padding:0;
    border-radius:50%;
    border:1px solid rgba(255,255,255,.34);
    background:transparent
}
.dot.active {
    background:#86a0bb
}
@media (max-width:820px) {
    .hero-banner {
        touch-action:pan-y;
    }

    .hero-dots {
        right:50%;
        transform:translateX(50%);
        bottom:11px;
        padding:5px 8px;
        border-radius:20px;
        background:rgba(3,6,10,.32);
        backdrop-filter:blur(5px);
    }

    .dot {
        width:7px;
        height:7px;
    }
}
.brand-marquee {
    width:min(1180px,calc(100% - 64px));
    margin:0 auto;
    overflow:hidden;
    border-top:1px solid rgba(255,255,255,.02);
    border-bottom:1px solid rgba(255,255,255,.02);
    mask-image:linear-gradient(to right,transparent,#000 5%,#000 95%,transparent)
}
.brand-track {
    display:flex;
    width:max-content;
    animation:marquee 38s linear infinite;
    will-change:transform
}
.brand-marquee:hover .brand-track {
    animation-play-state:paused
}
.brand-group {
    display:flex;
    align-items:center
}
.brand-item {
    display:flex;
    align-items:center;
    justify-content:center;
    min-width:max-content;
    padding:21px 34px;
    color:#88786f;
    font-size:11px;
    letter-spacing:.16em;
    white-space:nowrap;
    transition:.2s
}
.brand-item:hover {
    color:#d6c3b7;
    background:rgba(27,39,54,.22)
}
@keyframes marquee {
    from {
        transform:translateX(0)
    }
    to {
        transform:translateX(-50%)
    }
}
.bestsellers { padding:28px 0 20px; }
.bestsellers .section-head { margin-bottom:18px; }
.bestsellers-rail { display:grid; grid-auto-flow:column; grid-auto-columns:calc((100% - 72px) / 5); gap:18px; overflow-x:auto; overflow-y:hidden; scroll-snap-type:x mandatory; scrollbar-width:none; padding:2px 2px 8px; }
.bestsellers-rail::-webkit-scrollbar { display:none; }
.bestsellers-rail .product-card { min-width:0; scroll-snap-align:start; }
.rail-next { width:42px; height:42px; flex:0 0 42px; border:1px solid rgba(255,255,255,.1); border-radius:50%; background:rgba(20,24,30,.8); color:#d7dadd; font:300 27px/1 var(--sans); cursor:pointer; transition:.2s; }
.rail-next:hover { background:rgba(40,45,53,.95); transform:translateX(2px); }
.featured { padding:28px 0 70px }
.section-head,.panel-head {
    display:flex;
    justify-content:space-between;
    align-items:flex-end;
    gap:18px;
    margin-bottom:18px
}
.section-head h1,.section-head h2,.panel-head h1 {
    margin:0;
    color:#d6beac;
    font:500 clamp(28px,3vw,36px)/1.06 var(--serif)
}
.section-head>a {
    font-size:10px;
    color:#6e7379;
    letter-spacing:.1em
}
.product-grid {
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(210px,1fr));
    gap:32px 18px
}
.product-card {
    text-align:center;
    min-width:0
}
.product-media {
    display:block;
    position:relative;
    aspect-ratio:1;
    border-radius:12px;
    overflow:hidden;
    border:1px solid rgba(255,255,255,.06);
    background:#0d1015
}
.product-media img {
    width:100%;
    height:100%;
    object-fit:cover;
    filter:saturate(.77) brightness(.84);
    transition:.35s
}
.product-card:hover .product-media img {
    transform:scale(1.03);
    filter:saturate(.9) brightness(.95)
}
.discount {
    position:absolute;
    top:8px;
    left:8px
}
.product-meta {
    margin-top:9px;
    color:#796c64;
    font-size:9px;
    letter-spacing:.08em
}
.product-card h3 {
    font:500 17px/1.2 var(--serif);
    color:#bca18f;
    margin:2px 0 4px
}
.product-card p {
    margin:0 0 5px;
    color:#797d82;
    font-size:10px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis
}
.price {
    font-size:13px;
    font-weight:600;
    color:#d4d5d4
}
.price small {
    font-weight:400;
    color:#72767b
}
.cart-btn {
    width:100%;
    height:35px;
    margin-top:10px;
    border:1px solid rgba(255,255,255,.13);
    border-radius:8px;
    background:rgba(0,0,0,.55);
    color:#cbc9c5;
    font-size:9px;
    letter-spacing:.12em;
    transition:.2s
}
.cart-btn:hover {
    background:rgba(15,36,67,.72);
    border-color:rgba(79,118,163,.58);
    color:#eef3f7
}
.page {
    padding:40px 0 70px
}
.catalog-toolbar {
    display:grid;
    grid-template-columns:minmax(220px,2fr) repeat(2,minmax(150px,1fr)) 120px 120px minmax(150px,1fr) minmax(190px,1.2fr) auto;
    gap:10px;
    margin:18px 0 24px;
}
.filter-reset {
    height:40px;
    padding:0 14px;
    border:1px solid var(--line);
    border-radius:9px;
    background:rgba(255,255,255,.025);
    color:#aeb4bc;
    cursor:pointer;
    font-size:10px;
    letter-spacing:.08em;
}
.filter-reset:hover { color:#fff; border-color:rgba(92,157,226,.55); }
.catalog-toolbar input,.catalog-toolbar select,.field input,.field select,.field textarea,.editor-form input,.editor-form select,.editor-form textarea {
    width:100%;
    border:1px solid var(--line);
    background:rgba(12,16,22,.82);
    border-radius:9px;
    padding:10px 12px;
    outline:none
}
.catalog-toolbar input,.catalog-toolbar select {
    height:40px
}
.field {
    display:block
}
.field .label {
    display:block;
    color:#71767d;
    font-size:10px;
    letter-spacing:.08em;
    margin-bottom:7px
}
.stack {
    display:grid;
    gap:12px
}
.auth-shell {
    min-height:calc(100vh - 68px);
    display:grid;
    place-items:center;
    padding:44px 14px
}
.auth-box {
    width:min(440px,100%);
    padding:30px;
    border:1px solid var(--line);
    border-radius:15px;
    background:rgba(10,14,20,.86)
}
.auth-box h1 {
    font:500 38px var(--serif);
    margin:7px 0
}
.auth-box .sub {
    color:#83888f
}
.auth-reset-wrap {
    margin-top: 14px;
    text-align: center;
}
.auth-reset-link {
    display: inline-block;
    color: #98b0c9;
    font-size: 12px;
    text-decoration: none;
    cursor: pointer;
    transition: color .2s, opacity .2s;
}
.auth-reset-link:hover {
    color: #d7e4f0;
    text-decoration: underline;
}
.auth-alt {
    font-size:12px;
    color:#85898f
}
.auth-alt a {
    color:#98b0c9
}
.alert {
    padding:10px 12px;
    border-radius:8px;
    background:rgba(54,20,23,.76);
    border:1px solid rgba(137,70,78,.4);
    color:#d4adb2
}
.page-two {
    display:grid;
    grid-template-columns:1.1fr .9fr;
    gap:24px
}
.panel-layout {
    display:grid;
    grid-template-columns:210px minmax(0,1fr);
    gap:24px
}
.panel-nav {
    position:sticky;
    top:88px;
    align-self:start;
    padding:10px;
    border:1px solid var(--line);
    background:rgba(8,11,16,.8);
    border-radius:13px
}
.panel-title {
    padding:9px 10px 14px;
    color:#7b8188;
    font-size:9px;
    letter-spacing:.15em
}
.panel-nav button {
    display:block;
    width:100%;
    padding:10px;
    border:0;
    background:transparent;
    color:#777d84;
    border-radius:8px;
    text-align:left;
    font-size:11px
}
.panel-nav button:hover,.panel-nav button.active {
    background:rgba(42,62,84,.35);
    color:#dde3e9
}
.panel-card {
    padding:25px;
    border:1px solid var(--line);
    border-radius:14px;
    background:rgba(8,11,16,.78)
}
.panel-card h1 {
    font:500 34px var(--serif);
    color:#d6beac;
    margin:7px 0
}
.panel-card p {
    color:#858a91
}
.stat-grid,.quick-grid {
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:10px
}
.stat-card {
    padding:16px;
    border:1px solid var(--line);
    border-radius:12px;
    background:rgba(10,13,19,.78)
}
.stat-card span {
    display:block;
    color:#727880;
    font-size:9px;
    letter-spacing:.09em;
    text-transform:uppercase
}
.stat-card strong {
    display:block;
    margin-top:5px;
    color:#d4bba7;
    font:500 clamp(22px,2.8vw,34px) var(--serif)
}
.quick-grid {
    margin-top:18px
}
.quick-grid .panel-action {
    width:100%
}
.banner-admin-grid,.studio-list,.orders-list,.journal {
    display:grid;
    gap:12px
}
.banner-admin {
    display:grid;
    grid-template-columns:1.1fr 1fr;
    gap:16px;
    padding:14px;
    border:1px solid var(--line);
    border-radius:13px;
    background:rgba(8,11,16,.76)
}
.banner-preview {
    min-height:230px;
    padding:22px;
    display:flex;
    flex-direction:column;
    justify-content:flex-end;
    gap:7px;
    border-radius:11px;
    background-size:cover;
    background-position:center
}
.banner-preview span {
    align-self:flex-start;
    border:1px solid rgba(96,130,165,.32);
    background:rgba(12,24,36,.67);
    border-radius:12px;
    padding:4px 8px;
    color:#869bb5;
    font-size:8px
}
.banner-preview strong {
    font:500 clamp(28px,4vw,38px) var(--serif);
    color:#c5a18a
}
.banner-preview small {
    color:#a0a4aa;
    font-size:11px
}
.banner-preview em {
    align-self:flex-start;
    padding:9px 16px;
    border-radius:19px;
    background:var(--blueGlass);
    font-style:normal;
    font-size:8px;
    letter-spacing:.1em;
    text-transform:uppercase
}
.banner-fields {
    display:grid;
    gap:9px
}
.banner-fields label {
    color:#71767d;
    font-size:9px;
    letter-spacing:.08em
}
.banner-fields input {
    margin-top:5px;
    height:37px
}
.banner-file {
    padding:7px!important
}
.banner-actions {
    display:flex;
    gap:7px
}
.danger {
    background:rgba(48,18,22,.56);
    border-color:rgba(136,67,75,.4);
    color:#cba9ae
}
.studio-row,.order-card,.journal-row {
    border:1px solid var(--line);
    border-radius:12px;
    background:rgba(8,11,16,.76)
}
.studio-row {
    display:grid;
    grid-template-columns:68px minmax(0,1fr) auto;
    gap:13px;
    padding:12px;
    align-items:center
}
.studio-thumb {
    width:68px;
    height:68px;
    border-radius:9px;
    overflow:hidden;
    background:#0e1116;
    display:grid;
    place-items:center;
    color:#50565d;
    font-size:8px
}
.studio-thumb img {
    width:100%;
    height:100%;
    object-fit:cover
}
.studio-info b {
    display:block;
    font:500 18px var(--serif);
    color:#c6aa99
}
.studio-info span,.studio-info small {
    display:block;
    color:#767c84;
    font-size:10px;
    margin-top:3px
}
.studio-actions {
    display:flex;
    gap:7px
}
.editor-grid {
    display:grid;
    grid-template-columns:.85fr 1.15fr;
    gap:18px
}
.edit-photo {
    aspect-ratio:1;
    border-radius:11px;
    overflow:hidden;
    background:#0d1015;
    display:grid;
    place-items:center;
    color:#666d74;
    font-size:10px
}
.edit-photo img {
    width:100%;
    height:100%;
    object-fit:cover
}
.editor-form {
    display:grid;
    gap:11px
}
.two {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px
}
.notes-editor {
    display:grid;
    gap:8px
}
.notes-section {
    padding:12px;
    border:1px solid var(--line);
    border-radius:10px
}
.notes-section h3 {
    margin:0 0 8px;
    color:#b69986;
    font:500 15px var(--serif)
}
.note-row {
    display:grid;
    grid-template-columns:1fr 72px 28px;
    gap:6px;
    margin-bottom:6px
}
.note-row input {
    min-width:0
}
.note-row button {
    border:1px solid var(--line);
    background:transparent;
    border-radius:7px
}
.user-row {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    padding:13px 15px;
    border-bottom:1px solid var(--line)
}
.user-row:last-child {
    border-bottom:0
}
.user-row b,.user-row span {
    display:block
}
.user-row b {
    font-size:12px
}
.user-row span {
    font-size:10px;
    color:#747a82;
    margin-top:3px
}
.user-controls {
    display:flex;
    gap:6px;
    align-items:center
}
.user-controls select,.order-side select {
    height:33px;
    background:rgba(16,20,27,.9);
    border:1px solid var(--line);
    border-radius:8px;
    padding:0 8px;
    font-size:10px
}
.status-pill {
    display:inline-flex;
    padding:4px 8px;
    border-radius:12px;
    border:1px solid var(--line);
    font-size:8px;
    color:#aeb4bc
}
.status-paid,.status-completed,.status-active,.status-published {
    color:#a8c1b1;
    border-color:rgba(74,123,96,.35)
}
.status-blocked,.status-cancelled,.status-failed,.status-archived {
    color:#caa6ac;
    border-color:rgba(125,67,76,.38)
}
.order-card {
    padding:14px
}
.order-top {
    display:flex;
    justify-content:space-between;
    gap:14px
}
.order-top b,.order-top span,.order-top small {
    display:block
}
.order-top b {
    font-size:12px
}
.order-top span,.order-top small {
    font-size:10px;
    color:#747a82;
    margin-top:3px
}
.order-side {
    display:flex;
    align-items:center;
    gap:9px
}
.order-side strong {
    font-size:13px
}
.order-items {
    margin:11px 0;
    padding:10px 0;
    border-top:1px solid var(--line);
    border-bottom:1px solid var(--line);
    display:grid;
    gap:5px;
    font-size:11px;
    color:#a6abb1
}
.order-items div {
    display:flex;
    justify-content:space-between
}
.order-items span {
    color:#777c83
}
.order-foot {
    display:flex;
    gap:8px;
    align-items:center;
    color:#757b82;
    font-size:10px
}
.journal-row {
    display:grid;
    grid-template-columns:260px minmax(0,1fr);
    gap:16px;
    padding:12px
}
.journal-row b {
    display:block;
    font-size:10px
}
.journal-row span,.journal-row small {
    display:block;
    color:#70767d;
    font-size:9px;
    margin-top:3px
}
.journal-row p {
    margin:0;
    color:#8a9097;
    font-size:10px;
    white-space:pre-wrap
}
.orders-user-list,.chat-layout {
    display:grid;
    gap:12px
}
.chat-layout {
    grid-template-columns:280px minmax(0,1fr)
}
.threads {
    border:1px solid var(--line);
    border-radius:12px;
    overflow:hidden;
    background:rgba(8,11,16,.75)
}
.thread-item {
    display:block;
    padding:12px;
    border-bottom:1px solid var(--line);
    color:#848990
}
.thread-item.active,.thread-item:hover {
    background:rgba(31,50,72,.3);
    color:#dce1e7
}
.thread-item b {
    display:block;
    font-size:11px
}
.thread-item small {
    display:block;
    margin-top:4px;
    font-size:9px;
    color:#676e76
}
.chat-box {
    min-height:510px;
    border:1px solid var(--line);
    border-radius:12px;
    background:rgba(8,11,16,.75);
    display:grid;
    grid-template-rows:auto 1fr auto
}
.chat-head {
    padding:14px;
    border-bottom:1px solid var(--line)
}
.chat-head b {
    font:500 18px var(--serif);
    color:#c7aa98
}
.messages {
    padding:15px;
    overflow:auto;
    display:grid;
    align-content:start;
    gap:8px
}
.msg {
    max-width:76%;
    justify-self:start;
    padding:9px 11px;
    border-radius:11px;
    background:#111720;
    border:1px solid rgba(255,255,255,.04);
    font-size:11px
}
.msg.mine {
    justify-self:end;
    background:rgba(30,55,82,.5);
    border-color:rgba(80,119,160,.22)
}
.msg small {
    display:block;
    margin-top:4px;
    color:#6f757d;
    font-size:8px
}
.chat-compose {
    display:flex;
    gap:8px;
    padding:11px;
    border-top:1px solid var(--line)
}
.chat-compose input {
    flex:1;
    border:1px solid var(--line);
    background:rgba(12,16,22,.82);
    border-radius:9px;
    padding:10px
}
.chat-compose button {
    border:1px solid var(--line2);
    background:var(--blueGlass);
    border-radius:9px;
    padding:0 15px
}
.chat-file{width:38px;height:38px;flex:0 0 38px;display:grid;place-items:center;align-self:center;border:1px solid var(--line);border-radius:9px;color:#aeb7c0;cursor:pointer;background:rgba(255,255,255,.02)}
.chat-file:hover{color:#fff;border-color:var(--line2)}
.chat-file span{font-size:20px;line-height:1}
.chat-attachment-name{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#9da5ae;font-size:10px;align-self:center}
.chat-attachment{display:block;max-width:min(360px,100%);margin-bottom:7px}
.chat-attachment img{display:block;max-width:100%;max-height:280px;width:auto;border-radius:10px;border:1px solid var(--line)}
.chat-attachment-error{color:#ba8585;font-size:11px;margin-bottom:7px}

.empty {
    padding:32px;
    text-align:center;
    color:#757b82;
    border:1px dashed var(--line);
    border-radius:12px
}
.modal {
    position:fixed;
    inset:0;
    z-index:200;
    background:rgba(0,0,0,.72);
    backdrop-filter:blur(8px);
    display:grid;
    place-items:center;
    padding:18px
}
.modal-box {
    width:min(980px,100%);
    max-height:min(90vh,760px);
    overflow:auto;
    border:1px solid var(--line2);
    border-radius:16px;
    background:#080c12
}
.modal-detail {
    display:grid;
    grid-template-columns:.9fr 1.1fr
}
.modal-image {
    min-height:420px
}
.modal-image img {
    width:100%;
    height:100%;
    object-fit:cover
}
.modal-content {
    padding:30px
}
.modal-close {
    float:right;
    width:32px;
    height:32px;
    border-radius:50%;
    border:1px solid var(--line);
    background:transparent
}
.modal-content h2 {
    font:500 clamp(32px,4vw,52px) var(--serif);
    color:#c6a28b;
    margin:8px 0
}
.traits {
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:9px;
    margin:18px 0
}
.trait {
    padding:10px;
    border:1px solid var(--line);
    border-radius:9px
}
.trait span {
    display:block;
    color:#71777e;
    font-size:8px;
    letter-spacing:.08em
}
.trait b {
    display:block;
    margin-top:4px;
    font-size:13px
}
.note-pyramid {
    display:grid;
    gap:8px;
    margin:16px 0
}
.note-tier {
    padding:10px;
    border-left:2px solid rgba(78,119,174,.55);
    background:rgba(18,28,40,.25)
}
.note-tier b {
    font-size:9px;
    color:#829ab6;
    letter-spacing:.08em
}
.note-tier p {
    margin:5px 0 0;
    color:#aeb2b7;
    font-size:11px
}
.site-footer {
    height:90px;
    border-top:1px solid rgba(255,255,255,.04);
    margin-top:30px
}

.chat-modal {
    position:fixed;
    inset:0;
    z-index:300;
    display:grid;
    place-items:center;
    padding:18px;
}
.chat-modal[hidden] { display:none; }
.chat-modal__backdrop {
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.72);
    backdrop-filter:blur(6px);
}
.chat-modal__dialog {
    position:relative;
    width:min(620px,100%);
    max-height:min(760px,calc(100vh - 36px));
    overflow:auto;
    border:1px solid var(--line2);
    border-radius:16px;
    background:linear-gradient(180deg,rgba(13,17,24,.98),rgba(7,10,15,.98));
    box-shadow:0 24px 80px rgba(0,0,0,.5);
    padding:18px;
}
.chat-modal__head {
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:14px;
    padding-bottom:14px;
    border-bottom:1px solid var(--line);
}
.chat-modal__head h2 {
    margin:3px 0 0;
    font:500 26px var(--serif);
    color:#eee6df;
}
.chat-modal__close {
    width:34px;
    height:34px;
    flex:0 0 auto;
    border:1px solid var(--line2);
    border-radius:9px;
    background:rgba(255,255,255,.025);
    color:#aeb5bd;
    font-size:22px;
    line-height:1;
    cursor:pointer;
}
.chat-modal__form {
    display:grid;
    gap:14px;
    padding-top:16px;
}
.chat-modal__form label {
    display:grid;
    gap:7px;
    min-width:0;
}
.chat-modal__form label > span {
    font-size:10px;
    letter-spacing:.08em;
    text-transform:uppercase;
    color:#7f8790;
}
.chat-modal__form input,
.chat-modal__form textarea {
    width:100%;
    box-sizing:border-box;
    border:1px solid var(--line);
    border-radius:10px;
    background:rgba(10,14,20,.9);
    color:#dfe4ea;
    padding:11px 12px;
    font:inherit;
    outline:none;
}
.chat-modal__form input:focus,
.chat-modal__form textarea:focus {
    border-color:rgba(94,130,166,.65);
    box-shadow:0 0 0 3px rgba(52,87,120,.15);
}
.chat-modal__form textarea {
    min-height:150px;
    resize:vertical;
}
.chat-modal__actions {
    display:flex;
    justify-content:flex-end;
    gap:8px;
    flex-wrap:wrap;
    padding-top:4px;
}
.chat-modal__actions .primary {
    background:var(--blueGlass);
    border-color:var(--line2);
}

@media (max-width:1100px) {
    .catalog-toolbar { grid-template-columns:2fr 1fr 1fr; }
    .catalog-toolbar #priceMin, .catalog-toolbar #priceMax { min-width:0; }
    .bestsellers-rail { grid-auto-columns:calc((100% - 54px) / 4); }
    .wrap,.nav-wrap,.hero-banner,.brand-marquee {
        width:min(100% - 40px,1180px)
    }
    .product-grid {
        grid-template-columns:repeat(auto-fit,minmax(190px,1fr))
    }
    .brand-item {
        padding-inline:26px
    }
    .nav-left {
        gap:20px
    }
    .nav {
        gap:16px
    }
    .panel-layout {
        grid-template-columns:185px minmax(0,1fr)
    }
}
@media (max-width:820px) {
    .catalog-toolbar { grid-template-columns:1fr 1fr; }
    .catalog-toolbar #search { grid-column:1 / -1; }
    .catalog-toolbar #sort, .catalog-toolbar .filter-reset { grid-column:1 / -1; }
    .bestsellers-rail { grid-auto-columns:calc((100% - 14px) / 2.15); gap:14px; }
    .rail-next { width:38px; height:38px; flex-basis:38px; }
    .nav-wrap {
        min-height:62px;
        flex-wrap:wrap;
        padding:10px 0
    }
    .nav-left {
        width:100%;
        justify-content:space-between
    }
    .nav-right {
        width:100%;
        justify-content:flex-end
    }
    .hero-banner {
        height:300px
    }
    .hero-inner {
        align-items:flex-end;
        padding:28px 25px 38px
    }
    .hero-copy {
        max-width:100%
    }
    .brand-item {
        font-size:10px;
        padding:18px 22px
    }
    .product-grid {
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:26px 14px
    }
    .panel-layout {
        grid-template-columns:1fr
    }
    .panel-nav {
        position:static;
        display:flex;
        overflow-x:auto;
        scrollbar-width:none
    }
    .panel-title {
        display:none
    }
    .panel-nav button {
        white-space:nowrap;
        min-width:max-content
    }
    .banner-admin,.editor-grid {
        grid-template-columns:1fr
    }
    .chat-layout {
        grid-template-columns:1fr
    }
    .threads {
        max-height:220px;
        overflow:auto
    }
    .stat-grid {
        grid-template-columns:repeat(2,minmax(0,1fr))
    }
    .quick-grid {
        grid-template-columns:repeat(2,minmax(0,1fr))
    }
    .modal-detail {
        grid-template-columns:1fr
    }
    .modal-image {
        min-height:280px;
        max-height:420px
    }
    .modal-content {
        padding:23px
    }
}
@media (max-width:560px) {
    .wrap,.nav-wrap,.hero-banner,.brand-marquee {
        width:calc(100% - 20px)
    }
    .brand {
        font-size:19px
    }
    .nav {
        overflow-x:auto;
        gap:13px
    }
    .nav a {
        font-size:9px
    }
    .nav-right .icon-link:first-child {
        display:none
    }
    .hero-banner {
        height:310px
    }
    .hero-copy h1 {
        font-size:34px
    }
    .hero-copy p {
        font-size:12px
    }
    .section-head,.panel-head {
        align-items:flex-start;
        flex-direction:column
    }
    .section-head>a {
        order:2
    }
    .product-grid {
        /* На узких мобильных экранах каталог всегда в 2 колонки. */
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:20px 10px
    }
    .product-card {
        max-width:none;
        width:100%
    }
    .catalog-toolbar {
        grid-template-columns:1fr
    }
    .stat-grid,.quick-grid {
        grid-template-columns:1fr
    }
    .studio-row {
        grid-template-columns:56px 1fr
    }
    .studio-thumb {
        width:56px;
        height:56px
    }
    .studio-actions {
        grid-column:1/-1
    }
    .user-row,.order-top {
        flex-direction:column;
        align-items:flex-start
    }
    .user-controls,.order-side {
        width:100%;
        justify-content:space-between;
        flex-wrap:wrap
    }
    .two {
        grid-template-columns:1fr
    }
    .note-row {
        grid-template-columns:1fr 68px 30px
    }
    .journal-row {
        grid-template-columns:1fr
    }
    .chat-box {
        min-height:440px
    }
    .chat-compose {
        flex-wrap:wrap
    }
    .chat-compose input {
        width:100%;
        flex-basis:100%
    }
    .modal {
        padding:8px
    }
    .modal-image {
        min-height:240px
    }
    .traits {
        grid-template-columns:1fr
    }
    .panel-card {
        padding:20px
    }
}
@media (min-width:1600px) {
    .wrap,.nav-wrap,.hero-banner,.brand-marquee {
        width:min(1320px,calc(100% - 96px))
    }
    .hero-banner {
        height:360px
    }
    .product-grid {
        grid-template-columns:repeat(auto-fit,minmax(235px,1fr))
    }
    .brand-item {
        padding-inline:42px
    }
}
@media (min-width:2300px) {
    .wrap,.nav-wrap,.hero-banner,.brand-marquee {
        width:min(1560px,calc(100% - 160px))
    }
    .hero-banner {
        height:400px
    }
    .brand-item {
        padding-inline:52px
    }
}
@media (prefers-reduced-motion:reduce) {
    html {
        scroll-behavior:auto
    }
    .brand-track {
        animation:none
    }
    .product-media img {
        transition:none
    }
}


/* ---------------------------------------------------------------
   Наборы — единый визуальный язык с текущим каталогом
---------------------------------------------------------------- */
.catalog-view-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 18px 0 12px;
}
.catalog-view-tabs .tab {
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.025);
  color: #9ca3ad;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
}
.catalog-view-tabs .tab.active {
  color: #fff;
  border-color: rgba(92,157,226,.55);
  background: rgba(53,103,153,.22);
}
.catalog-count {
  margin: 18px 0 10px;
}
.set-card .set-media {
  position: relative;
}
.set-card .set-badge {
  background: rgba(22,30,40,.92);
}
.set-card .set-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.set-admin-list {
  display: grid;
  gap: 10px;
}
.set-admin-row {
  display: grid;
  grid-template-columns: 82px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  background: rgba(255,255,255,.025);
}
.set-admin-thumb {
  width: 82px;
  height: 92px;
  border-radius: 12px;
  overflow: hidden;
  background: #0a0d12;
  display: grid;
  place-items: center;
  color: #69727d;
  font-size: 11px;
  letter-spacing: .12em;
}
.set-admin-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.set-admin-info {
  display: grid;
  gap: 5px;
}
.set-admin-info b { font-size: 16px; }
.set-admin-info span,
.set-admin-info small { color: #8b929c; }
.set-editor {
  display: grid;
  gap: 14px;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.section-title span {
  display: grid;
  gap: 4px;
}
.section-title small {
  color: #818894;
  font-weight: 400;
}
.set-images {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}
.set-image-chip {
  width: 96px;
  height: 112px;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  background: #090c10;
}
.set-image-chip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.set-image-chip span {
  position: absolute;
  left: 6px;
  top: 6px;
  padding: 3px 6px;
  border-radius: 6px;
  background: rgba(0,0,0,.7);
  font-size: 11px;
}
.set-image-chip button {
  position: absolute;
  right: 5px;
  top: 5px;
  width: 25px;
  height: 25px;
  border: 0;
  border-radius: 50%;
  background: rgba(0,0,0,.72);
  color: #fff;
  cursor: pointer;
}
.set-items-editor {
  display: grid;
  gap: 12px;
}
.set-builder-item {
  padding: 16px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: rgba(255,255,255,.018);
}
.set-scales {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 12px;
}
.set-scales label {
  display: grid;
  gap: 6px;
  color: #8c939d;
  font-size: 12px;
}
.set-scales label b {
  float: right;
  color: #fff;
}
.set-scales input[type="range"] {
  width: 100%;
}
.set-detail {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr);
  gap: 28px;
}
.set-detail-gallery,
.set-detail-info {
  min-width: 0;
}
.set-detail-cover {
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  overflow: hidden;
  background: #090c10;
  border: 1px solid rgba(255,255,255,.08);
}
.set-detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.set-detail-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
}
.set-detail-thumb {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 9px;
  overflow: hidden;
  background: #090c10;
  cursor: pointer;
}
.set-detail-thumb.active {
  border-color: rgba(108,164,220,.8);
}
.set-detail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.set-detail-info h1 {
  margin: 8px 0 14px;
  font-size: clamp(34px, 5vw, 58px);
}
.set-description {
  color: #969da7;
  line-height: 1.65;
}
.set-price {
  margin: 20px 0 8px;
  font-size: 27px;
  font-weight: 600;
}
.set-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #838b95;
  font-size: 13px;
  margin-bottom: 24px;
}
.set-meta span {
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
}
.set-composition {
  display: grid;
  gap: 8px;
}
.set-detail-item {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding: 9px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px;
  background: rgba(255,255,255,.018);
}
.set-detail-item:hover {
  border-color: rgba(255,255,255,.16);
}
.set-item-image {
  width: 58px;
  height: 68px;
  border-radius: 8px;
  overflow: hidden;
  background: #0a0d12;
  display: grid;
  place-items: center;
}
.set-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.set-item-copy {
  display: grid;
  gap: 4px;
}
.set-item-copy small,
.set-item-copy span {
  color: #818995;
  font-size: 12px;
}
.set-item-copy b { font-size: 15px; }

@media (max-width: 800px) {
  .set-detail { grid-template-columns: 1fr; }
  .set-scales { grid-template-columns: 1fr; }
  .set-admin-row { grid-template-columns: 62px 1fr; }
  .set-admin-row .studio-actions { grid-column: 1 / -1; }
  .set-admin-thumb { width: 62px; height: 72px; }
}

.auth-box .btn{width:100%;margin-top:12px;}

.edit-photo-gallery{display:flex;flex-wrap:wrap;gap:10px;min-height:180px;padding:6px;border-radius:12px;background:#0d1015}
.edit-photo-gallery .set-image-chip{width:92px;height:110px}
.image-help{display:block;color:#818894;margin-top:8px;font-size:12px}
.perfume-detail-gallery{min-width:0}
.perfume-detail-cover{aspect-ratio:1/1;border-radius:20px;overflow:hidden;background:#090c10;border:1px solid rgba(255,255,255,.08)}
.perfume-detail-cover img{width:100%;height:100%;object-fit:cover}
.perfume-detail-thumbs{display:flex;gap:8px;margin-top:10px;overflow-x:auto}

/* Mobile hamburger navigation */
.menu-toggle {
    display:none;
    width:40px;
    height:40px;
    padding:0;
    border:1px solid rgba(100,137,178,.34);
    background:rgba(26,43,63,.52);
    border-radius:12px;
    align-items:center;
    justify-content:center;
    flex-direction:column;
    gap:5px;
    cursor:pointer;
}
.menu-toggle span {
    width:17px;
    height:1px;
    display:block;
    background:#b8c4d5;
    transition:transform .2s ease,opacity .2s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform:translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity:0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform:translateY(-6px) rotate(-45deg); }
.mobile-menu {
    display:none;
}
.mobile-menu-head,
.mobile-nav {
    display:none;
}

@media (max-width:820px) {
    body.mobile-nav-open { overflow:hidden; }
    .site-header { z-index:1200; }
    .nav-wrap {
        min-height:62px;
        height:62px;
        width:calc(100% - 20px);
        padding:0;
        flex-wrap:nowrap;
    }
    .nav-left {
        width:auto;
        min-width:0;
        gap:0;
        flex:1 1 auto;
    }
    .brand { font-size:19px; }
    .nav { display:none; }
    .nav-right {
        width:auto;
        gap:7px;
        flex:0 0 auto;
    }
    .nav-right > .icon-link.search-link,
    .nav-right > .orders-link,
    .nav-right > .account-icon,
    .nav-right > .panel-link,
    .nav-right > #logout {
        display:none;
    }
    .nav-right > .icon-link:not(.search-link) {
        display:inline-flex;
        width:40px;
    }
    .menu-toggle { display:inline-flex; }
    .mobile-menu {
        position:fixed;
        inset:62px 0 0;
        z-index:1190;
        display:block;
        padding:18px 16px 30px;
        background:rgba(4,6,10,.98);
        backdrop-filter:blur(18px);
        border-top:1px solid rgba(255,255,255,.05);
        overflow:auto;
        transform:translateY(-12px);
        opacity:0;
        pointer-events:none;
        transition:opacity .22s ease,transform .22s ease;
    }
    .mobile-menu.open {
        opacity:1;
        transform:translateY(0);
        pointer-events:auto;
    }
    .mobile-menu-head {
        display:flex;
        align-items:center;
        justify-content:space-between;
        margin-bottom:12px;
        color:#778295;
        font-size:9px;
        letter-spacing:.18em;
    }
    .mobile-menu-close {
        width:36px;
        height:36px;
        border:1px solid rgba(100,137,178,.26);
        background:rgba(26,43,63,.42);
        color:#c4ccd8;
        border-radius:11px;
        font-size:24px;
        line-height:1;
        cursor:pointer;
    }
    .mobile-nav {
        display:flex;
        flex-direction:column;
        gap:8px;
    }
    .mobile-nav a {
        display:flex;
        align-items:center;
        min-height:52px;
        padding:0 16px;
        border:1px solid rgba(100,137,178,.18);
        border-radius:14px;
        background:rgba(16,24,35,.68);
        color:#c5cbd4;
        font-size:11px;
        letter-spacing:.12em;
    }
    .mobile-nav a:active { background:rgba(33,52,77,.82); }
}

@media (min-width:821px) {
    .mobile-menu { display:none !important; }
}

/* Mobile menu: full-height drawer below the fixed header. */
@media (max-width: 820px) {
    body.mobile-nav-open::before {
        content: '';
        position: fixed;
        inset: 62px 0 0;
        z-index: 1090;
        background: rgba(0, 0, 0, .58);
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px);
    }

    .mobile-menu {
        position: fixed !important;
        top: 62px !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100vw;
        height: calc(100dvh - 62px);
        max-height: calc(100dvh - 62px);
        z-index: 1100 !important;
        margin: 0;
        padding: 14px 14px 28px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        background: linear-gradient(180deg, rgba(6,9,14,.985) 0%, rgba(3,5,8,.99) 100%);
        border-top: 1px solid rgba(255,255,255,.06);
        border-bottom: 1px solid rgba(255,255,255,.04);
        border-radius: 0;
        box-shadow: 0 18px 50px rgba(0,0,0,.55);
        transform: translateY(-12px);
        opacity: 0;
        pointer-events: none;
        visibility: hidden;
        transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
    }

    .mobile-menu.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
        visibility: visible;
        transition: opacity .2s ease, transform .2s ease;
    }

    .mobile-menu-head {
        position: sticky;
        top: 0;
        z-index: 2;
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 44px;
        margin: -14px -14px 12px;
        padding: 10px 14px;
        background: rgba(5,8,12,.96);
        border-bottom: 1px solid rgba(255,255,255,.05);
    }

    .mobile-menu-close {
        width: 38px;
        height: 38px;
        flex: 0 0 38px;
        display: grid;
        place-items: center;
        padding: 0;
        font-size: 25px;
    }

    .mobile-nav {
        display: grid;
        gap: 8px;
        padding-bottom: 18px;
    }

    .mobile-nav a {
        min-height: 54px;
        padding: 0 17px;
        border-radius: 14px;
        background: rgba(12,18,27,.92);
        border-color: rgba(100,137,178,.22);
        font-size: 11px;
        letter-spacing: .13em;
    }

    .mobile-nav a:hover,
    .mobile-nav a:focus-visible {
        background: rgba(25,43,65,.95);
        border-color: rgba(106,148,195,.45);
        outline: none;
    }
}

/* ===============================================================
   Адаптивный баннер главной страницы
   =============================================================== */
.hero-banner {
    width: min(1180px, calc(100% - 64px));
    height: clamp(270px, 28.8vw, 360px);
    min-height: 270px;
    background-size: cover;
    background-position: center center;
}

.hero-inner {
    box-sizing: border-box;
    min-width: 0;
    padding-inline: clamp(24px, 5vw, 62px);
}

.hero-copy {
    min-width: 0;
    max-width: min(560px, 58%);
}

.hero-copy h1 {
    font-size: clamp(30px, 4.2vw, 54px);
    overflow-wrap: anywhere;
}

.hero-copy p {
    max-width: 52ch;
    overflow-wrap: anywhere;
}

@media (max-width: 1100px) {
    .hero-banner {
        width: min(1180px, calc(100% - 40px));
        height: clamp(270px, 35vw, 330px);
    }

    .hero-copy {
        max-width: 62%;
    }
}

@media (max-width: 820px) {
    .hero-banner {
        width: calc(100% - 24px);
        height: clamp(250px, 55vw, 330px);
        min-height: 250px;
        border-radius: 0 0 16px 16px;
    }

    .hero-inner {
        align-items: flex-end;
        padding: 24px clamp(18px, 5vw, 30px) 34px;
    }

    .hero-copy {
        width: min(100%, 640px);
        max-width: 100%;
    }

    .hero-copy h1 {
        font-size: clamp(28px, 7vw, 42px);
        line-height: .99;
        margin: 12px 0 8px;
    }

    .hero-copy p {
        font-size: clamp(11px, 2vw, 14px);
        margin-bottom: 17px;
    }
}

@media (max-width: 560px) {
    .hero-banner {
        width: calc(100% - 12px);
        height: clamp(225px, 72vw, 305px);
        min-height: 225px;
        border-radius: 0 0 15px 15px;
        background-position: center center;
    }

    .hero-inner {
        padding: 20px 18px 30px;
    }

    .hero-copy {
        width: 100%;
    }

    .hero-badge,
    .discount {
        padding: 4px 8px;
        font-size: 8px;
    }

    .hero-copy h1 {
        max-width: 11ch;
        font-size: clamp(27px, 9vw, 36px);
        line-height: 1;
        margin: 10px 0 8px;
    }

    .hero-copy p {
        max-width: 34ch;
        font-size: 11px;
        line-height: 1.35;
        margin-bottom: 14px;
    }

    .hero-cta {
        min-height: 36px;
        padding-inline: 17px;
        font-size: 9px;
    }

    .hero-dots {
        right: 12px;
        bottom: 11px;
    }
}

@media (max-width: 390px) {
    .hero-banner {
        height: clamp(215px, 75vw, 285px);
        min-height: 215px;
    }

    .hero-inner {
        padding-inline: 15px;
        padding-bottom: 27px;
    }

    .hero-copy h1 {
        font-size: clamp(25px, 9.5vw, 33px);
    }

    .hero-copy p {
        font-size: 10.5px;
    }
}

@media (min-width: 1600px) {
    .hero-banner {
        height: clamp(340px, 20vw, 420px);
    }
}

@media (min-width: 2300px) {
    .hero-banner {
        height: clamp(380px, 17vw, 460px);
    }
}

/* Админ-раздел заказов: подробная карточка заказа. */
.order-admin-stats {
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:10px;
    margin-bottom:14px;
}
.order-admin-card { padding:16px; }
.order-admin-card .order-top { align-items:flex-start; }
.order-admin-card .order-top > div:first-child span { color:#b79b89; }
.order-admin-card .order-side { align-items:flex-end; flex-direction:column; }
.order-admin-card .order-side select { min-width:190px; }
.order-admin-grid {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:10px;
    margin-top:14px;
}
.order-admin-section {
    padding:12px;
    border:1px solid var(--line);
    border-radius:10px;
    background:rgba(255,255,255,.012);
}
.order-admin-section h3 {
    margin:0 0 10px;
    font:500 13px Georgia,serif;
    color:#bc9b87;
}
.order-admin-section > div:not(.order-items-admin):not(.payment-admin-row) {
    display:grid;
    grid-template-columns:90px minmax(0,1fr);
    gap:8px;
    margin-top:7px;
    font-size:10px;
}
.order-admin-section > div span { color:#747a82; }
.order-admin-section > div b { color:#b8bdc4; font-weight:400; word-break:break-word; }
.order-admin-items,
.order-admin-payment { margin-top:10px; }
.order-items-admin { display:grid; gap:7px; }
.order-item-admin {
    display:flex;
    justify-content:space-between;
    gap:12px;
    padding:8px 0;
    border-top:1px solid rgba(255,255,255,.04);
    font-size:10px;
    color:#9da3aa;
}
.order-item-admin:first-child { border-top:0; padding-top:0; }
.order-item-admin b { color:#c5c9ce; white-space:nowrap; }
.payment-admin-row {
    display:flex;
    justify-content:space-between;
    gap:15px;
    padding:8px 0;
    border-top:1px solid rgba(255,255,255,.04);
    font-size:10px;
}
.payment-admin-row:first-of-type { border-top:0; padding-top:0; }
.payment-admin-row b,
.payment-admin-row span,
.payment-admin-row small { display:block; }
.payment-admin-row span,
.payment-admin-row small { color:#747a82; margin-top:3px; }
@media (max-width:900px) {
    .order-admin-stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .order-admin-grid { grid-template-columns:1fr; }
}
@media (max-width:600px) {
    .order-admin-stats { grid-template-columns:1fr 1fr; }
    .order-admin-card .order-top { flex-direction:column; }
    .order-admin-card .order-side { align-items:stretch; width:100%; }
    .order-admin-card .order-side select { width:100%; }
    .order-item-admin,
    .payment-admin-row { flex-direction:column; }
}

/* Chat — визуальный стиль Aromatics Arts и уведомления */
.thread-item {
    width:100%;
    box-sizing:border-box;
    appearance:none;
    -webkit-appearance:none;
    display:block;
    padding:14px 12px;
    border:0;
    border-bottom:1px solid var(--line);
    border-radius:0;
    background:rgba(8,11,16,.0);
    color:#b8bdc5;
    text-align:left;
    font:inherit;
    transition:background .18s ease,color .18s ease,border-color .18s ease;
}
.thread-item:hover,.thread-item.active {
    background:rgba(31,50,72,.26);
    color:#e3e6ea;
}
.thread-item__top {
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:10px;
}
.thread-item b {
    min-width:0;
    font-size:11px;
    line-height:1.4;
    color:inherit;
}
.thread-item small {
    display:block;
    margin-top:5px;
    color:#69717a;
    font-size:9px;
    line-height:1.35;
}
.thread-badge {
    flex:0 0 auto;
    min-width:18px;
    height:18px;
    padding:0 6px;
    box-sizing:border-box;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border:1px solid rgba(94,130,166,.45);
    border-radius:999px;
    background:rgba(31,50,72,.9);
    color:#d9e3ee;
    font-size:9px;
    font-weight:600;
}
.thread-item.has-unread {
    background:linear-gradient(90deg,rgba(31,50,72,.28),rgba(8,11,16,0));
}
.thread-item.has-unread b {
    color:#efe7df;
}
.msg-text {
    white-space:pre-wrap;
    word-break:break-word;
}
.msg-error {
    opacity:.72;
    border-color:rgba(173,132,99,.22);
}
.msg-error .msg-text::before {
    content:'🔒 ';
}

/* ===============================================================
   Корзина — мобильная адаптация
   Не даём двухколоночному summary-блоку сжимать список товаров
   и накладываться на карточки на узких экранах.
   =============================================================== */
@media (max-width: 820px) {
    #cartRoot > div:first-child {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 12px !important;
        width: 100%;
        min-width: 0;
    }

    #cartRoot > div:first-child > .stack,
    #cartRoot > div:first-child > aside {
        min-width: 0;
        width: 100%;
        box-sizing: border-box;
    }

    #cartRoot > div:first-child > aside {
        position: static !important;
        top: auto !important;
    }

    #cartRoot > div:first-child > .stack > .panel-card {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
        overflow: hidden;
    }

    #cartRoot .promo-box {
        width: 100%;
        box-sizing: border-box;
        min-width: 0;
    }
}

@media (max-width: 560px) {
    #cartRoot > div:first-child > .stack > .panel-card {
        grid-template-columns: 64px minmax(0, 1fr) !important;
        gap: 10px !important;
        align-items: start !important;
    }

    #cartRoot > div:first-child > .stack > .panel-card > img {
        width: 64px !important;
        height: 76px !important;
        border-radius: 9px !important;
    }

    #cartRoot > div:first-child > .stack > .panel-card > div:nth-child(2) {
        min-width: 0;
    }

    #cartRoot > div:first-child > .stack > .panel-card > div:nth-child(2) h2 {
        font-size: 16px !important;
        line-height: 1.12;
        overflow-wrap: anywhere;
    }

    #cartRoot > div:first-child > .stack > .panel-card > div:last-child {
        grid-column: 2;
        width: 100%;
        box-sizing: border-box;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 10px !important;
        min-width: 0;
        margin-top: 2px;
    }

    #cartRoot > div:first-child > .stack > .panel-card > div:last-child strong {
        font-size: 14px;
    }

    #cartRoot .promo-box {
        margin: 12px 0 !important;
        padding: 12px !important;
        border-radius: 12px !important;
    }

    #cartRoot .promo-box > div:nth-of-type(2) {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 8px !important;
    }

    #cartRoot #promo,
    #cartRoot #promoBtn {
        width: 100% !important;
        min-width: 0 !important;
    }

    #cartRoot #promoBtn {
        min-height: 42px;
    }

    #cartRoot #checkout,
    #cartRoot #clearCart {
        width: 100%;
        min-height: 42px;
    }
}

@media (max-width: 390px) {
    #cartRoot > div:first-child > .stack > .panel-card {
        padding: 14px !important;
        grid-template-columns: 58px minmax(0, 1fr) !important;
    }

    #cartRoot > div:first-child > .stack > .panel-card > img {
        width: 58px !important;
        height: 68px !important;
    }
}

/* Баннер выровнен по ширине основных модулей */
.hero-banner { width:min(1320px,calc(100% - 96px)); }
@media (max-width:1100px) { .hero-banner { width:calc(100% - 40px); } }
@media (max-width:820px) { .hero-banner { width:calc(100% - 24px); } }
@media (max-width:560px) { .hero-banner { width:calc(100% - 20px); } }

/* ---------------------------------------------------------------
   Каталог: компактные кнопки + фильтры в стиле WB
---------------------------------------------------------------- */
.catalog-controls {
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:center;
    gap:10px;
    margin:18px 0 14px;
}
.catalog-search-wrap { min-width:0; }
.catalog-search-wrap input {
    height:44px;
    width:100%;
    border:1px solid var(--line);
    background:rgba(12,16,22,.82);
    border-radius:10px;
    padding:10px 14px;
    outline:none;
    color:#e8e8e8;
}
.catalog-actions {
    display:flex;
    align-items:center;
    gap:8px;
}
.catalog-filter-btn {
    height:44px;
    border:1px solid var(--line);
    border-radius:10px;
    background:rgba(255,255,255,.035);
    color:#d4d8de;
    padding:0 17px;
    cursor:pointer;
    font-size:10px;
    letter-spacing:.1em;
    transition:.2s;
}
.catalog-filter-btn:hover,
.catalog-filter-btn[aria-expanded="true"] {
    border-color:rgba(92,157,226,.6);
    background:rgba(53,103,153,.16);
    color:#fff;
}
.filter-count {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:18px;
    height:18px;
    margin-left:6px;
    padding:0 5px;
    border-radius:99px;
    background:rgba(92,157,226,.28);
    color:#dcecff;
    font-size:9px;
}
.sort-wrap { position:relative; }
.sort-menu-btn {
    width:44px;
    height:44px;
    border:1px solid var(--line);
    border-radius:10px;
    background:rgba(255,255,255,.035);
    color:#b9c0c8;
    cursor:pointer;
    font-size:18px;
    line-height:1;
    letter-spacing:-3px;
    padding:0 9px 2px 5px;
    transition:.2s;
}
.sort-menu-btn:hover,
.sort-menu-btn[aria-expanded="true"] {
    color:#fff;
    border-color:rgba(92,157,226,.6);
    background:rgba(53,103,153,.16);
}
.sort-menu {
    position:absolute;
    z-index:120;
    right:0;
    top:calc(100% + 8px);
    width:210px;
    padding:7px;
    border:1px solid rgba(255,255,255,.1);
    border-radius:12px;
    background:rgba(12,16,22,.98);
    box-shadow:0 18px 45px rgba(0,0,0,.42);
}
.sort-menu button {
    display:block;
    width:100%;
    border:0;
    border-radius:8px;
    background:transparent;
    color:#aeb4bc;
    text-align:left;
    padding:11px 12px;
    cursor:pointer;
    font-size:11px;
}
.sort-menu button:hover,
.sort-menu button.active {
    background:rgba(53,103,153,.2);
    color:#fff;
}

.filters-overlay {
    position:fixed;
    inset:0;
    z-index:190;
    background:rgba(0,0,0,.58);
    backdrop-filter:blur(2px);
}
.filters-drawer {
    position:fixed;
    z-index:200;
    top:0;
    right:0;
    width:min(430px,100vw);
    height:100dvh;
    display:flex;
    flex-direction:column;
    background:#0b1017;
    border-left:1px solid rgba(255,255,255,.1);
    box-shadow:-20px 0 55px rgba(0,0,0,.45);
    transform:translateX(105%);
    transition:transform .25s ease;
}
.filters-drawer.open { transform:translateX(0); }
.filters-drawer-head {
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:22px 24px 18px;
    border-bottom:1px solid rgba(255,255,255,.08);
}
.filters-drawer-head h3 {
    margin:3px 0 0;
    font:400 27px Georgia,serif;
    color:#e0bfae;
}
.filters-close {
    width:38px;
    height:38px;
    border:1px solid var(--line);
    border-radius:50%;
    background:rgba(255,255,255,.025);
    color:#bfc4ca;
    font-size:25px;
    cursor:pointer;
}
.filters-drawer-body {
    flex:1;
    overflow:auto;
    padding:8px 24px 28px;
}
.filter-block {
    padding:20px 0;
    border-bottom:1px solid rgba(255,255,255,.07);
}
.filter-title {
    margin-bottom:12px;
    color:#e1e4e8;
    font-size:12px;
    font-weight:500;
}
.filter-chips {
    display:flex;
    flex-wrap:wrap;
    gap:8px;
}
.filter-chip {
    min-height:38px;
    padding:0 14px;
    border:1px solid rgba(255,255,255,.1);
    border-radius:9px;
    background:rgba(255,255,255,.025);
    color:#969da6;
    cursor:pointer;
    font-size:11px;
}
.filter-chip.active {
    color:#fff;
    border-color:rgba(92,157,226,.65);
    background:rgba(53,103,153,.22);
}
.price-range-fields {
    display:grid;
    grid-template-columns:1fr auto 1fr;
    align-items:center;
    gap:8px;
}
.price-range-fields span { color:#626a74; }
.filters-drawer select,
.filters-drawer input {
    width:100%;
    height:42px;
    border:1px solid var(--line);
    border-radius:9px;
    background:rgba(12,16,22,.9);
    color:#dfe3e7;
    padding:0 11px;
    outline:none;
}
.filters-drawer-footer {
    display:grid;
    grid-template-columns:1fr 1.45fr;
    gap:9px;
    padding:14px 24px calc(14px + env(safe-area-inset-bottom));
    border-top:1px solid rgba(255,255,255,.08);
    background:rgba(8,12,17,.98);
}
.filters-drawer-footer .filter-reset,
.filters-drawer-footer .hero-cta {
    height:44px;
    margin:0;
}
body.filters-open { overflow:hidden; }

@media (max-width:820px) {
    .catalog-controls {
        grid-template-columns:minmax(0,1fr) auto;
        gap:8px;
    }
    .catalog-search-wrap input { height:42px; }
    .catalog-filter-btn { height:42px; padding:0 12px; }
    .sort-menu-btn { width:42px; height:42px; }
    .catalog-actions { gap:6px; }
    .filters-drawer {
        top:auto;
        right:0;
        bottom:0;
        width:100%;
        height:min(82dvh,720px);
        border-left:0;
        border-top:1px solid rgba(255,255,255,.1);
        border-radius:18px 18px 0 0;
        transform:translateY(105%);
    }
    .filters-drawer.open { transform:translateY(0); }
    .filters-drawer-head { padding:17px 18px 14px; }
    .filters-drawer-body { padding:4px 18px 22px; }
    .filters-drawer-footer { padding-left:18px; padding-right:18px; }
}

@media (max-width:430px) {
    .catalog-controls { grid-template-columns:minmax(0,1fr) auto; }
    .catalog-filter-btn { font-size:9px; padding:0 10px; }
    .sort-menu { right:-2px; width:190px; }
    .filters-drawer { height:min(88dvh,760px); }
}

.bestseller-manager { margin-top:18px; }
.bestseller-add-row { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:12px; align-items:end; }
.bestseller-add-row .field { margin:0; }
.bestseller-add-row select { width:100%; min-height:44px; }
.bestseller-admin-meta { margin:12px 0 14px; color:#7f8892; font-size:10px; letter-spacing:.08em; text-transform:uppercase; }
.bestseller-admin-list { display:grid; gap:8px; }
.bestseller-admin-row { display:grid; grid-template-columns:56px minmax(0,1fr) auto; align-items:center; gap:12px; padding:10px 12px; border:1px solid rgba(255,255,255,.08); border-radius:10px; background:rgba(255,255,255,.018); }
.bestseller-admin-thumb { width:56px; height:68px; border-radius:7px; overflow:hidden; background:rgba(255,255,255,.03); display:grid; place-items:center; }
.bestseller-admin-thumb img { width:100%; height:100%; object-fit:cover; }
.bestseller-admin-info { min-width:0; display:grid; gap:4px; }
.bestseller-admin-info b { font-size:13px; color:#e1e4e8; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.bestseller-admin-info span { font-size:10px; color:#89919b; }
.bestseller-admin-actions { display:flex; align-items:center; gap:6px; flex-wrap:wrap; justify-content:flex-end; }
.bestseller-admin-actions .panel-action:disabled { opacity:.3; cursor:not-allowed; }
@media (max-width:700px) {
  .bestseller-add-row { grid-template-columns:1fr; }
  .bestseller-add-row .hero-cta { width:100%; }
  .bestseller-admin-row { grid-template-columns:46px minmax(0,1fr); }
  .bestseller-admin-thumb { width:46px; height:58px; }
  .bestseller-admin-actions { grid-column:1 / -1; justify-content:flex-start; }
}
