/* Center the form and style the filter dropdown */
.form-container {
    margin-bottom: 20px;
    text-align: center;
}

label {
    font-weight: bold;
    margin-right: 10px;
    font-size: 16px;
    color: #333;
}

/* Hide "View Cart" link in the mini cart */
 .widget_shopping_cart .buttons a:first-child {
    display: none;
}
/* Hide the cart icon in the header */
 .site-header-cart {
    display: none;
}

/* Style the login/register message */
.login-register-message {
    background-color: #FEE4E4;       /* Light red background color */
    border: 1px solid #d1d9e6;
    padding: 10px 10px;              /* Add padding for spacing */
    margin: 15px auto;               /* Center the box horizontally */
    max-width: 500px;                /* Set a maximum width for the box */
    display: flex;
    align-items: center;             /* Center vertically */
    justify-content: center;         /* Center horizontally */
    text-align: center;
    font-size: 16px;
    color: #333;
    font-family: "Arial Black", Gadget, sans-serif;
    font-weight: bold;
    border-radius: 5px;              /* Optional: rounded corners */
}


/* Style and enlarge the dropdown */
#product_category_filter {
    padding: 10px;
    width: 100%;
    max-width: 450px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
    color: #333;
    outline: none;
    transition: border-color 0.3s ease-in-out;
}

#product_category_filter:focus {
    border-color: #0073e6;
}

/* Style the filter button */
input[type="submit"] {
    background-color: #CC0000;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
    margin-left: 15px;
}

input[type="submit"]:hover {
    background-color: #990000;
}

/* Style individual result tables */
.table-container {
    margin: 10px auto;
    width: 100%;
}

.table-row.desktop {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.result-table {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 33%;
    padding: 15px;
    background-color: #fff;
    transition: transform 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.result-table:hover {
    transform: translateY(-5px);
}

.result-table table {
    width: 100%;
}

.result-table th, .result-table td {
    text-align: left;
    padding: 5px;
}

.result-table th {
    font-weight: bold;
    color: #333;
    background-color: #EAEAEA;
}

/* Style the action button */
.button {
    display: inline-block;
    background-color: #CC0000 !important;
    color: white !important;
    padding: 6px 10px;
    border-radius: 23px;
    text-decoration: none;
    cursor: pointer;
    align-self: flex-end;
    transition: background-color 0.3s ease-in-out;
}

.button:hover {
    background-color: #990000 !important;
}

/* Purchased By styling */
.purchased-by {
    font-size: 14px;
    font-weight: bold;
    color: #555;
    margin-top: 5px; /* Reduced space */
    text-align: right;
}

/* Mobile Styles */
@media (max-width: 767px) {
    .table-row.desktop {
        flex-direction: column;
    }

    .result-table {
        width: 99%; /* Almost full width on mobile */
        margin: 1px auto; /* Reduced space around tables */
    }

    /* Reduce space between purchased count and table */
    .purchased-by {
        margin-top: 5px; /* Less space above "Purchased By" section */
    }

    /* Adjust filter elements for better spacing */
    #product_category_filter,
    input[type="submit"] {
        width: 90%;
        max-width: 300px;
        margin: 0 auto 10px;
    }

    input[type="submit"] {
        margin-top: 10px; /* Extra spacing for button on mobile */
    }
}
.pagination-container {
    display: flex;
    justify-content: space-between; /* Ensures the buttons are spaced correctly */
    margin-top: 20px; /* Add spacing above the buttons */
}

.pagination-left, .pagination-right {
    flex: 1;
}

.pagination-left {
    text-align: left; /* Aligns Previous button to the left */
}

.pagination-right {
    text-align: right; /* Aligns Next button to the right */
}

/* Button styles */
.button {
    display: inline-block; /* Ensure the link behaves like a button */
    background-color: #007cba; /* Your preferred button color */
    color: white; /* Text color */
    padding: 10px 20px; /* Add padding for buttons */
    border: none; /* Remove borders */
    border-radius: 5px; /* Rounded corners */
    text-decoration: none; /* Remove underline */
    cursor: pointer; /* Pointer cursor on hover */
    transition: background-color 0.3s ease; /* Smooth background color change */
}

.button:hover {
    background-color: #005a8c; /* Darker shade on hover */
}

/* Responsive styles to ensure proper layout on mobile */
@media (max-width: 768px) {
    .pagination-container {
        flex-direction: row; /* Keep buttons in a row */
        justify-content: space-between; /* Distribute space between buttons */
        margin-top: 20px; /* Add spacing above the buttons */
    }

    .pagination-left, .pagination-right {
        flex: 1; /* Allow equal space for both buttons */
        text-align: center; /* Center align text in mobile */
    }

    .button {
        padding: 5px 10px; /* Smaller padding for mobile buttons */
        font-size: 14px; /* Smaller font size for mobile */
    }
}

