/* Sidebar Widgets*/
.woocommerce .widget,
.woocommerce-page .widget {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.woocommerce .widget:hover,
.woocommerce-page .widget:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.woocommerce .widget .widget-title,
.woocommerce-page .widget .widget-title {
    color: var(--text-color);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
    position: relative;
}

.woocommerce .widget .widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--primary-color);
}

/* Widget Lists */
.woocommerce .widget ul,
.woocommerce-page .widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce .widget ul li,
.woocommerce-page .widget ul li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s;
}

.woocommerce .widget ul li:last-child {
    border-bottom: none;
}

.woocommerce .widget ul li:hover {
    padding-left: 10px;
    color: var(--primary-color);
}

.woocommerce .widget ul li a {
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.2s;
}

.woocommerce .widget ul li a:hover {
    color: var(--primary-color);
}

.woocommerce .widget ul li .count {
    background: var(--search-bg);
    color: var(--text-muted);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Price Filter Widget */
.woocommerce .widget_price_filter .price_slider_wrapper {
    padding: 20px 0;
}

.woocommerce .widget_price_filter .ui-slider {
    background: var(--border-color);
    border: none;
    border-radius: 10px;
    height: 8px;
}

.woocommerce .widget_price_filter .ui-slider .ui-slider-range {
    background: var(--primary-color);
    border-radius: 10px;
}

.woocommerce .widget_price_filter .ui-slider .ui-slider-handle {
    background: var(--primary-color);
    border: 3px solid var(--product-bg);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    top: -6px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(254, 185, 0, 0.4);
}

.woocommerce .widget_price_filter .price_label {
    color: var(--text-color);
    font-weight: 600;
    text-align: center;
    margin-top: 15px;
}

.woocommerce .widget_price_filter .button {
    width: 100%;
    margin-top: 15px;
    background: var(--primary-color);
    color: #000;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Pagination - Premium Style */
.woocommerce nav.woocommerce-pagination {
    text-align: center;
    padding: 40px 0;
}

.woocommerce nav.woocommerce-pagination ul {
    border: none;
    display: inline-flex;
    gap: 10px;
}

.woocommerce nav.woocommerce-pagination ul li {
    border: none;
    margin: 0;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    background: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 48px;
    display: inline-block;
    text-align: center;
}

.woocommerce nav.woocommerce-pagination ul li a:hover {
    background: var(--primary-color);
    color: #000;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(254, 185, 0, 0.3);
}

.woocommerce nav.woocommerce-pagination ul li span.current {
    background: var(--primary-color);
    color: #000;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(254, 185, 0, 0.3);
}

/* Archive Header - Animated Dot Effect */
.woocommerce-products-header,
.woocommerce .page-header {
    padding: 25px 0;
    text-align: center;
    margin-bottom: 10px;
    position: relative;
}

/* The animated dot container */
.woocommerce-products-header::after,
.woocommerce .page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--archive-accent-2) 100%);
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: var(--archive-dot-shadow-idle);
    animation: dot-idle-pulse 2s ease-in-out infinite;
}

/* Dot idle pulsing animation */
@keyframes dot-idle-pulse {

    0%,
    100% {
        box-shadow: var(--archive-dot-shadow-idle);
        transform: translateX(-50%) scale(1);
    }

    50% {
        box-shadow: var(--archive-dot-shadow-peak);
        transform: translateX(-50%) scale(1.1);
    }
}

/* On hover - dot bounces up smoothly */
.woocommerce-products-header.dot-animating-in::after,
.woocommerce .page-header.dot-animating-in::after {
    animation: dot-bounce-up 0.7s ease-in-out forwards;
}

/* On hover-off - dot bounces down smoothly */
.woocommerce-products-header.dot-animating-out::after,
.woocommerce .page-header.dot-animating-out::after {
    animation: dot-bounce-down 0.7s ease-in-out forwards;
}

