body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    color: #1f2933;
    background: #f7f8fa;
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: #0f172a;
}

.site-header a {
    color: #fff;
    text-decoration: none;
    margin-left: 1rem;
}

.brand {
    font-size: 1.2rem;
    font-weight: 700;
}

.container {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.card, .product-detail {
    background: #fff;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.07);
}

.product-card {
    padding: 0;
    overflow: hidden;
}

.product-card__image-wrap {
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    background: #fff;
}

.product-card__image {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    border-radius: 0;
    object-fit: contain;
    object-position: center;
}

.product-card h2,
.product-card p,
.product-card .btn {
    margin-left: 1rem;
    margin-right: 1rem;
}

.product-card .btn {
    margin-bottom: 1rem;
}

img {
    max-width: 100%;
    border-radius: 8px;
}

.price {
    font-weight: 700;
}

.btn {
    display: inline-block;
    background: #0ea5e9;
    color: #fff;
    padding: 0.5rem 0.9rem;
    border-radius: 8px;
    text-decoration: none;
    border: 0;
    cursor: pointer;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.table th, .table td {
    border: 1px solid #dce3eb;
    padding: 0.6rem;
}

.total {
    font-size: 1.2rem;
    font-weight: 700;
}

.messages {
    list-style: none;
    padding: 0;
}

.message {
    padding: 0.7rem 0.9rem;
    border-radius: 8px;
    background: #eff6ff;
    margin-bottom: 0.6rem;
}

.message.error {
    background: #fee2e2;
}

.message.success {
    background: #dcfce7;
}

.form-card {
    background: #fff;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.07);
    max-width: 760px;
}

.account-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.6rem;
}

@media (max-width: 768px) {
    .site-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
    }

    .site-header nav a {
        margin-left: 0;
        margin-right: 0.8rem;
    }
}
