* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #e0f7fa 0%, #2f00ff 120%);
    color: #2f00ff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    line-height: 1.6;
}

header {
    background: linear-gradient(to right, #2f2bffde, #9d25ff);
    padding: 20px;
    text-align: center;
    color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

nav a {
    text-decoration: none;
    color: white;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

nav a:hover, nav a.active {
    background: #9b90ff;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

main {
    flex: 1;
    width: 90%; 
    max-width: 1100px;
    margin: 30px auto;
    background: rgba(255, 255, 255, 0.85); 
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

h2 {
    color: #000a8f;
    border-bottom: 3px solid #634de1;
    padding-bottom: 10px;
    margin-bottom: 25px;
    font-size: 1.8rem;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0f7fa;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    border-color: #2700d4;
}

.card h3 {
    color: #160064;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.icon-placeholder {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #4500e6;
    margin: 10px 0;
}

button, .btn {
    background: #3900d4;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
    text-decoration: none;
    display: inline-block;
}

button:hover, .btn:hover {
    background: #1f00a7;
}

.btn-buy {
    background: #6643ff;
    width: 100%;
}

.btn-buy:hover {
    background: #571ef4;
}

form {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

input {
    flex: 1;
    padding: 12px;
    border: 2px solid #b2b3f2;
    border-radius: 8px;
    font-size: 1rem;
}

footer {
    background: #4a47f7de;
    color: rgba(255,255,255,0.7);
    text-align: center;
    padding: 20px;
    margin-top: auto;
}

@media (max-width: 768px) {
    header h1 { font-size: 2rem; }
    nav { flex-direction: column; }
    nav a { width: 100%; text-align: center; }
    main { padding: 20px; width: 95%; }
    form { flex-direction: column; }
    .btn-buy { width: 100%; }
}