/* Ensure sidebar appears at the top in mobile */
@media (max-width: 768px) {
  .woocommerce-shop .site-main {
    display: block;
}


    #secondary.widget-area {
        display: block;
        width: 100%;
        order: -1; /* Move sidebar above products */
        background: white;
        padding: 10px;
        z-index: 1002;
    }

    /* Filter button at the top of the product catalog */
    .filter-button {
        display: block;
        width: 100%;
        padding: 12px;
        background-color: #333;
        color: white;
        text-align: center;
        font-size: 16px;
        border: none;
        cursor: pointer;
        transition: background-color 0.3s ease-in-out;
        margin-bottom: 10px;
    }

    .filter-button:hover {
        background-color: #555;
    }

    /* Sidebar slide-in effect for mobile */
    #secondary {
        transition: transform 0.3s ease-in-out;
        transform: translateX(100%);
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 100%;
        background-color: white;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
        display: flex;
        flex-direction: column;
        z-index: 1002;
    }

    /* Show sidebar */
    #secondary.show {
        transform: translateX(0);
    }

    /* Sidebar content should be scrollable */
    .sidebar-content {
        flex-grow: 1;
        overflow-y: auto;
        padding: 20px;
        max-height: calc(100vh - 50px);
    }

    /* Sidebar scrollbar styling */
    .sidebar-content::-webkit-scrollbar {
        width: 8px;
    }

    .sidebar-content::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 4px;
    }

    /* Prevent scrolling the page when sidebar is open */
    body.no-scroll {
        overflow: hidden;
    }

    /* Close button */
    .close-filters {
        position: absolute;
        top: 10px;
        right: 15px;
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
        z-index: 1004;
    }
}

/* Ensure sidebar is always visible on desktop */
@media (min-width: 769px) {
    #secondary {
        position: static !important;
        transform: none !important;
        display: block !important;
        height: auto !important;
        width: auto !important;
        background: none !important;
        box-shadow: none !important;
    }

    /* Hide the filter button on desktop */
    .filter-button {
        display: none !important;
    }
}
.container.content-wrapper {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.site-main {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Hide title on product pages and homepage */
body.woocommerce .entry-header,
body.home .entry-header {
    display: none !important;
}

/* Keep title visible on blog posts */
body.blog .entry-header {
    display: block !important;
}

.term-description {
  max-width: 75vw !important;
}

.term-description p {
    margin-bottom: 10px; /* Decreases the space between paragraphs */
}
