/* ============================================
   NEUMORPHISM DESIGN SYSTEM - ETS MODESTE
   ============================================ */

/* Color Palette */
:root {
    /* Primary Colors - Modern Blue-Purple Gradient */
    --primary-bg: #e0e5ec;
    --primary-dark: #5b86e5;
    --primary-light: #36d1dc;
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --accent: #f093fb;
    --accent-secondary: #4facfe;

    /* Neutral Colors */
    --bg-main: #e0e5ec;
    --bg-card: #e0e5ec;
    --text-primary: #2d3748;
    --text-secondary: #718096;
    --text-light: #a0aec0;

    /* Shadows for Neumorphism */
    --shadow-light: #ffffff;
    --shadow-dark: #a3b1c6;

    /* Neumorphism Effects */
    --neu-shadow-sm: 6px 6px 12px var(--shadow-dark), -6px -6px 12px var(--shadow-light);
    --neu-shadow-md: 10px 10px 20px var(--shadow-dark), -10px -10px 20px var(--shadow-light);
    --neu-shadow-lg: 15px 15px 30px var(--shadow-dark), -15px -15px 30px var(--shadow-light);
    --neu-shadow-inset: inset 6px 6px 12px var(--shadow-dark), inset -6px -6px 12px var(--shadow-light);
    --neu-shadow-hover: 8px 8px 16px var(--shadow-dark), -8px -8px 16px var(--shadow-light);
}

/* Global Styles */
body {
    background: var(--bg-main);
    color: var(--text-primary);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ============================================
   NEUMORPHIC COMPONENTS
   ============================================ */

/* Neumorphic Card */
.neu-card {
    background: var(--bg-card);
    border-radius: 20px;
    box-shadow: var(--neu-shadow-md);
    padding: 30px;
    transition: all 0.3s ease;
    border: none;
}

.neu-card:hover {
    box-shadow: var(--neu-shadow-lg);
    transform: translateY(-5px);
}

.neu-card-sm {
    background: var(--bg-card);
    border-radius: 15px;
    box-shadow: var(--neu-shadow-sm);
    padding: 20px;
    transition: all 0.3s ease;
}

.neu-card-sm:hover {
    box-shadow: var(--neu-shadow-hover);
}

/* Neumorphic Button */
.neu-btn {
    background: var(--bg-card);
    border: none;
    border-radius: 15px;
    box-shadow: var(--neu-shadow-sm);
    color: var(--text-primary);
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.neu-btn:hover {
    box-shadow: var(--neu-shadow-inset);
    color: var(--text-primary);
}

.neu-btn:active {
    box-shadow: var(--neu-shadow-inset);
    transform: scale(0.98);
}

.neu-btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--neu-shadow-md);
}

.neu-btn-primary:hover {
    box-shadow: var(--neu-shadow-lg);
    transform: translateY(-2px);
    color: white;
}

.neu-btn-accent {
    background: linear-gradient(135deg, var(--accent-secondary) 0%, var(--accent) 100%);
    color: white;
    box-shadow: var(--neu-shadow-md);
}

/* Neumorphic Input */
.neu-input {
    background: var(--bg-card);
    border: none;
    border-radius: 12px;
    box-shadow: var(--neu-shadow-inset);
    padding: 15px 20px;
    color: var(--text-primary);
    font-size: 16px;
    transition: all 0.3s ease;
}

.neu-input:focus {
    outline: none;
    box-shadow: var(--neu-shadow-inset), 0 0 0 3px rgba(102, 126, 234, 0.2);
}

/* ============================================
   HEADER NEUMORPHIC MODERNE
   ============================================ */

.neu-header-modern {
    background: var(--bg-main);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(163, 177, 198, 0.2);
}

/* Top Bar Minimal */
.neu-top-bar {
    background: var(--bg-card);
    border-bottom: 1px solid rgba(163, 177, 198, 0.1);
}

.neu-link-sm {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
    border: none;
    background: none;
    padding: 0;
}

.neu-link-sm:hover {
    color: var(--primary-dark);
}

/* Main Navbar */
.neu-main-navbar {
    background: var(--bg-card);
    box-shadow: var(--neu-shadow-sm);
}

.neu-logo .navbar-brand {
    text-decoration: none;
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.neu-logo .navbar-brand i {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 28px;
}

.neu-logo .navbar-brand .brand-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.neu-logo .navbar-brand:hover {
    transform: scale(1.05);
}

/* Search Bar Compact */
.neu-search-compact {
    max-width: 500px;
}

.search-form {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border-radius: 30px;
    box-shadow: var(--neu-shadow-inset);
    padding: 3px;
    transition: all 0.3s ease;
}

.search-form:focus-within {
    box-shadow: var(--neu-shadow-inset), 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.neu-input-search {
    background: transparent;
    border: none;
    padding: 10px 20px;
    color: var(--text-primary);
    flex-grow: 1;
    font-size: 14px;
}

.neu-input-search:focus {
    outline: none;
}

.neu-input-search::placeholder {
    color: var(--text-light);
}

.neu-search-btn {
    background: var(--primary-gradient);
    border: none;
    border-radius: 50%;
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--neu-shadow-sm);
    transition: all 0.3s ease;
    cursor: pointer;
}

.neu-search-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--neu-shadow-md);
}

/* Cart Container */
.neu-cart-container {
    min-width: 120px;
}

.neu-cart-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    transition: all 0.3s ease;
}

.neu-cart-link:hover {
    color: var(--primary-dark);
}

.neu-cart-icon {
    background: var(--bg-card);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--neu-shadow-sm);
    position: relative;
    transition: all 0.3s ease;
}

