:root {
    --bg: #f6f4fb;
    --surface: #ffffff;
    --surface-dark: #12041f;
    --surface-mid: #26103b;
    --primary: #ffcf4a;
    --primary-deep: #d9a515;
    --text: #261b34;
    --muted: #817296;
    --line: rgba(57, 33, 83, 0.12);
    --success: #e7f9ef;
    --danger: #fde9ef;
    --shadow: 0 30px 80px rgba(31, 8, 46, 0.16);
    --radius: 28px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Manrope", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(144, 83, 255, 0.14), transparent 30%),
        linear-gradient(180deg, #faf8ff, #f3eff8 60%, #f7f4fb);
}

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

button,
input,
textarea {
    font: inherit;
}

.shell {
    width: min(1180px, calc(100vw - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: linear-gradient(180deg, rgba(62, 21, 99, 0.98), rgba(68, 26, 108, 0.96));
    backdrop-filter: blur(18px);
    box-shadow: 0 16px 45px rgba(20, 5, 35, 0.25);
}

.topbar,
.nav-row,
.hero-grid,
.section-heading,
.page-top,
.price-row,
.form-actions,
.cart-layout,
.checkout-layout,
.stats-grid,
.order-head,
.admin-actions {
    display: flex;
    align-items: center;
}

.topbar {
    gap: 24px;
    padding: 18px 0 12px;
}

.brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    min-height: 48px;
}

.brand-logo {
    display: block;
    height: 56px;
    width: auto;
    max-width: min(220px, 28vw);
}

.header-search {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr auto;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
}

.header-search input,
.header-search button,
.filter-tabs a,
.button,
.pill-link,
.hero-tabs li,
.product-badge,
.product-visual,
.flash,
.stat-card,
.order-card,
.featured-card,
.card,
.feature-band article {
    border-radius: 999px;
}

.header-search input {
    border: 0;
    padding: 16px 22px;
    background: transparent;
}

.header-search button {
    border: 0;
    padding: 0 24px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), #ffb90f);
    color: #381b00;
    cursor: pointer;
}

.header-links {
    display: flex;
    gap: 18px;
    color: rgba(255, 255, 255, 0.84);
}

.language-switcher {
    display: inline-flex;
    gap: 10px;
}

.language-switcher.centered {
    justify-content: center;
}

.count {
    color: var(--primary);
}

.menu-toggle {
    display: none;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: transparent;
    color: #fff;
    padding: 10px 14px;
    border-radius: 999px;
}

.nav-row {
    gap: 26px;
    padding: 0 0 16px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
}

.nav-row .phone {
    margin-left: auto;
    color: var(--primary);
}

.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 30% 25%, rgba(176, 110, 255, 0.46), transparent 26%),
        radial-gradient(circle at 40% 60%, rgba(255, 255, 255, 0.28), transparent 16%),
        linear-gradient(135deg, #160124, #2b0643 55%, #0b0623);
    color: #fff;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 25% 25%, rgba(255, 210, 94, 0.18), transparent 12%),
        radial-gradient(circle at 18% 52%, rgba(255, 255, 255, 0.08), transparent 18%),
        radial-gradient(circle at 62% 20%, rgba(190, 136, 255, 0.12), transparent 14%);
    opacity: 0.95;
}

.hero-grid {
    position: relative;
    gap: 56px;
    min-height: 620px;
    padding: 78px 0 42px;
}

.hero-grid > * {
    flex: 1;
}

.hero-art {
    position: relative;
    min-height: 430px;
}

.gold-card {
    position: absolute;
    left: 10%;
    top: 18%;
    width: 320px;
    aspect-ratio: 1.6;
    border-radius: 24px;
    transform: rotate(-10deg);
    background:
        linear-gradient(135deg, rgba(255, 211, 95, 0.98), rgba(90, 45, 10, 0.95) 34%, rgba(12, 6, 22, 0.96) 35%, rgba(24, 7, 40, 0.98) 100%);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45);
    padding: 24px;
}

.gold-card .chip,
.gold-card .crest {
    display: block;
    color: var(--primary);
    font-family: "Playfair Display", serif;
}

.gold-card .chip {
    font-size: 0.95rem;
    opacity: 0.9;
}

.gold-card .crest {
    position: absolute;
    left: 26px;
    bottom: 26px;
    font-size: 2.2rem;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(12px);
}

.orb-a {
    width: 140px;
    height: 140px;
    background: rgba(255, 213, 98, 0.48);
    right: 8%;
    bottom: 18%;
}

.orb-b {
    width: 280px;
    height: 280px;
    background: rgba(181, 121, 255, 0.34);
    left: 24%;
    top: 10%;
}

.hero-copy {
    position: relative;
    z-index: 1;
}

.eyebrow {
    margin: 0 0 12px;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #9b78cf;
    font-weight: 800;
}

.hero .eyebrow,
.site-footer .eyebrow,
.admin-shell .eyebrow {
    color: #d8b5ff;
}

