.lista-body {
    background: linear-gradient(135deg, var(--creme) 0%, var(--creme-escuro) 100%);
    color: var(--texto-escuro);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.content-wrapper {
    min-height: calc(100vh - 180px);
    padding-top: 65px;
    padding-bottom: 40px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

body:not(.page-hidden) .content-wrapper {
    opacity: 1;
    transform: translateY(0);
}

.loja-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(245, 234, 224, 0.85);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(92, 48, 32, 0.08);
    padding: 8px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(92, 48, 32, 0.1);
    z-index: 1100;
    height: 65px;
    animation: slideDown 0.6s ease;
    gap: 12px;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.header-left,
.header-right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    width: 40px;
}

.header-search-container {
    flex-grow: 1;
    max-width: 400px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 10px;
}

.search-categories-btn {
    width: 100%;
    height: 40px;
    border-radius: 999px;
    border: 1.5px solid var(--marrom-palido);
    background: var(--branco);
    padding: 0 15px;
    color: var(--marrom);
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(92, 48, 32, 0.02);
}

.search-categories-btn:hover {
    border-color: var(--marrom);
    box-shadow: 0 0 0 3px rgba(92, 48, 32, 0.05);
}

.search-categories-text {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    color: var(--marrom-claro);
    font-weight: 500;
}

.search-categories-text i {
    color: var(--marrom);
    flex-shrink: 0;
}

.search-categories-text span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--marrom);
    font-weight: 600;
}

.icon-btn,
.hamburger-btn {
    background: var(--creme-escuro);
    border: 1px solid rgba(92, 48, 32, 0.05);
    color: var(--marrom);
    font-size: 16px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s;
    box-shadow: 0 2px 6px rgba(92, 48, 32, 0.1);
}

.icon-btn:hover,
.hamburger-btn:hover {
    background: var(--marrom);
    color: var(--creme);
    transform: translateY(-2px);
}

.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(44, 24, 16, 0.45);
    backdrop-filter: blur(5px);
    z-index: 1450;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transicao-lenta);
}

.drawer-overlay.ativo {
    opacity: 1;
    visibility: visible;
}

.nav-drawer {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100vh;
    z-index: 1500;
    background: var(--creme-claro);
    box-shadow: var(--sombra-xl);
    padding: var(--space-12) var(--space-6);
    transition: left var(--transicao-lenta);
    border-right: 1px solid rgba(92, 48, 32, 0.12);
}

.nav-drawer.aberto {
    left: 0;
}

.drawer-brand {
    display: flex;
    align-items: baseline;
    gap: 2px;
    margin-bottom: var(--space-10);
}

.drawer-brand .logo-tua {
    font-size: 2.5rem;
}

.drawer-brand .logo-pele {
    font-size: 1.8rem;
}

.logo-tua {
    font-family: var(--fonte-script), cursive;
    color: var(--marrom);
    line-height: 1;
    font-weight: 300;
    position: relative;
    z-index: 2;
}

.logo-pele {
    font-family: var(--fonte-titulo), serif;
    font-weight: 900;
    color: var(--marrom);
    letter-spacing: -0.04em;
    line-height: 1;
    position: relative;
    z-index: 1;
    -webkit-text-stroke: 0.03em var(--marrom);
}

.drawer-nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.drawer-nav a {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-full);
    color: var(--marrom);
    font-family: var(--fonte-corpo);
    font-size: var(--texto-md);
    font-weight: 700;
    transition: all var(--transicao-normal);
    text-decoration: none;
}

.drawer-nav a:hover,
.drawer-nav a.active {
    background: var(--marrom);
    color: var(--creme);
    transform: translateX(4px);
}

.filters-wrapper {
    position: sticky;
    top: 65px;
    z-index: 1050;
    background: transparent;
    margin-bottom: 20px;
    width: 100%;
}

.filters-container {
    background: transparent;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    max-width: 1400px;
    margin: 0 auto;
}

.filters-container::-webkit-scrollbar {
    display: none;
}

