/* Custom styles for the store */

.card-img-top {
    aspect-ratio: 3 / 2; /* Maintain aspect ratio for placeholder images */
    object-fit: cover; /* Ensure images cover the area */
}

/* Product Card General Styling */
.product-card {
    background-color: #ffffff;
    border: none; /* Ensure no default border */
    transition: transform .2s ease-in-out, box-shadow .2s ease-in-out;
    overflow: hidden; /* Prevent content spill */
}

    .product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.075) !important; /* Subtle shadow on hover */
    }

.product-image {
    width: 100%;
    aspect-ratio: 1 / 1; /* Makes images square */
    object-fit: cover; /* Cover the area, cropping if needed */
    padding: 1rem; /* Add padding around image inside the card */
    background-color: #F8F7F5; /* Light background for the image area */
}

.product-name {
    font-size: 1rem;
    color: #333;
    margin-top: 0.75rem;
    font-weight: 500;
}

.product-price {
    font-size: 1.1rem;
    color: #555;
    margin-top: 0.25rem;
    margin-bottom: 1rem; /* Add some space below price */
}


/* General Store Button Styles */
.store-layout .btn-dark,
.store-layout .btn-outline-dark {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
    border-radius: 0.25rem;
}

.store-layout .btn-dark {
     background-color: var(--store-accent-color);
     border-color: var(--store-accent-color);
     color: #ffffff;
     transition: opacity 0.2s ease-in-out;
}

.store-layout .btn-dark:hover {
    /* background-color: #343a40; */ /* Remove old hover */
    /* border-color: #343a40; */
    opacity: 0.85; /* Slightly transparent on hover */
}

.store-layout .btn-outline-dark {
    border-width: 2px; /* Consistent outline thickness */
    border-color: #212529;
    color: #212529;
}

.store-layout .btn-outline-dark:hover {
    background-color: #212529;
    border-color: #212529;
    color: #ffffff;
}

/* Styles for Store Header Dropdown Items (moved from StoreHeader.razor.css) */
.store-header .dropdown-menu .dropdown-item:hover,
.store-header .dropdown-menu .dropdown-item:focus,
.store-header .dropdown-menu .dropdown-item.active,
.store-header .dropdown-menu .dropdown-item:active { 
    background-color: var(--store-accent-color) !important;
    color: #ffffff !important;
    text-decoration: none; /* Ensure text decoration is reset */
}
