/* ========================================
   RESET E CONFIGURAÇÕES GLOBAIS
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #f5f3ff 0%, #fce7f3 50%, #f5f3ff 100%);
    min-height: 100vh;
    color: #1f2937;
    line-height: 1.6;
}

.hidden {
    display: none !important;
}

/* ========================================
   LOADING SCREEN
   ======================================== */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    flex-direction: column;
    gap: 1.5rem;
    background: linear-gradient(135deg, #9333ea, #ec4899);
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top: 5px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading p {
    color: white;
    font-size: 1.125rem;
    font-weight: 600;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========================================
   HEADER
   ======================================== */
header {
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #9333ea, #ec4899);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 6px rgba(147, 51, 234, 0.3);
}

.logo-text h1 {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, #9333ea, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
}

.logo-text p {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-cart {
    background: linear-gradient(135deg, #9333ea, #ec4899);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(147, 51, 234, 0.3);
}

.btn-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(147, 51, 234, 0.4);
}

.btn-cart .icon {
    font-size: 1.25rem;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: white;
    min-width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0 6px;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.5);
}

.btn-admin {
    color: #6b7280;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.btn-admin:hover {
    color: #9333ea;
    background: #f3f4f6;
}

/* ========================================
   FILTERS SECTION
   ======================================== */
.filters {
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.filters-container {
    max-width: 1280px;
    margin: 0 auto;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1rem;
}

.filters-grid:last-of-type {
    margin-bottom: 0;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group input[type="text"],
.filter-group input[type="date"],
.filter-group select {
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 1rem;
    transition: all 0.2s;
    background: white;
}

.filter-group input[type="text"]:focus,
.filter-group input[type="date"]:focus,
.filter-group select:focus {
    outline: none;
    border-color: #9333ea;
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1);
}

.filter-group input[type="date"]:disabled {
    background: #f3f4f6;
    cursor: not-allowed;
}

.filter-group input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: linear-gradient(to right, #9333ea, #ec4899);
    outline: none;
    cursor: pointer;
}

.filter-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    border: 3px solid #9333ea;
}

.filter-group input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    border: 3px solid #9333ea;
}

.date-info {
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #f3e8ff, #fce7f3);
    border: 2px solid #e9d5ff;
    border-radius: 0.75rem;
    color: #6b21a8;
    font-weight: 600;
    font-size: 0.9375rem;
}

/* ========================================
   PRODUCTS SECTION
   ======================================== */
.products-container {
    max-width: 1280px;
    margin: 2.5rem auto;
    padding: 0 2rem 3rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
}

.product-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 30px rgba(147, 51, 234, 0.2);
}

.product-image {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.15);
}

.image-count {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.375rem 0.875rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
}

.product-info {
    padding: 1.25rem;
}

.product-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.product-price {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, #9333ea, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.product-meta span:last-child {
    color: #9333ea;
    font-weight: 600;
}

.product-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.quantity-input {
    width: 80px;
    padding: 0.625rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.quantity-input:focus {
    outline: none;
    border-color: #9333ea;
}

.btn-add-cart {
    flex: 1;
    background: linear-gradient(135deg, #9333ea, #ec4899);
    color: white;
    padding: 0.625rem 1rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-add-cart:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.4);
}

.btn-add-cart:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ========================================
   EMPTY STATE
   ======================================== */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #6b7280;
}

.empty-state .empty-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.5rem;
    color: #374151;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.empty-state p {
    font-size: 1rem;
    color: #6b7280;
}

/* ========================================
   LOGIN VIEW
   ======================================== */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #581c87 0%, #9d174d 100%);
    padding: 2rem;
}

.login-box {
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    padding: 3rem;
    width: 100%;
    max-width: 440px;
}

.login-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #9333ea, #ec4899);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 40px;
    box-shadow: 0 8px 16px rgba(147, 51, 234, 0.3);
}

