:root {
    --brand-red: #d73035;
    --brand-dark: #780e14;
    --brand-gray: #f0f1f2;
    --ink: #1f1f1f;
    --muted: #6d6f73;
    --white: #ffffff;
    --cards-visible: 6;
    --header-sticky-offset: 0px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background: var(--brand-dark);
    color: var(--ink);
}

.site-frame {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 1;
}

[hidden] {
    display: none !important;
}

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

.main-header {
    background: var(--white);
    border-bottom: 4px solid var(--brand-red);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: .25rem 1.5rem .25rem;
    gap: .75rem;
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.header-actions form {
    margin: 0;
}

.welcome-label {
    font-weight: 600;
    color: var(--brand-dark);
}

.brand {
    font-weight: 700;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0;
    margin: 0;
}

.brand-highlight {
    color: var(--brand-red);
}

.brand-logo {
    display: block;
    height: 90px;
    width: auto;
}

.main-nav {
    display: flex;
    align-items: stretch;
    gap: 0.75rem;
    flex: 1;
    margin: 0 1rem;
    padding-bottom: 0.2rem;
}

.main-nav.main-nav-center {
    justify-content: center;
}

.main-nav a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    color: var(--ink);
    font-weight: 600;
    padding: 0.75rem 0;
    border-radius: 14px;
    background: #f7f8fa;
    box-shadow: 0 6px 14px rgba(0, 0, 0, .08);
    border: 1px solid #e3e5e8;
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease, color .12s ease;
}

.category-context-menu {
    position: fixed;
    z-index: 9999;
    background: #ffffff;
    border: 1px solid #dfe1e5;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .12);
    border-radius: 10px;
    padding: .35rem;
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.category-context-menu button {
    border: none;
    background: #f6f7f9;
    padding: .5rem .75rem;
    border-radius: 8px;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    text-align: left;
}

.category-context-menu button:hover {
    background: #eef0f3;
}

.board-search input[type="search"] {
    padding: .7rem 1rem;
    border: 1px solid #dfe1e5;
    border-radius: 12px;
    background: #f9fafb;
    min-width: 280px;
    font-weight: 700;
    color: #000;
    display: block;
    margin-top: .25rem;
}

.main-nav a:hover {
    color: var(--brand-red);
    background: #eef0f3;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .12);
    transform: translateY(-1px);
}

.category-inline-select {
    width: 100%;
    padding: .45rem .5rem;
    border: 1px solid #dfe1e5;
    border-radius: 10px;
    background: #f9fafb;
    font-size: .95rem;
}

.price-inline-editor {
    display: flex;
    flex-direction: column;
    gap: .2rem;
}

.price-inline-editor input[type="number"] {
    width: 100%;
    padding: .45rem .5rem;
    border: 1px solid #dfe1e5;
    border-radius: 10px;
    background: #f9fafb;
    font-size: .95rem;
}

.price-display {
    font-weight: 700;
    color: var(--brand-dark);
}

.inline-toggle {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-weight: 600;
}

.product-table tr.is-dirty {
    background: #fff7f0;
    box-shadow: inset 0 0 0 2px rgba(215, 48, 53, .12);
}

.image-editor {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.editor-preview .preview-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    background: #111;
}

.editor-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(var(--img-scale, 1)) translate(calc(var(--img-pos-x, 0) * 1%), calc(var(--img-pos-y, 0) * 1%));
    transform-origin: center;
}

.editor-controls {
    display: grid;
    gap: .85rem;
}

.editor-controls label {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    font-weight: 600;
}

.nav-cart {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    position: relative;
}

.cart-count {
    min-width: 22px;
    height: 22px;
    border-radius: 999px;
    background: var(--brand-red);
    color: var(--white);
    font-size: .75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 .55rem;
    line-height: 1;
    box-shadow: 0 8px 16px rgba(0, 0, 0, .15);
}

.page-content {
    flex: 1;
    padding: 3rem 2rem 4rem;
}

.main-footer {
    background: #202022;
    color: var(--brand-gray);
    padding: 1.5rem 2rem;
    text-align: center;
}