h1,
h2,
h3 {
    margin: 0;
}

h1,
h2 {
    font-family: "Playfair Display", serif;
    letter-spacing: -0.03em;
}

h1 {
    max-width: 11ch;
    font-size: clamp(2.8rem, 5vw, 4.7rem);
    line-height: 0.98;
}

h2 {
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.02;
}

.lead {
    max-width: 52ch;
    margin: 20px 0 0;
    font-size: 1.08rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.82);
}

.hero-actions,
.filter-tabs,
.summary-total {
    display: flex;
    align-items: center;
    gap: 14px;
}

.hero-actions {
    margin-top: 32px;
}

.button,
.pill-link,
.filter-tabs a,
.hero-tabs li {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 22px;
    font-weight: 700;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
.pill-link:hover,
.filter-tabs a:hover {
    transform: translateY(-1px);
}

.button-gold {
    border: 0;
    background: linear-gradient(135deg, #ffe47a, #ffca2f);
    color: #321900;
    box-shadow: 0 18px 44px rgba(255, 193, 45, 0.28);
}

.button-ghost,
.pill-link,
.filter-tabs a,
.button-link {
    border: 1px solid rgba(89, 55, 125, 0.12);
    background: rgba(255, 255, 255, 0.85);
    color: #6a4f96;
}

.button-link {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
    cursor: pointer;
}

.hero-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 42px 0 0;
}

.hero-tabs li {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.74);
    padding-inline: 18px;
}

.hero-tabs .active {
    color: #311400;
    background: linear-gradient(135deg, #ffe58a, #ffc92a);
}

.section {
    padding: 88px 0;
}

.feature-band {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: -34px;
    position: relative;
    z-index: 2;
}

.feature-band article,
.featured-card,
.product-card,
.card,
.stat-card,
.order-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.64);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
}

.feature-band article {
    padding: 24px 26px;
}

.feature-band span,
.stat-card span,
.meta dt,
.cart-table span,
.muted {
    color: var(--muted);
}

.feature-band strong,
.stat-card strong {
    display: block;
    margin-top: 10px;
    font-size: 1.1rem;
}

.section-heading {
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.section-heading.compact {
    margin-bottom: 22px;
}

.featured-grid,
.catalogue-grid,
.footer-grid,
.stats-grid {
    display: grid;
    gap: 24px;
}

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

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

.featured-card,
.product-card,
.stat-card,
.order-card {
    padding: 26px;
}

.featured-card {
    min-height: 240px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(252, 248, 255, 0.95));
}

.product-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.product-visual {
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Playfair Display", serif;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.94);
    border-radius: 24px;
}