@keyframes dot-bounce-up {
    0% {
        transform: translateX(-50%) translateY(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(-48px) scale(0);
        opacity: 0;
    }
}

@keyframes dot-bounce-down {
    0% {
        transform: translateX(-50%) translateY(-48px) scale(0);
        opacity: 0;
    }

    100% {
        transform: translateX(-50%) translateY(0) scale(1);
        opacity: 1;
    }
}

/* Title styling with color spread effect */
.woocommerce-products-header__title,
.woocommerce .page-header h1 {
    color: var(--text-color);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0;
    position: relative;
    display: inline-block;
    background: linear-gradient(90deg,
            var(--text-color) 0%,
            var(--text-color) 50%,
            var(--text-color) 100%);
    background-size: 200% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* On hover (animating in) - color spreads from center outward */
.woocommerce-products-header.title-animating-in .woocommerce-products-header__title,
.woocommerce .page-header.title-animating-in h1 {
    background: linear-gradient(90deg,
            var(--primary-color) 0%,
            var(--archive-accent-2) 25%,
            var(--archive-accent-2) 75%,
            var(--primary-color) 100%);
    background-size: 100% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: color-spread 0.5s ease-out 0.25s forwards;
    text-shadow: 0 0 30px rgba(254, 185, 0, 0.3);
}

/* On hover off (animating out) - color retreats */
.woocommerce-products-header.title-animating-out .woocommerce-products-header__title,
.woocommerce .page-header.title-animating-out h1 {
    background: linear-gradient(90deg,
            var(--primary-color) 0%,
            var(--archive-accent-2) 25%,
            var(--archive-accent-2) 75%,
            var(--primary-color) 100%);
    background-size: 100% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: color-retreat 0.5s ease-out forwards;
}

@keyframes color-spread {
    0% {
        filter: brightness(1);
        opacity: 0.8;
    }

    50% {
        filter: brightness(1.2);
        opacity: 1;
    }

    100% {
        filter: brightness(1);
        opacity: 1;
    }
}

@keyframes color-retreat {
    0% {
        background: linear-gradient(90deg, var(--primary-color) 0%, var(--archive-accent-2) 25%, var(--archive-accent-2) 75%, var(--primary-color) 100%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        opacity: 1;
    }

    100% {
        background: linear-gradient(90deg, var(--text-color) 0%, var(--text-color) 50%, var(--text-color) 100%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        text-shadow: none;
        opacity: 1;
    }
}



/* Light mode adjustments */
.woocommerce-products-header::after,
.woocommerce .page-header::after {
    box-shadow: var(--archive-dot-shadow-idle);
}

.woocommerce-products-header__title,
.woocommerce .page-header h1 {
    background: linear-gradient(90deg,
            var(--text-color) 0%,
            var(--text-color) 50%,
            var(--text-color) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.woocommerce-products-header:hover .woocommerce-products-header__title,
.woocommerce .page-header:hover h1 {
    background: linear-gradient(90deg,
            var(--archive-accent-2) 0%,
            var(--primary-color) 25%,
            var(--primary-color) 75%,
            var(--archive-accent-2) 100%);
    background-size: 100% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.term-description,
.woocommerce .page-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Result Count & Ordering */
.woocommerce-result-count,
.woocommerce-ordering {
    color: var(--text-color);
    font-size: 0.95rem;
}

.woocommerce-ordering select {
    background: var(--input-bg) !important;
    color: var(--input-text);
    border: 1px solid var(--border-color);
    padding: 10px 15px;
    border-radius: 4px !important;
    font-size: 0.95rem;
}

.woocommerce-ordering select:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* woocommerce miniatury full image ale zmniejszone i wypozycjonowane */

img.attachment-woocommerce_thumbnail.size-woocommerce_thumbnail {
    height: 100% !important;
    width: 100% !important;
    object-fit: contain;
    margin: 0 auto !important;
}

/* Effects from prototype */
/* Cursor Light Effect */
#cursor-light {
    position: fixed;
    top: 0;
    left: 0;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    mix-blend-mode: screen;
    transition: width 0.3s, height 0.3s;
}

/* Spotlight Effect */
.spotlight-card {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.spotlight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y),
            rgba(255, 255, 255, 0.06),
            transparent 40%);
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.spotlight-card:hover::before {
    opacity: 1;
}

/* Glow Effect */
.glow-effect {
    position: relative;
    overflow: hidden;
}

.glow-effect::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, transparent 60%);
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.3s, transform 0.3s;
}

.glow-effect:hover::after {
    opacity: 0.3;
    transform: scale(1);
}