/* ====================================================
   Pine Valley Furniture — PVF.css
   Strictly matches Lab 01 color scheme
   ==================================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: Arial, sans-serif;
    background-color: #fff8e7;
    color: #4a3f2f;
}

a { color: #4a3f2f; text-decoration: none; }

/* --- HEADER --- */
.pvf-header {
    background-color: #f9d9a1;
    color: #4a3f2f;
    padding: 20px;
    text-align: center;
}

/* --- NAVBAR --- */
.pvf-nav { background-color: #fcebbd; }

.pvf-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    margin: 0; padding: 0;
    gap: 10px;
}

.pvf-nav ul li { margin: 0; padding: 0; }

.pvf-nav ul li a, .pvf-nav ul li span, .pvf-nav ul li input[type="submit"] {
    display: block;
    padding: 15px 25px;
    color: #4a3f2f;
    font-weight: bold;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
}

.pvf-nav ul li a:hover, .pvf-nav ul li input[type="submit"]:hover { background-color: #f9d9a1; }

/* --- CONTENT WRAPPER --- */
.pvf-content { padding: 30px; max-width: 960px; margin: 0 auto; }

/* --- FORMS --- */
.form-group { margin-bottom: 15px; text-align: left; }

.form-group label { display: block; margin-bottom: 4px; font-weight: bold; }

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    padding: 8px;
    width: 250px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.form-group input[type="radio"] { width: auto; margin-right: 5px; }

/* --- BUTTONS --- */
.pvf-btn {
    background-color: #f9d9a1;
    color: #4a3f2f;
    border: none;
    padding: 8px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.pvf-btn:hover { background-color: #fcebbd; }

.pvf-btn-blue {
    background-color: #2e86de;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.pvf-btn-blue:hover { background-color: #1b4f72; }

/* --- PRODUCT CARDS (mirror Lab 01) --- */
.products {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.product {
    width: 200px;
    border: 2px solid black;
    padding: 5px;
    text-align: center;
}

.product p { margin: 3px 0; }

.product input[type="submit"],
.product button { width: 100%; margin-top: 5px; }

/* --- SEARCH --- */
.search-input {
    padding: 8px;
    width: 250px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* --- CART TABLE --- */
table.cart-table {
    margin: auto;
    border-collapse: collapse;
    width: 80%;
}

table.cart-table th,
table.cart-table td {
    border: 1px solid black;
    padding: 10px;
    text-align: center;
}

.total { margin-top: 20px; font-weight: bold; font-size: 16px; text-align: center; }

/* --- CATALOG TABLE --- */
table.catalog-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

table.catalog-table th {
    background-color: #f9d9a1;
    padding: 9px;
    border: 1px solid #e5c97e;
    text-align: left;
}

table.catalog-table td {
    padding: 9px;
    border: 1px solid #e5c97e;
}

table.catalog-table tr:nth-child(even) td { background-color: #fffdf5; }

/* --- PAYMENT FORM --- */
.payment-form .form-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    margin-left: 10%;
}

.payment-form .form-group label {
    width: 150px;
    text-align: right;
    margin-right: 10px;
}

/* --- PAGE LIFECYCLE --- */
.event-row {
    padding: 8px 12px;
    margin-bottom: 6px;
    background-color: #fffdf5;
    border-left: 4px solid #f9d9a1;
    font-size: 14px;
}

/* --- HELP --- */
.help-section { margin-bottom: 20px; }
.help-section h3 { margin-bottom: 4px; }

/* --- MISC --- */
.help-link {
    display: block;
    margin-top: 20px;
    text-align: center;
    color: black;
    text-decoration: underline;
}

.center { text-align: center; }

/* --- MAIN BODY (mirrors Lab 01 .mainBody — flex-column, horizontally centred) --- */
.mainBody {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.title {
    font-size: 30px;
    padding: 10px;
    text-align: center;
}

/* inputs stacked inside .mainBody (matches Lab 01 .input input) */
.mainBody input[type="text"],
.mainBody input[type="password"],
.mainBody input[type="email"] {
    display: block;
    margin-bottom: 20px;
    padding: 10px;
    border-radius: 5px;
    width: 250px;
    border: 1px solid #ccc;
}

/* --- CONTENT (mirrors Lab 01 .content — centered text, auto-margin) --- */
.content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

/* inputs stacked inside .content (matches Lab 01 registration / catalog layout) */
.content input[type="text"],
.content input[type="email"],
.content input[type="password"] {
    display: block;
    margin: 10px auto;
    padding: 8px;
    width: 250px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.content input[type="radio"] {
    display: inline;
    width: auto;
    margin-right: 5px;
}

.msg-label { color: green; font-weight: bold; display: block; margin-top: 10px; text-align: center; }
.err-label { color: red; font-weight: bold; display: block; margin-top: 10px; text-align: center; }

/* GridView styling to match Lab 01 tables */
.pvf-grid {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
.pvf-grid th {
    background-color: #f9d9a1;
    padding: 10px;
    border: 1px solid #000;
}
.pvf-grid td {
    padding: 10px;
    border: 1px solid #000;
    background-color: #fff;
}
