/* * This stylesheet contains all the styles for the product gallery.
 * It uses a modern CSS grid layout for a clean, responsive design.
 */

/* Main grid container for the product cards */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Individual product card styling */
.product-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.product-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-details {
    padding: 15px;
    text-align: center;
}

.product-name {
    margin: 0 0 5px;
    font-size: 1.2rem;
    color: #305245; /* Your requested heading color */
}

.product-price {
    font-size: 1.1rem;
    color: #666;
    font-weight: bold;
}

.product-actions {
    display: flex;
    justify-content: space-around;
    padding: 10px;
    border-top: 1px solid #e0e0e0;
}

.product-actions .button {
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    color: #fff;
    transition: background-color 0.3s ease-in-out;
}

.button.view-button {
    background-color: #5cb85c;
}

.button.edit-button {
    background-color: #f0ad4e;
}

.button.delete-button {
    background-color: #d9534f;
}

.button.view-button:hover {
    background-color: #4cae4c;
}

.button.edit-button:hover {
    background-color: #eea236;
}

.button.delete-button:hover {
    background-color: #c9302c;
}

.product-heading {
    color: #305245;
}

/* NEW STYLES FOR INDIVIDUAL PRODUCT PAGE - ADD THESE */

/* Container for the individual product page */
.product-page-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
}

/* Product image on individual page */
.product-page-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    margin: 0 auto 30px auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Product information section */
.product-info {
    margin-top: 30px;
    padding: 20px 0;
    clear: both;
}

/* Product title on individual page */
.product-title {
    font-size: 2rem;
    color: #305245;
    margin: 0 0 15px 0;
    text-align: center;
}

/* Price styling */
.product-price-large {
    font-size: 1.8rem;
    color: #333;
    font-weight: bold;
    margin: 10px 0 20px 0;
    text-align: center;
}

/* Quantity and availability info */
.product-quantity-info {
    margin: 20px 0;
    padding: 15px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

/* Add to cart button */
.add-to-cart-button {
    width: 100%;
    padding: 15px;
    background-color: #305245;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    margin: 20px 0;
    transition: background-color 0.3s ease;
}

.add-to-cart-button:hover {
    background-color: #254039;
}

/* Product details sections */
.product-details-section {
    margin: 20px 0;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.product-details-section h3 {
    color: #305245;
    margin: 0 0 10px 0;
    font-size: 1.3rem;
}

/* Ensure no overlapping on mobile */
@media (max-width: 768px) {
    .product-page-container {
        padding: 15px;
    }
    
    .product-page-image {
        margin-bottom: 20px;
    }
    
    .product-info {
        margin-top: 20px;
    }
}
