:root {
    --ink: #26211f;
    --muted: #6c625f;
    --paper: #fffaf7;
    --surface: #ffffff;
    --line: #eadfda;
    --rose: #cf5d7a;
    --rose-dark: #9e3854;
    --mint: #4a8c78;
    --gold: #c58a2d;
    --admin-bg: #f6f0ed;
    --shadow: 0 18px 50px rgba(91, 51, 39, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 80%;
}

body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    color: var(--ink);
    background: var(--paper);
}

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

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

.hero {
    position: relative;
    overflow: hidden;
    min-height: 92vh;
    padding: 24px clamp(18px, 4vw, 56px) 44px;
    background: var(--hero-bg-image) center/cover;
}

.hero::before {
    position: absolute;
    inset: 0;
    z-index: 0;
    content: "";
    background: linear-gradient(120deg, color-mix(in srgb, var(--paper) 72%, transparent), color-mix(in srgb, var(--paper) 54%, transparent));
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.topbar,
.hero-grid,
main,
.footer {
    width: min(1160px, 100%);
    margin: 0 auto;
}

.hero .topbar,
.hero .hero-grid {
    position: relative;
    z-index: 1;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.brand-logo,
.sidebar-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
}

.sidebar-logo {
    background: rgba(255, 255, 255, 0.12);
}

.brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 8px;
    color: #fff;
    background: var(--rose);
}

.admin-link,
.button,
.kit-footer a,
.admin-button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
}

.admin-link {
    padding: 0 16px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.72);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
    gap: clamp(26px, 5vw, 64px);
    align-items: center;
    padding-top: clamp(48px, 10vw, 118px);
}

.hero.hero-compact {
    min-height: auto;
    padding-bottom: 36px;
}

.hero.hero-compact .hero-grid {
    padding-top: clamp(32px, 6vw, 76px);
}

.hero-layout-text-right .hero-copy {
    order: 2;
}

.hero-layout-text-right .hero-showcase {
    order: 1;
}

.hero-layout-centered,
.hero-layout-no-showcase {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
}

.hero-layout-centered .hero-copy,
.hero-layout-no-showcase .hero-copy,
.hero-layout-centered .hero-copy p:not(.eyebrow),
.hero-layout-no-showcase .hero-copy p:not(.eyebrow),
.hero-layout-centered h1,
.hero-layout-no-showcase h1 {
    margin-left: auto;
    margin-right: auto;
}

.hero-layout-centered .hero-actions,
.hero-layout-no-showcase .hero-actions {
    justify-content: center;
}

.hero-layout-centered .hero-showcase {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-layout-centered .showcase-card,
.hero-layout-centered .showcase-card.large {
    min-height: 170px;
}

.eyebrow,
.section-kicker {
    margin: 0 0 12px;
    color: var(--rose-dark);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 760px;
    margin-bottom: 18px;
    font-size: clamp(2.35rem, 7vw, 5.4rem);
    line-height: 0.98;
    letter-spacing: 0;
}

.hero-copy p:not(.eyebrow) {
    max-width: 620px;
    color: #584d49;
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.7;
}

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

.button {
    padding: 0 20px;
}

.button.primary,
.admin-button.primary {
    color: #fff;
    background: var(--rose);
}

.button.ghost {
    background: #fff;
    border: 1px solid var(--line);
}

.hero-showcase {
    display: grid;
    gap: 14px;
}

.showcase-card {
    min-height: 138px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, color-mix(in srgb, var(--rose) 94%, transparent), rgba(197, 138, 45, 0.88));
    box-shadow: var(--shadow);
}

.showcase-card.large {
    min-height: 240px;
    background:
        linear-gradient(135deg, rgba(45, 32, 30, 0.42), color-mix(in srgb, var(--rose) 58%, transparent)),
        url("https://images.unsplash.com/photo-1519671482749-fd09be7ccebf?auto=format&fit=crop&w=1000&q=80") center/cover;
}

