/* Product List Styling */
.product-description {
    list-style-type: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px; /* Spacing between items */
    margin-left: -5px;
}

.product-description li {
    flex: 1 1 48%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column; /* Stack elements inside vertically */
    align-items: stretch;
    text-align: left;
    position: relative;
    border-bottom: none;
}


/* Ensure all product headers have the same height */
.product-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    cursor: pointer;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 8px 10px;
    min-height: 48px; /* Set a minimum height */
}

/* Product Title */
.product-title {
    font-size: 15px;
    font-weight: bold;
    min-width: 0; /* Prevents flex-grow from affecting layout */

    flex-grow: 1; /* Allows proper spacing */
}

.product-title :hover {
    font-size: 15px;
    font-weight: bold;
    color: #f2b010 !important;
    min-width: 0; /* Prevents flex-grow from affecting layout */

    flex-grow: 1; /* Allows proper spacing */
}

/* Product Details */
.product-details {
    font-size: 14px;
    color: #666;
    white-space: nowrap;
}

/* Accordion Icon */
.icon {
    font-size: 12px; /* Adjust size */
    color: #888;
    margin-left: 8px;
    transition: transform 0.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 14px; /* Set a minimal width */
    height: 14px; /* Keep it balanced */
    flex-shrink: 0; /* Prevent it from expanding */
}

/* Rotate Icon when Active */
.product-header.active .icon {
    transform: rotate(180deg);
}

/* Accordion Content */

.accordion-content {
    display: none;
    font-size: 14px;
    padding: 8px;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-top: 5px;
    width: 100%; /* Ensures full width */
}

/* Make sure content shows below */
.product-description li .accordion-content {
    order: 1; /* Forces content to stay below the header */
}


/* Open State */
.accordion-content.open {
    display: block;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
       .product-header {
        padding: 12px 10px; /* Slightly more padding on mobile */
    }
    
    .product-title {
        font-size: 14px;
    }
    
    .product-details {
        font-size: 13px;
        padding-left: 10px; /* Ensures spacing on mobile */
    }
     .product-description li {
        flex: 1 1 calc(50% - 5px); /* Ensures two items per row */
        min-width: 140px; /* Prevents items from becoming too narrow */
    }
}

/* ===== Category accordions ===== */