/**
 * Public-facing styles for the Tire Inventory System.
 */
.tis-public-container {
    max-width: 960px;
    margin: 20px auto;
    font-family: sans-serif;
    border: 1px solid #e0e0e0;
    padding: 20px;
    border-radius: 4px;
    background: #f9f9f9;
}

.tis-public-search-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.tis-form-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.tis-form-group {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 150px;
}

.tis-form-group label {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 14px;
    color: #333;
}

.tis-form-group input[type="number"],
.tis-form-group select.tis-select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    background-color: #fff;
    height: 44px; /* Align height with inputs */
}

.tis-submit-button {
    padding: 12px 20px;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    width: 100%;
}

.tis-submit-button:hover {
    background-color: #005a87;
}

.tis-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.tis-tire-card {
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.tis-card-image img {
    max-width: 100%;
    height: auto;
    display: block;
}

.tis-card-content {
    padding: 15px;
}

.tis-card-title {
    margin: 0 0 10px;
    font-size: 18px;
}

.tis-card-price {
    font-size: 16px;
    font-weight: bold;
    color: #2a7a2a;
    margin: 0 0 5px;
}

.tis-card-quantity {
    font-size: 14px;
    color: #555;
    margin: 0;
}

.tis-no-results {
    padding: 20px;
    text-align: center;
    font-style: italic;
    color: #777;
    background: #fff;
    border: 1px dashed #ddd;
}

.tis-card-meta {
    font-size: 14px;
    color: #666;
    margin: -5px 0 10px;
    font-style: italic;
}

/* --- Custom Login Form Styles --- */
.tis-login-form-container {
    max-width: 380px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border: 1px solid #e5e5e5;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.tis-login-form-container #loginform label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.tis-login-form-container #loginform input[type="text"],
.tis-login-form-container #loginform input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.07);
}

.tis-login-form-container #loginform .login-remember {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 20px;
}
.tis-login-form-container #loginform .login-remember label {
    margin-bottom: 0;
    font-weight: normal;
}

.tis-login-form-container #loginform #wp-submit {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    background-color: #2271b1;
    color: #fff;
    cursor: pointer;
}

.tis-login-form-container #loginform #wp-submit:hover {
    background-color: #1e639a;
}

.tis-login-error {
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #d63638;
    background-color: #fbeaea;
    color: #d63638;
    border-radius: 4px;
}