/* Shop-specific pieces the base stylesheet has no equivalent for. Reuses the site's
   existing color (#6C7A70), card, and submit-button styles for everything else. */

/* Generic form-group: the base stylesheet only defines this scoped to .contact-form. */
.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 14px;
}

.form-group label {
    font-weight: bold;
    margin-bottom: 4px;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
}

.form-group-checkbox label,
.form-group-radio label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: normal;
    margin-right: 16px;
}

.form-group-set {
    display: flex;
    flex-direction: column;
}

/* Species tiles on the shop home page */
.shop-species-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 15px 10px;
}

.shop-species-tile {
    background-color: #6C7A70;
    color: #fff;
    padding: 14px 22px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    flex: 1 1 140px;
}

.shop-species-tile:hover {
    background-color: #5a665d;
}

/* Product grid + card */
.product-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 10px;
}

.product-card {
    flex: 1 1 260px;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
}

.product-card-category {
    color: #6C7A70;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: bold;
    text-indent: 0;
}

.price {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    text-indent: 0;
}

.price-was {
    font-size: 14px;
    font-weight: normal;
    color: #999;
    text-decoration: line-through;
    margin-right: 6px;
}

.stock-note {
    font-size: 13px;
    color: #666;
    text-indent: 0;
}

.badge-sold-out {
    display: inline-block;
    background-color: #6C7A70;
    color: #fff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    text-indent: 0;
}

/* Nav cart badge */
.cart-badge {
    display: inline-block;
    background-color: #fff;
    color: #6C7A70;
    border-radius: 10px;
    padding: 1px 7px;
    font-size: 12px;
    font-weight: bold;
    margin-left: 2px;
}

/* Cart table */
.cart-table th,
.cart-table td {
    vertical-align: middle;
}

.cart-line-detail {
    color: #777;
    font-size: 13px;
}

.cart-line-remove {
    margin: 0;
}

.cart-line-remove .submit-button {
    padding: 6px 12px;
    font-size: 13px;
}

.promo-form {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 10px;
}

.promo-form .form-group {
    flex: 1 1 auto;
    margin-bottom: 0;
}

/* Inline problem/flash banner inside a card (vs. the page-level flash-messages) */
.flash-inline {
    border-left: 4px solid #721c24;
}

.flash-inline ul {
    margin: 0;
    padding-left: 18px;
    color: #721c24;
}

/* Checkout shipping options rendered by shop.js */
.shipping-option {
    display: block;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin: 6px 0;
    cursor: pointer;
}

.shipping-option input {
    margin-right: 8px;
}

#pay-error {
    margin-top: 10px;
}
