* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f7fb;
    color: #1a1a1a;
}

a {
    text-decoration: none;
}

.site-header {
    background: linear-gradient(135deg, #0a2a66, #c8102e);
    color: white;
    padding: 22px 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

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

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo-title {
    font-size: 30px;
    font-weight: bold;
    margin: 0;
}

.logo-subtitle {
    font-size: 14px;
    opacity: 0.9;
    margin-top: 4px;
}

.page-section {
    padding: 40px 0;
}

.section-title {
    font-size: 38px;
    margin: 0 0 24px;
    color: #0f172a;
}

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

.product-card {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #e5e7eb;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
}

.product-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.product-card-content {
    padding: 20px;
}

.product-title {
    font-size: 24px;
    margin: 0 0 10px;
    color: #111827;
}

.product-price {
    font-size: 28px;
    font-weight: bold;
    color: #c8102e;
    margin: 0 0 18px;
}

.btn {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn-primary {
    background: #0a2a66;
    color: white;
}

.btn-primary:hover {
    background: #081f4d;
}

.btn-success {
    background: #198754;
    color: white;
}

.btn-success:hover {
    background: #146c43;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #bb2d3b;
}

.card {
    background: white;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    border: 1px solid #e5e7eb;
}

.product-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
}

.product-main-image {
    width: 100%;
    border-radius: 16px;
    display: block;
    object-fit: cover;
    max-height: 520px;
}

.product-description {
    font-size: 17px;
    line-height: 1.7;
    color: #374151;
}

.form-box {
    margin-top: 28px;
    padding: 24px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
}

.form-title {
    margin-top: 0;
    font-size: 28px;
    color: #111827;
}

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

.form-control {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 15px;
    background: white;
}

.table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.admin-table th,
.admin-table td {
    padding: 14px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

.admin-table th {
    background: #0a2a66;
    color: white;
}

.notice-box {
    background: #ffffff;
    border-left: 5px solid #198754;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.footer-space {
    height: 30px;
}

@media (max-width: 900px) {
    .product-layout {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 30px;
    }

    .product-title {
        font-size: 22px;
    }

    .product-price {
        font-size: 24px;
    }
}