.showcase-card.cool {
    background: linear-gradient(135deg, color-mix(in srgb, var(--mint) 96%, transparent), rgba(69, 116, 163, 0.88));
}

.showcase-card span {
    display: block;
    margin-bottom: 14px;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.showcase-card strong {
    display: block;
    max-width: 320px;
    font-size: clamp(1.35rem, 2vw, 2.1rem);
    line-height: 1.08;
}

main {
    padding: 42px clamp(18px, 3vw, 28px) 70px;
}

.filters-panel {
    display: grid;
    grid-template-columns: minmax(220px, 0.7fr) minmax(280px, 1fr);
    gap: 22px;
    align-items: end;
    margin-bottom: 24px;
}

h2 {
    margin-bottom: 0;
    font-size: clamp(1.8rem, 4vw, 3rem);
}

.search-row {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 12px;
}

.search-box,
.select-box,
.form-field {
    display: grid;
    gap: 7px;
}

.search-box span,
.select-box span,
.form-field span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.form-field small {
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.35;
}

input,
select,
textarea {
    width: 100%;
    min-height: 46px;
    padding: 11px 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: #fff;
    outline: 0;
}

textarea {
    min-height: 96px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--rose);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--rose) 14%, transparent);
}

.password-control {
    position: relative;
    display: block;
}

.password-control input {
    min-width: 0;
    padding-right: 58px;
}

.password-control button {
    position: absolute;
    top: 50%;
    right: 8px;
    min-height: 30px;
    padding: 0 8px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 6px;
    color: var(--muted);
    background: transparent;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 700;
}

.password-control button:hover {
    color: var(--rose-dark);
    background: #fff0f4;
}

.password-rules {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 12px;
    border: 1px dashed var(--line);
    border-radius: 8px;
    background: #fff;
}

.password-rules[hidden] {
    display: none;
}

.password-rules strong {
    flex-basis: 100%;
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
}

.password-rules span {
    padding: 5px 8px;
    border-radius: 999px;
    color: var(--muted);
    background: #f8f2ef;
    font-size: 0.78rem;
    font-weight: 700;
}

.password-rules span.approved {
    color: #285744;
    background: #e8f5ee;
}

.category-tabs {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tab {
    min-height: 40px;
    padding: 0 15px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    background: #fff;
    cursor: pointer;
    font-weight: 800;
}

.tab.active {
    color: #fff;
    border-color: var(--rose);
    background: var(--rose);
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.kit-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 10px 28px rgba(91, 51, 39, 0.08);
}

.kit-card[hidden] {
    display: none;
}

.kit-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #f1e4df;
}

.kit-image > img,
.kit-carousel,
.kit-carousel-track {
    width: 100%;
    height: 100%;
}

.kit-carousel {
    position: relative;
    overflow: hidden;
}

.kit-image img,
.kit-carousel-track img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.kit-carousel-track {
    position: relative;
}

.kit-carousel-track img {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 180ms ease;
}

.kit-carousel-track img.active {
    opacity: 1;
}

.carousel-button {
    position: absolute;
    top: 50%;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    transform: translateY(-50%);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    color: #fff;
    background: rgba(20, 16, 14, 0.48);
    cursor: pointer;
    font-size: 1.35rem;
    line-height: 1;
}

.carousel-button.prev {
    left: 10px;
}

.carousel-button.next {
    right: 10px;
}

.carousel-dots {
    position: absolute;
    right: 12px;
    bottom: 10px;
    display: flex;
    gap: 5px;
}

.carousel-dots span {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
}

.carousel-dots span.active {
    width: 18px;
    background: #fff;
}

.image-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--rose) 85%, transparent), color-mix(in srgb, var(--mint) 86%, transparent)),
        radial-gradient(circle at 22% 18%, #fff 0 8%, transparent 9%);
}

.image-placeholder span {
    display: grid;
    width: 76px;
    height: 76px;
    place-items: center;
    border: 2px solid rgba(255, 255, 255, 0.72);
    border-radius: 50%;
    color: #fff;
    font-size: 2.4rem;
    font-weight: 800;
}

