* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #d1d7db;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-container {
    display: flex;
    width: 95vw;
    height: 95vh;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border-radius: 10px;
    overflow: hidden;
}

/* Barra Lateral */
.sidebar {
    width: 35%;
    background: #ffffff;
    border-right: 1px solid #e9edef;
    display: flex;
    flex-direction: column;
}

.agent-selector {
    padding: 20px;
    background: #f0f2f5;
    border-bottom: 1px solid #e9edef;
}

.agent-selector select {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.logout-button {
    width: 100%;
    margin-top: 14px;
    padding: 9px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background: #ffffff;
    color: #334155;
    font-weight: 700;
    cursor: pointer;
}

.logout-button:hover {
    border-color: #b42318;
    color: #b42318;
    background: #fff7f6;
}

.logout-button:disabled {
    cursor: wait;
    opacity: 0.65;
}

.queues {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.queue-section h3 {
    font-size: 14px;
    color: #54656f;
    margin: 15px 0 10px 10px;
}

.chat-list {
    list-style: none;
}

.chat-item {
    padding: 15px;
    background: #f9f9f9;
    margin-bottom: 8px;
    border-radius: 8px;
    cursor: pointer;
    border-left: 4px solid transparent;
    transition: all 0.2s ease;
}

.chat-item:hover { background: #f0f2f5; }
.chat-item.pending { border-left-color: #ff9800; } /* Naranja para pendientes */
.chat-item.assigned { border-left-color: #25d366; } /* Verde para asignados */
.chat-item.closed { border-left-color: #9ca3af; } /* Gris para cerrados */

/* Panel Principal de Chat */
.chat-panel {
    width: 65%;
    display: flex;
    flex-direction: column;
    background: #efeae2; /* Color de fondo de WhatsApp */
}

.chat-header {
    padding: 20px;
    background: #f0f2f5;
    border-bottom: 1px solid #e9edef;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
}

.chat-identity {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 16px;
    align-items: center;
}

.chat-identity h2 {
    grid-column: 1;
    overflow-wrap: anywhere;
}

.chat-identity > span {
    grid-column: 1;
    display: block;
    color: #667781;
    font-size: 13px;
    margin-top: 3px;
}

.customer-controls {
    grid-column: 2;
    grid-row: 1 / span 2;
    display: flex;
    flex-wrap: nowrap;
    gap: 7px;
    margin-top: 0;
}

.customer-controls button {
    padding: 7px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background: #ffffff;
    color: #334155;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
}

.customer-controls button:hover:not(:disabled) {
    border-color: #0f766e;
    color: #0f766e;
}

.customer-controls button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.customer-controls .customer-block-button {
    border-color: #fecaca;
    color: #b42318;
}

.customer-controls .customer-block-button.is-unblock {
    border-color: #a7f3d0;
    color: #047857;
}

.customer-blocked-badge {
    display: inline-flex;
    margin-left: 7px;
    padding: 2px 6px;
    border-radius: 999px;
    background: #fee2e2;
    color: #b42318;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.chat-item.customer-blocked {
    border-left-color: #b42318 !important;
    background: #fff7f6 !important;
}

.header-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    align-items: center;
}

.header-actions button,
.header-actions select {
    white-space: nowrap;
}

.mini-input {
    padding: 6px 8px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 12px;
}

.messages-container {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mensaje {
    max-width: 60%;
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.5;
    white-space: normal;
    overflow-wrap: anywhere;
}

.msg-content {
    white-space: pre-wrap;
}

.mensaje.cliente {
    background: #ffffff;
    align-self: flex-start;
    border-top-left-radius: 0;
}

.mensaje.agente {
    background: #d9fdd3;
    align-self: flex-end;
    border-top-right-radius: 0;
}

.chat-input-area {
    padding: 20px;
    background: #f0f2f5;
    display: flex;
    gap: 10px;
    align-items: center;
}

.window-status {
    margin: 0 20px 12px;
    padding: 13px 15px;
    border: 1px solid transparent;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.window-status[hidden] {
    display: none;
}

.window-status > div {
    display: grid;
    gap: 3px;
}

.window-status span {
    font-size: 13px;
    line-height: 1.4;
}

.window-status.is-open {
    background: #ecfdf5;
    border-color: #86efac;
    color: #166534;
}

.window-status.is-closed {
    background: #fff7ed;
    border-color: #fdba74;
    color: #9a3412;
}

.window-status button {
    flex: 0 0 auto;
    padding: 10px 14px;
    border: 0;
    border-radius: 8px;
    background: #c2410c;
    color: #fff;
    cursor: pointer;
    font-weight: 800;
}

.window-status button:disabled {
    background: #cbd5e1;
    color: #475569;
    cursor: not-allowed;
}

.chat-input-area input {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 8px;
    outline: none;
}

.chat-input-area button {
    padding: 10px 20px;
    background: #00a884;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}

.chat-input-area button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.msg-image {
    max-width: 260px;
    border-radius: 8px;
    margin-top: 6px;
    display: block;
}

.msg-meta {
    margin-top: 4px;
    font-size: 11px;
    color: #667781;
    white-space: normal;
}

.delivery-status {
    display: inline-flex;
    align-items: center;
    margin-left: 7px;
    font-weight: 700;
}

.delivery-delivered,
.delivery-read {
    color: #087c67;
}

.delivery-failed {
    color: #b42318;
}

.delivery-pending,
.delivery-accepted,
.delivery-sent {
    color: #667781;
}

.scripts-area {
    padding: 12px 20px 20px;
    background: #f0f2f5;
    border-top: 1px solid #e9edef;
}

.script-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.script-btn {
    padding: 6px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #e5f6ff;
    cursor: pointer;
    font-size: 12px;
}

.script-btn:hover {
    background: #cdefff;
}

/* --- Admin Dashboard --- */
.admin-container {
    width: 95vw;
    max-width: 1100px;
    margin: 30px auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.12);
    padding: 20px 24px 30px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

.muted {
    color: #6b7280;
    font-size: 13px;
}

.token-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.token-box input {
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    min-width: 220px;
}

.controls {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.controls button, .controls select, .controls a {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: #f8fafc;
    color: #111827;
    text-decoration: none;
    font-weight: 600;
}

.controls button {
    background: #00a884;
    color: #fff;
    border: none;
}

.controls .exports a {
    margin-right: 8px;
}

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

.filters input[type="date"],
.filters input[type="text"] {
    padding: 6px 8px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px 16px;
}

.card.wide {
    grid-column: span 2;
}

.theme-admin-card {
    margin-bottom: 16px;
}

.theme-admin-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.theme-admin-eyebrow {
    display: block;
    margin-bottom: 4px;
    color: #047857;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.theme-preview-link {
    flex: 0 0 auto;
    border: 1px solid #a7f3d0;
    border-radius: 8px;
    padding: 9px 12px;
    background: #ecfdf5;
    color: #047857;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

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

.theme-choice {
    position: relative;
    display: grid;
    align-content: start;
    gap: 6px;
    min-width: 0;
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 8px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.theme-choice:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.theme-choice.selected {
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.12);
}

.theme-choice input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.theme-choice strong {
    font-size: 13px;
    line-height: 1.2;
}

.theme-choice small {
    color: #64748b;
    font-size: 11px;
    line-height: 1.25;
}

.theme-swatch {
    position: relative;
    display: block;
    height: 66px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 8px;
    background: #f3f6f4;
}

.theme-swatch span {
    position: absolute;
    right: 9px;
    bottom: 9px;
    width: 42%;
    height: 45%;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.theme-swatch[data-theme-swatch="san_valentin"] {
    background: radial-gradient(circle at 20% 20%, #fff 0 5px, transparent 6px), linear-gradient(135deg, #fff1f2, #fecdd3);
}

.theme-swatch[data-theme-swatch="verano"] {
    background: radial-gradient(circle at 18% 24%, #fde047 0 12px, transparent 13px), linear-gradient(145deg, #bae6fd 0 58%, #fef3c7 59%);
}

.theme-swatch[data-theme-swatch="dia_madre"] {
    background: radial-gradient(circle at 20% 25%, #fb7185 0 5px, #fecdd3 6px 12px, transparent 13px), linear-gradient(140deg, #fff7ed, #fae8ff);
}

.theme-swatch[data-theme-swatch="independencia"] {
    background: linear-gradient(90deg, #75bde0 0 32%, #fff 32% 68%, #75bde0 68%);
}

.theme-swatch[data-theme-swatch="halloween"] {
    background: radial-gradient(circle at 22% 28%, #fb923c 0 11px, transparent 12px), linear-gradient(145deg, #1f2937, #713f12);
}

.theme-swatch[data-theme-swatch="black_friday"] {
    background: linear-gradient(145deg, #030712, #292524 72%, #d4a72c);
}

.theme-swatch[data-theme-swatch="navidad"] {
    background: radial-gradient(circle at 20% 22%, #dc2626 0 5px, transparent 6px), radial-gradient(circle at 42% 48%, #facc15 0 4px, transparent 5px), linear-gradient(145deg, #14532d, #f0fdf4);
}

.theme-schedule {
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 240px)) minmax(260px, 1fr);
    gap: 12px;
    align-items: end;
    margin-top: 16px;
    padding: 14px;
    border-radius: 10px;
    background: #f1f5f9;
}

.theme-schedule label {
    display: grid;
    gap: 5px;
    color: #334155;
    font-size: 12px;
    font-weight: 800;
}

.theme-schedule input {
    min-height: 38px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    padding: 7px 9px;
    background: #fff;
}

.theme-schedule p {
    color: #64748b;
    font-size: 12px;
    line-height: 1.35;
}

.theme-admin-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.theme-admin-actions button {
    border: 0;
    border-radius: 8px;
    padding: 10px 14px;
    background: #047857;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.theme-admin-actions button.secondary {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #334155;
}

.theme-admin-actions button:disabled {
    cursor: wait;
    opacity: 0.6;
}

.theme-save-status {
    color: #64748b;
    font-size: 12px;
}

.theme-save-status.success {
    color: #047857;
}

.theme-save-status.error {
    color: #b91c1c;
}

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

.stats .label {
    display: block;
    color: #6b7280;
    font-size: 13px;
}

.stats span:last-child {
    font-weight: 700;
}

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

.list li {
    padding: 6px 0;
    border-bottom: 1px solid #e5e7eb;
}

.status {
    background: #111827;
    color: #d1d5db;
    padding: 10px;
    border-radius: 8px;
    max-height: 160px;
    overflow: auto;
    font-size: 13px;
}

.search-input {
    width: 100%;
    padding: 8px 10px;
    margin-bottom: 8px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
}

.agent-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.agent-form input {
    padding: 6px 8px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
}

.agent-form button {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: #00a884;
    color: #fff;
    cursor: pointer;
}

.agent-form button:hover {
    background: #02926f;
}

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

.agent-card {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px 12px;
    background: #fff;
}

.agent-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.agent-title {
    font-weight: 700;
}

.agent-sub {
    color: #6b7280;
    font-size: 13px;
}

.agent-actions button,
.agent-edit-actions button {
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background: #f3f4f6;
    cursor: pointer;
}

.agent-actions button.edit-btn { background: #e0f2fe; border-color: #bae6fd; }
.agent-actions button.del-btn { background: #fee2e2; border-color: #fecdd3; }

.agent-edit {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px;
}

.agent-edit input, .agent-edit select {
    padding: 6px 8px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
}

.agent-edit-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 8px;
}

.quick-links {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.quick-links a,
.inventory-nav a {
    color: #047857;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 6px;
    padding: 7px 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
}

.chat-item.reservation {
    border-left-color: #0ea5e9;
    background: #f0f9ff;
}

.chat-item.reservation small {
    display: block;
    margin-top: 4px;
    color: #475569;
}

.reservation-code {
    font-weight: 700;
    color: #0369a1 !important;
}

.catalog-page,
.inventory-page,
.reports-page {
    display: block;
    min-height: 100vh;
    height: auto;
    background:
        radial-gradient(circle at 8% 8%, rgba(16, 185, 129, 0.11), transparent 28rem),
        radial-gradient(circle at 96% 28%, rgba(245, 158, 11, 0.09), transparent 25rem),
        #f3f6f4;
    color: #111827;
}

.catalog-header,
.inventory-header,
.reports-header {
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px 18px 12px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}

.catalog-header h1,
.inventory-header h1,
.reports-header h1 {
    font-size: 28px;
    line-height: 1.1;
    margin-bottom: 4px;
}

.catalog-header p {
    color: #64748b;
}

.catalog-header input {
    width: min(360px, 100%);
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
}

.catalog-page.seasonal-theme {
    --theme-accent: #047857;
    --theme-soft: #d1fae5;
    --theme-header: rgba(255, 255, 255, 0.9);
    --theme-border: rgba(15, 23, 42, 0.12);
    position: relative;
    isolation: isolate;
    overflow-x: hidden;
}

.catalog-page.seasonal-theme::before {
    content: "";
    position: fixed;
    z-index: 0;
    inset: 0;
    pointer-events: none;
    opacity: 0.72;
}

.catalog-page.seasonal-theme > .catalog-header,
.catalog-page.seasonal-theme > .catalog-shell,
.catalog-page.seasonal-theme > .product-public-header,
.catalog-page.seasonal-theme > .product-public-shell,
.catalog-page.seasonal-theme > .reservation-shell {
    position: relative;
    z-index: 1;
}

.catalog-page.seasonal-theme .catalog-header {
    margin-top: 20px;
    padding: 20px 22px;
    border: 1px solid var(--theme-border);
    border-top: 4px solid var(--theme-accent);
    border-radius: 16px;
    background: var(--theme-header);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(12px);
}

.catalog-theme-kicker {
    display: inline-flex;
    margin-bottom: 7px;
    border-radius: 999px;
    padding: 5px 9px;
    background: var(--theme-soft, #d1fae5);
    color: var(--theme-accent, #047857);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.catalog-page[data-theme="san_valentin"] {
    --theme-accent: #be123c;
    --theme-soft: #ffe4e6;
    --theme-border: rgba(190, 18, 60, 0.18);
    background: radial-gradient(circle at 8% 8%, rgba(251, 113, 133, 0.22), transparent 24rem), linear-gradient(145deg, #fff7f8, #fff1f2 52%, #fdf2f8);
}

.catalog-page[data-theme="san_valentin"]::before {
    background-image: radial-gradient(circle at 12px 12px, rgba(225, 29, 72, 0.13) 0 2px, transparent 3px);
    background-size: 32px 32px;
}

.catalog-page[data-theme="verano"] {
    --theme-accent: #0369a1;
    --theme-soft: #e0f2fe;
    --theme-border: rgba(2, 132, 199, 0.2);
    background: radial-gradient(circle at 88% 8%, rgba(250, 204, 21, 0.42), transparent 15rem), linear-gradient(160deg, #e0f2fe, #f0fdfa 55%, #fef3c7);
}

.catalog-page[data-theme="verano"]::before {
    background: repeating-linear-gradient(125deg, transparent 0 42px, rgba(14, 165, 233, 0.06) 43px 45px);
}

.catalog-page[data-theme="dia_madre"] {
    --theme-accent: #a21caf;
    --theme-soft: #fae8ff;
    --theme-border: rgba(162, 28, 175, 0.17);
    background: radial-gradient(circle at 10% 12%, rgba(251, 113, 133, 0.18), transparent 20rem), radial-gradient(circle at 92% 78%, rgba(216, 180, 254, 0.3), transparent 24rem), #fffaf7;
}

.catalog-page[data-theme="dia_madre"]::before {
    background-image: radial-gradient(ellipse at 10px 15px, rgba(244, 114, 182, 0.11) 0 4px, transparent 5px), radial-gradient(ellipse at 20px 10px, rgba(192, 132, 252, 0.1) 0 4px, transparent 5px);
    background-size: 46px 46px;
}

.catalog-page[data-theme="independencia"] {
    --theme-accent: #0878b9;
    --theme-soft: #e0f2fe;
    --theme-border: rgba(8, 120, 185, 0.2);
    background: linear-gradient(90deg, rgba(117, 189, 224, 0.2) 0 18%, #f8fcff 18% 82%, rgba(117, 189, 224, 0.2) 82%);
}

.catalog-page[data-theme="independencia"]::before {
    background: repeating-linear-gradient(0deg, transparent 0 44px, rgba(8, 120, 185, 0.05) 45px 47px);
}

.catalog-page[data-theme="halloween"] {
    --theme-accent: #c2410c;
    --theme-soft: #ffedd5;
    --theme-border: rgba(194, 65, 12, 0.24);
    background: radial-gradient(circle at 90% 8%, rgba(249, 115, 22, 0.32), transparent 18rem), linear-gradient(145deg, #fff7ed, #fef3c7 55%, #e7e5e4);
}

.catalog-page[data-theme="halloween"]::before {
    background-image: radial-gradient(circle at 14px 14px, rgba(31, 41, 55, 0.13) 0 3px, transparent 4px), radial-gradient(circle at 30px 30px, rgba(234, 88, 12, 0.14) 0 5px, transparent 6px);
    background-size: 44px 44px;
}

.catalog-page[data-theme="black_friday"] {
    --theme-accent: #d4a72c;
    --theme-soft: #fef3c7;
    --theme-header: rgba(15, 15, 16, 0.9);
    --theme-border: rgba(250, 204, 21, 0.34);
    background: radial-gradient(circle at 82% 6%, rgba(212, 167, 44, 0.2), transparent 20rem), linear-gradient(145deg, #030712, #171717 60%, #292524);
}

.catalog-page[data-theme="black_friday"]::before {
    background: repeating-linear-gradient(135deg, transparent 0 34px, rgba(250, 204, 21, 0.035) 35px 36px);
}

.catalog-page[data-theme="black_friday"] .catalog-header h1,
.catalog-page[data-theme="black_friday"] .catalog-header p,
.catalog-page[data-theme="black_friday"] .catalog-pagination p {
    color: #fff;
}

.catalog-page[data-theme="navidad"] {
    --theme-accent: #166534;
    --theme-soft: #dcfce7;
    --theme-border: rgba(22, 101, 52, 0.2);
    background: radial-gradient(circle at 8% 8%, rgba(220, 38, 38, 0.16), transparent 20rem), radial-gradient(circle at 94% 22%, rgba(22, 163, 74, 0.2), transparent 24rem), #f8fbf7;
}

.catalog-page[data-theme="navidad"]::before {
    background-image: radial-gradient(circle at 12px 12px, rgba(220, 38, 38, 0.18) 0 3px, transparent 4px), radial-gradient(circle at 30px 30px, rgba(22, 101, 52, 0.17) 0 3px, transparent 4px), radial-gradient(circle at 28px 8px, rgba(202, 138, 4, 0.14) 0 2px, transparent 3px);
    background-size: 42px 42px;
}

.catalog-shell,
.inventory-shell,
.reports-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 12px 18px 32px;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 14px;
}

.catalog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    padding: 28px 0 4px;
}

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

.catalog-pagination p {
    color: #64748b;
    font-size: 14px;
    font-weight: 700;
}

.catalog-pagination button {
    min-width: 220px;
    border: 1px solid #047857;
    border-radius: 8px;
    background: #fff;
    color: #047857;
    padding: 12px 20px;
    font-weight: 900;
    cursor: pointer;
}

.catalog-pagination button:hover {
    background: #ecfdf5;
}

.catalog-pagination button:disabled {
    border-color: #94a3b8;
    color: #64748b;
    cursor: wait;
}

.catalog-card,
.inventory-card {
    background: #fff;
    border: 1px solid #dbe3ea;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.catalog-media {
    height: 180px;
    background: #dfe7e3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    font-size: 34px;
    font-weight: 800;
    position: relative;
    overflow: hidden;
}

.catalog-media img,
.inventory-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.catalog-photo-switcher {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 9px;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.catalog-card .catalog-photo-switcher button,
.reserve-panel .catalog-photo-switcher button {
    width: 36px;
    height: 36px;
    padding: 2px;
    border: 2px solid rgba(255, 255, 255, 0.84);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
    opacity: 0.75;
}

.catalog-card .catalog-photo-switcher button.active,
.reserve-panel .catalog-photo-switcher button.active {
    border-color: #10b981;
    opacity: 1;
}

.catalog-card .catalog-photo-switcher button.photo-index {
    width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 999px;
    color: #065f46;
    font-size: 11px;
    line-height: 1;
}

.catalog-photo-switcher img {
    border-radius: 4px;
}

.reserve-media {
    height: 230px;
    margin: -2px 0 18px;
    border-radius: 10px;
}

.catalog-card-body {
    padding: 14px;
    display: grid;
    gap: 9px;
}

.catalog-card-body h2,
.inventory-card h3 {
    font-size: 16px;
    line-height: 1.25;
}

.catalog-card-body p {
    color: #64748b;
    min-height: 38px;
    line-height: 1.35;
}

.catalog-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: #334155;
    font-size: 14px;
}

.catalog-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.catalog-card-actions a {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #a7f3d0;
    border-radius: 7px;
    padding: 10px 12px;
    background: #ecfdf5;
    color: #047857;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.catalog-card button,
.reserve-form button,
.inventory-form button,
.product-edit-form button,
.section-title-row button,
.reservation-actions button {
    border: 0;
    border-radius: 7px;
    background: #047857;
    color: #fff;
    padding: 10px 12px;
    font-weight: 800;
    cursor: pointer;
}

.catalog-card button:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

.reserve-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: min(420px, 100vw);
    height: 100vh;
    background: #fff;
    border-left: 1px solid #dbe3ea;
    box-shadow: -8px 0 24px rgba(15, 23, 42, 0.16);
    padding: 22px;
    transform: translateX(105%);
    transition: transform 0.2s ease;
    z-index: 20;
    overflow: auto;
}

.reserve-panel.open {
    transform: translateX(0);
}

.close-panel {
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    border-radius: 7px;
    padding: 8px 10px;
    cursor: pointer;
    margin-bottom: 16px;
}

.reserve-form,
.inventory-form,
.product-edit-form {
    display: grid;
    gap: 10px;
}

.reserve-form label,
.check-row {
    display: grid;
    gap: 5px;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
}

.reserve-form input,
.reserve-form textarea,
.inventory-form input,
.product-edit-form input,
.section-title-row select {
    width: 100%;
    padding: 10px 11px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background: #fff;
}

.reserve-result,
.status-line {
    margin-top: 10px;
    color: #0369a1;
    font-weight: 700;
}

.reserve-result a,
.catalog-back-link {
    display: inline-block;
    margin-top: 8px;
    color: #047857;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 7px;
    padding: 8px 10px;
    text-decoration: none;
}

.status-line.error {
    color: #b91c1c;
}

.status-line.ok {
    color: #047857;
}

.inventory-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.inventory-nav .sold-out-nav-link {
    border-color: #fecaca;
    background: #fff1f2;
    color: #9f1239;
}

.sold-out-nav-link span {
    display: inline-flex;
    min-width: 21px;
    height: 21px;
    margin-left: 4px;
    padding: 0 6px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #ffe4e6;
    font-size: 11px;
}

.sold-out-nav-link.has-sold-out span {
    background: #be123c;
    color: #fff;
}

.eyebrow {
    display: block;
    margin-bottom: 5px;
    color: #047857;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.product-publisher {
    display: grid;
    grid-template-columns: minmax(230px, 0.68fr) minmax(0, 1.32fr);
    gap: 28px 34px;
    margin-bottom: 28px;
    padding: 28px;
    border: 1px solid #cfe2d8;
    border-radius: 18px;
    background:
        linear-gradient(145deg, rgba(236, 253, 245, 0.9), rgba(255, 255, 255, 0.98) 40%),
        #fff;
    box-shadow: 0 16px 44px rgba(15, 23, 42, 0.08);
}

.publisher-intro {
    align-self: start;
    position: sticky;
    top: 16px;
}

.step-badge {
    display: inline-flex;
    margin-bottom: 16px;
    padding: 7px 11px;
    border-radius: 999px;
    background: #064e3b;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.publisher-intro h2 {
    max-width: 340px;
    margin-bottom: 10px;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1;
    letter-spacing: -0.04em;
}

.publisher-intro p {
    max-width: 390px;
    color: #52616d;
    line-height: 1.55;
}

.publisher-steps {
    display: grid;
    gap: 10px;
    margin: 22px 0 0 22px;
    color: #334155;
    font-size: 14px;
    font-weight: 700;
}

.simple-product-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.full-field {
    grid-column: 1 / -1;
}

.form-field {
    display: grid;
    gap: 7px;
}

.form-field > label,
.product-edit-form label {
    display: grid;
    gap: 6px;
    color: #24323c;
    font-size: 14px;
    font-weight: 800;
}

.form-field small,
.product-edit-form small {
    color: #64748b;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
}

.simple-product-form input,
.simple-product-form textarea,
.product-edit-form input,
.product-edit-form textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    outline: none;
    background: #fff;
    color: #17212b;
    font: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.simple-product-form input:focus,
.simple-product-form textarea:focus,
.product-edit-form input:focus,
.product-edit-form textarea:focus {
    border-color: #059669;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

.simple-product-form textarea,
.product-edit-form textarea {
    resize: vertical;
}

.input-with-prefix {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    overflow: hidden;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
}

.input-with-prefix:focus-within {
    border-color: #059669;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

.input-with-prefix span {
    padding-left: 14px;
    color: #047857;
    font-size: 20px;
    font-weight: 900;
}

.input-with-prefix input {
    border: 0;
    box-shadow: none;
}

.input-with-prefix input:focus {
    box-shadow: none;
}

.photo-dropzone {
    min-height: 132px;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 22px;
    border: 2px dashed #7dd3a9;
    border-radius: 14px;
    background: rgba(236, 253, 245, 0.76);
    color: #065f46 !important;
    cursor: pointer;
    text-align: center;
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.photo-dropzone:hover {
    transform: translateY(-1px);
    border-color: #059669;
    background: #ecfdf5;
}

.photo-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #047857;
    color: #fff;
    font-size: 27px;
    font-weight: 400;
    line-height: 1;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
}

.photo-preview {
    display: grid;
    grid-template-columns: repeat(5, minmax(78px, 1fr));
    gap: 9px;
}

.preview-photo {
    min-width: 0;
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #e2e8f0;
}

.preview-photo > img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.photo-position {
    position: absolute;
    left: 5px;
    top: 5px;
    padding: 4px 6px;
    border-radius: 5px;
    background: rgba(15, 23, 42, 0.78);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
}

.photo-position.cover {
    background: #047857;
}

.remove-photo {
    position: absolute;
    right: 5px;
    bottom: 5px;
    padding: 5px 7px;
    border: 0;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.92);
    color: #b91c1c;
    font-size: 10px;
    font-weight: 900;
    cursor: pointer;
}

.publish-button {
    min-height: 52px;
    border: 0;
    border-radius: 11px;
    background: #047857;
    color: #fff;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(4, 120, 87, 0.2);
}

.publish-button:hover {
    background: #065f46;
}

.publish-button:disabled,
.product-edit-form button:disabled,
.reservation-actions button:disabled {
    opacity: 0.62;
    cursor: wait;
}

.publisher-message {
    grid-column: 2;
    min-height: 22px;
    color: #0369a1;
    font-size: 14px;
    font-weight: 800;
}

.publisher-message.error {
    color: #b91c1c;
}

.publisher-message.ok {
    color: #047857;
}

.inventory-band {
    background: #fff;
    border: 1px solid #dbe3ea;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.inventory-band h2,
.section-title-row h2 {
    font-size: 18px;
    margin-bottom: 12px;
}

.inventory-form {
    grid-template-columns: 1.2fr 0.6fr 0.6fr 1.4fr 1fr auto auto;
    align-items: center;
}

.check-row {
    display: flex;
    align-items: center;
    gap: 7px;
}

.check-row input {
    width: auto;
}

.inventory-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 16px;
    align-items: start;
}

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

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

.product-inventory-column {
    scroll-margin-top: 18px;
}

.inventory-product-tools {
    display: grid;
    gap: 11px;
    margin-bottom: 13px;
    padding: 14px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
}

.inventory-search-box {
    display: grid;
    gap: 6px;
    color: #334155;
    font-size: 12px;
    font-weight: 900;
}

.inventory-search-box input {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    outline: none;
    background: #fff;
    color: #17212b;
    font: inherit;
    font-weight: 500;
}

.inventory-search-box input:focus {
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

.inventory-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.inventory-filter-tabs button {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    padding: 8px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #fff;
    color: #475569;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
}

.inventory-filter-tabs button span {
    display: inline-flex;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #e2e8f0;
    font-size: 10px;
}

.inventory-filter-tabs button:hover,
.inventory-filter-tabs button.active {
    border-color: #059669;
    background: #ecfdf5;
    color: #047857;
}

.inventory-filter-tabs .sold-out-filter:hover,
.inventory-filter-tabs .sold-out-filter.active {
    border-color: #fb7185;
    background: #fff1f2;
    color: #9f1239;
}

.inventory-filter-tabs .sold-out-filter.active span {
    background: #be123c;
    color: #fff;
}

.products-result-summary {
    min-height: 17px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.inventory-card {
    padding: 12px;
}

.inventory-card-top {
    display: grid;
    grid-template-columns: minmax(128px, 170px) 1fr;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.inventory-product-gallery {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
}

.inventory-thumb {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 7px;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    font-weight: 800;
    overflow: hidden;
}

.inventory-thumb.primary {
    grid-column: span 2;
    grid-row: span 2;
}

.inventory-thumb.empty-thumb {
    width: 82px;
}

.inventory-photo-count {
    position: absolute;
    right: 7px;
    bottom: 7px;
    padding: 4px 7px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.78);
    color: #fff;
    font-size: 10px;
    font-weight: 900;
}

.product-summary {
    min-width: 0;
}

.product-price {
    margin-top: 4px;
    color: #047857;
    font-size: 18px;
    font-weight: 900;
}

.product-share-actions {
    display: flex;
    gap: 7px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.product-share-actions a,
.product-share-actions button {
    border: 1px solid #a7f3d0;
    border-radius: 7px;
    padding: 7px 9px;
    background: #ecfdf5;
    color: #047857;
    font-size: 11px;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
}

.product-share-actions .delete-product-button {
    border-color: #fecaca;
    background: #fff1f2;
    color: #b91c1c;
}

.product-share-actions .delete-product-button:disabled {
    cursor: wait;
    opacity: 0.65;
}

.stock-line {
    margin-top: 4px;
    color: #334155;
    font-size: 13px;
    font-weight: 800;
}

.stock-line.out {
    color: #b91c1c;
}

.visibility-status {
    display: inline-flex;
    margin-bottom: 7px;
    padding: 4px 7px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.visibility-status.visible {
    background: #dcfce7;
    color: #047857;
}

.visibility-status.hidden {
    background: #e2e8f0;
    color: #475569;
}

.product-editor {
    border-top: 1px solid #e2e8f0;
    padding-top: 10px;
}

.product-editor > summary {
    color: #047857;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
}

.product-edit-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 12px;
    padding: 13px;
    border-radius: 10px;
    background: #f8fafc;
}

.product-edit-form .edit-description,
.product-edit-form .replacement-photos,
.product-edit-form .check-row {
    grid-column: 1 / -1;
}

.product-edit-form button {
    grid-column: 1 / -1;
}

.reservation-title {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
}

.reservation-details {
    display: grid;
    gap: 4px;
    margin-top: 8px;
}

.reservation-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.reservation-actions button:nth-child(2) {
    background: #b91c1c;
}

.reservation-cancellation-reason {
    margin-top: 5px;
    padding: 8px 10px;
    border-left: 3px solid #e11d48;
    border-radius: 4px;
    background: #fff1f2;
    color: #9f1239;
    font-size: 13px;
    font-weight: 800;
}

.audit-reason-dialog {
    width: min(520px, calc(100vw - 28px));
    max-height: calc(100vh - 28px);
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: 16px;
    background: #fff;
    color: #17212b;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
}

.audit-reason-dialog::backdrop {
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(3px);
}

.audit-reason-form {
    display: grid;
    gap: 12px;
    padding: 24px;
}

.audit-reason-form h2 {
    font-size: 23px;
    line-height: 1.15;
}

.audit-reason-form > label {
    color: #334155;
    font-size: 13px;
    font-weight: 900;
}

.audit-reason-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    outline: none;
    color: #17212b;
    font: inherit;
    line-height: 1.45;
    resize: vertical;
}

.audit-reason-form textarea:focus {
    border-color: #e11d48;
    box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.1);
}

.audit-reason-error {
    min-height: 18px;
    color: #b91c1c;
    font-size: 12px;
    font-weight: 800;
}

.audit-reason-actions {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
}

.audit-reason-actions button {
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #334155;
    cursor: pointer;
    font-weight: 900;
}

.audit-reason-actions .danger {
    border-color: #be123c;
    background: #be123c;
    color: #fff;
}

.pill {
    border-radius: 999px;
    padding: 5px 8px;
    font-size: 11px;
    font-weight: 800;
    background: #e2e8f0;
    color: #334155;
}

.pill.reservada {
    background: #dbeafe;
    color: #1d4ed8;
}

.pill.vendida {
    background: #dcfce7;
    color: #047857;
}

.pill.cancelada {
    background: #fee2e2;
    color: #b91c1c;
}

.empty-state {
    padding: 20px;
    color: #64748b;
    background: #fff;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
}

.reports-header {
    max-width: 1240px;
}

.reports-header p {
    margin-top: 5px;
    color: #64748b;
}

.reports-shell {
    max-width: 1240px;
}

.report-filter-card,
.report-table-card {
    border: 1px solid #dbe3ea;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

.report-filter-card {
    padding: 17px;
}

.report-filter {
    display: grid;
    grid-template-columns: repeat(3, minmax(145px, 1fr)) auto minmax(260px, auto);
    gap: 12px;
    align-items: end;
}

.report-filter label {
    display: grid;
    gap: 6px;
    color: #334155;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.report-filter input,
.report-filter select {
    width: 100%;
    min-height: 43px;
    padding: 10px 11px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #17212b;
    font: inherit;
    text-transform: none;
    letter-spacing: normal;
}

.report-filter button,
.download-report {
    min-height: 43px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    padding: 10px 14px;
    background: #047857;
    color: #fff;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.download-report {
    border: 1px solid #a7f3d0;
    background: #ecfdf5;
    color: #047857;
}

.report-download-actions {
    display: flex;
    gap: 8px;
}

.pdf-download {
    border-color: #cbd5e1;
    background: #f8fafc;
    color: #334155;
}

.report-message {
    min-height: 19px;
    margin-top: 10px;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
}

.report-message.ok {
    color: #047857;
}

.report-message.error {
    color: #b91c1c;
}

.report-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 16px 0;
}

.report-metric {
    min-height: 148px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 18px;
    overflow: hidden;
    position: relative;
    border: 1px solid #dbe3ea;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(15, 23, 42, 0.05);
}

.report-metric::after {
    content: "";
    width: 76px;
    height: 76px;
    position: absolute;
    right: -25px;
    top: -25px;
    border-radius: 50%;
    background: #d1fae5;
}

.report-metric.primary {
    border-color: #065f46;
    background: #064e3b;
    color: #fff;
}

.report-metric.primary::after {
    background: rgba(255, 255, 255, 0.1);
}

.report-metric.money {
    border-color: #f5d58c;
    background: #fffbeb;
}

.report-metric.money::after {
    background: #fde68a;
}

.report-metric span {
    max-width: 85%;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.report-metric strong {
    margin: 9px 0;
    font-size: clamp(25px, 3vw, 35px);
    line-height: 1;
}

.report-metric small {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.report-metric.primary small {
    color: #a7f3d0;
}

.report-table-card {
    padding: 18px;
}

.report-row-count {
    padding: 6px 9px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    font-weight: 800;
}

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

.report-table {
    width: 100%;
    min-width: 1040px;
    border-collapse: collapse;
    color: #1e293b;
    font-size: 13px;
}

.report-table th {
    padding: 11px 10px;
    border-bottom: 2px solid #dbe3ea;
    color: #64748b;
    font-size: 11px;
    letter-spacing: 0.05em;
    text-align: left;
    text-transform: uppercase;
}

.report-table td {
    padding: 13px 10px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: top;
}

.report-table td strong,
.report-table td span,
.report-table td small {
    display: block;
}

.report-table td small {
    margin-top: 4px;
    color: #64748b;
}

.report-table .number-cell,
.report-table .money-cell {
    font-weight: 900;
    white-space: nowrap;
}

.report-table .money-cell {
    color: #047857;
}

.report-table .audit-reason-text,
.audit-reason-text {
    color: #9f1239;
    font-weight: 800;
}

.deleted-products-report-card {
    margin-top: 16px;
    border-color: #fecdd3;
}

.deleted-products-table {
    min-width: 980px;
}

.danger-eyebrow {
    color: #be123c;
}

.report-audit-title {
    align-items: flex-start;
}

.report-audit-title h2 {
    margin-bottom: 5px;
}

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

.danger-download {
    border-color: #fecdd3;
    background: #fff1f2;
    color: #9f1239;
}

.report-empty {
    margin-top: 12px;
}

.product-page {
    display: block;
    min-height: 100vh;
    height: auto;
    background:
        radial-gradient(circle at 8% 8%, rgba(16, 185, 129, 0.12), transparent 32rem),
        radial-gradient(circle at 92% 12%, rgba(251, 191, 36, 0.11), transparent 28rem),
        #f5f7f5;
    color: #14221d;
}

.product-public-header,
.product-public-shell {
    width: min(1120px, calc(100% - 36px));
    margin: 0 auto;
}

.product-public-header {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.catalog-page.seasonal-theme .product-public-header {
    min-height: 74px;
    margin-top: 20px;
    margin-bottom: 16px;
    border: 1px solid var(--theme-border);
    border-top: 4px solid var(--theme-accent);
    border-radius: 16px;
    padding: 14px 20px;
    background: var(--theme-header);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(12px);
}

.catalog-page[data-theme="black_friday"] .brand-link span,
.catalog-page[data-theme="black_friday"] .brand-link small {
    color: #fff;
}

.brand-link {
    display: grid;
    gap: 2px;
    color: #064e3b;
    text-decoration: none;
}

.brand-link span {
    font-size: 20px;
    font-weight: 950;
    letter-spacing: -0.03em;
}

.brand-link small {
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.catalog-back {
    border: 1px solid #a7f3d0;
    border-radius: 8px;
    padding: 9px 12px;
    background: #ecfdf5;
    color: #047857;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.product-public-shell {
    padding-bottom: 36px;
}

.product-detail-card {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
    gap: 30px;
    padding: 24px;
    border: 1px solid #dbe3ea;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 20px 55px rgba(15, 23, 42, 0.1);
}

.product-detail-gallery {
    min-height: 500px;
    overflow: hidden;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #e4ebe7;
    color: #527066;
    font-size: 64px;
    font-weight: 950;
}

.product-detail-gallery img {
    width: 100%;
    height: 100%;
    min-height: 500px;
    display: block;
    object-fit: cover;
}

.product-detail-thumbnails {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
}

.product-detail-thumbnails:empty {
    display: none;
}

.product-detail-thumbnails button {
    width: 70px;
    height: 70px;
    flex: 0 0 70px;
    overflow: hidden;
    padding: 3px;
    border: 2px solid transparent;
    border-radius: 9px;
    background: #fff;
    cursor: pointer;
}

.product-detail-thumbnails button.active {
    border-color: #059669;
}

.product-detail-thumbnails img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 5px;
    object-fit: cover;
}

.product-detail-info {
    align-self: center;
}

.product-availability {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 6px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.product-availability.available {
    background: #dcfce7;
    color: #047857;
}

.product-availability.sold-out {
    background: #fee2e2;
    color: #b91c1c;
}

.product-detail-info h1 {
    margin-bottom: 10px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.product-detail-price {
    display: block;
    margin-bottom: 14px;
    color: #047857;
    font-size: 30px;
}

.product-detail-description {
    color: #52616d;
    font-size: 16px;
    line-height: 1.55;
}

.product-trust-note {
    display: grid;
    gap: 3px;
    margin: 20px 0;
    padding: 13px;
    border-left: 4px solid #10b981;
    border-radius: 0 9px 9px 0;
    background: #ecfdf5;
    color: #065f46;
    font-size: 13px;
}

.product-trust-note span {
    color: #475569;
}

.product-reserve-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
}

.product-reserve-form label {
    display: grid;
    gap: 5px;
    color: #334155;
    font-size: 12px;
    font-weight: 900;
}

.product-reserve-form label:nth-child(4),
.product-reserve-form button {
    grid-column: 1 / -1;
}

.product-reserve-form input,
.product-reserve-form textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #17212b;
    font: inherit;
}

.product-reserve-form button,
.share-product-card button {
    min-height: 46px;
    border: 0;
    border-radius: 9px;
    padding: 11px 14px;
    background: #047857;
    color: #fff;
    font-weight: 900;
    cursor: pointer;
}

.product-reserve-form button:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

.share-product-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 16px;
    padding: 20px 22px;
    border: 1px solid #dbe3ea;
    border-radius: 14px;
    background: #fff;
}

.share-product-card h2 {
    margin-bottom: 4px;
    font-size: 19px;
}

.share-product-card p {
    color: #64748b;
    font-size: 13px;
}

.reservation-shell {
    max-width: 760px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 36px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reservation-status-card {
    width: 100%;
    background: #fff;
    border: 1px solid #dbe3ea;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.reservation-status-card h1 {
    font-size: 28px;
    margin: 4px 0 18px;
}

.reservation-status-card h2 {
    font-size: 20px;
    margin: 12px 0 8px;
}

@media (max-width: 900px) {
    .catalog-header,
    .inventory-header,
    .reports-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .inventory-form,
    .inventory-layout {
        grid-template-columns: 1fr;
    }

    .product-publisher {
        grid-template-columns: 1fr;
    }

    .publisher-intro {
        position: static;
    }

    .publisher-message {
        grid-column: 1;
    }

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

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

    .product-detail-card {
        grid-template-columns: 1fr;
    }

    .product-detail-gallery,
    .product-detail-gallery img {
        min-height: 440px;
    }

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

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

    .theme-schedule p {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .window-status {
        align-items: stretch;
        flex-direction: column;
    }

    .window-status button {
        width: 100%;
    }

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

    .catalog-pagination button {
        width: 100%;
    }

    .theme-admin-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .theme-preview-link {
        text-align: center;
    }

    .theme-options,
    .theme-schedule {
        grid-template-columns: 1fr;
    }

    .theme-schedule p {
        grid-column: 1;
    }

    .theme-admin-actions button {
        width: 100%;
    }

    .product-edit-form {
        grid-template-columns: 1fr;
    }

    .inventory-header,
    .inventory-shell,
    .reports-header,
    .reports-shell {
        padding-left: 12px;
        padding-right: 12px;
    }

    .product-publisher {
        gap: 22px;
        padding: 20px 15px;
        border-radius: 14px;
    }

    .simple-product-form {
        grid-template-columns: 1fr;
    }

    .full-field {
        grid-column: 1;
    }

    .photo-preview {
        grid-template-columns: repeat(3, minmax(72px, 1fr));
    }

    .inventory-card-top {
        grid-template-columns: 1fr;
    }

    .inventory-product-gallery {
        grid-template-columns: repeat(5, minmax(54px, 1fr));
        overflow-x: auto;
    }

    .inventory-thumb.primary {
        grid-column: auto;
        grid-row: auto;
    }

    .product-edit-form .edit-description,
    .product-edit-form .replacement-photos,
    .product-edit-form .check-row {
        grid-column: 1;
    }

    .report-filter,
    .report-metrics {
        grid-template-columns: 1fr;
    }

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

    .report-metric {
        min-height: 126px;
    }

    .report-audit-title,
    .report-title-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .report-title-actions .download-report {
        justify-content: center;
    }

    .product-public-header,
    .product-public-shell {
        width: min(100% - 24px, 1120px);
    }

    .product-public-header {
        min-height: 110px;
        align-items: flex-start;
        justify-content: center;
        flex-direction: column;
    }

    .product-detail-card {
        gap: 20px;
        padding: 13px;
        border-radius: 14px;
    }

    .product-detail-gallery,
    .product-detail-gallery img {
        min-height: 340px;
    }

    .product-detail-info {
        padding: 4px;
    }

    .product-reserve-form {
        grid-template-columns: 1fr;
    }

    .product-reserve-form label:nth-child(4),
    .product-reserve-form button {
        grid-column: 1;
    }

    .share-product-card {
        align-items: stretch;
        flex-direction: column;
    }
}