.hero,
.catalog-header {
    background: var(--white);
    border-radius: 24px;
    padding: 2.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.catalog-header {
    grid-template-columns: 1fr;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: .2rem;
    font-size: .75rem;
    color: var(--brand-red);
    margin: 0 0 .5rem;
    font-weight: 600;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin: 0;
}

.hero-copy {
    color: var(--muted);
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.cta-btn {
    background: var(--brand-red);
    color: var(--white);
    border: none;
    padding: .85rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cta-btn.small {
    padding: .5rem 1.2rem;
    font-size: .85rem;
}

.cta-btn.full-width {
    width: 100%;
    justify-content: center;
}

.cta-btn:hover {
    background: var(--brand-dark);
}

.ghost-btn {
    border: 2px solid var(--brand-red);
    color: var(--brand-red);
    padding: .7rem 1.4rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
}

.ghost-btn.small {
    padding: .45rem 1rem;
    font-size: .85rem;
}

.hero-card {
    background: var(--brand-gray);
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid #dedede;
}

.hero-card__label {
    font-weight: 600;
    margin: 0;
}

.hero-card__kpi {
    font-size: 2.5rem;
    margin: .2rem 0 1rem;
    color: var(--brand-red);
}

.category-carousels {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.image-carousel .slider-track {
    display: flex;
    gap: var(--carousel-gap, 1rem);
}

.category-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: .35rem;
}

.category-carousel.image-carousel {
    background: transparent;
    box-shadow: none;
    padding: 0;
    border: none;
}

.image-carousel .carousel-shell {
    background: transparent;
    border: 2px solid #fff;
    padding: 0.75rem;
    border-radius: 16px;
}

.image-carousel .slider-track > * {
    flex: 0 0 var(--box-w, 320px);
    scroll-snap-align: center;
}

.image-carousel .slider-window {
    position: relative;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.image-carousel .slider-window::-webkit-scrollbar {
    display: none;
}

.promo-card {
    background: transparent;
    border-radius: 16px;
    border: 1px solid transparent;
    box-shadow: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    width: var(--box-w, 320px);
}

.promo-card .card-image {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 2px solid transparent;
    background: transparent;
    width: var(--box-w, 320px);
    height: var(--box-h, 180px);
}

.promo-card .card-image img {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: translate(calc(-50% + (var(--img-pos-x, 0) * 1%)), calc(-50% + (var(--img-pos-y, 0) * 1%))) scale(var(--img-scale, 1));
    transform-origin: center;
}

.promo-card.empty {
    align-items: center;
    justify-content: center;
    color: var(--muted);
}

.promo-card.dashed-upload {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    border-radius: 50%;
    border: 2px dashed #c8ccd0;
    background: #fff;
    color: var(--brand-red);
    font-size: 1.6rem;
    font-weight: 800;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    display: inline-flex;
}

.carousel-add-wrap {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    pointer-events: auto;
}

.image-carousel.placeholder {
    display: flex;
    justify-content: center;
}

.solid-bg {
    background: #fff !important;
    color: var(--brand-red);
    align-self: flex-start;
    padding: .35rem .6rem;
    border-radius: 10px;
}

.carousel-manage-grid {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: .5rem;
}

.carousel-manage-card {
    border: 1px solid #e5e7ea;
    border-radius: 12px;
    padding: .85rem;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: .65rem;
    min-width: var(--box-w, 260px);
}

.carousel-manage-card .card-image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    width: var(--box-w, 260px);
    height: var(--box-h, 180px);
    background: #0f0f0f;
}

.carousel-manage-card .card-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: translate(calc(-50% + (var(--img-pos-x, 0) * 1%)), calc(-50% + (var(--img-pos-y, 0) * 1%))) scale(var(--img-scale, 1));
    transform-origin: center;
    left: 50%;
    top: 50%;
}

.carousel-manage-card.is-dragging {
    opacity: .6;
    outline: 2px dashed var(--brand-red);
}

.inline-inputs .ratio-inputs {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.inline-inputs input[type="number"] {
    width: 90px;
}

.inline-inputs .divider {
    font-weight: 700;
    color: var(--muted);
}

.carousel-admin-bar {
    margin-bottom: .5rem;
}

.dashed-upload {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: 1rem 1.5rem;
    border: 2px dashed #c8ccd0;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    color: var(--brand-red);
    background: #fff;
}

.category-nav {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    margin-top: 1.5rem;
    padding: 0 1rem;
    gap: 0;
}

.chip-window {
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding: 0 .5rem;
}

.chip-window::-webkit-scrollbar {
    display: none;
}

.chips {
    display: flex;
    gap: .6rem;
    flex-wrap: nowrap;
    align-items: center;
    min-width: max-content;
}

.chip {
    background: var(--white);
    color: var(--ink);
    padding: .4rem 1rem;
    border-radius: 999px;
    text-decoration: none;
    border: 1px solid #ddd;
    font-weight: 500;
}

.chip:hover {
    border-color: var(--brand-red);
    color: var(--brand-red);
}

.chip-nav {
    border: none;
    background: var(--white);
    color: var(--ink);
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, color .2s ease;
    margin: 0 .35rem;
}

.chip-nav:hover {
    color: var(--brand-red);
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, .16);
}

.chip-nav:disabled {
    opacity: .35;
    cursor: default;
    box-shadow: none;
    transform: none;
}

.category-carousel {
    padding: 1.5rem;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .06);
}

.carousel-heading {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1rem;
}

.carousel-heading h2 {
    margin: .2rem 0 0;
}

.carousel-count {
    font-weight: 600;
    color: var(--muted);
}

.carousel-shell {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.slider-window {
    flex: 1;
    overflow: hidden;
    scroll-behavior: smooth;
}

.slider-track {
    display: flex;
    gap: var(--carousel-gap, 1rem);
}

.slider-track::-webkit-scrollbar {
    display: none;
}

.carousel-btn {
    border: none;
    background: #ececf0;
    color: var(--brand-dark);
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.6rem;
    transition: background .2s ease;
}

.carousel-btn:hover {
    background: var(--brand-red);
    color: var(--white);
}

.product-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .08);
    flex: 0 0 var(--card-width, 240px);
}

