* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #e0e0e0;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    padding: 40px 0;
    border-bottom: 2px solid #0f3460;
}

header h1 {
    color: #00d4ff;
    font-size: 2.5em;
    margin-bottom: 10px;
}

header h2 {
    color: #e94560;
    font-size: 1.8em;
    margin-bottom: 20px;
}

nav {
    margin-top: 20px;
}

nav a {
    color: #00d4ff;
    text-decoration: none;
    margin: 0 15px;
    padding: 8px 16px;
    border: 1px solid #00d4ff;
    border-radius: 4px;
    transition: all 0.3s ease;
}

nav a:hover {
    background: #00d4ff;
    color: #1a1a2e;
}

main {
    padding: 40px 0;
}

.catalog-intro {
    text-align: center;
    margin-bottom: 50px;
}

.catalog-intro h3 {
    color: #00d4ff;
    font-size: 2em;
    margin-bottom: 15px;
}

.catalog-intro p {
    font-size: 1.2em;
    color: #b0b0b0;
}

.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.product-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #0f3460;
    border-radius: 8px;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
    border-color: #00d4ff;
}

.product-card h4 {
    color: #e94560;
    font-size: 1.5em;
    margin-bottom: 15px;
}

.product-card p {
    color: #b0b0b0;
    margin-bottom: 20px;
    font-size: 1.1em;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #e94560;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #c23650;
}

/* Search and Filter Controls */
.controls {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #0f3460;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.search-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

#searchInput {
    flex: 1;
    min-width: 250px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #0f3460;
    border-radius: 4px;
    color: #e0e0e0;
    font-size: 1em;
}

#searchInput:focus {
    outline: none;
    border-color: #00d4ff;
    background: rgba(255, 255, 255, 0.15);
}

#searchInput::placeholder {
    color: #808080;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #e94560;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
    font-size: 1em;
}

.btn:hover {
    background: #c23650;
}

.btn-secondary {
    background: #0f3460;
}

.btn-secondary:hover {
    background: #1a4d7a;
}

.filter-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

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

.filter-group label {
    color: #00d4ff;
    font-weight: 600;
    min-width: 100px;
}

.mode-btn {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #0f3460;
    border-radius: 4px;
    color: #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mode-btn:hover {
    border-color: #00d4ff;
    background: rgba(0, 212, 255, 0.1);
}

.mode-btn.active {
    background: #00d4ff;
    color: #1a1a2e;
    border-color: #00d4ff;
}

.filter-select {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #0f3460;
    border-radius: 4px;
    color: #e0e0e0;
    font-size: 1em;
    min-width: 200px;
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: #00d4ff;
}

.alphabet-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.letter-btn {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #0f3460;
    border-radius: 4px;
    color: #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 40px;
}

.letter-btn:hover {
    border-color: #00d4ff;
    background: rgba(0, 212, 255, 0.1);
}

.letter-btn.active {
    background: #e94560;
    border-color: #e94560;
    color: white;
}

/* Results Info */
.results-info {
    margin: 20px 0;
    text-align: center;
}

.results-info p {
    color: #b0b0b0;
    font-size: 1.1em;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
}

.no-results h3 {
    color: #e94560;
    font-size: 2em;
    margin-bottom: 15px;
}

.no-results p {
    color: #b0b0b0;
    font-size: 1.2em;
}

/* Enhanced Product Card Styles */
.product-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #0f3460;
    border-radius: 8px;
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
    border-color: #00d4ff;
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #0f3460;
    color: #00d4ff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 600;
}

.product-card h4 {
    color: #e94560;
    font-size: 1.5em;
    margin-bottom: 8px;
    margin-top: 5px;
}

.product-type {
    color: #00d4ff;
    font-size: 0.9em;
    margin-bottom: 15px;
    font-weight: 500;
}

.product-card p {
    color: #b0b0b0;
    margin-bottom: 15px;
    font-size: 1em;
    line-height: 1.6;
    flex-grow: 1;
}

.product-features {
    margin: 15px 0;
    color: #b0b0b0;
}

.product-features strong {
    color: #00d4ff;
    display: block;
    margin-bottom: 8px;
}

.product-features ul {
    list-style: none;
    padding-left: 0;
}

.product-features li {
    padding: 4px 0;
    padding-left: 20px;
    position: relative;
}

.product-features li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #e94560;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #0f3460;
    gap: 15px;
}

.product-pricing {
    color: #b0b0b0;
    font-size: 0.95em;
}

.product-pricing strong {
    color: #00d4ff;
}

footer {
    text-align: center;
    padding: 30px 0;
    margin-top: 50px;
    border-top: 2px solid #0f3460;
    color: #808080;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }

    header h2 {
        font-size: 1.4em;
    }

    nav a {
        display: block;
        margin: 10px 0;
    }

    .products {
        grid-template-columns: 1fr;
    }

    .search-container {
        flex-direction: column;
    }

    #searchInput {
        min-width: 100%;
    }

    .filter-group {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-group label {
        min-width: auto;
    }

    .alphabet-buttons {
        justify-content: center;
    }

    .product-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .product-badge {
        position: static;
        display: inline-block;
        margin-bottom: 10px;
    }
}
