/* Custom styles for product page category grid */
.category-grid-wrapper {
    border: 1px solid #eee;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    background-color: #f9f9f9;
}

.category-item {
    transition: all 0.3s ease;
    padding: 10px;
    margin-bottom: 10px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.category-item .img-wrapper {
    height: 120px;
    width: 120px;
    margin: 0 auto;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background-color: #fff;
}

.category-item img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.category-item:hover img {
    transform: scale(1.1);
}

.category-title {
    font-weight: 600;
    color: #333;
    margin-top: 10px;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-count {
    color: #777;
    font-size: 12px;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .category-item .img-wrapper {
        height: 90px;
        width: 90px;
    }

    .category-title {
        font-size: 12px;
    }

    .category-count {
        font-size: 10px;
    }
}

/* Adjust product details page to remove hero section gap */
.product-details-area {
    padding-top: 80px !important;
}

/* Add margin to the top of the page for better spacing */
.main-content {
    margin-top: 20px;
}
