/**
 * Sticky Filter & Sort Controls
 * Desktop-only styles for category page sticky buttons
 * 
 * @package VoltRide
 * @since 2.0.0
 */

/* Container for sticky controls - Absolute positioning that becomes fixed */
.voltride-sticky-controls {
    position: absolute;
    bottom: 35px;
    right: 14px;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    z-index: 20;
    width: fit-content;
    padding: 16px;
    /* Glassmorphism effect */
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-radius: 16px 16px 0 0;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    /* Smooth transitions */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* Initial state - completely hidden and clipped */
    opacity: 0;
    visibility: hidden;
    transform: translateY(0);
    clip-path: inset(100% 0 0 0);
}

/* Elegant slide-up animation */
@keyframes slideUpFadeIn {
    0% {
        opacity: 0;
        visibility: visible;
        clip-path: inset(100% 0 0 0);
    }
    1% {
        opacity: 0;
        clip-path: inset(0 0 0 0);
    }
    100% {
        opacity: 1;
        visibility: visible;
        clip-path: inset(0 0 0 0);
    }
}

/* Animate in after page load */
.voltride-sticky-controls.loaded {
    animation: slideUpFadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) 1s forwards;
}

/* Decorative line at top */
.voltride-sticky-controls::before {
    content: '';
    position: absolute;
    top: 0px;
    left: 60%;
    transform: translateX(-20%);
    width: 30%;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 105, 135, 0) 0%, rgba(255, 105, 135, 1) 50%, rgba(255, 105, 135, 0) 100%);
    border-radius: 16px 16px 0 0;
    opacity: 1;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* When sticky, become fixed and round all corners */
.voltride-sticky-controls.is-sticky {
    position: fixed;
    top: 40px;
    right: 36px;
    bottom: auto;
    border-radius: 16px;
    box-shadow: 
        0 12px 48px rgba(0, 0, 0, 0),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Hide decorative line when sticky */
.voltride-sticky-controls.is-sticky::before {
    opacity: 0;
}

/* Button base styles */
.voltride-sticky-controls button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: #FFFFFF;
    border: 1px solid #E5E5E5;
    border-radius: var(--radius-16, 16px);
    font-family: var(--font-primary, 'Biryani', sans-serif);
    font-size: 14px;
    font-weight: 700;
    font-style: normal;
    line-height: 120%;
    letter-spacing: 0%;
    text-align: center;
    text-transform: uppercase;
    color: #0F3F36;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    vertical-align: middle;
}

/* Button hover state */
.voltride-sticky-controls button:hover {
    background: #F8F8F8;
    border-color: #0F3F36;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

/* Button active/pressed state */
.voltride-sticky-controls button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* SVG icon styling */
.voltride-sticky-controls button svg {
    flex-shrink: 0;
    stroke: currentColor;
}

/* Sort icon specific sizing */
.voltride-sticky-controls .icon-sort {
    width: 22px;
    height: 12px;
}

/* Filter icon specific sizing */
.voltride-sticky-controls .icon-filter {
    width: 20px;
    height: 20px;
}

/* Button text styling */
.voltride-sticky-controls button span {
    font-size: 14px;
    font-weight: 700;
    line-height: 120%;
    letter-spacing: 0;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
}

/* Sort button specific styles */
.voltride-sort-btn {
    min-width: 140px;
}

/* Filter button specific styles */
.voltride-filter-btn {
    min-width: 120px;
}

/* Sort dropdown container */
.voltride-sort-dropdown {
    position: fixed;
    background: #FFFFFF;
    border-radius: var(--radius-16, 16px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    padding: 8px;
    z-index: 99999;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    pointer-events: none;
}

/* Show dropdown */
.voltride-sort-dropdown.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Sort dropdown list */
.voltride-sort-dropdown ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Sort dropdown items */
.voltride-sort-dropdown li {
    margin: 0;
}

/* Sort dropdown links */
.voltride-sort-dropdown a {
    display: block;
    padding: 12px 16px;
    font-family: var(--font-primary, 'Biryani', sans-serif);
    font-size: 14px;
    font-weight: 400;
    color: #333333;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.15s ease;
}

/* Sort dropdown link hover */
.voltride-sort-dropdown a:hover {
    background: #F0F7F5;
    color: #0F3F36;
    font-weight: 600;
}

/* Active sort option */
.voltride-sort-dropdown a.active {
    background: #D8FFB4;
    color: #0F3F36;
    font-weight: 600;
}

/* Dropdown overlay to close on outside click */
.voltride-sort-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9998;
    display: none;
}

/* Show overlay when dropdown is visible */
.voltride-sort-overlay.is-visible {
    display: block;
}

/* Ensure buttons stay visible above other content */
.shop-hero-area {
    position: relative !important;
}

.shop-hero-section {
    position: relative !important;
}

/*
.wd-wpb.wd-rs-696fa1627e427 {
    display: none;
}
.filter-menu-oc .wd-heading {
    display: none;
}

.vc_row.wpb_row.vc_row-fluid.vc_row-flex.wd-disable-overflow.wd-row-gradient-enable.wd-bg-center-center.wd-rs-696dfaa921eb6 {
    height: 100svh !important;
}

*/