.card-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.card-image img {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: translate(calc(-50% + (var(--img-pos-x, 0) * 1%)), calc(-50% + (var(--img-pos-y, 0) * 1%)))
        scale(var(--img-scale, 1));
    transform-origin: center;
    transition: transform .2s ease;
}

.card-image.is-loading {
    background: linear-gradient(90deg, #f2f2f2 25%, #ffffff 50%, #f2f2f2 75%);
    background-size: 200% 100%;
    animation: shimmer 1.2s ease-in-out infinite;
}

.card-image.is-loading::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='64' height='64' viewBox='0 0 38 38' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3ClinearGradient x1='8.042%25' y1='0%25' x2='65.682%25' y2='23.865%25' id='a'%3E%3Cstop stop-color='%23eaeaea' stop-opacity='0' offset='0%25'/%3E%3Cstop stop-color='%23d3d3d3' stop-opacity='.5' offset='50%25'/%3E%3Cstop stop-color='%23eaeaea' stop-opacity='0' offset='100%25'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg transform='translate(1 1)' stroke='url(%23a)' stroke-width='2'%3E%3Ccircle stroke-opacity='.5' cx='18' cy='18' r='18'/%3E%3Cpath d='M36 18c0-9.94-8.06-18-18-18' transform='rotate(284.583 18 18)'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 18 18' to='360 18 18' dur='1s' repeatCount='indefinite'/%3E%3C/path%3E%3C/g%3E%3C/g%3E%3C/svg%3E") center center no-repeat;
    background-size: 48px 48px;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: .3rem .7rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
}

.badge-featured {
    background: var(--brand-red);
    color: var(--white);
}

.badge-inline {
    position: static;
    margin-right: .4rem;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

.user-name-cell {
    display: flex;
    align-items: center;
    gap: .4rem;
}

.switch-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--white);
    border: 1px solid #ececec;
    padding: 1rem 1.5rem;
    border-radius: 18px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, .03);
    gap: 1rem;
}

.switch-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.switch-toggle {
    position: relative;
    display: inline-block;
    width: 58px;
    height: 32px;
}

.switch-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #c6c6c6;
    transition: .3s;
    border-radius: 999px;
}

.switch-slider::before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 4px;
    top: 4px;
    background-color: var(--white);
    border-radius: 50%;
    transition: .3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .15);
}

.switch-toggle input:checked + .switch-slider {
    background-color: var(--brand-red);
}

.switch-toggle input:checked + .switch-slider::before {
    transform: translateX(26px);
}

.card-description {
    background: var(--brand-gray);
    padding: 1rem 1.5rem;
    color: var(--muted);
    font-size: .9rem;
}

.card-description p {
    margin: 0;
}

.card-body {
    padding: 1.25rem 1.5rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .8rem;
}

.product-category {
    font-size: .8rem;
    color: var(--muted);
    margin: 0 0 .5rem;
}

.card-body h3 {
    margin: 0 0 .5rem;
}

.card-body p {
    margin: 0 0 .5rem;
    color: var(--muted);
}

.product-detail {
    padding: 4rem 0;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    align-items: center;
}

.detail-media {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .08);
    aspect-ratio: var(--detail-aspect, 4 / 3);
    background: var(--brand-gray);
}

.detail-media-main img {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transform: translate(calc(-50% + (var(--img-pos-x, 0) * 1%)), calc(-50% + (var(--img-pos-y, 0) * 1%)))
        scale(var(--img-scale, 1));
    transform-origin: center;
    transition: transform .2s ease;
}

.detail-media-main {
    position: relative;
    height: 100%;
}

.detail-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, .92);
    color: var(--ink);
    box-shadow: 0 12px 26px rgba(0, 0, 0, .18);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.35rem;
    line-height: 1;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.detail-nav:hover {
    background: var(--brand-red);
    color: var(--white);
    transform: translateY(-50%) scale(1.02);
}

.detail-nav:disabled {
    opacity: .45;
    cursor: default;
    transform: translateY(-50%);
}

.detail-nav.is-prev {
    left: .85rem;
}

.detail-nav.is-next {
    right: .85rem;
}

.detail-back {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, .95);
    color: var(--ink);
    padding: .5rem 1rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    z-index: 5;
    box-shadow: 0 12px 24px rgba(0, 0, 0, .25);
}

.detail-thumbs {
    display: flex;
    gap: .75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.detail-thumb {
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 0;
    background: none;
    cursor: pointer;
    overflow: hidden;
    transition: border-color .2s ease, opacity .2s ease, transform .2s ease, box-shadow .2s ease;
}

.detail-thumb img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    display: block;
    opacity: .65;
}

.detail-thumb.is-active {
    border-color: var(--brand-red);
    box-shadow: 0 8px 16px rgba(0, 0, 0, .14);
    transform: translateY(-2px);
}

