/* Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popup-overlay.active {
    display: flex;
    opacity: 1;
}

.popup-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 24px;
    padding: 3rem;
    max-width: 550px;
    width: 90%;
    position: relative;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transform: translateY(50px) scale(0.9);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.popup-overlay.active .popup-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.popup-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
    font-weight: 300;
}

.popup-close:hover {
    background: #ff4757;
    border-color: #ff4757;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 5px 20px rgba(255, 71, 87, 0.5);
}

.popup-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: white;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 700;
}

.popup-text {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1rem;
}

.popup-input {
    width: 100%;
    padding: 1.2rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    margin-bottom: 1.2rem;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.popup-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.popup-input:focus {
    border-color: #ff4757;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.1);
}

.popup-btn {
    width: 100%;
    padding: 1.2rem 3rem;
    background: linear-gradient(135deg, #ff4757 0%, #ff6b7a 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(255, 71, 87, 0.3);
    font-family: 'Poppins', sans-serif;
}

.popup-btn:hover {
    background: linear-gradient(135deg, #ff3545 0%, #ff5968 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(255, 71, 87, 0.5);
}

.popup-btn:active {
    transform: translateY(-1px);
}

.popup-btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
    margin-top: 1rem;
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.popup-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.1);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(200px);
    max-width: 550px;
    width: 90%;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 9999;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cookie-banner.active {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.cookie-banner h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.cookie-btn {
    flex: 1;
    padding: 1.1rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    font-family: 'Poppins', sans-serif;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, #ff4757 0%, #ff6b7a 100%);
    color: white;
    box-shadow: 0 5px 20px rgba(255, 71, 87, 0.3);
}

.cookie-btn-accept:hover {
    background: linear-gradient(135deg, #ff3545 0%, #ff5968 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 71, 87, 0.5);
}

.cookie-btn-decline {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-btn-decline:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.1);
}

/* Favorites Popup */
.favorites-popup {
    max-width: 800px;
}

.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.5rem;
    max-height: 450px;
    overflow-y: auto;
    padding: 1rem 0;
    margin-top: 1rem;
}

.favorites-grid::-webkit-scrollbar {
    width: 8px;
}

.favorites-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.favorites-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 71, 87, 0.5);
    border-radius: 10px;
}

.favorites-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 71, 87, 0.7);
}

.favorite-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    color: inherit;
    display: block;
}

.favorite-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 71, 87, 0.5);
    box-shadow: 0 10px 30px rgba(255, 71, 87, 0.2);
}

.favorite-card img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.8rem;
}

.favorite-card-title {
    color: white;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.favorite-card-price {
    color: #9fff6b;
    font-weight: 700;
    font-size: 1.1rem;
}

.favorite-remove {
    margin-top: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(255, 71, 87, 0.2);
    border: 1px solid rgba(255, 71, 87, 0.3);
    color: #ff4757;
    border-radius: 20px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.favorite-remove:hover {
    background: #ff4757;
    color: white;
    border-color: #ff4757;
}

.empty-favorites {
    text-align: center;
    padding: 3rem;
    color: rgba(255, 255, 255, 0.5);
}

.empty-favorites svg {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.empty-favorites p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .popup-content {
        padding: 2rem;
        max-width: 95%;
    }

    .popup-title {
        font-size: 1.8rem;
    }

    .popup-text {
        font-size: 0.95rem;
    }

    .cookie-banner {
        padding: 2rem;
        max-width: 95%;
        bottom: 1rem;
    }

    .cookie-buttons {
        flex-direction: column;
    }

    .favorites-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 640px) {
    .popup-content {
        padding: 2rem 1.5rem;
        border-radius: 16px;
        max-width: 90vw;
    }

    .popup-title {
        font-size: 1.6rem;
    }

    .popup-text {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .popup-close {
        width: 38px;
        height: 38px;
        font-size: 1.4rem;
        top: 1rem;
        right: 1rem;
        min-width: 38px;
        min-height: 38px;
    }

    .newsletter-input {
        font-size: 16px;
        padding: 0.6rem 0.8rem;
        min-height: 40px;
    }

    .newsletter-input::placeholder {
        font-size: 16px;
    }

    .newsletter-btn {
        font-size: 0.85rem;
        padding: 0.6rem 1.5rem;
        min-height: 40px;
    }

    .cookie-btn {
        font-size: 0.85rem;
        padding: 0.6rem 1.2rem;
        min-height: 40px;
    }

    .cookie-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }

    .favorites-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .popup-content {
        padding: 1.2rem 1rem;
        border-radius: 12px;
        max-width: 95vw;
    }

    .popup-title {
        font-size: 1.3rem;
    }

    .popup-text {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .popup-close {
        width: 32px;
        height: 32px;
        font-size: 1.2rem;
        top: 0.8rem;
        right: 0.8rem;
        min-width: 32px;
        min-height: 32px;
    }

    .newsletter-input {
        font-size: 16px;
        padding: 0.5rem 0.7rem;
        min-height: 40px;
        border-radius: 6px;
    }

    .newsletter-input::placeholder {
        font-size: 16px;
    }

    .newsletter-btn {
        font-size: 0.8rem;
        padding: 0.5rem 1.2rem;
        min-height: 40px;
    }

    .cookie-btn {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
        min-height: 40px;
    }

    .cookie-buttons {
        flex-direction: column;
        gap: 0.6rem;
    }

    .favorites-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
}
