/* Basic premium glassmorphism style for E-commerce Mini System */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
    min-height: 100vh;
    background: radial-gradient(circle at top left, #141e30 0, #243b55 40%, #000000 100%);
    color: #f5f5f5;
}

.container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 20px;
}

.card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 20px;
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

h1, h2, h3 {
    font-weight: 600;
    letter-spacing: 0.02em;
}

.btn {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 999px;
    border: none;
    outline: none;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    background: linear-gradient(135deg, #ff9a9e, #fad0c4);
    color: #111;
    transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
    opacity: 0.9;
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.6);
    color: #f5f5f5;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    background: rgba(255, 255, 255, 0.15);
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.cart-link {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: #ff7676;
    color: #111;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.grid {
    display: grid;
    gap: 18px;
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.product-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-card img {
    width: 100%;
    border-radius: 14px;
    height: 200px;
    object-fit: cover;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 14px;
}

.table th,
.table td {
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.table th {
    text-align: left;
    font-weight: 500;
    opacity: 0.85;
}

input[type="text"],
input[type="number"],
input[type="email"],
textarea {
    width: 100%;
    padding: 10px 12px;
    margin-top: 6px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(0, 0, 0, 0.4);
    color: #f5f5f5;
}

label {
    font-size: 13px;
    opacity: 0.9;
}

.form-group {
    margin-bottom: 12px;
}

.alert {
    padding: 10px 14px;
    border-radius: 12px;
    margin-bottom: 12px;
    font-size: 13px;
}

.alert-success {
    background: rgba(46, 213, 115, 0.18);
    border: 1px solid rgba(46, 213, 115, 0.55);
}

.alert-error {
    background: rgba(255, 71, 87, 0.18);
    border: 1px solid rgba(255, 71, 87, 0.55);
}

nav a {
    color: #f5f5f5;
    text-decoration: none;
    font-size: 14px;
    margin-right: 10px;
    opacity: 0.9;
}

nav a:hover {
    opacity: 1;
    text-decoration: underline;
}

@media (max-width: 640px) {
    .container {
        margin: 20px auto;
        padding: 14px;
    }
    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
