@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #ff7e00; /* Laranja Fênix */
    --primary-hover: #e66e00;
    --bg-dark: #f8fafc; /* Tema Claro (Branco) Padrão */
    --card-bg: #ffffff;
    --header-bg: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border: rgba(255, 126, 0, 0.25);
    --glass: rgba(0, 0, 0, 0.03);
    --input-bg: #f1f5f9;
    --input-text: #0f172a;
    --table-header-bg: #e2e8f0;
    --danger: #ef4444;
    --success: #10b981;
    --heading-gradient: linear-gradient(to right, #0f172a, #ff7e00);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] {
    --bg-dark: #0a0a0a; /* Tema Escuro (Preto) */
    --card-bg: rgba(25, 25, 25, 0.85);
    --header-bg: #0a0a0a;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --border: rgba(255, 126, 0, 0.2);
    --glass: rgba(255, 255, 255, 0.03);
    --input-bg: #191919;
    --input-text: #ffffff;
    --table-header-bg: #1a1a1a;
    --danger: #ff4d4d;
    --success: #ffca28;
    --heading-gradient: linear-gradient(to right, #fff, #94a3b8);
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
}

html {
    background-color: var(--bg-dark);
    overflow-x: hidden;
    max-width: 100vw;
}

.logo-img {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(255, 126, 0, 0.3));
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: var(--bg-dark);
    background-image: 
        radial-gradient(at 0% 0%, rgba(255, 126, 0, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(99, 102, 241, 0.08) 0px, transparent 50%);
    color: var(--text-main);
    min-height: 100vh;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

[data-theme="dark"] body {
    background-image: 
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(16, 185, 129, 0.1) 0px, transparent 50%);
}

/* Glassmorphism Components */
/* Cabeçalhos Fixos */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--header-bg);
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

header > div:last-child {
    padding-right: 120px;
}

@media (max-width: 650px) {
    header > div:last-child {
        padding-right: 45px;
    }
}

.search-container {
    position: relative; /* Volta ao normal para não tampar nada */
    max-width: 800px;
    margin: 2rem auto;
    z-index: 10;
}

table thead th {
    position: sticky;
    top: 0;
    background: var(--table-header-bg);
    color: var(--text-main);
    z-index: 10;
    padding: 12px;
    border-bottom: 2px solid var(--primary);
}

.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--heading-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Grid de Produtos */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    margin-bottom: 0.8rem;
    overflow: hidden;
    cursor: zoom-in;
}

.product-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    background: transparent !important;
    border: none;
    padding: 0;
    margin-bottom: 0;
}

.product-zoom-hint {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.65);
    color: white;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.category-badge-list {
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
    margin-bottom: 0.4rem;
}

.category-badge-item {
    font-size: 0.75rem;
    background: rgba(255, 126, 0, 0.15);
    color: var(--primary);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    border: 1px solid rgba(255, 126, 0, 0.3);
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0.5rem 0;
}

.product-stock {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

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

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    text-align: center;
    text-decoration: none;
    color: var(--text-main);
}

.btn.glass-card {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-main) !important;
    transition: all 0.3s ease;
}

.btn.glass-card:hover {
    background: rgba(255, 126, 0, 0.15) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 15px rgba(255, 126, 0, 0.3) !important;
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:disabled {
    background: #334155;
    cursor: not-allowed;
}

/* Admin Dashboard Styling */
.admin-header {
    background: var(--glass);
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 24px;
    width: 92%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 2rem;
    padding: 2.5rem;
    box-sizing: border-box;
    animation: zoomIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#product-edit-modal .modal-content {
    display: block !important;
    max-width: 950px !important;
    width: 92% !important;
    max-height: 85vh !important;
    overflow-y: auto !important;
    margin: auto !important;
    padding: 2rem 2.5rem !important;
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    z-index: 10;
}

.modal-image {
    width: 100%;
    max-height: 350px;
    border-radius: 12px;
    object-fit: contain;
    background: transparent !important;
}

/* Quantity Selector */
.quantity-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
}

.qty-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--glass);
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-input {
    width: 80px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    background: transparent;
    border: none;
    color: white;
}

.shortcut-group {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 2rem;
    width: 100%;
}

.shortcut-btn {
    padding: 0.6rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--glass);
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    flex: 1;
    min-width: 60px;
}

.shortcut-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.total-display {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--success);
    margin-top: 1.5rem;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
}

@media (max-width: 768px) {
    .modal-content {
        grid-template-columns: 1fr;
    }
    header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    .header-brand {
        flex-direction: column;
        gap: 0.5rem;
    }
    header > div:last-child {
        flex-wrap: wrap;
        justify-content: center;
    }
}

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

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    color: var(--text-muted);
    font-weight: 500;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.form-group input:not([type="checkbox"]),
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1.2rem;
    font-size: 1rem;
    background: var(--input-bg) !important;
    border: 1px solid var(--border) !important;
    border-radius: 8px;
    color: var(--input-text) !important;
    outline: none !important;
    box-shadow: none !important;
    transition: all 0.3s ease;
    cursor: pointer;
}