.detail-thumb.is-active img {
    opacity: 1;
}

.detail-thumb.is-cover:not(.is-active) {
    border-color: rgba(215, 48, 53, .35);
}

.detail-thumb.is-cover:not(.is-active) img {
    opacity: .9;
}

.detail-thumb:focus-visible {
    outline: 2px solid var(--brand-red);
    outline-offset: 2px;
}

.detail-media-shell {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-actions {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.detail-actions-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.add-to-cart-controls.single-action {
    justify-content: flex-start;
}

.detail-media-actions {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 0 1rem 1rem;
    flex-wrap: wrap;
}

.detail-add-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .55rem .9rem .55rem .65rem;
    border-radius: 12px;
    border: 1px dashed rgba(0, 0, 0, .2);
    background: rgba(255, 255, 255, .92);
    color: var(--ink);
    cursor: pointer;
    font-weight: 600;
}

.detail-add-trigger input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.detail-add-icon {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    background: var(--brand-red);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.detail-info {
    padding: 1.5rem;
    border-radius: 24px;
    background: rgba(0, 0, 0, .6);
    color: var(--white);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .25);
}

.detail-info .eyebrow {
    margin-top: 0;
    color: var(--white);
}

.detail-description {
    color: rgba(255, 255, 255, .8);
    line-height: 1.6;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin: 1.5rem 0;
    font-weight: 600;
}

.detail-price {
    font-size: 2rem;
    color: var(--white);
}

.detail-stock {
    color: rgba(255, 255, 255, .85);
}

.detail-quick-actions {
    margin-top: 1rem;
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

.detail-editor {
    margin: 2rem 0;
}

.detail-admin-action {
    margin: 1rem 0 2rem;
    display: flex;
    gap: .75rem;
    align-items: center;
    flex-wrap: wrap;
}

.admin-edit-btn {
    background: #111;
    color: #fff;
    padding: .6rem 1.2rem;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, .2);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .2);
}

.admin-edit-btn:hover {
    background: #000;
}

.admin-edit-btn.small {
    padding: .4rem .9rem;
    font-size: .9rem;
}

.admin-edit-meta {
    color: rgba(255, 255, 255, .85);
    font-weight: 600;
}

.admin-edit-help {
    color: rgba(255, 255, 255, .55);
    font-size: .9rem;
}

.editor-card {
    background: rgba(0, 0, 0, .7);
    border-radius: 18px;
    padding: 1.5rem;
    color: var(--white);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .12);
    border: 1px solid rgba(255, 255, 255, .12);
}

.editor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.editor-control {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    background: rgba(255, 255, 255, .04);
    padding: 1rem;
    border-radius: 12px;
}

.editor-control input[type="range"] {
    width: 100%;
}

.editor-control input[type="number"] {
    width: 120px;
    padding: .45rem .6rem;
    border-radius: 10px;
    border: 1px solid #d8d8d8;
}

.editor-control input[type="number"]:focus {
    outline: 2px solid var(--brand-red);
    border-color: var(--brand-red);
}

.editor-actions {
    margin-top: 1rem;
    display: flex;
    justify-content: flex-end;
}