.login-title {
    text-align: center;
    font-size: 2rem;
    color: #1f2937;
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.login-subtitle {
    text-align: center;
    color: #6b7280;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 1rem;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #9333ea;
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    font-family: inherit;
}

.form-group small {
    display: block;
    margin-top: 0.5rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.btn-login {
    width: 100%;
    background: linear-gradient(135deg, #9333ea, #ec4899);
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 1.0625rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(147, 51, 234, 0.3);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(147, 51, 234, 0.4);
}

.btn-back {
    width: 100%;
    margin-top: 1rem;
    background: transparent;
    border: none;
    color: #6b7280;
    font-weight: 600;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.btn-back:hover {
    color: #1f2937;
    background: #f3f4f6;
}

.error-message {
    background: #fef2f2;
    border: 2px solid #fecaca;
    color: #991b1b;
    padding: 0.875rem 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.error-message span:first-child {
    font-size: 1.25rem;
}

.credentials-info {
    margin-top: 2rem;
    padding: 1.25rem;
    background: #f9fafb;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}

.credentials-info p {
    margin: 0.5rem 0;
}

.credentials-info strong {
    color: #374151;
}

.credentials-info code {
    background: white;
    padding: 0.25rem 0.625rem;
    border-radius: 0.375rem;
    font-family: 'Courier New', monospace;
    color: #9333ea;
    font-weight: 600;
    border: 1px solid #e5e7eb;
}

/* ========================================
   ADMIN PANEL
   ======================================== */
.admin-panel {
    display: flex;
    min-height: 100vh;
    background: #f9fafb;
}

.admin-sidebar {
    width: 280px;
    background: white;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.05);
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 0 1.5rem 1.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.sidebar-header h2 {
    font-size: 1.5rem;
    color: #1f2937;
    font-weight: 800;
}

.admin-nav {
    flex: 1;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-item {
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #6b7280;
    font-weight: 600;
    font-size: 0.9375rem;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
}

.nav-item:hover {
    background: #f3f4f6;
    color: #374151;
}

.nav-item.active {
    background: linear-gradient(135deg, #9333ea, #ec4899);
    color: white;
    box-shadow: 0 4px 6px rgba(147, 51, 234, 0.3);
}

.nav-item .nav-icon {
    font-size: 1.25rem;
}

.admin-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    max-width: 100%;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.admin-header h1 {
    font-size: 2.25rem;
    color: #1f2937;
    font-weight: 800;
}

.btn-logout {
    background: #ef4444;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.9375rem;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

.btn-logout:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.4);
}

.admin-section {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   STATS CARDS
   ======================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: white;
    padding: 1.75rem;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    border: 2px solid transparent;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: #9333ea;
}

.stat-card h3 {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.stat-card .stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #9333ea, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   ALERTS SECTION
   ======================================== */
.alert-section {
    margin-bottom: 2.5rem;
}

.alert {
    padding: 1.25rem 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
}

.alert-warning {
    background: #fef3c7;
    border: 2px solid #fbbf24;
    color: #92400e;
}

.alert-info {
    background: #dbeafe;
    border: 2px solid #3b82f6;
    color: #1e40af;
}

.alert-icon {
    font-size: 1.5rem;
}

/* ========================================
   TABLE
   ======================================== */
.table-container {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.table-header {
    padding: 1.5rem 2rem;
    border-bottom: 2px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f9fafb;
}

.table-header h2 {
    font-size: 1.5rem;
    color: #1f2937;
    font-weight: 700;
}

.btn-primary {
    background: linear-gradient(135deg, #9333ea, #ec4899);
    color: white;
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.9375rem;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(147, 51, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(147, 51, 234, 0.4);
}

.btn-secondary {
    background: #6b7280;
    color: white;
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: #4b5563;
}

.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: #f9fafb;
}

th {
    padding: 1.25rem 1.5rem;
    text-align: left;
    font-weight: 700;
    color: #374151;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

td {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid #e5e7eb;
    color: #4b5563;
}

.product-thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 0.5rem;
    object-fit: cover;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-icon {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: all 0.2s;
    font-size: 1.125rem;
}

.btn-icon:hover {
    background: #f3f4f6;
}

.btn-icon.edit:hover {
    background: #dbeafe;
    color: #2563eb;
}

.btn-icon.delete:hover {
    background: #fee2e2;
    color: #dc2626;
}

.btn-icon.view:hover {
    background: #f3e8ff;
    color: #9333ea;
}

.status-badge {
    padding: 0.375rem 0.875rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-block;
}

.status-pendente {
    background: #fef3c7;
    color: #92400e;
}

.status-confirmada {
    background: #dbeafe;
    color: #1e40af;
}

.status-em-uso {
    background: #e0e7ff;
    color: #3730a3;
}

.status-concluida {
    background: #d1fae5;
    color: #065f46;
}

.status-cancelada {
    background: #fee2e2;
    color: #991b1b;
}

/* ========================================
   MODAL
   ======================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 1.25rem;
    max-width: 1000px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 2px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}

.modal-header h2 {
    font-size: 1.75rem;
    color: #1f2937;
    font-weight: 700;
}

.btn-close {
    background: transparent;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #6b7280;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    line-height: 1;
}

.btn-close:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.modal-body {
    padding: 2rem;
}

/* ========================================
   PRODUCT DETAILS MODAL
   ======================================== */
.product-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.product-gallery {
    position: relative;
}

.main-image {
    width: 100%;
    height: 400px;
    border-radius: 1rem;
    overflow: hidden;
    background: #f3f4f6;
    margin-bottom: 1rem;
    position: relative;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
}

.gallery-btn {
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
}

.gallery-btn:hover {
    background: #f3f4f6;
    transform: scale(1.1);
}

.thumbnails-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.thumbnail {
    height: 80px;
    border-radius: 0.5rem;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.2s;
}

.thumbnail.active {
    border-color: #9333ea;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail:hover {
    opacity: 0.8;
}

.product-details-info h3 {
    font-size: 2rem;
    color: #1f2937;
    font-weight: 800;
    margin-bottom: 1rem;
}

.product-details-price {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #9333ea, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
}

.product-details-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 0.75rem;
}

.meta-item {
    display: flex;
    flex-direction: column;
}

.meta-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.meta-value {
    font-size: 1.125rem;
    color: #1f2937;
    font-weight: 700;
}

.product-description {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.product-description h4 {
    font-size: 1.125rem;
    color: #1f2937;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.product-description p {
    color: #4b5563;
    line-height: 1.7;
}

.product-add-section {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.product-add-section .quantity-input {
    width: 100px;
}

.product-add-section .btn-add-cart {
    flex: 1;
    padding: 1rem 1.5rem;
    font-size: 1rem;
}

/* ========================================
   CART MODAL
   ======================================== */
.cart-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    align-items: center;
}

.cart-item-image {
    width: 100px;
    height: 100px;
    border-radius: 0.5rem;
    overflow: hidden;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.cart-item-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #9333ea;
    margin-bottom: 0.5rem;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border: 2px solid #e5e7eb;
    background: white;
    border-radius: 0.375rem;
    cursor: pointer;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.quantity-btn:hover {
    border-color: #9333ea;
    color: #9333ea;
}

.quantity-display {
    font-weight: 700;
    color: #1f2937;
    min-width: 30px;
    text-align: center;
}

.cart-item-remove {
    background: #fee2e2;
    color: #dc2626;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.cart-item-remove:hover {
    background: #fecaca;
}

.cart-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #e5e7eb;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.cart-total span:first-child {
    color: #6b7280;
    font-weight: 600;
}

.total-value {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #9333ea, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-checkout {
    width: 100%;
    background: linear-gradient(135deg, #9333ea, #ec4899);
    color: white;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 1.125rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(147, 51, 234, 0.3);
}

.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(147, 51, 234, 0.4);
}

/* ========================================
   CHECKOUT MODAL
   ======================================== */
.checkout-summary {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
}

.checkout-summary h3 {
    font-size: 1.25rem;
    color: #1f2937;
    font-weight: 700;
    margin-bottom: 1rem;
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.checkout-item:last-child {
    border-bottom: none;
}

.checkout-item-name {
    color: #4b5563;
    font-weight: 600;
}

.checkout-item-price {
    color: #1f2937;
    font-weight: 700;
}

.checkout-dates {
    margin: 1.5rem 0;
    padding: 1rem;
    background: white;
    border-radius: 0.5rem;
}

.checkout-dates p {
    margin: 0.5rem 0;
    color: #4b5563;
}

.checkout-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #e5e7eb;
    font-size: 1.5rem;
}

.checkout-total span:first-child {
    color: #6b7280;
    font-weight: 600;
}

.checkout-total span:last-child {
    font-weight: 800;
    background: linear-gradient(135deg, #9333ea, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-whatsapp {
    width: 100%;
    background: #25D366;
    color: white;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 1.125rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(37, 211, 102, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.btn-whatsapp:hover {
    background: #20BA5A;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(37, 211, 102, 0.4);
}

/* ========================================
   FORM STYLES
   ======================================== */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #e5e7eb;
}

/* ========================================
   BOOKING DETAILS
   ======================================== */
.booking-detail-section {
    margin-bottom: 2rem;
}

.booking-detail-section h3 {
    font-size: 1.25rem;
    color: #1f2937;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.booking-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.booking-info-item {
    background: #f9fafb;
    padding: 1rem;
    border-radius: 0.5rem;
}

.booking-info-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.booking-info-value {
    font-size: 1.125rem;
    color: #1f2937;
    font-weight: 700;
}

.booking-items-list {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 0.75rem;
}

.booking-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.booking-item:last-child {
    border-bottom: none;
}

.booking-item-info {
    flex: 1;
}

.booking-item-name {
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.booking-item-quantity {
    font-size: 0.875rem;
    color: #6b7280;
}

.booking-item-price {
    font-weight: 700;
    color: #9333ea;
    font-size: 1.125rem;
}

.booking-status-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.booking-status-actions button {
    flex: 1;
    padding: 0.875rem;
    border: none;
    border-radius: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-confirm {
    background: #10b981;
    color: white;
}

.btn-confirm:hover {
    background: #059669;
}

.btn-cancel {
    background: #ef4444;
    color: white;
}

.btn-cancel:hover {
    background: #dc2626;
}

.btn-complete {
    background: #3b82f6;
    color: white;
}

.btn-complete:hover {
    background: #2563eb;
}

/* ========================================
   CHARTS
   ======================================== */
.charts-section {
    margin-top: 2rem;
}

.chart-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.chart-card h3 {
    font-size: 1.25rem;
    color: #1f2937;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1024px) {
    .header-container {
        padding: 1rem 1.5rem;
    }

    .filters-grid {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .admin-panel {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
        padding: 1.5rem 1rem;
    }

    .admin-nav {
        flex-direction: row;
        overflow-x: auto;
        gap: 0.5rem;
    }

    .nav-item {
        white-space: nowrap;
    }

    .product-details-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 1rem;
    }

    .logo-text h1 {
        font-size: 1.25rem;
    }

    .logo-text p {
        font-size: 0.75rem;
    }

    .logo {
        width: 48px;
        height: 48px;
        font-size: 24px;
    }

    .btn-cart {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }

    .filters {
        padding: 1rem;
    }

    .products-container {
        padding: 0 1rem 2rem;
        margin: 1.5rem auto;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .cart-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .cart-item-image {
        width: 100%;
        height: 200px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .booking-info-grid {
        grid-template-columns: 1fr;
    }

    .booking-status-actions {
        flex-direction: column;
    }

    .admin-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .admin-header h1 {
        font-size: 1.75rem;
    }

    .table-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .table-wrapper {
        overflow-x: scroll;
    }

    table {
        min-width: 600px;
    }
}

@media (max-width: 480px) {
    .logo-text h1 {
        font-size: 1rem;
    }

    .logo {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .btn-cart span:not(.icon):not(.cart-badge) {
        display: none;
    }

    .product-name {
        font-size: 1rem;
    }

    .product-price {
        font-size: 1.5rem;
    }

    .login-box {
        padding: 2rem 1.5rem;
    }

    .login-title {
        font-size: 1.5rem;
    }

    .modal-content {
        max-height: 95vh;
    }

    .modal-header h2 {
        font-size: 1.25rem;
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

/* ========================================
   SCROLLBAR CUSTOMIZATION
   ======================================== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #9333ea, #ec4899);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #7c3aed, #db2777);
}