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

:root {
    color-scheme: dark;
    --bg: #0c0d11;
    --panel: #13151b;
    --panel-2: #181b22;
    --panel-3: #20242d;
    --text: #f3f0e8;
    --muted: #aca69a;
    --line: rgba(255, 255, 255, 0.08);
    --gold: #d9b15b;
    --gold-soft: rgba(217, 177, 91, 0.12);
    --emerald: #26a37b;
    --danger: #f07178;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
    --content: 1220px;
    --radius: 24px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(217, 177, 91, 0.08), transparent 34%),
        linear-gradient(180deg, #0b0d11 0%, #101218 54%, #0a0b0f 100%);
    color: var(--text);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

button,
input,
select,
textarea {
    font: inherit;
}

.page-shell {
    min-height: 100vh;
}

.page-main {
    padding-bottom: 72px;
}

.container {
    width: min(var(--content), calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(18px);
    background: rgba(11, 13, 17, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-strip {
    border-bottom: 1px solid rgba(217, 177, 91, 0.18);
    background: linear-gradient(90deg, rgba(217, 177, 91, 0.18), rgba(217, 177, 91, 0.06));
}

.admin-strip__inner {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.admin-strip__copy {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: center;
    color: #f7ead0;
    font-size: 13px;
}

.admin-strip__copy span {
    color: rgba(247, 234, 208, 0.82);
}

.admin-strip__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.admin-strip__link {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border-radius: 999px;
    color: #fff3d8;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 13px;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.admin-strip__link:hover,
.admin-strip__link.is-active {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 82px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.brand__mark {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    overflow: hidden;
    flex: 0 0 auto;
    box-shadow: 0 16px 30px rgba(217, 177, 91, 0.14);
}

.brand__full {
    height: 34px;
    width: auto;
}

.brand__wordmark {
    font-size: 36px;
    line-height: 1;
    font-weight: 800;
    color: #f2e8d0;
    letter-spacing: 0;
    text-shadow: 0 10px 28px rgba(217, 177, 91, 0.18);
}

.brand__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.brand__name {
    font-size: 17px;
    font-weight: 700;
}

.brand__tagline {
    font-size: 12px;
    color: var(--muted);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.site-nav__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    color: #e6dfd1;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.site-nav__link:hover,
.site-nav__link.is-active {
    background: linear-gradient(135deg, rgba(217, 177, 91, 0.2), rgba(217, 177, 91, 0.08));
    border-color: rgba(217, 177, 91, 0.28);
    color: #fff8ea;
    transform: translateY(-1px);
}

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

.selector {
    min-height: 42px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    padding: 0 14px;
}

.mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
}

.section {
    padding: 32px 0;
}

.section--spacious {
    padding: 52px 0;
}

.hero {
    padding-top: 34px;
}

.hero__panel {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 28px;
    background:
        linear-gradient(135deg, rgba(217, 177, 91, 0.12), transparent 42%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 30px;
    padding: 34px;
    box-shadow: var(--shadow);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--gold-soft);
    color: var(--gold);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero h1,
.page-header h1 {
    margin: 18px 0 14px;
    font-size: clamp(34px, 4vw, 60px);
    line-height: 1.04;
    letter-spacing: 0;
}

.hero p,
.page-header p {
    margin: 0;
    font-size: 17px;
    line-height: 1.65;
    color: #d3cec2;
    max-width: 720px;
}

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button--primary {
    background: linear-gradient(135deg, #e5bc69 0%, #bc8d39 100%);
    color: #1a1305;
    font-weight: 700;
    box-shadow: 0 16px 30px rgba(217, 177, 91, 0.2);
}

.button--secondary,
.button--ghost {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
}

.button--danger {
    border-color: rgba(240, 113, 120, 0.24);
    color: #ffd1d4;
    background: rgba(240, 113, 120, 0.08);
}

.button--full {
    width: 100%;
}

.metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
}

.metric {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 16px 18px;
}

.metric__value {
    font-size: 26px;
    font-weight: 800;
}

.metric__label {
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
}

.hero__aside {
    display: grid;
    gap: 16px;
    align-content: start;
}

.panel,
.list-panel,
.form-panel,
.status-card,
.feature-card,
.product-card,
.collection-card,
.detail-panel,
.table-panel,
.notice {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.panel,
.list-panel,
.form-panel,
.status-card,
.feature-card,
.detail-panel,
.table-panel,
.notice {
    padding: 24px;
}

.panel h2,
.section-title,
.feature-card h3,
.status-card h3,
.detail-panel h2,
.table-panel h2,
.form-panel h1,
.form-panel h2,
.list-panel h2 {
    margin: 0 0 12px;
    font-size: 28px;
    line-height: 1.12;
}

.section-kicker {
    margin: 0 0 10px;
    color: var(--gold);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.section-copy,
.panel p,
.detail-panel p,
.feature-card p,
.status-card p,
.table-panel p,
.notice p {
    color: #d1cbc0;
    line-height: 1.65;
}

.grid-3,
.grid-4,
.grid-2,
.collection-grid,
.product-grid,
.stats-grid {
    display: grid;
    gap: 18px;
}

.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3,
.collection-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4,
.stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card,
.status-card {
    min-height: 100%;
}

.feature-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    color: var(--gold);
    font-size: 20px;
    margin-bottom: 18px;
}

.collection-card {
    overflow: hidden;
    min-height: 100%;
}

.collection-card__media {
    aspect-ratio: 16 / 11;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
}

.collection-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.collection-card__body {
    padding: 20px;
}

.collection-card__eyebrow,
.product-card__eyebrow,
.meta-chip__label {
    color: var(--gold);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.collection-card__title,
.product-card__title {
    margin: 10px 0 8px;
    font-size: 22px;
    line-height: 1.18;
}

.collection-card__copy,
.product-card__copy {
    margin: 0 0 16px;
    color: #d1cbc0;
    line-height: 1.65;
}

.product-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product-card__media {
    aspect-ratio: 1 / 1;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
}

.product-card__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 22px;
}

.product-card__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    flex: 1 1 auto;
}

.product-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
}

.product-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.inline-action {
    margin: 0;
}

.product-card__price {
    font-size: 20px;
    font-weight: 800;
}

.product-card__code,
.muted {
    color: var(--muted);
    font-size: 13px;
}

.page-header {
    display: grid;
    gap: 18px;
    padding-top: 18px;
}

.page-header__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
}

.catalog-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.filters-panel {
    position: sticky;
    top: 108px;
}

.filters-list,
.inline-list,
.breadcrumbs,
.meta-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.breadcrumbs {
    color: var(--muted);
    font-size: 14px;
}

.breadcrumbs a:hover {
    color: var(--text);
}

.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    color: #ded9ce;
}

.pill.is-active,
.pill:hover {
    background: rgba(217, 177, 91, 0.16);
    border-color: rgba(217, 177, 91, 0.32);
    color: #fff5dd;
}

.toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

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

.search-form,
.inline-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.input,
.textarea,
.select {
    width: 100%;
    min-height: 48px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    padding: 0 16px;
}

.textarea {
    min-height: 140px;
    padding: 14px 16px;
    resize: vertical;
}

.label {
    display: block;
    margin-bottom: 8px;
    color: #e6decd;
    font-weight: 600;
    font-size: 14px;
}

.form-grid {
    display: grid;
    gap: 16px;
}

.form-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.notice {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notice--success {
    border-color: rgba(38, 163, 123, 0.28);
}

.notice--warning {
    border-color: rgba(217, 177, 91, 0.28);
}

.notice--danger {
    border-color: rgba(240, 113, 120, 0.28);
}

.table-wrap {
    overflow: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.table th {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.badge--success {
    background: rgba(38, 163, 123, 0.14);
    color: #94f1c8;
}

.badge--warning {
    background: rgba(217, 177, 91, 0.14);
    color: #ffe4aa;
}

.badge--danger {
    background: rgba(240, 113, 120, 0.14);
    color: #ffc8cd;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    gap: 24px;
    align-items: start;
}

.gallery {
    display: grid;
    gap: 14px;
}

.gallery__main {
    aspect-ratio: 1 / 1;
    border-radius: 28px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
}

.gallery__main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 24px;
}

.gallery__thumbs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.gallery__thumb {
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stack {
    display: grid;
    gap: 18px;
}

.meta-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.meta-list li {
    flex: 1 1 240px;
}

.meta-value {
    display: block;
    margin-top: 8px;
    color: var(--text);
    font-weight: 600;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.pagination-link {
    min-width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
}

.pagination-link.is-active,
.pagination-link:hover {
    background: rgba(217, 177, 91, 0.16);
    border-color: rgba(217, 177, 91, 0.32);
}

.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(8, 9, 12, 0.92);
}

.site-footer__inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr 0.9fr;
    gap: 26px;
    padding: 34px 0 22px;
}

.site-footer__legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 0 24px;
    color: var(--muted);
    font-size: 13px;
}

.site-footer__links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.site-footer__links a {
    color: #ddd8ca;
    transition: color 0.2s ease;
}

.site-footer__links a:hover {
    color: #fff7e3;
}

.counter {
    display: inline-flex;
    margin-top: 10px;
}

.admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hidden-mobile {
    display: block;
}

.mobile-nav {
    display: none;
}

@media (max-width: 1100px) {
    .hero__panel,
    .detail-layout,
    .catalog-layout {
        grid-template-columns: 1fr;
    }

    .filters-panel {
        position: static;
    }

    .grid-4,
    .grid-2,
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-footer__inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 860px) {
    .admin-strip__inner {
        min-height: 0;
        padding: 10px 0;
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-strip__nav {
        width: 100%;
    }

    .site-nav,
    .site-header__actions {
        display: none;
    }

    .mobile-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .mobile-nav {
        display: none;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        padding: 12px 0 18px;
    }

    .mobile-nav.is-open {
        display: block;
    }

    .mobile-nav__stack {
        display: grid;
        gap: 10px;
    }

    .mobile-nav__stack .selector,
    .mobile-nav__stack .site-nav__link {
        width: 100%;
        justify-content: flex-start;
    }

    .grid-3,
    .grid-4,
    .grid-2,
    .collection-grid,
    .product-grid,
    .metrics,
    .form-grid--2,
    .gallery__thumbs,
    .site-footer__inner {
        grid-template-columns: 1fr;
    }

    .hero__panel,
    .panel,
    .list-panel,
    .form-panel,
    .status-card,
    .feature-card,
    .detail-panel,
    .table-panel,
    .notice {
        padding: 20px;
        border-radius: 22px;
    }

    .hero h1,
    .page-header h1 {
        font-size: 36px;
    }

    .brand__wordmark {
        font-size: 28px;
    }

    .brand__tagline {
        display: none;
    }
}