.editor-actions--spread {
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.editor-card-header {
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.editor-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: center;
}

.hidden-field {
    display: none;
}

.add-to-cart-form {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.add-to-cart-controls {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    align-items: center;
}

.add-to-cart-controls input[type="number"] {
    width: 110px;
    padding: .55rem .75rem;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    font-weight: 600;
}

.add-to-cart-controls input[type="number"]:focus {
    outline: 2px solid var(--brand-red);
    border-color: var(--brand-red);
}

.cart-shell {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.cart-header {
    background: rgba(0, 0, 0, .65);
    border-radius: 24px;
    padding: 2rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: var(--white);
}

.cart-lede {
    color: rgba(255, 255, 255, .75);
    margin: 0.4rem 0 0;
}

.cart-header-actions {
    display: flex;
    gap: .75rem;
    align-items: center;
}

.cart-grid {
    display: grid;
    grid-template-columns: minmax(0, 2.5fr) minmax(260px, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.cart-grid--table {
    align-items: start;
}

.cart-table-wrapper {
    background: rgba(0, 0, 0, .6);
    border-radius: 18px;
    padding: 1rem 1.25rem;
    box-shadow: 0 12px 24px rgba(0, 0, 0, .1);
    border: 1px solid rgba(255, 255, 255, .1);
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    color: var(--white);
}

.cart-table th,
.cart-table td {
    padding: .85rem .75rem;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    text-align: left;
}

.cart-table th {
    font-size: .95rem;
    letter-spacing: .02em;
    color: rgba(255, 255, 255, .7);
    font-weight: 700;
}

.cart-product {
    min-width: 220px;
}

.cart-product-info {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.cart-thumb {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    overflow: hidden;
    flex: 0 0 auto;
}

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

.cart-product h3 {
    margin: 0;
    color: var(--white);
}

.cart-subtitle {
    margin: .25rem 0 0;
    color: rgba(255, 255, 255, .7);
    font-size: .9rem;
}

.cart-price-cell,
.cart-subtotal-cell {
    font-weight: 700;
}

.cart-quantity-cell input[type="number"] {
    width: 90px;
    padding: .45rem .6rem;
    border-radius: 10px;
    border: 1px solid #d8d8d8;
    font-weight: 600;
    background: var(--white);
    color: var(--ink);
}

.cart-quantity-cell input[type="number"]:focus {
    outline: 2px solid var(--brand-red);
    border-color: var(--brand-red);
}

.cart-subtotal {
    display: inline-block;
    color: var(--white);
}

.cart-actions-cell {
    text-align: right;
}

.inline-remove-form {
    margin: 0;
}

.cart-summary {
    background: rgba(0, 0, 0, .7);
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: 0 12px 24px rgba(0, 0, 0, .1);
    border: 1px solid rgba(255, 255, 255, .12);
    position: sticky;
    top: 120px;
    color: var(--white);
}

.cart-totals {
    margin: 1rem 0 1.25rem;
}

.cart-totals div {
    display: flex;
    justify-content: space-between;
    padding: .35rem 0;
    border-bottom: 1px dashed rgba(255, 255, 255, .15);
}

.cart-totals dt {
    font-weight: 600;
}

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

.cart-total-row {
    font-size: 1.05rem;
    border-bottom: none;
}

.cart-note {
    color: rgba(255, 255, 255, .75);
    margin: .75rem 0 0;
    font-size: .9rem;
}

@media (max-width: 960px) {
    .cart-grid {
        grid-template-columns: 1fr;
    }
    .cart-summary {
        position: static;
    }
    .cart-actions-cell {
        text-align: left;
    }
    .cart-table th:nth-child(5),
    .cart-table td:nth-child(5) {
        text-align: left;
    }
}

@media (max-width: 640px) {
    .cart-table-wrapper {
        padding: .5rem;
    }
    .cart-table th,
    .cart-table td {
        padding: .65rem .5rem;
    }
    .cart-product-info {
        align-items: flex-start;
    }
    .cart-thumb {
        width: 52px;
        height: 52px;
    }
}

.category-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.category-panel {
    background: var(--white);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, .06);
}

.category-panel h2 {
    margin-top: 0;
}

.category-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.category-table th,
.category-table td {
    padding: .75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #eef0f4;
}

.category-table th {
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--muted);
}

.category-formset .category-input {
    width: 100%;
}

.category-manager {
    background: var(--white);
    border-radius: 24px;
    padding: 2.5rem;
    margin: 3rem 0;
    box-shadow: 0 15px 30px rgba(0, 0, 0, .06);
}

.manager-header {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.confirmation-toast {
    background: #e8faf1;
    color: #12643f;
    border: 1px solid #bfe7d0;
    padding: .5rem 1rem;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 600;
    align-self: center;
    transition: opacity .3s ease;
}

.confirmation-toast.is-hidden {
    opacity: 0;
}

.bulk-actions {
    display: flex;
    gap: .75rem;
    align-items: center;
    flex-wrap: wrap;
}

.bulk-actions input {
    padding: .5rem .75rem;
    border-radius: 12px;
    border: 1px solid #dfe3eb;
    background: var(--white);
    min-width: 220px;
}

.category-workbench {
    background: var(--white);
    border-radius: 24px;
    padding: 2.5rem;
    margin: 2rem 0;
    box-shadow: 0 15px 30px rgba(0, 0, 0, .06);
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    --header-sticky-offset: 120px;
}

.category-board-shell {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0;
}

.category-board-shell .category-board {
    flex: 1;
    min-width: 0;
}

.board-nav {
    position: sticky;
    top: 50%;
    border: none;
    background: var(--white);
    color: var(--ink);
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, .12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    cursor: pointer;
    z-index: 10;
    transition: transform .2s ease, box-shadow .2s ease, color .2s ease, opacity .2s ease;
    margin: 0 -1.5rem;
    transform: translateY(-50%);
}

.board-nav.prev {
    order: 0;
}

.board-nav.next {
    order: 2;
}

.board-nav:hover {
    color: var(--brand-red);
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(0, 0, 0, .16);
}

.board-nav:disabled {
    opacity: .35;
    cursor: default;
    box-shadow: none;
    transform: translateY(-50%);
}

.product-selector {
    border-top: 1px solid #edf1f7;
    padding-top: 1.5rem;
}

.selector-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.product-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    position: relative;
    font-size: .95rem;
}

.product-table thead {
    position: relative;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(6px);
    z-index: 1;
    transition: box-shadow .2s ease;
}

.product-table thead.is-floating {
    box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
}

.product-table th,
.product-table td {
    padding: .85rem 1rem;
    border-bottom: 1px solid #eef0f4;
    text-align: left;
}

.product-table th {
    text-transform: uppercase;
    font-size: .8rem;
    letter-spacing: .05em;
    color: var(--muted);
    background: inherit;
}

.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-top: .5rem;
    font-size: .9rem;
}

.category-board {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.category-board-horizontal {
    display: flex;
    gap: 0;
    overflow-x: auto;
    padding: 1rem 0;
    border-radius: 28px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 20px 45px rgba(0, 0, 0, .12);
    backdrop-filter: blur(6px);
}

.category-board-horizontal .category-column {
    flex: 0 0 320px;
    scroll-snap-align: start;
}

.category-board-horizontal::-webkit-scrollbar {
    height: 8px;
}

.category-board-horizontal::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, .2);
    border-radius: 999px;
}

.category-column {
    background: transparent;
    border-radius: 0;
    padding: 0;
    min-height: 320px;
    border: none;
    position: relative;
    display: flex;
    flex-direction: column;
}

.category-column + .category-column::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(0, 0, 0, .08);
    pointer-events: none;
}

.category-column.is-active-dropzone {
    background: rgba(215, 48, 53, 0.04);
}

.column-scroll {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: visible;
    margin: 0;
    padding: 1.25rem 1.5rem;
}

.column-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, .9);
    padding-bottom: .75rem;
    border-bottom: 1px solid rgba(0, 0, 0, .05);
    backdrop-filter: blur(4px);
    transform: translateY(0);
    transition: box-shadow .2s ease, transform .1s ease;
}

