﻿/* Base card */
.product-wrapper {
    padding: 0;
    margin: 0 0 14px 0;
}

.productItem {
    background: #fff;
    border-radius: 6px;
    border: 1px solid #eee;
    padding: 10px 0;
}

    /* Highlighted product (custard) */
    .productItem.is-highlighted {
        background: #fff8d9; /* soft custard */
        border: 1px solid #e6c86c;
    }

    .productItem:not(.is-highlighted) {
        background: #fafafa; /* soft, clean, neutral */
        border-radius: 6px; /* optional, looks nicer */
        padding: 18px 12px; /* keeps spacing consistent */
    }


/* Header: ALWAYS neutral */
.product-header {
    padding: 8px 12px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent; 
}

.product-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}


/* NEW PRODUCT / PREORDER badge */
.product-badge-row {
    padding: 4px 12px 0 12px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}


.product-badge {
    max-height: 38px;
    width: auto;
}

/* Image */
.product-image img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    border: 1px solid #C0DC98;
    background: white;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2), 0 6px 20px rgba(0,0,0,0.19);
}

/* Body layout */
.product-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
}

/* Right-side controls */
.product-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.qty-controls {
    display: flex;
    gap: 6px;
    align-items: center;
}

/* Favourites */
.fav-controls {
    text-align: right;
}

.search-category-label {
    display: block !important;
    width: 100% !important;
}
.search-category-row {
    display: block !important;
    width: 100% !important;
    float: none !important;
    clear: both !important;
    margin-bottom: 6px;
    font-weight:800 !important;
}
.product-header.description {
    display: block !important;
}

#search_clear {
    border-left: none;
    border-radius: 0;
}

#search_clear {
    border: 1px solid #ced4da; /* matches .form-control */
    border-left: none; /* merges into the input */
    border-radius: 0; /* no weird rounding */
    height: 100%; /* match input height */
    display: flex;
    align-items: center;
    justify-content: center;
}


.fav-icon, .fav-icon-filled, .fa-heart {
    font-size: 1.8rem;
    color: red !important;
}

/* Kill Bootstrap auto-centering for random images */
.product-badge,
.product-image img,
.category-image,
.productItem img {
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: none !important;
    display: inline-block !important;
}