.product-gold {
    background: linear-gradient(145deg, #1a1424, #0f0a18), radial-gradient(circle at top left, #f8d36a, transparent 20%);
    box-shadow: inset 0 0 0 1px rgba(255, 215, 115, 0.16);
}

.product-silver {
    background: linear-gradient(145deg, #dadde6, #a9afc2);
    color: #2d3142;
}

.product-coins {
    background: radial-gradient(circle at 50% 45%, #f5d984, #b58a19 68%, #5b4110 100%);
    color: #402500;
}

.product-badge {
    align-self: flex-start;
    padding: 8px 14px;
    background: rgba(115, 70, 160, 0.08);
    color: #7a57ad;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 0;
}

.meta div {
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(112, 73, 160, 0.05);
}

.meta dt {
    font-size: 0.82rem;
    margin-bottom: 4px;
}

.meta dd {
    margin: 0;
    font-weight: 700;
}

.price-row {
    justify-content: space-between;
    gap: 12px;
}

.price-row strong {
    font-size: 1.15rem;
}

.buy-form,
.form-card,
.login-card,
.content-stack,
.summary-list {
    display: grid;
    gap: 16px;
}

.buy-form {
    margin-top: auto;
    grid-template-columns: 110px 1fr;
    align-items: end;
}

.buy-form label,
.form-card label,
.login-card label {
    display: grid;
    gap: 8px;
}

.buy-form input,
.form-card input,
.form-card select,
.form-card textarea,
.login-card input,
.cart-table input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px 16px;
    background: #fff;
}

.split-section {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 36px;
}

.split-section article {
    padding: 24px;
    border-radius: 26px;
    background: rgba(113, 75, 161, 0.06);
}

.site-footer {
    background: linear-gradient(180deg, #140323, #100118);
    color: rgba(255, 255, 255, 0.84);
    padding: 48px 0;
}

.footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
}

.footer-grid a {
    display: block;
    margin-top: 10px;
}

.inner-page {
    background:
        radial-gradient(circle at top right, rgba(125, 70, 214, 0.16), transparent 22%),
        linear-gradient(180deg, #f8f4fd, #f1ecf7);
    min-height: 100vh;
}

.page-wrap {
    padding: 48px 0 80px;
}

.page-top {
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 28px;
}

.card {
    padding: 28px;
}

.table-card {
    overflow: hidden;
}

.cart-layout,
.checkout-layout {
    align-items: start;
    gap: 24px;
}

.cart-layout > :first-child,
.checkout-layout > :first-child {
    flex: 1.4;
}

.cart-layout > :last-child,
.checkout-layout > :last-child {
    flex: 0.9;
}

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

.cart-table th,
.cart-table td {
    text-align: left;
    padding: 16px 12px;
    border-bottom: 1px solid rgba(80, 46, 121, 0.09);
    vertical-align: top;
}

.cart-table span {
    display: block;
    margin-top: 6px;
    font-size: 0.92rem;
}

.summary-card {
    position: sticky;
    top: 120px;
}

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

.summary-list li {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(80, 46, 121, 0.08);
}

.summary-total {
    justify-content: space-between;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(80, 46, 121, 0.08);
}

.empty-state,
.success-state,
.login-card {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.login-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px;
}

.admin-shell {
    background:
        radial-gradient(circle at top left, rgba(255, 209, 84, 0.16), transparent 18%),
        linear-gradient(180deg, #100118, #1c0828 42%, #f5effa 42.2%, #f5effa);
}

.stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

.stat-card strong {
    font-size: 2rem;
}

.admin-orders {
    display: grid;
    gap: 18px;
}

.admin-products {
    display: grid;
    gap: 18px;
}

.admin-text-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.admin-product-layout {
    display: grid;
    grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.25fr);
    gap: 24px;
    margin-bottom: 24px;
    align-items: start;
}

.admin-product-form {
    position: sticky;
    top: 120px;
}

.admin-field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.admin-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.product-admin-card {
    padding: 24px;
    border-radius: 26px;
    background: rgba(113, 75, 161, 0.06);
}

.product-admin-card form {
    margin: 0;
}

.order-head {
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.flash {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    padding: 14px 18px;
    background: var(--success);
    color: #21603c;
}

.flash-error {
    background: var(--danger);
    color: #7d1a37;
}

.cookie-banner {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 40;
    width: min(520px, calc(100vw - 32px));
    display: grid;
    gap: 18px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(20, 3, 35, 0.98), rgba(37, 11, 58, 0.98));
    color: rgba(255, 255, 255, 0.88);
    box-shadow: 0 24px 60px rgba(13, 2, 23, 0.42);
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-banner .eyebrow {
    margin-bottom: 10px;
}

.cookie-banner h2 {
    font-size: clamp(1.35rem, 2vw, 1.8rem);
    color: #fff;
}

.cookie-banner p:last-child {
    margin-bottom: 0;
}

.cookie-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

@media (max-width: 1080px) {
    .featured-grid,
    .catalogue-grid,
    .footer-grid,
    .feature-band,
    .stats-grid,
    .split-section {
        grid-template-columns: 1fr 1fr;
    }

    .hero-grid,
    .cart-layout,
    .checkout-layout {
        flex-direction: column;
    }

    .hero-copy h1 {
        max-width: 100%;
    }

    .summary-card {
        position: static;
    }

    .admin-product-layout,
    .admin-text-grid,
    .admin-field-grid {
        grid-template-columns: 1fr;
    }

    .admin-product-form {
        position: static;
    }
}

@media (max-width: 760px) {
    .topbar {
        flex-wrap: wrap;
    }

    .brand-logo {
        height: 46px;
        max-width: 180px;
    }

    .header-search {
        order: 3;
        width: 100%;
    }

    .header-links {
        display: none;
    }

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

    .nav-row {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        padding-bottom: 18px;
    }

    .nav-row.is-open {
        display: flex;
    }

    .nav-row .phone {
        margin-left: 0;
    }

    .hero-grid {
        min-height: auto;
        padding: 44px 0 30px;
    }

    .hero-art {
        min-height: 260px;
    }

    .gold-card {
        left: 8%;
        top: 14%;
        width: 220px;
    }

    .feature-band,
    .featured-grid,
    .catalogue-grid,
    .footer-grid,
    .stats-grid,
    .split-section {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 64px 0;
    }

    .section-heading,
    .page-top,
    .hero-actions,
    .buy-form {
        flex-direction: column;
        align-items: stretch;
    }

    .buy-form {
        display: grid;
        grid-template-columns: 1fr;
    }

    .cart-table thead {
        display: none;
    }

    .cart-table,
    .cart-table tbody,
    .cart-table tr,
    .cart-table td {
        display: block;
        width: 100%;
    }

    .cart-table tr {
        padding: 12px 0;
        border-bottom: 1px solid rgba(80, 46, 121, 0.09);
    }

    .cart-table td {
        padding: 10px 0;
        border: 0;
    }

    .cookie-banner {
        right: 16px;
        bottom: 16px;
        padding: 20px;
    }

    .cookie-banner__actions {
        flex-direction: column;
    }

    .admin-form-actions {
        flex-direction: column;
        align-items: stretch;
    }
}