.column-header.is-floating {
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .08), 0 12px 24px rgba(0, 0, 0, .08);
}

.column-tools {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: .5rem;
}

.chip-count {
    background: transparent;
    padding: 0;
    border-radius: 0;
    font-size: .8rem;
    color: var(--brand-red);
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.category-column-list {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    flex: 1;
    padding-right: .25rem;
}

.product-chip {
    display: flex;
    gap: .75rem;
    border-radius: 16px;
    padding: 1rem;
    background: #f9fafc;
    border: 1px solid transparent;
    cursor: grab;
}

.product-chip.is-selected {
    border-color: var(--brand-red);
    background: #fff5f5;
    box-shadow: 0 0 0 2px rgba(219, 67, 67, .15);
}

.product-chip.is-dragging {
    opacity: .6;
}

.chip-select {
    display: flex;
    align-items: flex-start;
}

.chip-select input {
    margin-top: .4rem;
}

.chip-body h4 {
    margin: 0 0 .3rem;
}

.chip-body p {
    margin: 0 0 .4rem;
    color: var(--muted);
}

.empty-column {
    text-align: center;
    font-size: .9rem;
    color: var(--muted);
}

.product-gallery {
    margin: 2rem 0 4rem;
}

.product-gallery-panel {
    background: var(--white);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .06);
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.add-image-form {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.form-control.compact {
    margin: 0;
}

.form-errors.compact {
    margin: 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.gallery-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, .08);
    display: flex;
    flex-direction: column;
    border: 2px solid transparent;
    transition: transform .2s ease;
}

.gallery-card.is-cover {
    border-color: var(--brand-red);
}

.gallery-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.gallery-card-footer {
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.gallery-actions {
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.link-btn {
    background: none;
    border: none;
    padding: 0;
    color: var(--brand-dark);
    font-weight: 600;
    cursor: pointer;
}

.link-btn:hover {
    color: var(--brand-red);
}

.link-btn.danger {
    color: #c0392b;
}

.detail-edit-panel {
    background: var(--white);
    border-radius: 24px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .06);
}

.detail-edit-panel h2 {
    margin-top: 0;
}

.image-editor-page {
    padding: 3rem 0;
}

.image-editor-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.editor-back {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .45rem .85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .2);
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
}

.editor-back:hover {
    background: rgba(255, 255, 255, .18);
}

.image-editor-form {
    display: block;
}

.image-editor-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.image-editor-stage {
    background: rgba(0, 0, 0, .82);
    border-radius: 24px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 18px 36px rgba(0, 0, 0, .16);
    display: flex;
    flex-direction: column;
    gap: .8rem;
}

.image-editor-canvas {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    min-height: 420px;
    aspect-ratio: var(--detail-aspect, 4 / 3);
    background: linear-gradient(135deg, #0f0f11 0%, #1a1a1d 100%);
    user-select: none;
}

.image-editor-canvas img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: translate(calc(-50% + (var(--img-pos-x, 0) * 1%)), calc(-50% + (var(--img-pos-y, 0) * 1%))) scale(var(--img-scale, 1));
    transform-origin: center;
    left: 50%;
    top: 50%;
    transition: transform .08s ease;
    display: block;
    cursor: grab;
}

.image-editor-canvas.is-dragging img {
    cursor: grabbing;
}

.viewport-box {
    position: absolute;
    inset: 0;
    border: 2px dashed var(--brand-red);
    border-radius: 14px;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, .35), 0 12px 24px rgba(0, 0, 0, .3);
    pointer-events: none;
}

.image-editor-hint {
    margin-top: .8rem;
    color: rgba(255, 255, 255, .75);
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 600;
    font-size: .95rem;
}

