/**
 * Load More Button Styles
 * A consistent styling for the load more button across the site
 */

.hdm-load-more-container {
    text-align: center;
    margin: 30px 0;
}

.hdm-load-more-btn {
    background-color: #6c5a6a;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hdm-load-more-btn:hover {
    background-color: #5a4a58;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.hdm-load-more-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hdm-load-more-btn.disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    opacity: 0.7;
    box-shadow: none;
    transform: none;
}

.hdm-load-more-btn.error {
    background-color: #dc3545;
}

/* Loading animation */
.hdm-load-more-btn.loading {
    position: relative;
    padding-left: 35px;
}

.hdm-load-more-btn.loading::after {
    content: '';
    position: absolute;
    right: 15px;
    top: 33%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s infinite linear;
}

@keyframes spin {
    0% {
        transform: translateY(-50%) rotate(0deg);
    }
    100% {
        transform: translateY(-50%) rotate(360deg);
    }
}

/* RTL support */
html[dir="rtl"] .hdm-load-more-btn.loading {
    padding-left: 35px;
    padding-right: 12px;
}

html[dir="rtl"] .hdm-load-more-btn.loading::after {
    left: 15px;
    right: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hdm-load-more-btn {
        width: 100%;
        max-width: 300px;
    }
}

/* WooCommerce Product Archive Styles */
.show-more-btn,
.show-more-features-btn {
    cursor: pointer;
    color: #6c5a6a;
    text-align: center;
    padding: 8px 15px;
    margin: 15px auto;
    border-radius: 5px;
    transition: all 0.2s ease;
    display: block;
    font-weight: 500;
}

.show-more-btn:hover,
.show-more-features-btn:hover {
    color: #5a4a58;
}

.feature-dropdown {
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.feature-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 8px 0;
}

.feature-dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.feature-dropdown-content.expanded {
    max-height: 500px;
}

.dropdown-icon {
    transition: transform 0.3s ease;
}

.dropdown-icon.collapsed {
    transform: rotate(180deg);
}

/* Make the hidden brands container have smooth transitions */
.hidden-brands {
    transition: all 0.3s ease;
} 