.neu-cart-link:hover .neu-cart-icon {
    box-shadow: var(--neu-shadow-md);
    transform: scale(1.05);
}

.neu-cart-icon i {
    color: var(--primary-dark);
    font-size: 18px;
}

.neu-cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    padding: 0 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cart-text {
    font-size: 14px;
    white-space: nowrap;
}

/* Category Navigation Bar */
.neu-category-bar {
    background: var(--bg-card);
    box-shadow: 0 2px 8px rgba(163, 177, 198, 0.15);
    padding: 0;
}

.category-nav-wrapper {
    padding: 0;
}

.category-nav-wrapper .navbar-toggler {
    background: var(--bg-card);
    border: none;
    box-shadow: var(--neu-shadow-sm);
    color: var(--text-primary);
    padding: 8px 15px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    margin: 10px 0;
}

.category-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.category-nav-item {
    margin: 0;
}

.category-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border-radius: 0;
    position: relative;
}

.category-link i {
    margin-right: 6px;
    font-size: 14px;
}

.category-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--primary-gradient);
    transition: width 0.3s ease;
}

.category-link:hover {
    color: var(--primary-dark);
    background: rgba(102, 126, 234, 0.05);
}

.category-link:hover::after,
.category-link.active::after {
    width: 80%;
}

.category-link.active {
    color: var(--primary-dark);
    font-weight: 700;
}

/* Responsive */
@media (max-width: 991px) {
    .neu-search-compact {
        max-width: 100%;
        margin-top: 15px;
        margin-bottom: 15px;
    }

    .neu-cart-container {
        margin-top: 10px;
    }

    .category-nav-list {
        flex-direction: column;
        align-items: flex-start;
    }

    .category-link {
        width: 100%;
        border-radius: 8px;
        margin: 2px 0;
    }

    .category-link::after {
        display: none;
    }

    .category-link.active {
        background: var(--primary-gradient);
        color: white;
    }
}

/* ============================================
   HERO SECTION
   ============================================ */

.neu-hero {
    background: var(--bg-main);
    border-radius: 30px;
    padding: 60px 40px;
    margin: 30px 0;
    position: relative;
    overflow: hidden;
}

.neu-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: var(--primary-gradient);
    opacity: 0.05;
    border-radius: 50%;
}

.neu-hero-content {
    position: relative;
    z-index: 1;
}

.neu-hero h1 {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
}

.neu-hero p {
    color: var(--text-secondary);
    font-size: 20px;
    margin-bottom: 30px;
}

/* ============================================
   PRODUCT CARDS
   ============================================ */

.neu-product-card {
    background: var(--bg-card);
    border-radius: 20px;
    box-shadow: var(--neu-shadow-md);
    overflow: hidden;
    transition: all 0.4s ease;
    border: none;
}

.neu-product-card:hover {
    box-shadow: var(--neu-shadow-lg);
    transform: translateY(-10px);
}

.neu-product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.4s ease;
}

.neu-product-card:hover img {
    transform: scale(1.1);
}

.neu-product-card .card-body {
    padding: 25px;
}

.neu-product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-gradient);
    color: white;
    padding: 8px 15px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: var(--neu-shadow-sm);
}

.neu-product-title {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 10px;
}

.neu-product-price {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 24px;
    font-weight: 800;
}

/* ============================================
   CATEGORY CARDS
   ============================================ */

.neu-category-card {
    background: var(--bg-card);
    border-radius: 20px;
    box-shadow: var(--neu-shadow-md);
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.neu-category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.neu-category-card:hover::before {
    opacity: 0.1;
}

.neu-category-card:hover {
    box-shadow: var(--neu-shadow-lg);
    transform: translateY(-5px);
}

.neu-category-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: var(--neu-shadow-sm);
}

.neu-category-icon i {
    font-size: 35px;
    color: white;
}

.neu-category-title {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.neu-category-count {
    color: var(--text-secondary);
    font-size: 14px;
    position: relative;
    z-index: 1;
}

/* ============================================
   SECTION HEADERS
   ============================================ */

.neu-section-title {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 36px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.neu-section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: var(--primary-gradient);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* ============================================
   BREADCRUMBS
   ============================================ */

.neu-breadcrumb {
    background: var(--bg-card);
    border-radius: 15px;
    box-shadow: var(--neu-shadow-sm);
    padding: 15px 20px;
}

.neu-breadcrumb .breadcrumb {
    background: transparent;
    margin-bottom: 0;
    padding: 0;
}

.neu-breadcrumb .breadcrumb-item a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.neu-breadcrumb .breadcrumb-item a:hover {
    color: var(--primary-dark);
}

.neu-breadcrumb .breadcrumb-item.active {
    color: var(--text-primary);
    font-weight: 600;
}

/* ============================================
   FOOTER
   ============================================ */

.neu-footer {
    background: var(--bg-card);
    border-radius: 30px 30px 0 0;
    box-shadow: var(--neu-shadow-md);
    margin-top: 80px;
    padding: 50px 0 30px;
}

.neu-footer h5 {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.neu-footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.neu-footer a:hover {
    color: var(--primary-dark);
    transform: translateX(5px);
}

/* Social Links */
.neu-social-link {
    width: 45px;
    height: 45px;
    background: var(--bg-card);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--neu-shadow-sm);
    margin: 0 8px;
    transition: all 0.3s ease;
}

.neu-social-link:hover {
    box-shadow: var(--neu-shadow-hover);
    transform: translateY(-3px);
}

.neu-social-link i {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   UTILITIES
   ============================================ */

.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient {
    background: var(--primary-gradient);
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .neu-hero h1 {
        font-size: 32px;
    }

    .neu-section-title {
        font-size: 28px;
    }

    .neu-card {
        padding: 20px;
    }
}