.kit-content {
    padding: 18px;
}

.kit-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.kit-meta span {
    padding: 6px 9px;
    border-radius: 999px;
    color: var(--rose-dark);
    background: #fff0f4;
    font-size: 0.75rem;
    font-weight: 800;
}

.kit-card h3 {
    margin-bottom: 8px;
    font-size: 1.18rem;
}

.kit-card p {
    min-height: 64px;
    color: var(--muted);
    line-height: 1.55;
}

.kit-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 8px;
}

.kit-footer a {
    min-height: 38px;
    padding: 0 14px;
    color: #fff;
    background: var(--mint);
}

.kit-footer-actions {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.kit-footer a.details-link {
    color: var(--rose-dark);
    border: 1px solid var(--line);
    background: #fff;
}

.catalog-card-preview {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fffaf7;
}

.catalog-card-preview > span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.gallery-manager figcaption {
    display: grid;
    gap: 6px;
}

.gallery-manager label {
    display: flex;
    align-items: center;
    gap: 6px;
}

.gallery-manager input[type="number"] {
    min-height: 34px;
    max-width: 72px;
    padding: 5px 8px;
}

.item-detail-page {
    width: min(1160px, calc(100% - 36px));
    padding: 22px 0 54px;
}

.detail-topbar {
    margin-bottom: 24px;
}

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

.item-detail-media {
    overflow: hidden;
    min-height: 420px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f1e4df;
    box-shadow: var(--shadow);
}

.detail-carousel {
    aspect-ratio: 4 / 3;
}

.item-detail-content {
    display: grid;
    gap: 14px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(91, 51, 39, 0.08);
}

.item-detail-content h1 {
    margin-bottom: 0;
    font-size: clamp(2rem, 4vw, 3.6rem);
}

.item-detail-content > p {
    color: var(--muted);
    line-height: 1.65;
}

.item-detail-content > strong {
    font-size: 1.35rem;
}

.catalog-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.catalog-pagination[hidden] {
    display: none;
}

.catalog-pagination button {
    display: grid;
    min-width: 38px;
    min-height: 38px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: #fff;
    cursor: pointer;
    font-weight: 800;
}

.catalog-pagination button.active {
    color: #fff;
    border-color: var(--rose);
    background: var(--rose);
}

.empty-state {
    margin: 34px 0;
    padding: 22px;
    border: 1px dashed var(--line);
    border-radius: 8px;
    text-align: center;
    color: var(--muted);
    background: #fff;
}

.footer-section {
    margin-top: 52px;
    background: color-mix(in srgb, var(--surface) 82%, var(--mint) 18%);
    border-top: 1px solid color-mix(in srgb, var(--mint) 24%, var(--line));
}

.footer {
    width: min(1160px, calc(100% - 36px));
    margin: 0 auto;
    padding: 34px 0 28px;
    color: var(--muted);
}

.footer-main {
    display: grid;
    grid-template-columns: minmax(280px, 0.92fr) minmax(360px, 1.08fr);
    gap: 22px;
    align-items: start;
}

.footer-brand,
.footer-contact {
    display: grid;
    gap: 8px;
    align-content: start;
    min-height: 170px;
    border: 1px solid color-mix(in srgb, var(--mint) 18%, var(--line));
    border-radius: 8px;
    padding: 20px;
    background: color-mix(in srgb, var(--surface) 92%, var(--paper));
    box-shadow: 0 12px 28px rgba(91, 51, 39, 0.06);
}

.footer-contact {
    justify-items: stretch;
    text-align: left;
}

.footer strong {
    font-size: 1.35rem;
    color: var(--ink);
}

.footer-contact > p {
    margin: -2px 0 6px;
    max-width: 560px;
    line-height: 1.45;
}

.footer-kicker {
    color: var(--rose-dark);
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-address {
    max-width: 460px;
    display: inline-flex;
    gap: 8px;
    align-items: flex-start;
    color: var(--muted);
    line-height: 1.45;
}

.footer-address svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

a.footer-address:hover {
    color: var(--rose-dark);
}

.footer-socials {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
}

.footer-socials .social-card {
    min-height: 74px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid color-mix(in srgb, var(--mint) 18%, var(--line));
    border-radius: 8px;
    padding: 12px;
    color: var(--ink);
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--surface) 92%, white), color-mix(in srgb, var(--paper) 88%, white));
    font-weight: 800;
    box-shadow: 0 10px 22px rgba(91, 51, 39, 0.05);
}