.image-editor-panel {
    background: rgba(255, 255, 255, .95);
    border-radius: 18px;
    padding: 1.25rem;
    box-shadow: 0 12px 24px rgba(0, 0, 0, .12);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.panel-block {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.panel-block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .75rem;
}

.panel-block input[type="range"] {
    width: 100%;
}

.panel-actions {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
}

.mini-thumb-row {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

.mini-thumb {
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 0;
    background: none;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.mini-thumb img {
    display: block;
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 10px;
}

.mini-thumb.is-active {
    border-color: var(--brand-red);
    box-shadow: 0 10px 20px rgba(0, 0, 0, .18);
}

.small-note {
    font-size: .85rem;
}

@media (max-width: 900px) {
    .image-editor-grid {
        grid-template-columns: 1fr;
    }

    .image-editor-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f0f0f0;
    padding-top: .8rem;
}

.price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--brand-red);
}

.stock {
    font-weight: 600;
    color: var(--muted);
}

.stats-strip {
    background: #2e2f31;
    border-radius: 20px;
    padding: 1.5rem 2rem;
    color: var(--white);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 3rem;
}

.stat-value {
    font-size: 2rem;
    margin: 0;
    font-weight: 700;
}

.stat-label {
    margin: .2rem 0 0;
    color: #f7f7f7;
}

.empty-state {
    text-align: center;
    background: var(--white);
    padding: 3rem;
    border-radius: 24px;
}

.auth-shell {
    max-width: 520px;
    margin: 0 auto;
}

.auth-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .08);
}

.auth-lede {
    color: var(--muted);
    margin-top: .3rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.form-control {
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

.form-control label {
    font-weight: 600;
}

.auth-form input,
.auth-form select,
.auth-form textarea {
    border: 1px solid #dfe3eb;
    border-radius: 12px;
    padding: .75rem 1rem;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
}

.help-text {
    font-size: .85rem;
    color: var(--muted);
    margin: 0;
}

.form-error {
    color: #b3261e;
    background: #fdecea;
    padding: .4rem .6rem;
    border-radius: 8px;
    margin: 0;
    font-size: .85rem;
}

.auth-switch {
    text-align: center;
    margin-top: 1rem;
    color: var(--muted);
}

.auth-switch a {
    color: var(--brand-red);
    font-weight: 600;
    text-decoration: none;
}

.search-bar {
    display: flex;
    gap: .5rem;
    margin-top: 1.5rem;
}

.search-bar-input {
    position: relative;
    flex: 1;
}

.search-bar input {
    padding: .85rem 1rem;
    border: 1px solid #d5d5d5;
    border-radius: 999px;
    font-size: 1rem;
    width: 100%;
}

.search-bar > button {
    background: var(--brand-red);
    color: var(--white);
    border: none;
    border-radius: 999px;
    padding: .85rem 1.6rem;
    font-weight: 600;
    cursor: pointer;
}

.search-suggestions {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + .35rem);
    background: var(--white);
    border: 1px solid #ececec;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, .08);
    padding: .4rem;
    z-index: 40;
}

.search-suggestions[hidden] {
    display: none;
}

.suggestions-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 280px;
    overflow-y: auto;
}

.suggestion-option {
    width: 100%;
    border: 1px solid rgba(0, 0, 0, .05);
    background: var(--white);
    text-align: left;
    padding: .65rem .9rem;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: .2rem;
}

.suggestion-option:focus,
.suggestion-option:hover,
.suggestion-option.is-active {
    background: rgba(231, 231, 236, .8);
    outline: none;
}

.suggestion-name {
    font-weight: 600;
    color: var(--brand-dark);
}

.suggestion-meta {
    font-size: .85rem;
    color: var(--muted);
}

.search-results {
    background: var(--white);
    border-radius: 24px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    display: grid;
    gap: 1rem;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.slider-window::-webkit-scrollbar {
    display: none;
}

.admin-panel {
    background: var(--white);
    border-radius: 24px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.link {
    color: var(--brand-red);
    text-decoration: none;
    font-weight: 600;
}

.link:hover {
    color: var(--brand-dark);
}

.table-shell {
    width: 100%;
    overflow-x: auto;
}

.product-datatable-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    --header-sticky-offset: 96px;
}

.list-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    background: var(--white);
    padding: 1rem 1.25rem;
    border-radius: 16px;
    border: 1px solid #e9e9e9;
    gap: .75rem;
}

.selected-counter {
    font-weight: 600;
    color: var(--muted);
    margin: 0;
}

.control-buttons {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
}

.filter-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}

.filter-controls label {
    display: flex;
    flex-direction: column;
    font-size: .85rem;
    font-weight: 600;
    color: var(--muted);
    min-width: 180px;
}

.filter-controls select {
    margin-top: .25rem;
    border: 1px solid #d6d6d6;
    border-radius: 10px;
    padding: .35rem .6rem;
    font-family: inherit;
}

