/* Simple Product Tabs CSS */
.spt-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    box-sizing: border-box;
}

.spt-tabs {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 20px 0 !important;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    border-bottom: 2px solid #eee;
}

.spt-tab {
    padding: 10px 20px;
    cursor: pointer;
    margin-bottom: -2px;
    /* Overlap border */
    border-bottom: 2px solid transparent;
    font-weight: 600;
    color: #555;
    transition: all 0.3s ease;
    list-style: none !important;
}

.spt-tab:hover {
    color: #000;
}

.spt-tab.active {
    border-bottom: 2px solid #000;
    color: #000;
}

.spt-content {
    position: relative;
    min-height: 200px;
}

/* Loader Styling */
.spt-loader {
    width: 100%;
    text-align: center;
    padding: 20px 0;
    font-size: 1.2em;
    color: #777;
    display: none;
    clear: both;
}

/* Grid Animations */
#spt-product-grid {
    transition: opacity 0.3s ease;
}

/* Force Reset on Product UL */
.spt-container ul.products {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    width: 100% !important;
}

/* Ensure LI items are clean */
.spt-container ul.products li.product {
    list-style: none !important;
    margin-left: 0 !important;
    /* Basic default if theme fails */
    box-sizing: border-box;
}

/* Fallback columns if theme classes fail */
.spt-container ul.products.columns-4 li.product {
    width: 25%;
    /* 4 columns */
    padding: 0 10px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .spt-container ul.products.columns-4 li.product {
        width: 50%;
    }
}

@media (max-width: 480px) {
    .spt-container ul.products.columns-4 li.product {
        width: 100%;
    }
}