﻿:root {
    /* Color System */
    --primary: #1a1a1a;
    --primary-light: #333333;
    --accent: #D4AF37;
    /* Gold for premium feel */
    --accent-hover: #E5C158;
    --bg-body: #f8f9fa;
    --bg-card: #ffffff;
    --text-main: #1a1a1a;
    --text-secondary: #666666;
    --border-color: #e0e0e0;
    --success: #2ecc71;
    --danger: #e74c3c;

    /* Spacing & Layout */
    --header-height: 80px;
    --container-width: 1400px;
    --border-radius: 12px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Utilities */
.hidden {
    display: none !important;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 20px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

.btn-text {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    text-decoration: underline;
    margin-top: 10px;
}

.full-width {
    width: 100%;
}

/* Header */
header {
    background: var(--bg-card);
    height: var(--header-height);
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-section {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
}

.logo {
    font-size: 2rem;
    color: var(--primary);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.brand-info h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1;
}

.slogan {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Responsividad del Header */
@media (max-width: 768px) {
    .btn-contact {
        display: none !important;
    }

    .mobile-hide {
        display: none !important;
    }

    .brand-info h1 {
        font-size: 1.2rem;
    }

    .slogan {
        font-size: 0.7rem;
    }

    .logo {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }
}

.info-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.btn-contact {
    background: var(--success);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-contact:hover {
    transform: scale(1.05);
}

.cart-icon {
    position: relative;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s;
}

.cart-icon:hover {
    color: var(--accent);
}

.cart-icon span {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent);
    color: white;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.fav-icon {
    position: relative;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    transition: all 0.2s;
    color: var(--text-primary);
}

.fav-icon:hover {
    color: #e74c3c;
    transform: scale(1.1);
}

.fav-icon span {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e74c3c;
    color: white;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Home View */
.home-view {
    padding: 20px 0;
}

.search-section {
    display: flex;
    justify-content: center;
    padding: 20px 0;
    position: relative;
    z-index: 10;
}

.search-container {
    width: 100%;
    max-width: 600px;
    position: relative;
}

#product-search {
    width: 100%;
    padding: 15px 50px 15px 25px;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-size: 1rem;
    transition: border-color 0.3s;
    font-family: inherit;
}

#product-search:focus {
    outline: none;
    border-color: var(--primary);
}

.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: var(--shadow-lg);
    border-radius: 12px;
    margin-top: 10px;
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid var(--border-color);
}

.search-item-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    cursor: pointer;
    transition: background 0.2s;
    border-radius: 8px;
}

.search-item-row:hover {
    background: #f5f5f5;
}

.search-item-row img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
}

.controls-section {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sort-dropdown select,
.filter-dropdown select {
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-family: inherit;
    cursor: pointer;
    background: white;
}

.sort-dropdown label,
.filter-dropdown label {
    font-size: 0.9rem;
    color: #666;
    margin-right: 5px;
}

@media (max-width: 768px) {
    .controls-section {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .filters-group {
        flex-direction: column;
        width: 100%;
        align-items: stretch !important;
    }

    .sort-dropdown select,
    .filter-dropdown select {
        width: 100%;
    }
}

/* Product Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    max-width: var(--container-width);
    margin: 20px auto;
    padding: 0 20px;
}

.product-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-color);
}

.product-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background: #f0f0f0;
}

.product-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 5px;
    line-height: 1.3;
}

.product-price {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.product-actions {
    margin-top: auto;
    display: flex;
    gap: 10px;
}

.btn-add-cart {
    flex: 1;
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 0.9rem;
}

.btn-add-cart:hover {
    background: var(--primary-light);
}

.btn-fav {
    width: 36px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.btn-fav:hover {
    color: var(--danger);
    border-color: var(--danger);
}

/* Infinite Scroll Loader */
.loading-trigger {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Cart & Checkout Views */
.cart-view,
.checkout-view {
    padding-top: 40px;
    padding-bottom: 60px;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title {
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
}

.cart-layout,
.checkout-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
}

.cart-items {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.cart-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

.item-details {
    flex-grow: 1;
}

.item-details h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.item-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.item-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.qty-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: white;
    cursor: pointer;
}

.qty-btn:hover {
    background: #f5f5f5;
}

.item-total {
    font-weight: bold;
    font-size: 1.1rem;
    margin-left: auto;
}

.remove-btn {
    color: var(--danger);
    font-size: 0.8rem;
    cursor: pointer;
    text-decoration: underline;
    margin-top: 5px;
    display: block;
}

.cart-summary,
.order-preview,
.contact-form {
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    height: fit-content;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.summary-row.total {
    font-weight: 700;
    font-size: 1.3rem;
    border-top: 2px solid var(--border-color);
    padding-top: 15px;
    margin-top: 15px;
}

.shipping-section {
    margin: 25px 0;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
}

.radio-option input {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #ccc;
    position: relative;
}

.radio-option input:checked+.radio-custom {
    border-color: var(--primary);
}

.radio-option input:checked+.radio-custom::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Contact Form */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
}

.payment-options {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.payment-option {
    flex: 1;
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.payment-option:hover {
    background: #fafafa;
}

.payment-option.selected {
    border-color: var(--primary);
    background: #f0f0f0;
}

.payment-option i {
    font-size: 1.5rem;
    margin-bottom: 10px;
    display: block;
}

.success-btn {
    background: #25D366;
}

.success-btn:hover {
    background: #128C7E;
}

/* Responsive */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .cart-layout,
    .checkout-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .mobile-hide {
        display: none;
    }

    .header-container {
        padding: 0 15px;
    }

    .logo {
        font-size: 1.5rem;
    }

    .brand-info h1 {
        font-size: 1.2rem;
    }

    .slogan {
        display: block;
    }

    .cart-summary {
        margin-top: 20px;
    }
}

/* ADMIN & LOGIN Styles (Previously Appended) */
.login-view {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.login-card {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-card h2 {
    margin-bottom: 10px;
}

.login-card p {
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.error-msg {
    color: var(--danger);
    font-size: 0.9rem;
    margin-top: 15px;
}

.icon-btn {
    font-size: 1.2rem;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: background 0.2s;
    color: var(--text-main);
}

.icon-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* Admin Dashboard */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.admin-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.admin-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.frame {
    background: white;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.frame h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.row-group {
    display: flex;
    gap: 15px;
}

.row-group .form-group {
    flex: 1;
}

.table-container {
    overflow-x: auto;
}

.products-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.products-table th,
.products-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.products-table th {
    font-weight: 600;
    color: var(--text-secondary);
}

.products-table img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
}

.btn-delete {
    color: var(--danger);
    background: #ffebeb;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background 0.2s;
}

.btn-delete:hover {
    background: #fee2e2;
}

@media (max-width: 900px) {
    .admin-layout {
        grid-template-columns: 1fr;
    }
}

/* Payment Info Boxes */
.payment-info-box {
    background: #f8f9fa;
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    animation: fadeIn 0.3s ease;

}

.payment-info-box h4 {
    margin-bottom: 15px;
    color: var(--primary);
    font-size: 1.1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;

}

.bank-details p {
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed #eee;
    padding-bottom: 4px;

}

.bank-details p strong {
    color: var(--primary);

}

.info-note {
    margin-top: 15px;
    padding: 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    display: flex;
    gap: 10px;
    align-items: start;
    line-height: 1.4;

}

.info-note.warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;

}

.info-note.info {
    background: #e7f5ff;
    color: #004085;
    border: 1px solid #b8daff;

}

.info-note i {
    margin-top: 3px;
}

/* Modal Alertas Premium */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.3s ease;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(0);
    animation: modalPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalPop {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.modal-icon.success {
    color: #2ecc71;
}

.modal-icon.error {
    color: #e74c3c;
}

.modal-icon.info {
    color: #3498db;
}

#modal-title {
    margin-bottom: 10px;
    font-size: 1.5rem;
    color: var(--primary);
}

#modal-message {
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.5;
}

.hidden {
    display: none !important;
}

/* Multi-upload styles */
.multi-upload-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 5px;
}

.upload-item {
    background: #fdfdfd;
    border: 1px dashed #ccc;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
}

.upload-item small {
    display: block;
    margin-top: 5px;
    color: #888;
}

.file-input {
    width: 100%;
    font-size: 0.75rem;
}

/* Product Card Gallery Indicators */
/* Product Card Gallery Arrows */
.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 15;
    transition: all 0.2s;
    color: var(--primary);
    opacity: 0;
}

.product-image-container:hover .gallery-arrow,
.product-detail-image:hover .gallery-arrow {
    opacity: 1;
}

.gallery-arrow:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.gallery-arrow.prev {
    left: 10px;
}

.gallery-arrow.next {
    right: 10px;
}

.product-gallery-dots {
    display: none;
    /* User requested arrows instead of dots */
}

@media (max-width: 768px) {
    .product-detail-image .gallery-arrow {
        opacity: 1;
        background: rgba(255, 255, 255, 0.9);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
}

.product-image-container {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.product-card .product-image {
    transition: transform 0.5s ease;
}

/* Product Detail Modal Styles */
.product-modal-content {
    background: white;
    padding: 30px;
    border-radius: 20px;
    max-width: 900px;
    width: 95%;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    animation: modalPop 0.3s ease-out;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
    z-index: 100;
}

.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.product-detail-image {
    position: relative;
    height: 450px;
    background: #f9f9f9;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    touch-action: pan-y;
}

.product-detail-image:active {
    cursor: grabbing;
}

.product-detail-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}

.product-detail-info {
    display: flex;
    flex-direction: column;
}

.category-tag {
    background: #f0f0f0;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #666;
    align-self: flex-start;
    margin-top: 10px;
}

#detail-description {
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 1.1rem;
    white-space: pre-wrap;
}

@media (max-width: 768px) {
    .product-detail-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-detail-image {
        height: 300px;
    }

    .product-modal-content {
        max-height: 90vh;
        overflow-y: auto;
        padding: 20px;
    }
}

/* Favorites Modal Styles */
.favs-modal-content {
    background: white;
    padding: 25px;
    border-radius: 20px;
    max-width: 500px;
    width: 95%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    animation: modalPop 0.3s ease-out;
}

.favs-list-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.fav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    background: #fdfdfd;
    border-radius: 12px;
    border: 1px solid #eee;
    transition: transform 0.2s;
}

.fav-item:hover {
    transform: translateX(5px);
    border-color: #ddd;
}

.fav-item img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
}

.fav-item-info {
    flex: 1;
}

.fav-item-info h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--primary);
    cursor: pointer;
}

