/* Product Display Styles - Integrated with Deep Mind Theme Variables */

/*
   NOTE: Ensure the :root variables defined in your main CSS file are loaded
   before this section, as this code relies on those variables.
*/

h1 {
    text-align: center;
    color: var(--dm-color-dark-teal); /* Main heading in dark teal from your theme */
    font-size: 2.8em;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
}

h1::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--dm-color-primary-cyan); /* Underline in vibrant primary cyan */
    border-radius: 2px;
}

h2 {
    color: var(--dm-color-dark-teal); /* Category headings in dark teal */
    font-size: 2em;
    border-bottom: 2px solid var(--dm-color-primary-cyan); /* Underline in vibrant primary cyan */
    padding-bottom: 10px;
    margin-bottom: 25px;
    margin-top: 40px;
}

/* Product Category Section */
.product-category {
    margin-bottom: 40px;
    padding: 25px;
    background-color: var(--dm-color-white); /* White background for category box */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); /* Soft shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12); /* Slightly stronger shadow on hover */
}

/* Individual Product Item */
.product-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border: 1px solid #eee;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.product-item .col {
    flex: 1;
    min-width: 300px;
}

.product-item .product-image {
    display: flex; /* Enable flexbox for the image container */
    justify-content: center; /* Center the image horizontally */
}

.product-item img {
    width: 50%; /* Make the image 50% of its container's width */
    height: auto; /* Maintain aspect ratio */
    display: block; /* Removes extra space below the image */
    margin: 0 auto; /* Alternative way to center a block-level element (can be removed if justify-content works as expected) */
}

/* Optional: Adjust for smaller screens */
@media (max-width: 768px) {
    .product-item {
        flex-direction: column;
    }

    .product-item .product-text,
    .product-item .product-image {
        width: 100%;
        text-align: center; /* Center the image container on smaller screens */
    }

    .product-item .product-image {
        justify-content: center; /* Ensure centering when stacked */
    }

    .product-item img {
        width: 70%; /* Adjust image width when stacked if needed */
    }
}

.product-item:last-child {
    margin-bottom: 0;
}

.product-item:hover {
    background-color: var(--dm-color-medium-grey); /* Slightly darker grey on hover */
    transform: translateX(5px);
}

.product-item strong {
    font-weight: 700;
    color: var(--dm-color-dark-teal); /* Vendor name in dark teal */
    font-size: 1.15em;
    margin-bottom: 5px;
}

.product-summary {
    font-size: 0.95em;
    color: var(--dm-color-text-light); /* Summary text in light grey */
    line-height: 1.5;
    margin: 0;
}

/* Horizontal Rule (Separator) */
hr {
    border: none;
    border-top: 1px dashed var(--dm-color-slate-blue); /* Dashed line in slate blue */
    margin: 50px 0;
}