.table-product {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.product-name {
    margin: 0;
    font-weight: 600;
}

.product-subtitle {
    margin: .2rem 0 0;
    color: var(--muted);
    font-size: .85rem;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    padding: .15rem .7rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
}

.status-pill.success {
    background: #e6f6ee;
    color: #0a6c3e;
}

.status-pill.info {
    background: #e1f1ff;
    color: #2163b4;
}

.status-pill.muted {
    background: #f2f2f2;
    color: var(--muted);
}

.product-table .select-col {
    width: 56px;
    text-align: center;
}

.product-table .select-col input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.product-table .actions {
    text-align: right;
}

.table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: .75rem;
}

.table-footer .dataTables_info {
    margin: 0;
    color: var(--muted);
    font-weight: 600;
}

.table-footer .dataTables_paginate {
    display: flex;
    gap: .35rem;
    flex-wrap: wrap;
    align-items: center;
}

.table-footer .dataTables_paginate .paginate_button {
    border: 1px solid #d6d6d6;
    background: var(--white);
    border-radius: 8px;
    padding: .4rem .75rem;
    font-weight: 600;
    cursor: pointer;
    min-width: 40px;
    color: var(--ink);
}

.table-footer .dataTables_paginate .paginate_button.current {
    background: var(--brand-red);
    border-color: var(--brand-red);
    color: var(--white);
}

.table-footer .dataTables_paginate .paginate_button.disabled {
    opacity: .5;
    cursor: not-allowed;
}

.table-thumb {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 12px;
}

.product-form {
    display: grid;
    gap: 1rem;
}

.form-control label {
    font-weight: 600;
    margin-bottom: .4rem;
    display: block;
}

.form-control input,
.form-control textarea,
.form-control select {
    width: 100%;
    border: 1px solid #d6d6d6;
    border-radius: 12px;
    padding: .85rem 1rem;
    font-family: inherit;
    font-size: 1rem;
}

.form-control textarea {
    resize: vertical;
}

.form-control small {
    color: var(--muted);
}

.form-control.has-error input,
.form-control.has-error textarea {
    border-color: var(--brand-red);
}

.form-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.form-errors,
.error {
    color: var(--brand-red);
    font-weight: 600;
}

.alert-list {
    margin: 1rem 0 0;
    display: grid;
    gap: .5rem;
}

.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.status-tabs {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

.status-tabs .chip {
    border: 1px solid rgba(255, 255, 255, .2);
    padding: .4rem .8rem;
    border-radius: 999px;
    color: #000;
    background: rgba(255, 255, 255, .08);
    text-decoration: none;
    font-weight: 600;
}

.status-tabs .chip.is-active {
    background: var(--brand-red);
    border-color: var(--brand-red);
    color: #000;
}

.page-size-form select {
    margin: 0 .3rem;
}

.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.alert {
    padding: .75rem 1rem;
    border-radius: 12px;
    font-weight: 600;
}

.alert-success {
    background: #e6f6ee;
    color: #0a6c3e;
}

.alert-error {
    background: #fdecea;
    color: #b3261e;
}

@media (max-width: 1200px) {
    :root {
        --cards-visible: 4;
    }
}

@media (max-width: 900px) {
    :root {
        --cards-visible: 3;
    }

    .carousel-shell {
        gap: .5rem;
    }

    .carousel-btn {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 640px) {
    :root {
        --cards-visible: 2;
    }

    .search-bar {
        flex-direction: column;
    }
}

@media (max-width: 720px) {
    .main-header {
        flex-direction: column;
    }

    .page-content {
        padding: 2rem 1rem;
    }
}
.floating-whatsapp {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 24px rgba(0, 0, 0, .2);
    z-index: 99;
    text-decoration: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath fill='%23fff' d='M16.002 2.93c-7.17 0-12.99 5.82-12.99 12.99 0 2.29.6 4.52 1.74 6.48L3 29l6.76-1.77a12.86 12.86 0 0 0 6.25 1.59h.01c7.17 0 12.99-5.82 12.99-12.99s-5.82-12.99-12.99-12.99zm7.64 18.7c-.31.88-1.77 1.68-2.42 1.74-.62.06-1.4.09-2.26-.14-.52-.13-1.19-.39-2.06-.76-3.62-1.56-5.98-5.02-6.16-5.26-.18-.24-1.47-1.96-1.47-3.74 0-1.78.93-2.65 1.26-3.01.33-.36.72-.45.96-.45.24 0 .48 0 .69.01.22.01.52-.08.82.62.31.74 1.05 2.55 1.14 2.74.09.19.15.42.03.68-.12.26-.18.42-.36.64-.18.21-.38.47-.54.63-.18.18-.36.38-.15.75.21.36.93 1.53 2 2.48 1.37 1.22 2.52 1.6 2.88 1.78.36.18.57.15.78-.09.21-.24.9-1.05 1.14-1.41.24-.36.48-.3.81-.18.33.12 2.13 1 2.5 1.18.36.18.6.27.69.42.09.15.09.9-.22 1.78z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 28px 28px;
}