.fav-item-info p {
    margin: 3px 0;
    font-weight: 700;
    color: var(--accent);
}

.fav-item-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-fav-remove {
    background: none;
    border: none;
    color: #ff7675;
    cursor: pointer;
    font-size: 1.1rem;
    transition: color 0.2s;
}

.btn-fav-remove:hover {
    color: #d63031;
}

.btn-fav-cart {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 5px 10px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-fav-cart:hover {
    opacity: 0.9;
}

/* Admin Orders Styles */
.order-card-admin {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s;
    border: 1px solid #f0f0f0;
}

.order-card-admin:hover {
    transform: scale(1.01);
    background: #fdfdfd;
}

.orders-list-admin {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 5px;
}

.orders-list-admin::-webkit-scrollbar {
    width: 6px;
}

/* --- NEW ADMIN DASHBOARD STYLES --- */

.admin-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    margin-top: 20px;
}

.admin-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: white;
    padding: 15px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-secondary);
    font-weight: 500;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    font-family: inherit;
    font-size: 0.95rem;
}

.admin-nav-item:hover {
    background: #f5f5f5;
    color: var(--primary);
}

.admin-nav-item.active {
    background: var(--primary);
    color: white;
}

.admin-nav-item i {
    width: 20px;
    text-align: center;
}

.admin-content-area {
    min-height: 600px;
}

/* KPI Cards */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.kpi-card {
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-left: 4px solid var(--primary);
    transition: transform 0.3s;
}

.kpi-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.kpi-card i {
    font-size: 1.2rem;
    color: var(--accent);
    margin-bottom: 5px;
}

.kpi-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.kpi-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Dashboard Widgets */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 25px;
}

.widget-panel {
    background: white;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.stock-alert-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.stock-alert-item:last-child {
    border-bottom: none;
}

.stock-alert-img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
}

.stock-alert-info {
    flex: 1;
}

.stock-alert-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.stock-alert-count {
    font-size: 0.8rem;
    color: var(--danger);
    font-weight: 700;
}

.top-product-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.top-product-item:last-child {
    border-bottom: none;
}

.badge-count {
    background: #f0f0f0;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

@media (max-width: 1024px) {
    .admin-container {
        grid-template-columns: 1fr;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .admin-sidebar-nav {
        flex-direction: row;
        overflow-x: auto;
        position: static;
        padding: 10px;
    }

    .admin-nav-item {
        white-space: nowrap;
        width: auto;
    }
}