:root {
    --btn-size: 46px;
    --light-color: #c5a47e;
    --ring-length: 125.6;
    --theme-color: #1a1a1a
}

.progress-btn {
    background: transparent;
    border-radius: 50%;
    bottom: 30px;
    box-shadow: inset 0 0 0 2px #0000000d;
    cursor: pointer;
    height: var(--btn-size);
    opacity: 0;
    position: fixed;
    right: 30px;
    transform: translateY(20px);
    transition: all .3s ease;
    visibility: hidden;
    width: var(--btn-size);
    z-index: 1000
}

.progress-btn.active {
    opacity: 1;
    transform: translateY(0);
    visibility: visible
}

.progress-btn.on-dark {
    box-shadow: inset 0 0 0 2px #fff3
}

.progress-btn::after {
    align-items: center;
    color: var(--theme-color);
    content: '↑';
    display: flex;
    font-size: 20px;
    inset: 0;
    justify-content: center;
    pointer-events: none;
    position: absolute;
    transition: color .3s ease
}

.progress-btn.on-dark::after {
    color: var(--light-color)
}

.progress-circle {
    transform: rotate(-90deg);
    transform-origin: center
}

.progress-circle circle {
    fill: none;
    stroke: var(--theme-color);
    stroke-dasharray: var(--ring-length);
    stroke-dashoffset: var(--ring-length);
    stroke-linecap: round;
    stroke-width: 4;
    transition: stroke .3s ease
}

.progress-btn.on-dark .progress-circle circle {
    stroke: var(--light-color)
}

.smart-nav {
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    background: #ffffff4d;
    inset: 0 0 auto 0;
    padding: 14px 0;
    position: fixed;
    transition: transform .35s ease, box-shadow .35s ease;
    will-change: transform;
    z-index: 1030
}

.smart-nav.scrolled-down {
    transform: translateY(-100%)
}

.smart-nav.scrolled-up {
    box-shadow: 0 6px 25px #0000000f
}

.navbar-nav {
    gap: 6px
}

.nav-link {
    color: #1a1a1a !important;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .5px;
    overflow: hidden;
    padding: 10px 18px;
    position: relative;
    text-transform: capitalize;
    z-index: 1
}

@media (hover: hover) {
    .nav-link::after {
        background: #1a1a1a;
        bottom: 8px;
        content: '';
        height: 1px;
        left: 18px;
        position: absolute;
        right: 18px;
        transform: scaleX(0);
        transform-origin: center;
        transition: transform .35s cubic-bezier(.4, 0, .2, 1)
    }

    .nav-link:hover::after,
    .nav-link.is-active::after {
        transform: scaleX(1)
    }
}

@media (max-width: 991px) {
    .smart-nav {
        box-shadow: 0 1px 0 #0000000f;
        transform: none !important
    }

    .navbar-collapse {
        background: #f8f5f1;
        border-top: 1px solid #0000000d;
        padding-bottom: 12px;
        transition: height .25s ease;
        will-change: height
    }

    .navbar-nav {
        gap: 0;
        text-align: center
    }

    .nav-link {
        padding: 14px
    }

    .nav-link::before {
        display: none
    }
}

.nav-icons {
    position: relative
}

.nav-icon {
    align-items: center;
    border-radius: 50%;
    color: #1a1a1a;
    display: flex;
    font-size: 20px;
    height: 40px;
    justify-content: center;
    position: relative;
    text-decoration: none;
    transition: all .3s ease;
    width: 40px
}

.nav-icon:hover {
    background: #0000000d;
    color: #1a1a1a;
    transform: translateY(-2px)
}

.nav-icon i {
    transition: transform .3s ease
}

.nav-icon:hover i {
    transform: scale(1.1)
}

.nav-icon .bi-person-fill {
    color: #1a1a1a
}

.nav-icon-counter {
    position: relative
}

.counter-badge {
    align-items: center;
    background: #c5a47e;
    border-radius: 50%;
    color: #fff;
    display: none;
    font-size: 10px;
    font-weight: 600;
    height: 16px;
    justify-content: center;
    min-width: 16px;
    padding: 0 4px;
    position: absolute;
    right: 2px;
    top: 2px
}

.wishlist-btn.active i {
    color: #e53935
}

.dropdown-menu {
    animation: fadeInUp .3s ease forwards;
    border: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 15px 40px #0000001a;
    margin-top: 15px !important;
    min-width: 240px;
    overflow: hidden;
    padding: 0;
    transform-origin: top right
}

.dropdown-header {
    border-bottom: 2px solid #c5a47e;
    padding: 18px 25px
}

.dropdown-header small {
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    letter-spacing: .5px;
    text-transform: none
}

.dropdown-divider {
    border-color: #f0f0f0;
    margin: 0
}

.dropdown-item {
    align-items: center;
    border-left: 3px solid transparent;
    color: #555;
    display: flex;
    font-family: 'Jost', sans-serif;
    font-size: .95rem;
    padding: 14px 25px;
    transition: all .3s ease
}

.dropdown-item i {
    color: #999;
    font-size: 1.1rem;
    transition: color .3s ease;
    width: 25px
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: #fbfbfb;
    border-left-color: #c5a47e;
    color: #1a1a1a;
    padding-left: 30px
}

.dropdown-item:hover i {
    color: #c5a47e
}

.dropdown-item.text-danger {
    color: #e53935 !important
}

.dropdown-item.text-danger:hover {
    background: #fff5f5;
    border-left-color: #e53935
}

.dropdown-item.text-danger:hover i {
    color: #e53935
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.95)
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1)
    }
}