/* ===============================
   Global layout & base styling
   =============================== */

body {
    font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f5f5f9;
    color: #222;
    margin: 0;
    padding: 0;
    line-height: 1.5;
}

/* Header & footer */
header,
footer {
    background: linear-gradient(135deg, #b22222, #8b0000);
    color: #ffffff;
    padding: 15px 20px;
    text-align: center;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.18);
    position: relative;
    z-index: 5;
}

/* Navigation */
nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

nav a:hover {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
    transform: translateY(-1px);
    text-decoration: none;
}

/* ===============================
   Main container & sections
   =============================== */

.container {
    max-width: 1200px;
    margin: 24px auto 40px auto;
    padding: 20px 24px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
}

/* Optional generic section wrapper (safe if you use it later) */
.section-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: #b22222;
}

/* ===============================
   Buttons
   =============================== */

button,
.btn {
    background: linear-gradient(135deg, #b22222, #ff6b6b);
    color: #ffffff;
    border: none;
    padding: 10px 18px;
    cursor: pointer;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.03em;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

button:hover,
.btn:hover {
    background: linear-gradient(135deg, #8b0000, #e04343);
    box-shadow: 0 8px 18px rgba(178, 34, 34, 0.45);
    transform: translateY(-1px);
}

button:active,
.btn:active {
    transform: scale(0.98);
    box-shadow: none;
}

/* ===============================
   Form elements
   =============================== */

input,
select,
textarea {
    padding: 8px 10px;
    margin: 5px 0 15px 0;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d2d2e6;
    border-radius: 6px;
    background: #fafaff;
    font-size: 0.95rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #b22222;
    box-shadow: 0 0 0 2px rgba(178, 34, 34, 0.2);
    background: #ffffff;
}

/* ===============================
   Flex helpers
   =============================== */

.flex-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
}

.flex-col {
    flex: 1;
    min-width: 260px;
}

/* ===============================
   Product cards & images
   =============================== */

.product-card {
    border: 1px solid rgba(178, 34, 34, 0.18);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 20px;
    background-color: #fff7f7;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.04);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 107, 107, 0.16), transparent 50%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
    border-color: #b22222;
}

.product-card:hover::before {
    opacity: 1;
}

.product-card h3,
.product-card h4 {
    margin-top: 0;
    margin-bottom: 6px;
    font-weight: 700;
    color: #b22222;
}

/* product image strip */
.product-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.product-images img {
    max-width: 110px;
    border-radius: 8px;
    display: block;
    object-fit: cover;
    border: 1px solid rgba(178, 34, 34, 0.35);
    padding: 2px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.product-images img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
}

/* ===============================
   Tables
   =============================== */

.table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
}

.table th,
.table td {
    border: 1px solid rgba(178, 34, 34, 0.22);
    padding: 10px 12px;
    text-align: left;
    font-size: 0.95rem;
}

.table th {
    background: linear-gradient(135deg, #b22222, #8b0000);
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.table tr:nth-child(even) td {
    background-color: #fff5f5;
}

.table tr:hover td {
    background-color: #ffecec;
}

/* ===============================
   Utility text
   =============================== */

.text-muted {
    color: #777;
    font-size: 0.9rem;
}

.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: #fff0f0;
    color: #b22222;
    border: 1px solid rgba(178, 34, 34, 0.4);
}

/* ===============================
   Responsive tweaks
   =============================== */

@media (max-width: 768px) {
    .container {
        margin: 16px auto 28px auto;
        padding: 16px 14px;
        border-radius: 10px;
    }

    header,
    footer {
        padding: 12px 14px;
        text-align: center;
    }

    nav {
        justify-content: center;
        gap: 8px;
    }

    .flex-row {
        flex-direction: column;
    }

    .product-card {
        padding: 12px 12px;
    }

    .product-images img {
        max-width: 90px;
    }
}