.footer-socials .social-card > span:last-child {
    display: grid;
    gap: 2px;
}

.footer-socials strong {
    font-size: 0.92rem;
}

.footer-socials small {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.25;
}

.social-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 8px;
    color: var(--rose-dark);
    background: color-mix(in srgb, var(--rose) 12%, white);
}

.footer-socials svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.footer-socials .instagram .social-icon {
    color: #c13584;
    background: color-mix(in srgb, #f9d7ea 72%, white);
}

.footer-socials .facebook .social-icon {
    color: #1877f2;
    background: color-mix(in srgb, #dbeafe 72%, white);
}

.footer-socials .tiktok .social-icon {
    color: #111827;
    background: color-mix(in srgb, #e5e7eb 72%, white);
}

.footer-socials .site .social-icon {
    color: var(--mint);
    background: color-mix(in srgb, var(--mint) 15%, white);
}

.footer-socials .whatsapp .social-icon {
    color: #128c7e;
    background: color-mix(in srgb, #d9fbe8 72%, white);
}

.footer-socials .social-card:hover {
    border-color: var(--rose);
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(91, 51, 39, 0.09);
}

.footer-map {
    height: 240px;
    margin-top: 18px;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--mint) 18%, var(--line));
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 12px 28px rgba(91, 51, 39, 0.06);
}

.footer-map iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

.footer-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    margin-top: 22px;
    padding-top: 14px;
    border-top: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
    font-size: 0.82rem;
}

.admin-body {
    min-height: 100vh;
    padding: 26px;
    background: var(--admin-bg);
    font-size: 92%;
}

.admin-body.has-sidebar {
    padding: 0;
    background: var(--admin-bg);
}

.admin-shell {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.admin-shell.with-sidebar {
    width: auto;
    min-height: 100vh;
    margin-left: 270px;
    padding: 28px;
    font-size: 100%;
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    display: flex;
    width: 270px;
    flex-direction: column;
    padding: 22px;
    color: #fff;
    background: #241f1d;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    font-size: 1.05rem;
}

.sidebar-nav {
    display: grid;
    gap: 10px;
}

.sidebar-group {
    display: grid;
    gap: 4px;
}

.sidebar-parent {
    display: flex;
    width: 100%;
    min-height: 34px;
    align-items: center;
    justify-content: space-between;
    border: 0;
    border-radius: 8px;
    padding: 8px 10px;
    color: rgba(255, 255, 255, 0.58);
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sidebar-parent::after {
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    content: "";
    transform: rotate(-45deg);
    transition: transform 0.18s ease;
}

.sidebar-parent:hover,
.sidebar-group.open .sidebar-parent {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-group.open .sidebar-parent::after {
    transform: rotate(45deg);
}

.sidebar-children {
    display: none;
    gap: 3px;
}

.sidebar-group.open .sidebar-children {
    display: grid;
}

.sidebar-nav a,
.sidebar-child {
    min-height: 42px;
    padding: 11px 13px 11px 24px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 800;
    position: relative;
}

.sidebar-child::before {
    position: absolute;
    left: 11px;
    top: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    content: "";
    background: rgba(255, 255, 255, 0.32);
    transform: translateY(-50%);
}

.sidebar-child.active::before {
    background: var(--mint);
}

.sidebar-nav a.active,
.sidebar-nav a:hover {
    color: #fff;
    background: color-mix(in srgb, var(--rose) 28%, transparent);
}

.sidebar-footer {
    display: grid;
    gap: 12px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.sidebar-footer span {
    display: block;
    font-weight: 800;
}

.sidebar-footer small,
.sidebar-footer a {
    color: rgba(255, 255, 255, 0.68);
}

.sidebar-footer-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.sidebar-footer-actions a {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    border-radius: 8px;
    padding: 0 10px;
    background: rgba(255, 255, 255, 0.06);
    font-weight: 800;
}

.danger-text {
    color: #ffb9b9 !important;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 20px;
}

.admin-header h1 {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
}

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

.admin-button {
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--line);
    background: #fff;
}

.admin-button.danger {
    color: #fff;
    border-color: #a93636;
    background: #a93636;
}

.admin-grid {
    display: grid;
    grid-template-columns: minmax(300px, 0.75fr) minmax(420px, 1fr);
    gap: 18px;
    align-items: start;
}

.panel {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(91, 51, 39, 0.08);
}

.panel h2 {
    margin-bottom: 16px;
    font-size: 1.2rem;
}

.panel-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.panel-title-row h2 {
    margin-bottom: 0;
}

.panel-title-row span {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.dashboard-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--surface) 88%, var(--mint)), #fff);
}

.dashboard-hero h2 {
    margin: 4px 0 6px;
    font-size: clamp(1.4rem, 2vw, 2rem);
}

.dashboard-hero .helper-text {
    max-width: 680px;
    margin: 0;
}

.dashboard-hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.dashboard-stats {
    margin-bottom: 18px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}

.dashboard-panel {
    min-height: 100%;
}

.analytics-help {
    background: color-mix(in srgb, var(--surface) 88%, var(--paper));
}

.analytics-help p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.analytics-help p + p {
    margin-top: 10px;
}

.stat-card small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-weight: 700;
}

.mini-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.mini-stats article {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    background: color-mix(in srgb, var(--paper) 72%, #fff);
}

.mini-stats span {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.mini-stats strong {
    display: block;
    margin-top: 4px;
    font-size: 1.45rem;
}

.compact-actions {
    margin-top: 16px;
}

.rank-list {
    display: grid;
    gap: 10px;
}

.rank-list article {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    background: #fff;
}

.rank-number {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #fff;
    background: var(--rose);
    font-weight: 900;
}

.rank-list strong,
.rank-list small {
    display: block;
}

.rank-list small {
    margin-top: 3px;
    color: var(--muted);
    font-weight: 700;
}

.narrow-panel {
    max-width: 820px;
    margin-inline: auto;
}

.list-toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.filters-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr)) auto auto;
    gap: 10px;
    align-items: end;
    flex: 1;
}