select option {
    background-color: var(--input-bg) !important;
    color: var(--input-text) !important;
    padding: 0.8rem 1rem;
}

.form-group input::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 10px rgba(255, 126, 0, 0.3) !important;
}

.search-container {
    position: relative;
    max-width: 800px;
    margin: 2rem auto;
    transition: transform 0.3s ease; /* Acompanha o movimento */
}

.search-container:hover {
    transform: translateY(-5px); /* Move o conjunto todo: barra + lupa */
}

#search-input {
    width: 100%;
    padding: 1.2rem 3rem 1.2rem 1.5rem;
    font-size: 1.1rem;
    background: var(--card-bg);
    border: 1px solid var(--border) !important;
    border-radius: 12px;
    color: var(--text-main);
    outline: none !important;
    box-shadow: var(--shadow) !important;
    transition: all 0.3s ease;
}

#search-input:focus {
    border-color: var(--primary) !important;
    outline: none !important;
    box-shadow: 0 0 15px rgba(255, 126, 0, 0.4) !important;
}

.search-icon {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 1.2rem;
    pointer-events: none;
    transition: all 0.3s;
}

input:focus {
    border-color: var(--primary) !important;
    outline: none !important;
    box-shadow: 0 0 10px rgba(255, 126, 0, 0.3) !important;
}

/* Remover 'roleta' (spinners) de inputs de número */
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
    -webkit-appearance: none; 
    margin: 0; 
}
input[type=number] {
    -moz-appearance: textfield;
}

input[type="checkbox"] {
    width: 1.2rem !important;
    height: 1.2rem !important;
    accent-color: var(--primary);
    cursor: pointer;
    margin: 0;
    padding: 0;
    border: none !important;
    background: transparent !important;
}

textarea {
    width: 100%;
    padding: 0.75rem;
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--input-text);
    outline: none;
}

/* Login Page */
.login-container {
    min-height: 100vh;
    padding: 2rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    width: 100%;
    max-width: 400px;
}

/* Feedback Visual */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 2rem;
    border-radius: 8px;
    background: var(--success);
    color: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

/* Search Bar */
.search-container {
    margin-bottom: 2rem;
    position: relative;
}

.search-input {
    padding-left: 3rem;
}

/* Selos de Status */
.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: static;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    animation: badgeFadeIn 0.3s ease;
    white-space: nowrap;
}

.product-image-container .status-badge,
.product-card .status-badge {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    z-index: 10;
}

.badge-cart {
    background: rgba(241, 196, 15, 0.2);
    color: #d35400;
    border: 1px solid rgba(241, 196, 15, 0.4);
}

.badge-bought {
    background: rgba(46, 204, 113, 0.2);
    color: #27ae60;
    border: 1px solid rgba(46, 204, 113, 0.4);
}

@keyframes badgeFadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Layout da Vitrine com Sidebar Lateral */
.vitrine-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
}

.vitrine-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-top: 1.5rem;
}

/* Sidebar de Filtros */
.sidebar-filters {
    width: 300px;
    min-width: 280px;
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 100;
}

.sidebar-filters::-webkit-scrollbar {
    width: 6px;
}

.sidebar-filters::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.sidebar-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--border);
}

.sidebar-close-btn {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--text-muted);
}

.sidebar-close-btn:hover {
    color: var(--primary);
}

.filter-section-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    width: 100%;
}

.category-item:hover {
    background: rgba(255, 126, 0, 0.1);
    color: var(--text-main);
    border-color: rgba(255, 126, 0, 0.3);
}

.category-item.active {
    background: rgba(255, 126, 0, 0.2);
    color: #ffffff;
    font-weight: 700;
    border-color: var(--primary);
    box-shadow: 0 0 12px rgba(255, 126, 0, 0.25);
}

.category-item .cat-icon {
    font-size: 1.1rem;
}

.vitrine-main {
    flex: 1;
    min-width: 0;
}

/* Botão de Toggle da Sidebar para Mobile */
.mobile-filter-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    margin-bottom: 1rem;
    padding: 0.8rem 1.2rem;
    background: rgba(255, 126, 0, 0.15);
    border: 1px solid var(--primary);
    border-radius: 10px;
    color: white;
    font-weight: 600;
    cursor: pointer;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1050;
}

