/* Product Card Styles Extracted from home.blade.php */

.category-wrapper {
    background-color: #ffeef4;
    /* Lighter Pink Background */
    border-radius: 12px;
    padding: 20px 20px 30px 20px;
    margin-bottom: 30px;
}

.category-header {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-header h2 {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
    color: #d81b60;
    /* Dark Pink Text */
}

.category-header a {
    color: #d81b60;
    font-weight: bold;
    text-decoration: none;
    font-size: 1rem;
}

.product-card {
    border: none;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
    position: relative;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.badge-discount {
    position: absolute;
    top: 0;
    /* Hang from top */
    left: 12px;
    background: #0d6efd;
    /* Blue */
    color: white;
    padding: 6px 8px;
    font-size: 0.75rem;
    font-weight: 800;
    border-radius: 0 0 4px 4px;
    /* Bookmark style */
    z-index: 2;
    line-height: 1.1;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.badge-timer-ref {
    background: #f3f4f6;
    color: #374151;
    padding: 4px 8px;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 8px;
    width: fit-content;
}

.product-img-wrapper {
    position: relative;
    height: 180px;
    overflow: hidden;
    padding: 0;
    background: #fff;
}

.product-img-wrapper img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.product-card .card-body {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8em;
}

.rating-stars {
    color: #ffc107;
    font-size: 0.7rem;
    margin-bottom: 8px;
}

.price-wrapper {
    margin-top: auto;
    margin-bottom: 5px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.old-price {
    text-decoration: line-through;
    color: #adb5bd;
    font-size: 0.8rem;
    display: block;
    line-height: 1;
    margin-bottom: 2px;
}

.current-price {
    font-weight: 800;
    font-size: 1.2rem;
    color: #000;
    line-height: 1;
}

.btn-add {
    border: 1px solid #009688;
    color: #009688;
    background: #fff;
    padding: 4px 12px;
    font-weight: 700;
    border-radius: 4px;
    font-size: 0.8rem;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex: 1;
    text-align: center;
}

.btn-add:hover {
    background: #009688;
    color: white;
}

.btn-order {
    background: #009688;
    color: white;
    border: 1px solid #009688;
    padding: 4px 12px;
    font-weight: 700;
    border-radius: 4px;
    font-size: 0.8rem;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex: 1;
    text-align: center;
}

.btn-order:hover {
    background: #00796b;
    border-color: #00796b;
    color: white;
}
