/* Kloktion frontend */

.kloktion-auction {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
    background: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
}


.kloktion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.kloktion-type-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    font-weight: 600;
}


.kloktion-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 1.4;
}

.kloktion-badge--active {
    background: #e8f5e9;
    color: #2e7d32;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    animation: kloktion-badge-glow 3s ease-in-out infinite;
}

.kloktion-live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2e7d32;
    animation: kloktion-dot-pulse 2s ease-in-out infinite;
}

.kloktion-badge--paused {
    background: #fff3e0;
    color: #e65100;
    animation: kloktion-pulse 1s ease-in-out infinite;
}

.kloktion-badge--scheduled {
    background: #e3f2fd;
    color: #1565c0;
}

.kloktion-badge--processing {
    background: #fff8e1;
    color: #f57f17;
}

.kloktion-badge--sold {
    background: #e8f5e9;
    color: #1b5e20;
}

.kloktion-badge--ended,
.kloktion-badge--stopped {
    background: #f5f5f5;
    color: #616161;
}

@keyframes kloktion-badge-glow {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(46, 125, 50, 0); }
    50% { opacity: 0.85; box-shadow: 0 0 8px 2px rgba(46, 125, 50, 0.3); }
}

@keyframes kloktion-dot-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.7); }
}

@keyframes kloktion-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}


.kloktion-price-display {
    text-align: center;
    margin-bottom: 20px;
}

.kloktion-price__original {
    font-size: 13px;
    color: #888;
    margin-top: 6px;
}

.kloktion-price__current {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
    transition: color 0.3s ease;
}

.kloktion-price--updating {
    color: #2e7d32 !important;
}

.kloktion-savings {
    display: inline-block;
    margin-top: 6px;
    padding: 2px 10px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
}


.kloktion-progress {
    margin-bottom: 20px;
}

.kloktion-progress__bar {
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.kloktion-progress__fill {
    height: 100%;
    background: linear-gradient(90deg, #2e7d32, #66bb6a);
    border-radius: 4px;
    transition: width 0.5s ease;
    min-width: 0;
}

.kloktion-progress__labels {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 12px;
    color: #888;
}


.kloktion-timer {
    text-align: center;
}

.kloktion-timer__label {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.kloktion-timer__digits {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.kloktion-timer__unit {
    display: inline-block;
    min-width: 44px;
    padding: 8px 4px;
    background: #1a1a1a;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    border-radius: 6px;
    text-align: center;
    line-height: 1;
}

.kloktion-timer__sep {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1;
}


.kloktion-scheduled-note {
    font-size: 14px;
    color: #666;
    margin-top: 8px;
}


.kloktion-price-display--sold .kloktion-price__current {
    color: #2e7d32;
}

.kloktion-sold-note {
    font-size: 14px;
    color: #666;
    margin-top: 8px;
}


.kloktion-processing-notice {
    text-align: center;
    padding: 12px 16px;
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 6px;
    color: #f57f17;
    font-size: 13px;
    margin: 12px 0;
}

.kloktion-ended {
    text-align: center;
    padding: 16px 0;
    color: #888;
    font-size: 15px;
}


.kloktion-auction ~ form .single_add_to_cart_button,
.kloktion-auction ~ .cart .single_add_to_cart_button {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    white-space: nowrap;
}


.kloktion-archive-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 1;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.4;
}

.kloktion-archive-badge--active {
    background: #2e7d32;
    color: #fff;
}

.kloktion-archive-badge--paused {
    background: #e65100;
    color: #fff;
}

.kloktion-archive-badge--scheduled {
    background: #1565c0;
    color: #fff;
}


.kloktion-one-click {
    margin: 12px 0;
    text-align: center;
}

.kloktion-one-click__btn {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 600;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.kloktion-one-click__btn:hover {
    background: #333;
}

.kloktion-one-click__btn:disabled {
    background: #999;
    cursor: wait;
}

.kloktion-one-click__note {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #888;
}


.woocommerce-product-gallery {
    position: relative;
}

.kloktion-heart {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease, background 0.2s ease;
    padding: 0;
}

.kloktion-heart:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 1);
}

.kloktion-heart svg {
    fill: none;
    stroke: #555;
    stroke-width: 2;
    transition: fill 0.3s ease, stroke 0.3s ease;
}

.kloktion-heart--archive svg {
    stroke: #888;
    stroke-width: 2.5;
}

.kloktion-heart--active svg {
    fill: #e53935;
    stroke: #e53935;
}

.kloktion-heart:hover svg {
    stroke: #e53935;
}

.kloktion-heart--active:hover svg {
    fill: #c62828;
    stroke: #c62828;
}

@keyframes kloktion-heart-pop {
    0% { transform: scale(1); }
    30% { transform: scale(1.3); }
    60% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

.kloktion-heart--animating {
    animation: kloktion-heart-pop 0.4s ease;
}


.kloktion-heart--archive {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 3;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    padding: 0;
}

.kloktion-heart--archive:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 1);
}

.woocommerce ul.products li.product .woocommerce-loop-product__link {
    position: relative;
}


.kloktion-watch {
    margin: 12px 0;
}

.kloktion-watch__btn {
    cursor: pointer;
    border: 1px solid #ccc;
    background: #fff;
    color: #333;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.kloktion-watch__btn:hover {
    border-color: #2e7d32;
    color: #2e7d32;
}

.kloktion-watch__btn.kloktion-watch--active {
    background: #2e7d32;
    color: #fff;
    border-color: #2e7d32;
}

.kloktion-watch__btn.kloktion-watch--active:hover {
    background: #c62828;
    border-color: #c62828;
}


@media (max-width: 480px) {
    .kloktion-auction {
        padding: 16px;
    }

    .kloktion-price__current {
        font-size: 26px;
    }

    .kloktion-timer__unit {
        min-width: 36px;
        font-size: 20px;
        padding: 6px 4px;
    }

    .kloktion-timer__sep {
        font-size: 20px;
    }
}

/* Global Pause notice */
.kloktion-global-pause-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 16px;
    color: #856404;
    font-weight: 500;
    text-align: center;
}

/* Payment method on thank-you page */
.kloktion-payment-method {
    margin-top: 12px;
}