/* Ajuste Responsivo da Sidebar */
@media (max-width: 900px) {
    .vitrine-layout {
        flex-direction: column;
    }
    
    .mobile-filter-toggle {
        display: flex;
    }
    
    .sidebar-filters {
        position: fixed;
        top: 0;
        left: -320px;
        height: 100vh;
        max-height: 100vh;
        width: 300px;
        border-radius: 0;
        z-index: 1100;
        overflow-y: auto;
        padding-bottom: 2.5rem;
        transition: left 0.3s ease;
        box-shadow: 5px 0 25px rgba(0,0,0,0.5);
    }
    
    .sidebar-filters.open {
        left: 0;
    }

    .sidebar-overlay.active {
        display: block;
    }

    .sidebar-close-btn {
        display: inline-block;
    }
}

@media (max-width: 650px) {
    .vitrine-container {
        padding: 0.6rem 0.5rem;
    }

    header {
        padding: 0.8rem 0.8rem;
        gap: 0.6rem;
    }

    .header-brand {
        gap: 0.5rem;
    }

    .header-brand h1 {
        font-size: 1.6rem;
    }

    .logo-img {
        height: 45px;
    }

    .search-container {
        margin-top: 0.5rem !important;
        margin-bottom: 1rem !important;
    }

    #search-input {
        padding: 0.8rem 2.5rem 0.8rem 1rem;
        font-size: 0.95rem;
        border-radius: 10px;
    }

    .search-icon {
        right: 1rem;
        font-size: 1rem;
    }

    .mobile-filter-toggle {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
    }

    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.6rem !important;
    }

    .glass-card.product-card {
        padding: 0.5rem;
        border-radius: 12px;
        max-width: 100%;
    }

    .product-image-container {
        height: 110px !important;
        margin-bottom: 0.4rem;
        border-radius: 8px;
    }

    .product-image {
        max-height: 105px !important;
        object-fit: contain;
    }

    .product-zoom-hint {
        font-size: 0.6rem;
        padding: 2px 5px;
        bottom: 4px;
        right: 4px;
    }

    .category-badge-item {
        font-size: 0.65rem;
        padding: 0.1rem 0.35rem;
    }

    .product-card h3 {
        font-size: 0.85rem;
        line-height: 1.25;
        margin-bottom: 0.2rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        min-height: 2.1em;
    }

    .product-price {
        font-size: 0.95rem;
        margin: 0.2rem 0;
    }

    .product-stock {
        font-size: 0.7rem;
        margin-bottom: 0.4rem;
    }

    .product-card .btn {
        padding: 0.45rem 0.5rem;
        font-size: 0.8rem;
        border-radius: 6px;
        width: 100%;
        margin-top: auto;
    }

    .status-badge {
        font-size: 0.6rem;
        padding: 0.2rem 0.4rem;
        top: 0.4rem;
        right: 0.4rem;
        border-radius: 10px;
    }

    /* Modal adjustments on mobile */
    .modal-content {
        padding: 1.2rem;
        gap: 1rem;
        border-radius: 16px;
    }

    #modal-image-container > div:first-child {
        height: 220px !important;
    }
}

/* Botão Alternador de Tema (Canto Superior Direito) */
.site-theme-toggle-btn {
    position: fixed;
    top: 1rem;
    right: 1.2rem;
    z-index: 10001;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--card-bg);
    border: 1.5.px solid var(--border);
    border-radius: 30px;
    padding: 0.45rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-theme-toggle-btn:hover {
    transform: translateY(-2px) scale(1.04);
    border-color: var(--primary);
    box-shadow: 0 6px 20px rgba(255, 126, 0, 0.3);
}

.site-theme-toggle-btn:active {
    transform: translateY(0) scale(0.98);
}

@media (max-width: 650px) {
    .site-theme-toggle-btn {
        top: 0.75rem;
        right: 4.5rem;
        padding: 0.4rem 0.75rem;
        font-size: 0.85rem;
    }
    .theme-toggle-text {
        display: none;
    }
}

/* PAINEL DE COMANDO EXECUTIVO (CONTROLE.HTML) */
.owner-dashboard-layout {
    display: flex;
    min-height: 100vh;
    background: var(--bg);
}

.owner-sidebar {
    width: 270px;
    min-width: 270px;
    background: var(--card-bg);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1rem;
    position: sticky;
    top: 0;
    height: 100vh;
    box-sizing: border-box;
    z-index: 100;
    box-shadow: var(--shadow);
}

.owner-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.owner-sidebar-brand img {
    height: 42px;
    width: 42px;
    border-radius: 8px;
    object-fit: cover;
}

.owner-sidebar-brand h2 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary);
    margin: 0;
    line-height: 1.2;
}

.owner-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.sidebar-nav-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.85rem 1.1rem;
    border-radius: 12px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: all 0.25s ease;
    width: 100%;
    box-sizing: border-box;
}

.sidebar-nav-btn:hover {
    background: rgba(255, 126, 0, 0.08);
    color: var(--primary);
    border-color: rgba(255, 126, 0, 0.2);
    transform: translateX(3px);
}