.filters-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.filter-btn,
.promo-toggle {
    background: var(--branco);
    color: var(--marrom);
    border: 1px solid rgba(92, 48, 32, 0.1);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 10px rgba(92, 48, 32, 0.05);
}

.filter-btn:hover,
.promo-toggle:hover {
    background: var(--creme-claro);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(92, 48, 32, 0.1);
}

.filter-btn.active,
.promo-toggle.active {
    background: linear-gradient(135deg, var(--marrom) 0%, var(--marrom-medio) 100%);
    color: var(--creme);
    border-color: transparent;
    box-shadow: 0 6px 15px rgba(92, 48, 32, 0.2);
}

.selection-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(44, 24, 16, 0.45);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(6px);
}

.selection-modal-content {
    background: var(--creme-claro);
    width: 90%;
    max-width: 400px;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 18px 50px rgba(92, 48, 32, 0.25);
    display: flex;
    flex-direction: column;
    max-height: 80vh;
}

.selection-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(92, 48, 32, 0.1);
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.selection-modal-header h3 {
    font-size: 18px;
    color: var(--marrom);
    font-weight: 700;
}

.close-btn {
    background: transparent;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--marrom);
    opacity: 0.6;
}

.selection-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    padding-right: 5px;
}

.selection-list::-webkit-scrollbar {
    display: none;
}

.selection-option {
    background: var(--branco);
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
    font-weight: 600;
    color: var(--marrom);
    border: 1px solid rgba(92, 48, 32, 0.05);
    transition: all 0.2s;
}

.selection-option:hover {
    background: var(--creme);
}

.selection-option.active {
    background: var(--marrom);
    color: var(--creme);
    box-shadow: 0 4px 12px rgba(92, 48, 32, 0.15);
}

.products-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px 20px;
}

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

.message {
    text-align: center;
    padding: 30px;
    color: var(--texto-medio);
    font-weight: 600;
    background: var(--branco);
    border-radius: 16px;
    margin: 20px;
    border: 1px dashed rgba(92, 48, 32, 0.15);
}