.filters-form .form-field {
    min-width: 0;
}

.filters-form.audit-filters {
    grid-template-columns: minmax(220px, 1.3fr) repeat(4, minmax(130px, 1fr)) auto auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.plan-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.manual-panel ol {
    margin: 0;
    padding-left: 22px;
    color: var(--muted);
    line-height: 1.65;
}

.manual-panel li + li {
    margin-top: 8px;
}

.stat-card {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(91, 51, 39, 0.07);
}

.stat-card span {
    display: block;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

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

.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.audit-list {
    display: grid;
    gap: 10px;
}

.audit-list article {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.audit-list span {
    display: block;
    margin: 4px 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.audit-list p {
    margin: 0;
    color: var(--muted);
}

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

.settings-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fffaf7;
}

.settings-tabs button {
    min-height: 38px;
    padding: 0 14px;
    border: 0;
    border-radius: 6px;
    color: var(--muted);
    background: transparent;
    cursor: pointer;
    font-weight: 800;
}

.settings-tabs button.active {
    color: #fff;
    background: var(--rose);
}

.settings-tab-panel {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.settings-tab-panel[hidden] {
    display: none;
}

.settings-tab-panel h3 {
    margin: 0;
    font-size: 1.15rem;
}

.settings-savebar {
    position: sticky;
    bottom: 0;
    display: flex;
    justify-content: flex-end;
    padding: 14px 0 0;
    background: linear-gradient(180deg, transparent, #fff 34%);
}

.identity-editor {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
    gap: 16px;
    align-items: start;
}

.identity-controls {
    display: grid;
    gap: 14px;
}

.identity-preview {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fffaf7;
}

.identity-preview h4 {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.asset-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.asset-row > div {
    display: grid;
    gap: 8px;
    min-height: 96px;
    align-content: start;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.asset-row .asset-full {
    grid-column: 1 / -1;
}

.asset-row span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.asset-preview {
    max-width: 180px;
    max-height: 60px;
    object-fit: contain;
}

.asset-preview.wide-preview {
    width: 100%;
    max-width: none;
    height: 132px;
    max-height: none;
    border-radius: 8px;
    object-fit: cover;
}

.favicon-preview {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.empty-preview {
    color: var(--muted);
    font-size: 0.9rem;
}

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

.image-preview-grid[hidden] {
    display: none;
}

.image-preview-grid figure {
    overflow: hidden;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fffaf7;
}

.image-preview-grid img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.image-preview-grid figcaption {
    padding: 7px 9px;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 800;
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.form-section {
    display: grid;
    gap: 12px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fffaf7;
}

.form-section h3 {
    margin: 0;
    font-size: 1.1rem;
}

.layout-editor {
    display: grid;
    grid-template-columns: minmax(360px, 0.92fr) minmax(420px, 1.08fr);
    gap: 18px;
    align-items: start;
}

.layout-controls,
.layout-group {
    display: grid;
    gap: 12px;
}

.layout-group h4 {
    margin: 0;
    font-size: 0.98rem;
}

.layout-picker {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.layout-picker.two-layouts {
    grid-template-columns: 1fr;
}

.layout-option {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 8px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

.layout-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.layout-option:has(input:checked) {
    border-color: var(--rose);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--rose) 16%, transparent);
}

.layout-option strong {
    font-size: 0.95rem;
}

.layout-option small {
    grid-column: 2;
    color: var(--muted);
    line-height: 1.35;
}

.layout-preview {
    display: grid;
    grid-row: span 2;
    height: 76px;
    gap: 8px;
    padding: 10px;
    border-radius: 8px;
    background: #f8f2ef;
}

.layout-preview i,
.layout-preview b {
    display: block;
    border-radius: 6px;
}

.layout-preview i {
    background: var(--rose);
}

.layout-preview b {
    background: var(--mint);
}

.layout-preview.split-left,
.layout-preview.split-right {
    grid-template-columns: 1.2fr 0.8fr;
}

.layout-preview.split-right i {
    order: 2;
}

.layout-preview.split-right b {
    order: 1;
}

.layout-preview.centered {
    grid-template-rows: 1fr 0.45fr;
}

.layout-preview.centered i {
    width: 64%;
    justify-self: center;
}

.layout-preview.centered b {
    width: 86%;
    justify-self: center;
}

.layout-preview.stacked-hero,
.layout-preview.stacked-catalog {
    grid-template-rows: 1fr 0.65fr;
}

.layout-preview.stacked-catalog i {
    order: 2;
}

.layout-preview.stacked-catalog b {
    order: 1;
}

.toggle-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    font-weight: 700;
}

.toggle-row input {
    width: 18px;
    min-height: 18px;
}

.landing-live-preview {
    margin-top: 4px;
    position: sticky;
    top: 22px;
}

.preview-browser {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 30px rgba(91, 51, 39, 0.08);
}

.preview-browser-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    background: #fffaf7;
}

.preview-browser-bar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--line);
}

.preview-browser-bar span:first-child {
    background: var(--rose);
}

.preview-browser-bar strong {
    margin-left: 8px;
    color: var(--muted);
    font-size: 0.82rem;
}

.preview-page {
    display: grid;
    gap: 14px;
    padding: 16px;
    background: var(--paper);
}

.preview-hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 14px;
    align-items: stretch;
    min-height: 250px;
    padding: 18px;
    border-radius: 8px;
    background:
        linear-gradient(120deg, color-mix(in srgb, var(--paper) 90%, transparent), color-mix(in srgb, var(--paper) 76%, transparent)),
        linear-gradient(135deg, color-mix(in srgb, var(--rose) 28%, #fff), color-mix(in srgb, var(--mint) 26%, #fff));
}

.preview-copy {
    display: grid;
    align-content: center;
    gap: 10px;
}

.preview-copy small {
    color: var(--rose-dark);
    font-weight: 800;
    text-transform: uppercase;
}

.preview-copy h4 {
    max-width: 420px;
    margin: 0;
    font-size: clamp(1.35rem, 3vw, 2rem);
    line-height: 1.02;
}

.preview-copy p {
    max-width: 430px;
    margin: 0;
    color: var(--muted);
    line-height: 1.45;
}

.preview-actions {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.preview-actions i,
.preview-actions b {
    width: 92px;
    height: 30px;
    border-radius: 8px;
}

.preview-actions i {
    background: var(--rose);
}

.preview-actions b {
    border: 1px solid var(--line);
    background: #fff;
}

.preview-showcase {
    display: grid;
    gap: 8px;
}

.preview-showcase article {
    min-height: 58px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--rose), var(--mint));
}

.preview-showcase article:first-child {
    min-height: 98px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--rose) 78%, #222), color-mix(in srgb, var(--mint) 65%, #fff));
}

.preview-catalog {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-radius: 8px;
    background: #fff;
}

.preview-filter {
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fffaf7;
}

.preview-tabs {
    display: flex;
    gap: 8px;
}

.preview-tabs span {
    width: 74px;
    height: 24px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--rose) 18%, #fff);
}

.preview-tabs span:first-child {
    background: var(--rose);
}

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

.preview-cards article {
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--rose) 35%, #fff), color-mix(in srgb, var(--mint) 35%, #fff));
}

.landing-live-preview[data-hero-layout="text_right"] .preview-copy {
    order: 2;
}

.landing-live-preview[data-hero-layout="text_right"] .preview-showcase {
    order: 1;
}

.landing-live-preview[data-hero-layout="centered"] .preview-hero,
.landing-live-preview[data-showcase="hidden"] .preview-hero {
    grid-template-columns: 1fr;
    text-align: center;
}

.landing-live-preview[data-hero-layout="centered"] .preview-copy,
.landing-live-preview[data-showcase="hidden"] .preview-copy,
.landing-live-preview[data-hero-layout="centered"] .preview-copy h4,
.landing-live-preview[data-hero-layout="centered"] .preview-copy p,
.landing-live-preview[data-showcase="hidden"] .preview-copy h4,
.landing-live-preview[data-showcase="hidden"] .preview-copy p {
    justify-items: center;
    margin-left: auto;
    margin-right: auto;
}

.landing-live-preview[data-hero-layout="centered"] .preview-actions,
.landing-live-preview[data-showcase="hidden"] .preview-actions {
    justify-content: center;
}

.landing-live-preview[data-hero-layout="centered"] .preview-showcase {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landing-live-preview[data-showcase="hidden"] .preview-showcase {
    display: none;
}

.landing-live-preview[data-catalog-position="before_hero"] .preview-catalog {
    order: -1;
}

input[type="color"] {
    min-height: 52px;
    padding: 5px;
}

.two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.item-list {
    display: grid;
    gap: 10px;
}

.admin-item {
    display: grid;
    grid-template-columns: 74px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.admin-item.compact-item {
    grid-template-columns: 1fr auto;
}

.admin-thumb {
    width: 74px;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
    background: #f1e4df;
}

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

.admin-item h3 {
    margin: 0 0 4px;
    font-size: 1rem;
}

.admin-item p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.item-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.notice {
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 8px;
    color: #285744;
    background: #e8f5ee;
}

.error {
    color: #973838;
    background: #fff0f0;
}

.login-card {
    width: min(420px, 100%);
    margin: 12vh auto;
}

.login-screen {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px;
    background:
        radial-gradient(circle at 18% 18%, color-mix(in srgb, var(--mint) 28%, transparent), transparent 34%),
        radial-gradient(circle at 84% 12%, color-mix(in srgb, var(--rose) 18%, transparent), transparent 32%),
        linear-gradient(135deg, color-mix(in srgb, var(--admin-bg) 82%, #fff), color-mix(in srgb, var(--mint) 16%, var(--admin-bg)));
}

.client-login {
    width: min(980px, 100%);
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(340px, 430px);
    gap: 20px;
    align-items: stretch;
}

.login-identity,
.login-card {
    border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
    border-radius: 8px;
    background: color-mix(in srgb, var(--surface) 90%, var(--paper));
    box-shadow: 0 24px 70px rgba(91, 51, 39, 0.12);
}

.login-identity {
    min-height: 430px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 26px;
    position: relative;
    overflow: hidden;
}

.login-identity::before {
    position: absolute;
    inset: 0;
    content: "";
    background:
        linear-gradient(145deg, color-mix(in srgb, var(--rose) 18%, transparent), transparent 48%),
        linear-gradient(0deg, color-mix(in srgb, var(--surface) 84%, transparent), transparent);
}

.login-identity > * {
    position: relative;
    z-index: 1;
}

.login-logo-wrap {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    margin-bottom: auto;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(91, 51, 39, 0.12);
}

.login-logo-wrap img {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.login-identity h1 {
    margin: 8px 0 10px;
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 1;
}

.login-identity p {
    max-width: 440px;
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.login-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.login-meta span {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 11px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 800;
}

.login-card.panel {
    margin: 0;
    padding: 28px;
}

.login-card-header {
    margin-bottom: 18px;
}

.login-card-header span {
    color: var(--rose-dark);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.login-card-header h2 {
    margin: 6px 0 0;
    font-size: clamp(1.7rem, 3vw, 2.35rem);
}

.login-site-link {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 14px;
    color: var(--rose-dark);
    font-weight: 900;
}

.helper-text {
    margin-top: 10px;
    color: var(--muted);
    font-size: 0.9rem;
}

.table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

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

.admin-table th {
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.pagination a {
    display: grid;
    min-width: 38px;
    min-height: 38px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    font-weight: 800;
}

.pagination a.active {
    color: #fff;
    border-color: var(--rose);
    background: var(--rose);
}

@media (max-width: 900px) {
    .hero-grid,
    .hero-layout-centered .hero-showcase,
    .filters-panel,
    .item-detail,
    .admin-grid,
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-hero-actions {
        justify-content: flex-start;
    }

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

    .admin-shell.with-sidebar {
        margin-left: 0;
        padding: 18px;
    }

    .sidebar {
        position: static;
        width: auto;
        min-height: auto;
    }

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

    .list-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

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

    .layout-editor {
        grid-template-columns: 1fr;
    }

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

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

    .footer-brand,
    .footer-contact {
        min-height: auto;
    }

    .footer-map {
        height: 220px;
    }

    .client-login {
        grid-template-columns: 1fr;
    }

    .login-identity {
        min-height: 320px;
    }

    .landing-live-preview {
        position: static;
    }
}

@media (max-width: 640px) {
    .hero {
        min-height: auto;
    }

    .topbar,
    .admin-header,
    .kit-footer,
    .kit-footer-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .search-row,
    .catalog-grid,
    .preview-hero,
    .landing-live-preview[data-hero-layout="centered"] .preview-showcase,
    .preview-cards,
    .identity-editor,
    .two-cols,
    .asset-row,
    .color-grid,
    .image-preview-grid,
    .layout-option,
    .admin-item,
    .stats-grid,
    .filters-form {
        grid-template-columns: 1fr;
    }

    .admin-thumb {
        width: 100%;
    }

    .layout-option small {
        grid-column: 1;
    }

    .layout-preview {
        grid-row: auto;
    }
}