.sidebar-nav-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, #e65100 100%);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(255, 126, 0, 0.3);
    border-color: transparent;
}

.owner-sidebar-footer {
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.owner-main-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    box-sizing: border-box;
}

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

.owner-top-bar h1 {
    font-size: 1.6rem;
    margin: 0;
    font-weight: 800;
    color: var(--text-main);
}

.owner-tab-pane {
    display: none;
    animation: fadeInTab 0.3s ease;
}

.owner-tab-pane.active {
    display: block;
}

@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.kpi-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.kpi-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
}

.kpi-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    background: rgba(255, 126, 0, 0.12);
    color: var(--primary);
    flex-shrink: 0;
}

.kpi-details h4 {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0 0 0.4rem 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kpi-details .kpi-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
    line-height: 1.1;
}

@media (max-width: 900px) {
    .owner-dashboard-layout {
        flex-direction: column;
    }
    .owner-sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    .owner-sidebar-nav {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    .sidebar-nav-btn {
        white-space: nowrap;
    }
}

/* Carrosséis do Topo (Novidades & Promoções) */
.top-carousels-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
    width: 100%;
}

.carousel-section {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.2rem 1.5rem;
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
    overflow: hidden;
    position: relative;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.carousel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.carousel-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.carousel-track-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}

.carousel-track-wrapper::-webkit-scrollbar {
    height: 6px;
}

.carousel-track-wrapper::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.carousel-track {
    display: flex;
    gap: 1.2rem;
    padding-bottom: 0.5rem;
    width: max-content;
}

.carousel-card {
    width: 220px;
    min-width: 220px;
    flex-shrink: 0;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
}

.carousel-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(255, 126, 0, 0.25);
    border-color: var(--primary);
}

.carousel-card-img-container {
    width: 100%;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 0.6rem;
}

.carousel-card-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.carousel-card-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.3;
    height: 2.6em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.4rem;
}

.carousel-card-price {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.4rem;
}

.carousel-card-btn {
    padding: 0.45rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 6px;
    width: 100%;
    text-align: center;
    background: var(--primary);
    color: white;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.carousel-card-btn:hover {
    background: var(--primary-hover);
}

@media (max-width: 650px) {
    .top-carousels-container {
        gap: 1rem;
        margin-bottom: 1.2rem;
        width: 100%;
        max-width: 100%;
    }
    .carousel-section {
        padding: 0.8rem 0.6rem;
        border-radius: 12px;
        width: 100%;
        max-width: 100%;
    }
    .carousel-title {
        font-size: 1rem;
    }
    .carousel-track {
        gap: 0.8rem;
    }
    .carousel-card {
        width: 145px;
        min-width: 145px;
        max-width: 145px;
        padding: 0.5rem;
        border-radius: 10px;
    }
    .carousel-card-img-container {
        height: 95px;
        margin-bottom: 0.4rem;
    }
    .carousel-card-title {
        font-size: 0.78rem;
        height: 2.4em;
        line-height: 1.2;
        margin-bottom: 0.3rem;
    }
    .carousel-card-price {
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
    }
    .carousel-card-btn {
        padding: 0.35rem 0.4rem;
        font-size: 0.75rem;
        border-radius: 6px;
    }
}

/* Media display for desktop vs mobile carousels */
@media (min-width: 651px) {
    .mobile-only-carousel {
        display: none !important;
    }
    .desktop-only-carousel {
        display: block !important;
    }
}

@media (max-width: 650px) {
    .desktop-only-carousel {
        display: none !important;
    }
    .mobile-only-carousel {
        display: block !important;
    }
}

/* Fade Slideshow para Novidades e Promoções no Mobile */
.carousel-fade-wrapper {
    position: relative;
    width: 100%;
    height: 135px;
    overflow: hidden;
    border-radius: 12px;
}

.carousel-fade-card {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: flex;
    gap: 0.8rem;
    align-items: center;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.6rem 0.8rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(0.97);
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), transform 1.2s cubic-bezier(0.4, 0, 0.2, 1), visibility 1.2s ease;
    cursor: pointer;
}

.carousel-fade-card.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: scale(1);
}

.carousel-fade-card .carousel-card-img-container {
    width: 105px;
    min-width: 105px;
    height: 105px;
    margin-bottom: 0;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-fade-card .carousel-fade-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.carousel-fade-card .carousel-card-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.2;
    height: 2.4em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.3rem;
}

.carousel-fade-card .carousel-card-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.3rem;
}

.carousel-fade-card .carousel-card-btn {
    padding: 0.35rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 6px;
    width: 100%;
}

.carousel-fade-dots {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.carousel-fade-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-fade-dot.active {
    background: var(--primary);
    transform: scale(1.2);
    width: 14px;
    border-radius: 8px;
}