.product-card {
    background: var(--branco);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(92, 48, 32, 0.06);
    border: 1px solid rgba(92, 48, 32, 0.05);
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease, opacity 0.6s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.product-card.reveal-hidden {
    opacity: 0 !important;
    transform: translateY(40px) !important;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(92, 48, 32, 0.12);
    border-color: rgba(92, 48, 32, 0.15);
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: var(--creme-escuro);
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .product-image {
    transform: scale(1.08);
}

.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-badge.destaque {
    background: linear-gradient(135deg, var(--marrom), #3a1e14);
    color: var(--creme);
}

.card-badge.promo {
    background: var(--erro);
    color: var(--branco);
}

.card-badge.erro {
    background: #666;
    color: #fff;
}

.product-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
}

.product-title {
    font-family: var(--fonte-titulo);
    font-size: 22px;
    font-weight: 600;
    color: var(--marrom);
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    margin-bottom: 0;
}

.stock-info {
    font-family: var(--fonte-corpo);
    font-size: 12px;
    font-weight: 700;
    color: var(--texto-suave);
    background: var(--creme-escuro);
    padding: 3px 8px;
    border-radius: 6px;
    flex-shrink: 0;
    margin-top: 2px;
}

.product-meta {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    flex-wrap: wrap;
    width: 100%;
}

.meta-item {
    background: rgba(92, 48, 32, 0.06);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    color: var(--marrom-claro);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-description {
    font-size: 13px;
    color: var(--texto-medio);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.price-container {
    margin-top: auto;
    display: flex;
    flex-direction: column;
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--sucesso);
}

.old-price-line {
    display: flex;
    align-items: center;
    gap: 8px;
}

.old-price {
    color: var(--texto-suave);
    text-decoration: line-through;
    font-size: 12px;
    font-weight: 600;
}

.discount-badge {
    background: var(--erro);
    color: white;
    padding: 2px 6px;
    border-radius: 30px;
    font-size: 10px;
    font-weight: 700;
}

.promo-anim-container {
    position: relative;
    height: 20px;
    width: 100%;
    margin-bottom: 2px;
    overflow: hidden;
}

.promo-anim-container .old-price-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.promo-anim-container .promo-countdown {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    display: flex;
    align-items: center;
    color: var(--erro);
    font-size: 11px;
    font-weight: 700;
    background: rgba(220, 38, 38, 0.1);
    padding: 0 6px;
    border-radius: 4px;
    width: max-content;
    opacity: 0;
}

.promo-anim-container.animate .old-price-line {
    animation: fadeOutUp 8s infinite;
}

.promo-anim-container.animate .promo-countdown {
    animation: fadeInUp 8s infinite;
}

@keyframes fadeOutUp {

    0%,
    45% {
        opacity: 1;
        transform: translateY(0);
    }

    50%,
    95% {
        opacity: 0;
        transform: translateY(-10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {

    0%,
    45% {
        opacity: 0;
        transform: translateY(10px);
    }

    50%,
    95% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(10px);
    }
}

@media (max-width: 768px) {
    .header-search-container {
        margin: 0 5px;
    }

    .search-categories-btn {
        height: 36px;
        font-size: 13px;
    }

    .filters-wrapper {
        top: 65px;
    }

    .filters-container {
        padding: 8px 16px;
    }

    .products-container {
        padding: 5px 16px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product-info {
        padding: 12px;
    }

    .product-title {
        font-size: 18px;
    }

    .product-price {
        font-size: 17px;
    }
}

@media (max-width: 400px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

.product-card,
.product-card * {
    box-sizing: border-box;
}

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

.product-info,
.product-title-row,
.price-container,
.product-meta,
.old-price-line,
.promo-anim-container,
.promo-anim-container .old-price-line {
    min-width: 0;
    max-width: 100%;
}

.product-title-row {
    align-items: flex-start;
}

.product-title {
    display: block !important;
    min-width: 0;
    max-width: 100%;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: initial !important;
}

.stock-info {
    flex-shrink: 0;
    max-width: 44px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}

.product-meta {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    overflow: hidden;
}

.meta-item {
    min-width: 0;
    flex: 1 1 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-description {
    min-width: 0;
    max-width: 100%;
}

.price-container {
    gap: 2px;
    overflow: hidden;
}

.product-price {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.old-price-line {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
    overflow: hidden;
}

.old-price {
    display: block;
    flex: 0 1 auto;
    
    min-width: 0;
    
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.discount-badge {
    flex: 0 0 auto;
    
    white-space: nowrap;
    border-radius: 30px !important;
    
}

.promo-anim-container .promo-countdown {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .product-meta {
        gap: 4px;
    }

    .meta-item {
        font-size: 9px;
        padding: 3px 6px;
    }
}

body.page-hidden {
    opacity: 0;
    visibility: hidden;
}

.header-center {
    flex: 1;
    min-width: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 10px;
}

.header-center h1 {
    margin: 0;
    color: var(--marrom);
    font-family: var(--fonte-titulo);
    font-weight: 800;
    font-size: clamp(18px, 4vw, 22px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

.header-logo-texto {
    display: inline-flex;
    align-items: baseline;
    gap: 1px;
    max-width: 118px;
    overflow: hidden;
}

.header-logo-texto .logo-tua {
    font-size: 1.45rem;
}

.header-logo-texto .logo-pele {
    font-size: 1.15rem;
}

.logo-link {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.filters-wrapper {
    margin-top: 0;
}

.filter-btn,
.status-toggle,
.promo-toggle {
    background: var(--branco);
    color: var(--marrom);
    border: 1px solid rgba(92, 48, 32, 0.1);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 10px rgba(92, 48, 32, 0.05);
    font-family: inherit;
}

.filter-btn:hover,
.status-toggle:hover,
.promo-toggle:hover {
    background: var(--creme-claro);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(92, 48, 32, 0.1);
}

.filter-btn.active,
.status-toggle.active,
.promo-toggle.active {
    background: linear-gradient(135deg, var(--marrom) 0%, var(--marrom-medio) 100%);
    color: var(--creme);
    border-color: transparent;
    box-shadow: 0 6px 15px rgba(92, 48, 32, 0.2);
}

.products-actions-bar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.products-actions-bar .add-product-btn,
.products-actions-bar .transfer-product-btn {
    margin-bottom: 0;
}

.transfer-product-btn {
    border: 1px solid rgba(92, 48, 32, 0.16);
    background: rgba(255, 255, 255, 0.78);
    color: var(--marrom);
    border-radius: var(--radius-full);
    padding: 12px 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--fonte-corpo);
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(92, 48, 32, 0.10);
    transition: all var(--transicao-normal);
}

.transfer-product-btn:hover {
    background: var(--branco);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(92, 48, 32, 0.16);
}

.add-product-btn {
    border: none;
    background: linear-gradient(135deg, var(--marrom) 0%, var(--marrom-medio) 100%);
    color: var(--creme);
    border-radius: var(--radius-full);
    padding: 12px 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--fonte-corpo);
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(92, 48, 32, 0.16);
    transition: all var(--transicao-normal);
    margin-bottom: 18px;
}

.add-product-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(92, 48, 32, 0.22);
}

.product-card {
    isolation: isolate;
}

.product-admin-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.product-action-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.82);
    background: rgba(253, 248, 244, 0.93);
    color: var(--marrom);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 6px 14px rgba(44, 24, 16, 0.18);
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
}

.product-action-btn:hover {
    transform: translateY(-2px) scale(1.04);
    background: var(--marrom);
    color: var(--creme);
}

.product-action-btn.star-btn.active {
    background: #d9a441;
    color: #fff;
    border-color: rgba(255,255,255,0.8);
}

.product-action-btn.delete-btn:hover {
    background: var(--erro);
    color: #fff;
}

.product-action-btn.toggle-btn.inactive {
    background: rgba(192, 57, 43, 0.95);
    color: #fff;
}

.product-status {
    margin-top: 12px;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.status-active {
    background: rgba(39, 174, 96, 0.12);
    color: var(--sucesso);
}

.status-inactive {
    background: rgba(192, 57, 43, 0.12);
    color: var(--erro);
}

.product-image-wrapper .product-image {
    display: block;
}

.product-title-row {
    min-width: 0;
}

.product-card.disabled-product {
    opacity: 0.72;
}

.product-card.disabled-product .product-image {
    filter: grayscale(20%);
}

.selection-modal.show,
.province-modal.show {
    display: flex;
}

.province-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    padding-right: 5px;
}

.province-option {
    background: var(--branco);
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
    font-weight: 600;
    color: var(--marrom);
    border: 1px solid rgba(92, 48, 32, 0.05);
    transition: all 0.2s;
}

.province-option:hover {
    background: var(--creme);
}

.province-option.active {
    background: var(--marrom);
    color: var(--creme);
    box-shadow: 0 4px 12px rgba(92, 48, 32, 0.15);
}

.confirm-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.confirm-modal-actions .btn-confirm,
.confirm-modal-actions .btn-cancel {
    flex: 1;
    min-height: 44px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: 800;
}

.btn-cancel {
    background: var(--branco);
    color: var(--marrom);
    border: 1px solid rgba(92, 48, 32, 0.1) !important;
}

.btn-confirm {
    background: var(--erro);
    color: #fff;
}

.painel-footer {
    margin-top: auto;
    padding: 32px 18px;
    text-align: center;
    background: rgba(92, 48, 32, 0.92);
    color: var(--creme-claro);
}

.footer-logo-texto {
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
    margin-bottom: 10px;
}

.footer-logo-texto .logo-tua {
    color: var(--creme);
    font-size: 2rem;
}

.footer-logo-texto .logo-pele {
    color: var(--creme);
    -webkit-text-stroke-color: var(--creme);
    font-size: 1.55rem;
}

.footer-dev {
    margin-top: 12px;
    font-size: 13px;
}

.dev-link {
    color: var(--creme);
    text-decoration: none;
}

.dev-link:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .header-logo-texto .logo-tua {
        font-size: 1.25rem;
    }

    .header-logo-texto .logo-pele {
        font-size: 1rem;
    }

    .product-admin-actions {
        top: 8px;
        right: 8px;
        gap: 6px;
    }

    .product-action-btn {
        width: 31px;
        height: 31px;
        font-size: 12px;
    }

    .add-product-btn {
        width: 100%;
    }

    .confirm-modal-actions {
        flex-direction: column;
    }
}


.products-header-center {
    justify-content: center;
}

.products-page-title-sr {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.stock-section-switch {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(92, 48, 32, 0.12);
    box-shadow: inset 0 2px 4px rgba(92, 48, 32, 0.03), 0 8px 18px rgba(92, 48, 32, 0.08);
    max-width: min(100%, 360px);
}

.stock-section-tab {
    min-height: 36px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--marrom);
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-weight: 800;
    font-size: 13px;
    white-space: nowrap;
    cursor: pointer;
    transition: all .22s ease;
}

.stock-section-tab.active {
    background: linear-gradient(135deg, var(--marrom) 0%, var(--marrom-medio) 100%);
    color: var(--creme);
    box-shadow: 0 6px 14px rgba(92, 48, 32, 0.18);
}

.stock-section-tab:not(.active):hover {
    background: rgba(92, 48, 32, 0.06);
}

.filters-wrapper.warehouse-mode #statusToggle {
    display: none !important;
}

.status-warehouse {
    background: rgba(92, 48, 32, 0.12);
    color: var(--marrom);
}

.stock-info.warehouse-stock {
    background: rgba(92, 48, 32, 0.12);
    color: var(--marrom);
}

@media (max-width: 520px) {
    .stock-section-switch { max-width: 260px; }
    .stock-section-tab { min-height: 34px; padding: 0 11px; font-size: 12px; }
    .stock-section-tab span { max-width: 92px; overflow: hidden; text-overflow: ellipsis; }
}


/* listar-produtos — ações dos cards com cores individuais e opacidade 0.4 */
.product-admin-actions .product-action-btn {
    border-color: rgba(255, 255, 255, 0.72);
    color: #fff;
    box-shadow: 0 8px 18px rgba(44, 24, 16, 0.20);
    backdrop-filter: blur(8px);
}

.product-admin-actions .product-action-btn.edit-btn {
    background: rgba(52, 152, 219, 0.40);
}

.product-admin-actions .product-action-btn.toggle-btn {
    background: rgba(243, 156, 18, 0.40);
}

.product-admin-actions .product-action-btn.toggle-btn.inactive {
    background: rgba(127, 140, 141, 0.40);
}

.product-admin-actions .product-action-btn.star-btn {
    background: rgba(241, 196, 15, 0.40);
}

.product-admin-actions .product-action-btn.star-btn.active {
    background: rgba(240, 184, 62, 0.40);
}

.product-admin-actions .product-action-btn.delete-btn {
    background: rgba(192, 57, 43, 0.40);
}

.product-admin-actions .product-action-btn:hover {
    transform: translateY(-2px) scale(1.04);
    filter: saturate(1.12);
    color: #fff;
}


/* listar-produtos — botão de transferência e destaque com estado visual claro */
.product-admin-actions .product-action-btn.star-btn {
    background: rgba(241, 196, 15, 0.24);
    color: #fff;
}

.product-admin-actions .product-action-btn.star-btn.active {
    background: rgba(241, 196, 15, 0.40);
    color: #fff;
    border-color: rgba(255, 232, 139, 0.95);
    box-shadow: 0 0 0 3px rgba(241, 196, 15, 0.18), 0 8px 18px rgba(44, 24, 16, 0.20);
}

@media (max-width: 520px) {
    .products-actions-bar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .products-actions-bar .add-product-btn,
    .products-actions-bar .transfer-product-btn {
        width: 100%;
        padding-inline: 12px;
        font-size: 12px;
        min-height: 44px;
    }
}

/* Ajuste lógico de inventário: cards independentes e ações reduzidas no Armazém */
@media (max-width: 768px) {
    .products-grid {
        align-items: start;
    }

    .products-grid .product-card {
        height: auto !important;
        align-self: start;
    }
}

.product-admin-actions.warehouse-actions {
    flex-direction: row;
    gap: 8px;
}


/* Mobile masonry: cards em colunas independentes, sem alinhamento forçado por linha */
@media (max-width: 768px) {
  .products-grid.masonry-grid {
    display: block !important;
    column-count: 2;
    column-gap: 12px;
    padding-inline: 16px;
  }

  .products-grid.masonry-grid .product-card {
    display: inline-flex;
    width: 100%;
    margin: 0 0 12px;
    break-inside: avoid;
    page-break-inside: avoid;
    -webkit-column-break-inside: avoid;
    height: auto !important;
    align-self: auto !important;
    vertical-align: top;
  }
}

@media (max-width: 400px) {
  .products-grid.masonry-grid {
    column-count: 1;
  }
}

/* Ajuste final mobile: masonry por colunas com prioridade de linha
   1º card à esquerda, 2º à direita, depois empilha por coluna. */
.products-grid.row-priority-masonry .masonry-column {
    display: contents;
}

@media (max-width: 768px) {
    .products-grid.row-priority-masonry {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        padding-inline: 16px;
        column-count: initial !important;
        column-gap: initial !important;
        align-items: start;
    }

    .products-grid.row-priority-masonry .masonry-column {
        display: flex;
        flex-direction: column;
        gap: 12px;
        min-width: 0;
    }

    .products-grid.row-priority-masonry .product-card {
        width: 100%;
        margin: 0 !important;
        height: auto !important;
        align-self: stretch;
        display: flex;
    }

    .filters-container {
        overflow-x: auto;
        padding-inline: 16px;
        scroll-snap-type: x proximity;
    }

    .filters-inner,
    .filter-buttons,
    #dynamicFilters {
        width: max-content;
        min-width: max-content;
        flex-wrap: nowrap;
    }

    .filter-btn,
    .promo-toggle,
    .status-toggle {
        flex: 0 0 auto;
        width: auto;
        min-width: max-content;
        white-space: nowrap;
        scroll-snap-align: start;
    }

    .product-meta {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .product-meta::-webkit-scrollbar {
        display: none;
    }

    .meta-item {
        flex: 0 0 auto;
        max-width: none;
    }
}

/* Ajuste final: respiro entre colunas/cards no mobile mantendo prioridade de linha */
@media (max-width: 768px) {
    .products-grid.row-priority-masonry {
        column-gap: 18px !important;
        row-gap: 18px !important;
        gap: 18px !important;
        padding-inline: 16px !important;
    }

    .products-grid.row-priority-masonry .masonry-column {
        gap: 18px !important;
    }
}

@media (max-width: 380px) {
    .products-grid.row-priority-masonry {
        column-gap: 14px !important;
        row-gap: 16px !important;
        gap: 16px 14px !important;
        padding-inline: 14px !important;
    }

    .products-grid.row-priority-masonry .masonry-column {
        gap: 16px !important;
    }
}

/* Restaura reticências nas etiquetas dos cards sem afetar os filtros do topo */
.product-card .product-meta {
    display: flex;
    flex-wrap: nowrap;
    gap: 5px;
    width: 100%;
    overflow: hidden;
    align-items: center;
    scrollbar-width: none;
}

.product-card .product-meta::-webkit-scrollbar {
    display: none;
}

.product-card .product-meta .meta-item {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}

@media (max-width: 768px) {
    .product-card .product-meta {
        overflow: hidden !important;
    }

    .product-card .product-meta .meta-item {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        max-width: none !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }
}
