/* Styles for the Shop page */

.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #ff6b6b;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: bold;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.category-badge {
    display: inline-block;
    background-color: #f8f9fa;
    color: #666;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    margin-top: -5px;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.8em;
    margin-right: 5px;
}

.discount-price {
    color: #ff6b6b;
    font-weight: bold;
}

.category-filter {
    margin-left: 20px;
}

#category-select {
    padding: 6px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background-color: white;
}

.cart-pulse {
    animation: pulse 1s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.search-container form {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    width: 250px;
}

.search-container input {
    border: none;
    border-radius: 0;
    height: 34px;
    width: 100%;
    padding: 0 10px;
    font-size: 14px;
    box-shadow: none;
}

.search-container input:focus {
    outline: none;
    box-shadow: none;
}

.search-container .search-btn {
    border: none;
    background-color: #fff;
    color: #333;
    padding: 0 12px;
    cursor: pointer;
}

.search-container .search-btn:hover {
    background-color: #f8f9fa;
}

.sort-container {
    display: flex;
    align-items: center;
}

.sort-container span {
    margin-right: 8px;
    font-size: 14px;
    color: #333;
}

.sort-container select {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 14px;
    background-color: #fff;
    height: 34px;
}

#products-container.grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.product-card {
    height: 100%;
}

.product-card .card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card .product-image {
    height: 174.6px;
    overflow: hidden;
}

.product-card .product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card .product-info > div:last-child {
    flex: 1;
    overflow: hidden;
}

.product-card .product-info p.small {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: 4.5em;
}

.product-card .card-body {
    padding: 1rem;
}
 